hexsha
string
size
int64
ext
string
lang
string
max_stars_repo_path
string
max_stars_repo_name
string
max_stars_repo_head_hexsha
string
max_stars_repo_licenses
list
max_stars_count
int64
max_stars_repo_stars_event_min_datetime
string
max_stars_repo_stars_event_max_datetime
string
max_issues_repo_path
string
max_issues_repo_name
string
max_issues_repo_head_hexsha
string
max_issues_repo_licenses
list
max_issues_count
int64
max_issues_repo_issues_event_min_datetime
string
max_issues_repo_issues_event_max_datetime
string
max_forks_repo_path
string
max_forks_repo_name
string
max_forks_repo_head_hexsha
string
max_forks_repo_licenses
list
max_forks_count
int64
max_forks_repo_forks_event_min_datetime
string
max_forks_repo_forks_event_max_datetime
string
content
string
avg_line_length
float64
max_line_length
int64
alphanum_fraction
float64
737bbce81405d1ab9800131a059a88b44878ef64
2,131
js
JavaScript
lib/plan/plans/orderByPlan.js
justinchou/bearcatjs-dao
1930796b50339fdb5cdd861d856976dbb97b8f47
[ "Unlicense", "MIT" ]
null
null
null
lib/plan/plans/orderByPlan.js
justinchou/bearcatjs-dao
1930796b50339fdb5cdd861d856976dbb97b8f47
[ "Unlicense", "MIT" ]
null
null
null
lib/plan/plans/orderByPlan.js
justinchou/bearcatjs-dao
1930796b50339fdb5cdd861d856976dbb97b8f47
[ "Unlicense", "MIT" ]
null
null
null
var Constant = require('../../util/constant'); var QueryPlan = require('./queryPlan'); var Util = require('util'); var OrderByPlan = function(selectDefinition) { QueryPlan.call(this); this.oldColumns = []; this.orderByColumns = []; this.init(selectDefinition); } Util.inherits(OrderByPlan, QueryPlan); OrderByPlan.prototype.init = function(selectDefinition) { var orderByColumns = selectDefinition.getOrderList(); var columnList = selectDefinition.getColumns(); for (var i = 0; i < orderByColumns.length; i++) { var orderColumn = orderByColumns[i]; if (this.containsColumn(columnList, orderColumn)) { continue; } this.addOldColumns(columnList); columnList.push(orderColumn); // add orderByColumn to select column list } this.orderByColumns = orderByColumns; } OrderByPlan.prototype.containsColumn = function(columns, orderColumn) { for (var i = 0; i < columns.length; i++) { var column = columns[i]; var orderColumnName = orderColumn.getName(); if (column.getName() === orderColumnName || column.getAlias() === orderColumnName) { return true; } } return false; } OrderByPlan.prototype.addOldColumns = function(oldColumns) { if (!this.oldColumns) { this.oldColumns = oldColumns; } } OrderByPlan.prototype.start = function(cb) { var childPlan = this.getChildPlan(); var orderByColumns = this.orderByColumns; var cmp = function(a, b) { for (var i = 0; i < orderByColumns.length; i++) { var orderColumn = orderByColumns[i]; var name = orderColumn.getName(); var type = orderColumn.getType(); var orderType = orderColumn.getOrderType(); if (a[name] && b[name]) { if (a[name] == b[name]) { continue; } if (orderType === Constant.ORDER_ASC) { return a[name] < b[name] ? -1 : 1; } if (orderType === Constant.ORDER_DESC) { return a[name] < b[name] ? 1 : -1; } } } return 0; } childPlan.start(function(err, results) { if (err) { return cb(err); } // sort by orderColumns if (orderByColumns.length) { results = results.sort(cmp); } return cb(null, results); }); } module.exports = OrderByPlan;
22.431579
86
0.669169
c0e7e0aae5eda9e9e6e0bcbf6071d39cbfb4bf40
915
js
JavaScript
test/Registry_metadata_test1.js
stellarspot/platform-contracts
eb69efdaf3c0af815352141e0ff0f53135af6b57
[ "MIT" ]
null
null
null
test/Registry_metadata_test1.js
stellarspot/platform-contracts
eb69efdaf3c0af815352141e0ff0f53135af6b57
[ "MIT" ]
null
null
null
test/Registry_metadata_test1.js
stellarspot/platform-contracts
eb69efdaf3c0af815352141e0ff0f53135af6b57
[ "MIT" ]
null
null
null
"use strict"; var Registry = artifacts.require("./Registry.sol"); contract('Registry', function(accounts) { var registry; before(async () => { registry = await Registry.deployed(); }); it ("set/get metadata", async function() { let orgName = "TestName" let serviceName = "ServiceName" let metadata = "LONG \"BINARY\" STRING 42424242424242424242424242424242424242424242424242424242424" await registry.createOrganization(orgName, [accounts[1]]); await registry.createServiceRegistration(orgName, serviceName, "", accounts[5], []) await registry.setMetadataIPFSHashInServiceRegistration(orgName, serviceName, metadata) let rez = await registry.getMetadataIPFSHash(orgName, serviceName) assert.equal(web3.toAscii(rez[1]), metadata) }); });
33.888889
114
0.621858
c0e85c50b7d4c82ad6f9be6965fb21fe83176f88
642
js
JavaScript
src/actions/loadContract.js
SealSC/web-extension-tronweb
2401db76c216bf5b0ad7ac31783149c3bddf3401
[ "MIT" ]
1
2020-10-16T23:46:18.000Z
2020-10-16T23:46:18.000Z
src/actions/loadContract.js
SealSC/web-extension-tronweb
2401db76c216bf5b0ad7ac31783149c3bddf3401
[ "MIT" ]
null
null
null
src/actions/loadContract.js
SealSC/web-extension-tronweb
2401db76c216bf5b0ad7ac31783149c3bddf3401
[ "MIT" ]
null
null
null
import {types, consts} from "@sealsc/web-extension-protocol"; async function loadContract(address) { let contract = null let wrapper = null let err = consts.predefinedStatus.SUCCESS() try { contract = await this.extension.webjsInstance.contract().at(address) .catch(reason => { return consts.predefinedStatus.UNKNOWN(reason) }) if(contract instanceof types.Status) { err = contract } else { wrapper = new types.ContractWrapper("", address, contract) } } catch(e) { err = consts.predefinedStatus.UNKNOWN(e) } return new types.Result(wrapper, err) } export { loadContract }
24.692308
72
0.672897
c0e898ed5e7358df0411aa8102f5a63a52ecf996
3,588
js
JavaScript
static/blog/make-an-awesome-tooltip-with-jquery/mtippy/jquery.mtippy.js
miguelmota/miguelmota.github.com
6d2fb3110089679e8476e749e7bee427ae91fe42
[ "MIT" ]
29
2015-05-03T01:09:31.000Z
2021-06-06T21:18:13.000Z
static/blog/make-an-awesome-tooltip-with-jquery/mtippy/jquery.mtippy.js
miguelmota/miguelmota.github.com
6d2fb3110089679e8476e749e7bee427ae91fe42
[ "MIT" ]
1
2015-07-15T05:45:18.000Z
2015-07-15T05:45:18.000Z
static/blog/make-an-awesome-tooltip-with-jquery/mtippy/jquery.mtippy.js
miguelmota/miguelmota.github.com
6d2fb3110089679e8476e749e7bee427ae91fe42
[ "MIT" ]
17
2015-05-13T16:10:19.000Z
2020-05-21T16:49:27.000Z
/* * mtippy - a jQuery tooltip plugin * v1.0.0 - 20120525 * (c) 2012 Miguel Mota http://www.miguelmota.com * Released under the MIT license */ (function($) { var methods = { init: function(options) { var settings = { backgroundColor: '#000', borderColor: '#000', borderRadius: '.5em', boxShadow: '.1em .1em .5em #000', color: '#fff', fontFamily: 'Helvetica, Arial, sans-serif', fontSize: '12px', fontStyle: 'normal', fontWeight: 'normal', opacity: 1, padding: '.8em 1.2em', positionLeft: '50%', positionTop: '-2.5em', textShadow: '0 -1px 0 rgba(0,0,0,.8)', showSpeed: 400, hideSpeed: 200, timeout: 600 }; options = $.extend(settings, options); return this.each(function() { var elem = $(this); if(!elem.attr('title')) return true; elem.append($('<span class="mtippy">' + elem.attr('title') + '<span class="mtippy-tip-shadow"></span><span class="mtippy-tip"></span></span>')).addClass('mtippy-wrap'); var t; elem.hover(function() { $('.mtippy', elem).css('margin-left', -$('.mtippy', elem).outerWidth()/2).stop(true,true).animate({opacity: 'show', top: '-3em'}, settings.showSpeed); clearTimeout(t); }, function() { t = setTimeout(function() { $('.mtippy', elem).animate({opacity: 'hide', top: '-2.5em'}, settings.hideSpeed); }, settings.timeout); }); elem.removeAttr('title'); /* * css styles */ $('.mtippy-wrap').css({ 'position': 'relative', 'text-decoration': 'none' }); $('.mtippy', this).css({ 'background': settings.backgroundColor, 'border': '1px solid ' + settings.backgroundColor, 'border-radius': settings.borderRadius, '-moz-border-radius': settings.borderRadius, '-webkit-border-radius': settings.borderRadius, 'box-shadow': settings.boxShadow, '-moz-box-shadow': settings.boxShadow, '-webkit-box-shadow': settings.boxShadow, 'color': settings.color, 'display': 'none', 'font-family': settings.fontFamily, 'font-size': settings.fontSize, 'font-style': settings.fontStyle, 'font-weight': settings.fontWeight, 'left': settings.positionLeft, 'line-height': '1', 'opacity': settings.opacity + ' !important', /* IE opacity '-ms-filter': '"progid:DXImageTransform.Microsoft.Alpha(Opacity='+settings.opacity * 10+')"', 'filter': 'alpha(opacity='+settings.opacity * 10+')', */ 'padding': settings.padding, 'position': 'absolute', 'text-align': 'center', 'text-decoration': 'none', 'text-shadow': settings.textShadow, 'top': settings.positionTop, 'white-space': 'nowrap' }); $('.mtippy-tip, .mtippy-tip-shadow', this).css({ 'border': '.5em solid transparent', 'border-top-color': settings.backgroundColor, 'bottom': '-1em', 'height': '0', 'left': settings.positionLeft, 'margin-left': '-.5em', 'position': 'absolute', 'width': '0' }); }); }, show: function() { $(this).trigger('mouseenter'); }, hide: function() { $(this).trigger('mouseleave'); } }; $.fn.mtippy = function(method) { // Method calling logic if ( methods[method] ) { return methods[ method ].apply( this, Array.prototype.slice.call( arguments, 1 )); } else if ( typeof method === 'object' || ! method ) { return methods.init.apply( this, arguments ); } else { $.error( 'Method ' + method + ' does not exist on jQuery.tooltip' ); } } })(jQuery);
24.744828
155
0.584448
c0e9422f4dfd02e71cca79d8bdb1cda263569429
47,241
js
JavaScript
tests/dummy/app/data/stock.js
poetic/ember-highcharts-gauge
620f9c7a0a667401ac12c339dce9503a413c988c
[ "MIT" ]
2
2015-08-10T15:28:15.000Z
2018-03-09T15:50:37.000Z
tests/dummy/app/data/stock.js
poetic/ember-highcharts-gauge
620f9c7a0a667401ac12c339dce9503a413c988c
[ "MIT" ]
1
2015-08-19T14:54:02.000Z
2015-08-21T02:13:05.000Z
tests/dummy/app/data/stock.js
poetic/ember-highcharts-gauge
620f9c7a0a667401ac12c339dce9503a413c988c
[ "MIT" ]
null
null
null
export default [ /* May 2006 */ [1147651200000,67.79], [1147737600000,64.98], [1147824000000,65.26], [1147910400000,63.18], [1147996800000,64.51], [1148256000000,63.38], [1148342400000,63.15], [1148428800000,63.34], [1148515200000,64.33], [1148601600000,63.55], [1148947200000,61.22], [1149033600000,59.77], /* Jun 2006 */ [1149120000000,62.17], [1149206400000,61.66], [1149465600000,60.00], [1149552000000,59.72], [1149638400000,58.56], [1149724800000,60.76], [1149811200000,59.24], [1150070400000,57.00], [1150156800000,58.33], [1150243200000,57.61], [1150329600000,59.38], [1150416000000,57.56], [1150675200000,57.20], [1150761600000,57.47], [1150848000000,57.86], [1150934400000,59.58], [1151020800000,58.83], [1151280000000,58.99], [1151366400000,57.43], [1151452800000,56.02], [1151539200000,58.97], [1151625600000,57.27], /* Jul 2006 */ [1151884800000,57.95], [1152057600000,57.00], [1152144000000,55.77], [1152230400000,55.40], [1152489600000,55.00], [1152576000000,55.65], [1152662400000,52.96], [1152748800000,52.25], [1152835200000,50.67], [1153094400000,52.37], [1153180800000,52.90], [1153267200000,54.10], [1153353600000,60.50], [1153440000000,60.72], [1153699200000,61.42], [1153785600000,61.93], [1153872000000,63.87], [1153958400000,63.40], [1154044800000,65.59], [1154304000000,67.96], /* Aug 2006 */ [1154390400000,67.18], [1154476800000,68.16], [1154563200000,69.59], [1154649600000,68.30], [1154908800000,67.21], [1154995200000,64.78], [1155081600000,63.59], [1155168000000,64.07], [1155254400000,63.65], [1155513600000,63.94], [1155600000000,66.45], [1155686400000,67.98], [1155772800000,67.59], [1155859200000,67.91], [1156118400000,66.56], [1156204800000,67.62], [1156291200000,67.31], [1156377600000,67.81], [1156464000000,68.75], [1156723200000,66.98], [1156809600000,66.48], [1156896000000,66.96], [1156982400000,67.85], /* Sep 2006 */ [1157068800000,68.38], [1157414400000,71.48], [1157500800000,70.03], [1157587200000,72.80], [1157673600000,72.52], [1157932800000,72.50], [1158019200000,72.63], [1158105600000,74.20], [1158192000000,74.17], [1158278400000,74.10], [1158537600000,73.89], [1158624000000,73.77], [1158710400000,75.26], [1158796800000,74.65], [1158883200000,73.00], [1159142400000,75.75], [1159228800000,77.61], [1159315200000,76.41], [1159401600000,77.01], [1159488000000,76.98], /* Oct 2006 */ [1159747200000,74.86], [1159833600000,74.08], [1159920000000,75.38], [1160006400000,74.83], [1160092800000,74.22], [1160352000000,74.63], [1160438400000,73.81], [1160524800000,73.23], [1160611200000,75.26], [1160697600000,75.02], [1160956800000,75.40], [1161043200000,74.29], [1161129600000,74.53], [1161216000000,78.99], [1161302400000,79.95], [1161561600000,81.46], [1161648000000,81.05], [1161734400000,81.68], [1161820800000,82.19], [1161907200000,80.41], [1162166400000,80.42], [1162252800000,81.08], /* Nov 2006 */ [1162339200000,79.16], [1162425600000,78.98], [1162512000000,78.29], [1162771200000,79.71], [1162857600000,80.51], [1162944000000,82.45], [1163030400000,83.34], [1163116800000,83.12], [1163376000000,84.35], [1163462400000,85.00], [1163548800000,84.05], [1163635200000,85.61], [1163721600000,85.85], [1163980800000,86.47], [1164067200000,88.60], [1164153600000,90.31], [1164326400000,91.63], [1164585600000,89.54], [1164672000000,91.81], [1164758400000,91.80], [1164844800000,91.66], /* Dec 2006 */ [1164931200000,91.32], [1165190400000,91.12], [1165276800000,91.27], [1165363200000,89.83], [1165449600000,87.04], [1165536000000,88.26], [1165795200000,88.75], [1165881600000,86.14], [1165968000000,89.05], [1166054400000,88.55], [1166140800000,87.72], [1166400000000,85.47], [1166486400000,86.31], [1166572800000,84.76], [1166659200000,82.90], [1166745600000,82.20], [1167091200000,81.51], [1167177600000,81.52], [1167264000000,80.87], [1167350400000,84.84], /* Jan 2007 */ [1167782400000,83.80], [1167868800000,85.66], [1167955200000,85.05], [1168214400000,85.47], [1168300800000,92.57], [1168387200000,97.00], [1168473600000,95.80], [1168560000000,94.62], [1168905600000,97.10], [1168992000000,94.95], [1169078400000,89.07], [1169164800000,88.50], [1169424000000,86.79], [1169510400000,85.70], [1169596800000,86.70], [1169683200000,86.25], [1169769600000,85.38], [1170028800000,85.94], [1170115200000,85.55], [1170201600000,85.73], /* Feb 2007 */ [1170288000000,84.74], [1170374400000,84.75], [1170633600000,83.94], [1170720000000,84.15], [1170806400000,86.15], [1170892800000,86.18], [1170979200000,83.27], [1171238400000,84.88], [1171324800000,84.63], [1171411200000,85.30], [1171497600000,85.21], [1171584000000,84.83], [1171929600000,85.90], [1172016000000,89.20], [1172102400000,89.51], [1172188800000,89.07], [1172448000000,88.65], [1172534400000,83.93], [1172620800000,84.61], /* Mar 2007 */ [1172707200000,87.06], [1172793600000,85.41], [1173052800000,86.32], [1173139200000,88.19], [1173225600000,87.72], [1173312000000,88.00], [1173398400000,87.97], [1173657600000,89.87], [1173744000000,88.40], [1173830400000,90.00], [1173916800000,89.57], [1174003200000,89.59], [1174262400000,91.13], [1174348800000,91.48], [1174435200000,93.87], [1174521600000,93.96], [1174608000000,93.52], [1174867200000,95.85], [1174953600000,95.46], [1175040000000,93.24], [1175126400000,93.75], [1175212800000,92.91], /* Apr 2007 */ [1175472000000,93.65], [1175558400000,94.50], [1175644800000,94.27], [1175731200000,94.68], [1176076800000,93.65], [1176163200000,94.25], [1176249600000,92.59], [1176336000000,92.19], [1176422400000,90.24], [1176681600000,91.43], [1176768000000,90.35], [1176854400000,90.40], [1176940800000,90.27], [1177027200000,90.97], [1177286400000,93.51], [1177372800000,93.24], [1177459200000,95.35], [1177545600000,98.84], [1177632000000,99.92], [1177891200000,99.80], /* May 2007 */ [1177977600000,99.47], [1178064000000,100.39], [1178150400000,100.40], [1178236800000,100.81], [1178496000000,103.92], [1178582400000,105.06], [1178668800000,106.88], [1178755200000,107.34], [1178841600000,108.74], [1179100800000,109.36], [1179187200000,107.52], [1179273600000,107.34], [1179360000000,109.44], [1179446400000,110.02], [1179705600000,111.98], [1179792000000,113.54], [1179878400000,112.89], [1179964800000,110.69], [1180051200000,113.62], [1180396800000,114.35], [1180483200000,118.77], [1180569600000,121.19], /* Jun 2007 */ [1180656000000,118.40], [1180915200000,121.33], [1181001600000,122.67], [1181088000000,123.64], [1181174400000,124.07], [1181260800000,124.49], [1181520000000,120.19], [1181606400000,120.38], [1181692800000,117.50], [1181779200000,118.75], [1181865600000,120.50], [1182124800000,125.09], [1182211200000,123.66], [1182297600000,121.55], [1182384000000,123.90], [1182470400000,123.00], [1182729600000,122.34], [1182816000000,119.65], [1182902400000,121.89], [1182988800000,120.56], [1183075200000,122.04], /* Jul 2007 */ [1183334400000,121.26], [1183420800000,127.17], [1183593600000,132.75], [1183680000000,132.30], [1183939200000,130.33], [1184025600000,132.35], [1184112000000,132.39], [1184198400000,134.07], [1184284800000,137.73], [1184544000000,138.10], [1184630400000,138.91], [1184716800000,138.12], [1184803200000,140.00], [1184889600000,143.75], [1185148800000,143.70], [1185235200000,134.89], [1185321600000,137.26], [1185408000000,146.00], [1185494400000,143.85], [1185753600000,141.43], [1185840000000,131.76], /* Aug 2007 */ [1185926400000,135.00], [1186012800000,136.49], [1186099200000,131.85], [1186358400000,135.25], [1186444800000,135.03], [1186531200000,134.01], [1186617600000,126.39], [1186704000000,125.00], [1186963200000,127.79], [1187049600000,124.03], [1187136000000,119.90], [1187222400000,117.05], [1187308800000,122.06], [1187568000000,122.22], [1187654400000,127.57], [1187740800000,132.51], [1187827200000,131.07], [1187913600000,135.30], [1188172800000,132.25], [1188259200000,126.82], [1188345600000,134.08], [1188432000000,136.25], [1188518400000,138.48], /* Sep 2007 */ [1188864000000,144.16], [1188950400000,136.76], [1189036800000,135.01], [1189123200000,131.77], [1189382400000,136.71], [1189468800000,135.49], [1189555200000,136.85], [1189641600000,137.20], [1189728000000,138.81], [1189987200000,138.41], [1190073600000,140.92], [1190160000000,140.77], [1190246400000,140.31], [1190332800000,144.15], [1190592000000,148.28], [1190678400000,153.18], [1190764800000,152.77], [1190851200000,154.50], [1190937600000,153.47], /* Oct 2007 */ [1191196800000,156.34], [1191283200000,158.45], [1191369600000,157.92], [1191456000000,156.24], [1191542400000,161.45], [1191801600000,167.91], [1191888000000,167.86], [1191974400000,166.79], [1192060800000,162.23], [1192147200000,167.25], [1192406400000,166.98], [1192492800000,169.58], [1192579200000,172.75], [1192665600000,173.50], [1192752000000,170.42], [1193011200000,174.36], [1193097600000,186.16], [1193184000000,185.93], [1193270400000,182.78], [1193356800000,184.70], [1193616000000,185.09], [1193702400000,187.00], [1193788800000,189.95], /* Nov 2007 */ [1193875200000,187.44], [1193961600000,187.87], [1194220800000,186.18], [1194307200000,191.79], [1194393600000,186.30], [1194480000000,175.47], [1194566400000,165.37], [1194825600000,153.76], [1194912000000,169.96], [1194998400000,166.11], [1195084800000,164.30], [1195171200000,166.39], [1195430400000,163.95], [1195516800000,168.85], [1195603200000,168.46], [1195776000000,171.54], [1196035200000,172.54], [1196121600000,174.81], [1196208000000,180.22], [1196294400000,184.29], [1196380800000,182.22], /* Dec 2007 */ [1196640000000,178.86], [1196726400000,179.81], [1196812800000,185.50], [1196899200000,189.95], [1196985600000,194.30], [1197244800000,194.21], [1197331200000,188.54], [1197417600000,190.86], [1197504000000,191.83], [1197590400000,190.39], [1197849600000,184.40], [1197936000000,182.98], [1198022400000,183.12], [1198108800000,187.21], [1198195200000,193.91], [1198454400000,198.80], [1198627200000,198.95], [1198713600000,198.57], [1198800000000,199.83], [1199059200000,198.08], /* Jan 2008 */ [1199232000000,194.84], [1199318400000,194.93], [1199404800000,180.05], [1199664000000,177.64], [1199750400000,171.25], [1199836800000,179.40], [1199923200000,178.02], [1200009600000,172.69], [1200268800000,178.78], [1200355200000,169.04], [1200441600000,159.64], [1200528000000,160.89], [1200614400000,161.36], [1200960000000,155.64], [1201046400000,139.07], [1201132800000,135.60], [1201219200000,130.01], [1201478400000,130.01], [1201564800000,131.54], [1201651200000,132.18], [1201737600000,135.36], /* Feb 2008 */ [1201824000000,133.75], [1202083200000,131.65], [1202169600000,129.36], [1202256000000,122.00], [1202342400000,121.24], [1202428800000,125.48], [1202688000000,129.45], [1202774400000,124.86], [1202860800000,129.40], [1202947200000,127.46], [1203033600000,124.63], [1203379200000,122.18], [1203465600000,123.82], [1203552000000,121.54], [1203638400000,119.46], [1203897600000,119.74], [1203984000000,119.15], [1204070400000,122.96], [1204156800000,129.91], [1204243200000,125.02], /* Mar 2008 */ [1204502400000,121.73], [1204588800000,124.62], [1204675200000,124.49], [1204761600000,120.93], [1204848000000,122.25], [1205107200000,119.69], [1205193600000,127.35], [1205280000000,126.03], [1205366400000,127.94], [1205452800000,126.61], [1205712000000,126.73], [1205798400000,132.82], [1205884800000,129.67], [1205971200000,133.27], [1206316800000,139.53], [1206403200000,140.98], [1206489600000,145.06], [1206576000000,140.25], [1206662400000,143.01], [1206921600000,143.50], /* Apr 2008 */ [1207008000000,149.53], [1207094400000,147.49], [1207180800000,151.61], [1207267200000,153.08], [1207526400000,155.89], [1207612800000,152.84], [1207699200000,151.44], [1207785600000,154.55], [1207872000000,147.14], [1208131200000,147.78], [1208217600000,148.38], [1208304000000,153.70], [1208390400000,154.49], [1208476800000,161.04], [1208736000000,168.16], [1208822400000,160.20], [1208908800000,162.89], [1208995200000,168.94], [1209081600000,169.73], [1209340800000,172.24], [1209427200000,175.05], [1209513600000,173.95], /* May 2008 */ [1209600000000,180.00], [1209686400000,180.94], [1209945600000,184.73], [1210032000000,186.66], [1210118400000,182.59], [1210204800000,185.06], [1210291200000,183.45], [1210550400000,188.16], [1210636800000,189.96], [1210723200000,186.26], [1210809600000,189.73], [1210896000000,187.62], [1211155200000,183.60], [1211241600000,185.90], [1211328000000,178.19], [1211414400000,177.05], [1211500800000,181.17], [1211846400000,186.43], [1211932800000,187.01], [1212019200000,186.69], [1212105600000,188.75], /* Jun 2008 */ [1212364800000,186.10], [1212451200000,185.37], [1212537600000,185.19], [1212624000000,189.43], [1212710400000,185.64], [1212969600000,181.61], [1213056000000,185.64], [1213142400000,180.81], [1213228800000,173.26], [1213315200000,172.37], [1213574400000,176.84], [1213660800000,181.43], [1213747200000,178.75], [1213833600000,180.90], [1213920000000,175.27], [1214179200000,173.16], [1214265600000,173.25], [1214352000000,177.39], [1214438400000,168.26], [1214524800000,170.09], [1214784000000,167.44], /* Jul 2008 */ [1214870400000,174.68], [1214956800000,168.18], [1215043200000,170.12], [1215388800000,175.16], [1215475200000,179.55], [1215561600000,174.25], [1215648000000,176.63], [1215734400000,172.58], [1215993600000,173.88], [1216080000000,169.64], [1216166400000,172.81], [1216252800000,171.81], [1216339200000,165.15], [1216598400000,166.29], [1216684800000,162.02], [1216771200000,166.26], [1216857600000,159.03], [1216944000000,162.12], [1217203200000,154.40], [1217289600000,157.08], [1217376000000,159.88], [1217462400000,158.95], /* Aug 2008 */ [1217548800000,156.66], [1217808000000,153.23], [1217894400000,160.64], [1217980800000,164.19], [1218067200000,163.57], [1218153600000,169.55], [1218412800000,173.56], [1218499200000,176.73], [1218585600000,179.30], [1218672000000,179.32], [1218758400000,175.74], [1219017600000,175.39], [1219104000000,173.53], [1219190400000,175.84], [1219276800000,174.29], [1219363200000,176.79], [1219622400000,172.55], [1219708800000,173.64], [1219795200000,174.67], [1219881600000,173.74], [1219968000000,169.53], /* Sep 2008 */ [1220313600000,166.19], [1220400000000,166.96], [1220486400000,161.22], [1220572800000,160.18], [1220832000000,157.92], [1220918400000,151.68], [1221004800000,151.61], [1221091200000,152.65], [1221177600000,148.94], [1221436800000,140.36], [1221523200000,139.88], [1221609600000,127.83], [1221696000000,134.09], [1221782400000,140.91], [1222041600000,131.05], [1222128000000,126.84], [1222214400000,128.71], [1222300800000,131.93], [1222387200000,128.24], [1222646400000,105.26], [1222732800000,113.66], /* Oct 2008 */ [1222819200000,109.12], [1222905600000,100.10], [1222992000000,97.07], [1223251200000,98.14], [1223337600000,89.16], [1223424000000,89.79], [1223510400000,88.74], [1223596800000,96.80], [1223856000000,110.26], [1223942400000,104.08], [1224028800000,97.95], [1224115200000,101.89], [1224201600000,97.40], [1224460800000,98.44], [1224547200000,91.49], [1224633600000,96.87], [1224720000000,98.23], [1224806400000,96.38], [1225065600000,92.09], [1225152000000,99.91], [1225238400000,104.55], [1225324800000,111.04], [1225411200000,107.59], /* Nov 2008 */ [1225670400000,106.96], [1225756800000,110.99], [1225843200000,103.30], [1225929600000,99.10], [1226016000000,98.24], [1226275200000,95.88], [1226361600000,94.77], [1226448000000,90.12], [1226534400000,96.44], [1226620800000,90.24], [1226880000000,88.14], [1226966400000,89.91], [1227052800000,86.29], [1227139200000,80.49], [1227225600000,82.58], [1227484800000,92.95], [1227571200000,90.80], [1227657600000,95.00], [1227744000000,95.00], [1227830400000,92.67], /* Dec 2008 */ [1228089600000,88.93], [1228176000000,92.47], [1228262400000,95.90], [1228348800000,91.41], [1228435200000,94.00], [1228694400000,99.72], [1228780800000,100.06], [1228867200000,98.21], [1228953600000,95.00], [1229040000000,98.27], [1229299200000,94.75], [1229385600000,95.43], [1229472000000,89.16], [1229558400000,89.43], [1229644800000,90.00], [1229904000000,85.74], [1229990400000,86.38], [1230076800000,85.04], [1230163200000,85.04], [1230249600000,85.81], [1230508800000,86.61], [1230595200000,86.29], [1230681600000,85.35], /* Jan 2009 */ [1230768000000,85.35], [1230854400000,90.75], [1231113600000,94.58], [1231200000000,93.02], [1231286400000,91.01], [1231372800000,92.70], [1231459200000,90.58], [1231718400000,88.66], [1231804800000,87.71], [1231891200000,85.33], [1231977600000,83.38], [1232064000000,82.33], [1232409600000,78.20], [1232496000000,82.83], [1232582400000,88.36], [1232668800000,88.36], [1232928000000,89.64], [1233014400000,90.73], [1233100800000,94.20], [1233187200000,93.00], [1233273600000,90.13], /* Feb 2009 */ [1233532800000,91.51], [1233619200000,92.98], [1233705600000,93.55], [1233792000000,96.46], [1233878400000,99.72], [1234137600000,102.51], [1234224000000,97.83], [1234310400000,96.82], [1234396800000,99.27], [1234483200000,99.16], [1234828800000,94.53], [1234915200000,94.37], [1235001600000,90.64], [1235088000000,91.20], [1235347200000,86.95], [1235433600000,90.25], [1235520000000,91.16], [1235606400000,89.19], [1235692800000,89.31], /* Mar 2009 */ [1235952000000,87.94], [1236038400000,88.37], [1236124800000,91.17], [1236211200000,88.84], [1236297600000,85.30], [1236556800000,83.11], [1236643200000,88.63], [1236729600000,92.68], [1236816000000,96.35], [1236902400000,95.93], [1237161600000,95.42], [1237248000000,99.66], [1237334400000,101.52], [1237420800000,101.62], [1237507200000,101.59], [1237766400000,107.66], [1237852800000,106.50], [1237939200000,106.49], [1238025600000,109.87], [1238112000000,106.85], [1238371200000,104.49], [1238457600000,105.12], /* Apr 2009 */ [1238544000000,108.69], [1238630400000,112.71], [1238716800000,115.99], [1238976000000,118.45], [1239062400000,115.00], [1239148800000,116.32], [1239235200000,119.57], [1239321600000,119.57], [1239580800000,120.22], [1239667200000,118.31], [1239753600000,117.64], [1239840000000,121.45], [1239926400000,123.42], [1240185600000,120.50], [1240272000000,121.76], [1240358400000,121.51], [1240444800000,125.40], [1240531200000,123.90], [1240790400000,124.73], [1240876800000,123.90], [1240963200000,125.14], [1241049600000,125.83], /* May 2009 */ [1241136000000,127.24], [1241395200000,132.07], [1241481600000,132.71], [1241568000000,132.50], [1241654400000,129.06], [1241740800000,129.19], [1242000000000,129.57], [1242086400000,124.42], [1242172800000,119.49], [1242259200000,122.95], [1242345600000,122.42], [1242604800000,126.65], [1242691200000,127.45], [1242777600000,125.87], [1242864000000,124.18], [1242950400000,122.50], [1243296000000,130.78], [1243382400000,133.05], [1243468800000,135.07], [1243555200000,135.81], /* Jun 2009 */ [1243814400000,139.35], [1243900800000,139.49], [1243987200000,140.95], [1244073600000,143.74], [1244160000000,144.67], [1244419200000,143.85], [1244505600000,142.72], [1244592000000,140.25], [1244678400000,139.95], [1244764800000,136.97], [1245024000000,136.09], [1245110400000,136.35], [1245196800000,135.58], [1245283200000,135.88], [1245369600000,139.48], [1245628800000,137.37], [1245715200000,134.01], [1245801600000,136.22], [1245888000000,139.86], [1245974400000,142.44], [1246233600000,141.97], [1246320000000,142.43], /* Jul 2009 */ [1246406400000,142.83], [1246492800000,140.02], [1246579200000,140.02], [1246838400000,138.61], [1246924800000,135.40], [1247011200000,137.22], [1247097600000,136.36], [1247184000000,138.52], [1247443200000,142.34], [1247529600000,142.27], [1247616000000,146.88], [1247702400000,147.52], [1247788800000,151.75], [1248048000000,152.91], [1248134400000,151.51], [1248220800000,156.74], [1248307200000,157.82], [1248393600000,159.99], [1248652800000,160.10], [1248739200000,160.00], [1248825600000,160.03], [1248912000000,162.79], [1248998400000,163.39], /* Aug 2009 */ [1249257600000,166.43], [1249344000000,165.55], [1249430400000,165.11], [1249516800000,163.91], [1249603200000,165.51], [1249862400000,164.72], [1249948800000,162.83], [1250035200000,165.31], [1250121600000,168.42], [1250208000000,166.78], [1250467200000,159.59], [1250553600000,164.00], [1250640000000,164.60], [1250726400000,166.33], [1250812800000,169.22], [1251072000000,169.06], [1251158400000,169.40], [1251244800000,167.41], [1251331200000,169.45], [1251417600000,170.05], [1251676800000,168.21], /* Sep 2009 */ [1251763200000,165.30], [1251849600000,165.18], [1251936000000,166.55], [1252022400000,170.31], [1252368000000,172.93], [1252454400000,171.14], [1252540800000,172.56], [1252627200000,172.16], [1252886400000,173.72], [1252972800000,175.16], [1253059200000,181.87], [1253145600000,184.55], [1253232000000,185.02], [1253491200000,184.02], [1253577600000,184.48], [1253664000000,185.50], [1253750400000,183.82], [1253836800000,182.37], [1254096000000,186.15], [1254182400000,185.38], [1254268800000,185.35], /* Oct 2009 */ [1254355200000,180.86], [1254441600000,184.90], [1254700800000,186.02], [1254787200000,190.01], [1254873600000,190.25], [1254960000000,189.27], [1255046400000,190.47], [1255305600000,190.81], [1255392000000,190.02], [1255478400000,191.29], [1255564800000,190.56], [1255651200000,188.05], [1255910400000,189.86], [1255996800000,198.76], [1256083200000,204.92], [1256169600000,205.20], [1256256000000,203.94], [1256515200000,202.48], [1256601600000,197.37], [1256688000000,192.40], [1256774400000,196.35], [1256860800000,188.50], /* Nov 2009 */ [1257120000000,189.31], [1257206400000,188.75], [1257292800000,190.81], [1257379200000,194.03], [1257465600000,194.34], [1257724800000,201.46], [1257811200000,202.98], [1257897600000,203.25], [1257984000000,201.99], [1258070400000,204.45], [1258329600000,206.63], [1258416000000,207.00], [1258502400000,205.96], [1258588800000,200.51], [1258675200000,199.92], [1258934400000,205.88], [1259020800000,204.44], [1259107200000,204.19], [1259193600000,204.19], [1259280000000,200.59], [1259539200000,199.91], /* Dec 2009 */ [1259625600000,196.97], [1259712000000,196.23], [1259798400000,196.48], [1259884800000,193.32], [1260144000000,188.95], [1260230400000,189.87], [1260316800000,197.80], [1260403200000,196.43], [1260489600000,194.67], [1260748800000,196.98], [1260835200000,194.17], [1260921600000,195.03], [1261008000000,191.86], [1261094400000,195.43], [1261353600000,198.23], [1261440000000,200.36], [1261526400000,202.10], [1261612800000,209.04], [1261699200000,209.04], [1261958400000,211.61], [1262044800000,209.10], [1262131200000,211.64], [1262217600000,210.73], /* Jan 2010 */ [1262304000000,210.73], [1262563200000,214.01], [1262649600000,214.38], [1262736000000,210.97], [1262822400000,210.58], [1262908800000,211.98], [1263168000000,210.11], [1263254400000,207.72], [1263340800000,210.65], [1263427200000,209.43], [1263513600000,205.93], [1263772800000,205.93], [1263859200000,215.04], [1263945600000,211.72], [1264032000000,208.07], [1264118400000,197.75], [1264377600000,203.08], [1264464000000,205.94], [1264550400000,207.88], [1264636800000,199.29], [1264723200000,192.06], /* Feb 2010 */ [1264982400000,194.73], [1265068800000,195.86], [1265155200000,199.23], [1265241600000,192.05], [1265328000000,195.46], [1265587200000,194.12], [1265673600000,196.19], [1265760000000,195.12], [1265846400000,198.67], [1265932800000,200.38], [1266192000000,200.38], [1266278400000,203.40], [1266364800000,202.55], [1266451200000,202.93], [1266537600000,201.67], [1266796800000,200.42], [1266883200000,197.06], [1266969600000,200.66], [1267056000000,202.00], [1267142400000,204.62], /* Mar 2010 */ [1267401600000,208.99], [1267488000000,208.85], [1267574400000,209.33], [1267660800000,210.71], [1267747200000,218.95], [1268006400000,219.08], [1268092800000,223.02], [1268179200000,224.84], [1268265600000,225.50], [1268352000000,226.60], [1268611200000,223.84], [1268697600000,224.45], [1268784000000,224.12], [1268870400000,224.65], [1268956800000,222.25], [1269216000000,224.75], [1269302400000,228.36], [1269388800000,229.37], [1269475200000,226.65], [1269561600000,230.90], [1269820800000,232.39], [1269907200000,235.84], [1269993600000,235.00], /* Apr 2010 */ [1270080000000,235.97], [1270166400000,235.97], [1270425600000,238.49], [1270512000000,239.54], [1270598400000,240.60], [1270684800000,239.95], [1270771200000,241.79], [1271030400000,242.29], [1271116800000,242.43], [1271203200000,245.69], [1271289600000,248.92], [1271376000000,247.40], [1271635200000,247.07], [1271721600000,244.59], [1271808000000,259.22], [1271894400000,266.47], [1271980800000,270.83], [1272240000000,269.50], [1272326400000,262.04], [1272412800000,261.60], [1272499200000,268.64], [1272585600000,261.09], /* May 2010 */ [1272844800000,266.35], [1272931200000,258.68], [1273017600000,255.98], [1273104000000,246.25], [1273190400000,235.86], [1273449600000,253.99], [1273536000000,256.52], [1273622400000,262.09], [1273708800000,258.36], [1273795200000,253.82], [1274054400000,254.22], [1274140800000,252.36], [1274227200000,248.34], [1274313600000,237.76], [1274400000000,242.32], [1274659200000,246.76], [1274745600000,245.22], [1274832000000,244.11], [1274918400000,253.35], [1275004800000,256.88], [1275264000000,256.88], /* Jun 2010 */ [1275350400000,260.83], [1275436800000,263.95], [1275523200000,263.12], [1275609600000,255.96], [1275868800000,250.94], [1275955200000,249.33], [1276041600000,243.20], [1276128000000,250.51], [1276214400000,253.51], [1276473600000,254.28], [1276560000000,259.69], [1276646400000,267.25], [1276732800000,271.87], [1276819200000,274.07], [1277078400000,270.17], [1277164800000,273.85], [1277251200000,270.97], [1277337600000,269.00], [1277424000000,266.70], [1277683200000,268.30], [1277769600000,256.17], [1277856000000,251.53], /* Jul 2010 */ [1277942400000,248.48], [1278028800000,246.94], [1278288000000,246.94], [1278374400000,248.63], [1278460800000,258.66], [1278547200000,258.09], [1278633600000,259.62], [1278892800000,257.28], [1278979200000,251.80], [1279065600000,252.73], [1279152000000,251.45], [1279238400000,249.90], [1279497600000,245.58], [1279584000000,251.89], [1279670400000,254.24], [1279756800000,259.02], [1279843200000,259.94], [1280102400000,259.28], [1280188800000,264.08], [1280275200000,260.96], [1280361600000,258.11], [1280448000000,257.25], /* Aug 2010 */ [1280707200000,261.85], [1280793600000,261.93], [1280880000000,262.98], [1280966400000,261.70], [1281052800000,260.09], [1281312000000,261.75], [1281398400000,259.41], [1281484800000,250.19], [1281571200000,251.79], [1281657600000,249.10], [1281916800000,247.64], [1282003200000,251.97], [1282089600000,253.07], [1282176000000,249.88], [1282262400000,249.64], [1282521600000,245.80], [1282608000000,239.93], [1282694400000,242.89], [1282780800000,240.28], [1282867200000,241.62], [1283126400000,242.50], [1283212800000,243.10], /* Sep 2010 */ [1283299200000,250.33], [1283385600000,252.17], [1283472000000,258.77], [1283731200000,258.77], [1283817600000,257.81], [1283904000000,262.92], [1283990400000,263.07], [1284076800000,263.41], [1284336000000,267.04], [1284422400000,268.06], [1284508800000,270.22], [1284595200000,276.57], [1284681600000,275.37], [1284940800000,283.23], [1285027200000,283.77], [1285113600000,287.75], [1285200000000,288.92], [1285286400000,292.32], [1285545600000,291.16], [1285632000000,286.86], [1285718400000,287.37], [1285804800000,283.75], /* Oct 2010 */ [1285891200000,282.52], [1286150400000,278.64], [1286236800000,288.94], [1286323200000,289.19], [1286409600000,289.22], [1286496000000,294.07], [1286755200000,295.36], [1286841600000,298.54], [1286928000000,300.14], [1287014400000,302.31], [1287100800000,314.74], [1287360000000,318.00], [1287446400000,309.49], [1287532800000,310.53], [1287619200000,309.52], [1287705600000,307.47], [1287964800000,308.84], [1288051200000,308.05], [1288137600000,307.83], [1288224000000,305.24], [1288310400000,300.98], /* Nov 2010 */ [1288569600000,304.18], [1288656000000,309.36], [1288742400000,312.80], [1288828800000,318.27], [1288915200000,317.13], [1289174400000,318.62], [1289260800000,316.08], [1289347200000,318.03], [1289433600000,316.66], [1289520000000,308.03], [1289779200000,307.04], [1289865600000,301.59], [1289952000000,300.50], [1290038400000,308.43], [1290124800000,306.73], [1290384000000,313.36], [1290470400000,308.73], [1290556800000,314.80], [1290729600000,315.00], [1290988800000,316.87], [1291075200000,311.15], /* Dec 2010 */ [1291161600000,316.40], [1291248000000,318.15], [1291334400000,317.44], [1291593600000,320.15], [1291680000000,318.21], [1291766400000,321.01], [1291852800000,319.76], [1291939200000,320.56], [1292198400000,321.67], [1292284800000,320.29], [1292371200000,320.36], [1292457600000,321.25], [1292544000000,320.61], [1292803200000,322.21], [1292889600000,324.20], [1292976000000,325.16], [1293062400000,323.60], [1293408000000,324.68], [1293494400000,325.47], [1293580800000,325.29], [1293667200000,323.66], [1293753600000,322.56], /* Jan 2011 */ [1294012800000,329.57], [1294099200000,331.29], [1294185600000,334.00], [1294272000000,333.73], [1294358400000,336.12], [1294617600000,342.46], [1294704000000,341.64], [1294790400000,344.42], [1294876800000,345.68], [1294963200000,348.48], [1295308800000,340.65], [1295395200000,338.84], [1295481600000,332.68], [1295568000000,326.72], [1295827200000,337.45], [1295913600000,341.40], [1296000000000,343.85], [1296086400000,343.21], [1296172800000,336.10], [1296432000000,339.32], /* Feb 2011 */ [1296518400000,345.03], [1296604800000,344.32], [1296691200000,343.44], [1296777600000,346.50], [1297036800000,351.88], [1297123200000,355.20], [1297209600000,358.16], [1297296000000,354.54], [1297382400000,356.85], [1297641600000,359.18], [1297728000000,359.90], [1297814400000,363.13], [1297900800000,358.30], [1297987200000,350.56], [1298332800000,338.61], [1298419200000,342.62], [1298505600000,342.88], [1298592000000,348.16], [1298851200000,353.21], /* Mar 2011 */ [1298937600000,349.31], [1299024000000,352.12], [1299110400000,359.56], [1299196800000,360.00], [1299456000000,355.36], [1299542400000,355.76], [1299628800000,352.47], [1299715200000,346.67], [1299801600000,351.99], [1300060800000,353.56], [1300147200000,345.43], [1300233600000,330.01], [1300320000000,334.64], [1300406400000,330.67], [1300665600000,339.30], [1300752000000,341.20], [1300838400000,339.19], [1300924800000,344.97], [1301011200000,351.54], [1301270400000,350.44], [1301356800000,350.96], [1301443200000,348.63], [1301529600000,348.51], /* Apr 2011 */ [1301616000000,344.56], [1301875200000,341.19], [1301961600000,338.89], [1302048000000,338.04], [1302134400000,338.08], [1302220800000,335.06], [1302480000000,330.80], [1302566400000,332.40], [1302652800000,336.13], [1302739200000,332.42], [1302825600000,327.46], [1303084800000,331.85], [1303171200000,337.86], [1303257600000,342.41], [1303344000000,350.70], [1303689600000,353.01], [1303776000000,350.42], [1303862400000,350.15], [1303948800000,346.75], [1304035200000,350.13], /* May 2011 */ [1304294400000,346.28], [1304380800000,348.20], [1304467200000,349.57], [1304553600000,346.75], [1304640000000,346.66], [1304899200000,347.60], [1304985600000,349.45], [1305072000000,347.23], [1305158400000,346.57], [1305244800000,340.50], [1305504000000,333.30], [1305590400000,336.14], [1305676800000,339.87], [1305763200000,340.53], [1305849600000,335.22], [1306108800000,334.40], [1306195200000,332.19], [1306281600000,336.78], [1306368000000,335.00], [1306454400000,337.41], [1306800000000,347.83], /* Jun 2011 */ [1306886400000,345.51], [1306972800000,346.10], [1307059200000,343.44], [1307318400000,338.04], [1307404800000,332.04], [1307491200000,332.24], [1307577600000,331.49], [1307664000000,325.90], [1307923200000,326.60], [1308009600000,332.44], [1308096000000,326.75], [1308182400000,325.16], [1308268800000,320.26], [1308528000000,315.32], [1308614400000,325.30], [1308700800000,322.61], [1308787200000,331.23], [1308873600000,326.35], [1309132800000,332.04], [1309219200000,335.26], [1309305600000,334.04], [1309392000000,335.67], /* Jul 2011 */ [1309478400000,343.26], [1309824000000,349.43], [1309910400000,351.76], [1309996800000,357.20], [1310083200000,359.71], [1310342400000,354.00], [1310428800000,353.75], [1310515200000,358.02], [1310601600000,357.77], [1310688000000,364.92], [1310947200000,373.80], [1311033600000,376.85], [1311120000000,386.90], [1311206400000,387.29], [1311292800000,393.30], [1311552000000,398.50], [1311638400000,403.41], [1311724800000,392.59], [1311811200000,391.82], [1311897600000,390.48], /* Aug 2011 */ [1312156800000,396.75], [1312243200000,388.21], [1312329600000,392.57], [1312416000000,377.37], [1312502400000,373.62], [1312761600000,353.21], [1312848000000,374.01], [1312934400000,363.69], [1313020800000,373.70], [1313107200000,376.99], [1313366400000,383.41], [1313452800000,380.48], [1313539200000,380.44], [1313625600000,366.05], [1313712000000,356.03], [1313971200000,356.44], [1314057600000,373.60], [1314144000000,376.18], [1314230400000,373.72], [1314316800000,383.58], [1314576000000,389.97], [1314662400000,389.99], [1314748800000,384.83], /* Sep 2011 */ [1314835200000,381.03], [1314921600000,374.05], [1315267200000,379.74], [1315353600000,383.93], [1315440000000,384.14], [1315526400000,377.48], [1315785600000,379.94], [1315872000000,384.62], [1315958400000,389.30], [1316044800000,392.96], [1316131200000,400.50], [1316390400000,411.63], [1316476800000,413.45], [1316563200000,412.14], [1316649600000,401.82], [1316736000000,404.30], [1316995200000,403.17], [1317081600000,399.26], [1317168000000,397.01], [1317254400000,390.57], [1317340800000,381.32], /* Oct 2011 */ [1317600000000,374.60], [1317686400000,372.50], [1317772800000,378.25], [1317859200000,377.37], [1317945600000,369.80], [1318204800000,388.81], [1318291200000,400.29], [1318377600000,402.19], [1318464000000,408.43], [1318550400000,422.00], [1318809600000,419.99], [1318896000000,422.24], [1318982400000,398.62], [1319068800000,395.31], [1319155200000,392.87], [1319414400000,405.77], [1319500800000,397.77], [1319587200000,400.60], [1319673600000,404.69], [1319760000000,404.95], [1320019200000,404.78], /* Nov 2011 */ [1320105600000,396.51], [1320192000000,397.41], [1320278400000,403.07], [1320364800000,400.24], [1320624000000,399.73], [1320710400000,406.23], [1320796800000,395.28], [1320883200000,385.22], [1320969600000,384.62], [1321228800000,379.26], [1321315200000,388.83], [1321401600000,384.77], [1321488000000,377.41], [1321574400000,374.94], [1321833600000,369.01], [1321920000000,376.51], [1322006400000,366.99], [1322179200000,363.57], [1322438400000,376.12], [1322524800000,373.20], [1322611200000,382.20], /* Dec 2011 */ [1322697600000,387.93], [1322784000000,389.70], [1323043200000,393.01], [1323129600000,390.95], [1323216000000,389.09], [1323302400000,390.66], [1323388800000,393.62], [1323648000000,391.84], [1323734400000,388.81], [1323820800000,380.19], [1323907200000,378.94], [1323993600000,381.02], [1324252800000,382.21], [1324339200000,395.95], [1324425600000,396.44], [1324512000000,398.55], [1324598400000,403.33], [1324944000000,406.53], [1325030400000,402.64], [1325116800000,405.12], [1325203200000,405.00], /* Jan 2012 */ [1325548800000,411.23], [1325635200000,413.44], [1325721600000,418.03], [1325808000000,422.40], [1326067200000,421.73], [1326153600000,423.24], [1326240000000,422.55], [1326326400000,421.39], [1326412800000,419.81], [1326758400000,424.70], [1326844800000,429.11], [1326931200000,427.75], [1327017600000,420.30], [1327276800000,427.41], [1327363200000,420.41], [1327449600000,446.66], [1327536000000,444.63], [1327622400000,447.28], [1327881600000,453.01], [1327968000000,456.48], /* Feb 2012 */ [1328054400000,456.19], [1328140800000,455.12], [1328227200000,459.68], [1328486400000,463.97], [1328572800000,468.83], [1328659200000,476.68], [1328745600000,493.17], [1328832000000,493.42], [1329091200000,502.60], [1329177600000,509.46], [1329264000000,497.67], [1329350400000,502.21], [1329436800000,502.12], [1329782400000,514.85], [1329868800000,513.04], [1329955200000,516.39], [1330041600000,522.41], [1330300800000,525.76], [1330387200000,535.41], [1330473600000,542.44], /* Mar 2012 */ [1330560000000,544.47], [1330646400000,545.18], [1330905600000,533.16], [1330992000000,530.26], [1331078400000,530.69], [1331164800000,541.99], [1331251200000,545.17], [1331510400000,552.00], [1331596800000,568.10], [1331683200000,589.58], [1331769600000,585.56], [1331856000000,585.57], [1332115200000,601.10], [1332201600000,605.96], [1332288000000,602.50], [1332374400000,599.34], [1332460800000,596.05], [1332720000000,606.98], [1332806400000,614.48], [1332892800000,617.62], [1332979200000,609.86], [1333065600000,599.55], /* Apr 2012 */ [1333324800000,618.63], [1333411200000,629.32], [1333497600000,624.31], [1333584000000,633.68], [1333929600000,636.23], [1334016000000,628.44], [1334102400000,626.20], [1334188800000,622.77], [1334275200000,605.23], [1334534400000,580.13], [1334620800000,609.70], [1334707200000,608.34], [1334793600000,587.44], [1334880000000,572.98], [1335139200000,571.70], [1335225600000,560.28], [1335312000000,610.00], [1335398400000,607.70], [1335484800000,603.00], [1335744000000,583.98], /* May 2012 */ [1335830400000,582.13], [1335916800000,585.98], [1336003200000,581.82], [1336089600000,565.25], [1336348800000,569.48], [1336435200000,568.18], [1336521600000,569.18], [1336608000000,570.52], [1336694400000,566.71], [1336953600000,558.22], [1337040000000,553.17], [1337126400000,546.08], [1337212800000,530.12], [1337299200000,530.38], [1337558400000,561.28], [1337644800000,556.97], [1337731200000,570.56], [1337817600000,565.32], [1337904000000,562.29], [1338249600000,572.27], [1338336000000,579.17], [1338422400000,577.73], /* Jun 2012 */ [1338508800000,560.99], [1338768000000,564.29], [1338854400000,562.83], [1338940800000,571.46], [1339027200000,571.72], [1339113600000,580.32], [1339372800000,571.17], [1339459200000,576.16], [1339545600000,572.16], [1339632000000,571.53], [1339718400000,574.13], [1339977600000,585.78], [1340064000000,587.41], [1340150400000,585.74], [1340236800000,577.67], [1340323200000,582.10], [1340582400000,570.76], [1340668800000,572.02], [1340755200000,574.50], [1340841600000,569.05], [1340928000000,584.00], /* Jul 2012 */ [1341187200000,592.52], [1341273600000,599.41], [1341446400000,609.94], [1341532800000,605.88], [1341792000000,613.89], [1341878400000,608.21], [1341964800000,604.43], [1342051200000,598.90], [1342137600000,604.97], [1342396800000,606.91], [1342483200000,606.94], [1342569600000,606.26], [1342656000000,614.32], [1342742400000,604.30], [1343001600000,603.83], [1343088000000,600.92], [1343174400000,574.97], [1343260800000,574.88], [1343347200000,585.16], [1343606400000,595.03], [1343692800000,610.76], /* Aug 2012 */ [1343779200000,606.81], [1343865600000,607.79], [1343952000000,615.70], [1344211200000,622.55], [1344297600000,620.91], [1344384000000,619.86], [1344470400000,620.73], [1344556800000,621.70], [1344816000000,630.00], [1344902400000,631.69], [1344988800000,630.83], [1345075200000,636.34], [1345161600000,648.11], [1345420800000,665.15], [1345507200000,656.06], [1345593600000,668.87], [1345680000000,662.63], [1345766400000,663.22], [1346025600000,675.68], [1346112000000,674.80], [1346198400000,673.47], [1346284800000,663.87], [1346371200000,665.24], /* Sep 2012 */ [1346716800000,674.97], [1346803200000,670.23], [1346889600000,676.27], [1346976000000,680.44], [1347235200000,662.74], [1347321600000,660.59], [1347408000000,669.79], [1347494400000,682.98], [1347580800000,691.28], [1347840000000,699.78], [1347926400000,701.91], [1348012800000,702.10], [1348099200000,698.70], [1348185600000,700.10], [1348444800000,690.79], [1348531200000,673.54], [1348617600000,665.18], [1348704000000,681.32], [1348790400000,667.10], /* Oct 2012 */ [1349049600000,659.39], [1349136000000,661.31], [1349222400000,671.45], [1349308800000,666.80], [1349395200000,652.59], [1349654400000,638.17], [1349740800000,635.85], [1349827200000,640.91], [1349913600000,628.10], [1350000000000,629.71], [1350259200000,634.76], [1350345600000,649.79], [1350432000000,644.61], [1350518400000,632.64], [1350604800000,609.84], [1350864000000,634.03], [1350950400000,613.36], [1351036800000,616.83], [1351123200000,609.54], [1351209600000,604.00], [1351641600000,595.32], /* Nov 2012 */ [1351728000000,596.54], [1351814400000,576.80], [1352073600000,584.62], [1352160000000,582.85], [1352246400000,558.00], [1352332800000,537.75], [1352419200000,547.06], [1352678400000,542.83], [1352764800000,542.90], [1352851200000,536.88], [1352937600000,525.62], [1353024000000,527.68], [1353283200000,565.73], [1353369600000,560.91], [1353456000000,561.70], [1353628800000,571.50], [1353888000000,589.53], [1353974400000,584.78], [1354060800000,582.94], [1354147200000,589.36], [1354233600000,585.28], /* Dec 2012 */ [1354492800000,586.19], [1354579200000,575.85], [1354665600000,538.79], [1354752000000,547.24], [1354838400000,533.25], [1355097600000,529.82], [1355184000000,541.39], [1355270400000,539.00], [1355356800000,529.69], [1355443200000,509.79], [1355702400000,518.83], [1355788800000,533.90], [1355875200000,526.31], [1355961600000,521.73], [1356048000000,519.33], [1356307200000,520.17], [1356480000000,513.00], [1356566400000,515.06], [1356652800000,509.59], [1356912000000,532.17], /* Jan 2013 */ [1357084800000,549.03], [1357171200000,542.10], [1357257600000,527.00], [1357516800000,523.90], [1357603200000,525.31], [1357689600000,517.10], [1357776000000,523.51], [1357862400000,520.30], [1358121600000,501.75], [1358208000000,485.92], [1358294400000,506.09], [1358380800000,502.68], [1358467200000,500.00], [1358812800000,504.77], [1358899200000,514.00], [1358985600000,450.50], [1359072000000,439.88], [1359331200000,449.83], [1359417600000,458.27], [1359504000000,456.83], [1359590400000,455.49], /* Feb 2013 */ [1359676800000,453.62], [1359936000000,442.32], [1360022400000,457.84], [1360108800000,457.35], [1360195200000,468.22], [1360281600000,474.98], [1360540800000,479.93], [1360627200000,467.90], [1360713600000,467.01], [1360800000000,466.59], [1360886400000,460.16], [1361232000000,459.99], [1361318400000,448.85], [1361404800000,446.06], [1361491200000,450.81], [1361750400000,442.80], [1361836800000,448.97], [1361923200000,444.57], [1362009600000,441.40], /* Mar 2013 */ [1362096000000,430.47], [1362355200000,420.05], [1362441600000,431.14], [1362528000000,425.66], [1362614400000,430.58], [1362700800000,431.72], [1362960000000,437.87], [1363046400000,428.43], [1363132800000,428.35], [1363219200000,432.50], [1363305600000,443.66], [1363564800000,455.72], [1363651200000,454.49], [1363737600000,452.08], [1363824000000,452.73], [1363910400000,461.91], [1364169600000,463.58], [1364256000000,461.14], [1364342400000,452.08], [1364428800000,442.66], /* Apr 2013 */ [1364774400000,428.91], [1364860800000,429.79], [1364947200000,431.99], [1365033600000,427.72], [1365120000000,423.20], [1365379200000,426.21], [1365465600000,426.98], [1365552000000,435.69], [1365638400000,434.33], [1365724800000,429.80], [1365984000000,419.85], [1366070400000,426.24], [1366156800000,402.80], [1366243200000,392.05], [1366329600000,390.53], [1366588800000,398.67], [1366675200000,406.13], [1366761600000,405.46], [1366848000000,408.38], [1366934400000,417.20], [1367193600000,430.12], [1367280000000,442.78], /* May 2013 */ [1367366400000,439.29], [1367452800000,445.52], [1367539200000,449.98], [1367798400000,460.71], [1367884800000,458.66], [1367971200000,463.84], [1368057600000,456.77], [1368144000000,452.97] ];
25.371106
25
0.681463
c0ea1bcfdeef477f9244236ee8f26fea454fb5df
882
js
JavaScript
react_spa/src/components/ReviewDisplay.js
Reidwilliamson13/run-review
56ac7cd8c5d8146c7b35a67939f7dcd4a0c784f2
[ "MIT" ]
null
null
null
react_spa/src/components/ReviewDisplay.js
Reidwilliamson13/run-review
56ac7cd8c5d8146c7b35a67939f7dcd4a0c784f2
[ "MIT" ]
null
null
null
react_spa/src/components/ReviewDisplay.js
Reidwilliamson13/run-review
56ac7cd8c5d8146c7b35a67939f7dcd4a0c784f2
[ "MIT" ]
1
2022-03-15T21:22:04.000Z
2022-03-15T21:22:04.000Z
import React from "react"; const ReviewDisplay = ({ allReviews, loading }) => { function createCard(allReviews) { const reviewCard = allReviews.map((review, idx) => { return ( <div className="d-flex justify-content-center text-dark" key={idx}> <div className="card shadow-lg w-50 mb-5"> <div className="card-body"> <h5 className="card-title">{review.nameInput} says...</h5> <h6 className="card-subtitle mb-2 text-muted"> ({review.trailInput}) </h6> <p className="card-text">{review.reviewInput}</p> </div> </div> </div> ); }); return reviewCard; } return ( <div> {!loading && ( <div className="card-container">{createCard(allReviews)}</div> )} </div> ); }; export default ReviewDisplay;
26.727273
75
0.538549
c0ea3434ed8f6474eb6cf06bd16c6aee29a6732f
368
js
JavaScript
data/js/60/8d/17/00/00/00.24.js
p-g-krish/deepmac-tracker
44d625a6b1ec30bf52f8d12a44b0afc594eb5f94
[ "CC-BY-4.0", "MIT" ]
null
null
null
data/js/60/8d/17/00/00/00.24.js
p-g-krish/deepmac-tracker
44d625a6b1ec30bf52f8d12a44b0afc594eb5f94
[ "CC-BY-4.0", "MIT" ]
null
null
null
data/js/60/8d/17/00/00/00.24.js
p-g-krish/deepmac-tracker
44d625a6b1ec30bf52f8d12a44b0afc594eb5f94
[ "CC-BY-4.0", "MIT" ]
null
null
null
deepmacDetailCallback("608d17000000/24",[{"d":"2009-10-30","t":"add","a":"141 Chesterfield Industrial Blvd\nChesterfield MO 63005-1219\n\n","c":"UNITED STATES","o":"Sentrus Government Systems Division, Inc"},{"d":"2015-08-27","t":"change","a":"141 Chesterfield Industrial Blvd Chesterfield MO US 63005-1219","c":"US","o":"Sentrus Government Systems Division, Inc"}]);
184
367
0.714674
c0ea78bce1c9fc31e18ac961b0d1b1bca7753069
853
js
JavaScript
src/components/Newsitem.js
JatinPandey-ops/inscribe-news
9cafd1b2b3841597b6e65cbbe81a26057d5b4b9f
[ "MIT" ]
1
2021-12-31T21:08:57.000Z
2021-12-31T21:08:57.000Z
src/components/Newsitem.js
JatinPandey-ops/inscribe-news
9cafd1b2b3841597b6e65cbbe81a26057d5b4b9f
[ "MIT" ]
null
null
null
src/components/Newsitem.js
JatinPandey-ops/inscribe-news
9cafd1b2b3841597b6e65cbbe81a26057d5b4b9f
[ "MIT" ]
null
null
null
import React from "react"; export default function Newsitem(props) { return ( <div className ={`container col-md-4 my-3 `}> <div className={`card bg-${props.Mode}`}style={{minHeight:"33rem"}}> <img src={props.imgUrl === null?process.env.PUBLIC_URL + '/img/no-img.jpeg' : props.imgUrl } className="card-img-top" alt="loading..." style={{height:"15rem"}} /> <div className={`card-body text-${props.Mode === "light"?"dark":"light"}`}> <h5 className="card-title"><b>{props.title}</b></h5> <p className="card-text">{props.description}</p> <a href={props.url} target = "_blank" className={`btn btn-outline-${props.Mode === "light"?"dark":"light"}`}style = {{position:"absolute",bottom:"10px"}}> Read More at <b>{props.src}</b> </a> </div> </div> </div> ); }
44.894737
170
0.576788
c0eae11c0151cfca637dd9d00274ca78bf620980
4,336
js
JavaScript
newsApp/pages/index/index.js
yiranguan/York-News-miniPro
9df8220369f6fa33d5ed4e6fa275757b4d5cc7d9
[ "MIT" ]
2
2018-04-17T14:16:18.000Z
2018-04-21T06:37:42.000Z
newsApp/pages/index/index.js
yiranguan/York-News-miniPro
9df8220369f6fa33d5ed4e6fa275757b4d5cc7d9
[ "MIT" ]
3
2018-04-17T11:02:12.000Z
2018-04-21T13:00:18.000Z
newsApp/pages/index/index.js
yiranguan/York-News-miniPro
9df8220369f6fa33d5ed4e6fa275757b4d5cc7d9
[ "MIT" ]
null
null
null
let TYPEINDEX = 0 // 新闻种类在this.data.newsType数组中的位置 let LISTINDEX = 7 // 加载新闻列表的数量 let TOUCHDOT = 0 // 滑动触摸开始位置 let INTERVAL = '' // 滑动行为持续的时间 Page({ data:{ newsType:[ { text: '国内', type: 'gn', select: 'selected', selectLine: 'selected-line', code:0 }, { text: '国际', type: 'gj', select: '', selectLine: '', code: 1 }, { text: '财经', type: 'cj', select: '', selectLine: '', code: 2 }, { text: '娱乐', type: 'yl', select: '', selectLine: '', code: 3 }, { text: '军事', type: 'js', select: '', selectLine: '', code: 4 }, { text: '体育', type: 'ty', select: '', selectLine: '', code: 5 }, { text: '其他', type: 'other', select: '', selectLine: '', code: 6 } ], newTypePicURL: '/images/gn-pic.jpg', newsList: [], }, onLoad() { this.getList(TYPEINDEX, LISTINDEX) wx.showLoading({ title: '加载中', }) }, // 下方方法:点击分类,实现分类文字、标题图片的变化,以及不同列表的渲染 onNewsTypeTap(event){ LISTINDEX = 7 TYPEINDEX = event.currentTarget.dataset.type this.setNewsTypeStyle() this.getList(TYPEINDEX, LISTINDEX) wx.showLoading({ title: '加载中', }) }, onShow(){ clearInterval(INTERVAL); }, onNewsTap(event) { let id = event.currentTarget.dataset.type let newsType = this.data.newsType[TYPEINDEX].type wx.navigateTo({ url: '../detail/detail?id=' + id + '&type=' + newsType }) }, contentTouchStart(event){ TOUCHDOT = event.touches[0].pageX // 获取触摸时的原点 // 使用js计时器记录时间 INTERVAL = setInterval(() => {}, 100) }, contentTouchEnd(event){ let touchMove = event.changedTouches[0].pageX // 向左滑动 if (touchMove - TOUCHDOT <= -100) { if (TYPEINDEX<6){ LISTINDEX = 7 TYPEINDEX += 1 this.setNewsTypeStyle() this.getList(TYPEINDEX, LISTINDEX) wx.showLoading({ title: '加载中', }) } } // 向右滑动 if (touchMove - TOUCHDOT >= 100) { if (TYPEINDEX > 0) { LISTINDEX = 7 TYPEINDEX -= 1 this.setNewsTypeStyle() this.getList(TYPEINDEX, LISTINDEX) wx.showLoading({ title: '加载中', }) } } clearInterval(INTERVAL); // 清除setInterval }, // 下拉刷新 onPullDownRefresh(){ LISTINDEX = 7 this.getList(TYPEINDEX, LISTINDEX,() => { wx.stopPullDownRefresh() }) wx.showLoading({ title: '加载中', }) }, // 触底加载 onReachBottom(){ LISTINDEX += 7 this.getList(TYPEINDEX, LISTINDEX) wx.showLoading({ title: '加载中', }) }, // 下方getList()方法用来获取数据并设置data getList(typeIndex, listIndex, callback){ wx.request({ url: 'https://test-miniprogram.com/api/news/list', data: { 'type': this.data.newsType[typeIndex].type }, success:res => { let result = res.data.result this.setNewsListData(result, listIndex) }, fail:res => { wx.showToast({ title: '尴尬了,页面加载失败', }) }, complete:() => { callback && callback() wx.hideLoading(); } }) }, // 下方setNewsListData(result, listIndex)方法,用来设置data,渲染页面 setNewsListData(result, listIndex){ let newsList = [] let listLength = 0 if(listIndex > result.length){ listLength = result.length }else{ listLength = listIndex } for (let i = 0; i < listLength; i++) { let content = result[i] content.date = content.date.slice(0,10) newsList.push( content ) } this.setData({ newsList: newsList }) }, // 下方方法实现分类文字效果、标题图片的变化 setNewsTypeStyle(){ let newsType = [] for (let i = 0; i < 7; i++) { let content = this.data.newsType[i] content.select = '' content.selectLine = '' newsType.push(content) } newsType[TYPEINDEX].select = 'selected' newsType[TYPEINDEX].selectLine = 'selected-line' this.setData({ newsType: newsType, newTypePicURL: '/images/' + newsType[TYPEINDEX].type + '-pic.jpg' }) }, })
21.359606
71
0.515452
c0eaf692f22ad0ac60aa0d576964a0c1303f60c8
485
js
JavaScript
frontend/reducers/auth_page_ui_reducer.js
Jathrone/Slick
e483c17c65dd834115c2c5de6cc149ad31fe7e59
[ "MIT" ]
4
2019-05-29T18:34:45.000Z
2019-06-05T22:41:26.000Z
frontend/reducers/auth_page_ui_reducer.js
Jathrone/Slick
e483c17c65dd834115c2c5de6cc149ad31fe7e59
[ "MIT" ]
12
2019-04-29T23:06:04.000Z
2022-03-30T23:08:12.000Z
frontend/reducers/auth_page_ui_reducer.js
Jathrone/Slick
e483c17c65dd834115c2c5de6cc149ad31fe7e59
[ "MIT" ]
null
null
null
import { RECEIVE_AUTH_PAGE_UI, ClEAR_AUTH_PAGE_UI } from "../actions/auth_page_ui_actions"; import { merge } from "lodash"; const authPageUiReducer = (state = {}, action) => { let newState; switch (action.type) { case RECEIVE_AUTH_PAGE_UI: newState = merge({}, state, action.payload ); return newState; case ClEAR_AUTH_PAGE_UI: return {}; default: return state; } } export default authPageUiReducer;
28.529412
91
0.620619
c0eb74205f48e9a402e25ed5133901ea7f3933dc
741
js
JavaScript
15_ReduxMiddleware/redux-thunk-middleware-tutorial/src/components/Sample.js
InSeong-So/ReactCrash
9caceb8c6e2d8b2378db9c6e0ad7afe8e6739232
[ "MIT" ]
null
null
null
15_ReduxMiddleware/redux-thunk-middleware-tutorial/src/components/Sample.js
InSeong-So/ReactCrash
9caceb8c6e2d8b2378db9c6e0ad7afe8e6739232
[ "MIT" ]
1
2021-08-24T01:40:52.000Z
2021-08-24T01:40:52.000Z
15_ReduxMiddleware/redux-thunk-middleware-tutorial/src/components/Sample.js
InSeong-So/ReactCrash
9caceb8c6e2d8b2378db9c6e0ad7afe8e6739232
[ "MIT" ]
2
2021-08-24T00:22:51.000Z
2022-03-27T16:14:17.000Z
import React from 'react'; const Sample = ({ loadingPost, loadingUsers, post, users }) => { return ( <div> <section> <h1>포스트</h1> {loadingPost && 'Now Loading...'} {!loadingPost && post && ( <div> <h3>{post.title}</h3> <h3>{post.body}</h3> </div> )} </section> <hr /> <section> <h1>사용자 목록</h1> {loadingUsers && 'Now Loading...'} {!loadingUsers && users && ( <ul> {users.map(user => ( <li key={user.id}> {user.username} ({user.email}) </li> ))} </ul> )}; </section> </div> ); }; export default Sample;
21.171429
64
0.39946
c0ebd53ef9852b7eefd215cf84556f89dfea6576
2,284
js
JavaScript
3rd/bar.js
AruzhanST/datavisualization
947a8fcce78ed81aa5ef01f74e3872491127e8f8
[ "Apache-2.0" ]
null
null
null
3rd/bar.js
AruzhanST/datavisualization
947a8fcce78ed81aa5ef01f74e3872491127e8f8
[ "Apache-2.0" ]
null
null
null
3rd/bar.js
AruzhanST/datavisualization
947a8fcce78ed81aa5ef01f74e3872491127e8f8
[ "Apache-2.0" ]
null
null
null
async function drawBar() { const dataset = await d3.json("./my_weather_data.json") console.table(dataset); // 1) Accessor const humidityAccessor = d => d.humidity; const yAccessor = d => d.length; const width = 600 let dimensions = { width: width, height: width*0.6, margin: { top: 30, right: 10, bottom: 50, left: 50, }, } dimensions.boundedWidth = dimensions.width - dimensions.margin.left - dimensions.margin.right; dimensions.boundedHeight = dimensions.height - dimensions.margin.top - dimensions.margin.bottom; // 3) Draw canvas const wrapper = d3.select("#wrapper") .append("svg") .attr("width", dimensions.width) .attr("height", dimensions.height) const bounds = wrapper.append("g") .style("translate", `translate(${dimensions.margin.left}px,${dimensions.margin.top}px)`); const xScaler = d3.scaleLinear() .domain(d3.extent(dataset,humidityAccessor)) .range([0,dimensions.boundedWidth]) .nice() const binsGen = d3.bin() .domain(xScaler.domain()) .value(humidityAccessor) .thresholds(12) const bins = binsGen(dataset); console.log(bins); const yScaler = d3.scaleLinear() .domain([0, d3.max(bins, yAccessor)]) .range([dimensions.boundedHeight,0]) const binsGroup = bounds.append("g"); const binGroups = binsGroup.selectAll("g") .data(bins) .enter() .append("g"); const barPadding = 1 const barRect = binGroups.append("rect") .attr("x", d => xScaler(d.x0) + barPadding/2) .attr("y", d => yScaler(yAccessor(d))) .attr("width", d => d3.max([0, xScaler(d.x1) - xScaler(d.x0) - barPadding])) .attr("height", d => dimensions.boundedHeight - yScaler(yAccessor(d))) .attr("fill", "#1111EE"); // For home assignment (lab3), we had to create x and y axises, and the following is what we need: let xAxisGen = d3.axisBottom().scale(xScaler); let yAxisGen = d3.axisLeft().scale(yScaler); const axisX = bounds.append("g").call(xAxisGen).style("transform", `translateY(${dimensions.boundedHeight}px)`) const axisY = bounds.append("g").call(yAxisGen).style("transform", `translateX(${dimensions.margin.left}px)`) } drawBar()
33.101449
114
0.634413
c0ecb65a3cbad28ed0dc72e586c967976002e11f
4,252
js
JavaScript
exam-4Oct2016/Assignment/routers/materials.js
pavelhristov/JSApplications
0410c37e94781a156886afb139622bd0fdde7c22
[ "MIT" ]
null
null
null
exam-4Oct2016/Assignment/routers/materials.js
pavelhristov/JSApplications
0410c37e94781a156886afb139622bd0fdde7c22
[ "MIT" ]
null
null
null
exam-4Oct2016/Assignment/routers/materials.js
pavelhristov/JSApplications
0410c37e94781a156886afb139622bd0fdde7c22
[ "MIT" ]
null
null
null
/* globals module require */ "use strict"; const DEFAULT_ORDER_TYPE = "createdOn"; const Router = require("express").Router; const LIMITS = { MIN_COMMENT_LENGTH: 3, MAX_COMMENT_LENGTH: 300, MIN_MATERIAL_TITLE_LENGTH: 6, MAX_MATERIAL_TITLE_LENGTH: 30 }; const DEFAULTS = { IMG_URL: "http://html5beginners.com/wp-content/uploads/2014/09/js.png" }; const mappings = { toMaterialResponse(material) { return { id: material.id, title: material.title, description: material.description, createdOn: material.createdOn, rating: material.rating, img: material.img || DEFAULTS.IMG_URL, commentsCount: (material.comments || []).length, user: { id: material.user.id, username: material.user.username } }; }, toMaterialDetailedResponse(material) { let model = mappings.toMaterialResponse(material); model.comments = material.comments; return model; } }; function isMaterialValid(material) { return material && (typeof material.title === "string" && material.title.length >= LIMITS.MIN_MATERIAL_TITLE_LENGTH && material.title.length <= LIMITS.MAX_MATERIAL_TITLE_LENGTH) && (typeof material.description === "string"); } function isCommentValid(comment) { return comment && (typeof comment.commentText === "string" && comment.commentText.length >= LIMITS.MIN_COMMENT_LENGTH && comment.commentText.length <= LIMITS.MAX_COMMENT_LENGTH); } module.exports = function(data) { let router = new Router(); router .get("/", (req, res) => { let order = req.query.order || DEFAULT_ORDER_TYPE; let keyword = req.query.filter || ""; let materials = data.getMaterials(keyword) .sort((x, y) => { if (typeof x[order] === "number") { return y[order] - x[order]; } return y[order].toString().localeCompare(x[order].toString()); }).map(mappings.toMaterialResponse); res.send({ result: materials }); }) .get("/:id", (req, res) => { let material = data.getMaterialById(req.params.id); if (material === null) { return res.status(404) .send({ result: { err: "No such material" } }); } material = mappings.toMaterialDetailedResponse(material); return res.send({ result: material }); }) .put("/:id/comments", (req, res) => { if (req.user === null) { return res.status(401) .send({ result: { err: "Only authenticated users can comment" } }); } let commentText = req.body.commentText; if (!isCommentValid(req.body)) { return res.status(400) .send({ result: { err: "invalid comment" } }); } let material = data.getMaterialById(req.params.id); if (material === null) { return res.status(404) .send({ result: { err: "No such material" } }); } data.addCommentToMaterial(material, commentText, req.user); return res.send({ result: mappings.toMaterialDetailedResponse(material) }); }) .post("/", (req, res) => { if (!req.user) { return res.status(401) .send({ result: { err: "Only authenticated users can create materials" } }); } let material = req.body; if (!isMaterialValid(material)) { return res.status(400) .send({ result: { err: "Invalid material" } }); } let dbMaterial = data.createMaterial(material.title, material.description, material.img, req.user); return res.status(201) .send({ result: mappings.toMaterialDetailedResponse(dbMaterial) }); }); return router; };
31.969925
169
0.528692
c0ee2191769a5e8e9342ded2e6231f14015d4772
187
js
JavaScript
src/std/liftA2/index.js
PoorlyDefinedBehaviour/mostly-adequate-guide
c7303eaefa1a258c136f8e965ff7ace0ff924eea
[ "MIT" ]
1
2020-04-03T16:43:06.000Z
2020-04-03T16:43:06.000Z
src/std/liftA2/index.js
PoorlyDefinedBehaviour/mostly-adequate-guide
c7303eaefa1a258c136f8e965ff7ace0ff924eea
[ "MIT" ]
1
2021-05-11T09:12:14.000Z
2021-05-11T09:12:14.000Z
src/std/liftA2/index.js
PoorlyDefinedBehaviour/mostly-adequate-guide
c7303eaefa1a258c136f8e965ff7ace0ff924eea
[ "MIT" ]
null
null
null
import curry from "../curry" // liftA2 :: Functor f => (a -> b) -> f a -> f a -> f b const liftA2 = curry((f, functorA, functorB) => functorA.map(f).ap(functorB)) export default liftA2
26.714286
77
0.620321
c0ef97056efac8a44ef9fb0a90b482c335b08f4c
3,535
js
JavaScript
build/bin/Saltr.v.1.3.3/doc/search/functions_6.js
plexonic/saltr-ios-sdk
3def0605623d1873d7cc5474cc2bd5784594d0f1
[ "Apache-2.0" ]
null
null
null
build/bin/Saltr.v.1.3.3/doc/search/functions_6.js
plexonic/saltr-ios-sdk
3def0605623d1873d7cc5474cc2bd5784594d0f1
[ "Apache-2.0" ]
null
null
null
build/bin/Saltr.v.1.3.3/doc/search/functions_6.js
plexonic/saltr-ios-sdk
3def0605623d1873d7cc5474cc2bd5784594d0f1
[ "Apache-2.0" ]
1
2015-05-14T18:01:28.000Z
2015-05-14T18:01:28.000Z
var searchData= [ ['importlevelsfrompath_3a',['importLevelsFromPath:',['../interface_s_l_t_saltr.html#abaab5f9f2e2c7d9bb29a82f357c6aa79',1,'SLTSaltr']]], ['initsaltrwithclientkey_3adeviceid_3aandcacheenabled_3a',['initSaltrWithClientKey:deviceId:andCacheEnabled:',['../interface_s_l_t_saltr.html#a686a661845ac15ec02b7ecabac58ad1e',1,'SLTSaltr']]], ['initwithcells_3a',['initWithCells:',['../interface_s_l_t_cells_iterator.html#a197b0bf2c0fe799bd93d647bff31ca3f',1,'SLTCellsIterator']]], ['initwithcells_3alayers_3aandproperties_3a',['initWithCells:layers:andProperties:',['../interface_s_l_t_matching_board.html#ae7ad386e8adab8882dccbd8d89d126f0',1,'SLTMatchingBoard']]], ['initwithcode_3aandmessage_3a',['initWithCode:andMessage:',['../interface_s_l_t_status.html#a6430b9fe6b4f97ec8aaf97b3c3bc13f0',1,'SLTStatus']]], ['initwithcol_3aandrow_3a',['initWithCol:andRow:',['../interface_s_l_t_cell.html#ab32430bce699b7feb1eec25cca006703',1,'SLTCell']]], ['initwithlayers_3aandproperties_3a',['initWithLayers:andProperties:',['../interface_s_l_t_board.html#a5df6bd5f9649ffec776f176d81db0efd',1,'SLTBoard']]], ['initwithlevelid_3avariationid_3aleveltype_3aindex_3alocalindex_3apackindex_3acontenturl_3aproperties_3aandversion_3a',['initWithLevelId:variationId:levelType:index:localIndex:packIndex:contentUrl:properties:andVersion:',['../interface_s_l_t_level.html#a15cd69c89f7c9d52cd838c76f20a43ff',1,'SLTLevel']]], ['initwithtoken_3aandlayerindex_3a',['initWithToken:andLayerIndex:',['../interface_s_l_t_matching_board_layer.html#a285f9b3227504cd9ea9d536215c598de',1,'SLTMatchingBoardLayer::initWithToken:andLayerIndex:()'],['../interface_s_l_t2_d_board_layer.html#a1b2f67d46a6967050957a6db7a46e5fd',1,'SLT2DBoardLayer::initWithToken:andLayerIndex:()'],['../interface_s_l_t_board_layer.html#a98070e01e36b88dd3423ec8539b65bac',1,'SLTBoardLayer::initWithToken:andLayerIndex:()']]], ['initwithtoken_3aandproperties_3a',['initWithToken:andProperties:',['../interface_s_l_t_asset_state.html#a538bf5d98f4f78de8a4b062fb45fcc4a',1,'SLTAssetState']]], ['initwithtoken_3aindex_3aandlevels_3a',['initWithToken:index:andLevels:',['../interface_s_l_t_level_pack.html#a6f92bab88844e1111ab6a9cbbde5f6de',1,'SLTLevelPack']]], ['initwithtoken_3apartition_3atype_3aandcustomevents_3a',['initWithToken:partition:type:andCustomEvents:',['../interface_s_l_t_experiment.html#a913a61f9107c5dd33933e729feadd6c3',1,'SLTExperiment']]], ['initwithtoken_3aproperties_3apivotx_3aandpivoty_3a',['initWithToken:properties:pivotX:andPivotY:',['../interface_s_l_t2_d_asset_state.html#a6498b068ea25d3bd7092d3b16707414e',1,'SLT2DAssetState']]], ['initwithtoken_3astates_3aandproperties_3a',['initWithToken:states:andProperties:',['../interface_s_l_t_asset_instance.html#a7dae9fef0175c1cea322e2ce88123283',1,'SLTAssetInstance']]], ['initwithtoken_3astates_3aproperties_3ax_3ay_3aandrotation_3a',['initWithToken:states:properties:x:y:andRotation:',['../interface_s_l_t2_d_asset_instance.html#a91bd90a250a8f32d4d03581d406a16a4',1,'SLT2DAssetInstance']]], ['initwithwidth_3aandheight_3a',['initWithWidth:andHeight:',['../interface_s_l_t_cells.html#a22c81fd51df917fe2c700ae4c047b36f',1,'SLTCells']]], ['initwithwidth_3atheheight_3alayers_3aandproperties_3a',['initWithWidth:theHeight:layers:andProperties:',['../interface_s_l_t2_d_board.html#ac3de8920cffc3f64380d5b6243c52c18',1,'SLT2DBoard']]], ['insertcell_3aatcol_3aandrow_3a',['insertCell:atCol:andRow:',['../interface_s_l_t_cells.html#a52be40056641ef7e5013d9a198bd8e47',1,'SLTCells']]] ];
160.681818
466
0.831683
c0efb38b0504cc01c9e18c1b17d76344328b995a
5,286
js
JavaScript
tabulator/dist/js/modules/reactive_data.js
frbaroni/chrome-dev-tools
8bd76c1b86fed9ad02d2fe2fc697dcf3fae42350
[ "MIT" ]
null
null
null
tabulator/dist/js/modules/reactive_data.js
frbaroni/chrome-dev-tools
8bd76c1b86fed9ad02d2fe2fc697dcf3fae42350
[ "MIT" ]
1
2021-05-08T14:18:52.000Z
2021-05-08T14:18:52.000Z
tabulator/dist/js/modules/reactive_data.js
frbaroni/chrome-dev-tools
8bd76c1b86fed9ad02d2fe2fc697dcf3fae42350
[ "MIT" ]
null
null
null
/* Tabulator v4.2.5 (c) Oliver Folkerd */ var ReactiveData = function ReactiveData(table) { this.table = table; //hold Tabulator object this.data = false; this.blocked = false; //block reactivity while performing update this.origFuncs = {}; // hold original data array functions to allow replacement after data is done with this.currentVersion = 0; }; ReactiveData.prototype.watchData = function (data) { var self = this, pushFunc, version; this.currentVersion++; version = this.currentVersion; self.unwatchData(); self.data = data; //override array push function self.origFuncs.push = data.push; Object.defineProperty(self.data, "push", { enumerable: false, configurable: true, value: function value() { var args = Array.from(arguments); if (!self.blocked && version === self.currentVersion) { args.forEach(function (arg) { self.table.rowManager.addRowActual(arg, false); }); } return self.origFuncs.push.apply(data, arguments); } }); //override array unshift function self.origFuncs.unshift = data.unshift; Object.defineProperty(self.data, "unshift", { enumerable: false, configurable: true, value: function value() { var args = Array.from(arguments); if (!self.blocked && version === self.currentVersion) { args.forEach(function (arg) { self.table.rowManager.addRowActual(arg, true); }); } return self.origFuncs.unshift.apply(data, arguments); } }); //override array shift function self.origFuncs.shift = data.shift; Object.defineProperty(self.data, "shift", { enumerable: false, configurable: true, value: function value() { var row; if (!self.blocked && version === self.currentVersion) { if (self.data.length) { row = self.table.rowManager.getRowFromDataObject(self.data[0]); if (row) { row.deleteActual(); } } } return self.origFuncs.shift.call(data); } }); //override array pop function self.origFuncs.pop = data.pop; Object.defineProperty(self.data, "pop", { enumerable: false, configurable: true, value: function value() { var row; if (!self.blocked && version === self.currentVersion) { if (self.data.length) { row = self.table.rowManager.getRowFromDataObject(self.data[self.data.length - 1]); if (row) { row.deleteActual(); } } } return self.origFuncs.pop.call(data); } }); //override array splice function self.origFuncs.splice = data.splice; Object.defineProperty(self.data, "splice", { enumerable: false, configurable: true, value: function value() { var args = Array.from(arguments), start = args[0] < 0 ? data.length + args[0] : args[0], end = args[1], newRows = args[2] ? args.slice(2) : false, startRow; if (!self.blocked && version === self.currentVersion) { //add new rows if (newRows) { startRow = data[start] ? self.table.rowManager.getRowFromDataObject(data[start]) : false; if (startRow) { newRows.forEach(function (rowData) { self.table.rowManager.addRowActual(rowData, true, startRow, true); }); } else { newRows = newRows.slice().reverse(); newRows.forEach(function (rowData) { self.table.rowManager.addRowActual(rowData, true, false, true); }); } } //delete removed rows if (end !== 0) { var oldRows = data.slice(start, typeof args[1] === "undefined" ? args[1] : start + end); oldRows.forEach(function (rowData, i) { var row = self.table.rowManager.getRowFromDataObject(rowData); if (row) { row.deleteActual(i !== oldRows.length - 1); } }); } if (newRows || end !== 0) { self.table.rowManager.reRenderInPosition(); } } return self.origFuncs.splice.apply(data, arguments); } }); }; ReactiveData.prototype.unwatchData = function () { if (this.data !== false) { for (var key in this.origFuncs) { Object.defineProperty(this.data, key, { enumerable: true, configurable: true, writable: true, value: this.origFuncs.key }); } } }; ReactiveData.prototype.watchRow = function (row) { var self = this, data = row.getData(); this.blocked = true; for (var key in data) { this.watchKey(row, data, key); } this.blocked = false; }; ReactiveData.prototype.watchKey = function (row, data, key) { var self = this, props = Object.getOwnPropertyDescriptor(data, key), value = data[key], version = this.currentVersion; Object.defineProperty(data, key, { set: function set(newValue) { value = newValue; if (!self.blocked && version === self.currentVersion) { var update = {}; update[key] = newValue; row.updateData(update); } if (props.set) { props.set(newValue); } }, get: function get() { if (props.get) { props.get(); } return value; } }); }; ReactiveData.prototype.unwatchRow = function (row) { var data = row.getData(); for (var key in data) { Object.defineProperty(data, key, { value: data[key] }); } }; ReactiveData.prototype.block = function () { this.blocked = true; }; ReactiveData.prototype.unblock = function () { this.blocked = false; }; Tabulator.prototype.registerModule("reactiveData", ReactiveData);
22.493617
104
0.641884
c0f28b9954368e795c621f3b09c1430fddf34cc1
1,928
js
JavaScript
src/mixins/format.js
lukegravitt/dho-web-client
1a9910cd4e7f2b302555cc8b014a7b27111d3c85
[ "Apache-2.0" ]
10
2020-09-17T08:10:12.000Z
2022-03-24T07:36:06.000Z
src/mixins/format.js
lukegravitt/dho-web-client
1a9910cd4e7f2b302555cc8b014a7b27111d3c85
[ "Apache-2.0" ]
466
2020-08-07T08:14:15.000Z
2022-03-31T23:55:36.000Z
src/mixins/format.js
lukegravitt/dho-web-client
1a9910cd4e7f2b302555cc8b014a7b27111d3c85
[ "Apache-2.0" ]
5
2020-11-11T22:46:43.000Z
2022-03-24T07:36:09.000Z
export const format = { filters: { truncate: function (text, length, clamp) { text = text || '' clamp = clamp || '...' length = length || 250 if (text.length <= length) return text let tcText = text.slice(0, length - clamp.length) let last = tcText.length - 1 // Fix for case when text dont have any `space` last = last || length - clamp.length tcText = tcText.slice(0, last) return tcText + clamp }, tokenName: function (val) { return val.replace(/[^a-zA-Z]/g, '') }, tokenValue: function (val) { return parseInt(val) } }, methods: { getObjValue (object, type, key) { if (object[type]) { const tmp = object[type].find(o => o.key === key) return (tmp && tmp.value && tmp.value.toLowerCase()) || '' } return '' }, toAsset (amount) { return new Intl.NumberFormat(navigator.language, { style: 'currency', currency: 'USD', currencyDisplay: 'code' }).format(amount).replace(/[a-z]{3}/i, '').trim() }, async toSHA256 (message) { const msgBuffer = new TextEncoder('utf-8').encode(message) const hashBuffer = await crypto.subtle.digest('SHA-256', msgBuffer) const hashArray = Array.from(new Uint8Array(hashBuffer)) return hashArray.map(b => ('00' + b.toString(16)).slice(-2)).join('') }, getSalaryBucket (amount) { if (amount <= 80000) { return 'B1' } else if (amount > 80000 && amount <= 100000) { return 'B2' } else if (amount > 100000 && amount <= 120000) { return 'B3' } else if (amount > 120000 && amount <= 140000) { return 'B4' } else if (amount > 140000 && amount <= 160000) { return 'B5' } else if (amount > 160000 && amount <= 180000) { return 'B6' } else if (amount > 180000) { return 'B7' } return null } } }
30.125
166
0.55083
c0f2ed2a3e52e4cbb0cfd0bd42598c35102be263
213,554
js
JavaScript
assets/scripts/main.js
tedc/spreafico-theme
48d6b04ebe2dbd6bd4e06cc7407f20ad8b1d10e6
[ "MIT" ]
null
null
null
assets/scripts/main.js
tedc/spreafico-theme
48d6b04ebe2dbd6bd4e06cc7407f20ad8b1d10e6
[ "MIT" ]
null
null
null
assets/scripts/main.js
tedc/spreafico-theme
48d6b04ebe2dbd6bd4e06cc7407f20ad8b1d10e6
[ "MIT" ]
null
null
null
!function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[a]={exports:{}};t[a][0].call(l.exports,function(e){var n=t[a][1][e];return i(n?n:e)},l,l.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,n){angular.module("angularLazyImg",[]),angular.module("angularLazyImg").factory("LazyImgMagic",["$window","$rootScope","lazyImgConfig","lazyImgHelpers",function(e,t,n,r){"use strict";function i(){for(var e=p.length-1;e>=0;e--){var t=p[e];t&&r.isElementInView(t.$elem[0],m.offset,h)&&(c(t),p.splice(e,1))}0===p.length&&s()}function o(e){y.forEach(function(t){t[e]("scroll",v),t[e]("touchmove",v)}),d[e]("resize",v),d[e]("resize",g)}function a(){$=!0,setTimeout(function(){i(),o("on")},1)}function s(){$=!1,o("off")}function u(e){var t=p.indexOf(e);t!==-1&&p.splice(t,1)}function c(e){var n=new Image;n.onerror=function(){m.errorClass&&e.$elem.addClass(m.errorClass),t.$emit("lazyImg:error",e),m.onError(e)},n.onload=function(){l(e.$elem,e.src),m.successClass&&e.$elem.addClass(m.successClass),t.$emit("lazyImg:success",e),m.onSuccess(e)},n.src=e.src}function l(e,t){"img"===e[0].nodeName.toLowerCase()?e[0].src=t:e.css("background-image",'url("'+t+'")')}function f(e){this.$elem=e}var h,d,p,$,m,v,g,y;return p=[],$=!1,m=n.getOptions(),d=angular.element(e),h=r.getWinDimensions(),g=r.throttle(function(){h=r.getWinDimensions()},60),y=[m.container||d],v=r.throttle(i,30),f.prototype.setSource=function(e){this.src=e,p.unshift(this),$||a()},f.prototype.removeImage=function(){u(this),0===p.length&&s()},f.prototype.checkImages=function(){i()},f.addContainer=function(e){s(),y.push(e),a()},f.removeContainer=function(e){s(),y.splice(y.indexOf(e),1),a()},f}]),angular.module("angularLazyImg").provider("lazyImgConfig",function(){"use strict";this.options={offset:100,errorClass:null,successClass:null,onError:function(){},onSuccess:function(){}},this.$get=function(){var e=this.options;return{getOptions:function(){return e}}},this.setOptions=function(e){angular.extend(this.options,e)}}),angular.module("angularLazyImg").factory("lazyImgHelpers",["$window",function(e){"use strict";function t(){return{height:e.innerHeight,width:e.innerWidth}}function n(e,t,n){var r=e.getBoundingClientRect(),i=n.height+t;return r.left>=0&&r.right<=n.width+t&&(r.top>=0&&r.top<=i||r.bottom<=i&&r.bottom>=0-t)}function r(e,t,n){var r,i;return function(){var o=n||this,a=+new Date,s=arguments;r&&a<r+t?(clearTimeout(i),i=setTimeout(function(){r=a,e.apply(o,s)},t)):(r=a,e.apply(o,s))}}return{isElementInView:n,getWinDimensions:t,throttle:r}}]),angular.module("angularLazyImg").directive("lazyImg",["$rootScope","LazyImgMagic",function(e,t){"use strict";function n(n,r,i){var o=new t(r);i.$observe("lazyImg",function(e){e&&o.setSource(e)}),n.$on("$destroy",function(){o.removeImage()}),e.$on("lazyImg.runCheck",function(){o.checkImages()}),e.$on("lazyImg:refresh",function(){o.checkImages()})}return{link:n,restrict:"A"}}]).directive("lazyImgContainer",["LazyImgMagic",function(e){"use strict";function t(t,n){e.addContainer(n),t.$on("$destroy",function(){e.removeContainer(n)})}return{link:t,restrict:"A"}}])},{}],2:[function(e,t,n){!function(e,t){"use strict";function n(e){return null!=e&&""!==e&&"hasOwnProperty"!==e&&a.test("."+e)}function r(e,r){if(!n(r))throw o("badmember",'Dotted member path "@{0}" is invalid.',r);for(var i=r.split("."),a=0,s=i.length;a<s&&t.isDefined(e);a++){var u=i[a];e=null!==e?e[u]:void 0}return e}function i(e,n){n=n||{},t.forEach(n,function(e,t){delete n[t]});for(var r in e)!e.hasOwnProperty(r)||"$"===r.charAt(0)&&"$"===r.charAt(1)||(n[r]=e[r]);return n}var o=t.$$minErr("$resource"),a=/^(\.[a-zA-Z_$@][0-9a-zA-Z_$@]*)+$/;t.module("ngResource",["ng"]).info({angularVersion:"1.6.3"}).provider("$resource",function(){var e=this;this.defaults={stripTrailingSlashes:!0,cancellable:!1,actions:{get:{method:"GET"},save:{method:"POST"},query:{method:"GET",isArray:!0},remove:{method:"DELETE"},delete:{method:"DELETE"}}},this.$get=["$http","$log","$q","$timeout",function(n,a,s,u){function c(t,n){this.template=t,this.defaults=d({},e.defaults,n),this.urlParams={}}function l(t,y,b,w){function x(e,t){var n={};return t=d({},y,t),h(t,function(t,i){v(t)&&(t=t(e)),n[i]=t&&t.charAt&&"@"===t.charAt(0)?r(e,t.substr(1)):t}),n}function C(e){return e.resource}function k(e){i(e||{},this)}var S=new c(t,w);return b=d({},e.defaults.actions,b),k.prototype.toJSON=function(){var e=d({},this);return delete e.$promise,delete e.$resolved,delete e.$cancelRequest,e},h(b,function(e,t){var r=/^(POST|PUT|PATCH)$/i.test(e.method),c=e.timeout,l=m(e.cancellable)?e.cancellable:S.defaults.cancellable;c&&!g(c)&&(a.debug("ngResource:\n Only numeric values are allowed as `timeout`.\n Promises are not supported in $resource, because the same value would be used for multiple requests. If you are looking for a way to cancel requests, you should use the `cancellable` option."),delete e.timeout,c=null),k[t]=function(a,m,g,y){function b(e){R.catch(f),O.resolve(e)}var w,E,A,T={};switch(arguments.length){case 4:A=y,E=g;case 3:case 2:if(!v(m)){T=a,w=m,E=g;break}if(v(a)){E=a,A=m;break}E=m,A=g;case 1:v(a)?E=a:r?w=a:T=a;break;case 0:break;default:throw o("badargs","Expected up to 4 arguments [params, data, success, error], got {0} arguments",arguments.length)}var O,M,_=this instanceof k,V=_?w:e.isArray?[]:new k(w),I={},N=e.interceptor&&e.interceptor.response||C,D=e.interceptor&&e.interceptor.responseError||void 0,j=!!A,P=!!D;h(e,function(e,t){switch(t){default:I[t]=p(e);break;case"params":case"isArray":case"interceptor":case"cancellable":}}),!_&&l&&(O=s.defer(),I.timeout=O.promise,c&&(M=u(O.resolve,c))),r&&(I.data=w),S.setUrlParams(I,d({},x(w,e.params||{}),T),e.url);var R=n(I).then(function(n){var r=n.data;if(r){if($(r)!==!!e.isArray)throw o("badcfg","Error in resource configuration for action `{0}`. Expected response to contain an {1} but got an {2} (Request: {3} {4})",t,e.isArray?"array":"object",$(r)?"array":"object",I.method,I.url);if(e.isArray)V.length=0,h(r,function(e){"object"==typeof e?V.push(new k(e)):V.push(e)});else{var a=V.$promise;i(r,V),V.$promise=a}}return n.resource=V,n});return R=R.finally(function(){V.$resolved=!0,!_&&l&&(V.$cancelRequest=f,u.cancel(M),O=M=I.timeout=null)}),R=R.then(function(e){var t=N(e);return(E||f)(t,e.headers,e.status,e.statusText),t},j||P?function(e){return j&&!P&&R.catch(f),j&&A(e),P?D(e):s.reject(e)}:void 0),_?R:(V.$promise=R,V.$resolved=!1,l&&(V.$cancelRequest=b),V)},k.prototype["$"+t]=function(e,n,r){v(e)&&(r=n,n=e,e={});var i=k[t].call(this,e,this,n,r);return i.$promise||i}}),k.bind=function(e){return l(t,d({},y,e),b,w)},k}var f=t.noop,h=t.forEach,d=t.extend,p=t.copy,$=t.isArray,m=t.isDefined,v=t.isFunction,g=t.isNumber,y=t.$$encodeUriQuery,b=t.$$encodeUriSegment;return c.prototype={setUrlParams:function(e,t,n){var r,i,a=this,s=n||a.template,u="",c=a.urlParams=Object.create(null);h(s.split(/\W/),function(e){if("hasOwnProperty"===e)throw o("badname","hasOwnProperty is not a valid parameter name.");!new RegExp("^\\d+$").test(e)&&e&&new RegExp("(^|[^\\\\]):"+e+"(\\W|$)").test(s)&&(c[e]={isQueryParamValue:new RegExp("\\?.*=:"+e+"(?:\\W|$)").test(s)})}),s=s.replace(/\\:/g,":"),s=s.replace(/^https?:\/\/\[[^\]]*][^\/]*/,function(e){return u=e,""}),t=t||{},h(a.urlParams,function(e,n){r=t.hasOwnProperty(n)?t[n]:a.defaults[n],m(r)&&null!==r?(i=e.isQueryParamValue?y(r,!0):b(r),s=s.replace(new RegExp(":"+n+"(\\W|$)","g"),function(e,t){return i+t})):s=s.replace(new RegExp("(/?):"+n+"(\\W|$)","g"),function(e,t,n){return"/"===n.charAt(0)?n:t+n})}),a.defaults.stripTrailingSlashes&&(s=s.replace(/\/+$/,"")||"/"),s=s.replace(/\/\.(?=\w+($|\?))/,"."),e.url=u+s.replace(/\/(\\|%5C)\./,"/."),h(t,function(t,n){a.urlParams[n]||(e.params=e.params||{},e.params[n]=t)})}},l}]})}(window,window.angular)},{}],3:[function(e,t,n){e("./angular-resource"),t.exports="ngResource"},{"./angular-resource":2}],4:[function(e,t,n){!function(e,t){"use strict";function n(){function n(e,t){var n,r={},i=e.split(",");for(n=0;n<i.length;n++)r[t?u(i[n]):i[n]]=!0;return r}function r(t,n){null===t||void 0===t?t="":"string"!=typeof t&&(t=""+t),b.innerHTML=t;var r=5;do{if(0===r)throw d("uinput","Failed to sanitize html because the input is unstable");r--,e.document.documentMode&&v(b),t=b.innerHTML,b.innerHTML=t}while(t!==b.innerHTML);for(var i=b.firstChild;i;){switch(i.nodeType){case 1:n.start(i.nodeName.toLowerCase(),p(i.attributes));break;case 3:n.chars(i.textContent)}var o;if(!((o=i.firstChild)||(1===i.nodeType&&n.end(i.nodeName.toLowerCase()),o=g("nextSibling",i))))for(;null==o&&(i=g("parentNode",i))!==b;)o=g("nextSibling",i),1===i.nodeType&&n.end(i.nodeName.toLowerCase());i=o}for(;i=b.firstChild;)b.removeChild(i)}function p(e){for(var t={},n=0,r=e.length;n<r;n++){var i=e[n];t[i.name]=i.value}return t}function $(e){return e.replace(/&/g,"&amp;").replace(w,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(x,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function m(e,t){var n=!1,r=i(e,e.push);return{start:function(e,i){e=u(e),!n&&M[e]&&(n=e),n||_[e]!==!0||(r("<"),r(e),a(i,function(n,i){var o=u(i),a="img"===e&&"src"===o||"background"===o;D[o]!==!0||V[o]===!0&&!t(n,a)||(r(" "),r(i),r('="'),r($(n)),r('"'))}),r(">"))},end:function(e){e=u(e),n||_[e]!==!0||C[e]===!0||(r("</"),r(e),r(">")),e==n&&(n=!1)},chars:function(e){n||r($(e))}}}function v(t){for(;t;){if(t.nodeType===e.Node.ELEMENT_NODE)for(var n=t.attributes,r=0,i=n.length;r<i;r++){var o=n[r],a=o.name.toLowerCase();"xmlns:ns1"!==a&&0!==a.lastIndexOf("ns1:",0)||(t.removeAttributeNode(o),r--,i--)}var s=t.firstChild;s&&v(s),t=g("nextSibling",t)}}function g(e,t){var n=t[e];if(n&&l.call(t,n))throw d("elclob","Failed to sanitize html because the element is clobbered: {0}",t.outerHTML||t.outerText);return n}var y=!1;this.$get=["$$sanitizeUri",function(e){return y&&o(_,O),function(t){var n=[];return f(t,h(n,function(t,n){return!/^unsafe:/.test(e(t,n))})),n.join("")}}],this.enableSvg=function(e){return s(e)?(y=e,this):y},i=t.bind,o=t.extend,a=t.forEach,s=t.isDefined,u=t.lowercase,c=t.noop,f=r,h=m,l=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))};var b,w=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,x=/([^#-~ |!])/g,C=n("area,br,col,hr,img,wbr"),k=n("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),S=n("rp,rt"),E=o({},S,k),A=o({},k,n("address,article,aside,blockquote,caption,center,del,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,map,menu,nav,ol,pre,section,table,ul")),T=o({},S,n("a,abbr,acronym,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,q,ruby,rp,rt,s,samp,small,span,strike,strong,sub,sup,time,tt,u,var")),O=n("circle,defs,desc,ellipse,font-face,font-face-name,font-face-src,g,glyph,hkern,image,linearGradient,line,marker,metadata,missing-glyph,mpath,path,polygon,polyline,radialGradient,rect,stop,svg,switch,text,title,tspan"),M=n("script,style"),_=o({},C,A,T,E),V=n("background,cite,href,longdesc,src,xlink:href"),I=n("abbr,align,alt,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,coords,dir,face,headers,height,hreflang,hspace,ismap,lang,language,nohref,nowrap,rel,rev,rows,rowspan,rules,scope,scrolling,shape,size,span,start,summary,tabindex,target,title,type,valign,value,vspace,width"),N=n("accent-height,accumulate,additive,alphabetic,arabic-form,ascent,baseProfile,bbox,begin,by,calcMode,cap-height,class,color,color-rendering,content,cx,cy,d,dx,dy,descent,display,dur,end,fill,fill-rule,font-family,font-size,font-stretch,font-style,font-variant,font-weight,from,fx,fy,g1,g2,glyph-name,gradientUnits,hanging,height,horiz-adv-x,horiz-origin-x,ideographic,k,keyPoints,keySplines,keyTimes,lang,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mathematical,max,min,offset,opacity,orient,origin,overline-position,overline-thickness,panose-1,path,pathLength,points,preserveAspectRatio,r,refX,refY,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,rotate,rx,ry,slope,stemh,stemv,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,systemLanguage,target,text-anchor,to,transform,type,u1,u2,underline-position,underline-thickness,unicode,unicode-range,units-per-em,values,version,viewBox,visibility,width,widths,x,x-height,x1,x2,xlink:actuate,xlink:arcrole,xlink:role,xlink:show,xlink:title,xlink:type,xml:base,xml:lang,xml:space,xmlns,xmlns:xlink,y,y1,y2,zoomAndPan",!0),D=o({},V,N,I);!function(e){var t;if(!e.document||!e.document.implementation)throw d("noinert","Can't create an inert html document");t=e.document.implementation.createHTMLDocument("inert");var n=t.documentElement||t.getDocumentElement(),r=n.getElementsByTagName("body");if(1===r.length)b=r[0];else{var i=t.createElement("html");b=t.createElement("body"),i.appendChild(b),t.appendChild(i)}}(e)}function r(e){var t=[];return h(t,c).chars(e),t.join("")}var i,o,a,s,u,c,l,f,h,d=t.$$minErr("$sanitize");t.module("ngSanitize",[]).provider("$sanitize",n).info({angularVersion:"1.6.3"}),t.module("ngSanitize").filter("linky",["$sanitize",function(e){var n=t.$$minErr("linky"),i=t.isDefined,o=t.isFunction,a=t.isObject,s=t.isString;return function(t,u,c){function l(e){e&&m.push(r(e))}if(null==t||""===t)return t;if(!s(t))throw n("notstring","Expected string but received: {0}",t);for(var f,h,d,p=o(c)?c:a(c)?function(){return c}:function(){return{}},$=t,m=[];f=$.match(/((ftp|https?):\/\/|(www\.)|(mailto:)?[A-Za-z0-9._%+-]+@)\S*[^\s.;,(){}<>"\u201d\u2019]/i);)h=f[0],f[2]||f[4]||(h=(f[3]?"http://":"mailto:")+h),d=f.index,l($.substr(0,d)),function(e,t){var n,r=p(e);m.push("<a ");for(n in r)m.push(n+'="'+r[n]+'" ');!i(u)||"target"in r||m.push('target="',u,'" '),m.push('href="',e.replace(/"/g,"&quot;"),'">'),l(t),m.push("</a>")}(h,f[0].replace(/^mailto:/i,"")),$=$.substring(d+f[0].length);return l($),e(m.join(""))}}])}(window,window.angular)},{}],5:[function(e,t,n){e("./angular-sanitize"),t.exports="ngSanitize"},{"./angular-sanitize":4}],6:[function(e,t,n){!function(e,t){"use strict";function n(e){return t.lowercase(e.nodeName||e[0]&&e[0].nodeName)}function r(e,n){var r=!1,i=!1;this.ngClickOverrideEnabled=function(o){return t.isDefined(o)?(o&&!i&&(i=!0,a.$$moduleName="ngTouch",n.directive("ngClick",a),e.decorator("ngClickDirective",["$delegate",function(e){if(r)e.shift();else for(var t=e.length-1;t>=0;){if("ngTouch"===e[t].$$moduleName){e.splice(t,1);break}t--}return e}])),r=o,this):r},this.$get=function(){return{ngClickOverrideEnabled:function(){return r}}}}function i(e,n,r){o.directive(e,["$parse","$swipe",function(i,o){return function(a,s,u){function c(e){if(!l)return!1;var t=Math.abs(e.y-l.y),r=(e.x-l.x)*n;return f&&t<75&&r>0&&r>30&&t/r<.3}var l,f,h=i(u[e]),d=["touch"];t.isDefined(u.ngSwipeDisableMouse)||d.push("mouse"),o.bind(s,{start:function(e,t){l=e,f=!0},cancel:function(e){f=!1},end:function(e,t){c(e)&&a.$apply(function(){s.triggerHandler(r),h(a,{$event:t})})}},d)}}])}var o=t.module("ngTouch",[]);o.info({angularVersion:"1.6.3"}),o.provider("$touch",r),r.$inject=["$provide","$compileProvider"],o.factory("$swipe",[function(){function e(e){var t=e.originalEvent||e,n=t.touches&&t.touches.length?t.touches:[t],r=t.changedTouches&&t.changedTouches[0]||n[0];return{x:r.clientX,y:r.clientY}}function n(e,n){var i=[];return t.forEach(e,function(e){var t=r[e][n];t&&i.push(t)}),i.join(" ")}var r={mouse:{start:"mousedown",move:"mousemove",end:"mouseup"},touch:{start:"touchstart",move:"touchmove",end:"touchend",cancel:"touchcancel"},pointer:{start:"pointerdown",move:"pointermove",end:"pointerup",cancel:"pointercancel"}};return{bind:function(t,r,i){var o,a,s,u,c=!1;i=i||["mouse","touch","pointer"],t.on(n(i,"start"),function(t){s=e(t),c=!0,o=0,a=0,u=s,r.start&&r.start(s,t)});var l=n(i,"cancel");l&&t.on(l,function(e){c=!1,r.cancel&&r.cancel(e)}),t.on(n(i,"move"),function(t){if(c&&s){var n=e(t);if(o+=Math.abs(n.x-u.x),a+=Math.abs(n.y-u.y),u=n,!(o<10&&a<10))return a>o?(c=!1,void(r.cancel&&r.cancel(t))):(t.preventDefault(),void(r.move&&r.move(n,t)))}}),t.on(n(i,"end"),function(t){c&&(c=!1,r.end&&r.end(e(t),t))})}}}]);var a=["$parse","$timeout","$rootElement",function(e,r,i){function o(e,t,n,r){return Math.abs(e-n)<p&&Math.abs(t-r)<p}function a(e,t,n){for(var r=0;r<e.length;r+=2)if(o(e[r],e[r+1],t,n))return e.splice(r,r+2),!0;return!1}function s(e){if(!(Date.now()-l>d)){var t=e.touches&&e.touches.length?e.touches:[e],r=t[0].clientX,i=t[0].clientY;r<1&&i<1||h&&h[0]===r&&h[1]===i||(h&&(h=null),"label"===n(e.target)&&(h=[r,i]),a(f,r,i)||(e.stopPropagation(),e.preventDefault(),e.target&&e.target.blur&&e.target.blur()))}}function u(e){var t=e.touches&&e.touches.length?e.touches:[e],n=t[0].clientX,i=t[0].clientY;f.push(n,i),r(function(){for(var e=0;e<f.length;e+=2)if(f[e]===n&&f[e+1]===i)return void f.splice(e,e+2)},d,!1)}function c(e,t){f||(i[0].addEventListener("click",s,!0),i[0].addEventListener("touchstart",u,!0),f=[]),l=Date.now(),a(f,e,t)}var l,f,h,d=2500,p=25,$="ng-click-active";return function(n,r,i){function o(){h=!1,r.removeClass($)}var a,s,u,l,f=e(i.ngClick),h=!1;r.on("touchstart",function(e){h=!0,a=e.target?e.target:e.srcElement,3===a.nodeType&&(a=a.parentNode),r.addClass($),s=Date.now();var t=e.originalEvent||e,n=t.touches&&t.touches.length?t.touches:[t],i=n[0];u=i.clientX,l=i.clientY}),r.on("touchcancel",function(e){o()}),r.on("touchend",function(e){var n=Date.now()-s,f=e.originalEvent||e,d=f.changedTouches&&f.changedTouches.length?f.changedTouches:f.touches&&f.touches.length?f.touches:[f],p=d[0],$=p.clientX,m=p.clientY,v=Math.sqrt(Math.pow($-u,2)+Math.pow(m-l,2));h&&n<750&&v<12&&(c($,m),a&&a.blur(),t.isDefined(i.disabled)&&i.disabled!==!1||r.triggerHandler("click",[e])),o()}),r.onclick=function(e){},r.on("click",function(e,t){n.$apply(function(){f(n,{$event:t||e})})}),r.on("mousedown",function(e){r.addClass($)}),r.on("mousemove mouseup",function(e){r.removeClass($)})}}];i("ngSwipeLeft",-1,"swipeleft"),i("ngSwipeRight",1,"swiperight")}(window,window.angular)},{}],7:[function(e,t,n){e("./angular-touch"),t.exports="ngTouch"},{"./angular-touch":6}],8:[function(e,t,n){!function(e){"use strict";function t(e,t){return t=t||Error,function(){var n,r,i=arguments[0],o=arguments[1],a="["+(e?e+":":"")+i+"] ",s=B(arguments,2).map(function(e){return we(e,Br.objectMaxDepth)});for(a+=o.replace(/\{\d+\}/g,function(e){var t=+e.slice(1,-1);return t<s.length?s[t]:e}),a+="\nhttp://errors.angularjs.org/1.6.3/"+(e?e+"/":"")+i,r=0,n="?";r<s.length;r++,n="&")a+=n+"p"+r+"="+encodeURIComponent(s[r]);return new t(a)}}function n(e){if(!w(e))return Br;b(e.objectMaxDepth)&&(Br.objectMaxDepth=r(e.objectMaxDepth)?e.objectMaxDepth:NaN)}function r(e){return k(e)&&e>0}function i(e){if(null==e||T(e))return!1;if(ci(e)||C(e)||Yr&&e instanceof Yr)return!0;var t="length"in Object(e)&&e.length;return k(t)&&(t>=0&&(t-1 in e||e instanceof Array)||"function"==typeof e.item)}function o(e,t,n){var r,a;if(e)if(E(e))for(r in e)"prototype"!==r&&"length"!==r&&"name"!==r&&e.hasOwnProperty(r)&&t.call(n,e[r],r,e);else if(ci(e)||i(e)){var s="object"!=typeof e;for(r=0,a=e.length;r<a;r++)(s||r in e)&&t.call(n,e[r],r,e)}else if(e.forEach&&e.forEach!==o)e.forEach(t,n,e);else if(x(e))for(r in e)t.call(n,e[r],r,e);else if("function"==typeof e.hasOwnProperty)for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e);else for(r in e)Hr.call(e,r)&&t.call(n,e[r],r,e);return e}function a(e,t,n){for(var r=Object.keys(e).sort(),i=0;i<r.length;i++)t.call(n,e[r[i]],r[i]);return r}function s(e){return function(t,n){e(n,t)}}function u(){return++si}function c(e,t){t?e.$$hashKey=t:delete e.$$hashKey}function l(e,t,n){for(var r=e.$$hashKey,i=0,o=t.length;i<o;++i){var a=t[i];if(w(a)||E(a))for(var s=Object.keys(a),u=0,f=s.length;u<f;u++){var h=s[u],d=a[h];n&&w(d)?S(d)?e[h]=new Date(d.valueOf()):A(d)?e[h]=new RegExp(d):d.nodeName?e[h]=d.cloneNode(!0):P(d)?e[h]=d.clone():(w(e[h])||(e[h]=ci(d)?[]:{}),l(e[h],[d],!0)):e[h]=d}}return c(e,r),e}function f(e){return l(e,ei.call(arguments,1),!1)}function h(e){return l(e,ei.call(arguments,1),!0)}function d(e){return parseInt(e,10)}function p(e,t){return f(Object.create(e),t)}function $(){}function m(e){return e}function v(e){return function(){return e}}function g(e){return E(e.toString)&&e.toString!==ri}function y(e){return void 0===e}function b(e){return void 0!==e}function w(e){return null!==e&&"object"==typeof e}function x(e){return null!==e&&"object"==typeof e&&!ii(e)}function C(e){return"string"==typeof e}function k(e){return"number"==typeof e}function S(e){return"[object Date]"===ri.call(e)}function E(e){return"function"==typeof e}function A(e){return"[object RegExp]"===ri.call(e)}function T(e){return e&&e.window===e}function O(e){return e&&e.$evalAsync&&e.$watch}function M(e){return"[object File]"===ri.call(e)}function _(e){return"[object FormData]"===ri.call(e)}function V(e){return"[object Blob]"===ri.call(e)}function I(e){return"boolean"==typeof e}function N(e){return e&&E(e.then)}function D(e){return e&&k(e.length)&&li.test(ri.call(e))}function j(e){return"[object ArrayBuffer]"===ri.call(e)}function P(e){return!(!e||!(e.nodeName||e.prop&&e.attr&&e.find))}function R(e){var t,n={},r=e.split(",");for(t=0;t<r.length;t++)n[r[t]]=!0;return n}function L(e){return Wr(e.nodeName||e[0]&&e[0].nodeName)}function q(e,t){return Array.prototype.indexOf.call(e,t)!==-1}function U(e,t){var n=e.indexOf(t);return n>=0&&e.splice(n,1),n}function z(e,t,n){function i(e,t,n){if(--n<0)return"...";var r,i=t.$$hashKey;if(ci(e))for(var o=0,s=e.length;o<s;o++)t.push(a(e[o],n));else if(x(e))for(r in e)t[r]=a(e[r],n);else if(e&&"function"==typeof e.hasOwnProperty)for(r in e)e.hasOwnProperty(r)&&(t[r]=a(e[r],n));else for(r in e)Hr.call(e,r)&&(t[r]=a(e[r],n));return c(t,i),t}function a(e,t){if(!w(e))return e;var n=u.indexOf(e);if(n!==-1)return l[n];if(T(e)||O(e))throw oi("cpws","Can't copy! Making copies of Window or Scope instances is not supported.");var r=!1,o=s(e);return void 0===o&&(o=ci(e)?[]:Object.create(ii(e)),r=!0),u.push(e),l.push(o),r?i(e,o,t):o}function s(e){switch(ri.call(e)){case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Float32Array]":case"[object Float64Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return new e.constructor(a(e.buffer),e.byteOffset,e.length);case"[object ArrayBuffer]":if(!e.slice){var t=new ArrayBuffer(e.byteLength);return new Uint8Array(t).set(new Uint8Array(e)),t}return e.slice(0);case"[object Boolean]":case"[object Number]":case"[object String]":case"[object Date]":return new e.constructor(e.valueOf());case"[object RegExp]":var n=new RegExp(e.source,e.toString().match(/[^\/]*$/)[0]);return n.lastIndex=e.lastIndex,n;case"[object Blob]":return new e.constructor([e],{type:e.type})}if(E(e.cloneNode))return e.cloneNode(!0)}var u=[],l=[];if(n=r(n)?n:NaN,t){if(D(t)||j(t))throw oi("cpta","Can't copy! TypedArray destination cannot be mutated.");if(e===t)throw oi("cpi","Can't copy! Source and destination are identical.");return ci(t)?t.length=0:o(t,function(e,n){"$$hashKey"!==n&&delete t[n]}),u.push(e),l.push(t),i(e,t,n)}return a(e,n)}function F(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!==e&&t!==t)return!0;var n,r,i,o=typeof e,a=typeof t;if(o===a&&"object"===o){if(!ci(e)){if(S(e))return!!S(t)&&F(e.getTime(),t.getTime());if(A(e))return!!A(t)&&e.toString()===t.toString();if(O(e)||O(t)||T(e)||T(t)||ci(t)||S(t)||A(t))return!1;i=me();for(r in e)if("$"!==r.charAt(0)&&!E(e[r])){if(!F(e[r],t[r]))return!1;i[r]=!0}for(r in t)if(!(r in i)&&"$"!==r.charAt(0)&&b(t[r])&&!E(t[r]))return!1;return!0}if(!ci(t))return!1;if((n=e.length)===t.length){for(r=0;r<n;r++)if(!F(e[r],t[r]))return!1;return!0}}return!1}function H(e,t,n){return e.concat(ei.call(t,n))}function B(e,t){return ei.call(e,t||0)}function W(e,t){var n=arguments.length>2?B(arguments,2):[];return!E(t)||t instanceof RegExp?t:n.length?function(){return arguments.length?t.apply(e,H(n,arguments,0)):t.apply(e,n)}:function(){return arguments.length?t.apply(e,arguments):t.call(e)}}function G(t,n){var r=n;return"string"==typeof t&&"$"===t.charAt(0)&&"$"===t.charAt(1)?r=void 0:T(n)?r="$WINDOW":n&&e.document===n?r="$DOCUMENT":O(n)&&(r="$SCOPE"),r}function Z(e,t){if(!y(e))return k(t)||(t=t?2:null),JSON.stringify(e,G,t)}function J(e){return C(e)?JSON.parse(e):e}function K(e,t){e=e.replace($i,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return ui(n)?t:n}function Y(e,t){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+t),e}function X(e,t,n){n=n?-1:1;var r=e.getTimezoneOffset();return Y(e,n*(K(t,r)-r))}function Q(e){e=Yr(e).clone();try{e.empty()}catch(e){}var t=Yr("<div>").append(e).html();try{return e[0].nodeType===wi?Wr(t):t.match(/^(<[^>]+>)/)[1].replace(/^<([\w-]+)/,function(e,t){return"<"+Wr(t)})}catch(e){return Wr(t)}}function ee(e){try{return decodeURIComponent(e)}catch(e){}}function te(e){var t={};return o((e||"").split("&"),function(e){var n,r,i;e&&(r=e=e.replace(/\+/g,"%20"),n=e.indexOf("="),n!==-1&&(r=e.substring(0,n),i=e.substring(n+1)),r=ee(r),b(r)&&(i=!b(i)||ee(i),Hr.call(t,r)?ci(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i))}),t}function ne(e){var t=[];return o(e,function(e,n){ci(e)?o(e,function(e){t.push(ie(n,!0)+(e===!0?"":"="+ie(e,!0)))}):t.push(ie(n,!0)+(e===!0?"":"="+ie(e,!0)))}),t.length?t.join("&"):""}function re(e){return ie(e,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")}function ie(e,t){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,t?"%20":"+")}function oe(e,t){var n,r,i=mi.length;for(r=0;r<i;++r)if(n=mi[r]+t,C(n=e.getAttribute(n)))return n;return null}function ae(t,n){var r,i,a={};if(o(mi,function(e){var n=e+"app";!r&&t.hasAttribute&&t.hasAttribute(n)&&(r=t,i=t.getAttribute(n))}),o(mi,function(e){var n,o=e+"app";!r&&(n=t.querySelector("["+o.replace(":","\\:")+"]"))&&(r=n,i=n.getAttribute(o))}),r){if(!vi)return void e.console.error("Angular: disabling automatic bootstrap. <script> protocol indicates an extension, document.location.href does not match.");a.strictDi=null!==oe(r,"strict-di"),n(r,i?[i]:[],a)}}function se(t,n,r){w(r)||(r={}),r=f({strictDi:!1},r);var i=function(){if(t=Yr(t),t.injector()){throw oi("btstrpd","App already bootstrapped with this element '{0}'",(t[0]===e.document?"document":Q(t)).replace(/</,"&lt;").replace(/>/,"&gt;"))}n=n||[],n.unshift(["$provide",function(e){e.value("$rootElement",t)}]),r.debugInfoEnabled&&n.push(["$compileProvider",function(e){e.debugInfoEnabled(!0)}]),n.unshift("ng");var i=ut(n,r.strictDi);return i.invoke(["$rootScope","$rootElement","$compile","$injector",function(e,t,n,r){e.$apply(function(){t.data("$injector",r),n(t)(e)})}]),i},a=/^NG_ENABLE_DEBUG_INFO!/,s=/^NG_DEFER_BOOTSTRAP!/;if(e&&a.test(e.name)&&(r.debugInfoEnabled=!0,e.name=e.name.replace(a,"")),e&&!s.test(e.name))return i();e.name=e.name.replace(s,""),ai.resumeBootstrap=function(e){return o(e,function(e){n.push(e)}),i()},E(ai.resumeDeferredBootstrap)&&ai.resumeDeferredBootstrap()}function ue(){e.name="NG_ENABLE_DEBUG_INFO!"+e.name,e.location.reload()}function ce(e){var t=ai.element(e).injector();if(!t)throw oi("test","no injector found for element argument to getTestability");return t.get("$$testability")}function le(e,t){return t=t||"_",e.replace(gi,function(e,n){return(n?t:"")+e.toLowerCase()})}function fe(e,t,n){if(!e)throw oi("areq","Argument '{0}' is {1}",t||"?",n||"required");return e}function he(e,t,n){return n&&ci(e)&&(e=e[e.length-1]),fe(E(e),t,"not a function, got "+(e&&"object"==typeof e?e.constructor.name||"Object":typeof e)),e}function de(e,t){if("hasOwnProperty"===e)throw oi("badname","hasOwnProperty is not a valid {0} name",t)}function pe(e,t,n){if(!t)return e;for(var r,i=t.split("."),o=e,a=i.length,s=0;s<a;s++)r=i[s],e&&(e=(o=e)[r]);return!n&&E(e)?W(o,e):e}function $e(e){for(var t,n=e[0],r=e[e.length-1],i=1;n!==r&&(n=n.nextSibling);i++)(t||e[i]!==n)&&(t||(t=Yr(ei.call(e,0,i))),t.push(n));return t||e}function me(){return Object.create(null)}function ve(e){if(null==e)return"";switch(typeof e){case"string":break;case"number":e=""+e;break;default:e=!g(e)||ci(e)||S(e)?Z(e):e.toString()}return e}function ge(e){function n(e,t,n){return e[t]||(e[t]=n())}var r=t("$injector"),i=t("ng"),o=n(e,"angular",Object);return o.$$minErr=o.$$minErr||t,n(o,"module",function(){var e={};return function(t,o,a){var s={};return function(e,t){if("hasOwnProperty"===e)throw i("badname","hasOwnProperty is not a valid {0} name",t)}(t,"module"),o&&e.hasOwnProperty(t)&&(e[t]=null),n(e,t,function(){function e(e,t,n,r){return r||(r=u),function(){return r[n||"push"]([e,t,arguments]),h}}function n(e,n,r){return r||(r=u),function(i,o){return o&&E(o)&&(o.$$moduleName=t),r.push([e,n,arguments]),h}}if(!o)throw r("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",t);var u=[],c=[],l=[],f=e("$injector","invoke","push",c),h={_invokeQueue:u,_configBlocks:c,_runBlocks:l,info:function(e){if(b(e)){if(!w(e))throw i("aobj","Argument '{0}' must be an object","value");return s=e,this}return s},requires:o,name:t,provider:n("$provide","provider"),factory:n("$provide","factory"),service:n("$provide","service"),value:e("$provide","value"),constant:e("$provide","constant","unshift"),decorator:n("$provide","decorator",c),animation:n("$animateProvider","register"),filter:n("$filterProvider","register"),controller:n("$controllerProvider","register"),directive:n("$compileProvider","directive"),component:n("$compileProvider","component"),config:f,run:function(e){return l.push(e),this}};return a&&f(a),h})}})}function ye(e,t){if(ci(e)){t=t||[];for(var n=0,r=e.length;n<r;n++)t[n]=e[n]}else if(w(e)){t=t||{};for(var i in e)"$"===i.charAt(0)&&"$"===i.charAt(1)||(t[i]=e[i])}return t||e}function be(e,t){var n=[];return r(t)&&(e=z(e,null,t)),JSON.stringify(e,function(e,t){if(t=G(e,t),w(t)){if(n.indexOf(t)>=0)return"...";n.push(t)}return t})}function we(e,t){return"function"==typeof e?e.toString().replace(/ \{[\s\S]*$/,""):y(e)?"undefined":"string"!=typeof e?be(e,t):e}function xe(){return++Ai}function Ce(e){return Se(e.replace(Oi,"ms-"))}function ke(e,t){return t.toUpperCase()}function Se(e){return e.replace(Ti,ke)}function Ee(e){return!Ii.test(e)}function Ae(e){var t=e.nodeType;return t===bi||!t||t===Ci}function Te(e){for(var t in Ei[e.ng339])return!0;return!1}function Oe(e){for(var t=0,n=e.length;t<n;t++)Pe(e[t])}function Me(e,t){var n,r,i,a,s=t.createDocumentFragment(),u=[];if(Ee(e))u.push(t.createTextNode(e));else{for(n=s.appendChild(t.createElement("div")),r=(Ni.exec(e)||["",""])[1].toLowerCase(),i=ji[r]||ji._default,n.innerHTML=i[1]+e.replace(Di,"<$1></$2>")+i[2],a=i[0];a--;)n=n.lastChild;u=H(u,n.childNodes),n=s.firstChild,n.textContent=""}return s.textContent="",s.innerHTML="",o(u,function(e){s.appendChild(e)}),s}function _e(t,n){n=n||e.document;var r;return(r=Vi.exec(t))?[n.createElement(r[1])]:(r=Me(t,n))?r.childNodes:[]}function Ve(e,t){var n=e.parentNode;n&&n.replaceChild(t,e),t.appendChild(e)}function Ie(e){if(e instanceof Ie)return e;var t;if(C(e)&&(e=fi(e),t=!0),!(this instanceof Ie)){if(t&&"<"!==e.charAt(0))throw _i("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element");return new Ie(e)}t?Fe(this,_e(e)):E(e)?Je(e):Fe(this,e)}function Ne(e){return e.cloneNode(!0)}function De(e,t){if(t||Pe(e),e.querySelectorAll)for(var n=e.querySelectorAll("*"),r=0,i=n.length;r<i;r++)Pe(n[r])} function je(e,t,n,r){if(b(r))throw _i("offargs","jqLite#off() does not support the `selector` argument");var i=Re(e),a=i&&i.events,s=i&&i.handle;if(s)if(t){var u=function(t){var r=a[t];b(n)&&U(r||[],n),b(n)&&r&&r.length>0||(e.removeEventListener(t,s),delete a[t])};o(t.split(" "),function(e){u(e),Mi[e]&&u(Mi[e])})}else for(t in a)"$destroy"!==t&&e.removeEventListener(t,s),delete a[t]}function Pe(e,t){var n=e.ng339,r=n&&Ei[n];if(r){if(t)return void delete r.data[t];r.handle&&(r.events.$destroy&&r.handle({},"$destroy"),je(e)),delete Ei[n],e.ng339=void 0}}function Re(e,t){var n=e.ng339,r=n&&Ei[n];return t&&!r&&(e.ng339=n=xe(),r=Ei[n]={events:{},data:{},handle:void 0}),r}function Le(e,t,n){if(Ae(e)){var r,i=b(n),o=!i&&t&&!w(t),a=!t,s=Re(e,!o),u=s&&s.data;if(i)u[Se(t)]=n;else{if(a)return u;if(o)return u&&u[Se(t)];for(r in t)u[Se(r)]=t[r]}}}function qe(e,t){return!!e.getAttribute&&(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+t+" ")>-1}function Ue(e,t){t&&e.setAttribute&&o(t.split(" "),function(t){e.setAttribute("class",fi((" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+fi(t)+" "," ")))})}function ze(e,t){if(t&&e.setAttribute){var n=(" "+(e.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");o(t.split(" "),function(e){e=fi(e),n.indexOf(" "+e+" ")===-1&&(n+=e+" ")}),e.setAttribute("class",fi(n))}}function Fe(e,t){if(t)if(t.nodeType)e[e.length++]=t;else{var n=t.length;if("number"==typeof n&&t.window!==t){if(n)for(var r=0;r<n;r++)e[e.length++]=t[r]}else e[e.length++]=t}}function He(e,t){return Be(e,"$"+(t||"ngController")+"Controller")}function Be(e,t,n){e.nodeType===Ci&&(e=e.documentElement);for(var r=ci(t)?t:[t];e;){for(var i=0,o=r.length;i<o;i++)if(b(n=Yr.data(e,r[i])))return n;e=e.parentNode||e.nodeType===ki&&e.host}}function We(e){for(De(e,!0);e.firstChild;)e.removeChild(e.firstChild)}function Ge(e,t){t||De(e);var n=e.parentNode;n&&n.removeChild(e)}function Ze(t,n){n=n||e,"complete"===n.document.readyState?n.setTimeout(t):Yr(n).on("load",t)}function Je(t){function n(){e.document.removeEventListener("DOMContentLoaded",n),e.removeEventListener("load",n),t()}"complete"===e.document.readyState?e.setTimeout(t):(e.document.addEventListener("DOMContentLoaded",n),e.addEventListener("load",n))}function Ke(e,t){var n=Li[t.toLowerCase()];return n&&qi[L(e)]&&n}function Ye(e){return Ui[e]}function Xe(e,t){var n=function(n,r){n.isDefaultPrevented=function(){return n.defaultPrevented};var i=t[r||n.type],o=i?i.length:0;if(o){if(y(n.immediatePropagationStopped)){var a=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0,n.stopPropagation&&n.stopPropagation(),a&&a.call(n)}}n.isImmediatePropagationStopped=function(){return n.immediatePropagationStopped===!0};var s=i.specialHandlerWrapper||Qe;o>1&&(i=ye(i));for(var u=0;u<o;u++)n.isImmediatePropagationStopped()||s(e,n,i[u])}};return n.elem=e,n}function Qe(e,t,n){n.call(e,t)}function et(e,t,n){var r=t.relatedTarget;r&&(r===e||Pi.call(e,r))||n.call(e,t)}function tt(){this.$get=function(){return f(Ie,{hasClass:function(e,t){return e.attr&&(e=e[0]),qe(e,t)},addClass:function(e,t){return e.attr&&(e=e[0]),ze(e,t)},removeClass:function(e,t){return e.attr&&(e=e[0]),Ue(e,t)}})}}function nt(e,t){var n=e&&e.$$hashKey;if(n)return"function"==typeof n&&(n=e.$$hashKey()),n;var r=typeof e;return n="function"===r||"object"===r&&null!==e?e.$$hashKey=r+":"+(t||u)():r+":"+e}function rt(){this._keys=[],this._values=[],this._lastKey=NaN,this._lastIndex=-1}function it(e){return Function.prototype.toString.call(e)}function ot(e){var t=it(e).replace(Ji,"");return t.match(Bi)||t.match(Wi)}function at(e){var t=ot(e);return t?"function("+(t[1]||"").replace(/[\s\r\n]+/," ")+")":"fn"}function st(e,t,n){var r,i,a;if("function"==typeof e){if(!(r=e.$inject)){if(r=[],e.length){if(t)throw C(n)&&n||(n=e.name||at(e)),Ki("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n);i=ot(e),o(i[1].split(Gi),function(e){e.replace(Zi,function(e,t,n){r.push(n)})})}e.$inject=r}}else ci(e)?(a=e.length-1,he(e[a],"fn"),r=e.slice(0,a)):he(e,"fn",!0);return r}function ut(e,t){function n(e){return function(t,n){if(!w(t))return e(t,n);o(t,s(e))}}function r(e,t){if(de(e,"service"),(E(t)||ci(t))&&(t=x.instantiate(t)),!t.$get)throw Ki("pget","Provider '{0}' must define $get factory method.",e);return b[e+$]=t}function i(e,t){return function(){var n=A.invoke(t,this);if(y(n))throw Ki("undef","Provider '{0}' must return a value from $get factory method.",e);return n}}function a(e,t,n){return r(e,{$get:n!==!1?i(e,t):t})}function u(e,t){return a(e,["$injector",function(e){return e.instantiate(t)}])}function c(e,t){return a(e,v(t),!1)}function l(e,t){de(e,"constant"),b[e]=t,k[e]=t}function f(e,t){var n=x.get(e+$),r=n.$get;n.$get=function(){var e=A.invoke(r,n);return A.invoke(t,null,{$delegate:e})}}function h(e){fe(y(e)||ci(e),"modulesToLoad","not an array");var t,n=[];return o(e,function(e){function r(e){var t,n;for(t=0,n=e.length;t<n;t++){var r=e[t],i=x.get(r[0]);i[r[1]].apply(i,r[2])}}if(!g.get(e)){g.set(e,!0);try{C(e)?(t=Qr(e),A.modules[e]=t,n=n.concat(h(t.requires)).concat(t._runBlocks),r(t._invokeQueue),r(t._configBlocks)):E(e)?n.push(x.invoke(e)):ci(e)?n.push(x.invoke(e)):he(e,"module")}catch(t){throw ci(e)&&(e=e[e.length-1]),t.message&&t.stack&&t.stack.indexOf(t.message)===-1&&(t=t.message+"\n"+t.stack),Ki("modulerr","Failed to instantiate module {0} due to:\n{1}",e,t.stack||t.message||t)}}}),n}function d(e,n){function r(t,r){if(e.hasOwnProperty(t)){if(e[t]===p)throw Ki("cdep","Circular dependency found: {0}",t+" <- "+m.join(" <- "));return e[t]}try{return m.unshift(t),e[t]=p,e[t]=n(t,r),e[t]}catch(n){throw e[t]===p&&delete e[t],n}finally{m.shift()}}function i(e,n,i){for(var o=[],a=ut.$$annotate(e,t,i),s=0,u=a.length;s<u;s++){var c=a[s];if("string"!=typeof c)throw Ki("itkn","Incorrect injection token! Expected service name as string, got {0}",c);o.push(n&&n.hasOwnProperty(c)?n[c]:r(c,i))}return o}function o(e){if(Kr||"function"!=typeof e)return!1;var t=e.$$ngIsClass;return I(t)||(t=e.$$ngIsClass=/^(?:class\b|constructor\()/.test(it(e))),t}function a(e,t,n,r){"string"==typeof n&&(r=n,n=null);var a=i(e,n,r);return ci(e)&&(e=e[e.length-1]),o(e)?(a.unshift(null),new(Function.prototype.bind.apply(e,a))):e.apply(t,a)}function s(e,t,n){var r=ci(e)?e[e.length-1]:e,o=i(e,t,n);return o.unshift(null),new(Function.prototype.bind.apply(r,o))}return{invoke:a,instantiate:s,get:r,annotate:ut.$$annotate,has:function(t){return b.hasOwnProperty(t+$)||e.hasOwnProperty(t)}}}t=t===!0;var p={},$="Provider",m=[],g=new Fi,b={$provide:{provider:n(r),factory:n(a),service:n(u),value:n(c),constant:n(l),decorator:f}},x=b.$injector=d(b,function(e,t){throw ai.isString(t)&&m.push(t),Ki("unpr","Unknown provider: {0}",m.join(" <- "))}),k={},S=d(k,function(e,t){var n=x.get(e+$,t);return A.invoke(n.$get,n,void 0,e)}),A=S;b["$injector"+$]={$get:v(S)},A.modules=x.modules=me();var T=h(e);return A=S.get("$injector"),A.strictDi=t,o(T,function(e){e&&A.invoke(e)}),A}function ct(){var e=!0;this.disableAutoScrolling=function(){e=!1},this.$get=["$window","$location","$rootScope",function(t,n,r){function i(e){var t=null;return Array.prototype.some.call(e,function(e){if("a"===L(e))return t=e,!0}),t}function o(){var e=s.yOffset;if(E(e))e=e();else if(P(e)){var n=e[0],r=t.getComputedStyle(n);e="fixed"!==r.position?0:n.getBoundingClientRect().bottom}else k(e)||(e=0);return e}function a(e){if(e){e.scrollIntoView();var n=o();if(n){var r=e.getBoundingClientRect().top;t.scrollBy(0,r-n)}}else t.scrollTo(0,0)}function s(e){e=C(e)?e:k(e)?e.toString():n.hash();var t;e?(t=u.getElementById(e))?a(t):(t=i(u.getElementsByName(e)))?a(t):"top"===e&&a(null):a(null)}var u=t.document;return e&&r.$watch(function(){return n.hash()},function(e,t){e===t&&""===e||Ze(function(){r.$evalAsync(s)})}),s}]}function lt(e,t){return e||t?e?t?(ci(e)&&(e=e.join(" ")),ci(t)&&(t=t.join(" ")),e+" "+t):e:t:""}function ft(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.nodeType===Xi)return n}}function ht(e){C(e)&&(e=e.split(" "));var t=me();return o(e,function(e){e.length&&(t[e]=!0)}),t}function dt(e){return w(e)?e:{}}function pt(e,t,n,r){function i(e){try{e.apply(null,B(arguments,1))}finally{if(0===--v)for(;g.length;)try{g.pop()()}catch(e){n.error(e)}}}function a(e){var t=e.indexOf("#");return t===-1?"":e.substr(t)}function s(){k=null,c()}function u(){b=S(),b=y(b)?null:b,F(b,T)&&(b=T),T=b,w=b}function c(){var e=w;u(),x===l.url()&&e===b||(x=l.url(),w=b,o(E,function(e){e(l.url(),b)}))}var l=this,f=e.location,h=e.history,d=e.setTimeout,p=e.clearTimeout,m={};l.isMock=!1;var v=0,g=[];l.$$completeOutstandingRequest=i,l.$$incOutstandingRequestCount=function(){v++},l.notifyWhenNoOutstandingRequests=function(e){0===v?e():g.push(e)};var b,w,x=f.href,C=t.find("base"),k=null,S=r.history?function(){try{return h.state}catch(e){}}:$;u(),l.url=function(t,n,i){if(y(i)&&(i=null),f!==e.location&&(f=e.location),h!==e.history&&(h=e.history),t){var o=w===i;if(x===t&&(!r.history||o))return l;var s=x&&Jt(x)===Jt(t);return x=t,w=i,!r.history||s&&o?(s||(k=t),n?f.replace(t):s?f.hash=a(t):f.href=t,f.href!==t&&(k=t)):(h[n?"replaceState":"pushState"](i,"",t),u()),k&&(k=t),l}return k||f.href.replace(/%27/g,"'")},l.state=function(){return b};var E=[],A=!1,T=null;l.onUrlChange=function(t){return A||(r.history&&Yr(e).on("popstate",s),Yr(e).on("hashchange",s),A=!0),E.push(t),t},l.$$applicationDestroyed=function(){Yr(e).off("hashchange popstate",s)},l.$$checkUrlChange=c,l.baseHref=function(){var e=C.attr("href");return e?e.replace(/^(https?:)?\/\/[^\/]*/,""):""},l.defer=function(e,t){var n;return v++,n=d(function(){delete m[n],i(e)},t||0),m[n]=!0,n},l.defer.cancel=function(e){return!!m[e]&&(delete m[e],p(e),i($),!0)}}function $t(){this.$get=["$window","$log","$sniffer","$document",function(e,t,n,r){return new pt(e,r,t,n)}]}function mt(){this.$get=function(){function e(e,r){function i(e){e!==h&&(d?d===e&&(d=e.n):d=e,o(e.n,e.p),o(e,h),h=e,h.n=null)}function o(e,t){e!==t&&(e&&(e.p=t),t&&(t.n=e))}if(e in n)throw t("$cacheFactory")("iid","CacheId '{0}' is already taken!",e);var a=0,s=f({},r,{id:e}),u=me(),c=r&&r.capacity||Number.MAX_VALUE,l=me(),h=null,d=null;return n[e]={put:function(e,t){if(!y(t)){if(c<Number.MAX_VALUE){i(l[e]||(l[e]={key:e}))}return e in u||a++,u[e]=t,a>c&&this.remove(d.key),t}},get:function(e){if(c<Number.MAX_VALUE){var t=l[e];if(!t)return;i(t)}return u[e]},remove:function(e){if(c<Number.MAX_VALUE){var t=l[e];if(!t)return;t===h&&(h=t.p),t===d&&(d=t.n),o(t.n,t.p),delete l[e]}e in u&&(delete u[e],a--)},removeAll:function(){u=me(),a=0,l=me(),h=d=null},destroy:function(){u=null,s=null,l=null,delete n[e]},info:function(){return f({},s,{size:a})}}}var n={};return e.info=function(){var e={};return o(n,function(t,n){e[n]=t.info()}),e},e.get=function(e){return n[e]},e}}function vt(){this.$get=["$cacheFactory",function(e){return e("templates")}]}function gt(){}function yt(t,n){function r(e,t,n){var r=me();return o(e,function(e,i){if(e in A)return void(r[i]=A[e]);var o=e.match(/^\s*([@&<]|=(\*?))(\??)\s*([\w$]*)\s*$/);if(!o)throw oo("iscp","Invalid {3} for directive '{0}'. Definition: {... {1}: '{2}' ...}",t,i,e,n?"controller bindings definition":"isolate scope definition");r[i]={mode:o[1][0],collection:"*"===o[2],optional:"?"===o[3],attrName:o[4]||i},o[4]&&(A[e]=r[i])}),r}function i(e,t){var n={isolateScope:null,bindToController:null};if(w(e.scope)&&(e.bindToController===!0?(n.bindToController=r(e.scope,t,!0),n.isolateScope={}):n.isolateScope=r(e.scope,t,!1)),w(e.bindToController)&&(n.bindToController=r(e.bindToController,t,!0)),n.bindToController&&!e.controller)throw oo("noctrl","Cannot bind to controller without directive '{0}'s controller.",t);return n}function a(e){var t=e.charAt(0);if(!t||t!==Wr(t))throw oo("baddir","Directive/Component name '{0}' is invalid. The first character must be a lowercase letter",e);if(e!==e.trim())throw oo("baddir","Directive/Component name '{0}' is invalid. The name should not contain leading or trailing whitespaces",e)}function u(e){var t=e.require||e.controller&&e.name;return!ci(t)&&w(t)&&o(t,function(e,n){var r=e.match(k);e.substring(r[0].length)||(t[n]=r[0]+n)}),t}function c(e,t){if(e&&(!C(e)||!/[EACM]/.test(e)))throw oo("badrestrict","Restrict property '{0}' of directive '{1}' is invalid",e,t);return e||"EA"}var l={},h="Directive",d=/^\s*directive:\s*([\w-]+)\s+(.*)$/,g=/(([\w-]+)(?::([^;]+))?;?)/,x=R("ngSrc,ngSrcset,src,srcset"),k=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/,S=/^(on[a-z]+|formaction)$/,A=me();this.directive=function e(n,r){return fe(n,"name"),de(n,"directive"),C(n)?(a(n),fe(r,"directiveFactory"),l.hasOwnProperty(n)||(l[n]=[],t.factory(n+h,["$injector","$exceptionHandler",function(e,t){var r=[];return o(l[n],function(i,o){try{var a=e.invoke(i);E(a)?a={compile:v(a)}:!a.compile&&a.link&&(a.compile=v(a.link)),a.priority=a.priority||0,a.index=o,a.name=a.name||n,a.require=u(a),a.restrict=c(a.restrict,n),a.$$moduleName=i.$$moduleName,r.push(a)}catch(e){t(e)}}),r}])),l[n].push(r)):o(n,s(e)),this},this.component=function(e,t){function n(e){function n(t){return E(t)||ci(t)?function(n,r){return e.invoke(t,this,{$element:n,$attrs:r})}:t}var i=t.template||t.templateUrl?t.template:"",a={controller:r,controllerAs:kt(t.controller)||t.controllerAs||"$ctrl",template:n(i),templateUrl:n(t.templateUrl),transclude:t.transclude,scope:{},bindToController:t.bindings||{},restrict:"E",require:t.require};return o(t,function(e,t){"$"===t.charAt(0)&&(a[t]=e)}),a}var r=t.controller||function(){};return o(t,function(e,t){"$"===t.charAt(0)&&(n[t]=e,E(r)&&(r[t]=e))}),n.$inject=["$injector"],this.directive(e,n)},this.aHrefSanitizationWhitelist=function(e){return b(e)?(n.aHrefSanitizationWhitelist(e),this):n.aHrefSanitizationWhitelist()},this.imgSrcSanitizationWhitelist=function(e){return b(e)?(n.imgSrcSanitizationWhitelist(e),this):n.imgSrcSanitizationWhitelist()};var T=!0;this.debugInfoEnabled=function(e){return b(e)?(T=e,this):T};var M=!1;this.preAssignBindingsEnabled=function(e){return b(e)?(M=e,this):M};var _=10;this.onChangesTtl=function(e){return arguments.length?(_=e,this):_};var V=!0;this.commentDirectivesEnabled=function(e){return arguments.length?(V=e,this):V};var N=!0;this.cssClassDirectivesEnabled=function(e){return arguments.length?(N=e,this):N},this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$sce","$animate","$$sanitizeUri",function(t,n,r,a,s,u,c,v,A,D){function j(){try{if(!--Oe)throw Ce=void 0,oo("infchng","{0} $onChanges() iterations reached. Aborting!\n",_);c.$apply(function(){for(var e=[],t=0,n=Ce.length;t<n;++t)try{Ce[t]()}catch(t){e.push(t)}if(Ce=void 0,e.length)throw e})}finally{Oe++}}function P(e,t){if(t){var n,r,i,o=Object.keys(t);for(n=0,r=o.length;n<r;n++)i=o[n],this[i]=t[i]}else this.$attr={};this.$$element=e}function R(e,t,n){Se.innerHTML="<span "+t+">";var r=Se.firstChild.attributes,i=r[0];r.removeNamedItem(i.name),i.value=n,e.attributes.setNamedItem(i)}function q(e,t){try{e.addClass(t)}catch(e){}}function z(e,t,n,r,i){e instanceof Yr||(e=Yr(e));var o=G(e,t,e,n,r,i);z.$$addScopeClass(e);var a=null;return function(t,n,r){if(!e)throw oo("multilink","This element has already been linked.");fe(t,"scope"),i&&i.needsNewScope&&(t=t.$parent.$new()),r=r||{};var s=r.parentBoundTranscludeFn,u=r.transcludeControllers,c=r.futureParentElement;s&&s.$$boundTransclude&&(s=s.$$boundTransclude),a||(a=H(c));var l;if(l="html"!==a?Yr($e(a,Yr("<div>").append(e).html())):n?Ri.clone.call(e):e,u)for(var f in u)l.data("$"+f+"Controller",u[f].instance);return z.$$addScopeInfo(l,t),n&&n(l,t),o&&o(t,l,l,s),n||(e=o=null),l}}function H(e){var t=e&&e[0];return t&&"foreignobject"!==L(t)&&ri.call(t).match(/SVG/)?"svg":"html"}function G(e,t,n,r,i,o){function a(e,n,r,i){var o,a,s,u,c,l,f,h,$;if(d){var m=n.length;for($=new Array(m),c=0;c<p.length;c+=3)f=p[c],$[f]=n[f]}else $=n;for(c=0,l=p.length;c<l;)s=$[p[c++]],o=p[c++],a=p[c++],o?(o.scope?(u=e.$new(),z.$$addScopeInfo(Yr(s),u)):u=e,h=o.transcludeOnThisElement?J(e,o.transclude,i):!o.templateOnThisElement&&i?i:!i&&t?J(e,t):null,o(a,u,s,r,h)):a&&a(e,s.childNodes,void 0,i)}for(var s,u,c,l,f,h,d,p=[],$=ci(e)||e instanceof Yr,m=0;m<e.length;m++)s=new P,11===Kr&&Z(e,m,$),u=K(e[m],[],s,0===m?r:void 0,i),c=u.length?ne(u,e[m],s,t,n,null,[],[],o):null,c&&c.scope&&z.$$addScopeClass(s.$$element),f=c&&c.terminal||!(l=e[m].childNodes)||!l.length?null:G(l,c?(c.transcludeOnThisElement||!c.templateOnThisElement)&&c.transclude:t),(c||f)&&(p.push(m,c,f),h=!0,d=d||c),o=null;return h?a:null}function Z(e,t,n){var r,i=e[t],o=i.parentNode;if(i.nodeType===wi)for(;;){if(!(r=o?i.nextSibling:e[t+1])||r.nodeType!==wi)break;i.nodeValue=i.nodeValue+r.nodeValue,r.parentNode&&r.parentNode.removeChild(r),n&&r===e[t+1]&&e.splice(t+1,1)}}function J(e,t,n){function r(r,i,o,a,s){return r||(r=e.$new(!1,s),r.$$transcluded=!0),t(r,i,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:a})}var i=r.$$slots=me();for(var o in t.$$slots)t.$$slots[o]?i[o]=J(e,t.$$slots[o],n):i[o]=null;return r}function K(e,t,n,r,i){var o,a,s,u=e.nodeType,c=n.$attr;switch(u){case bi:a=L(e),ae(t,wt(a),"E",r,i);for(var l,f,h,d,p,$,m=e.attributes,v=0,y=m&&m.length;v<y;v++){var b=!1,x=!1;l=m[v],f=l.name,p=l.value,d=wt(f),$=Ie.test(d),$&&(f=f.replace(so,"").substr(8).replace(/_(.)/g,function(e,t){return t.toUpperCase()}));var k=d.match(De);k&&se(k[1])&&(b=f,x=f.substr(0,f.length-5)+"end",f=f.substr(0,f.length-6)),h=wt(f.toLowerCase()),c[h]=f,!$&&n.hasOwnProperty(h)||(n[h]=p,Ke(e,h)&&(n[h]=!0)),ge(e,t,p,h,$),ae(t,h,"A",r,i,b,x)}if("input"===a&&"hidden"===e.getAttribute("type")&&e.setAttribute("autocomplete","off"),!Te)break;if(s=e.className,w(s)&&(s=s.animVal),C(s)&&""!==s)for(;o=g.exec(s);)h=wt(o[2]),ae(t,h,"C",r,i)&&(n[h]=fi(o[3])),s=s.substr(o.index+o[0].length);break;case wi:pe(t,e.nodeValue);break;case xi:if(!Ae)break;Y(e,t,n,r,i)}return t.sort(he),t}function Y(e,t,n,r,i){try{var o=d.exec(e.nodeValue);if(o){var a=wt(o[1]);ae(t,a,"M",r,i)&&(n[a]=fi(o[2]))}}catch(e){}}function X(e,t,n){var r=[],i=0;if(t&&e.hasAttribute&&e.hasAttribute(t))do{if(!e)throw oo("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",t,n);e.nodeType===bi&&(e.hasAttribute(t)&&i++,e.hasAttribute(n)&&i--),r.push(e),e=e.nextSibling}while(i>0);else r.push(e);return Yr(r)}function ee(e,t,n){return function(r,i,o,a,s){return i=X(i[0],t,n),e(r,i,o,a,s)}}function te(e,t,n,r,i,o){var a;return e?z(t,n,r,i,o):function(){return a||(a=z(t,n,r,i,o),t=n=o=null),a.apply(this,arguments)}}function ne(e,t,n,i,a,s,u,c,l){function h(e,t,n,r){e&&(n&&(e=ee(e,n,r)),e.require=p.require,e.directiveName=$,(k===p||p.$$isolateScope)&&(e=be(e,{isolateScope:!0})),u.push(e)),t&&(n&&(t=ee(t,n,r)),t.require=p.require,t.directiveName=$,(k===p||p.$$isolateScope)&&(t=be(t,{isolateScope:!0})),c.push(t))}function d(e,i,a,s,l){function h(e,t,n,r){var i;if(O(e)||(r=n,n=t,t=e,e=void 0),V&&(i=g),n||(n=V?A.parent():A),!r)return l(e,t,i,n,L);var o=l.$$slots[r];if(o)return o(e,t,i,n,L);if(y(o))throw oo("noslot",'No parent directive that requires a transclusion with slot name "{0}". Element: {1}',r,Q(A))}var d,p,$,m,v,g,b,A,T,_;t===a?(T=n,A=n.$$element):(A=Yr(a),T=new P(A,n)),v=i,k?m=i.$new(!0):x&&(v=i.$parent),l&&(b=h,b.$$boundTransclude=l,b.isSlotFilled=function(e){return!!l.$$slots[e]}),C&&(g=ie(A,T,b,C,m,i,k)),k&&(z.$$addScopeInfo(A,m,!0,!(S&&(S===k||S===k.$$originalDirective))),z.$$addScopeClass(A,!0),m.$$isolateBindings=k.$$isolateBindings,_=xe(i,T,m,m.$$isolateBindings,k),_.removeWatches&&m.$on("$destroy",_.removeWatches));for(var I in g){var N=C[I],D=g[I],j=N.$$bindings.bindToController;if(M){D.bindingInfo=j?xe(v,T,D.instance,j,N):{};var R=D();R!==D.instance&&(D.instance=R,A.data("$"+N.name+"Controller",R),D.bindingInfo.removeWatches&&D.bindingInfo.removeWatches(),D.bindingInfo=xe(v,T,D.instance,j,N))}else D.instance=D(),A.data("$"+N.name+"Controller",D.instance),D.bindingInfo=xe(v,T,D.instance,j,N)}for(o(C,function(e,t){var n=e.require;e.bindToController&&!ci(n)&&w(n)&&f(g[t].instance,re(t,n,A,g))}),o(g,function(e){var t=e.instance;if(E(t.$onChanges))try{t.$onChanges(e.bindingInfo.initialChanges)}catch(e){r(e)}if(E(t.$onInit))try{t.$onInit()}catch(e){r(e)}E(t.$doCheck)&&(v.$watch(function(){t.$doCheck()}),t.$doCheck()),E(t.$onDestroy)&&v.$on("$destroy",function(){t.$onDestroy()})}),d=0,p=u.length;d<p;d++)$=u[d],we($,$.isolateScope?m:i,A,T,$.require&&re($.directiveName,$.require,A,g),b);var L=i;for(k&&(k.template||null===k.templateUrl)&&(L=m),e&&e(L,a.childNodes,void 0,l),d=c.length-1;d>=0;d--)$=c[d],we($,$.isolateScope?m:i,A,T,$.require&&re($.directiveName,$.require,A,g),b);o(g,function(e){var t=e.instance;E(t.$postLink)&&t.$postLink()})}l=l||{};for(var p,$,m,v,g,b=-Number.MAX_VALUE,x=l.newScopeDirective,C=l.controllerDirectives,k=l.newIsolateScopeDirective,S=l.templateDirective,A=l.nonTlbTranscludeDirective,T=!1,_=!1,V=l.hasElementTranscludeDirective,I=n.$$element=Yr(t),N=s,D=i,j=!1,R=!1,q=0,U=e.length;q<U;q++){p=e[q];var F=p.$$start,H=p.$$end;if(F&&(I=X(t,F,H)),m=void 0,b>p.priority)break;if(g=p.scope,g&&(p.templateUrl||(w(g)?(de("new/isolated scope",k||x,p,I),k=p):de("new/isolated scope",k,p,I)),x=x||p),$=p.name,!j&&(p.replace&&(p.templateUrl||p.template)||p.transclude&&!p.$$tlb)){for(var G,Z=q+1;G=e[Z++];)if(G.transclude&&!G.$$tlb||G.replace&&(G.templateUrl||G.template)){R=!0;break}j=!0}if(!p.templateUrl&&p.controller&&(C=C||me(),de("'"+$+"' controller",C[$],p,I),C[$]=p),g=p.transclude)if(T=!0,p.$$tlb||(de("transclusion",A,p,I),A=p),"element"===g)V=!0,b=p.priority,m=I,I=n.$$element=Yr(z.$$createComment($,n[$])),t=I[0],ye(a,B(m),t),m[0].$$parentNode=m[0].parentNode,D=te(R,m,i,b,N&&N.name,{nonTlbTranscludeDirective:A});else{var J=me();if(w(g)){m=[];var Y=me(),ne=me();o(g,function(e,t){var n="?"===e.charAt(0);e=n?e.substring(1):e,Y[e]=t,J[t]=null,ne[t]=n}),o(I.contents(),function(e){var t=Y[wt(L(e))];t?(ne[t]=!0,J[t]=J[t]||[],J[t].push(e)):m.push(e)}),o(ne,function(e,t){if(!e)throw oo("reqslot","Required transclusion slot `{0}` was not filled.",t)});for(var ae in J)J[ae]&&(J[ae]=te(R,J[ae],i))}else m=Yr(Ne(t)).contents();I.empty(),D=te(R,m,i,void 0,void 0,{needsNewScope:p.$$isolateScope||p.$$newScope}),D.$$slots=J}if(p.template)if(_=!0,de("template",S,p,I),S=p,g=E(p.template)?p.template(I,n):p.template,g=Ve(g),p.replace){if(N=p,m=Ee(g)?[]:Ct($e(p.templateNamespace,fi(g))),t=m[0],1!==m.length||t.nodeType!==bi)throw oo("tplrt","Template for directive '{0}' must have exactly one root element. {1}",$,"");ye(a,I,t);var se={$attr:{}},le=K(t,[],se),fe=e.splice(q+1,e.length-(q+1));(k||x)&&oe(le,k,x),e=e.concat(le).concat(fe),ue(n,se),U=e.length}else I.html(g);if(p.templateUrl)_=!0,de("template",S,p,I),S=p,p.replace&&(N=p),d=ce(e.splice(q,e.length-q),I,n,a,T&&D,u,c,{controllerDirectives:C,newScopeDirective:x!==p&&x,newIsolateScopeDirective:k,templateDirective:S,nonTlbTranscludeDirective:A}),U=e.length;else if(p.compile)try{v=p.compile(I,n,D);var he=p.$$originalDirective||p;E(v)?h(null,W(he,v),F,H):v&&h(W(he,v.pre),W(he,v.post),F,H)}catch(e){r(e,Q(I))}p.terminal&&(d.terminal=!0,b=Math.max(b,p.priority))}return d.scope=x&&x.scope===!0,d.transcludeOnThisElement=T,d.templateOnThisElement=_,d.transclude=D,l.hasElementTranscludeDirective=V,d}function re(e,t,n,r){var i;if(C(t)){var a=t.match(k),s=t.substring(a[0].length),u=a[1]||a[3],c="?"===a[2];if("^^"===u?n=n.parent():(i=r&&r[s],i=i&&i.instance),!i){var l="$"+s+"Controller";i=u?n.inheritedData(l):n.data(l)}if(!i&&!c)throw oo("ctreq","Controller '{0}', required by directive '{1}', can't be found!",s,e)}else if(ci(t)){i=[];for(var f=0,h=t.length;f<h;f++)i[f]=re(e,t[f],n,r)}else w(t)&&(i={},o(t,function(t,o){i[o]=re(e,t,n,r)}));return i||null}function ie(e,t,n,r,i,o,a){var s=me();for(var c in r){var l=r[c],f={$scope:l===a||l.$$isolateScope?i:o,$element:e,$attrs:t,$transclude:n},h=l.controller;"@"===h&&(h=t[l.name]);var d=u(h,f,!0,l.controllerAs);s[l.name]=d,e.data("$"+l.name+"Controller",d.instance)}return s}function oe(e,t,n){for(var r=0,i=e.length;r<i;r++)e[r]=p(e[r],{$$isolateScope:t,$$newScope:n})}function ae(e,n,r,o,a,s,u){if(n===a)return null;var c=null;if(l.hasOwnProperty(n))for(var f,d=t.get(n+h),$=0,m=d.length;$<m;$++)if(f=d[$],(y(o)||o>f.priority)&&f.restrict.indexOf(r)!==-1){if(s&&(f=p(f,{$$start:s,$$end:u})),!f.$$bindings){var v=f.$$bindings=i(f,f.name);w(v.isolateScope)&&(f.$$isolateBindings=v.isolateScope)}e.push(f),c=f}return c}function se(e){if(l.hasOwnProperty(e))for(var n,r=t.get(e+h),i=0,o=r.length;i<o;i++)if(n=r[i],n.multiElement)return!0;return!1}function ue(e,t){var n=t.$attr,r=e.$attr;o(e,function(r,i){"$"!==i.charAt(0)&&(t[i]&&t[i]!==r&&(r.length?r+=("style"===i?";":" ")+t[i]:r=t[i]),e.$set(i,r,!0,n[i]))}),o(t,function(t,i){e.hasOwnProperty(i)||"$"===i.charAt(0)||(e[i]=t,"class"!==i&&"style"!==i&&(r[i]=n[i]))})}function ce(e,t,n,i,s,u,c,l){var f,h,d=[],$=t[0],m=e.shift(),v=p(m,{templateUrl:null,transclude:null,replace:null,$$originalDirective:m}),g=E(m.templateUrl)?m.templateUrl(t,n):m.templateUrl,y=m.templateNamespace;return t.empty(),a(g).then(function(r){var a,p,b,x;if(r=Ve(r),m.replace){if(b=Ee(r)?[]:Ct($e(y,fi(r))),a=b[0],1!==b.length||a.nodeType!==bi)throw oo("tplrt","Template for directive '{0}' must have exactly one root element. {1}",m.name,g);p={$attr:{}},ye(i,t,a);var C=K(a,[],p);w(m.scope)&&oe(C,!0),e=C.concat(e),ue(n,p)}else a=$,t.html(r);for(e.unshift(v),f=ne(e,a,n,s,t,m,u,c,l),o(i,function(e,n){e===a&&(i[n]=t[0])}),h=G(t[0].childNodes,s);d.length;){var k=d.shift(),S=d.shift(),E=d.shift(),A=d.shift(),T=t[0];if(!k.$$destroyed){if(S!==$){var O=S.className;l.hasElementTranscludeDirective&&m.replace||(T=Ne(a)),ye(E,Yr(S),T),q(Yr(T),O)}x=f.transcludeOnThisElement?J(k,f.transclude,A):A,f(h,k,T,i,x)}}d=null}).catch(function(e){e instanceof Error&&r(e)}),function(e,t,n,r,i){var o=i;t.$$destroyed||(d?d.push(t,n,r,o):(f.transcludeOnThisElement&&(o=J(t,f.transclude,i)),f(h,t,n,r,o)))}}function he(e,t){var n=t.priority-e.priority;return 0!==n?n:e.name!==t.name?e.name<t.name?-1:1:e.index-t.index}function de(e,t,n,r){function i(e){return e?" (module: "+e+")":""}if(t)throw oo("multidir","Multiple directives [{0}{1}, {2}{3}] asking for {4} on: {5}",t.name,i(t.$$moduleName),n.name,i(n.$$moduleName),e,Q(r))}function pe(e,t){var r=n(t,!0);r&&e.push({priority:0,compile:function(e){var t=e.parent(),n=!!t.length;return n&&z.$$addBindingClass(t),function(e,t){var i=t.parent();n||z.$$addBindingClass(i),z.$$addBindingInfo(i,r.expressions),e.$watch(r,function(e){t[0].nodeValue=e})}}})}function $e(t,n){switch(t=Wr(t||"html")){case"svg":case"math":var r=e.document.createElement("div");return r.innerHTML="<"+t+">"+n+"</"+t+">",r.childNodes[0].childNodes;default:return n}}function ve(e,t){if("srcdoc"===t)return v.HTML;var n=L(e);if("src"===t||"ngSrc"===t){if(["img","video","audio","source","track"].indexOf(n)===-1)return v.RESOURCE_URL}else if("xlinkHref"===t||"form"===n&&"action"===t||"link"===n&&"href"===t)return v.RESOURCE_URL}function ge(e,t,r,i,o){var a=ve(e,i),s=!o,u=x[i]||o,c=n(r,s,a,u);if(c){if("multiple"===i&&"select"===L(e))throw oo("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",Q(e));if(S.test(i))throw oo("nodomevents","Interpolations for HTML DOM event attributes are disallowed. Please use the ng- versions (such as ng-click instead of onclick) instead.");t.push({priority:100,compile:function(){return{pre:function(e,t,o){var s=o.$$observers||(o.$$observers=me()),l=o[i];l!==r&&(c=l&&n(l,!0,a,u),r=l),c&&(o[i]=c(e),(s[i]||(s[i]=[])).$$inter=!0,(o.$$observers&&o.$$observers[i].$$scope||e).$watch(c,function(e,t){"class"===i&&e!==t?o.$updateClass(e,t):o.$set(i,e)}))}}}})}}function ye(t,n,r){var i,o,a=n[0],s=n.length,u=a.parentNode;if(t)for(i=0,o=t.length;i<o;i++)if(t[i]===a){t[i++]=r;for(var c=i,l=c+s-1,f=t.length;c<f;c++,l++)l<f?t[c]=t[l]:delete t[c];t.length-=s-1,t.context===a&&(t.context=r);break}u&&u.replaceChild(r,a);var h=e.document.createDocumentFragment();for(i=0;i<s;i++)h.appendChild(n[i]);for(Yr.hasData(a)&&(Yr.data(r,Yr.data(a)),Yr(a).off("$destroy")),Yr.cleanData(h.querySelectorAll("*")),i=1;i<s;i++)delete n[i];n[0]=r,n.length=1}function be(e,t){return f(function(){return e.apply(null,arguments)},e,t)}function we(e,t,n,i,o,a){try{e(t,n,i,o,a)}catch(e){r(e,Q(n))}}function xe(e,t,r,i,a){function u(t,n,i){!E(r.$onChanges)||n===i||n!==n&&i!==i||(Ce||(e.$$postDigest(j),Ce=[]),l||(l={},Ce.push(c)),l[t]&&(i=l[t].previousValue),l[t]=new bt(i,n))}function c(){r.$onChanges(l),l=void 0}var l,f=[],h={};return o(i,function(i,o){var c,l,d,p,m,v=i.attrName,g=i.optional,y=i.mode;switch(y){case"@":g||Hr.call(t,v)||(r[o]=t[v]=void 0),m=t.$observe(v,function(e){if(C(e)||I(e)){u(o,e,r[o]),r[o]=e}}),t.$$observers[v].$$scope=e,c=t[v],C(c)?r[o]=n(c)(e):I(c)&&(r[o]=c),h[o]=new bt(ao,r[o]),f.push(m);break;case"=":if(!Hr.call(t,v)){if(g)break;t[v]=void 0}if(g&&!t[v])break;l=s(t[v]),p=l.literal?F:function(e,t){return e===t||e!==e&&t!==t},d=l.assign||function(){throw c=r[o]=l(e),oo("nonassign","Expression '{0}' in attribute '{1}' used with directive '{2}' is non-assignable!",t[v],v,a.name)},c=r[o]=l(e);var b=function(t){return p(t,r[o])||(p(t,c)?d(e,t=r[o]):r[o]=t),c=t};b.$stateful=!0,m=i.collection?e.$watchCollection(t[v],b):e.$watch(s(t[v],b),null,l.literal),f.push(m);break;case"<":if(!Hr.call(t,v)){if(g)break;t[v]=void 0}if(g&&!t[v])break;l=s(t[v]);var w=l.literal,x=r[o]=l(e);h[o]=new bt(ao,r[o]),m=e.$watch(l,function(e,t){if(t===e){if(t===x||w&&F(t,x))return;t=x}u(o,e,t),r[o]=e},w),f.push(m);break;case"&":if((l=t.hasOwnProperty(v)?s(t[v]):$)===$&&g)break;r[o]=function(t){return l(e,t)}}}),{initialChanges:h,removeWatches:f.length&&function(){for(var e=0,t=f.length;e<t;++e)f[e]()}}}var Ce,ke=/^\w/,Se=e.document.createElement("div"),Ae=V,Te=N,Oe=_;P.prototype={$normalize:wt,$addClass:function(e){e&&e.length>0&&A.addClass(this.$$element,e)},$removeClass:function(e){e&&e.length>0&&A.removeClass(this.$$element,e)},$updateClass:function(e,t){var n=xt(e,t);n&&n.length&&A.addClass(this.$$element,n);var r=xt(t,e);r&&r.length&&A.removeClass(this.$$element,r)},$set:function(e,t,n,i){var a,s=this.$$element[0],u=Ke(s,e),c=Ye(e),l=e;if(u?(this.$$element.prop(e,t),i=u):c&&(this[c]=t,l=c),this[e]=t,i?this.$attr[e]=i:(i=this.$attr[e])||(this.$attr[e]=i=le(e,"-")),"a"===(a=L(this.$$element))&&("href"===e||"xlinkHref"===e)||"img"===a&&"src"===e)this[e]=t=D(t,"src"===e);else if("img"===a&&"srcset"===e&&b(t)){for(var f="",h=fi(t),d=/\s/.test(h)?/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/:/(,)/,p=h.split(d),$=Math.floor(p.length/2),m=0;m<$;m++){var v=2*m;f+=D(fi(p[v]),!0),f+=" "+fi(p[v+1])}var g=fi(p[2*m]).split(/\s/);f+=D(fi(g[0]),!0),2===g.length&&(f+=" "+fi(g[1])),this[e]=t=f}n!==!1&&(null===t||y(t)?this.$$element.removeAttr(i):ke.test(i)?this.$$element.attr(i,t):R(this.$$element[0],i,t));var w=this.$$observers;w&&o(w[l],function(e){try{e(t)}catch(e){r(e)}})},$observe:function(e,t){var n=this,r=n.$$observers||(n.$$observers=me()),i=r[e]||(r[e]=[]);return i.push(t),c.$evalAsync(function(){i.$$inter||!n.hasOwnProperty(e)||y(n[e])||t(n[e])}),function(){U(i,t)}}};var Me=n.startSymbol(),_e=n.endSymbol(),Ve="{{"===Me&&"}}"===_e?m:function(e){return e.replace(/\{\{/g,Me).replace(/}}/g,_e)},Ie=/^ngAttr[A-Z]/,De=/^(.+)Start$/;return z.$$addBindingInfo=T?function(e,t){var n=e.data("$binding")||[];ci(t)?n=n.concat(t):n.push(t),e.data("$binding",n)}:$,z.$$addBindingClass=T?function(e){q(e,"ng-binding")}:$,z.$$addScopeInfo=T?function(e,t,n,r){var i=n?r?"$isolateScopeNoTemplate":"$isolateScope":"$scope";e.data(i,t)}:$,z.$$addScopeClass=T?function(e,t){q(e,t?"ng-isolate-scope":"ng-scope")}:$,z.$$createComment=function(t,n){var r="";return T&&(r=" "+(t||"")+": ",n&&(r+=n+" ")),e.document.createComment(r)},z}]}function bt(e,t){this.previousValue=e,this.currentValue=t}function wt(e){return e.replace(so,"").replace(uo,ke)}function xt(e,t){var n="",r=e.split(/\s+/),i=t.split(/\s+/);e:for(var o=0;o<r.length;o++){ for(var a=r[o],s=0;s<i.length;s++)if(a===i[s])continue e;n+=(n.length>0?" ":"")+a}return n}function Ct(e){e=Yr(e);var t=e.length;if(t<=1)return e;for(;t--;){var n=e[t];(n.nodeType===xi||n.nodeType===wi&&""===n.nodeValue.trim())&&ti.call(e,t,1)}return e}function kt(e,t){if(t&&C(t))return t;if(C(e)){var n=lo.exec(e);if(n)return n[3]}}function St(){var e={},n=!1;this.has=function(t){return e.hasOwnProperty(t)},this.register=function(t,n){de(t,"controller"),w(t)?f(e,t):e[t]=n},this.allowGlobals=function(){n=!0},this.$get=["$injector","$window",function(r,i){function o(e,n,r,i){if(!e||!w(e.$scope))throw t("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,n);e.$scope[n]=r}return function(t,a,s,u){var c,l,h,d;if(s=s===!0,u&&C(u)&&(d=u),C(t)){if(!(l=t.match(lo)))throw co("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",t);if(h=l[1],d=d||l[3],!(t=e.hasOwnProperty(h)?e[h]:pe(a.$scope,h,!0)||(n?pe(i,h,!0):void 0)))throw co("ctrlreg","The controller with the name '{0}' is not registered.",h);he(t,h,!0)}if(s){var p=(ci(t)?t[t.length-1]:t).prototype;return c=Object.create(p||null),d&&o(a,d,c,h||t.name),f(function(){var e=r.invoke(t,c,a,h);return e!==c&&(w(e)||E(e))&&(c=e,d&&o(a,d,c,h||t.name)),c},{instance:c,identifier:d})}return c=r.instantiate(t,a,h),d&&o(a,d,c,h||t.name),c}}]}function Et(){this.$get=["$window",function(e){return Yr(e.document)}]}function At(){this.$get=["$document","$rootScope",function(e,t){function n(){i=r.hidden}var r=e[0],i=r&&r.hidden;return e.on("visibilitychange",n),t.$on("$destroy",function(){e.off("visibilitychange",n)}),function(){return i}}]}function Tt(){this.$get=["$log",function(e){return function(t,n){e.error.apply(e,arguments)}}]}function Ot(e){return w(e)?S(e)?e.toISOString():Z(e):e}function Mt(){this.$get=function(){return function(e){if(!e)return"";var t=[];return a(e,function(e,n){null===e||y(e)||(ci(e)?o(e,function(e){t.push(ie(n)+"="+ie(Ot(e)))}):t.push(ie(n)+"="+ie(Ot(e))))}),t.join("&")}}}function _t(){this.$get=function(){return function(e){function t(e,r,i){null===e||y(e)||(ci(e)?o(e,function(e,n){t(e,r+"["+(w(e)?n:"")+"]")}):w(e)&&!S(e)?a(e,function(e,n){t(e,r+(i?"":"[")+n+(i?"":"]"))}):n.push(ie(r)+"="+ie(Ot(e))))}if(!e)return"";var n=[];return t(e,"",!0),n.join("&")}}}function Vt(e,t){if(C(e)){var n=e.replace(vo,"").trim();if(n){var r=t("Content-Type");(r&&0===r.indexOf(ho)||It(n))&&(e=J(n))}}return e}function It(e){var t=e.match($o);return t&&mo[t[0]].test(e)}function Nt(e){function t(e,t){e&&(r[e]=r[e]?r[e]+", "+t:t)}var n,r=me();return C(e)?o(e.split("\n"),function(e){n=e.indexOf(":"),t(Wr(fi(e.substr(0,n))),fi(e.substr(n+1)))}):w(e)&&o(e,function(e,n){t(Wr(n),fi(e))}),r}function Dt(e){var t;return function(n){if(t||(t=Nt(e)),n){var r=t[Wr(n)];return void 0===r&&(r=null),r}return t}}function jt(e,t,n,r){return E(r)?r(e,t,n):(o(r,function(r){e=r(e,t,n)}),e)}function Pt(e){return 200<=e&&e<300}function Rt(){var e=this.defaults={transformResponse:[Vt],transformRequest:[function(e){return!w(e)||M(e)||V(e)||_(e)?e:Z(e)}],headers:{common:{Accept:"application/json, text/plain, */*"},post:ye(po),put:ye(po),patch:ye(po)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",paramSerializer:"$httpParamSerializer",jsonpCallbackParam:"callback"},n=!1;this.useApplyAsync=function(e){return b(e)?(n=!!e,this):n};var r=this.interceptors=[];this.$get=["$browser","$httpBackend","$$cookieReader","$cacheFactory","$rootScope","$q","$injector","$sce",function(i,a,s,u,c,l,h,d){function p(n){function r(e,t){for(var n=0,r=t.length;n<r;){var i=t[n++],o=t[n++];e=e.then(i,o)}return t.length=0,e}function a(){i.$$completeOutstandingRequest($)}function s(e,t){var n,r={};return o(e,function(e,i){E(e)?null!=(n=e(t))&&(r[i]=n):r[i]=e}),r}function u(t){var n=t.headers,r=jt(t.data,Dt(n),void 0,t.transformRequest);return y(r)&&o(n,function(e,t){"content-type"===Wr(t)&&delete n[t]}),y(t.withCredentials)&&!y(e.withCredentials)&&(t.withCredentials=e.withCredentials),m(t,r).then(c,c)}function c(e){var t=f({},e);return t.data=jt(e.data,e.headers,e.status,p.transformResponse),Pt(e.status)?t:l.reject(t)}if(!w(n))throw t("$http")("badreq","Http request configuration must be an object. Received: {0}",n);if(!C(d.valueOf(n.url)))throw t("$http")("badreq","Http request configuration url must be a string or a $sce trusted object. Received: {0}",n.url);var p=f({method:"get",transformRequest:e.transformRequest,transformResponse:e.transformResponse,paramSerializer:e.paramSerializer,jsonpCallbackParam:e.jsonpCallbackParam},n);p.headers=function(t){var n,r,i,o=e.headers,a=f({},t.headers);o=f({},o.common,o[Wr(t.method)]);e:for(n in o){r=Wr(n);for(i in a)if(Wr(i)===r)continue e;a[n]=o[n]}return s(a,ye(t))}(n),p.method=Gr(p.method),p.paramSerializer=C(p.paramSerializer)?h.get(p.paramSerializer):p.paramSerializer,i.$$incOutstandingRequestCount();var v=[],g=[],b=l.resolve(p);return o(k,function(e){(e.request||e.requestError)&&v.unshift(e.request,e.requestError),(e.response||e.responseError)&&g.push(e.response,e.responseError)}),b=r(b,v),b=b.then(u),b=r(b,g),b=b.finally(a)}function m(t,r){function i(e){if(e){var t={};return o(e,function(e,r){t[r]=function(t){function r(){e(t)}n?c.$applyAsync(r):c.$$phase?r():c.$apply(r)}}),t}}function u(e,t,r,i){function o(){f(t,e,r,i)}m&&(Pt(e)?m.put(O,[e,t,Nt(r),i]):m.remove(O)),n?c.$applyAsync(o):(o(),c.$$phase||c.$apply())}function f(e,n,r,i){n=n>=-1?n:0,(Pt(n)?S.resolve:S.reject)({data:e,status:n,headers:Dt(r),config:t,statusText:i})}function h(e){f(e.data,e.status,ye(e.headers()),e.statusText)}function $(){var e=p.pendingRequests.indexOf(t);e!==-1&&p.pendingRequests.splice(e,1)}var m,k,S=l.defer(),E=S.promise,A=t.headers,T="jsonp"===Wr(t.method),O=t.url;if(T?O=d.getTrustedResourceUrl(O):C(O)||(O=d.valueOf(O)),O=v(O,t.paramSerializer(t.params)),T&&(O=g(O,t.jsonpCallbackParam)),p.pendingRequests.push(t),E.then($,$),!t.cache&&!e.cache||t.cache===!1||"GET"!==t.method&&"JSONP"!==t.method||(m=w(t.cache)?t.cache:w(e.cache)?e.cache:x),m&&(k=m.get(O),b(k)?N(k)?k.then(h,h):ci(k)?f(k[1],k[0],ye(k[2]),k[3]):f(k,200,{},"OK"):m.put(O,E)),y(k)){var M=Pn(t.url)?s()[t.xsrfCookieName||e.xsrfCookieName]:void 0;M&&(A[t.xsrfHeaderName||e.xsrfHeaderName]=M),a(t.method,O,r,u,A,t.timeout,t.withCredentials,t.responseType,i(t.eventHandlers),i(t.uploadEventHandlers))}return E}function v(e,t){return t.length>0&&(e+=(e.indexOf("?")===-1?"?":"&")+t),e}function g(e,t){if(/[&?][^=]+=JSON_CALLBACK/.test(e))throw go("badjsonp",'Illegal use of JSON_CALLBACK in url, "{0}"',e);if(new RegExp("[&?]"+t+"=").test(e))throw go("badjsonp",'Illegal use of callback param, "{0}", in url, "{1}"',t,e);return e+=(e.indexOf("?")===-1?"?":"&")+t+"=JSON_CALLBACK"}var x=u("$http");e.paramSerializer=C(e.paramSerializer)?h.get(e.paramSerializer):e.paramSerializer;var k=[];return o(r,function(e){k.unshift(C(e)?h.get(e):h.invoke(e))}),p.pendingRequests=[],function(e){o(arguments,function(e){p[e]=function(t,n){return p(f({},n||{},{method:e,url:t}))}})}("get","delete","head","jsonp"),function(e){o(arguments,function(e){p[e]=function(t,n,r){return p(f({},r||{},{method:e,url:t,data:n}))}})}("post","put","patch"),p.defaults=e,p}]}function Lt(){this.$get=function(){return function(){return new e.XMLHttpRequest}}}function qt(){this.$get=["$browser","$jsonpCallbacks","$document","$xhrFactory",function(e,t,n,r){return Ut(e,r,e.defer,t,n[0])}]}function Ut(e,t,n,r,i){function a(e,t,n){e=e.replace("JSON_CALLBACK",t);var o=i.createElement("script"),a=null;return o.type="text/javascript",o.src=e,o.async=!0,a=function(e){o.removeEventListener("load",a),o.removeEventListener("error",a),i.body.removeChild(o),o=null;var s=-1,u="unknown";e&&("load"!==e.type||r.wasCalled(t)||(e={type:"error"}),u=e.type,s="error"===e.type?404:200),n&&n(s,u)},o.addEventListener("load",a),o.addEventListener("error",a),i.body.appendChild(o),a}return function(i,s,u,c,l,f,h,d,p,$){function m(){w&&w(),x&&x.abort()}function v(e,t,r,i,o){b(k)&&n.cancel(k),w=x=null,e(t,r,i,o)}if(s=s||e.url(),"jsonp"===Wr(i))var g=r.createCallback(s),w=a(s,g,function(e,t){v(c,e,200===e&&r.getResponse(g),"",t),r.removeCallback(g)});else{var x=t(i,s);x.open(i,s,!0),o(l,function(e,t){b(e)&&x.setRequestHeader(t,e)}),x.onload=function(){var e=x.statusText||"",t="response"in x?x.response:x.responseText,n=1223===x.status?204:x.status;0===n&&(n=t?200:"file"===jn(s).protocol?404:0),v(c,n,t,x.getAllResponseHeaders(),e)};var C=function(){v(c,-1,null,null,"")};if(x.onerror=C,x.onabort=C,x.ontimeout=C,o(p,function(e,t){x.addEventListener(t,e)}),o($,function(e,t){x.upload.addEventListener(t,e)}),h&&(x.withCredentials=!0),d)try{x.responseType=d}catch(e){if("json"!==d)throw e}x.send(y(u)?null:u)}if(f>0)var k=n(m,f);else N(f)&&f.then(m)}}function zt(){var e="{{",t="}}";this.startSymbol=function(t){return t?(e=t,this):e},this.endSymbol=function(e){return e?(t=e,this):t},this.$get=["$parse","$exceptionHandler","$sce",function(n,r,i){function o(e){return"\\\\\\"+e}function a(n){return n.replace(h,e).replace(d,t)}function s(e,t,n,r){var i=e.$watch(function(e){return i(),r(e)},t,n);return i}function u(o,u,h,d){function p(e){try{return e=M(e),d&&!b(e)?e:ve(e)}catch(e){r(yo.interr(o,e))}}if(!o.length||o.indexOf(e)===-1){var $;if(!u){$=v(a(o)),$.exp=o,$.expressions=[],$.$$watchDelegate=s}return $}d=!!d;for(var m,g,w,x=0,C=[],k=[],S=o.length,A=[],T=[];x<S;){if((m=o.indexOf(e,x))===-1||(g=o.indexOf(t,m+c))===-1){x!==S&&A.push(a(o.substring(x)));break}x!==m&&A.push(a(o.substring(x,m))),w=o.substring(m+c,g),C.push(w),k.push(n(w,p)),x=g+l,T.push(A.length),A.push("")}if(h&&A.length>1&&yo.throwNoconcat(o),!u||C.length){var O=function(e){for(var t=0,n=C.length;t<n;t++){if(d&&y(e[t]))return;A[T[t]]=e[t]}return A.join("")},M=function(e){return h?i.getTrusted(h,e):i.valueOf(e)};return f(function(e){var t=0,n=C.length,i=new Array(n);try{for(;t<n;t++)i[t]=k[t](e);return O(i)}catch(e){r(yo.interr(o,e))}},{exp:o,expressions:C,$$watchDelegate:function(e,t){var n;return e.$watchGroup(k,function(r,i){var o=O(r);E(t)&&t.call(this,o,r!==i?n:o,e),n=o})}})}}var c=e.length,l=t.length,h=new RegExp(e.replace(/./g,o),"g"),d=new RegExp(t.replace(/./g,o),"g");return u.startSymbol=function(){return e},u.endSymbol=function(){return t},u}]}function Ft(){this.$get=["$rootScope","$window","$q","$$q","$browser",function(e,t,n,r,i){function o(o,s,u,c){function l(){f?o.apply(null,h):o($)}var f=arguments.length>4,h=f?B(arguments,4):[],d=t.setInterval,p=t.clearInterval,$=0,m=b(c)&&!c,v=(m?r:n).defer(),g=v.promise;return u=b(u)?u:0,g.$$intervalId=d(function(){m?i.defer(l):e.$evalAsync(l),v.notify($++),u>0&&$>=u&&(v.resolve($),p(g.$$intervalId),delete a[g.$$intervalId]),m||e.$apply()},s),a[g.$$intervalId]=v,g}var a={};return o.cancel=function(e){return!!(e&&e.$$intervalId in a)&&(a[e.$$intervalId].promise.catch($),a[e.$$intervalId].reject("canceled"),t.clearInterval(e.$$intervalId),delete a[e.$$intervalId],!0)},o}]}function Ht(e){for(var t=e.split("/"),n=t.length;n--;)t[n]=re(t[n]);return t.join("/")}function Bt(e,t){var n=jn(e);t.$$protocol=n.protocol,t.$$host=n.hostname,t.$$port=d(n.port)||xo[n.protocol]||null}function Wt(e,t){if(ko.test(e))throw Co("badpath",'Invalid url "{0}".',e);var n="/"!==e.charAt(0);n&&(e="/"+e);var r=jn(e);t.$$path=decodeURIComponent(n&&"/"===r.pathname.charAt(0)?r.pathname.substring(1):r.pathname),t.$$search=te(r.search),t.$$hash=decodeURIComponent(r.hash),t.$$path&&"/"!==t.$$path.charAt(0)&&(t.$$path="/"+t.$$path)}function Gt(e,t){return e.slice(0,t.length)===t}function Zt(e,t){if(Gt(t,e))return t.substr(e.length)}function Jt(e){var t=e.indexOf("#");return t===-1?e:e.substr(0,t)}function Kt(e){return e.replace(/(#.+)|#$/,"$1")}function Yt(e){return e.substr(0,Jt(e).lastIndexOf("/")+1)}function Xt(e){return e.substring(0,e.indexOf("/",e.indexOf("//")+2))}function Qt(e,t,n){this.$$html5=!0,n=n||"",Bt(e,this),this.$$parse=function(e){var n=Zt(t,e);if(!C(n))throw Co("ipthprfx",'Invalid url "{0}", missing path prefix "{1}".',e,t);Wt(n,this),this.$$path||(this.$$path="/"),this.$$compose()},this.$$compose=function(){var e=ne(this.$$search),n=this.$$hash?"#"+re(this.$$hash):"";this.$$url=Ht(this.$$path)+(e?"?"+e:"")+n,this.$$absUrl=t+this.$$url.substr(1),this.$$urlUpdatedByLocation=!0},this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a,s;return b(o=Zt(e,r))?(a=o,s=n&&b(o=Zt(n,o))?t+(Zt("/",o)||o):e+a):b(o=Zt(t,r))?s=t+o:t===r+"/"&&(s=t),s&&this.$$parse(s),!!s}}function en(e,t,n){Bt(e,this),this.$$parse=function(r){var i,o=Zt(e,r)||Zt(t,r);y(o)||"#"!==o.charAt(0)?this.$$html5?i=o:(i="",y(o)&&(e=r,this.replace())):(i=Zt(n,o),y(i)&&(i=o)),Wt(i,this),this.$$path=function(e,t,n){var r,i=/^\/[A-Z]:(\/.*)/;return Gt(t,n)&&(t=t.replace(n,"")),i.exec(t)?e:(r=i.exec(e),r?r[1]:e)}(this.$$path,i,e),this.$$compose()},this.$$compose=function(){var t=ne(this.$$search),r=this.$$hash?"#"+re(this.$$hash):"";this.$$url=Ht(this.$$path)+(t?"?"+t:"")+r,this.$$absUrl=e+(this.$$url?n+this.$$url:""),this.$$urlUpdatedByLocation=!0},this.$$parseLinkUrl=function(t,n){return Jt(e)===Jt(t)&&(this.$$parse(t),!0)}}function tn(e,t,n){this.$$html5=!0,en.apply(this,arguments),this.$$parseLinkUrl=function(r,i){if(i&&"#"===i[0])return this.hash(i.slice(1)),!0;var o,a;return e===Jt(r)?o=r:(a=Zt(t,r))?o=e+n+a:t===r+"/"&&(o=t),o&&this.$$parse(o),!!o},this.$$compose=function(){var t=ne(this.$$search),r=this.$$hash?"#"+re(this.$$hash):"";this.$$url=Ht(this.$$path)+(t?"?"+t:"")+r,this.$$absUrl=e+n+this.$$url,this.$$urlUpdatedByLocation=!0}}function nn(e){return function(){return this[e]}}function rn(e,t){return function(n){return y(n)?this[e]:(this[e]=t(n),this.$$compose(),this)}}function on(){var e="!",t={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){return b(t)?(e=t,this):e},this.html5Mode=function(e){return I(e)?(t.enabled=e,this):w(e)?(I(e.enabled)&&(t.enabled=e.enabled),I(e.requireBase)&&(t.requireBase=e.requireBase),(I(e.rewriteLinks)||C(e.rewriteLinks))&&(t.rewriteLinks=e.rewriteLinks),this):t},this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,r,i,o,a){function s(e,t,n){var i=c.url(),o=c.$$state;try{r.url(e,t,n),c.$$state=r.state()}catch(e){throw c.url(i),c.$$state=o,e}}function u(e,t){n.$broadcast("$locationChangeSuccess",c.absUrl(),e,c.$$state,t)}var c,l,f,h=r.baseHref(),d=r.url();if(t.enabled){if(!h&&t.requireBase)throw Co("nobase","$location in HTML5 mode requires a <base> tag to be present!");f=Xt(d)+(h||"/"),l=i.history?Qt:tn}else f=Jt(d),l=en;var p=Yt(f);c=new l(f,p,"#"+e),c.$$parseLinkUrl(d,d),c.$$state=r.state();var $=/^\s*(javascript|mailto):/i;o.on("click",function(e){var i=t.rewriteLinks;if(i&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey&&2!==e.which&&2!==e.button){for(var s=Yr(e.target);"a"!==L(s[0]);)if(s[0]===o[0]||!(s=s.parent())[0])return;if(!C(i)||!y(s.attr(i))){var u=s.prop("href"),l=s.attr("href")||s.attr("xlink:href");w(u)&&"[object SVGAnimatedString]"===u.toString()&&(u=jn(u.animVal).href),$.test(u)||!u||s.attr("target")||e.isDefaultPrevented()||c.$$parseLinkUrl(u,l)&&(e.preventDefault(),c.absUrl()!==r.url()&&(n.$apply(),a.angular["ff-684208-preventDefault"]=!0))}}}),Kt(c.absUrl())!==Kt(d)&&r.url(c.absUrl(),!0);var m=!0;return r.onUrlChange(function(e,t){if(!Gt(e,p))return void(a.location.href=e);n.$evalAsync(function(){var r,i=c.absUrl(),o=c.$$state;e=Kt(e),c.$$parse(e),c.$$state=t,r=n.$broadcast("$locationChangeStart",e,i,t,o).defaultPrevented,c.absUrl()===e&&(r?(c.$$parse(i),c.$$state=o,s(i,!1,o)):(m=!1,u(i,o)))}),n.$$phase||n.$digest()}),n.$watch(function(){if(m||c.$$urlUpdatedByLocation){c.$$urlUpdatedByLocation=!1;var e=Kt(r.url()),t=Kt(c.absUrl()),o=r.state(),a=c.$$replace,l=e!==t||c.$$html5&&i.history&&o!==c.$$state;(m||l)&&(m=!1,n.$evalAsync(function(){var t=c.absUrl(),r=n.$broadcast("$locationChangeStart",t,e,c.$$state,o).defaultPrevented;c.absUrl()===t&&(r?(c.$$parse(e),c.$$state=o):(l&&s(t,a,o===c.$$state?null:c.$$state),u(e,o)))}))}c.$$replace=!1}),c}]}function an(){var e=!0,t=this;this.debugEnabled=function(t){return b(t)?(e=t,this):e},this.$get=["$window",function(n){function r(e){return e instanceof Error&&(e.stack&&a?e=e.message&&e.stack.indexOf(e.message)===-1?"Error: "+e.message+"\n"+e.stack:e.stack:e.sourceURL&&(e=e.message+"\n"+e.sourceURL+":"+e.line)),e}function i(e){var t=n.console||{},i=t[e]||t.log||$,a=!1;try{a=!!i.apply}catch(e){}return a?function(){var e=[];return o(arguments,function(t){e.push(r(t))}),i.apply(t,e)}:function(e,t){i(e,null==t?"":t)}}var a=Kr||/\bEdge\//.test(n.navigator&&n.navigator.userAgent);return{log:i("log"),info:i("info"),warn:i("warn"),error:i("error"),debug:function(){var n=i("debug");return function(){e&&n.apply(t,arguments)}}()}}]}function sn(e){return e+""}function un(e,t){return void 0!==e?e:t}function cn(e,t){return void 0===e?t:void 0===t?e:e+t}function ln(e,t){return!e(t).$stateful}function fn(e,t){var n,r,i;switch(e.type){case _o.Program:n=!0,o(e.body,function(e){fn(e.expression,t),n=n&&e.expression.constant}),e.constant=n;break;case _o.Literal:e.constant=!0,e.toWatch=[];break;case _o.UnaryExpression:fn(e.argument,t),e.constant=e.argument.constant,e.toWatch=e.argument.toWatch;break;case _o.BinaryExpression:fn(e.left,t),fn(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.left.toWatch.concat(e.right.toWatch);break;case _o.LogicalExpression:fn(e.left,t),fn(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=e.constant?[]:[e];break;case _o.ConditionalExpression:fn(e.test,t),fn(e.alternate,t),fn(e.consequent,t),e.constant=e.test.constant&&e.alternate.constant&&e.consequent.constant,e.toWatch=e.constant?[]:[e];break;case _o.Identifier:e.constant=!1,e.toWatch=[e];break;case _o.MemberExpression:fn(e.object,t),e.computed&&fn(e.property,t),e.constant=e.object.constant&&(!e.computed||e.property.constant),e.toWatch=[e];break;case _o.CallExpression:i=!!e.filter&&ln(t,e.callee.name),n=i,r=[],o(e.arguments,function(e){fn(e,t),n=n&&e.constant,e.constant||r.push.apply(r,e.toWatch)}),e.constant=n,e.toWatch=i?r:[e];break;case _o.AssignmentExpression:fn(e.left,t),fn(e.right,t),e.constant=e.left.constant&&e.right.constant,e.toWatch=[e];break;case _o.ArrayExpression:n=!0,r=[],o(e.elements,function(e){fn(e,t),n=n&&e.constant,e.constant||r.push.apply(r,e.toWatch)}),e.constant=n,e.toWatch=r;break;case _o.ObjectExpression:n=!0,r=[],o(e.properties,function(e){fn(e.value,t),n=n&&e.value.constant&&!e.computed,e.value.constant||r.push.apply(r,e.value.toWatch),e.computed&&(fn(e.key,t),e.key.constant||r.push.apply(r,e.key.toWatch))}),e.constant=n,e.toWatch=r;break;case _o.ThisExpression:e.constant=!1,e.toWatch=[];break;case _o.LocalsExpression:e.constant=!1,e.toWatch=[]}}function hn(e){if(1===e.length){var t=e[0].expression,n=t.toWatch;return 1!==n.length?n:n[0]!==t?n:void 0}}function dn(e){return e.type===_o.Identifier||e.type===_o.MemberExpression}function pn(e){if(1===e.body.length&&dn(e.body[0].expression))return{type:_o.AssignmentExpression,left:e.body[0].expression,right:{type:_o.NGValueParameter},operator:"="}}function $n(e){return 0===e.body.length||1===e.body.length&&(e.body[0].expression.type===_o.Literal||e.body[0].expression.type===_o.ArrayExpression||e.body[0].expression.type===_o.ObjectExpression)}function mn(e){return e.constant}function vn(e,t){this.astBuilder=e,this.$filter=t}function gn(e,t){this.astBuilder=e,this.$filter=t}function yn(e){return E(e.valueOf)?e.valueOf():Ao.call(e)}function bn(){var e,t,n=me(),r={true:!0,false:!1,null:null,undefined:void 0};this.addLiteral=function(e,t){r[e]=t},this.setIdentifierFns=function(n,r){return e=n,t=r,this},this.$get=["$filter",function(i){function a(e,t){var r,o,a;switch(typeof e){case"string":if(e=e.trim(),a=e,!(r=n[a])){":"===e.charAt(0)&&":"===e.charAt(1)&&(o=!0,e=e.substring(2));r=new Vo(new Mo(p),i,p).parse(e),r.constant?r.$$watchDelegate=f:o?r.$$watchDelegate=r.literal?l:c:r.inputs&&(r.$$watchDelegate=u),n[a]=r}return h(r,t);case"function":return h(e,t);default:return h($,t)}}function s(e,t,n){return null==e||null==t?e===t:!("object"==typeof e&&!n&&"object"==typeof(e=yn(e)))&&(e===t||e!==e&&t!==t)}function u(e,t,n,r,i){var o,a=r.inputs;if(1===a.length){var u=s;return a=a[0],e.$watch(function(e){var t=a(e);return s(t,u,r.literal)||(o=r(e,void 0,void 0,[t]),u=t&&yn(t)),o},t,n,i)}for(var c=[],l=[],f=0,h=a.length;f<h;f++)c[f]=s,l[f]=null;return e.$watch(function(e){for(var t=!1,n=0,i=a.length;n<i;n++){var u=a[n](e);(t||(t=!s(u,c[n],r.literal)))&&(l[n]=u,c[n]=u&&yn(u))}return t&&(o=r(e,void 0,void 0,l)),o},t,n,i)}function c(e,t,n,r,i){function o(e){return r(e)}function a(e,n,r){c=e,E(t)&&t(e,n,r),b(e)&&r.$$postDigest(function(){b(c)&&s()})}var s,c;return s=r.inputs?u(e,a,n,r,i):e.$watch(o,a,n)}function l(e,t,n,r){function i(e){var t=!0;return o(e,function(e){b(e)||(t=!1)}),t}var a,s;return a=e.$watch(function(e){return r(e)},function(e,n,r){s=e,E(t)&&t(e,n,r),i(e)&&r.$$postDigest(function(){i(s)&&a()})},n)}function f(e,t,n,r){var i=e.$watch(function(e){return i(),r(e)},t,n);return i}function h(e,t){if(!t)return e;var n=e.$$watchDelegate,r=!1,i=n!==l&&n!==c,o=i?function(n,i,o,a){return t(r&&a?a[0]:e(n,i,o,a),n,i)}:function(n,r,i,o){var a=e(n,r,i,o),s=t(a,n,r);return b(a)?s:a};return r=!e.inputs,e.$$watchDelegate&&e.$$watchDelegate!==u?(o.$$watchDelegate=e.$$watchDelegate,o.inputs=e.inputs):t.$stateful||(o.$$watchDelegate=u,o.inputs=e.inputs?e.inputs:[e]),o}var d=di().noUnsafeEval,p={csp:d,literals:z(r),isIdentifierStart:E(e)&&e,isIdentifierContinue:E(t)&&t};return a}]}function wn(){var e=!0;this.$get=["$rootScope","$exceptionHandler",function(t,n){return Cn(function(e){t.$evalAsync(e)},n,e)}],this.errorOnUnhandledRejections=function(t){return b(t)?(e=t,this):e}}function xn(){var e=!0;this.$get=["$browser","$exceptionHandler",function(t,n){return Cn(function(e){t.defer(e)},n,e)}],this.errorOnUnhandledRejections=function(t){return b(t)?(e=t,this):e}}function Cn(e,n,r){function i(){return new a}function a(){var e=this.promise=new s;this.resolve=function(t){h(e,t)},this.reject=function(t){p(e,t)},this.notify=function(t){m(e,t)}}function s(){this.$$state={status:0}}function u(t){var n,i,o;o=t.pending,t.processScheduled=!1,t.pending=void 0;try{for(var a=0,s=o.length;a<s;++a){t.pur=!0,i=o[a][0],n=o[a][t.status];try{E(n)?h(i,n(t.value)):1===t.status?h(i,t.value):p(i,t.value)}catch(e){p(i,e)}}}finally{--A,r&&0===A&&e(c)}}function c(){for(;!A&&T.length;){var e=T.shift();if(!e.pur){e.pur=!0;var t="Possibly unhandled rejection: "+we(e.value);e.value instanceof Error?n(e.value,t):n(t)}}}function l(t){!r||t.pending||2!==t.status||t.pur||(0===A&&0===T.length&&e(c),T.push(t)),!t.processScheduled&&t.pending&&(t.processScheduled=!0,++A,e(function(){u(t)}))}function h(e,t){e.$$state.status||(t===e?$(e,S("qcycle","Expected promise to be resolved with value other than itself '{0}'",t)):d(e,t))}function d(e,t){function n(t){a||(a=!0,d(e,t))}function r(t){a||(a=!0,$(e,t))}function i(t){m(e,t)}var o,a=!1;try{(w(t)||E(t))&&(o=t.then),E(o)?(e.$$state.status=-1,o.call(t,n,r,i)):(e.$$state.value=t,e.$$state.status=1,l(e.$$state))}catch(e){r(e)}}function p(e,t){e.$$state.status||$(e,t)}function $(e,t){e.$$state.value=t,e.$$state.status=2,l(e.$$state)}function m(t,r){var i=t.$$state.pending;t.$$state.status<=0&&i&&i.length&&e(function(){for(var e,t,o=0,a=i.length;o<a;o++){t=i[o][0],e=i[o][3];try{m(t,E(e)?e(r):r)}catch(e){n(e)}}})}function v(e){var t=new s;return p(t,e),t}function g(e,t,n){var r=null;try{E(n)&&(r=n())}catch(e){return v(e)}return N(r)?r.then(function(){return t(e)},v):t(e)}function b(e,t,n,r){var i=new s;return h(i,e),i.then(t,n,r)}function x(e){var t=new s,n=0,r=ci(e)?[]:{};return o(e,function(e,i){n++,b(e).then(function(e){r[i]=e,--n||h(t,r)},function(e){p(t,e)})}),0===n&&h(t,r),t}function C(e){var t=i();return o(e,function(e){b(e).then(t.resolve,t.reject)}),t.promise}function k(e){function t(e){h(r,e)}function n(e){p(r,e)}if(!E(e))throw S("norslvr","Expected resolverFn, got '{0}'",e);var r=new s;return e(t,n),r}var S=t("$q",TypeError),A=0,T=[];f(s.prototype,{then:function(e,t,n){if(y(e)&&y(t)&&y(n))return this;var r=new s;return this.$$state.pending=this.$$state.pending||[],this.$$state.pending.push([r,e,t,n]),this.$$state.status>0&&l(this.$$state),r},catch:function(e){return this.then(null,e)},finally:function(e,t){return this.then(function(t){return g(t,O,e)},function(t){return g(t,v,e)},t)}});var O=b;return k.prototype=s.prototype,k.defer=i,k.reject=v,k.when=b,k.resolve=O,k.all=x,k.race=C,k}function kn(){this.$get=["$window","$timeout",function(e,t){var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame,r=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.webkitCancelRequestAnimationFrame,i=!!n,o=i?function(e){var t=n(e);return function(){r(t)}}:function(e){var n=t(e,16.66,!1);return function(){t.cancel(n)}};return o.supported=i,o}]}function Sn(){function e(e){function t(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$id=u(),this.$$ChildScope=null}return t.prototype=e,t}var n=10,r=t("$rootScope"),a=null,s=null;this.digestTtl=function(e){return arguments.length&&(n=e),n},this.$get=["$exceptionHandler","$parse","$browser",function(t,c,l){function f(e){e.currentScope.$$destroyed=!0}function h(e){9===Kr&&(e.$$childHead&&h(e.$$childHead),e.$$nextSibling&&h(e.$$nextSibling)),e.$parent=e.$$nextSibling=e.$$prevSibling=e.$$childHead=e.$$childTail=e.$root=e.$$watchers=null}function d(){this.$id=u(),this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null,this.$root=this,this.$$destroyed=!1,this.$$listeners={},this.$$listenerCount={},this.$$watchersCount=0,this.$$isolateBindings=null}function p(e){if(k.$$phase)throw r("inprog","{0} already in progress",k.$$phase);k.$$phase=e}function m(){k.$$phase=null}function v(e,t){do{e.$$watchersCount+=t}while(e=e.$parent)}function g(e,t,n){do{e.$$listenerCount[n]-=t,0===e.$$listenerCount[n]&&delete e.$$listenerCount[n]}while(e=e.$parent)}function b(){}function x(){for(;T.length;)try{T.shift()()}catch(e){t(e)}s=null}function C(){null===s&&(s=l.defer(function(){k.$apply(x)}))}d.prototype={constructor:d,$new:function(t,n){var r;return n=n||this,t?(r=new d,r.$root=this.$root):(this.$$ChildScope||(this.$$ChildScope=e(this)),r=new this.$$ChildScope),r.$parent=n,r.$$prevSibling=n.$$childTail,n.$$childHead?(n.$$childTail.$$nextSibling=r,n.$$childTail=r):n.$$childHead=n.$$childTail=r,(t||n!==this)&&r.$on("$destroy",f),r},$watch:function(e,t,n,r){var i=c(e);if(i.$$watchDelegate)return i.$$watchDelegate(this,t,n,i,e);var o=this,s=o.$$watchers,u={fn:t,last:b,get:i,exp:r||e,eq:!!n};return a=null,E(t)||(u.fn=$),s||(s=o.$$watchers=[],s.$$digestWatchIndex=-1),s.unshift(u),s.$$digestWatchIndex++,v(this,1),function(){var e=U(s,u);e>=0&&(v(o,-1),e<s.$$digestWatchIndex&&s.$$digestWatchIndex--),a=null}},$watchGroup:function(e,t){function n(){u=!1,c?(c=!1,t(i,i,s)):t(i,r,s)}var r=new Array(e.length),i=new Array(e.length),a=[],s=this,u=!1,c=!0;if(!e.length){var l=!0;return s.$evalAsync(function(){l&&t(i,i,s)}),function(){l=!1}}return 1===e.length?this.$watch(e[0],function(e,n,o){i[0]=e,r[0]=n,t(i,e===n?i:r,o)}):(o(e,function(e,t){var o=s.$watch(e,function(e,o){i[t]=e,r[t]=o,u||(u=!0,s.$evalAsync(n))});a.push(o)}),function(){for(;a.length;)a.shift()()})},$watchCollection:function(e,t){function n(e){o=e;var t,n,r,s;if(!y(o)){if(w(o))if(i(o)){a!==d&&(a=d,m=a.length=0,f++),t=o.length,m!==t&&(f++,a.length=m=t);for(var u=0;u<t;u++)s=a[u],r=o[u],s!==s&&r!==r||s===r||(f++,a[u]=r)}else{a!==p&&(a=p={},m=0,f++),t=0;for(n in o)Hr.call(o,n)&&(t++,r=o[n],s=a[n],n in a?s!==s&&r!==r||s===r||(f++,a[n]=r):(m++,a[n]=r,f++));if(m>t){f++;for(n in a)Hr.call(o,n)||(m--,delete a[n])}}else a!==o&&(a=o,f++);return f}}function r(){if($?($=!1,t(o,o,u)):t(o,s,u),l)if(w(o))if(i(o)){s=new Array(o.length);for(var e=0;e<o.length;e++)s[e]=o[e]}else{s={};for(var n in o)Hr.call(o,n)&&(s[n]=o[n])}else s=o}n.$stateful=!0;var o,a,s,u=this,l=t.length>1,f=0,h=c(e,n),d=[],p={},$=!0,m=0;return this.$watch(h,r)},$digest:function(){var e,i,o,u,c,f,h,d,$,v,g,y=n,w=this,C=[];p("$digest"),l.$$checkUrlChange(),this===k&&null!==s&&(l.defer.cancel(s),x()),a=null;do{h=!1,$=w;for(var T=0;T<S.length;T++){try{g=S[T],u=g.fn,u(g.scope,g.locals)}catch(e){t(e)}a=null}S.length=0;e:do{if(f=$.$$watchers)for(f.$$digestWatchIndex=f.length;f.$$digestWatchIndex--;)try{if(e=f[f.$$digestWatchIndex])if(c=e.get,(i=c($))===(o=e.last)||(e.eq?F(i,o):ui(i)&&ui(o))){if(e===a){h=!1;break e}}else h=!0,a=e,e.last=e.eq?z(i,null):i,u=e.fn,u(i,o===b?i:o,$),y<5&&(v=4-y,C[v]||(C[v]=[]),C[v].push({msg:E(e.exp)?"fn: "+(e.exp.name||e.exp.toString()):e.exp,newVal:i,oldVal:o}))}catch(e){t(e)}if(!(d=$.$$watchersCount&&$.$$childHead||$!==w&&$.$$nextSibling))for(;$!==w&&!(d=$.$$nextSibling);)$=$.$parent}while($=d);if((h||S.length)&&!y--)throw m(),r("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",n,C)}while(h||S.length);for(m();O<A.length;)try{A[O++]()}catch(e){t(e)}A.length=O=0,l.$$checkUrlChange()},$destroy:function(){if(!this.$$destroyed){var e=this.$parent;this.$broadcast("$destroy"),this.$$destroyed=!0,this===k&&l.$$applicationDestroyed(),v(this,-this.$$watchersCount);for(var t in this.$$listenerCount)g(this,this.$$listenerCount[t],t);e&&e.$$childHead===this&&(e.$$childHead=this.$$nextSibling),e&&e.$$childTail===this&&(e.$$childTail=this.$$prevSibling),this.$$prevSibling&&(this.$$prevSibling.$$nextSibling=this.$$nextSibling),this.$$nextSibling&&(this.$$nextSibling.$$prevSibling=this.$$prevSibling),this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=$,this.$on=this.$watch=this.$watchGroup=function(){return $},this.$$listeners={},this.$$nextSibling=null,h(this)}},$eval:function(e,t){return c(e)(this,t)},$evalAsync:function(e,t){k.$$phase||S.length||l.defer(function(){S.length&&k.$digest()}),S.push({scope:this,fn:c(e),locals:t})},$$postDigest:function(e){A.push(e)},$apply:function(e){try{p("$apply");try{return this.$eval(e)}finally{m()}}catch(e){t(e)}finally{try{k.$digest()}catch(e){throw t(e),e}}},$applyAsync:function(e){function t(){n.$eval(e)}var n=this;e&&T.push(t),e=c(e),C()},$on:function(e,t){var n=this.$$listeners[e];n||(this.$$listeners[e]=n=[]),n.push(t);var r=this;do{r.$$listenerCount[e]||(r.$$listenerCount[e]=0),r.$$listenerCount[e]++}while(r=r.$parent);var i=this;return function(){var r=n.indexOf(t);r!==-1&&(n[r]=null,g(i,1,e))}},$emit:function(e,n){var r,i,o,a=[],s=this,u=!1,c={name:e,targetScope:s,stopPropagation:function(){u=!0},preventDefault:function(){c.defaultPrevented=!0},defaultPrevented:!1},l=H([c],arguments,1);do{for(r=s.$$listeners[e]||a,c.currentScope=s,i=0,o=r.length;i<o;i++)if(r[i])try{r[i].apply(null,l)}catch(e){t(e)}else r.splice(i,1),i--,o--;if(u)return c.currentScope=null,c;s=s.$parent}while(s);return c.currentScope=null,c},$broadcast:function(e,n){var r=this,i=r,o=r,a={name:e,targetScope:r,preventDefault:function(){a.defaultPrevented=!0},defaultPrevented:!1};if(!r.$$listenerCount[e])return a;for(var s,u,c,l=H([a],arguments,1);i=o;){for(a.currentScope=i,s=i.$$listeners[e]||[],u=0,c=s.length;u<c;u++)if(s[u])try{s[u].apply(null,l)}catch(e){t(e)}else s.splice(u,1),u--,c--;if(!(o=i.$$listenerCount[e]&&i.$$childHead||i!==r&&i.$$nextSibling))for(;i!==r&&!(o=i.$$nextSibling);)i=i.$parent}return a.currentScope=null,a}};var k=new d,S=k.$$asyncQueue=[],A=k.$$postDigestQueue=[],T=k.$$applyAsyncQueue=[],O=0;return k}]}function En(){var e=/^\s*(https?|ftp|mailto|tel|file):/,t=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(t){return b(t)?(e=t,this):e},this.imgSrcSanitizationWhitelist=function(e){return b(e)?(t=e,this):t},this.$get=function(){return function(n,r){var i,o=r?t:e;return i=jn(n).href,""===i||i.match(o)?n:"unsafe:"+i}}}function An(e){return e.replace(Do,ke)}function Tn(e){if("self"===e)return e;if(C(e)){ if(e.indexOf("***")>-1)throw Io("iwcard","Illegal sequence *** in string matcher. String: {0}",e);return e=hi(e).replace(/\\\*\\\*/g,".*").replace(/\\\*/g,"[^:/.?&;]*"),new RegExp("^"+e+"$")}if(A(e))return new RegExp("^"+e.source+"$");throw Io("imatcher",'Matchers may only be "self", string patterns or RegExp objects')}function On(e){var t=[];return b(e)&&o(e,function(e){t.push(Tn(e))}),t}function Mn(){this.SCE_CONTEXTS=No;var e=["self"],t=[];this.resourceUrlWhitelist=function(t){return arguments.length&&(e=On(t)),e},this.resourceUrlBlacklist=function(e){return arguments.length&&(t=On(e)),t},this.$get=["$injector",function(n){function r(e,t){return"self"===e?Pn(t):!!e.exec(t.href)}function i(n){var i,o,a=jn(n.toString()),s=!1;for(i=0,o=e.length;i<o;i++)if(r(e[i],a)){s=!0;break}if(s)for(i=0,o=t.length;i<o;i++)if(r(t[i],a)){s=!1;break}return s}function o(e){var t=function(e){this.$$unwrapTrustedValue=function(){return e}};return e&&(t.prototype=new e),t.prototype.valueOf=function(){return this.$$unwrapTrustedValue()},t.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()},t}function a(e,t){var n=f.hasOwnProperty(e)?f[e]:null;if(!n)throw Io("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",e,t);if(null===t||y(t)||""===t)return t;if("string"!=typeof t)throw Io("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",e);return new n(t)}function s(e){return e instanceof l?e.$$unwrapTrustedValue():e}function u(e,t){if(null===t||y(t)||""===t)return t;var n=f.hasOwnProperty(e)?f[e]:null;if(n&&t instanceof n)return t.$$unwrapTrustedValue();if(e===No.RESOURCE_URL){if(i(t))return t;throw Io("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy. URL: {0}",t.toString())}if(e===No.HTML)return c(t);throw Io("unsafe","Attempting to use an unsafe value in a safe context.")}var c=function(e){throw Io("unsafe","Attempting to use an unsafe value in a safe context.")};n.has("$sanitize")&&(c=n.get("$sanitize"));var l=o(),f={};return f[No.HTML]=o(l),f[No.CSS]=o(l),f[No.URL]=o(l),f[No.JS]=o(l),f[No.RESOURCE_URL]=o(f[No.URL]),{trustAs:a,getTrusted:u,valueOf:s}}]}function _n(){var e=!0;this.enabled=function(t){return arguments.length&&(e=!!t),e},this.$get=["$parse","$sceDelegate",function(t,n){if(e&&Kr<8)throw Io("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode. You can fix this by adding the text <!doctype html> to the top of your HTML document. See http://docs.angularjs.org/api/ng.$sce for more information.");var r=ye(No);r.isEnabled=function(){return e},r.trustAs=n.trustAs,r.getTrusted=n.getTrusted,r.valueOf=n.valueOf,e||(r.trustAs=r.getTrusted=function(e,t){return t},r.valueOf=m),r.parseAs=function(e,n){var i=t(n);return i.literal&&i.constant?i:t(n,function(t){return r.getTrusted(e,t)})};var i=r.parseAs,a=r.getTrusted,s=r.trustAs;return o(No,function(e,t){var n=Wr(t);r[An("parse_as_"+n)]=function(t){return i(e,t)},r[An("get_trusted_"+n)]=function(t){return a(e,t)},r[An("trust_as_"+n)]=function(t){return s(e,t)}}),r}]}function Vn(){this.$get=["$window","$document",function(e,t){var n={},r=e.nw&&e.nw.process,i=!r&&e.chrome&&(e.chrome.app&&e.chrome.app.runtime||!e.chrome.app&&e.chrome.runtime&&e.chrome.runtime.id),o=!i&&e.history&&e.history.pushState,a=d((/android (\d+)/.exec(Wr((e.navigator||{}).userAgent))||[])[1]),s=/Boxee/i.test((e.navigator||{}).userAgent),u=t[0]||{},c=u.body&&u.body.style,l=!1,f=!1;return c&&(l=!!("transition"in c||"webkitTransition"in c),f=!!("animation"in c||"webkitAnimation"in c)),{history:!(!o||a<4||s),hasEvent:function(e){if("input"===e&&Kr)return!1;if(y(n[e])){var t=u.createElement("div");n[e]="on"+e in t}return n[e]},csp:di(),transitions:l,animations:f,android:a}}]}function In(){var e;this.httpOptions=function(t){return t?(e=t,this):e},this.$get=["$exceptionHandler","$templateCache","$http","$q","$sce",function(t,n,r,i,o){function a(s,u){function c(e){return u||(e=jo("tpload","Failed to load template: {0} (HTTP status: {1} {2})",s,e.status,e.statusText),t(e)),i.reject(e)}a.totalPendingRequests++,C(s)&&!y(n.get(s))||(s=o.getTrustedResourceUrl(s));var l=r.defaults&&r.defaults.transformResponse;return ci(l)?l=l.filter(function(e){return e!==Vt}):l===Vt&&(l=null),r.get(s,f({cache:n,transformResponse:l},e)).finally(function(){a.totalPendingRequests--}).then(function(e){return n.put(s,e.data),e.data},c)}return a.totalPendingRequests=0,a}]}function Nn(){this.$get=["$rootScope","$browser","$location",function(e,t,n){var r={};return r.findBindings=function(e,t,n){var r=e.getElementsByClassName("ng-binding"),i=[];return o(r,function(e){var r=ai.element(e).data("$binding");r&&o(r,function(r){if(n){new RegExp("(^|\\s)"+hi(t)+"(\\s|\\||$)").test(r)&&i.push(e)}else r.indexOf(t)!==-1&&i.push(e)})}),i},r.findModels=function(e,t,n){for(var r=["ng-","data-ng-","ng\\:"],i=0;i<r.length;++i){var o=n?"=":"*=",a="["+r[i]+"model"+o+'"'+t+'"]',s=e.querySelectorAll(a);if(s.length)return s}},r.getLocation=function(){return n.url()},r.setLocation=function(t){t!==n.url()&&(n.url(t),e.$digest())},r.whenStable=function(e){t.notifyWhenNoOutstandingRequests(e)},r}]}function Dn(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(e,t,n,r,i){function o(o,s,u){E(o)||(u=s,s=o,o=$);var c,l=B(arguments,3),f=b(u)&&!u,h=(f?r:n).defer(),d=h.promise;return c=t.defer(function(){try{h.resolve(o.apply(null,l))}catch(e){h.reject(e),i(e)}finally{delete a[d.$$timeoutId]}f||e.$apply()},s),d.$$timeoutId=c,a[c]=h,d}var a={};return o.cancel=function(e){return!!(e&&e.$$timeoutId in a)&&(a[e.$$timeoutId].promise.catch($),a[e.$$timeoutId].reject("canceled"),delete a[e.$$timeoutId],t.defer.cancel(e.$$timeoutId))},o}]}function jn(e){var t=e;return Kr&&(Po.setAttribute("href",t),t=Po.href),Po.setAttribute("href",t),{href:Po.href,protocol:Po.protocol?Po.protocol.replace(/:$/,""):"",host:Po.host,search:Po.search?Po.search.replace(/^\?/,""):"",hash:Po.hash?Po.hash.replace(/^#/,""):"",hostname:Po.hostname,port:Po.port,pathname:"/"===Po.pathname.charAt(0)?Po.pathname:"/"+Po.pathname}}function Pn(e){var t=C(e)?jn(e):e;return t.protocol===Ro.protocol&&t.host===Ro.host}function Rn(){this.$get=v(e)}function Ln(e){function t(e){try{return e.cookie||""}catch(e){return""}}function n(e){try{return decodeURIComponent(e)}catch(t){return e}}var r=e[0]||{},i={},o="";return function(){var e,a,s,u,c,l=t(r);if(l!==o)for(o=l,e=o.split("; "),i={},s=0;s<e.length;s++)a=e[s],(u=a.indexOf("="))>0&&(c=n(a.substring(0,u)),y(i[c])&&(i[c]=n(a.substring(u+1))));return i}}function qn(){this.$get=Ln}function Un(e){function t(r,i){if(w(r)){var a={};return o(r,function(e,n){a[n]=t(n,e)}),a}return e.factory(r+n,i)}var n="Filter";this.register=t,this.$get=["$injector",function(e){return function(t){return e.get(t+n)}}],t("currency",Wn),t("date",sr),t("filter",zn),t("json",ur),t("limitTo",cr),t("lowercase",Bo),t("number",Gn),t("orderBy",fr),t("uppercase",Wo)}function zn(){return function(e,n,r,o){if(!i(e)){if(null==e)return e;throw t("filter")("notarray","Expected array but received: {0}",e)}o=o||"$";var a,s,u=Bn(n);switch(u){case"function":a=n;break;case"boolean":case"null":case"number":case"string":s=!0;case"object":a=Fn(n,r,o,s);break;default:return e}return Array.prototype.filter.call(e,a)}}function Fn(e,t,n,r){var i=w(e)&&n in e;return t===!0?t=F:E(t)||(t=function(e,t){return!y(e)&&(null===e||null===t?e===t:!(w(t)||w(e)&&!g(e))&&(e=Wr(""+e),t=Wr(""+t),e.indexOf(t)!==-1))}),function(o){return i&&!w(o)?Hn(o,e[n],t,n,!1):Hn(o,e,t,n,r)}}function Hn(e,t,n,r,i,o){var a=Bn(e),s=Bn(t);if("string"===s&&"!"===t.charAt(0))return!Hn(e,t.substring(1),n,r,i);if(ci(e))return e.some(function(e){return Hn(e,t,n,r,i)});switch(a){case"object":var u;if(i){for(u in e)if(u.charAt&&"$"!==u.charAt(0)&&Hn(e[u],t,n,r,!0))return!0;return!o&&Hn(e,t,n,r,!1)}if("object"===s){for(u in t){var c=t[u];if(!E(c)&&!y(c)){var l=u===r;if(!Hn(l?e:e[u],c,n,r,l,l))return!1}}return!0}return n(e,t);case"function":return!1;default:return n(e,t)}}function Bn(e){return null===e?"null":typeof e}function Wn(e){var t=e.NUMBER_FORMATS;return function(e,n,r){return y(n)&&(n=t.CURRENCY_SYM),y(r)&&(r=t.PATTERNS[1].maxFrac),null==e?e:Kn(e,t.PATTERNS[1],t.GROUP_SEP,t.DECIMAL_SEP,r).replace(/\u00A4/g,n)}}function Gn(e){var t=e.NUMBER_FORMATS;return function(e,n){return null==e?e:Kn(e,t.PATTERNS[0],t.GROUP_SEP,t.DECIMAL_SEP,n)}}function Zn(e){var t,n,r,i,o,a=0;for((n=e.indexOf(qo))>-1&&(e=e.replace(qo,"")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;e.charAt(r)===Uo;r++);if(r===(o=e.length))t=[0],n=1;else{for(o--;e.charAt(o)===Uo;)o--;for(n-=r,t=[],i=0;r<=o;r++,i++)t[i]=+e.charAt(r)}return n>Lo&&(t=t.splice(0,Lo-1),a=n-1,n=1),{d:t,e:a,i:n}}function Jn(e,t,n,r){var i=e.d,o=i.length-e.i;t=y(t)?Math.min(Math.max(n,o),r):+t;var a=t+e.i,s=i[a];if(a>0){i.splice(Math.max(e.i,a));for(var u=a;u<i.length;u++)i[u]=0}else{o=Math.max(0,o),e.i=1,i.length=Math.max(1,a=t+1),i[0]=0;for(var c=1;c<a;c++)i[c]=0}if(s>=5)if(a-1<0){for(var l=0;l>a;l--)i.unshift(0),e.i++;i.unshift(1),e.i++}else i[a-1]++;for(;o<Math.max(0,t);o++)i.push(0);var f=i.reduceRight(function(e,t,n,r){return t+=e,r[n]=t%10,Math.floor(t/10)},0);f&&(i.unshift(f),e.i++)}function Kn(e,t,n,r,i){if(!C(e)&&!k(e)||isNaN(e))return"";var o,a=!isFinite(e),s=!1,u=Math.abs(e)+"",c="";if(a)c="∞";else{o=Zn(u),Jn(o,i,t.minFrac,t.maxFrac);var l=o.d,f=o.i,h=o.e,d=[];for(s=l.reduce(function(e,t){return e&&!t},!0);f<0;)l.unshift(0),f++;f>0?d=l.splice(f,l.length):(d=l,l=[0]);var p=[];for(l.length>=t.lgSize&&p.unshift(l.splice(-t.lgSize,l.length).join(""));l.length>t.gSize;)p.unshift(l.splice(-t.gSize,l.length).join(""));l.length&&p.unshift(l.join("")),c=p.join(n),d.length&&(c+=r+d.join("")),h&&(c+="e+"+h)}return e<0&&!s?t.negPre+c+t.negSuf:t.posPre+c+t.posSuf}function Yn(e,t,n,r){var i="";for((e<0||r&&e<=0)&&(r?e=1-e:(e=-e,i="-")),e=""+e;e.length<t;)e=Uo+e;return n&&(e=e.substr(e.length-t)),i+e}function Xn(e,t,n,r,i){return n=n||0,function(o){var a=o["get"+e]();return(n>0||a>-n)&&(a+=n),0===a&&n===-12&&(a=12),Yn(a,t,r,i)}}function Qn(e,t,n){return function(r,i){var o=r["get"+e]();return i[Gr((n?"STANDALONE":"")+(t?"SHORT":"")+e)][o]}}function er(e,t,n){var r=-1*n,i=r>=0?"+":"";return i+=Yn(Math[r>0?"floor":"ceil"](r/60),2)+Yn(Math.abs(r%60),2)}function tr(e){var t=new Date(e,0,1).getDay();return new Date(e,0,(t<=4?5:12)-t)}function nr(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function rr(e){return function(t){var n=tr(t.getFullYear()),r=nr(t),i=+r-+n;return Yn(1+Math.round(i/6048e5),e)}}function ir(e,t){return e.getHours()<12?t.AMPMS[0]:t.AMPMS[1]}function or(e,t){return e.getFullYear()<=0?t.ERAS[0]:t.ERAS[1]}function ar(e,t){return e.getFullYear()<=0?t.ERANAMES[0]:t.ERANAMES[1]}function sr(e){function t(e){var t;if(t=e.match(n)){var r=new Date(0),i=0,o=0,a=t[8]?r.setUTCFullYear:r.setFullYear,s=t[8]?r.setUTCHours:r.setHours;t[9]&&(i=d(t[9]+t[10]),o=d(t[9]+t[11])),a.call(r,d(t[1]),d(t[2])-1,d(t[3]));var u=d(t[4]||0)-i,c=d(t[5]||0)-o,l=d(t[6]||0),f=Math.round(1e3*parseFloat("0."+(t[7]||0)));return s.call(r,u,c,l,f),r}return e}var n=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;return function(n,r,i){var a,s,u="",c=[];if(r=r||"mediumDate",r=e.DATETIME_FORMATS[r]||r,C(n)&&(n=Ho.test(n)?d(n):t(n)),k(n)&&(n=new Date(n)),!S(n)||!isFinite(n.getTime()))return n;for(;r;)s=Fo.exec(r),s?(c=H(c,s,1),r=c.pop()):(c.push(r),r=null);var l=n.getTimezoneOffset();return i&&(l=K(i,l),n=X(n,i,!0)),o(c,function(t){a=zo[t],u+=a?a(n,e.DATETIME_FORMATS,l):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}}function ur(){return function(e,t){return y(t)&&(t=2),Z(e,t)}}function cr(){return function(e,t,n){return t=Math.abs(Number(t))===1/0?Number(t):d(t),ui(t)?e:(k(e)&&(e=e.toString()),i(e)?(n=!n||isNaN(n)?0:d(n),n=n<0?Math.max(0,e.length+n):n,t>=0?lr(e,n,n+t):0===n?lr(e,t,e.length):lr(e,Math.max(0,n+t),n)):e)}}function lr(e,t,n){return C(e)?e.slice(t,n):ei.call(e,t,n)}function fr(e){function n(t){return t.map(function(t){var n=1,r=m;if(E(t))r=t;else if(C(t)&&("+"!==t.charAt(0)&&"-"!==t.charAt(0)||(n="-"===t.charAt(0)?-1:1,t=t.substring(1)),""!==t&&(r=e(t),r.constant))){var i=r();r=function(e){return e[i]}}return{get:r,descending:n}})}function r(e){switch(typeof e){case"number":case"boolean":case"string":return!0;default:return!1}}function o(e){return E(e.valueOf)&&(e=e.valueOf(),r(e))?e:(g(e)&&(e=e.toString(),r(e)),e)}function a(e,t){var n=typeof e;return null===e?(n="string",e="null"):"object"===n&&(e=o(e)),{value:e,type:n,index:t}}function s(e,t){var n=0,r=e.type,i=t.type;if(r===i){var o=e.value,a=t.value;"string"===r?(o=o.toLowerCase(),a=a.toLowerCase()):"object"===r&&(w(o)&&(o=e.index),w(a)&&(a=t.index)),o!==a&&(n=o<a?-1:1)}else n=r<i?-1:1;return n}return function(e,r,o,u){function c(e,t){return{value:e,tieBreaker:{value:t,type:"number",index:t},predicateValues:f.map(function(n){return a(n.get(e),t)})}}function l(e,t){for(var n=0,r=f.length;n<r;n++){var i=d(e.predicateValues[n],t.predicateValues[n]);if(i)return i*f[n].descending*h}return d(e.tieBreaker,t.tieBreaker)*h}if(null==e)return e;if(!i(e))throw t("orderBy")("notarray","Expected array but received: {0}",e);ci(r)||(r=[r]),0===r.length&&(r=["+"]);var f=n(r),h=o?-1:1,d=E(u)?u:s,p=Array.prototype.map.call(e,c);return p.sort(l),e=p.map(function(e){return e.value})}}function hr(e){return E(e)&&(e={link:e}),e.restrict=e.restrict||"AC",v(e)}function dr(e,t){e.$name=t}function pr(e,t,n,r,i){this.$$controls=[],this.$error={},this.$$success={},this.$pending=void 0,this.$name=i(t.name||t.ngForm||"")(n),this.$dirty=!1,this.$pristine=!0,this.$valid=!0,this.$invalid=!1,this.$submitted=!1,this.$$parentForm=Jo,this.$$element=e,this.$$animate=r,$r(this)}function $r(e){e.$$classCache={},e.$$classCache[Ma]=!(e.$$classCache[Oa]=e.$$element.hasClass(Oa))}function mr(e){function t(e,t,n,r){e[t]||(e[t]={}),a(e[t],n,r)}function n(e,t,n,r){e[t]&&s(e[t],n,r),vr(e[t])&&(e[t]=void 0)}function r(e,t,n){n&&!e.$$classCache[t]?(e.$$animate.addClass(e.$$element,t),e.$$classCache[t]=!0):!n&&e.$$classCache[t]&&(e.$$animate.removeClass(e.$$element,t),e.$$classCache[t]=!1)}function i(e,t,n){t=t?"-"+le(t,"-"):"",r(e,Oa+t,n===!0),r(e,Ma+t,n===!1)}var o=e.clazz,a=e.set,s=e.unset;o.prototype.$setValidity=function(e,o,u){y(o)?t(this,"$pending",e,u):n(this,"$pending",e,u),I(o)?o?(s(this.$error,e,u),a(this.$$success,e,u)):(a(this.$error,e,u),s(this.$$success,e,u)):(s(this.$error,e,u),s(this.$$success,e,u)),this.$pending?(r(this,Ko,!0),this.$valid=this.$invalid=void 0,i(this,"",null)):(r(this,Ko,!1),this.$valid=vr(this.$error),this.$invalid=!this.$valid,i(this,"",this.$valid));var c;c=this.$pending&&this.$pending[e]?void 0:!this.$error[e]&&(!!this.$$success[e]||null),i(this,e,c),this.$$parentForm.$setValidity(e,c,this)}}function vr(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function gr(e){e.$formatters.push(function(t){return e.$isEmpty(t)?t:t.toString()})}function yr(e,t,n,r,i,o){br(e,t,n,r,i,o),gr(r)}function br(e,t,n,r,i,o){var a=Wr(t[0].type);if(!i.android){var s=!1;t.on("compositionstart",function(){s=!0}),t.on("compositionend",function(){s=!1,c()})}var u,c=function(e){if(u&&(o.defer.cancel(u),u=null),!s){var i=t.val(),c=e&&e.type;"password"===a||n.ngTrim&&"false"===n.ngTrim||(i=fi(i)),(r.$viewValue!==i||""===i&&r.$$hasNativeValidators)&&r.$setViewValue(i,c)}};if(i.hasEvent("input"))t.on("input",c);else{var l=function(e,t,n){u||(u=o.defer(function(){u=null,t&&t.value===n||c(e)}))};t.on("keydown",function(e){var t=e.keyCode;91===t||15<t&&t<19||37<=t&&t<=40||l(e,this,this.value)}),i.hasEvent("paste")&&t.on("paste cut",l)}t.on("change",c),ua[a]&&r.$$hasNativeValidators&&a===n.type&&t.on(sa,function(e){if(!u){var t=this[Fr],n=t.badInput,r=t.typeMismatch;u=o.defer(function(){u=null,t.badInput===n&&t.typeMismatch===r||c(e)})}}),r.$render=function(){var e=r.$isEmpty(r.$viewValue)?"":r.$viewValue;t.val()!==e&&t.val(e)}}function wr(e,t){if(S(e))return e;if(C(e)){oa.lastIndex=0;var n=oa.exec(e);if(n){var r=+n[1],i=+n[2],o=0,a=0,s=0,u=0,c=tr(r),l=7*(i-1);return t&&(o=t.getHours(),a=t.getMinutes(),s=t.getSeconds(),u=t.getMilliseconds()),new Date(r,0,c.getDate()+l,o,a,s,u)}}return NaN}function xr(e,t){return function(n,r){var i,a;if(S(n))return n;if(C(n)){if('"'===n.charAt(0)&&'"'===n.charAt(n.length-1)&&(n=n.substring(1,n.length-1)),ea.test(n))return new Date(n);if(e.lastIndex=0,i=e.exec(n))return i.shift(),a=r?{yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1e3}:{yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0},o(i,function(e,n){n<t.length&&(a[t[n]]=+e)}),new Date(a.yyyy,a.MM-1,a.dd,a.HH,a.mm,a.ss||0,1e3*a.sss||0)}return NaN}}function Cr(e,t,n,r){return function(i,o,a,s,u,c,l){function f(e){return e&&!(e.getTime&&e.getTime()!==e.getTime())}function h(e){return b(e)&&!S(e)?n(e)||void 0:e}kr(i,o,a,s),br(i,o,a,s,u,c);var d,p=s&&s.$options.getOption("timezone");if(s.$$parserName=e,s.$parsers.push(function(e){if(s.$isEmpty(e))return null;if(t.test(e)){var r=n(e,d);return p&&(r=X(r,p)),r}}),s.$formatters.push(function(e){if(e&&!S(e))throw Ia("datefmt","Expected `{0}` to be a date",e);return f(e)?(d=e,d&&p&&(d=X(d,p,!0)),l("date")(e,r,p)):(d=null,"")}),b(a.min)||a.ngMin){var $;s.$validators.min=function(e){return!f(e)||y($)||n(e)>=$},a.$observe("min",function(e){$=h(e),s.$validate()})}if(b(a.max)||a.ngMax){var m;s.$validators.max=function(e){return!f(e)||y(m)||n(e)<=m},a.$observe("max",function(e){m=h(e),s.$validate()})}}}function kr(e,t,n,r){var i=t[0];(r.$$hasNativeValidators=w(i.validity))&&r.$parsers.push(function(e){var n=t.prop(Fr)||{};return n.badInput||n.typeMismatch?void 0:e})}function Sr(e){e.$$parserName="number",e.$parsers.push(function(t){return e.$isEmpty(t)?null:ra.test(t)?parseFloat(t):void 0}),e.$formatters.push(function(t){if(!e.$isEmpty(t)){if(!k(t))throw Ia("numfmt","Expected `{0}` to be a number",t);t=t.toString()}return t})}function Er(e){return b(e)&&!k(e)&&(e=parseFloat(e)),ui(e)?void 0:e}function Ar(e){return(0|e)===e}function Tr(e){var t=e.toString(),n=t.indexOf(".");if(n===-1){if(-1<e&&e<1){var r=/e-(\d+)$/.exec(t);if(r)return Number(r[1])}return 0}return t.length-n-1}function Or(e,t,n){var r=Number(e),i=!Ar(r),o=!Ar(t),a=!Ar(n);if(i||o||a){var s=i?Tr(r):0,u=o?Tr(t):0,c=a?Tr(n):0,l=Math.max(s,u,c),f=Math.pow(10,l);r*=f,t*=f,n*=f,i&&(r=Math.round(r)),o&&(t=Math.round(t)),a&&(n=Math.round(n))}return(r-t)%n==0}function Mr(e,t,n,r,i,o){kr(e,t,n,r),Sr(r),br(e,t,n,r,i,o);var a,s;if((b(n.min)||n.ngMin)&&(r.$validators.min=function(e){return r.$isEmpty(e)||y(a)||e>=a},n.$observe("min",function(e){a=Er(e),r.$validate()})),(b(n.max)||n.ngMax)&&(r.$validators.max=function(e){return r.$isEmpty(e)||y(s)||e<=s},n.$observe("max",function(e){s=Er(e),r.$validate()})),b(n.step)||n.ngStep){var u;r.$validators.step=function(e,t){return r.$isEmpty(t)||y(u)||Or(t,a||0,u)},n.$observe("step",function(e){u=Er(e),r.$validate()})}}function _r(e,t,n,r,i,o){function a(e,r){t.attr(e,n[e]),n.$observe(e,r)}function s(e){if(f=Er(e),!ui(r.$modelValue))if(l){var n=t.val();f>n&&(n=f,t.val(n)),r.$setViewValue(n)}else r.$validate()}function u(e){if(h=Er(e),!ui(r.$modelValue))if(l){var n=t.val();h<n&&(t.val(h),n=h<f?f:h),r.$setViewValue(n)}else r.$validate()}function c(e){d=Er(e),ui(r.$modelValue)||(l&&r.$viewValue!==t.val()?r.$setViewValue(t.val()):r.$validate())}kr(e,t,n,r),Sr(r),br(e,t,n,r,i,o);var l=r.$$hasNativeValidators&&"range"===t[0].type,f=l?0:void 0,h=l?100:void 0,d=l?1:void 0,p=t[0].validity,$=b(n.min),m=b(n.max),v=b(n.step),g=r.$render;r.$render=l&&b(p.rangeUnderflow)&&b(p.rangeOverflow)?function(){g(),r.$setViewValue(t.val())}:g,$&&(r.$validators.min=l?function(){return!0}:function(e,t){return r.$isEmpty(t)||y(f)||t>=f},a("min",s)),m&&(r.$validators.max=l?function(){return!0}:function(e,t){return r.$isEmpty(t)||y(h)||t<=h},a("max",u)),v&&(r.$validators.step=l?function(){return!p.stepMismatch}:function(e,t){return r.$isEmpty(t)||y(d)||Or(t,f||0,d)},a("step",c))}function Vr(e,t,n,r,i,o){br(e,t,n,r,i,o),gr(r),r.$$parserName="url",r.$validators.url=function(e,t){var n=e||t;return r.$isEmpty(n)||ta.test(n)}}function Ir(e,t,n,r,i,o){br(e,t,n,r,i,o),gr(r),r.$$parserName="email",r.$validators.email=function(e,t){var n=e||t;return r.$isEmpty(n)||na.test(n)}}function Nr(e,t,n,r){var i=!n.ngTrim||"false"!==fi(n.ngTrim);y(n.name)&&t.attr("name",u());var o=function(e){var o;t[0].checked&&(o=n.value,i&&(o=fi(o)),r.$setViewValue(o,e&&e.type))};t.on("click",o),r.$render=function(){var e=n.value;i&&(e=fi(e)),t[0].checked=e===r.$viewValue},n.$observe("value",r.$render)}function Dr(e,t,n,r,i){var o;if(b(r)){if(o=e(r),!o.constant)throw Ia("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,r);return o(t)}return i}function jr(e,t,n,r,i,o,a,s){var u=Dr(s,e,"ngTrueValue",n.ngTrueValue,!0),c=Dr(s,e,"ngFalseValue",n.ngFalseValue,!1),l=function(e){r.$setViewValue(t[0].checked,e&&e.type)};t.on("click",l),r.$render=function(){t[0].checked=r.$viewValue},r.$isEmpty=function(e){return e===!1},r.$formatters.push(function(e){return F(e,u)}),r.$parsers.push(function(e){return e?u:c})}function Pr(e,t){function n(e,t){if(!e||!e.length)return[];if(!t||!t.length)return e;var n=[];e:for(var r=0;r<e.length;r++){for(var i=e[r],o=0;o<t.length;o++)if(i===t[o])continue e;n.push(i)}return n}function r(e){return e&&e.split(" ")}function i(e){var t=e;return ci(e)?t=e.map(i).join(" "):w(e)&&(t=Object.keys(e).filter(function(t){return e[t]}).join(" ")),t}function a(e){var t=e;if(ci(e))t=e.map(a);else if(w(e)){var n=!1;t=Object.keys(e).filter(function(t){var r=e[t];return!n&&y(r)&&(n=!0),r}),n&&t.push(void 0)}return t}e="ngClass"+e;var s;return["$parse",function(u){return{restrict:"AC",link:function(c,l,f){function h(e){e=$(r(e),1),f.$addClass(e)}function d(e){e=$(r(e),-1),f.$removeClass(e)}function p(e,t){var i=r(e),o=r(t),a=n(i,o),s=n(o,i),u=$(a,-1),c=$(s,1);f.$addClass(c),f.$removeClass(u)}function $(e,t){var n=[];return o(e,function(e){(t>0||S[e])&&(S[e]=(S[e]||0)+t,S[e]===+(t>0)&&n.push(e))}),n.join(" ")}function m(e){e===t?h(y):d(y),E=e}function v(e){var t=i(e);t!==y&&g(t)}function g(e){E===t&&p(y,e),y=e}var y,b=f[e].trim(),w=":"===b.charAt(0)&&":"===b.charAt(1),x=w?a:i,C=u(b,x),k=w?v:g,S=l.data("$classCounts"),E=!0;S||(S=me(),l.data("$classCounts",S)),"ngClass"!==e&&(s||(s=u("$index",function(e){return 1&e})),c.$watch(s,m)),c.$watch(C,k,w)}}}]}function Rr(e,t,n,r,i,o,a,s,u){this.$viewValue=Number.NaN,this.$modelValue=Number.NaN,this.$$rawModelValue=void 0,this.$validators={},this.$asyncValidators={},this.$parsers=[],this.$formatters=[],this.$viewChangeListeners=[],this.$untouched=!0,this.$touched=!1,this.$pristine=!0,this.$dirty=!1,this.$valid=!0,this.$invalid=!1,this.$error={},this.$$success={},this.$pending=void 0,this.$name=u(n.name||"",!1)(e),this.$$parentForm=Jo,this.$options=Na,this.$$parsedNgModel=i(n.ngModel),this.$$parsedNgModelAssign=this.$$parsedNgModel.assign,this.$$ngModelGet=this.$$parsedNgModel,this.$$ngModelSet=this.$$parsedNgModelAssign,this.$$pendingDebounce=null,this.$$parserValid=void 0,this.$$currentValidationRunId=0,this.$$scope=e,this.$$attr=n,this.$$element=r,this.$$animate=o,this.$$timeout=a,this.$$parse=i,this.$$q=s,this.$$exceptionHandler=t,$r(this),Lr(this)}function Lr(e){e.$$scope.$watch(function(){var t=e.$$ngModelGet(e.$$scope);if(t!==e.$modelValue&&(e.$modelValue===e.$modelValue||t===t)){e.$modelValue=e.$$rawModelValue=t,e.$$parserValid=void 0;for(var n=e.$formatters,r=n.length,i=t;r--;)i=n[r](i);e.$viewValue!==i&&(e.$$updateEmptyClasses(i),e.$viewValue=e.$$lastCommittedViewValue=i,e.$render(),e.$$runValidators(e.$modelValue,e.$viewValue,$))}return t})}function qr(e){this.$$options=e}function Ur(e,t){o(t,function(t,n){b(e[n])||(e[n]=t)})}function zr(e,t){e.prop("selected",t),e.attr("selected",t)}var Fr="validity",Hr=Object.prototype.hasOwnProperty,Br={objectMaxDepth:5},Wr=function(e){return C(e)?e.toLowerCase():e},Gr=function(e){return C(e)?e.toUpperCase():e},Zr=function(e){return C(e)?e.replace(/[A-Z]/g,function(e){return String.fromCharCode(32|e.charCodeAt(0))}):e},Jr=function(e){return C(e)?e.replace(/[a-z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)&-33)}):e};"i"!=="I".toLowerCase()&&(Wr=Zr,Gr=Jr);var Kr,Yr,Xr,Qr,ei=[].slice,ti=[].splice,ni=[].push,ri=Object.prototype.toString,ii=Object.getPrototypeOf,oi=t("ng"),ai=e.angular||(e.angular={}),si=0;Kr=e.document.documentMode;var ui=Number.isNaN||function(e){return e!==e};$.$inject=[],m.$inject=[];var ci=Array.isArray,li=/^\[object (?:Uint8|Uint8Clamped|Uint16|Uint32|Int8|Int16|Int32|Float32|Float64)Array]$/,fi=function(e){return C(e)?e.trim():e},hi=function(e){return e.replace(/([-()[\]{}+?*.$^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},di=function(){if(!b(di.rules)){var t=e.document.querySelector("[ng-csp]")||e.document.querySelector("[data-ng-csp]");if(t){var n=t.getAttribute("ng-csp")||t.getAttribute("data-ng-csp");di.rules={noUnsafeEval:!n||n.indexOf("no-unsafe-eval")!==-1,noInlineStyle:!n||n.indexOf("no-inline-style")!==-1}}else di.rules={noUnsafeEval:function(){try{return new Function(""),!1}catch(e){return!0}}(),noInlineStyle:!1}}return di.rules},pi=function(){if(b(pi.name_))return pi.name_;var t,n,r,i,o=mi.length;for(n=0;n<o;++n)if(r=mi[n],t=e.document.querySelector("["+r.replace(":","\\:")+"jq]")){i=t.getAttribute(r+"jq");break}return pi.name_=i},$i=/:/g,mi=["ng-","data-ng-","ng:","x-ng-"],vi=function(t){var n=t.currentScript;if(!n)return!0;if(!(n instanceof e.HTMLScriptElement||n instanceof e.SVGScriptElement))return!1;var r=n.attributes;return[r.getNamedItem("src"),r.getNamedItem("href"),r.getNamedItem("xlink:href")].every(function(e){if(!e)return!0;if(!e.value)return!1;var n=t.createElement("a");if(n.href=e.value,t.location.origin===n.origin)return!0;switch(n.protocol){case"http:":case"https:":case"ftp:":case"blob:":case"file:":case"data:":return!0;default:return!1}})}(e.document),gi=/[A-Z]/g,yi=!1,bi=1,wi=3,xi=8,Ci=9,ki=11,Si={full:"1.6.3",major:1,minor:6,dot:3,codeName:"scriptalicious-bootstrapping"};Ie.expando="ng339";var Ei=Ie.cache={},Ai=1;Ie._data=function(e){return this.cache[e[this.expando]]||{}};var Ti=/-([a-z])/g,Oi=/^-ms-/,Mi={mouseleave:"mouseout",mouseenter:"mouseover"},_i=t("jqLite"),Vi=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Ii=/<|&#?\w+;/,Ni=/<([\w:-]+)/,Di=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ji={option:[1,'<select multiple="multiple">',"</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ji.optgroup=ji.option,ji.tbody=ji.tfoot=ji.colgroup=ji.caption=ji.thead,ji.th=ji.td;var Pi=e.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))},Ri=Ie.prototype={ready:Je,toString:function(){var e=[];return o(this,function(t){e.push(""+t)}),"["+e.join(", ")+"]"},eq:function(e){return Yr(e>=0?this[e]:this[this.length+e])},length:0,push:ni,sort:[].sort,splice:[].splice},Li={};o("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(e){Li[Wr(e)]=e});var qi={};o("input,select,option,textarea,button,form,details".split(","),function(e){qi[e]=!0});var Ui={ngMinlength:"minlength",ngMaxlength:"maxlength",ngMin:"min",ngMax:"max",ngPattern:"pattern",ngStep:"step"};o({data:Le,removeData:Pe,hasData:Te,cleanData:Oe},function(e,t){Ie[t]=e}),o({data:Le,inheritedData:Be,scope:function(e){return Yr.data(e,"$scope")||Be(e.parentNode||e,["$isolateScope","$scope"])},isolateScope:function(e){return Yr.data(e,"$isolateScope")||Yr.data(e,"$isolateScopeNoTemplate")},controller:He,injector:function(e){return Be(e,"$injector")},removeAttr:function(e,t){e.removeAttribute(t)},hasClass:qe,css:function(e,t,n){if(t=Ce(t),!b(n))return e.style[t];e.style[t]=n},attr:function(e,t,n){var r,i=e.nodeType;if(i!==wi&&2!==i&&i!==xi&&e.getAttribute){var o=Wr(t),a=Li[o];if(!b(n))return r=e.getAttribute(t),a&&null!==r&&(r=o),null===r?void 0:r;null===n||n===!1&&a?e.removeAttribute(t):e.setAttribute(t,a?o:n)}},prop:function(e,t,n){if(!b(n))return e[t];e[t]=n},text:function(){function e(e,t){if(y(t)){var n=e.nodeType;return n===bi||n===wi?e.textContent:""}e.textContent=t}return e.$dv="",e}(),val:function(e,t){if(y(t)){if(e.multiple&&"select"===L(e)){var n=[];return o(e.options,function(e){e.selected&&n.push(e.value||e.text)}),n}return e.value}e.value=t},html:function(e,t){if(y(t))return e.innerHTML;De(e,!0),e.innerHTML=t},empty:We},function(e,t){Ie.prototype[t]=function(t,n){var r,i,o=this.length;if(e!==We&&y(2===e.length&&e!==qe&&e!==He?t:n)){if(w(t)){for(r=0;r<o;r++)if(e===Le)e(this[r],t);else for(i in t)e(this[r],i,t[i]);return this}for(var a=e.$dv,s=y(a)?Math.min(o,1):o,u=0;u<s;u++){var c=e(this[u],t,n);a=a?a+c:c}return a}for(r=0;r<o;r++)e(this[r],t,n);return this}}),o({removeData:Pe,on:function(e,t,n,r){if(b(r))throw _i("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(Ae(e)){var i=Re(e,!0),o=i.events,a=i.handle;a||(a=i.handle=Xe(e,o));for(var s=t.indexOf(" ")>=0?t.split(" "):[t],u=s.length,c=function(t,r,i){var s=o[t];s||(s=o[t]=[],s.specialHandlerWrapper=r,"$destroy"===t||i||e.addEventListener(t,a)),s.push(n)};u--;)t=s[u],Mi[t]?(c(Mi[t],et),c(t,void 0,!0)):c(t)}},off:je,one:function(e,t,n){e=Yr(e),e.on(t,function r(){e.off(t,n),e.off(t,r)}),e.on(t,n)},replaceWith:function(e,t){var n,r=e.parentNode;De(e),o(new Ie(t),function(t){n?r.insertBefore(t,n.nextSibling):r.replaceChild(t,e),n=t})},children:function(e){var t=[];return o(e.childNodes,function(e){e.nodeType===bi&&t.push(e)}),t},contents:function(e){return e.contentDocument||e.childNodes||[]},append:function(e,t){var n=e.nodeType;if(n===bi||n===ki){t=new Ie(t);for(var r=0,i=t.length;r<i;r++){var o=t[r];e.appendChild(o)}}},prepend:function(e,t){if(e.nodeType===bi){var n=e.firstChild;o(new Ie(t),function(t){e.insertBefore(t,n)})}},wrap:function(e,t){Ve(e,Yr(t).eq(0).clone()[0])},remove:Ge,detach:function(e){Ge(e,!0)},after:function(e,t){var n=e,r=e.parentNode;if(r){t=new Ie(t);for(var i=0,o=t.length;i<o;i++){var a=t[i];r.insertBefore(a,n.nextSibling),n=a}}},addClass:ze,removeClass:Ue,toggleClass:function(e,t,n){t&&o(t.split(" "),function(t){var r=n;y(r)&&(r=!qe(e,t)),(r?ze:Ue)(e,t)})},parent:function(e){var t=e.parentNode;return t&&t.nodeType!==ki?t:null},next:function(e){return e.nextElementSibling},find:function(e,t){return e.getElementsByTagName?e.getElementsByTagName(t):[]},clone:Ne,triggerHandler:function(e,t,n){var r,i,a,s=t.type||t,u=Re(e),c=u&&u.events,l=c&&c[s];l&&(r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return this.defaultPrevented===!0},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return this.immediatePropagationStopped===!0},stopPropagation:$,type:s,target:e},t.type&&(r=f(r,t)),i=ye(l),a=n?[r].concat(n):[r],o(i,function(t){r.isImmediatePropagationStopped()||t.apply(e,a)}))}},function(e,t){Ie.prototype[t]=function(t,n,r){for(var i,o=0,a=this.length;o<a;o++)y(i)?(i=e(this[o],t,n,r),b(i)&&(i=Yr(i))):Fe(i,e(this[o],t,n,r));return b(i)?i:this}}),Ie.prototype.bind=Ie.prototype.on,Ie.prototype.unbind=Ie.prototype.off;var zi=Object.create(null);rt.prototype={_idx:function(e){return e===this._lastKey?this._lastIndex:(this._lastKey=e,this._lastIndex=this._keys.indexOf(e),this._lastIndex)},_transformKey:function(e){return ui(e)?zi:e},get:function(e){e=this._transformKey(e);var t=this._idx(e);if(t!==-1)return this._values[t]},set:function(e,t){e=this._transformKey(e);var n=this._idx(e);n===-1&&(n=this._lastIndex=this._keys.length),this._keys[n]=e,this._values[n]=t},delete:function(e){e=this._transformKey(e);var t=this._idx(e);return t!==-1&&(this._keys.splice(t,1),this._values.splice(t,1), this._lastKey=NaN,this._lastIndex=-1,!0)}};var Fi=rt,Hi=[function(){this.$get=[function(){return Fi}]}],Bi=/^([^(]+?)=>/,Wi=/^[^(]*\(\s*([^)]*)\)/m,Gi=/,/,Zi=/^\s*(_?)(\S+?)\1\s*$/,Ji=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm,Ki=t("$injector");ut.$$annotate=st;var Yi=t("$animate"),Xi=1,Qi=function(){this.$get=$},eo=function(){var e=new Fi,t=[];this.$get=["$$AnimateRunner","$rootScope",function(n,r){function i(e,t,n){var r=!1;return t&&(t=C(t)?t.split(" "):ci(t)?t:[],o(t,function(t){t&&(r=!0,e[t]=n)})),r}function a(){o(t,function(t){var n=e.get(t);if(n){var r=ht(t.attr("class")),i="",a="";o(n,function(e,t){e!==!!r[t]&&(e?i+=(i.length?" ":"")+t:a+=(a.length?" ":"")+t)}),o(t,function(e){i&&ze(e,i),a&&Ue(e,a)}),e.delete(t)}}),t.length=0}function s(n,o,s){var u=e.get(n)||{},c=i(u,o,!0),l=i(u,s,!1);(c||l)&&(e.set(n,u),t.push(n),1===t.length&&r.$$postDigest(a))}return{enabled:$,on:$,off:$,pin:$,push:function(e,t,r,i){i&&i(),r=r||{},r.from&&e.css(r.from),r.to&&e.css(r.to),(r.addClass||r.removeClass)&&s(e,r.addClass,r.removeClass);var o=new n;return o.complete(),o}}}]},to=["$provide",function(e){var t=this,n=null;this.$$registeredAnimations=Object.create(null),this.register=function(n,r){if(n&&"."!==n.charAt(0))throw Yi("notcsel","Expecting class selector starting with '.' got '{0}'.",n);var i=n+"-animation";t.$$registeredAnimations[n.substr(1)]=i,e.factory(i,r)},this.classNameFilter=function(e){if(1===arguments.length&&(n=e instanceof RegExp?e:null)){if(new RegExp("[(\\s|\\/)]ng-animate[(\\s|\\/)]").test(n.toString()))throw n=null,Yi("nongcls",'$animateProvider.classNameFilter(regex) prohibits accepting a regex value which matches/contains the "{0}" CSS class.',"ng-animate")}return n},this.$get=["$$animateQueue",function(e){function t(e,t,n){if(n){var r=ft(n);!r||r.parentNode||r.previousElementSibling||(n=null)}n?n.after(e):t.prepend(e)}return{on:e.on,off:e.off,pin:e.pin,enabled:e.enabled,cancel:function(e){e.end&&e.end()},enter:function(n,r,i,o){return r=r&&Yr(r),i=i&&Yr(i),r=r||i.parent(),t(n,r,i),e.push(n,"enter",dt(o))},move:function(n,r,i,o){return r=r&&Yr(r),i=i&&Yr(i),r=r||i.parent(),t(n,r,i),e.push(n,"move",dt(o))},leave:function(t,n){return e.push(t,"leave",dt(n),function(){t.remove()})},addClass:function(t,n,r){return r=dt(r),r.addClass=lt(r.addclass,n),e.push(t,"addClass",r)},removeClass:function(t,n,r){return r=dt(r),r.removeClass=lt(r.removeClass,n),e.push(t,"removeClass",r)},setClass:function(t,n,r,i){return i=dt(i),i.addClass=lt(i.addClass,n),i.removeClass=lt(i.removeClass,r),e.push(t,"setClass",i)},animate:function(t,n,r,i,o){return o=dt(o),o.from=o.from?f(o.from,n):n,o.to=o.to?f(o.to,r):r,i=i||"ng-inline-animate",o.tempClasses=lt(o.tempClasses,i),e.push(t,"animate",o)}}}]}],no=function(){this.$get=["$$rAF",function(e){function t(t){n.push(t),n.length>1||e(function(){for(var e=0;e<n.length;e++)n[e]();n=[]})}var n=[];return function(){var e=!1;return t(function(){e=!0}),function(n){e?n():t(n)}}}]},ro=function(){this.$get=["$q","$sniffer","$$animateAsyncRun","$$isDocumentHidden","$timeout",function(e,t,n,r,i){function a(e){this.setHost(e);var t=n(),o=function(e){i(e,0,!1)};this._doneCallbacks=[],this._tick=function(e){r()?o(e):t(e)},this._state=0}return a.chain=function(e,t){function n(){if(r===e.length)return void t(!0);e[r](function(e){if(e===!1)return void t(!1);r++,n()})}var r=0;n()},a.all=function(e,t){function n(n){i=i&&n,++r===e.length&&t(i)}var r=0,i=!0;o(e,function(e){e.done(n)})},a.prototype={setHost:function(e){this.host=e||{}},done:function(e){2===this._state?e():this._doneCallbacks.push(e)},progress:$,getPromise:function(){if(!this.promise){var t=this;this.promise=e(function(e,n){t.done(function(t){t===!1?n():e()})})}return this.promise},then:function(e,t){return this.getPromise().then(e,t)},catch:function(e){return this.getPromise().catch(e)},finally:function(e){return this.getPromise().finally(e)},pause:function(){this.host.pause&&this.host.pause()},resume:function(){this.host.resume&&this.host.resume()},end:function(){this.host.end&&this.host.end(),this._resolve(!0)},cancel:function(){this.host.cancel&&this.host.cancel(),this._resolve(!1)},complete:function(e){var t=this;0===t._state&&(t._state=1,t._tick(function(){t._resolve(e)}))},_resolve:function(e){2!==this._state&&(o(this._doneCallbacks,function(t){t(e)}),this._doneCallbacks.length=0,this._state=2)}},a}]},io=function(){this.$get=["$$rAF","$q","$$AnimateRunner",function(e,t,n){return function(t,r){function i(){return e(function(){o(),s||u.complete(),s=!0}),u}function o(){a.addClass&&(t.addClass(a.addClass),a.addClass=null),a.removeClass&&(t.removeClass(a.removeClass),a.removeClass=null),a.to&&(t.css(a.to),a.to=null)}var a=r||{};a.$$prepared||(a=z(a)),a.cleanupStyles&&(a.from=a.to=null),a.from&&(t.css(a.from),a.from=null);var s,u=new n;return{start:i,end:i}}}]},oo=t("$compile"),ao=new gt;yt.$inject=["$provide","$$sanitizeUriProvider"],bt.prototype.isFirstChange=function(){return this.previousValue===ao};var so=/^((?:x|data)[:\-_])/i,uo=/[:\-_]+(.)/g,co=t("$controller"),lo=/^(\S+)(\s+as\s+([\w$]+))?$/,fo=function(){this.$get=["$document",function(e){return function(t){return t?!t.nodeType&&t instanceof Yr&&(t=t[0]):t=e[0].body,t.offsetWidth+1}}]},ho="application/json",po={"Content-Type":ho+";charset=utf-8"},$o=/^\[|^\{(?!\{)/,mo={"[":/]$/,"{":/}$/},vo=/^\)]\}',?\n/,go=t("$http"),yo=ai.$interpolateMinErr=t("$interpolate");yo.throwNoconcat=function(e){throw yo("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required. See http://docs.angularjs.org/api/ng.$sce",e)},yo.interr=function(e,t){return yo("interr","Can't interpolate: {0}\n{1}",e,t.toString())};var bo=function(){this.$get=function(){function e(e){var t=function(e){t.data=e,t.called=!0};return t.id=e,t}var t=ai.callbacks,n={};return{createCallback:function(r){var i="_"+(t.$$counter++).toString(36),o="angular.callbacks."+i,a=e(i);return n[o]=t[i]=a,o},wasCalled:function(e){return n[e].called},getResponse:function(e){return n[e].data},removeCallback:function(e){delete t[n[e].id],delete n[e]}}}},wo=/^([^?#]*)(\?([^#]*))?(#(.*))?$/,xo={http:80,https:443,ftp:21},Co=t("$location"),ko=/^\s*[\\\/]{2,}/,So={$$absUrl:"",$$html5:!1,$$replace:!1,absUrl:nn("$$absUrl"),url:function(e){if(y(e))return this.$$url;var t=wo.exec(e);return(t[1]||""===e)&&this.path(decodeURIComponent(t[1])),(t[2]||t[1]||""===e)&&this.search(t[3]||""),this.hash(t[5]||""),this},protocol:nn("$$protocol"),host:nn("$$host"),port:nn("$$port"),path:rn("$$path",function(e){return e=null!==e?e.toString():"","/"===e.charAt(0)?e:"/"+e}),search:function(e,t){switch(arguments.length){case 0:return this.$$search;case 1:if(C(e)||k(e))e=e.toString(),this.$$search=te(e);else{if(!w(e))throw Co("isrcharg","The first argument of the `$location#search()` call must be a string or an object.");e=z(e,{}),o(e,function(t,n){null==t&&delete e[n]}),this.$$search=e}break;default:y(t)||null===t?delete this.$$search[e]:this.$$search[e]=t}return this.$$compose(),this},hash:rn("$$hash",function(e){return null!==e?e.toString():""}),replace:function(){return this.$$replace=!0,this}};o([tn,en,Qt],function(e){e.prototype=Object.create(So),e.prototype.state=function(t){if(!arguments.length)return this.$$state;if(e!==Qt||!this.$$html5)throw Co("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API");return this.$$state=y(t)?null:t,this.$$urlUpdatedByLocation=!0,this}});var Eo=t("$parse"),Ao={}.constructor.prototype.valueOf,To=me();o("+ - * / % === !== == != < > <= >= && || ! = |".split(" "),function(e){To[e]=!0});var Oo={n:"\n",f:"\f",r:"\r",t:"\t",v:"\v","'":"'",'"':'"'},Mo=function(e){this.options=e};Mo.prototype={constructor:Mo,lex:function(e){for(this.text=e,this.index=0,this.tokens=[];this.index<this.text.length;){var t=this.text.charAt(this.index);if('"'===t||"'"===t)this.readString(t);else if(this.isNumber(t)||"."===t&&this.isNumber(this.peek()))this.readNumber();else if(this.isIdentifierStart(this.peekMultichar()))this.readIdent();else if(this.is(t,"(){}[].,;:?"))this.tokens.push({index:this.index,text:t}),this.index++;else if(this.isWhitespace(t))this.index++;else{var n=t+this.peek(),r=n+this.peek(2),i=To[t],o=To[n],a=To[r];if(i||o||a){var s=a?r:o?n:t;this.tokens.push({index:this.index,text:s,operator:!0}),this.index+=s.length}else this.throwError("Unexpected next character ",this.index,this.index+1)}}return this.tokens},is:function(e,t){return t.indexOf(e)!==-1},peek:function(e){var t=e||1;return this.index+t<this.text.length&&this.text.charAt(this.index+t)},isNumber:function(e){return"0"<=e&&e<="9"&&"string"==typeof e},isWhitespace:function(e){return" "===e||"\r"===e||"\t"===e||"\n"===e||"\v"===e||" "===e},isIdentifierStart:function(e){return this.options.isIdentifierStart?this.options.isIdentifierStart(e,this.codePointAt(e)):this.isValidIdentifierStart(e)},isValidIdentifierStart:function(e){return"a"<=e&&e<="z"||"A"<=e&&e<="Z"||"_"===e||"$"===e},isIdentifierContinue:function(e){return this.options.isIdentifierContinue?this.options.isIdentifierContinue(e,this.codePointAt(e)):this.isValidIdentifierContinue(e)},isValidIdentifierContinue:function(e,t){return this.isValidIdentifierStart(e,t)||this.isNumber(e)},codePointAt:function(e){return 1===e.length?e.charCodeAt(0):(e.charCodeAt(0)<<10)+e.charCodeAt(1)-56613888},peekMultichar:function(){var e=this.text.charAt(this.index),t=this.peek();if(!t)return e;var n=e.charCodeAt(0),r=t.charCodeAt(0);return n>=55296&&n<=56319&&r>=56320&&r<=57343?e+t:e},isExpOperator:function(e){return"-"===e||"+"===e||this.isNumber(e)},throwError:function(e,t,n){throw n=n||this.index,Eo("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",e,b(t)?"s "+t+"-"+this.index+" ["+this.text.substring(t,n)+"]":" "+n,this.text)},readNumber:function(){for(var e="",t=this.index;this.index<this.text.length;){var n=Wr(this.text.charAt(this.index));if("."===n||this.isNumber(n))e+=n;else{var r=this.peek();if("e"===n&&this.isExpOperator(r))e+=n;else if(this.isExpOperator(n)&&r&&this.isNumber(r)&&"e"===e.charAt(e.length-1))e+=n;else{if(!this.isExpOperator(n)||r&&this.isNumber(r)||"e"!==e.charAt(e.length-1))break;this.throwError("Invalid exponent")}}this.index++}this.tokens.push({index:t,text:e,constant:!0,value:Number(e)})},readIdent:function(){var e=this.index;for(this.index+=this.peekMultichar().length;this.index<this.text.length;){var t=this.peekMultichar();if(!this.isIdentifierContinue(t))break;this.index+=t.length}this.tokens.push({index:e,text:this.text.slice(e,this.index),identifier:!0})},readString:function(e){var t=this.index;this.index++;for(var n="",r=e,i=!1;this.index<this.text.length;){var o=this.text.charAt(this.index);if(r+=o,i){if("u"===o){var a=this.text.substring(this.index+1,this.index+5);a.match(/[\da-f]{4}/i)||this.throwError("Invalid unicode escape [\\u"+a+"]"),this.index+=4,n+=String.fromCharCode(parseInt(a,16))}else{n+=Oo[o]||o}i=!1}else if("\\"===o)i=!0;else{if(o===e)return this.index++,void this.tokens.push({index:t,text:r,constant:!0,value:n});n+=o}this.index++}this.throwError("Unterminated quote",t)}};var _o=function(e,t){this.lexer=e,this.options=t};_o.Program="Program",_o.ExpressionStatement="ExpressionStatement",_o.AssignmentExpression="AssignmentExpression",_o.ConditionalExpression="ConditionalExpression",_o.LogicalExpression="LogicalExpression",_o.BinaryExpression="BinaryExpression",_o.UnaryExpression="UnaryExpression",_o.CallExpression="CallExpression",_o.MemberExpression="MemberExpression",_o.Identifier="Identifier",_o.Literal="Literal",_o.ArrayExpression="ArrayExpression",_o.Property="Property",_o.ObjectExpression="ObjectExpression",_o.ThisExpression="ThisExpression",_o.LocalsExpression="LocalsExpression",_o.NGValueParameter="NGValueParameter",_o.prototype={ast:function(e){this.text=e,this.tokens=this.lexer.lex(e);var t=this.program();return 0!==this.tokens.length&&this.throwError("is an unexpected token",this.tokens[0]),t},program:function(){for(var e=[];;)if(this.tokens.length>0&&!this.peek("}",")",";","]")&&e.push(this.expressionStatement()),!this.expect(";"))return{type:_o.Program,body:e}},expressionStatement:function(){return{type:_o.ExpressionStatement,expression:this.filterChain()}},filterChain:function(){for(var e=this.expression();this.expect("|");)e=this.filter(e);return e},expression:function(){return this.assignment()},assignment:function(){var e=this.ternary();if(this.expect("=")){if(!dn(e))throw Eo("lval","Trying to assign a value to a non l-value");e={type:_o.AssignmentExpression,left:e,right:this.assignment(),operator:"="}}return e},ternary:function(){var e,t,n=this.logicalOR();return this.expect("?")&&(e=this.expression(),this.consume(":"))?(t=this.expression(),{type:_o.ConditionalExpression,test:n,alternate:e,consequent:t}):n},logicalOR:function(){for(var e=this.logicalAND();this.expect("||");)e={type:_o.LogicalExpression,operator:"||",left:e,right:this.logicalAND()};return e},logicalAND:function(){for(var e=this.equality();this.expect("&&");)e={type:_o.LogicalExpression,operator:"&&",left:e,right:this.equality()};return e},equality:function(){for(var e,t=this.relational();e=this.expect("==","!=","===","!==");)t={type:_o.BinaryExpression,operator:e.text,left:t,right:this.relational()};return t},relational:function(){for(var e,t=this.additive();e=this.expect("<",">","<=",">=");)t={type:_o.BinaryExpression,operator:e.text,left:t,right:this.additive()};return t},additive:function(){for(var e,t=this.multiplicative();e=this.expect("+","-");)t={type:_o.BinaryExpression,operator:e.text,left:t,right:this.multiplicative()};return t},multiplicative:function(){for(var e,t=this.unary();e=this.expect("*","/","%");)t={type:_o.BinaryExpression,operator:e.text,left:t,right:this.unary()};return t},unary:function(){var e;return(e=this.expect("+","-","!"))?{type:_o.UnaryExpression,operator:e.text,prefix:!0,argument:this.unary()}:this.primary()},primary:function(){var e;this.expect("(")?(e=this.filterChain(),this.consume(")")):this.expect("[")?e=this.arrayDeclaration():this.expect("{")?e=this.object():this.selfReferential.hasOwnProperty(this.peek().text)?e=z(this.selfReferential[this.consume().text]):this.options.literals.hasOwnProperty(this.peek().text)?e={type:_o.Literal,value:this.options.literals[this.consume().text]}:this.peek().identifier?e=this.identifier():this.peek().constant?e=this.constant():this.throwError("not a primary expression",this.peek());for(var t;t=this.expect("(","[",".");)"("===t.text?(e={type:_o.CallExpression,callee:e,arguments:this.parseArguments()},this.consume(")")):"["===t.text?(e={type:_o.MemberExpression,object:e,property:this.expression(),computed:!0},this.consume("]")):"."===t.text?e={type:_o.MemberExpression,object:e,property:this.identifier(),computed:!1}:this.throwError("IMPOSSIBLE");return e},filter:function(e){for(var t=[e],n={type:_o.CallExpression,callee:this.identifier(),arguments:t,filter:!0};this.expect(":");)t.push(this.expression());return n},parseArguments:function(){var e=[];if(")"!==this.peekToken().text)do{e.push(this.filterChain())}while(this.expect(","));return e},identifier:function(){var e=this.consume();return e.identifier||this.throwError("is not a valid identifier",e),{type:_o.Identifier,name:e.text}},constant:function(){return{type:_o.Literal,value:this.consume().value}},arrayDeclaration:function(){var e=[];if("]"!==this.peekToken().text)do{if(this.peek("]"))break;e.push(this.expression())}while(this.expect(","));return this.consume("]"),{type:_o.ArrayExpression,elements:e}},object:function(){var e,t=[];if("}"!==this.peekToken().text)do{if(this.peek("}"))break;e={type:_o.Property,kind:"init"},this.peek().constant?(e.key=this.constant(),e.computed=!1,this.consume(":"),e.value=this.expression()):this.peek().identifier?(e.key=this.identifier(),e.computed=!1,this.peek(":")?(this.consume(":"),e.value=this.expression()):e.value=e.key):this.peek("[")?(this.consume("["),e.key=this.expression(),this.consume("]"),e.computed=!0,this.consume(":"),e.value=this.expression()):this.throwError("invalid key",this.peek()),t.push(e)}while(this.expect(","));return this.consume("}"),{type:_o.ObjectExpression,properties:t}},throwError:function(e,t){throw Eo("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",t.text,e,t.index+1,this.text,this.text.substring(t.index))},consume:function(e){if(0===this.tokens.length)throw Eo("ueoe","Unexpected end of expression: {0}",this.text);var t=this.expect(e);return t||this.throwError("is unexpected, expecting ["+e+"]",this.peek()),t},peekToken:function(){if(0===this.tokens.length)throw Eo("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(e,t,n,r){return this.peekAhead(0,e,t,n,r)},peekAhead:function(e,t,n,r,i){if(this.tokens.length>e){var o=this.tokens[e],a=o.text;if(a===t||a===n||a===r||a===i||!t&&!n&&!r&&!i)return o}return!1},expect:function(e,t,n,r){var i=this.peek(e,t,n,r);return!!i&&(this.tokens.shift(),i)},selfReferential:{this:{type:_o.ThisExpression},$locals:{type:_o.LocalsExpression}}},vn.prototype={compile:function(e){var t=this,n=this.astBuilder.ast(e);this.state={nextId:0,filters:{},fn:{vars:[],body:[],own:{}},assign:{vars:[],body:[],own:{}},inputs:[]},fn(n,t.$filter);var r,i="";if(this.stage="assign",r=pn(n)){this.state.computing="assign";var a=this.nextId();this.recurse(r,a),this.return_(a),i="fn.assign="+this.generateFunction("assign","s,v,l")}var s=hn(n.body);t.stage="inputs",o(s,function(e,n){var r="fn"+n;t.state[r]={vars:[],body:[],own:{}},t.state.computing=r;var i=t.nextId();t.recurse(e,i),t.return_(i),t.state.inputs.push(r),e.watchId=n}),this.state.computing="fn",this.stage="main",this.recurse(n);var u='"'+this.USE+" "+this.STRICT+'";\n'+this.filterPrefix()+"var fn="+this.generateFunction("fn","s,l,a,i")+i+this.watchFns()+"return fn;",c=new Function("$filter","getStringValue","ifDefined","plus",u)(this.$filter,sn,un,cn);return this.state=this.stage=void 0,c.literal=$n(n),c.constant=mn(n),c},USE:"use",STRICT:"strict",watchFns:function(){var e=[],t=this.state.inputs,n=this;return o(t,function(t){e.push("var "+t+"="+n.generateFunction(t,"s"))}),t.length&&e.push("fn.inputs=["+t.join(",")+"];"),e.join("")},generateFunction:function(e,t){return"function("+t+"){"+this.varsPrefix(e)+this.body(e)+"};"},filterPrefix:function(){var e=[],t=this;return o(this.state.filters,function(n,r){e.push(n+"=$filter("+t.escape(r)+")")}),e.length?"var "+e.join(",")+";":""},varsPrefix:function(e){return this.state[e].vars.length?"var "+this.state[e].vars.join(",")+";":""},body:function(e){return this.state[e].body.join("")},recurse:function(e,t,n,r,i,a){var s,u,c,l,f,h=this;if(r=r||$,!a&&b(e.watchId))return t=t||this.nextId(),void this.if_("i",this.lazyAssign(t,this.computedMember("i",e.watchId)),this.lazyRecurse(e,t,n,r,i,!0));switch(e.type){case _o.Program:o(e.body,function(t,n){h.recurse(t.expression,void 0,void 0,function(e){u=e}),n!==e.body.length-1?h.current().body.push(u,";"):h.return_(u)});break;case _o.Literal:l=this.escape(e.value),this.assign(t,l),r(t||l);break;case _o.UnaryExpression:this.recurse(e.argument,void 0,void 0,function(e){u=e}),l=e.operator+"("+this.ifDefined(u,0)+")",this.assign(t,l),r(l);break;case _o.BinaryExpression:this.recurse(e.left,void 0,void 0,function(e){s=e}),this.recurse(e.right,void 0,void 0,function(e){u=e}),l="+"===e.operator?this.plus(s,u):"-"===e.operator?this.ifDefined(s,0)+e.operator+this.ifDefined(u,0):"("+s+")"+e.operator+"("+u+")",this.assign(t,l),r(l);break;case _o.LogicalExpression:t=t||this.nextId(),h.recurse(e.left,t),h.if_("&&"===e.operator?t:h.not(t),h.lazyRecurse(e.right,t)),r(t);break;case _o.ConditionalExpression:t=t||this.nextId(),h.recurse(e.test,t),h.if_(t,h.lazyRecurse(e.alternate,t),h.lazyRecurse(e.consequent,t)),r(t);break;case _o.Identifier:t=t||this.nextId(),n&&(n.context="inputs"===h.stage?"s":this.assign(this.nextId(),this.getHasOwnProperty("l",e.name)+"?l:s"),n.computed=!1,n.name=e.name),h.if_("inputs"===h.stage||h.not(h.getHasOwnProperty("l",e.name)),function(){h.if_("inputs"===h.stage||"s",function(){i&&1!==i&&h.if_(h.isNull(h.nonComputedMember("s",e.name)),h.lazyAssign(h.nonComputedMember("s",e.name),"{}")),h.assign(t,h.nonComputedMember("s",e.name))})},t&&h.lazyAssign(t,h.nonComputedMember("l",e.name))),r(t);break;case _o.MemberExpression:s=n&&(n.context=this.nextId())||this.nextId(),t=t||this.nextId(),h.recurse(e.object,s,void 0,function(){h.if_(h.notNull(s),function(){e.computed?(u=h.nextId(),h.recurse(e.property,u),h.getStringValue(u),i&&1!==i&&h.if_(h.not(h.computedMember(s,u)),h.lazyAssign(h.computedMember(s,u),"{}")),l=h.computedMember(s,u),h.assign(t,l),n&&(n.computed=!0,n.name=u)):(i&&1!==i&&h.if_(h.isNull(h.nonComputedMember(s,e.property.name)),h.lazyAssign(h.nonComputedMember(s,e.property.name),"{}")),l=h.nonComputedMember(s,e.property.name),h.assign(t,l),n&&(n.computed=!1,n.name=e.property.name))},function(){h.assign(t,"undefined")}),r(t)},!!i);break;case _o.CallExpression:t=t||this.nextId(),e.filter?(u=h.filter(e.callee.name),c=[],o(e.arguments,function(e){var t=h.nextId();h.recurse(e,t),c.push(t)}),l=u+"("+c.join(",")+")",h.assign(t,l),r(t)):(u=h.nextId(),s={},c=[],h.recurse(e.callee,u,s,function(){h.if_(h.notNull(u),function(){o(e.arguments,function(t){h.recurse(t,e.constant?void 0:h.nextId(),void 0,function(e){c.push(e)})}),l=s.name?h.member(s.context,s.name,s.computed)+"("+c.join(",")+")":u+"("+c.join(",")+")",h.assign(t,l)},function(){h.assign(t,"undefined")}),r(t)}));break;case _o.AssignmentExpression:u=this.nextId(),s={},this.recurse(e.left,void 0,s,function(){h.if_(h.notNull(s.context),function(){h.recurse(e.right,u),l=h.member(s.context,s.name,s.computed)+e.operator+u,h.assign(t,l),r(t||l)})},1);break;case _o.ArrayExpression:c=[],o(e.elements,function(t){h.recurse(t,e.constant?void 0:h.nextId(),void 0,function(e){c.push(e)})}),l="["+c.join(",")+"]",this.assign(t,l),r(t||l);break;case _o.ObjectExpression:c=[],f=!1,o(e.properties,function(e){e.computed&&(f=!0)}),f?(t=t||this.nextId(),this.assign(t,"{}"),o(e.properties,function(e){e.computed?(s=h.nextId(),h.recurse(e.key,s)):s=e.key.type===_o.Identifier?e.key.name:""+e.key.value,u=h.nextId(),h.recurse(e.value,u),h.assign(h.member(t,s,e.computed),u)})):(o(e.properties,function(t){h.recurse(t.value,e.constant?void 0:h.nextId(),void 0,function(e){c.push(h.escape(t.key.type===_o.Identifier?t.key.name:""+t.key.value)+":"+e)})}),l="{"+c.join(",")+"}",this.assign(t,l)),r(t||l);break;case _o.ThisExpression:this.assign(t,"s"),r(t||"s");break;case _o.LocalsExpression:this.assign(t,"l"),r(t||"l");break;case _o.NGValueParameter:this.assign(t,"v"),r(t||"v")}},getHasOwnProperty:function(e,t){var n=e+"."+t,r=this.current().own;return r.hasOwnProperty(n)||(r[n]=this.nextId(!1,e+"&&("+this.escape(t)+" in "+e+")")),r[n]},assign:function(e,t){if(e)return this.current().body.push(e,"=",t,";"),e},filter:function(e){return this.state.filters.hasOwnProperty(e)||(this.state.filters[e]=this.nextId(!0)),this.state.filters[e]},ifDefined:function(e,t){return"ifDefined("+e+","+this.escape(t)+")"},plus:function(e,t){return"plus("+e+","+t+")"},return_:function(e){this.current().body.push("return ",e,";")},if_:function(e,t,n){if(e===!0)t();else{var r=this.current().body;r.push("if(",e,"){"),t(),r.push("}"),n&&(r.push("else{"),n(),r.push("}"))}},not:function(e){return"!("+e+")"},isNull:function(e){return e+"==null"},notNull:function(e){return e+"!=null"},nonComputedMember:function(e,t){var n=/^[$_a-zA-Z][$_a-zA-Z0-9]*$/;return n.test(t)?e+"."+t:e+'["'+t.replace(/[^$_a-zA-Z0-9]/g,this.stringEscapeFn)+'"]'},computedMember:function(e,t){return e+"["+t+"]"},member:function(e,t,n){return n?this.computedMember(e,t):this.nonComputedMember(e,t)},getStringValue:function(e){this.assign(e,"getStringValue("+e+")")},lazyRecurse:function(e,t,n,r,i,o){var a=this;return function(){a.recurse(e,t,n,r,i,o)}},lazyAssign:function(e,t){var n=this;return function(){n.assign(e,t)}},stringEscapeRegex:/[^ a-zA-Z0-9]/g,stringEscapeFn:function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)},escape:function(e){if(C(e))return"'"+e.replace(this.stringEscapeRegex,this.stringEscapeFn)+"'";if(k(e))return e.toString();if(e===!0)return"true";if(e===!1)return"false";if(null===e)return"null";if(void 0===e)return"undefined";throw Eo("esc","IMPOSSIBLE")},nextId:function(e,t){var n="v"+this.state.nextId++;return e||this.current().vars.push(n+(t?"="+t:"")),n},current:function(){return this.state[this.state.computing]}},gn.prototype={compile:function(e){var t=this,n=this.astBuilder.ast(e);fn(n,t.$filter);var r,i;(r=pn(n))&&(i=this.recurse(r));var a,s=hn(n.body);s&&(a=[],o(s,function(e,n){var r=t.recurse(e);e.input=r,a.push(r),e.watchId=n}));var u=[];o(n.body,function(e){u.push(t.recurse(e.expression))});var c=0===n.body.length?$:1===n.body.length?u[0]:function(e,t){var n;return o(u,function(r){n=r(e,t)}),n};return i&&(c.assign=function(e,t,n){return i(e,n,t)}),a&&(c.inputs=a),c.literal=$n(n),c.constant=mn(n),c},recurse:function(e,t,n){var r,i,a,s=this;if(e.input)return this.inputs(e.input,e.watchId);switch(e.type){case _o.Literal:return this.value(e.value,t);case _o.UnaryExpression:return i=this.recurse(e.argument),this["unary"+e.operator](i,t);case _o.BinaryExpression:return r=this.recurse(e.left),i=this.recurse(e.right),this["binary"+e.operator](r,i,t);case _o.LogicalExpression:return r=this.recurse(e.left),i=this.recurse(e.right),this["binary"+e.operator](r,i,t);case _o.ConditionalExpression:return this["ternary?:"](this.recurse(e.test),this.recurse(e.alternate),this.recurse(e.consequent),t);case _o.Identifier:return s.identifier(e.name,t,n);case _o.MemberExpression:return r=this.recurse(e.object,!1,!!n),e.computed||(i=e.property.name),e.computed&&(i=this.recurse(e.property)),e.computed?this.computedMember(r,i,t,n):this.nonComputedMember(r,i,t,n);case _o.CallExpression:return a=[],o(e.arguments,function(e){a.push(s.recurse(e))}),e.filter&&(i=this.$filter(e.callee.name)),e.filter||(i=this.recurse(e.callee,!0)),e.filter?function(e,n,r,o){for(var s=[],u=0;u<a.length;++u)s.push(a[u](e,n,r,o));var c=i.apply(void 0,s,o);return t?{context:void 0,name:void 0,value:c}:c}:function(e,n,r,o){var s,u=i(e,n,r,o);if(null!=u.value){for(var c=[],l=0;l<a.length;++l)c.push(a[l](e,n,r,o));s=u.value.apply(u.context,c)}return t?{value:s}:s};case _o.AssignmentExpression:return r=this.recurse(e.left,!0,1),i=this.recurse(e.right),function(e,n,o,a){var s=r(e,n,o,a),u=i(e,n,o,a);return s.context[s.name]=u,t?{value:u}:u};case _o.ArrayExpression:return a=[],o(e.elements,function(e){a.push(s.recurse(e))}),function(e,n,r,i){for(var o=[],s=0;s<a.length;++s)o.push(a[s](e,n,r,i));return t?{value:o}:o};case _o.ObjectExpression:return a=[],o(e.properties,function(e){e.computed?a.push({key:s.recurse(e.key),computed:!0,value:s.recurse(e.value)}):a.push({key:e.key.type===_o.Identifier?e.key.name:""+e.key.value,computed:!1,value:s.recurse(e.value)})}),function(e,n,r,i){for(var o={},s=0;s<a.length;++s)a[s].computed?o[a[s].key(e,n,r,i)]=a[s].value(e,n,r,i):o[a[s].key]=a[s].value(e,n,r,i);return t?{value:o}:o};case _o.ThisExpression:return function(e){return t?{value:e}:e};case _o.LocalsExpression:return function(e,n){return t?{value:n}:n};case _o.NGValueParameter:return function(e,n,r){return t?{value:r}:r}}},"unary+":function(e,t){return function(n,r,i,o){var a=e(n,r,i,o);return a=b(a)?+a:0,t?{value:a}:a}},"unary-":function(e,t){return function(n,r,i,o){var a=e(n,r,i,o);return a=b(a)?-a:-0,t?{value:a}:a}},"unary!":function(e,t){return function(n,r,i,o){var a=!e(n,r,i,o);return t?{value:a}:a}},"binary+":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a),u=t(r,i,o,a),c=cn(s,u);return n?{value:c}:c}},"binary-":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a),u=t(r,i,o,a),c=(b(s)?s:0)-(b(u)?u:0);return n?{value:c}:c}},"binary*":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)*t(r,i,o,a);return n?{value:s}:s}},"binary/":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)/t(r,i,o,a);return n?{value:s}:s}},"binary%":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)%t(r,i,o,a);return n?{value:s}:s}},"binary===":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)===t(r,i,o,a);return n?{value:s}:s}},"binary!==":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)!==t(r,i,o,a);return n?{value:s}:s}},"binary==":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)==t(r,i,o,a);return n?{value:s}:s}},"binary!=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)!=t(r,i,o,a);return n?{value:s}:s}},"binary<":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)<t(r,i,o,a);return n?{value:s}:s}},"binary>":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)>t(r,i,o,a);return n?{value:s}:s}},"binary<=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)<=t(r,i,o,a);return n?{value:s}:s}},"binary>=":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)>=t(r,i,o,a);return n?{value:s}:s}},"binary&&":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)&&t(r,i,o,a);return n?{value:s}:s}},"binary||":function(e,t,n){return function(r,i,o,a){var s=e(r,i,o,a)||t(r,i,o,a);return n?{value:s}:s}},"ternary?:":function(e,t,n,r){return function(i,o,a,s){var u=e(i,o,a,s)?t(i,o,a,s):n(i,o,a,s);return r?{value:u}:u}},value:function(e,t){return function(){return t?{context:void 0,name:void 0,value:e}:e}},identifier:function(e,t,n){return function(r,i,o,a){var s=i&&e in i?i:r;n&&1!==n&&s&&null==s[e]&&(s[e]={});var u=s?s[e]:void 0;return t?{context:s,name:e,value:u}:u}},computedMember:function(e,t,n,r){return function(i,o,a,s){var u,c,l=e(i,o,a,s);return null!=l&&(u=t(i,o,a,s),u=sn(u),r&&1!==r&&l&&!l[u]&&(l[u]={}),c=l[u]),n?{context:l,name:u,value:c}:c}},nonComputedMember:function(e,t,n,r){return function(i,o,a,s){var u=e(i,o,a,s);r&&1!==r&&u&&null==u[t]&&(u[t]={});var c=null!=u?u[t]:void 0;return n?{context:u,name:t,value:c}:c}},inputs:function(e,t){return function(n,r,i,o){return o?o[t]:e(n,r,i)}}};var Vo=function(e,t,n){this.lexer=e,this.$filter=t,this.options=n,this.ast=new _o(e,n),this.astCompiler=n.csp?new gn(this.ast,t):new vn(this.ast,t)};Vo.prototype={constructor:Vo,parse:function(e){return this.astCompiler.compile(e)}};var Io=t("$sce"),No={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"},Do=/_([a-z])/g,jo=t("$compile"),Po=e.document.createElement("a"),Ro=jn(e.location.href);Ln.$inject=["$document"],Un.$inject=["$provide"];var Lo=22,qo=".",Uo="0";Wn.$inject=["$locale"],Gn.$inject=["$locale"];var zo={yyyy:Xn("FullYear",4,0,!1,!0),yy:Xn("FullYear",2,0,!0,!0),y:Xn("FullYear",1,0,!1,!0),MMMM:Qn("Month"),MMM:Qn("Month",!0),MM:Xn("Month",2,1),M:Xn("Month",1,1),LLLL:Qn("Month",!1,!0),dd:Xn("Date",2),d:Xn("Date",1),HH:Xn("Hours",2),H:Xn("Hours",1),hh:Xn("Hours",2,-12),h:Xn("Hours",1,-12),mm:Xn("Minutes",2),m:Xn("Minutes",1),ss:Xn("Seconds",2),s:Xn("Seconds",1),sss:Xn("Milliseconds",3),EEEE:Qn("Day"),EEE:Qn("Day",!0),a:ir,Z:er,ww:rr(2),w:rr(1),G:or,GG:or,GGG:or,GGGG:ar},Fo=/((?:[^yMLdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,Ho=/^-?\d+$/;sr.$inject=["$locale"];var Bo=v(Wr),Wo=v(Gr);fr.$inject=["$parse"];var Go=v({restrict:"E",compile:function(e,t){if(!t.href&&!t.xlinkHref)return function(e,t){if("a"===t[0].nodeName.toLowerCase()){var n="[object SVGAnimatedString]"===ri.call(t.prop("href"))?"xlink:href":"href";t.on("click",function(e){t.attr(n)||e.preventDefault()})}}}}),Zo={};o(Li,function(e,t){function n(e,n,i){e.$watch(i[r],function(e){i.$set(t,!!e)})}if("multiple"!==e){var r=wt("ng-"+t),i=n;"checked"===e&&(i=function(e,t,i){i.ngModel!==i[r]&&n(e,t,i)}),Zo[r]=function(){return{restrict:"A",priority:100,link:i}}}}),o(Ui,function(e,t){Zo[t]=function(){return{priority:100,link:function(e,n,r){if("ngPattern"===t&&"/"===r.ngPattern.charAt(0)){var i=r.ngPattern.match(/^\/(.+)\/([a-z]*)$/) ;if(i)return void r.$set("ngPattern",new RegExp(i[1],i[2]))}e.$watch(r[t],function(e){r.$set(t,e)})}}}}),o(["src","srcset","href"],function(e){var t=wt("ng-"+e);Zo[t]=function(){return{priority:99,link:function(n,r,i){var o=e,a=e;"href"===e&&"[object SVGAnimatedString]"===ri.call(r.prop("href"))&&(a="xlinkHref",i.$attr[a]="xlink:href",o=null),i.$observe(t,function(t){if(!t)return void("href"===e&&i.$set(a,null));i.$set(a,t),Kr&&o&&r.prop(o,i[a])})}}}});var Jo={$addControl:$,$$renameControl:dr,$removeControl:$,$setValidity:$,$setDirty:$,$setPristine:$,$setSubmitted:$},Ko="ng-pending";pr.$inject=["$element","$attrs","$scope","$animate","$interpolate"],pr.prototype={$rollbackViewValue:function(){o(this.$$controls,function(e){e.$rollbackViewValue()})},$commitViewValue:function(){o(this.$$controls,function(e){e.$commitViewValue()})},$addControl:function(e){de(e.$name,"input"),this.$$controls.push(e),e.$name&&(this[e.$name]=e),e.$$parentForm=this},$$renameControl:function(e,t){var n=e.$name;this[n]===e&&delete this[n],this[t]=e,e.$name=t},$removeControl:function(e){e.$name&&this[e.$name]===e&&delete this[e.$name],o(this.$pending,function(t,n){this.$setValidity(n,null,e)},this),o(this.$error,function(t,n){this.$setValidity(n,null,e)},this),o(this.$$success,function(t,n){this.$setValidity(n,null,e)},this),U(this.$$controls,e),e.$$parentForm=Jo},$setDirty:function(){this.$$animate.removeClass(this.$$element,_a),this.$$animate.addClass(this.$$element,Va),this.$dirty=!0,this.$pristine=!1,this.$$parentForm.$setDirty()},$setPristine:function(){this.$$animate.setClass(this.$$element,_a,Va+" ng-submitted"),this.$dirty=!1,this.$pristine=!0,this.$submitted=!1,o(this.$$controls,function(e){e.$setPristine()})},$setUntouched:function(){o(this.$$controls,function(e){e.$setUntouched()})},$setSubmitted:function(){this.$$animate.addClass(this.$$element,"ng-submitted"),this.$submitted=!0,this.$$parentForm.$setSubmitted()}},mr({clazz:pr,set:function(e,t,n){var r=e[t];if(r){r.indexOf(n)===-1&&r.push(n)}else e[t]=[n]},unset:function(e,t,n){var r=e[t];r&&(U(r,n),0===r.length&&delete e[t])}});var Yo=function(e){return["$timeout","$parse",function(t,n){function r(e){return""===e?n('this[""]').assign:n(e).assign||$}return{name:"form",restrict:e?"EAC":"E",require:["form","^^?form"],controller:pr,compile:function(n,i){n.addClass(_a).addClass(Oa);var o=i.name?"name":!(!e||!i.ngForm)&&"ngForm";return{pre:function(e,n,i,a){var s=a[0];if(!("action"in i)){var u=function(t){e.$apply(function(){s.$commitViewValue(),s.$setSubmitted()}),t.preventDefault()};n[0].addEventListener("submit",u),n.on("$destroy",function(){t(function(){n[0].removeEventListener("submit",u)},0,!1)})}(a[1]||s.$$parentForm).$addControl(s);var c=o?r(s.$name):$;o&&(c(e,s),i.$observe(o,function(t){s.$name!==t&&(c(e,void 0),s.$$parentForm.$$renameControl(s,t),(c=r(s.$name))(e,s))})),n.on("$destroy",function(){s.$$parentForm.$removeControl(s),c(e,void 0),f(s,Jo)})}}}}}]},Xo=Yo(),Qo=Yo(!0),ea=/^\d{4,}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+(?:[+-][0-2]\d:[0-5]\d|Z)$/,ta=/^[a-z][a-z\d.+-]*:\/*(?:[^:@]+(?::[^@]+)?@)?(?:[^\s:\/?#]+|\[[a-f\d:]+])(?::\d+)?(?:\/[^?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,na=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,ra=/^\s*(-|\+)?(\d+|(\d*(\.\d*)))([eE][+-]?\d+)?\s*$/,ia=/^(\d{4,})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,oa=/^(\d{4,})-W(\d\d)$/,aa=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,sa="keydown wheel mousedown",ua=me();o("date,datetime-local,month,time,week".split(","),function(e){ua[e]=!0});var ca={text:yr,date:Cr("date",/^(\d{4,})-(\d{2})-(\d{2})$/,xr(/^(\d{4,})-(\d{2})-(\d{2})$/,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":Cr("datetimelocal",ia,xr(ia,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),time:Cr("time",aa,xr(aa,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),week:Cr("week",oa,wr,"yyyy-Www"),month:Cr("month",/^(\d{4,})-(\d\d)$/,xr(/^(\d{4,})-(\d\d)$/,["yyyy","MM"]),"yyyy-MM"),number:Mr,url:Vr,email:Ir,radio:Nr,range:_r,checkbox:jr,hidden:$,button:$,submit:$,reset:$,file:$},la=["$browser","$sniffer","$filter","$parse",function(e,t,n,r){return{restrict:"E",require:["?ngModel"],link:{pre:function(i,o,a,s){s[0]&&(ca[Wr(a.type)]||ca.text)(i,o,a,s[0],t,e,n,r)}}}}],fa=/^(true|false|\d+)$/,ha=function(){function e(e,t,n){var r=b(n)?n:9===Kr?"":null;e.prop("value",r),t.$set("value",n)}return{restrict:"A",priority:100,compile:function(t,n){return fa.test(n.ngValue)?function(t,n,r){e(n,r,t.$eval(r.ngValue))}:function(t,n,r){t.$watch(r.ngValue,function(t){e(n,r,t)})}}}},da=["$compile",function(e){return{restrict:"AC",compile:function(t){return e.$$addBindingClass(t),function(t,n,r){e.$$addBindingInfo(n,r.ngBind),n=n[0],t.$watch(r.ngBind,function(e){n.textContent=ve(e)})}}}}],pa=["$interpolate","$compile",function(e,t){return{compile:function(n){return t.$$addBindingClass(n),function(n,r,i){var o=e(r.attr(i.$attr.ngBindTemplate));t.$$addBindingInfo(r,o.expressions),r=r[0],i.$observe("ngBindTemplate",function(e){r.textContent=y(e)?"":e})}}}}],$a=["$sce","$parse","$compile",function(e,t,n){return{restrict:"A",compile:function(r,i){var o=t(i.ngBindHtml),a=t(i.ngBindHtml,function(t){return e.valueOf(t)});return n.$$addBindingClass(r),function(t,r,i){n.$$addBindingInfo(r,i.ngBindHtml),t.$watch(a,function(){var n=o(t);r.html(e.getTrustedHtml(n)||"")})}}}}],ma=v({restrict:"A",require:"ngModel",link:function(e,t,n,r){r.$viewChangeListeners.push(function(){e.$eval(n.ngChange)})}}),va=Pr("",!0),ga=Pr("Odd",0),ya=Pr("Even",1),ba=hr({compile:function(e,t){t.$set("ngCloak",void 0),e.removeClass("ng-cloak")}}),wa=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],xa={},Ca={blur:!0,focus:!0};o("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(e){var t=wt("ng-"+e);xa[t]=["$parse","$rootScope",function(n,r){return{restrict:"A",compile:function(i,o){var a=n(o[t]);return function(t,n){n.on(e,function(n){var i=function(){a(t,{$event:n})};Ca[e]&&r.$$phase?t.$evalAsync(i):t.$apply(i)})}}}}]});var ka=["$animate","$compile",function(e,t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,r,i,o,a){var s,u,c;n.$watch(i.ngIf,function(n){n?u||a(function(n,o){u=o,n[n.length++]=t.$$createComment("end ngIf",i.ngIf),s={clone:n},e.enter(n,r.parent(),r)}):(c&&(c.remove(),c=null),u&&(u.$destroy(),u=null),s&&(c=$e(s.clone),e.leave(c).done(function(e){e!==!1&&(c=null)}),s=null))})}}}],Sa=["$templateRequest","$anchorScroll","$animate",function(e,t,n){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:ai.noop,compile:function(r,i){var o=i.ngInclude||i.src,a=i.onload||"",s=i.autoscroll;return function(r,i,u,c,l){var f,h,d,p=0,$=function(){h&&(h.remove(),h=null),f&&(f.$destroy(),f=null),d&&(n.leave(d).done(function(e){e!==!1&&(h=null)}),h=d,d=null)};r.$watch(o,function(o){var u=function(e){e===!1||!b(s)||s&&!r.$eval(s)||t()},h=++p;o?(e(o,!0).then(function(e){if(!r.$$destroyed&&h===p){var t=r.$new();c.template=e;var s=l(t,function(e){$(),n.enter(e,null,i).done(u)});f=t,d=s,f.$emit("$includeContentLoaded",o),r.$eval(a)}},function(){r.$$destroyed||h===p&&($(),r.$emit("$includeContentError",o))}),r.$emit("$includeContentRequested",o)):($(),c.template=null)})}}}}],Ea=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,r,i,o){if(ri.call(r[0]).match(/SVG/))return r.empty(),void t(Me(o.template,e.document).childNodes)(n,function(e){r.append(e)},{futureParentElement:r});r.html(o.template),t(r.contents())(n)}}}],Aa=hr({priority:450,compile:function(){return{pre:function(e,t,n){e.$eval(n.ngInit)}}}}),Ta=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(e,t,n,r){var i=n.ngList||", ",a="false"!==n.ngTrim,s=a?fi(i):i,u=function(e){if(!y(e)){var t=[];return e&&o(e.split(s),function(e){e&&t.push(a?fi(e):e)}),t}};r.$parsers.push(u),r.$formatters.push(function(e){if(ci(e))return e.join(i)}),r.$isEmpty=function(e){return!e||!e.length}}}},Oa="ng-valid",Ma="ng-invalid",_a="ng-pristine",Va="ng-dirty",Ia=t("ngModel");Rr.$inject=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$q","$interpolate"],Rr.prototype={$$initGetterSetters:function(){if(this.$options.getOption("getterSetter")){var e=this.$$parse(this.$$attr.ngModel+"()"),t=this.$$parse(this.$$attr.ngModel+"($$$p)");this.$$ngModelGet=function(t){var n=this.$$parsedNgModel(t);return E(n)&&(n=e(t)),n},this.$$ngModelSet=function(e,n){E(this.$$parsedNgModel(e))?t(e,{$$$p:n}):this.$$parsedNgModelAssign(e,n)}}else if(!this.$$parsedNgModel.assign)throw Ia("nonassign","Expression '{0}' is non-assignable. Element: {1}",this.$$attr.ngModel,Q(this.$$element))},$render:$,$isEmpty:function(e){return y(e)||""===e||null===e||e!==e},$$updateEmptyClasses:function(e){this.$isEmpty(e)?(this.$$animate.removeClass(this.$$element,"ng-not-empty"),this.$$animate.addClass(this.$$element,"ng-empty")):(this.$$animate.removeClass(this.$$element,"ng-empty"),this.$$animate.addClass(this.$$element,"ng-not-empty"))},$setPristine:function(){this.$dirty=!1,this.$pristine=!0,this.$$animate.removeClass(this.$$element,Va),this.$$animate.addClass(this.$$element,_a)},$setDirty:function(){this.$dirty=!0,this.$pristine=!1,this.$$animate.removeClass(this.$$element,_a),this.$$animate.addClass(this.$$element,Va),this.$$parentForm.$setDirty()},$setUntouched:function(){this.$touched=!1,this.$untouched=!0,this.$$animate.setClass(this.$$element,"ng-untouched","ng-touched")},$setTouched:function(){this.$touched=!0,this.$untouched=!1,this.$$animate.setClass(this.$$element,"ng-touched","ng-untouched")},$rollbackViewValue:function(){this.$$timeout.cancel(this.$$pendingDebounce),this.$viewValue=this.$$lastCommittedViewValue,this.$render()},$validate:function(){if(!ui(this.$modelValue)){var e=this.$$lastCommittedViewValue,t=this.$$rawModelValue,n=this.$valid,r=this.$modelValue,i=this.$options.getOption("allowInvalid"),o=this;this.$$runValidators(t,e,function(e){i||n===e||(o.$modelValue=e?t:void 0,o.$modelValue!==r&&o.$$writeModelToScope())})}},$$runValidators:function(e,t,n){function r(e,t){a===s.$$currentValidationRunId&&s.$setValidity(e,t)}function i(e){a===s.$$currentValidationRunId&&n(e)}this.$$currentValidationRunId++;var a=this.$$currentValidationRunId,s=this;return function(){var e=s.$$parserName||"parse";return y(s.$$parserValid)?(r(e,null),!0):(s.$$parserValid||(o(s.$validators,function(e,t){r(t,null)}),o(s.$asyncValidators,function(e,t){r(t,null)})),r(e,s.$$parserValid),s.$$parserValid)}()&&function(){var n=!0;return o(s.$validators,function(i,o){var a=Boolean(i(e,t));n=n&&a,r(o,a)}),!!n||(o(s.$asyncValidators,function(e,t){r(t,null)}),!1)}()?void function(){var n=[],a=!0;o(s.$asyncValidators,function(i,o){var s=i(e,t);if(!N(s))throw Ia("nopromise","Expected asynchronous validator to return a promise but got '{0}' instead.",s);r(o,void 0),n.push(s.then(function(){r(o,!0)},function(){a=!1,r(o,!1)}))}),n.length?s.$$q.all(n).then(function(){i(a)},$):i(!0)}():void i(!1)},$commitViewValue:function(){var e=this.$viewValue;this.$$timeout.cancel(this.$$pendingDebounce),(this.$$lastCommittedViewValue!==e||""===e&&this.$$hasNativeValidators)&&(this.$$updateEmptyClasses(e),this.$$lastCommittedViewValue=e,this.$pristine&&this.$setDirty(),this.$$parseAndValidate())},$$parseAndValidate:function(){function e(){r.$modelValue!==o&&r.$$writeModelToScope()}var t=this.$$lastCommittedViewValue,n=t,r=this;if(this.$$parserValid=!y(n)||void 0,this.$$parserValid)for(var i=0;i<this.$parsers.length;i++)if(n=this.$parsers[i](n),y(n)){this.$$parserValid=!1;break}ui(this.$modelValue)&&(this.$modelValue=this.$$ngModelGet(this.$$scope));var o=this.$modelValue,a=this.$options.getOption("allowInvalid");this.$$rawModelValue=n,a&&(this.$modelValue=n,e()),this.$$runValidators(n,this.$$lastCommittedViewValue,function(t){a||(r.$modelValue=t?n:void 0,e())})},$$writeModelToScope:function(){this.$$ngModelSet(this.$$scope,this.$modelValue),o(this.$viewChangeListeners,function(e){try{e()}catch(e){this.$$exceptionHandler(e)}},this)},$setViewValue:function(e,t){this.$viewValue=e,this.$options.getOption("updateOnDefault")&&this.$$debounceViewValueCommit(t)},$$debounceViewValueCommit:function(e){var t=this.$options.getOption("debounce");k(t[e])?t=t[e]:k(t.default)&&(t=t.default),this.$$timeout.cancel(this.$$pendingDebounce);var n=this;t>0?this.$$pendingDebounce=this.$$timeout(function(){n.$commitViewValue()},t):this.$$scope.$root.$$phase?this.$commitViewValue():this.$$scope.$apply(function(){n.$commitViewValue()})},$overrideModelOptions:function(e){this.$options=this.$options.createChild(e)}},mr({clazz:Rr,set:function(e,t){e[t]=!0},unset:function(e,t){delete e[t]}});var Na,Da=["$rootScope",function(e){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:Rr,priority:1,compile:function(t){return t.addClass(_a).addClass("ng-untouched").addClass(Oa),{pre:function(e,t,n,r){var i=r[0],o=r[1]||i.$$parentForm,a=r[2];a&&(i.$options=a.$options),i.$$initGetterSetters(),o.$addControl(i),n.$observe("name",function(e){i.$name!==e&&i.$$parentForm.$$renameControl(i,e)}),e.$on("$destroy",function(){i.$$parentForm.$removeControl(i)})},post:function(t,n,r,i){function o(){a.$setTouched()}var a=i[0];a.$options.getOption("updateOn")&&n.on(a.$options.getOption("updateOn"),function(e){a.$$debounceViewValueCommit(e&&e.type)}),n.on("blur",function(){a.$touched||(e.$$phase?t.$evalAsync(o):t.$apply(o))})}}}}}];qr.prototype={getOption:function(e){return this.$$options[e]},createChild:function(e){var t=!1;return e=f({},e),o(e,function(n,r){"$inherit"===n?"*"===r?t=!0:(e[r]=this.$$options[r],"updateOn"===r&&(e.updateOnDefault=this.$$options.updateOnDefault)):"updateOn"===r&&(e.updateOnDefault=!1,e[r]=fi(n.replace(/(\s+|^)default(\s+|$)/,function(){return e.updateOnDefault=!0," "})))},this),t&&(delete e["*"],Ur(e,this.$$options)),Ur(e,Na.$$options),new qr(e)}},Na=new qr({updateOn:"",updateOnDefault:!0,debounce:0,getterSetter:!1,allowInvalid:!1,timezone:null});var ja=function(){function e(e,t){this.$$attrs=e,this.$$scope=t}return e.$inject=["$attrs","$scope"],e.prototype={$onInit:function(){var e=this.parentCtrl?this.parentCtrl.$options:Na,t=this.$$scope.$eval(this.$$attrs.ngModelOptions);this.$options=e.createChild(t)}},{restrict:"A",priority:10,require:{parentCtrl:"?^^ngModelOptions"},bindToController:!0,controller:e}},Pa=hr({terminal:!0,priority:1e3}),Ra=t("ngOptions"),La=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?(?:\s+disable\s+when\s+([\s\S]+?))?\s+for\s+(?:([$\w][$\w]*)|(?:\(\s*([$\w][$\w]*)\s*,\s*([$\w][$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,qa=["$compile","$document","$parse",function(t,n,r){function a(e,t,n){function o(e,t,n,r,i){this.selectValue=e,this.viewValue=t,this.label=n,this.group=r,this.disabled=i}function a(e){var t;if(!c&&i(e))t=e;else{t=[];for(var n in e)e.hasOwnProperty(n)&&"$"!==n.charAt(0)&&t.push(n)}return t}var s=e.match(La);if(!s)throw Ra("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",e,Q(t));var u=s[5]||s[7],c=s[6],l=/ as /.test(s[0])&&s[1],f=s[9],h=r(s[2]?s[1]:u),d=l&&r(l),p=d||h,$=f&&r(f),m=f?function(e,t){return $(n,t)}:function(e){return nt(e)},v=function(e,t){return m(e,C(e,t))},g=r(s[2]||s[1]),y=r(s[3]||""),b=r(s[4]||""),w=r(s[8]),x={},C=c?function(e,t){return x[c]=t,x[u]=e,x}:function(e){return x[u]=e,x};return{trackBy:f,getTrackByValue:v,getWatchables:r(w,function(e){var t=[];e=e||[];for(var r=a(e),i=r.length,o=0;o<i;o++){var u=e===r?o:r[o],c=e[u],l=C(c,u),f=m(c,l);if(t.push(f),s[2]||s[1]){var h=g(n,l);t.push(h)}if(s[4]){var d=b(n,l);t.push(d)}}return t}),getOptions:function(){for(var e=[],t={},r=w(n)||[],i=a(r),s=i.length,u=0;u<s;u++){var c=r===i?u:i[u],l=r[c],h=C(l,c),d=p(n,h),$=m(d,h),x=g(n,h),k=y(n,h),S=b(n,h),E=new o($,d,x,k,S);e.push(E),t[$]=E}return{items:e,selectValueMap:t,getOptionFromViewValue:function(e){return t[v(e)]},getViewValueFromOption:function(e){return f?z(e.viewValue):e.viewValue}}}}}function s(e,r,i,s){function l(e,t){var n=u.cloneNode(!1);t.appendChild(n),h(e,n)}function f(e){var t=x.getOptionFromViewValue(e),n=t&&t.element;return n&&!n.selected&&(n.selected=!0),t}function h(e,t){e.element=t,t.disabled=e.disabled,e.label!==t.label&&(t.label=e.label,t.textContent=e.label),t.value=e.selectValue}function d(){var e=x&&p.readValue();if(x)for(var t=x.items.length-1;t>=0;t--){var n=x.items[t];Ge(b(n.group)?n.element.parentNode:n.element)}x=C.getOptions();var i={};if(w&&r.prepend(p.emptyOption),x.items.forEach(function(e){var t;b(e.group)?(t=i[e.group],t||(t=c.cloneNode(!1),k.appendChild(t),t.label=null===e.group?"null":e.group,i[e.group]=t),l(e,t)):l(e,k)}),r[0].appendChild(k),$.$render(),!$.$isEmpty(e)){var o=p.readValue();(C.trackBy||m?F(e,o):e===o)||($.$setViewValue(o),$.$render())}}for(var p=s[0],$=s[1],m=i.multiple,v=0,g=r.children(),y=g.length;v<y;v++)if(""===g[v].value){p.hasEmptyOption=!0,p.emptyOption=g.eq(v);break}var w=!!p.emptyOption;Yr(u.cloneNode(!1)).val("?");var x,C=a(i.ngOptions,r,e),k=n[0].createDocumentFragment();p.generateUnknownOptionValue=function(e){return"?"},m?(p.writeValue=function(e){var t=e&&e.map(f)||[];x.items.forEach(function(e){e.element.selected&&!q(t,e)&&(e.element.selected=!1)})},p.readValue=function(){var e=r.val()||[],t=[];return o(e,function(e){var n=x.selectValueMap[e];n&&!n.disabled&&t.push(x.getViewValueFromOption(n))}),t},C.trackBy&&e.$watchCollection(function(){if(ci($.$viewValue))return $.$viewValue.map(function(e){return C.getTrackByValue(e)})},function(){$.$render()})):(p.writeValue=function(e){var t=x.selectValueMap[r.val()],n=x.getOptionFromViewValue(e);t&&t.element.removeAttribute("selected"),n?(r[0].value!==n.selectValue&&(p.removeUnknownOption(),p.unselectEmptyOption(),r[0].value=n.selectValue,n.element.selected=!0),n.element.setAttribute("selected","selected")):w?p.selectEmptyOption():p.unknownOption.parent().length?p.updateUnknownOption(e):p.renderUnknownOption(e)},p.readValue=function(){var e=x.selectValueMap[r.val()];return e&&!e.disabled?(p.unselectEmptyOption(),p.removeUnknownOption(),x.getViewValueFromOption(e)):null},C.trackBy&&e.$watch(function(){return C.getTrackByValue($.$viewValue)},function(){$.$render()})),w&&(p.emptyOption.remove(),t(p.emptyOption)(e),p.emptyOption[0].nodeType===xi?(p.hasEmptyOption=!1,p.registerOption=function(e,t){""===t.val()&&(p.hasEmptyOption=!0,p.emptyOption=t,p.emptyOption.removeClass("ng-scope"),$.$render(),t.on("$destroy",function(){p.hasEmptyOption=!1,p.emptyOption=void 0}))}):p.emptyOption.removeClass("ng-scope")),r.empty(),d(),e.$watchCollection(C.getWatchables,d)}var u=e.document.createElement("option"),c=e.document.createElement("optgroup");return{restrict:"A",terminal:!0,require:["select","ngModel"],link:{pre:function(e,t,n,r){r[0].registerOption=$},post:s}}}],Ua=["$locale","$interpolate","$log",function(e,t,n){var r=/^when(Minus)?(.+)$/;return{link:function(i,a,s){function u(e){a.text(e||"")}var c,l=s.count,f=s.$attr.when&&a.attr(s.$attr.when),h=s.offset||0,d=i.$eval(f)||{},p={},m=t.startSymbol(),v=t.endSymbol(),g=m+l+"-"+h+v,b=ai.noop;o(s,function(e,t){var n=r.exec(t);if(n){d[(n[1]?"-":"")+Wr(n[2])]=a.attr(s.$attr[t])}}),o(d,function(e,n){p[n]=t(e.replace(/{}/g,g))}),i.$watch(l,function(t){var r=parseFloat(t),o=ui(r);if(o||r in d||(r=e.pluralCat(r-h)),!(r===c||o&&ui(c))){b();var a=p[r];y(a)?(null!=t&&n.debug("ngPluralize: no rule defined for '"+r+"' in "+f),b=$,u()):b=i.$watch(a,u),c=r}})}}}],za=["$parse","$animate","$compile",function(e,n,r){var a=t("ngRepeat"),s=function(e,t,n,r,i,o,a){e[n]=r,i&&(e[i]=o),e.$index=t,e.$first=0===t,e.$last=t===a-1,e.$middle=!(e.$first||e.$last),e.$odd=!(e.$even=0==(1&t))},u=function(e){return e.clone[0]},c=function(e){return e.clone[e.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1e3,terminal:!0,$$tlb:!0,compile:function(t,l){var f=l.ngRepeat,h=r.$$createComment("end ngRepeat",f),d=f.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!d)throw a("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",f);var p=d[1],$=d[2],m=d[3],v=d[4];if(!(d=p.match(/^(?:(\s*[$\w]+)|\(\s*([$\w]+)\s*,\s*([$\w]+)\s*\))$/)))throw a("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",p);var g=d[3]||d[1],y=d[2];if(m&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(m)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(m)))throw a("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",m);var b,w,x,C,k={$id:nt};return v?b=e(v):(x=function(e,t){return nt(t)},C=function(e){return e}),function(e,t,r,l,d){b&&(w=function(t,n,r){return y&&(k[y]=t),k[g]=n,k.$index=r,b(e,k)});var p=me();e.$watchCollection($,function(r){var l,$,v,b,k,S,E,A,T,O,M,_,V=t[0],I=me();if(m&&(e[m]=r),i(r))T=r,A=w||x;else{A=w||C,T=[];for(var N in r)Hr.call(r,N)&&"$"!==N.charAt(0)&&T.push(N)}for(b=T.length,M=new Array(b),l=0;l<b;l++)if(k=r===T?l:T[l],S=r[k],E=A(k,S,l),p[E])O=p[E],delete p[E],I[E]=O,M[l]=O;else{if(I[E])throw o(M,function(e){e&&e.scope&&(p[e.id]=e)}),a("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",f,E,S);M[l]={id:E,scope:void 0,clone:void 0},I[E]=!0}for(var D in p){if(O=p[D],_=$e(O.clone),n.leave(_),_[0].parentNode)for(l=0,$=_.length;l<$;l++)_[l].$$NG_REMOVED=!0;O.scope.$destroy()}for(l=0;l<b;l++)if(k=r===T?l:T[l],S=r[k],O=M[l],O.scope){v=V;do{v=v.nextSibling}while(v&&v.$$NG_REMOVED);u(O)!==v&&n.move($e(O.clone),null,V),V=c(O),s(O.scope,l,g,S,y,k,b)}else d(function(e,t){O.scope=t;var r=h.cloneNode(!1);e[e.length++]=r,n.enter(e,null,V),V=r,O.clone=e,I[O.id]=O,s(O.scope,l,g,S,y,k,b)});p=I})}}}}],Fa=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngShow,function(t){e[t?"removeClass":"addClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],Ha=["$animate",function(e){return{restrict:"A",multiElement:!0,link:function(t,n,r){t.$watch(r.ngHide,function(t){e[t?"addClass":"removeClass"](n,"ng-hide",{tempClasses:"ng-hide-animate"})})}}}],Ba=hr(function(e,t,n){e.$watch(n.ngStyle,function(e,n){n&&e!==n&&o(n,function(e,n){t.css(n,"")}),e&&t.css(e)},!0)}),Wa=["$animate","$compile",function(e,t){return{require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,r,i,a){var s=i.ngSwitch||i.on,u=[],c=[],l=[],f=[],h=function(e,t){return function(n){n!==!1&&e.splice(t,1)}};n.$watch(s,function(n){for(var r,i;l.length;)e.cancel(l.pop());for(r=0,i=f.length;r<i;++r){var s=$e(c[r].clone);f[r].$destroy();(l[r]=e.leave(s)).done(h(l,r))}c.length=0,f.length=0,(u=a.cases["!"+n]||a.cases["?"])&&o(u,function(n){n.transclude(function(r,i){f.push(i);var o=n.element;r[r.length++]=t.$$createComment("end ngSwitchWhen");var a={clone:r};c.push(a),e.enter(r,o.parent(),o)})})})}}}],Ga=hr({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){o(n.ngSwitchWhen.split(n.ngSwitchWhenSeparator).sort().filter(function(e,t,n){return n[t-1]!==e}),function(e){r.cases["!"+e]=r.cases["!"+e]||[],r.cases["!"+e].push({transclude:i,element:t})})}}),Za=hr({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(e,t,n,r,i){r.cases["?"]=r.cases["?"]||[],r.cases["?"].push({transclude:i,element:t})}}),Ja=t("ngTransclude"),Ka=["$compile",function(e){return{restrict:"EAC",terminal:!0,compile:function(t){var n=e(t.contents());return t.empty(),function(e,t,r,i,o){function a(e,n){e.length&&u(e)?t.append(e):(s(),n.$destroy())}function s(){n(e,function(e){t.append(e)})}function u(e){for(var t=0,n=e.length;t<n;t++){var r=e[t];if(r.nodeType!==wi||r.nodeValue.trim())return!0}}if(!o)throw Ja("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",Q(t));r.ngTransclude===r.$attr.ngTransclude&&(r.ngTransclude="");var c=r.ngTransclude||r.ngTranscludeSlot;o(a,null,c),c&&!o.isSlotFilled(c)&&s()}}}}],Ya=["$templateCache",function(e){return{restrict:"E",terminal:!0,compile:function(t,n){if("text/ng-template"===n.type){var r=n.id,i=t[0].text;e.put(r,i)}}}}],Xa={$setViewValue:$,$render:$},Qa=["$element","$scope",function(t,n){function r(){s||(s=!0,n.$$postDigest(function(){s=!1,o.ngModelCtrl.$render()}))}function i(e){u||(u=!0,n.$$postDigest(function(){n.$$destroyed||(u=!1,o.ngModelCtrl.$setViewValue(o.readValue()),e&&o.ngModelCtrl.$render())}))}var o=this,a=new Fi;o.selectValueMap={},o.ngModelCtrl=Xa,o.multiple=!1,o.unknownOption=Yr(e.document.createElement("option")),o.hasEmptyOption=!1,o.emptyOption=void 0,o.renderUnknownOption=function(e){var n=o.generateUnknownOptionValue(e);o.unknownOption.val(n),t.prepend(o.unknownOption),zr(o.unknownOption,!0),t.val(n)},o.updateUnknownOption=function(e){var n=o.generateUnknownOptionValue(e);o.unknownOption.val(n),zr(o.unknownOption,!0),t.val(n)},o.generateUnknownOptionValue=function(e){return"? "+nt(e)+" ?"},o.removeUnknownOption=function(){o.unknownOption.parent()&&o.unknownOption.remove()},o.selectEmptyOption=function(){o.emptyOption&&(t.val(""),zr(o.emptyOption,!0))},o.unselectEmptyOption=function(){o.hasEmptyOption&&o.emptyOption.removeAttr("selected")},n.$on("$destroy",function(){o.renderUnknownOption=$}),o.readValue=function(){var e=t.val(),n=e in o.selectValueMap?o.selectValueMap[e]:e;return o.hasOption(n)?n:null},o.writeValue=function(e){var n=t[0].options[t[0].selectedIndex];if(n&&zr(Yr(n),!1),o.hasOption(e)){o.removeUnknownOption();var r=nt(e);t.val(r in o.selectValueMap?r:e);zr(Yr(t[0].options[t[0].selectedIndex]),!0)}else null==e&&o.emptyOption?(o.removeUnknownOption(),o.selectEmptyOption()):o.unknownOption.parent().length?o.updateUnknownOption(e):o.renderUnknownOption(e)},o.addOption=function(e,t){if(t[0].nodeType!==xi){de(e,'"option value"'),""===e&&(o.hasEmptyOption=!0,o.emptyOption=t);var n=a.get(e)||0;a.set(e,n+1),r()}},o.removeOption=function(e){var t=a.get(e);t&&(1===t?(a.delete(e),""===e&&(o.hasEmptyOption=!1,o.emptyOption=void 0)):a.set(e,t-1))},o.hasOption=function(e){return!!a.get(e)};var s=!1,u=!1;o.registerOption=function(e,t,n,a,s){if(n.$attr.ngValue){var u,c=NaN;n.$observe("value",function(e){var n,r=t.prop("selected");b(c)&&(o.removeOption(u),delete o.selectValueMap[c],n=!0),c=nt(e),u=e,o.selectValueMap[c]=e,o.addOption(e,t),t.attr("value",c),n&&r&&i()})}else a?n.$observe("value",function(e){o.readValue();var n,r=t.prop("selected");b(u)&&(o.removeOption(u),n=!0),u=e,o.addOption(e,t),n&&r&&i()}):s?e.$watch(s,function(e,r){n.$set("value",e);var a=t.prop("selected");r!==e&&o.removeOption(r),o.addOption(e,t),r&&a&&i()}):o.addOption(n.value,t);n.$observe("disabled",function(e){("true"===e||e&&t.prop("selected"))&&(o.multiple?i(!0):(o.ngModelCtrl.$setViewValue(null),o.ngModelCtrl.$render()))}),t.on("$destroy",function(){var e=o.readValue(),t=n.value;o.removeOption(t),r(),(o.multiple&&e&&e.indexOf(t)!==-1||e===t)&&i(!0)})}}],es=function(){function e(e,t,n,r){var i=r[0],a=r[1];if(!a)return void(i.registerOption=$);if(i.ngModelCtrl=a,t.on("change",function(){i.removeUnknownOption(),e.$apply(function(){a.$setViewValue(i.readValue())})}),n.multiple){i.multiple=!0,i.readValue=function(){var e=[];return o(t.find("option"),function(t){if(t.selected&&!t.disabled){var n=t.value;e.push(n in i.selectValueMap?i.selectValueMap[n]:n)}}),e},i.writeValue=function(e){o(t.find("option"),function(t){var n=!!e&&(q(e,t.value)||q(e,i.selectValueMap[t.value]));n!==t.selected&&zr(Yr(t),n)})};var s,u=NaN;e.$watch(function(){u!==a.$viewValue||F(s,a.$viewValue)||(s=ye(a.$viewValue),a.$render()),u=a.$viewValue}),a.$isEmpty=function(e){return!e||0===e.length}}}function t(e,t,n,r){var i=r[1];if(i){var o=r[0];i.$render=function(){o.writeValue(i.$viewValue)}}}return{restrict:"E",require:["select","?ngModel"],controller:Qa,priority:1,link:{pre:e,post:t}}},ts=["$interpolate",function(e){return{restrict:"E",priority:100,compile:function(t,n){var r,i;return b(n.ngValue)||(b(n.value)?r=e(n.value,!0):(i=e(t.text(),!0))||n.$set("value",t.text())),function(e,t,n){var o=t.parent(),a=o.data("$selectController")||o.parent().data("$selectController");a&&a.registerOption(e,t,n,r,i)}}}}],ns=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){r&&(n.required=!0,r.$validators.required=function(e,t){return!n.required||!r.$isEmpty(t)},n.$observe("required",function(){r.$validate()}))}}},rs=function(){return{restrict:"A",require:"?ngModel",link:function(e,n,r,i){if(i){var o,a=r.ngPattern||r.pattern;r.$observe("pattern",function(e){if(C(e)&&e.length>0&&(e=new RegExp("^"+e+"$")),e&&!e.test)throw t("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",a,e,Q(n));o=e||void 0,i.$validate()}),i.$validators.pattern=function(e,t){return i.$isEmpty(t)||y(o)||o.test(t)}}}}},is=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=-1;n.$observe("maxlength",function(e){var t=d(e);i=ui(t)?-1:t,r.$validate()}),r.$validators.maxlength=function(e,t){return i<0||r.$isEmpty(t)||t.length<=i}}}}},os=function(){return{restrict:"A",require:"?ngModel",link:function(e,t,n,r){if(r){var i=0;n.$observe("minlength",function(e){i=d(e)||0,r.$validate()}),r.$validators.minlength=function(e,t){return r.$isEmpty(t)||t.length>=i}}}}};if(e.angular.bootstrap)return void(e.console&&console.log("WARNING: Tried to load angular more than once."));!function(){var t;if(!yi){var n=pi();Xr=y(n)?e.jQuery:n?e[n]:void 0,Xr&&Xr.fn.on?(Yr=Xr,f(Xr.fn,{scope:Ri.scope,isolateScope:Ri.isolateScope,controller:Ri.controller,injector:Ri.injector,inheritedData:Ri.inheritedData}),t=Xr.cleanData,Xr.cleanData=function(e){for(var n,r,i=0;null!=(r=e[i]);i++)(n=Xr._data(r,"events"))&&n.$destroy&&Xr(r).triggerHandler("$destroy");t(e)}):Yr=Ie,ai.element=Yr,yi=!0}}(),function(r){f(r,{errorHandlingConfig:n,bootstrap:se,copy:z,extend:f,merge:h,equals:F,element:Yr,forEach:o,injector:ut,noop:$,bind:W,toJson:Z,fromJson:J,identity:m,isUndefined:y,isDefined:b,isString:C,isFunction:E,isObject:w,isNumber:k,isElement:P,isArray:ci,version:Si,isDate:S,lowercase:Wr,uppercase:Gr,callbacks:{$$counter:0},getTestability:ce,reloadWithDebugInfo:ue,$$minErr:t,$$csp:di,$$encodeUriSegment:re,$$encodeUriQuery:ie,$$stringify:ve}),Qr=ge(e),Qr("ng",["ngLocale"],["$provide",function(e){e.provider({$$sanitizeUri:En}),e.provider("$compile",yt).directive({a:Go,input:la,textarea:la,form:Xo,script:Ya,select:es,option:ts,ngBind:da,ngBindHtml:$a,ngBindTemplate:pa,ngClass:va,ngClassEven:ya,ngClassOdd:ga,ngCloak:ba,ngController:wa,ngForm:Qo,ngHide:Ha,ngIf:ka,ngInclude:Sa,ngInit:Aa,ngNonBindable:Pa,ngPluralize:Ua,ngRepeat:za,ngShow:Fa,ngStyle:Ba,ngSwitch:Wa,ngSwitchWhen:Ga,ngSwitchDefault:Za,ngOptions:qa,ngTransclude:Ka,ngModel:Da,ngList:Ta,ngChange:ma,pattern:rs,ngPattern:rs,required:ns,ngRequired:ns,minlength:os,ngMinlength:os,maxlength:is,ngMaxlength:is,ngValue:ha,ngModelOptions:ja}).directive({ngInclude:Ea}).directive(Zo).directive(xa),e.provider({$anchorScroll:ct,$animate:to,$animateCss:io,$$animateJs:Qi,$$animateQueue:eo,$$AnimateRunner:ro,$$animateAsyncRun:no,$browser:$t,$cacheFactory:mt,$controller:St,$document:Et,$$isDocumentHidden:At,$exceptionHandler:Tt,$filter:Un,$$forceReflow:fo,$interpolate:zt,$interval:Ft,$http:Rt,$httpParamSerializer:Mt,$httpParamSerializerJQLike:_t,$httpBackend:qt,$xhrFactory:Lt,$jsonpCallbacks:bo,$location:on,$log:an,$parse:bn,$rootScope:Sn,$q:wn,$$q:xn,$sce:_n,$sceDelegate:Mn,$sniffer:Vn,$templateCache:vt,$templateRequest:In, $$testability:Nn,$timeout:Dn,$window:Rn,$$rAF:kn,$$jqLite:tt,$$Map:Hi,$$cookieReader:qn})}]).info({angularVersion:"1.6.3"})}(ai),ai.module("ngLocale",[],["$provide",function(e){function t(e){e+="";var t=e.indexOf(".");return t==-1?0:e.length-t-1}function n(e,n){var r=n;void 0===r&&(r=Math.min(t(e),3));var i=Math.pow(10,r);return{v:r,f:(e*i|0)%i}}var r={ZERO:"zero",ONE:"one",TWO:"two",FEW:"few",MANY:"many",OTHER:"other"};e.value("$locale",{DATETIME_FORMATS:{AMPMS:["AM","PM"],DAY:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"],FIRSTDAYOFWEEK:6,MONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],SHORTDAY:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],SHORTMONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],STANDALONEMONTH:["January","February","March","April","May","June","July","August","September","October","November","December"],WEEKENDRANGE:[5,6],fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"},NUMBER_FORMATS:{CURRENCY_SYM:"$",DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{gSize:3,lgSize:3,maxFrac:3,minFrac:0,minInt:1,negPre:"-",negSuf:"",posPre:"",posSuf:""},{gSize:3,lgSize:3,maxFrac:2,minFrac:2,minInt:1,negPre:"-¤",negSuf:"",posPre:"¤",posSuf:""}]},id:"en-us",localeID:"en_US",pluralCat:function(e,t){var i=0|e,o=n(e,t);return 1==i&&0==o.v?r.ONE:r.OTHER}})}]),Yr(function(){ae(e.document,se)})}(window),!window.angular.$$csp().noInlineStyle&&window.angular.element(document.head).prepend('<style type="text/css">@charset "UTF-8";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}.ng-animate-shim{visibility:hidden;}.ng-anchor{position:absolute;}</style>')},{}],9:[function(e,t,n){e("./angular"),t.exports=angular},{"./angular":8}],10:[function(e,t,n){var r;r=function(t,n,r,i){var o,a,s,u,c,l,f,h,d,p,$,m,v;for(m=[{featureType:"administrative",elementType:"labels.text.fill",stylers:[{color:"#444444"}]},{featureType:"landscape",elementType:"all",stylers:[{color:"#f2f2f2"}]},{featureType:"poi",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"all",stylers:[{saturation:-100},{lightness:45}]},{featureType:"road",elementType:"geometry.stroke",stylers:[{color:"#c2b59b"}]},{featureType:"road.highway",elementType:"all",stylers:[{visibility:"simplified"}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{color:"#c2b59b"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#c2b59b"}]},{featureType:"road.arterial",elementType:"geometry.fill",stylers:[{color:"#c2b59b"}]},{featureType:"road.arterial",elementType:"geometry.stroke",stylers:[{color:"#c2b59b"}]},{featureType:"road.arterial",elementType:"labels.text.fill",stylers:[{color:"#7b7b7b"}]},{featureType:"road.arterial",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"road.local",elementType:"geometry.fill",stylers:[{color:"#beb8ac"}]},{featureType:"road.local",elementType:"geometry.stroke",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"geometry.stroke",stylers:[{color:"#c2b59b"}]},{featureType:"water",elementType:"all",stylers:[{color:"#46bcec"},{visibility:"on"}]},{featureType:"water",elementType:"geometry.fill",stylers:[{color:"#070722"}]}],l=e("./marker.coffee"),o=new google.maps.LatLngBounds,a=s=0,p=n.length;0<=p?s<p:s>p;a=0<=p?++s:--s)d=new google.maps.LatLng(n[a][0],n[a][1]),o.extend(d);for(f={zoom:18,center:o.getCenter(),disableDefaultUI:!0,scrollwheel:!1,maxZoom:20,minZoom:3,mapTypeId:google.maps.MapTypeId.ROADMAP,backgroundColor:"#c4c4c4",noClear:!0,disableDoubleClickZoom:!0,draggable:!isMobile},r.map=new google.maps.Map(t,f),h=[],[],a=u=0,$=n.length;0<=$?u<$:u>$;a=0<=$?++u:--u)d=new google.maps.LatLng(n[a][0],n[a][1]),h[a]=new l(d,r.map);v={name:"Spreafico"},c=new google.maps.StyledMapType(m,v),r.map.mapTypes.set("Spreafico",c),r.map.setMapTypeId("Spreafico"),google.maps.event.addDomListener(window,"resize",function(){var e,t;for(r.map.setCenter(o.getCenter()),a=e=0,t=n.length;0<=t?e<t:e>t;a=0<=t?++e:--e)d=new google.maps.LatLng(n[a][0],n[a][1]),h[a].updateBounds(d)})},t.exports=function(e,t,n,i){return r(e,t,n,i)}},{"./marker.coffee":11}],11:[function(e,t,n){var r;r=function(){function e(e,t){var n,r,i;r=document.createElement("div"),r.className="marker",n='<i class="icon-marker"></i>',r.innerHTML=n,i=this,i._point=e,i._map=t,i._div=null,i._markerEl=r,i.setMap(t)}return e.prototype=new google.maps.OverlayView,e.prototype.draw=function(){var e,t,n;t=this.getProjection(),n=t.fromLatLngToDivPixel(this._point),e=this._div,e.style.left=~~n.x+"px",e.style.top=~~n.y+"px"},e.prototype.onAdd=function(){var e;this._div=this._markerEl,e=this.getPanes(),e.floatPane.appendChild(this._div)},e.prototype.onRemove=function(){this.div_.parentNode.removeChild(this._div),this.div_=null},e.prototype.updateBounds=function(e){this._point=e,this.draw()},e}(),t.exports=r},{}],12:[function(e,t,n){t.exports=function(e){return{scope:!0,link:function(t,n){var r;t.current=0,r=n[0].querySelectorAll(".blocks__row").length-1,t.slideTo=function(r){TweenMax.to(n[0].querySelectorAll(".blocks__row"),.5,{x:"-"+100*r+"%",ease:.75,onComplete:function(){e(function(){t.current=r},0)}})},t.move=function(e){var n;n=e?t.current+1<=r?t.current+1:0:t.current-1>=0?t.current-1:r,t.slideTo(n)}}}}},{}],13:[function(e,t,n){var r;r=function(e){return e/16},t.exports=function(){return{scope:!0,templateUrl:assets+"tpl/carousel.tpl.html",controller:["$scope","$window","$attrs","$element","$timeout",function(e,t,n,i,o){var a,s,u,c;s=angular.element(t),e.isCurrent=0,a=i[0].querySelector(".carousel__container"),c=a.querySelector(".carousel"),e.num=n.perPage?parseInt(n.perPage):3,e.mv=0,e.max=n.max,e.size=12/e.num,e.items=e.$eval(n.items),u=e.max>e.num?100/e.num*e.max:100,e.width=100/e.max,TweenMax.set(c,{width:u+"%"}),o(function(){var t;t={preventDefault:!1,scrollX:!0,scrollY:!1,snap:".carousel__item"},e.carousel=new IScroll(a,t),e.move=function(t){t?e.carousel.next():e.carousel.prev()},e.$on("ngRepeatFinished",function(){e.carousel.refresh()})},0),s.bind("resize",function(){var t;e.num=1,Modernizr.mq("screen and (min-width: "+r(480)+"em)")&&(e.num=2),Modernizr.mq("screen and (min-width: "+r(850)+"em)")&&(e.num=n.perPage?parseInt(n.perPage):3),u=e.max>e.num?100/e.num*e.max:100,t=100/e.max,TweenMax.set(c,{width:u+"%"}),TweenMax.set(c.querySelectorAll(".carousel__item"),{width:t+"%"}),e.carousel.refresh()})}]}}},{}],14:[function(e,t,n){t.exports=function(e){return{link:function(t,n){var r,i;i=angular.element(e),r=function(){TweenMax.set("body",{paddingBottom:n[0].offsetHeight/16+"em"})},r(),i.on("resize",r),new ScrollMagic.Scene({triggerElement:".main",triggerHook:0,offset:120}).setClassToggle(n[0],"cat--inview").addTo(controller)}}}},{}],15:[function(e,t,n){t.exports=function(){return{scope:!0,controller:["$scope","$rootScope","transformRequestAsFormPost","$http","$timeout",function(e,t,n,r,i){return e.formData={},e.onSubmit=function(o,a){var s;s=e.formData,t.isSubmitted=!0,e.formData={},e.any=!1,e.time=!1,t.isPrivacyChecked=!1,e.contactForm.$setUntouched(),e.contactForm.$setPristine(),o&&r({method:"POST",url:a,data:s,headers:{"Content-type":"application/x-www-form-urlencoded; charset=utf-8"},transformRequest:n}).then(function(e){window.ga&&window.ga("send","event",s.obj,"submit form"),window.fbq&&window.fbq("track","Lead"),t.isContactSent=!0,i(function(){return t.isSubmitted=!1,t.isContactSent=!1},5e3)})}}]}}},{}],16:[function(e,t,n){var r;r=angular.module("sprfc"),r.directive("ngSquare",[e("./square.coffee")]).directive("ngSlider",["$templateCache",e("./slider.coffee")]).directive("ngCarousel",["$templateCache",e("./carousel.coffee")]).directive("ngSm",["$rootScope","$timeout",e("./sm.coffee")]).directive("ngFooter",["$window",e("./footer.coffee")]).directive("ngForm",[e("./form.coffee")]).directive("ngInstagram",[e("./instagram.coffee")]).directive("ngScroll",[e("./scroll.coffee")]).directive("ngMap",["$timeout","loadGoogleMapAPI","$compile",e("./map.coffee")]).directive("ngBlocks",["$timeout",e("./blocks.coffee")]).directive("onFinishRender",["$timeout",function(e){return{restrict:"A",link:function(t,n,r){t.$last===!0&&e(function(){t.$emit(r.onFinishRender)})}}}]).directive("fastRefresh",["$timeout",function(e){return{link:function(t,n,r){n.on("click",function(){e(function(){var e,t,n,r;for(FastClick.attach(document.body),r=document.querySelectorAll("[ng-scroll]"),t=0,n=r.length;t<n;t++)e=r[t],Ps.update(e)},600)})}}}])},{"./blocks.coffee":12,"./carousel.coffee":13,"./footer.coffee":14,"./form.coffee":15,"./instagram.coffee":17,"./map.coffee":18,"./scroll.coffee":19,"./slider.coffee":20,"./sm.coffee":21,"./square.coffee":22}],17:[function(e,t,n){t.exports=function(){return{controller:["$scope","InstagramPosts","$attrs",function(e,t,n){e.follow=n.followText,e.resize=function(e){return e.replace("150x150/","640x640/")},t.get(function(t){t.data.length<1||(e.items=t.data,e.username=t.data[0].user.username)}),e.scrollmagic=function(e){var t;return t=e%2==0?40:-40,{tween:[{y:t},{y:+t*-1}],triggerElement:".instagram",duration:"150vh",triggerHook:1}}}],templateUrl:function(e,t){return assets+"/tpl/instagram.tpl.html"}}}},{}],18:[function(e,t,n){var r;r=e("../core/map.coffee"),t.exports=function(e,t,n){var i;return i={controller:["$scope","$rootScope","$attrs",function(e,o,a){e.zoom=function(t){t?e.map.setZoom(e.map.getZoom()+1):e.map.setZoom(e.map.getZoom()-1)},e.mapData=map_data,i=document.getElementById(a.mapId),t.then(function(){r(i,e.mapData,e,n)})}]}}},{"../core/map.coffee":10}],19:[function(e,t,n){t.exports=function(e){return{link:function(t,n,r){var i,o;isMobile||(i=angular.element(e),t.$evalAsync(function(){Ps.initialize(n[0],{wheelPropagation:!1,suppressScrollX:!0})}),o=function(){t.$evalAsync(function(){Ps.update(n[0])})},n.bind("mouseenter",o),r.refreshOnChange&&t.$watchCollection(r.refreshOnChange,function(){o()}),r.refreshOnResize&&i.bind("resize",o),n.bind("$destroy",function(){i.unbind("resize",o),Ps.destroy(n[0])}))}}}},{}],20:[function(e,t,n){t.exports=function(e){return{scope:!0,template:e.get(assets+"tpl/slider.tpl.html"),controller:["$scope","$attrs","$timeout","$element","$rootScope",function(e,t,n,r,i){var o,a,s,u,c;for(e.range=function(e,t,n){var r,i,o,a,s;for(n=n||1,i=[],r=o=e,a=t,s=n;s>0?o<=a:o>=a;r=o+=s)i.push(r);return i},e.title=t.sliderTitle,e.show=t.showLabel,e.kind=!!t.sliderKind&&t.sliderKind,a="#"+t.id,e.slider=new TimelineMax({repeat:-1}),e.current=0,e.isPrev=!1,e.isNext=!0,e.slides=sliders[t.id],e.loaded=[],o=u=0,c=e.slides.length-1;0<=c?u<=c:u>=c;o=0<=c?++u:--u)s=new Image,s.src=e.slides[o].url,s=angular.element(s),s.on("load",function(){n(function(){e.loaded[o]=!0},0)});e.$on("onSliderEnd",function(){i.$emit("lazyImg:refresh")}),e.isLoaded=function(t){return e.loaded[t]},e.slideTo=function(t){e.slider.pause(!0),e.current=t,e.isPrev=e.current>0,e.isNext=e.current<e.slides.length-1,e.slider.play(!0),TweenMax.to([a+" .linee__cell--slide",a+" .full-slider__cell"],1,{x:100*e.current*-1+"%",ease:.75})},e.move=function(t){var n;e.current+1>e.slides.length-1&&t||e.current-1<0&&!t||(n=t?e.current+1:e.current-1,e.slideTo(n))}}]}}},{}],21:[function(e,t,n){t.exports=function(e,t){var n;return n=function(e,t){var n,r;return"string"==typeof e.duration&&e.duration.match(/^(\.|\d)*\d+vh$/)?n=e.duration.replace("vh","%"):"string"==typeof e.duration&&e.duration.match(/^(\.|\d)*\d+%$/)?(r=parseFloat(e.duration)/100,n=t.offsetHeight*r):n=parseFloat(e.duration),n},{link:function(t,r,i){var o,a,s,u,c,l,f;a=t.$eval(i.ngSm),void 0!==a.duration?a.duration=n(a,r[0]):a.duration=0,s={triggerElement:a.triggerElement||r[0],triggerHook:a.triggerHook||.5,duration:a.duration,offset:a.offset||0},e.$on("sceneDestroy",function(){u&&u.destroy()}),u&&u.destroy(),u=new ScrollMagic.Scene(s),a.tween&&(Array.isArray(a.tween)?(f=a.tween[0].element||r[0],c=a.tween[0].speed||.5,l=TweenMax.fromTo(f,c,a.tween[0],a.tween[1]),u.setTween(l)):(f=a.tween.element||r[0],c=a.tween.speed||.5,l=TweenMax.to(f,c,a.tween),u.setTween(l))),a.class&&("object"!=typeof a.class&&(a.class={classes:a.class}),o=a.class.element||r[0],u.setClassToggle(o,a.class.classes)),u.addTo(controller)}}}},{}],22:[function(e,t,n){t.exports=function(){var e;return e={link:function(t,n,r){var i,o,a,s,u,c,l,f,h,d,p,$,m,v;for($=["top","right","bottom","left"],f=t.$eval(r.ngSquare),i=document.createElement("div"),i.className="square square--"+f.kind,a=0,u=$.length;a<u;a++)o=$[a],l=document.createElement("div"),l.className="square__line square__line--"+o,i.appendChild(l);if("figure"!==f.kind&&n.prepend(i),"slider"!==f.kind&&"blocks"!==f.kind&&"figure"!==f.kind||(e=document.createElement("div"),e.className="square square--filled",n.prepend(e)),v=new TimelineMax({paused:!0}),"figure"!==f.kind){for(s=0,c=$.length;s<c;s++)p=$[s],m="top"!==p&&"bottom"!==p?"height":"width",v.fromTo(n[0].querySelector(".square__line--"+p),.25,(h={},h[""+m]="0%",h),(d={},d[""+m]="100%",d));new ScrollMagic.Scene({triggerElement:n[0]}).setTween(v.play()).addTo(controller)}"slider"!==f.kind&&"figure"!==f.kind||new ScrollMagic.Scene({triggerElement:n[0],triggerHook:1,offset:-80,duration:"250%"}).setTween(TweenMax.fromTo(e,1,{y:80},{y:-80})).addTo(controller)}}}},{}],23:[function(e,t,n){var r;window.controller=new ScrollMagic.Controller,r=e("angular"),e("angular-resource"),e("angular-sanitize"),e("angular-touch"),e("../../node_modules/angular-lazy-img/dist/angular-lazy-img"),r.module("sprfc",["ngTouch","ngSanitize","ngResource","angularLazyImg"]),e("./directives/index.coffee"),e("./models/index.coffee"),e("./resources/index.coffee"),setTimeout(function(){FastClick.attach(document.body)},20)},{"../../node_modules/angular-lazy-img/dist/angular-lazy-img":1,"./directives/index.coffee":16,"./models/index.coffee":24,"./resources/index.coffee":27,angular:9,"angular-resource":3,"angular-sanitize":5,"angular-touch":7}],24:[function(e,t,n){var r;r=angular.module("sprfc"),r.run(["$templateCache",e("./templates.min")])},{"./templates.min":25}],25:[function(e,t,n){"use strict";t.exports=function(e){e.put(assets+"tpl/carousel.tpl.html",'<div class="carousel__container"><div class="carousel carousel--grid-nowrap carousel--grow-lg"><div class="carousel__item" ng-repeat="item in items" ng-attr-style="width:{{width}}%" on-finish-render="ngRepeatFinished"><figure class="carousel__figure carouse__figure--shrink"><img ng-src="{{item.url}}" ng-attr-alt="{{item.title}}"></figure></div></div></div><div class="carousel__nav carousel__nav--shrink"><div class="icon-arrow-left" ng-click="move(false)"></div><div class="icon-arrow-right" ng-click="move(true)"></div></div>'),e.put(assets+"tpl/instagram.tpl.html",'<header class="instagram__header instagram__header--grow-lg" ng-square="{kind:\'instagram\'}" ng-if="items"><h4 class="instagram__title"><a ng-href="http://instagram.com/{{username}}" ng-attr-target="_blank"><span class="instagram__name" ng-bind-html="\'@\' + username"></span><br><span class="instagram__follow instagram__follow--grow-top instagram__follow--upper" ng-bind-html="follow"></span></a></h4></header><div class="instagram__container" ng-if="items"><ul class="instagram__items instagram--grid"><div class="instagram__cell instagram__cell--s4" ng-repeat="item in items" data-item="{{$index}}"><figure class="instagram__figure" ng-sm="scrollmagic($index)"><a ng-href="{{item.link}}" target="_blank"><img ng-src="{{item.images.standard_resolution.url}}"></a></figure></div></ul></div>'),e.put(assets+"tpl/slider.tpl.html",'<div class="slider" ng-class="{\'slider--linee\' : kind==\'linee\'}" ng-swipe-left="move(true)" ng-swipe-right="move(false)"><div class="slider__item slider__item--grid-nowrap" ng-repeat="slide in slides" data-slide="{{$index}}" ng-attr-style="z-index:{{slides.length - $index}}" ng-class="{\'slider__item--inactive\' : current &gt; $index, \'slider__item--active\': current == $index, \'slider__item--loaded\' : isLoaded($index)}" on-finish-render="onSliderEnd"><div class="slider__cell slider__cell--left" ng-if="kind==\'linee\'"><div class="slider__cover" lazy-img="{{slide.sepia}}"></div></div><div class="slider__cell slider__cell--right" ng-if="kind==\'linee\'"><div class="slider__cover" lazy-img="{{slide.url}}"></div></div><div class="slider__cell slider__cell--s12" ng-if="kind!=\'linee\'"><div class="slider__cover" lazy-img="{{slide.url}}"></div></div></div><div class="slider__nav slider__nav--shrink" ng-if="kind == \'linee\'"><div class="slider__page" ng-repeat="slide in slides" ng-click="slideTo($index)" ng-class="{\'slider__page--active\': current == $index}"></div></div><div class="slider__quare" ng-square="{kind : \'slider\'}" ng-if="kind!=\'linee\'"></div><div class="slider__dir" ng-if="kind!=\'linee\'"><i class="icon-arrow-left" ng-click="move(false)" ng-class="{\'inactive\' : !isPrev}"></i><i class="icon-arrow-right" ng-click="move(true)" ng-class="{\'inactive\' : !isNext}"></i></div></div><div class="full-slider__content slider__content--grid-nowrap" ng-if="kind==\'full\'"><div class="full-slider__cell" ng-repeat="item in slides" ng-bind-html="item.alt" ng-class="{\'linee__cell--hidden\':item.alt==\'\'}"></div></div><div class="linee__container" ng-if="kind == \'linee\'"><h6 class="linee__title linee__title--smaller linee__title--smaller-upper" ng-bind-html="title"></h6><div class="linee__content linee__content--grid-nowrap"><div class="linee__cell linee__cell--slide" ng-repeat="slide in slides"><figure class="linee__cover"><img ng-src="{{slide.url}}" ng-attr-alt="{{slide.title}}"></figure><a class="linee__button linee__button--showbtn" ng-href="{{slide.link}}" ng-attr-data-more="{{show}}" ng-bind-html="slide.title"></a></div></div><i class="icon-arrow-big" ng-click="move(true)"></i></div>'),e.put(assets+"tpl/svg.tpl.html",'<defs><filter id="filter_{{$index}}" color-interpolation-filters="sRGB"><fecolormatrix type="matrix" values="0.39 0.769 0.189 0 0 0.349 0.686 0.168 0 0 0.272 0.534 0.131 0 0 0 0 0 1 0"></fecolormatrix></filter></defs><image ng-attr-xlink:href="{{slide.url}}" ng-attr-width="{{slide.width}}" ng-attr-height="{{slide.height}}" filter="url(#filter_{{$index}})" xlink:href="" x="0" y="0"></image>')}},{}],26:[function(e,t,n){t.exports=function(){var t;return t=function(t){var n,r,i,o,a,s;if(!e("angular").isObject(t))return null==t?"":t.toString();n=[];for(r in t){if(o=t[r],e("angular").isObject(o)){s=[];for(i in o)a=o[i],s.push(""+encodeURIComponent(null==a?"":a));o=s.join(", ").replace(/%20/g," ")}t.hasOwnProperty(r)&&n.push(encodeURIComponent(r)+"="+encodeURIComponent(null==o?"":o))}return n.join("&").replace(/%20/g,"+")},function(e,n){var r;return r=n(),r["Content-type"]="application/x-www-form-urlencoded; charset=utf-8",t(e)}}},{angular:9}],27:[function(e,t,n){var r;r=angular.module("sprfc"),r.service("loadGoogleMapAPI",["$window","$q",function(e,t){var n,r;return n=t.defer(),r=function(){var e;e=document.createElement("script"),e.id="mapJS",e.src="https://maps.googleapis.com/maps/api/js?v=3.exp&callback=initialize&key="+google_api,document.body.appendChild(e)},window.initialize=function(){n.resolve()},r(),n.promise}]).factory("storageService",function(){return{get:function(e){return localStorage.getItem(e)},save:function(e,t){return localStorage.setItem(e,JSON.stringify(t))},remove:function(e){return localStorage.removeItem(e)},clear:function(e){return localStorage.clearAll(e)}}}).factory("sessionService",function(){return{get:function(e){return sessionStorage.getItem(e)},save:function(e,t){return sessionStorage.setItem(e,JSON.stringify(t))},remove:function(e){return sessionStorage.removeItem(e)},clear:function(e){return sessionStorage.clearAll(e)}}}).factory("cacheService",["storageService",function(e){return{getData:function(t){var n,r,i;return(null!=t||void 0!==t)&&(!!Modernizr.localstorage&&(null!=(i=JSON.parse(e.get(t)))&&(r=new Date,n=i.expiration,!(r.getTime()>n)&&i)))},setData:function(t,n){return!(null==t&&void 0===t||null==n&&void 0===n)&&(!!Modernizr.localstorage&&void e.save(t,n))},removeData:function(t,n){return!(null==t&&void 0===t||null==n&&void 0===n)&&(!!Modernizr.localstorage&&void e.remove(t,n))}}}]).factory("cacheSessionService",["sessionService",function(e){return{getData:function(t){var n,r,i;return(null!=t||void 0!==t)&&(!!Modernizr.sessionstorage&&(null!=(i=JSON.parse(e.get(t)))&&(r=new Date,n=i.expiration,!(r.getTime()>n)&&i)))},setData:function(t,n){return!(null==t&&void 0===t||null==n&&void 0===n)&&(!!Modernizr.sessionstorage&&void e.save(t,n))},removeData:function(t,n){return!(null==t&&void 0===t||null==n&&void 0===n)&&(!!Modernizr.sessionstorage&&void e.remove(t,n))}}}]).factory("transformRequestAsFormPost",[e("./form.coffee")]).factory("InstagramPosts",["$resource","cacheService",e("./instagram.coffee")])},{"./form.coffee":26,"./instagram.coffee":28}],28:[function(e,t,n){t.exports=function(e,t){var n;return self.url="/wp-json/api/v1/instagram",n=e(self.url,{callback:"JSON_CALLBACK"},{get:{method:"GET",cache:!0}}),{get:function(e){var r;r=t.getData("instagram"),r!==!1?void 0!==e&&e(r.data):n.get(function(n){var r,i;i=new Date,r=i.getTime()+36e5,t.setData("instagram",{created:i.getTime(),expiration:r,data:n}),void 0!==e&&e(n)}),self.current++}}}},{}]},{},[23]); //# sourceMappingURL=main.js.map
23,728.222222
31,998
0.658742
c0f33061f52264dad34cbe29b0ac2ca039c739c8
1,814
js
JavaScript
src/reduxLib/action/authActions.js
sevendragons/MERN-ClientSide
da298bd404842bfd5bdb2f1871ee5fee81af797f
[ "MIT" ]
null
null
null
src/reduxLib/action/authActions.js
sevendragons/MERN-ClientSide
da298bd404842bfd5bdb2f1871ee5fee81af797f
[ "MIT" ]
null
null
null
src/reduxLib/action/authActions.js
sevendragons/MERN-ClientSide
da298bd404842bfd5bdb2f1871ee5fee81af797f
[ "MIT" ]
null
null
null
import axios from 'axios'; import jwt_decode from 'jwt-decode' import { GET_ERRORS, SET_CURRENT_USER } from '../constants/action-types'; import setAuthToken from '../../utils/setAuthToken'; // import { TEST_DISPATCH } from '../constants/action-types'; /*------- Register User -------*/ export const registerUser = (userData, history) => dispatch => { axios.post('/api/users/register', userData) // .then( res => console.log(res.data) ) .then( res => history.push('/login')) .catch(err => dispatch ({ type: GET_ERRORS, payload: err.response.data }) ); }; /*------- Login - Get User Token -------*/ export const loginUser = (userData) => dispatch => { axios.post('/api/users/login', userData) .then(res => { //Save to localStorage(lS) const { token } = res.data //Set token to lS localStorage.setItem('jwtToken', token); //Set token to Auth Header setAuthToken(token); //Decode token to get user data const decoded = jwt_decode(token); //Set current user dispatch(setCurrentUser(decoded)); }) .catch(err => dispatch({ type: GET_ERRORS, payload: err.response.data }) ); }; // Set logged in user export const setCurrentUser = (decoded) => { return { type: SET_CURRENT_USER, payload: decoded }; }; //Log user out export const logOutUser = () => dispatch => { // Remove token from localStorage localStorage.removeItem('jwtToken'); // Remove auth header for future requests setAuthToken(false); //Set current user to {} - mean empty object, which will set isAuthenticated to false dispatch(setCurrentUser( {} )); } //Testing // export const registerUser = userData => { // return { // type: TEST_DISPATCH, // payload: userData // }; // };
22.962025
87
0.621279
c0f33b5011020aab556cfa101320b171fd7a712f
4,393
js
JavaScript
admin/app/controllers/settings/knowledgefile/knowledgefile.controller.js
winnerineast/myems
b3d5816cfc37219c9ed61017e7661bf9f823b4de
[ "MIT" ]
2
2020-06-10T08:42:35.000Z
2021-01-30T14:25:14.000Z
admin/app/controllers/settings/knowledgefile/knowledgefile.controller.js
winnerineast/myems
b3d5816cfc37219c9ed61017e7661bf9f823b4de
[ "MIT" ]
3
2020-10-28T02:26:20.000Z
2021-02-18T09:07:52.000Z
admin/app/controllers/settings/knowledgefile/knowledgefile.controller.js
winnerineast/myems
b3d5816cfc37219c9ed61017e7661bf9f823b4de
[ "MIT" ]
6
2020-09-14T16:43:06.000Z
2021-02-18T14:09:53.000Z
'use strict'; app.controller('KnowledgeFileController', function ( $scope, $window, $translate, KnowledgeFileService, toaster, SweetAlert) { $scope.cur_user = JSON.parse($window.localStorage.getItem("myems_admin_ui_current_user")); $scope.getAllKnowledgeFiles = function () { KnowledgeFileService.getAllKnowledgeFiles(function (response) { if (angular.isDefined(response.status) && response.status === 200) { $scope.knowledgefiles = response.data; } else { $scope.knowledgefiles = []; } }); }; $scope.dzOptions = { url: getAPI() + 'knowledgefiles', acceptedFiles: '.xlsx,.xls,.pdf,.docx,.doc,.dwg,.jpg,.png,.csv', dictDefaultMessage: 'Click(or Drop) to add files', maxFilesize: '100', headers: { "User-UUID": $scope.cur_user.uuid, "Token": $scope.cur_user.token } }; $scope.dzCallbacks = { 'addedfile': function (file) { console.info('File added.', file); }, 'success': function (file, xhr) { toaster.pop({ type: "success", title: $translate.instant("TOASTER.SUCCESS_TITLE"), body: $translate.instant("TOASTER.SUCCESS_ADD_BODY", {template: file.name}), showCloseButton: true, }); $scope.getAllKnowledgeFiles(); }, 'error': function (file, xhr) { toaster.pop({ type: "error", title: $translate.instant("TOASTER.ERROR_ADD_BODY", {template: file.name}), body: $translate.instant(response.data.description), showCloseButton: true, }); } }; $scope.restoreKnowledgeFile = function (knowledgefile) { KnowledgeFileService.restoreKnowledgeFile(knowledgefile, function (response) { if (angular.isDefined(response.status) && response.status === 200) { toaster.pop({ type: "success", title: $translate.instant('TOASTER.SUCCESS_TITLE'), body: $translate.instant('SETTING.RESTORE_SUCCESS'), showCloseButton: true, }); $scope.getAllKnowledgeFiles(); } else { toaster.pop({ type: "error", title: $translate.instant(response.data.title), body: $translate.instant(response.data.description), showCloseButton: true, }); } }); }; $scope.deleteKnowledgeFile = function (knowledgefile) { SweetAlert.swal({ title: $translate.instant("SWEET.TITLE"), text: $translate.instant("SWEET.TEXT"), type: "warning", showCancelButton: true, confirmButtonColor: "#DD6B55", confirmButtonText: $translate.instant("SWEET.CONFIRM_BUTTON_TEXT"), cancelButtonText: $translate.instant("SWEET.CANCEL_BUTTON_TEXT"), closeOnConfirm: true, closeOnCancel: true }, function (isConfirm) { if (isConfirm) { KnowledgeFileService.deleteKnowledgeFile(knowledgefile, function (response) { if (angular.isDefined(response.status) && response.status === 204) { toaster.pop({ type: "success", title: $translate.instant("TOASTER.SUCCESS_TITLE"), body: $translate.instant("TOASTER.SUCCESS_DELETE_BODY", { template: $translate.instant("SETTING.KNOWLEDGEFILE") }), showCloseButton: true, }); $scope.getAllKnowledgeFiles(); } else { toaster.pop({ type: "error", title: $translate.instant("TOASTER.ERROR_DELETE_BODY", { template: $translate.instant("SETTING.KNOWLEDGEFILE") }), body: $translate.instant(response.data.description), showCloseButton: true, }); } }); } }); }; $scope.getAllKnowledgeFiles(); });
38.876106
143
0.515821
c0f48593a7ed9c0384fe2e631719d0004063e460
1,927
js
JavaScript
Kwf_js/Form/AbstractSelect.js
yacon/koala-framework
2dae1d6e8e003c73bceaf4cb529c534282f4559d
[ "BSD-2-Clause" ]
40
2015-01-16T13:37:56.000Z
2019-09-06T08:12:55.000Z
Kwf_js/Form/AbstractSelect.js
yacon/koala-framework
2dae1d6e8e003c73bceaf4cb529c534282f4559d
[ "BSD-2-Clause" ]
340
2015-01-07T09:48:38.000Z
2022-03-25T12:16:52.000Z
Kwf_js/Form/AbstractSelect.js
yacon/koala-framework
2dae1d6e8e003c73bceaf4cb529c534282f4559d
[ "BSD-2-Clause" ]
31
2015-03-22T14:18:27.000Z
2021-07-21T11:24:33.000Z
Kwf.Form.AbstractSelect = Ext2.extend(Ext2.form.TriggerField, { triggerClass : 'x2-form-search-trigger', readOnly: true, width: 200, _windowItem: null, // mandatory parameters // controllerUrl // optional parameters // windowWidth, windowHeight // displayField _getWindowItem: function() { }, _getSelectWin: function() { if (!this._selectWin) { this._selectWin = new Ext2.Window({ width: this.windowWidth || 535, height: this.windowHeight || 500, modal: true, closeAction: 'hide', title: trlKwf('Please choose'), layout: 'fit', buttons: [{ text: trlKwf('OK'), handler: function() { this.setValue(this._selectWin.value); this._selectWin.hide(); }, scope: this }, { text: trlKwf('Cancel'), handler: function() { this._selectWin.hide(); }, scope: this }], items: this._getWindowItem() }); } return this._selectWin; }, onTriggerClick : function() { this._getSelectWin().show(); this._getSelectWin().items.get(0).selectId(this.value); }, getValue: function() { return this.value; }, setValue: function(value) { if (value && typeof value.name != 'undefined') { Kwf.Form.AbstractSelect.superclass.setValue.call(this, value.name); this.value = value.id; } else { Kwf.Form.AbstractSelect.superclass.setValue.call(this, value); this.value = value; } this.fireEvent('changevalue', this.value, this); } });
27.927536
79
0.484172
c0f538c2f4198ce345d5168fe8517f2b4e9ee722
3,439
js
JavaScript
webpack.config.babel.js
davebellowsID10/diy-poll-web
22974d83922e8640adfc48e6e871cfaa03a0d82c
[ "MIT" ]
null
null
null
webpack.config.babel.js
davebellowsID10/diy-poll-web
22974d83922e8640adfc48e6e871cfaa03a0d82c
[ "MIT" ]
null
null
null
webpack.config.babel.js
davebellowsID10/diy-poll-web
22974d83922e8640adfc48e6e871cfaa03a0d82c
[ "MIT" ]
null
null
null
import webpack from 'webpack'; import { resolve } from 'path'; import { CLIEngine } from 'eslint'; import HtmlPlugin from 'html-webpack-plugin'; import TerserPlugin from 'terser-webpack-plugin'; import CnameWebpackPlugin from 'cname-webpack-plugin'; import StylelintPlugin from 'stylelint-webpack-plugin'; import MiniCSSExtractPlugin from 'mini-css-extract-plugin'; import { CleanWebpackPlugin as CleanPlugin } from 'clean-webpack-plugin'; import OptimizeCSSAssetsPlugin from 'optimize-css-assets-webpack-plugin'; const dev = process.env.NODE_ENV === 'development'; const apiUrl = process.env.API_URL; const appDomain = process.env.APP_DOMAIN || 'localhost'; const plugins = [ new CleanPlugin(), new StylelintPlugin({ configFile: '.stylelintrc', context: 'src', files: '**/*.scss', failOnError: true, quiet: false, syntax: 'scss' }), new MiniCSSExtractPlugin({ filename: '[name].css' }), new HtmlPlugin({ template: './src/index.html' }), new webpack.DefinePlugin({ API_URL: JSON.stringify(dev || !apiUrl ? 'http://localhost:9090' : apiUrl) }) ]; if (dev) { plugins.push(new webpack.HotModuleReplacementPlugin()); } else { plugins.push( new CnameWebpackPlugin({ domain: appDomain }) ); } export default { mode: dev ? 'development' : 'production', devtool: dev ? 'cheap-module-eval-source-map' : 'cheap-module-source-map', entry: './src/index.js', devServer: { compress: dev, open: true, overlay: true, historyApiFallback: true, hot: dev, port: 9000 }, module: { rules: [ { test: /\.js$/, exclude: /node_modules/, use: [ 'babel-loader', { loader: 'eslint-loader', options: { formatter: CLIEngine.getFormatter('stylish') } } ] }, { test: /\.(sa|sc|c)ss$/, use: [ dev ? 'style-loader' : MiniCSSExtractPlugin.loader, 'css-loader', { loader: 'postcss-loader', options: { ident: 'postcss', plugins: [ require('autoprefixer'), require('postcss-flexbugs-fixes') ], sourceMap: dev } }, 'sass-loader' ] }, { test: /\.html$/, use: [ { loader: 'html-loader', options: { minimize: true } } ] } ] }, output: { path: resolve(__dirname, 'dist'), filename: 'main.js', chunkFilename: '[name].js' }, plugins, resolve: { extensions: ['.js', '.json'], modules: ['node_modules', 'src'], alias: { components: resolve(__dirname, 'src/components'), utils: resolve(__dirname, 'src/utils') } }, optimization: { minimizer: [ new TerserPlugin({ terserOptions: { ecma: 9 } }), new OptimizeCSSAssetsPlugin({}) ], splitChunks: { cacheGroups: { default: false, vendors: false, vendor: { priority: -2, name: 'vendor', chunks: 'all', test: /[\\/]node_modules[\\/]/ }, react: { priority: -1, name: 'vendor-react', chunks: 'all', test: /[\\/]node_modules[\\/](react|redux)/ } } } } };
23.394558
78
0.533585
c0f57477656127a16dda6b4cccd2cb42eea82a01
2,432
js
JavaScript
backend/src/socket-io.js
natemoo-re/deckdeckgo
5992e3754c2cabb247996aa8ee8737313049375e
[ "MIT" ]
null
null
null
backend/src/socket-io.js
natemoo-re/deckdeckgo
5992e3754c2cabb247996aa8ee8737313049375e
[ "MIT" ]
null
null
null
backend/src/socket-io.js
natemoo-re/deckdeckgo
5992e3754c2cabb247996aa8ee8737313049375e
[ "MIT" ]
null
null
null
let rooms = []; module.exports = (server) => { const socketIO = require('socket.io').listen(server, {'transports': ['websocket', 'xhr-polling']}); socketIO.set('origins', '*:*'); console.log('\x1b[36m%s\x1b[0m', '[DeckDeckGo]', 'Socket listening'); socketIO.sockets.on('connection', (socket) => { socket.on('rooms', async () => { await emitRooms(socketIO, socket, false); }); socket.on('join', async (req) => { if (req) { socket.join(req.room); socket.emit('joined'); if (req.room && req.deck) { socket.broadcast.to(req.room).emit('deck_joined'); if (rooms && rooms.indexOf(req.room) < 0) { rooms.push(req.room); } await emitRooms(socketIO, socket, true); } } }); socket.on('leave', async (req) => { if (req && req.room) { socket.leave(req.room); } }); socket.on('signal', (req) => { socket.broadcast.to(req.room).emit('signaling_message', { type: req.type, message: req.message }); }); }); }; function filterActiveRooms(socketIO) { return new Promise(async (resolve) => { const results = []; if (rooms && rooms.length > 0) { rooms.forEach((room) => { const activeRoom = socketIO.sockets.adapter.rooms ? socketIO.sockets.adapter.rooms[room] : null; if (activeRoom) { results.push({ room: room, clients: activeRoom.length }) } }); } resolve(results); }); } /** * activeRooms = [{ * room: string, // room name * clients: number // 1 for app or deck, 2 if both are connected * }] */ function emitRooms(socketIO, socket, broadcast) { return new Promise(async (resolve) => { const activeRooms = await filterActiveRooms(socketIO); if (broadcast) { socket.broadcast.emit('active_rooms', { rooms: activeRooms }); } else { socket.emit('active_rooms', { rooms: activeRooms }); } resolve(); }); }
26.150538
112
0.461349
c0f5a88ee8cb7832f07d87e713758cf9b22bbd35
1,576
js
JavaScript
test/source/lib/utils.spec.js
iamdhj/cms-vue
04313d00699b5182b5f6e6333625e84b58517b54
[ "MIT" ]
null
null
null
test/source/lib/utils.spec.js
iamdhj/cms-vue
04313d00699b5182b5f6e6333625e84b58517b54
[ "MIT" ]
null
null
null
test/source/lib/utils.spec.js
iamdhj/cms-vue
04313d00699b5182b5f6e6333625e84b58517b54
[ "MIT" ]
null
null
null
import Vue from 'vue' import Fetch from '*lib/net' import {Init, Mix, Log, Error, FormatDate} from '*/lib/utils' beforeAll(() => { process.env.NODE_ENV = 'production' }) afterAll(() => { // process.env.NODE_ENV = '' }) describe('Init Vue', () => { let app = Init({}, { render: () => {} }) it('create Vue instance', () => { expect(app instanceof Vue).toBe(true) }) it('Vue instance has $log, $error, $fetch', () => { expect(app.$log).toBe(Log) expect(app.$error).toBe(Error) expect(app.$fetch).toBe(Fetch) }) }) describe('Mix funtion', () => { it('merge tow object', () => { let obj = {a: 1, b: 2} let objA = {a: 1} let objB = {b: 2} expect(Mix(objA, objB)).toEqual(obj) }) }) describe('FormatDate', () => { let str = '2018-07-15 12:12:12' it('format date by string', () => { expect(FormatDate(str, 'yyyy-MM-dd hh:mm:ss')).toEqual(str) let str2 = '2018-7-5 2:2:2' expect(FormatDate(str2, 'yyyy-M-d h:m:s')).toEqual(str2) }) it('format date by timestamp', () => { let date = new Date(str) let timestamp = date.getTime() expect(FormatDate(timestamp, 'yyyy-MM-dd hh:mm:ss')).toEqual(str) }) it('format date by date object', () => { let date = new Date(str) expect(FormatDate(date, 'yyyy-MM-dd hh:mm:ss')).toEqual(str) }) it('format date exception', () => { expect(FormatDate()).toEqual('') expect(FormatDate({}, 'yyyy-mm-dd')).toEqual('') expect(FormatDate(null, 'yyyy-mm-dd')).toEqual('') expect(FormatDate(NaN, 'yyyy-mm-dd')).toEqual('') }) })
23.878788
69
0.573604
c0f7167f45887aa9020258572cc82c9421090c90
1,784
js
JavaScript
src/app-examples/badge-generator/BadgeAppData.js
lindogamaton/extend-js-example
11a9b7fb7a1ec2f43b5f642620072c7a9b626a95
[ "MIT" ]
11
2022-02-17T22:39:17.000Z
2022-03-08T17:16:50.000Z
src/app-examples/badge-generator/BadgeAppData.js
lindogamaton/extend-js-example
11a9b7fb7a1ec2f43b5f642620072c7a9b626a95
[ "MIT" ]
null
null
null
src/app-examples/badge-generator/BadgeAppData.js
lindogamaton/extend-js-example
11a9b7fb7a1ec2f43b5f642620072c7a9b626a95
[ "MIT" ]
2
2022-03-11T21:01:52.000Z
2022-03-12T17:21:22.000Z
import { blobToDataURL } from '../../common/utils/FileUtils'; import { executeRequest, executeRequestForFile, ContentType, HttpHeader, HttpMethod } from '../../common/wcp/WcpRequest'; const BADGE_APP_ID = process.env.REACT_APP_EXTEND_APP_REFERENCE_ID_BADGE_GENERATOR; export const getCurrentBadgeData = async (workerId) => { const badgesResponse = await executeRequest( HttpMethod.GET, `apps/${BADGE_APP_ID}/v1/badges?worker=${workerId}&limit=100`, { Accept: ContentType.APPLICATION_JSON }); const badges = badgesResponse.data ? badgesResponse.data : []; const currentBadge = badges.reduce((r, a) => { return r.dateUploaded > a.dateUploaded ? r : a; }, []); return currentBadge; }; export const getBadgeAttachment = async (badgeId) => { const attachmentResponse = await executeRequestForFile( HttpMethod.GET, `apps/${BADGE_APP_ID}/v1/badges/${badgeId}`) if (attachmentResponse) { return blobToDataURL(attachmentResponse); } else return null; }; export const getWorkerData = async (workerId) => { const workerDataResponse = await executeRequest( HttpMethod.GET, `staffing/v3/workers/${workerId}`); return workerDataResponse; }; export const postBadge = async(formData, fileName) => { const response = await executeRequest( HttpMethod.POST, `apps/${BADGE_APP_ID}/v1/badges`, { [HttpHeader.CONTENT_DISPOSITION]: `attachment; filename=${fileName} filename*=utf-8''${fileName}`, // set the maximum image edge size to 1024px. // the default badge size has smaller dimensions than this, // but we want to make sure we attempt to resize images if // they somehow happen to be larger. [HttpHeader.IMAGE_MAX_DIMENSION]: '1024' }, formData); return response; };
34.307692
121
0.704036
c0f755a5af0d08d6ff6bead27865778fb23a6000
2,703
js
JavaScript
pkg/interface/src/views/apps/links/components/link-item.js
timgates42/urbit
a9d6811299fc520e4f46f4abdc626de536261a75
[ "MIT" ]
null
null
null
pkg/interface/src/views/apps/links/components/link-item.js
timgates42/urbit
a9d6811299fc520e4f46f4abdc626de536261a75
[ "MIT" ]
null
null
null
pkg/interface/src/views/apps/links/components/link-item.js
timgates42/urbit
a9d6811299fc520e4f46f4abdc626de536261a75
[ "MIT" ]
null
null
null
import React from 'react'; import { Row, Col, Anchor, Box, Text, BaseImage } from '@tlon/indigo-react'; import { Sigil } from '~/logic/lib/sigil'; import { Link } from 'react-router-dom'; import { cite } from '~/logic/lib/util'; import { roleForShip } from '~/logic/lib/group'; export const LinkItem = (props) => { const { node, nickname, avatar, resource, hideAvatars, hideNicknames, api, group } = props; const URLparser = new RegExp( /((?:([\w\d\.-]+)\:\/\/?){1}(?:(www)\.?){0,1}(((?:[\w\d-]+\.)*)([\w\d-]+\.[\w\d]+))){1}(?:\:(\d+)){0,1}((\/(?:(?:[^\/\s\?]+\/)*))(?:([^\?\/\s#]+?(?:.[^\?\s]+){0,1}){0,1}(?:\?([^\s#]+)){0,1})){0,1}(?:#([^#\s]+)){0,1}/ ); const author = node.post.author; const index = node.post.index.split('/')[1]; const size = node.children ? node.children.size : 0; const contents = node.post.contents; const hostname = URLparser.exec(contents[1].url) ? URLparser.exec(contents[1].url)[4] : null; const showAvatar = avatar && !hideAvatars; const showNickname = nickname && !hideNicknames; const img = showAvatar ? <BaseImage display='inline-block' src={props.avatar} height={36} width={36} /> : <Sigil ship={`~${author}`} size={36} color={'#' + props.color} />; const baseUrl = props.baseUrl || `/~404/${resource}`; const ourRole = group ? roleForShip(group, window.ship) : undefined; const [ship, name] = resource.split('/'); return ( <Row minWidth='0' flexShrink='0' width="100%" alignItems="center" py={3} bg="white"> {img} <Col minWidth='0' height="100%" width='100%' justifyContent="space-between" ml={2}> <Anchor lineHeight="tall" display='flex' style={{ textDecoration: 'none' }} href={contents[1].url} width="100%" target="_blank" rel="noopener noreferrer" > <Text display='inline-block' overflow='hidden' style={{ textOverflow: 'ellipsis', whiteSpace: 'pre' }}>{contents[0].text}</Text> <Text ml="2" color="gray" display='inline-block' flexShrink='0'>{hostname} ↗</Text> </Anchor> <Box width="100%"> <Text fontFamily={showNickname ? 'sans' : 'mono'} pr={2} > {showNickname ? nickname : cite(author) } </Text> <Link to={`${baseUrl}/${index}`}> <Text color="gray">{size} comments</Text> </Link> {(ourRole === 'admin' || node.post.author === window.ship) && (<Text color='red' ml='2' cursor='pointer' onClick={() => api.graph.removeNodes(`~${ship}`, name, [node.post.index])}>Delete</Text>)} </Box> </Col> </Row> ); };
35.103896
220
0.54421
c0f7b58d2408348e7952bfc37f0355b7ca079f9f
2,619
js
JavaScript
webpack.config.js
brianbrennan/brianbrennancom
29b5593a39d4ba88325c17c7c9cb1058be767dcc
[ "Unlicense" ]
null
null
null
webpack.config.js
brianbrennan/brianbrennancom
29b5593a39d4ba88325c17c7c9cb1058be767dcc
[ "Unlicense" ]
null
null
null
webpack.config.js
brianbrennan/brianbrennancom
29b5593a39d4ba88325c17c7c9cb1058be767dcc
[ "Unlicense" ]
null
null
null
let webpack = require('webpack'), path = require('path'), MiniCssExtractPlugin = require('mini-css-extract-plugin'), OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin'); const BUILD_DIR = path.resolve(__dirname, './dist'); const APP_DIR = path.resolve(__dirname, './app'); let config = { mode: 'development', entry: [ APP_DIR + '/main/Main.tsx' ], output: { path: BUILD_DIR, filename: 'app.min.js', publicPath: '/dist/' }, plugins: [ new MiniCssExtractPlugin({ filename: 'app.min.css', }), new OptimizeCssAssetsPlugin() // if you put it in optimization.minimizer property, webpack-dev-server won't apply it. ], module: { rules: [ { test : /\.tsx?$/, include : APP_DIR, exclude: /node_modules/, use : [ 'ts-loader' ] }, { test: /\.scss$/, use: [ MiniCssExtractPlugin.loader, 'css-loader', 'resolve-url-loader', 'sass-loader' ] }, { test: /\.css$/, use: [ MiniCssExtractPlugin.loader, 'css-loader', 'resolve-url-loader', ] }, { test: /\.png$/, use: 'url-loader?limit=100000' }, { test: /\.jpg$/, use: 'file-loader' }, { test: /\.gif$/, use: 'file-loader' }, { test: /\.(woff|woff2)(\?v=\d+\.\d+\.\d+)?$/, use: 'url-loader?limit=10000&mimetype=application/font-woff' }, { test: /\.ttf(\?v=\d+\.\d+\.\d+)?$/, use: 'url-loader?limit=10000&mimetype=application/octet-stream' }, { test: /\.eot(\?v=\d+\.\d+\.\d+)?$/, use: 'file-loader' }, { test: /\.svg(\?v=\d+\.\d+\.\d+)?$/, use: 'url-loader?limit=10000&mimetype=image/svg+xml' } ] }, resolve: { extensions: ['.ts', '.tsx', '.js'] }, devServer: { port: 3000, // necessary for server to return index.html for any route disableHostCheck: true } }; module.exports = config;
28.467391
125
0.40168
c0f7ba74d5992d435a543f16df6113a5f6e8e70f
638
js
JavaScript
src/utils/global.js
wylwq/vue-admin
4997b87d4aa39c4a2df0c4a71220e2562f845dd4
[ "Apache-2.0" ]
null
null
null
src/utils/global.js
wylwq/vue-admin
4997b87d4aa39c4a2df0c4a71220e2562f845dd4
[ "Apache-2.0" ]
1
2022-02-18T21:51:40.000Z
2022-02-18T21:51:40.000Z
src/utils/global.js
wylwq/vue-admin
4997b87d4aa39c4a2df0c4a71220e2562f845dd4
[ "Apache-2.0" ]
null
null
null
import { MessageBox } from 'element-ui'; export default { install(Vue, options) { Vue.prototype.confirm = function (params) { MessageBox.confirm(params.content, "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }) .then(() => { params.fn && params.fn(params.id || ''); }) .catch(() => { this.$message({ type: "info", message: "已取消删除" }); }); } } }
30.380952
60
0.369906
c0f7f97099eae27fb5a5a4238d8174d626e4a0f3
6,941
js
JavaScript
hooks/lib/ios/xcodePreferences.js
Roosterbank/cordova-universal-links-plugin
abb332b16c26965e9e9abc3800b06a5b62fa299d
[ "MIT" ]
null
null
null
hooks/lib/ios/xcodePreferences.js
Roosterbank/cordova-universal-links-plugin
abb332b16c26965e9e9abc3800b06a5b62fa299d
[ "MIT" ]
null
null
null
hooks/lib/ios/xcodePreferences.js
Roosterbank/cordova-universal-links-plugin
abb332b16c26965e9e9abc3800b06a5b62fa299d
[ "MIT" ]
null
null
null
/* Script activates support for Universal Links in the application by setting proper preferences in the xcode project file. Which is: - deployment target set to iOS 9.0 - .entitlements file added to project PBXGroup and PBXFileReferences section - path to .entitlements file added to Code Sign Entitlements preference */ var path = require('path'); var glob = require('glob'); var fs = require('fs'); var xcode = require('xcode'); var shelljs = require('shelljs'); var compare = require('node-version-compare'); var ConfigXmlHelper = require('../configXmlHelper.js'); var IOS_DEPLOYMENT_TARGET = '8.0'; var COMMENT_KEY = /_comment$/; var context; module.exports = { enableAssociativeDomainsCapability: enableAssociativeDomainsCapability } // region Public API /** * Activate associated domains capability for the application. * * @param {Object} cordovaContext - cordova context object */ function enableAssociativeDomainsCapability(cordovaContext) { context = cordovaContext; var projectFile = loadProjectFile(); // adjust preferences activateAssociativeDomains(projectFile.xcode); // add entitlements file to pbxfilereference // addPbxReference(projectFile.xcode); // save changes projectFile.write(); } // endregion // region Alter project file preferences /** * Activate associated domains support in the xcode project file: * - set deployment target to ios 9; * - add .entitlements file to Code Sign Entitlements preference. * * @param {Object} xcodeProject - xcode project preferences; all changes are made in that instance */ function activateAssociativeDomains(xcodeProject) { var configurations = nonComments(xcodeProject.pbxXCBuildConfigurationSection()); // var entitlementsFilePath = pathToEntitlementsFile(); var config; var buildSettings; var deploymentTargetIsUpdated; for (config in configurations) { buildSettings = configurations[config].buildSettings; // buildSettings['CODE_SIGN_ENTITLEMENTS'] = '"' + entitlementsFilePath + '"'; buildSettings.CODE_SIGN_ENTITLEMENTS = "\"$(PROJECT_DIR)/$(PROJECT_NAME)/Entitlements-$(CONFIGURATION).plist\"" // if deployment target is less then the required one - increase it if (buildSettings['IPHONEOS_DEPLOYMENT_TARGET']) { // if (compare(buildSettings['IPHONEOS_DEPLOYMENT_TARGET'], IOS_DEPLOYMENT_TARGET) == -1) { // buildSettings['IPHONEOS_DEPLOYMENT_TARGET'] = IOS_DEPLOYMENT_TARGET; // deploymentTargetIsUpdated = true; // } } else { buildSettings['IPHONEOS_DEPLOYMENT_TARGET'] = IOS_DEPLOYMENT_TARGET; deploymentTargetIsUpdated = true; } } if (deploymentTargetIsUpdated) { console.log('IOS project now has deployment target set as: ' + IOS_DEPLOYMENT_TARGET); } // console.log('IOS project Code Sign Entitlements now set to: ' + entitlementsFilePath); } // endregion // region PBXReference methods /** * Add .entitlemets file into the project. * * @param {Object} xcodeProject - xcode project preferences; all changes are made in that instance */ function addPbxReference(xcodeProject) { // var fileReferenceSection = nonComments(xcodeProject.pbxFileReferenceSection()); // var entitlementsFileName = path.basename(pathToEntitlementsFile()); // // if (isPbxReferenceAlreadySet(fileReferenceSection, entitlementsFileName)) { // console.log('Entitlements file is in reference section.'); // return; // } // // console.log('Entitlements file is not in references section, adding it'); // xcodeProject.addResourceFile(entitlementsFileName); } /** * Check if .entitlemets file reference already set. * * @param {Object} fileReferenceSection - PBXFileReference section * @param {String} entitlementsRelativeFilePath - relative path to entitlements file * @return true - if reference is set; otherwise - false */ // function isPbxReferenceAlreadySet(fileReferenceSection, entitlementsRelativeFilePath) { // var isAlreadyInReferencesSection = false; // var uuid; // var fileRefEntry; // // for (uuid in fileReferenceSection) { // fileRefEntry = fileReferenceSection[uuid]; // if (fileRefEntry.path && fileRefEntry.path.indexOf(entitlementsRelativeFilePath) > -1) { // isAlreadyInReferencesSection = true; // break; // } // } // // return isAlreadyInReferencesSection; // } // region Xcode project file helpers /** * Load iOS project file from platform specific folder. * * @return {Object} projectFile - project file information */ function loadProjectFile() { var platform_ios; var projectFile; try { // try pre-5.0 cordova structure platform_ios = context.requireCordovaModule('cordova-lib/src/plugman/platforms')['ios']; projectFile = platform_ios.parseProjectFile(iosPlatformPath()); } catch (e) { try { // let's try cordova 5.0 structure platform_ios = context.requireCordovaModule('cordova-lib/src/plugman/platforms/ios'); projectFile = platform_ios.parseProjectFile(iosPlatformPath()); } catch (e) { // Then cordova 7.0 var project_files = glob.sync(path.join(iosPlatformPath(), '*.xcodeproj', 'project.pbxproj')); if (project_files.length === 0) { throw new Error('does not appear to be an xcode project (no xcode project file)'); } var pbxPath = project_files[0]; var xcodeproj = xcode.project(pbxPath); xcodeproj.parseSync(); projectFile = { 'xcode': xcodeproj, write: function () { var frameworks_file = path.join(iosPlatformPath(), 'frameworks.json'); var frameworks = {}; try { frameworks = context.requireCordovaModule(frameworks_file); } catch (e) { } fs.writeFileSync(pbxPath, xcodeproj.writeSync()); if (Object.keys(frameworks).length === 0){ // If there is no framework references remain in the project, just remove this file shelljs.rm('-rf', frameworks_file); return; } fs.writeFileSync(frameworks_file, JSON.stringify(this.frameworks, null, 4)); } }; } } return projectFile; } /** * Remove comments from the file. * * @param {Object} obj - file object * @return {Object} file object without comments */ function nonComments(obj) { var keys = Object.keys(obj); var newObj = {}; for (var i = 0, len = keys.length; i < len; i++) { if (!COMMENT_KEY.test(keys[i])) { newObj[keys[i]] = obj[keys[i]]; } } return newObj; } // endregion // region Path helpers function iosPlatformPath() { return path.join(projectRoot(), 'platforms', 'ios'); } function projectRoot() { return context.opts.projectRoot; } // endregion
31.125561
120
0.676848
c0f86cf88fd11e866e1fc86d8812487f570ad5af
938
js
JavaScript
src/router.js
devhau/vue-ui-demo
02cbc0a67bcf26e9eb0f4a8ccb86808947a68bc6
[ "MIT" ]
2
2021-10-08T19:15:53.000Z
2021-10-10T05:25:25.000Z
src/router.js
devhau/vue-ui-demo
02cbc0a67bcf26e9eb0f4a8ccb86808947a68bc6
[ "MIT" ]
null
null
null
src/router.js
devhau/vue-ui-demo
02cbc0a67bcf26e9eb0f4a8ccb86808947a68bc6
[ "MIT" ]
1
2021-10-10T05:25:28.000Z
2021-10-10T05:25:28.000Z
import { createRouter, createWebHashHistory } from "vue-router" import HomeComponent from './component/kanban.vue'; import GanttComponent from './component/gantt.vue'; import AccordionComponent from './component/accordion.vue'; import AlertComponent from './component/alert.vue'; const routes = [ { path: '/', name: 'Home', component: HomeComponent, }, { path: '/gantt', name: 'Gantt', component: GanttComponent, }, { path: '/accordion', name: 'Accordion', component: AccordionComponent, }, { path: '/alert', name: 'Alert', component: AlertComponent, }, ]; const router = createRouter({ // 4. Provide the history implementation to use. We are using the hash history for simplicity here. history: createWebHashHistory(), routes, // short for `routes: routes` }) export default router;
26.055556
103
0.614072
c0f8d3a18a0efc6b91e6e41c3298758799c8cac8
5,105
js
JavaScript
images/project1/dashboard_arquivos/671-6a1a5d9ef1d847600cbe.js
PauloHNMorais/paulohnmorais.github.io
0b102a09cebe8cc804d959d6cd24461b02cfd496
[ "CC-BY-3.0" ]
null
null
null
images/project1/dashboard_arquivos/671-6a1a5d9ef1d847600cbe.js
PauloHNMorais/paulohnmorais.github.io
0b102a09cebe8cc804d959d6cd24461b02cfd496
[ "CC-BY-3.0" ]
null
null
null
images/project1/dashboard_arquivos/671-6a1a5d9ef1d847600cbe.js
PauloHNMorais/paulohnmorais.github.io
0b102a09cebe8cc804d959d6cd24461b02cfd496
[ "CC-BY-3.0" ]
null
null
null
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[671],{48389:function(e,n,t){var i="Expected a function",r=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt,s="object"==typeof t.g&&t.g&&t.g.Object===Object&&t.g,f="object"==typeof self&&self&&self.Object===Object&&self,l=s||f||Function("return this")(),d=Object.prototype.toString,w=Math.max,p=Math.min,b=function(){return l.Date.now()};function m(e,n,t){var r,o,a,c,u,s,f=0,l=!1,d=!1,m=!0;if("function"!=typeof e)throw new TypeError(i);function x(n){var t=r,i=o;return r=o=void 0,f=n,c=e.apply(i,t)}function y(e){return f=e,u=setTimeout(k,n),l?x(e):c}function h(e){var t=e-s;return void 0===s||t>=n||t<0||d&&e-f>=a}function k(){var e=b();if(h(e))return _(e);u=setTimeout(k,function(e){var t=n-(e-s);return d?p(t,a-(e-f)):t}(e))}function _(e){return u=void 0,m&&r?x(e):(r=o=void 0,c)}function j(){var e=b(),t=h(e);if(r=arguments,o=this,s=e,t){if(void 0===u)return y(s);if(d)return u=setTimeout(k,n),x(s)}return void 0===u&&(u=setTimeout(k,n)),c}return n=g(n)||0,v(t)&&(l=!!t.leading,a=(d="maxWait"in t)?w(g(t.maxWait)||0,n):a,m="trailing"in t?!!t.trailing:m),j.cancel=function(){void 0!==u&&clearTimeout(u),f=0,r=s=o=u=void 0},j.flush=function(){return void 0===u?c:_(b())},j}function v(e){var n=typeof e;return!!e&&("object"==n||"function"==n)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(v(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=v(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var t=a.test(e);return t||c.test(e)?u(e.slice(2),t?2:8):o.test(e)?NaN:+e}e.exports=function(e,n,t){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError(i);return v(t)&&(r="leading"in t?!!t.leading:r,o="trailing"in t?!!t.trailing:o),m(e,n,{leading:r,maxWait:n,trailing:o})}},79927:function(e,n){!function(e){"use strict";function n(e){var n={},i=/(dolfin)[ \/]([\w.]+)/.exec(e)||/(edge)[ \/]([\w.]+)/.exec(e)||/(chrome)[ \/]([\w.]+)/.exec(e)||/(tizen)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(e)||/(webkit)(?:.*version)?[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(e)||["","unknown"];return"webkit"===i[1]?i=/(iphone|ipad|ipod)[\S\s]*os ([\w._\-]+) like/.exec(e)||/(android)[ \/]([\w._\-]+);/.exec(e)||[i[0],"safari",i[2]]:"mozilla"===i[1]?/trident/.test(e)?i[1]="msie":i[1]="firefox":/polaris|natebrowser|([010|011|016|017|018|019]{3}\d{3,4}\d{4}$)/.test(e)&&(i[1]="polaris"),n[i[1]]=!0,n.name=i[1],n.version=t(i[2]),n}function t(e){var n={},t=e?e.split(/\.|-|_/):["0","0","0"];return n.info=t.join("."),n.major=t[0]||"0",n.minor=t[1]||"0",n.patch=t[2]||"0",n}function i(e){return function(e){if(e.match(/linux|windows (nt|98)|macintosh|cros/)&&!e.match(/android|mobile|polaris|lgtelecom|uzard|natebrowser|ktf;|skt;/))return!0;return!1}(e)?"pc":function(e){if(e.match(/ipad/)||e.match(/android/)&&!e.match(/mobi|mini|fennec/))return!0;return!1}(e)?"tablet":function(e){return!!e.match(/ip(hone|od)|android.+mobile|windows (ce|phone)|blackberry|bb10|symbian|webos|firefox.+fennec|opera m(ob|in)i|tizen.+mobile|polaris|iemobile|lgtelecom|nokia|sonyericsson|dolfin|uzard|natebrowser|ktf;|skt;/)}(e)?"mobile":""}function r(e){var n={},i=/(iphone|ipad|ipod)[\S\s]*os ([\w._\-]+) like/.exec(e)||!!/polaris|natebrowser|([010|011|016|017|018|019]{3}\d{3,4}\d{4}$)/.test(e)&&["","polaris","0.0.0"]||/(windows)(?: nt | phone(?: os){0,1} | )([\w._\-]+)/.exec(e)||/(android)[ \/]([\w._\-]+);/.exec(e)||!!/android/.test(e)&&["","android","0.0.0"]||!!/(windows)/.test(e)&&["","windows","0.0.0"]||/(mac) os x ([\w._\-]+)/.exec(e)||/(tizen)[ \/]([\w._\-]+);/.exec(e)||!!/(linux)/.test(e)&&["","linux","0.0.0"]||!!/webos/.test(e)&&["","webos","0.0.0"]||/(cros)(?:\s[\w]+\s)([\d._\-]+)/.exec(e)||/(bada)[ \/]([\w._\-]+)/.exec(e)||!!/bada/.test(e)&&["","bada","0.0.0"]||!!/(rim|blackberry|bb10)/.test(e)&&["","blackberry","0.0.0"]||["","unknown","0.0.0"];return"iphone"===i[1]||"ipad"===i[1]||"ipod"===i[1]?i[1]="ios":"windows"===i[1]&&"98"===i[2]&&(i[2]="0.98.0"),"cros"===i[1]&&(i[1]="chrome"),n[i[1]]=!0,n.name=i[1],n.version=t(i[2]),n}Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var o=["crios","fxios","daumapps"];function a(e,n){var i={},r=null,a=o;Array.isArray(n)?a=o.concat(n):"string"===typeof n&&(a=o.concat([n]));for(var c=0,u=a.length;c<u;c+=1){var s=a[c];if(r=new RegExp("("+s+")[ \\/]([\\w._\\-]+)").exec(e))break}return r||(r=["",""]),r[1]?(i.isApp=!0,i.name=r[1],i.version=t(r[2])):i.isApp=!1,i}var c=e.userAgent=function(e,t){var o=function(e){return e?e.toLowerCase():"undefined"!==typeof window&&window.navigator&&"string"===typeof window.navigator.userAgent?window.navigator.userAgent.toLowerCase():""}(e);return{ua:o,browser:n(o),platform:i(o),os:r(o),app:a(o,t)}};"object"===typeof window&&window.navigator.userAgent&&(window.ua_result=c(window.navigator.userAgent)||null)}((n.daumtools=n,n.util=n,n))}}]);
5,105
5,105
0.596866
c0f97de66f2ce3e632f76da0c651776b3391d47f
1,082
js
JavaScript
packages/generators/bolt-generator/helpers/update-boltrc.js
boltdesignsystem/bolt
abc32f16a2015bd6ddc4992211fa381669f217a4
[ "MIT" ]
137
2019-10-09T16:09:36.000Z
2022-03-09T21:42:07.000Z
packages/generators/bolt-generator/helpers/update-boltrc.js
boltdesignsystem/bolt
abc32f16a2015bd6ddc4992211fa381669f217a4
[ "MIT" ]
610
2019-10-01T11:41:22.000Z
2022-03-31T18:45:41.000Z
packages/generators/bolt-generator/helpers/update-boltrc.js
boltdesignsystem/bolt
abc32f16a2015bd6ddc4992211fa381669f217a4
[ "MIT" ]
26
2019-10-09T14:37:54.000Z
2022-01-21T13:00:06.000Z
const fs = require('fs'); const prettier = require('prettier'); const resolve = require('resolve'); const boltRcPath = resolve.sync('@bolt/starter-kit/.boltrc.js'); const boltRc = require(boltRcPath); const updateBoltRcConfig = (packageName, writePath) => { const finalPath = writePath || boltRcPath; // check if this component has already been added to the .boltrc config and if so, remove it if (boltRc.components.global.includes(packageName)) { return `the .boltrc config already has the '${packageName}' component added -- skipped adding this component automatically` } const updatedBoltRc = fs .readFileSync(boltRcPath) .toString() .replace(/global: \[/, `global: [\n '${packageName}',`); const updatedPrettyBoltRc = prettier.format(updatedBoltRc, { singleQuote: true, trailingComma: 'es5', bracketSpacing: true, jsxBracketSameLine: true, parser: 'flow', }); fs.writeFileSync(finalPath, updatedPrettyBoltRc); return `${packageName} was successfully added to the .boltrc`; } module.exports = updateBoltRcConfig;
31.823529
127
0.710721
c0f9b2dbe687dfd12d9aca34311294813a20e122
2,156
js
JavaScript
test/spec/rendererSpec.js
TheFive/jingo
acee88137fca48d9a9c54190efb13389ce7bc695
[ "MIT" ]
null
null
null
test/spec/rendererSpec.js
TheFive/jingo
acee88137fca48d9a9c54190efb13389ce7bc695
[ "MIT" ]
13
2016-01-30T01:21:08.000Z
2016-02-23T08:10:00.000Z
test/spec/rendererSpec.js
TheFive/jingo
acee88137fca48d9a9c54190efb13389ce7bc695
[ "MIT" ]
null
null
null
var Renderer = require("../../lib/renderer"); describe ("Renderer", function() { it ("should render bracket tags1", function() { var text = "a [[Foo]] b"; expect(Renderer.render(text)).to.be.equal("<p>a <a class=\"internal\" href=\"/wiki/Foo\">Foo</a> b</p>\n"); }); it ("should render bracket tags2", function() { var text = "a [[Foo]][[Foo]][[Foo]] b"; expect(Renderer.render(text)).to.be.equal("<p>a <a class=\"internal\" href=\"/wiki/Foo\">Foo</a><a class=\"internal\" href=\"/wiki/Foo\">Foo</a><a class=\"internal\" href=\"/wiki/Foo\">Foo</a> b</p>\n"); }); it ("should render bracket tags3", function() { var text = "a [[Foo Bar]] b"; expect(Renderer.render(text)).to.be.equal("<p>a <a class=\"internal\" href=\"/wiki/Foo-Bar\">Foo Bar</a> b</p>\n"); }); it ("should render bracket tags4", function() { var text = "a [[Foo]][[Bar]] b"; expect(Renderer.render(text)).to.be.equal("<p>a <a class=\"internal\" href=\"/wiki/Foo\">Foo</a><a class=\"internal\" href=\"/wiki/Bar\">Bar</a> b</p>\n"); }); it ("should render bracket tags5", function() { var text = "a [[Foo]] [[Bar]] b"; expect(Renderer.render(text)).to.be.equal("<p>a <a class=\"internal\" href=\"/wiki/Foo\">Foo</a> <a class=\"internal\" href=\"/wiki/Bar\">Bar</a> b</p>\n"); }); it ("should render bracket tags6", function() { var text = "a [[Il marito di Foo|Foobar]] [[Bar]] b"; expect(Renderer.render(text)).to.be.equal("<p>a <a class=\"internal\" href=\"/wiki/Foobar\">Il marito di Foo</a> <a class=\"internal\" href=\"/wiki/Bar\">Bar</a> b</p>\n"); }); it ("should render bracket tags7", function() { var text = "a [[Foo / Bar]] b"; expect(Renderer.render(text)).to.be.equal("<p>a <a class=\"internal\" href=\"/wiki/Foo-%2B-Bar\">Foo / Bar</a> b</p>\n"); }); it ("should replace {{TOC}} with the table of contents", function() { var text = "{{TOC}}\n\n # Heading 1 \n\n This is some text"; expect(Renderer.render(text)).to.be.equal("<ul>\n<li><p><a href=\"#heading-1\">Heading 1</a></p>\n<h1 id=\"heading-1\">Heading 1</h1>\n<p>This is some text</p>\n</li>\n</ul>\n"); }); });
44.916667
207
0.577922
c0f9cf86170330b114626e4d4440f1230fca19e2
120,933
js
JavaScript
node_modules/rc-color-picker/dist/rc-color-picker.min.js
sajas-nm/medapp-test
b6074b171ef6489ce7efe4ae38ee50f8ffeb08cd
[ "MIT" ]
null
null
null
node_modules/rc-color-picker/dist/rc-color-picker.min.js
sajas-nm/medapp-test
b6074b171ef6489ce7efe4ae38ee50f8ffeb08cd
[ "MIT" ]
null
null
null
node_modules/rc-color-picker/dist/rc-color-picker.min.js
sajas-nm/medapp-test
b6074b171ef6489ce7efe4ae38ee50f8ffeb08cd
[ "MIT" ]
null
null
null
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports["rc-color-picker"]=t(require("react"),require("react-dom")):e["rc-color-picker"]=t(e.React,e.ReactDOM)}(this,function(e,t){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){n(1),e.exports=n(2)},function(e,t){},function(e,t,n){"use strict";e.exports=n(3),e.exports.Panel=n(135)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){for(var n=Object.getOwnPropertyNames(t),o=0;o<n.length;o++){var r=n[o],i=Object.getOwnPropertyDescriptor(t,r);i&&i.configurable&&void 0===e[r]&&Object.defineProperty(e,r,i)}return e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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}function u(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):r(e,t))}function s(e,t){this[e]=t}function l(e){e.preventDefault()}Object.defineProperty(t,"__esModule",{value:!0});var f=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(o=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&u.return&&u.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),c=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},p=n(4),d=o(p),h=n(5),m=n(6),v=o(m),g=n(11),y=o(g),b=n(135),_=o(b),w=n(146),x=o(w),E=n(136),C=o(E),O=function(e){function t(n){i(this,t);var o=a(this,e.call(this,n)),r="undefined"==typeof n.alpha?n.defaultAlpha:Math.min(n.alpha,n.defaultAlpha);o.state={color:n.color||n.defaultColor,alpha:r,open:!1};var u=["onTriggerClick","onChange","onBlur","getPickerElement","getRootDOMNode","getTriggerDOMNode","onVisibleChange","onPanelMount","setOpen","open","close","focus"];return u.forEach(function(e){o[e]=o[e].bind(o)}),o.saveTriggerRef=s.bind(o,"triggerInstance"),o}return u(t,e),t.prototype.componentWillReceiveProps=function(e){e.color&&this.setState({color:e.color}),null!==e.alpha&&void 0!==e.alpha&&this.setState({alpha:e.alpha})},t.prototype.onTriggerClick=function(){this.setState({open:!this.state.open})},t.prototype.onChange=function(e){var t=this;this.setState(c({},e),function(){t.props.onChange(t.state)})},t.prototype.onBlur=function(){this.setOpen(!1)},t.prototype.onVisibleChange=function(e){this.setOpen(e)},t.prototype.onPanelMount=function(e){this.state.open&&setTimeout(function(){e.focus()},1)},t.prototype.setOpen=function(e,t){var n=this;this.state.open!==e&&this.setState({open:e},function(){"function"==typeof t&&t();var e=n.props,o=e.onOpen,r=e.onClose;n.state.open?o(n.state):r(n.state)})},t.prototype.getRootDOMNode=function(){return(0,h.findDOMNode)(this)},t.prototype.getTriggerDOMNode=function(){return(0,h.findDOMNode)(this.triggerInstance)},t.prototype.getPickerElement=function(){return d.default.createElement(_.default,{onMount:this.onPanelMount,defaultColor:this.state.color,alpha:this.state.alpha,enableAlpha:this.props.enableAlpha,prefixCls:this.props.prefixCls+"-panel",onChange:this.onChange,onBlur:this.onBlur,mode:this.props.mode,className:this.props.className})},t.prototype.open=function(e){this.setOpen(!0,e)},t.prototype.close=function(e){this.setOpen(!1,e)},t.prototype.focus=function(){this.state.open||(0,h.findDOMNode)(this).focus()},t.prototype.render=function(){var e=this.props,t=this.state,n=[e.prefixCls+"-wrap",e.className];t.open&&n.push(e.prefixCls+"-open");var o=e.children,r=f(new C.default(this.state.color).RGB,3),i=r[0],a=r[1],u=r[2],s=[i,a,u];s.push(this.state.alpha/100),o&&(o=d.default.cloneElement(o,{ref:this.saveTriggerRef,unselectable:"unselectable",style:{backgroundColor:"rgba("+s.join(",")+")"},onClick:this.onTriggerClick,onMouseDown:l}));var c=e.prefixCls,p=e.placement,h=e.style,m=e.getCalendarContainer,v=e.align,g=e.animation,b=e.disabled,_=e.transitionName;return d.default.createElement("div",{className:n.join(" ")},d.default.createElement(y.default,{popup:this.getPickerElement(),popupAlign:v,builtinPlacements:x.default,popupPlacement:p,action:b?[]:["click"],destroyPopupOnHide:!0,getPopupContainer:m,popupStyle:h,popupAnimation:g,popupTransitionName:_,popupVisible:t.open,onPopupVisibleChange:this.onVisibleChange,prefixCls:c},o))},t}(d.default.Component);t.default=O,O.propTypes={defaultColor:v.default.string,defaultAlpha:v.default.number,alpha:v.default.number,children:v.default.node.isRequired,className:v.default.string,color:v.default.string,enableAlpha:v.default.bool,mode:v.default.oneOf(["RGB","HSL","HSB"]),onChange:v.default.func,onClose:v.default.func,onOpen:v.default.func,placement:v.default.oneOf(["topLeft","topRight","bottomLeft","bottomRight"]),prefixCls:v.default.string.isRequired,style:v.default.object},O.defaultProps={defaultColor:"#F00",defaultAlpha:100,onChange:function(){},onOpen:function(){},onClose:function(){},children:d.default.createElement("span",{className:"rc-color-picker-trigger"}),className:"",enableAlpha:!0,placement:"topLeft",prefixCls:"rc-color-picker",style:{}},e.exports=t.default},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){e.exports=n(7)()},function(e,t,n){"use strict";var o=n(8),r=n(9),i=n(10);e.exports=function(){function e(e,t,n,o,a,u){u!==i&&r(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=o,n.PropTypes=n,n}},function(e,t){"use strict";function n(e){return function(){return e}}var o=function(){};o.thatReturns=n,o.thatReturnsFalse=n(!1),o.thatReturnsTrue=n(!0),o.thatReturnsNull=n(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";function o(e,t,n,o,i,a,u,s){if(r(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[n,o,i,a,u,s],c=0;l=new Error(t.replace(/%s/g,function(){return f[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}var r=function(e){};e.exports=o},function(e,t){"use strict";var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=n},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(){}function i(){return""}function a(){return window.document}Object.defineProperty(t,"__esModule",{value:!0});var u=n(12),s=o(u),l=n(4),f=o(l),c=n(6),p=o(c),d=n(5),h=n(50),m=o(h),v=n(54),g=o(v),y=n(55),b=o(y),_=n(59),w=o(_),x=n(133),E=n(134),C=o(E),O="undefined"!=typeof navigator&&!!navigator.userAgent.match(/(Android|iPhone|iPad|iPod|iOS|UCWEB)/i),P=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"],M=(0,m.default)({displayName:"Trigger",propTypes:{children:p.default.any,action:p.default.oneOfType([p.default.string,p.default.arrayOf(p.default.string)]),showAction:p.default.any,hideAction:p.default.any,getPopupClassNameFromAlign:p.default.any,onPopupVisibleChange:p.default.func,afterPopupVisibleChange:p.default.func,popup:p.default.oneOfType([p.default.node,p.default.func]).isRequired,popupStyle:p.default.object,prefixCls:p.default.string,popupClassName:p.default.string,popupPlacement:p.default.string,builtinPlacements:p.default.object,popupTransitionName:p.default.oneOfType([p.default.string,p.default.object]),popupAnimation:p.default.any,mouseEnterDelay:p.default.number,mouseLeaveDelay:p.default.number,zIndex:p.default.number,focusDelay:p.default.number,blurDelay:p.default.number,getPopupContainer:p.default.func,getDocument:p.default.func,destroyPopupOnHide:p.default.bool,mask:p.default.bool,maskClosable:p.default.bool,onPopupAlign:p.default.func,popupAlign:p.default.object,popupVisible:p.default.bool,maskTransitionName:p.default.oneOfType([p.default.string,p.default.object]),maskAnimation:p.default.string},mixins:[(0,C.default)({autoMount:!1,isVisible:function(e){return e.state.popupVisible},getContainer:function(e){var t=e.props,n=document.createElement("div");n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%";var o=t.getPopupContainer?t.getPopupContainer((0,d.findDOMNode)(e)):t.getDocument().body;return o.appendChild(n),n}})],getDefaultProps:function(){return{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:i,getDocument:a,onPopupVisibleChange:r,afterPopupVisibleChange:r,onPopupAlign:r,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[]}},getInitialState:function(){var e=this.props,t=void 0;return t="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,{popupVisible:t}},componentWillMount:function(){var e=this;P.forEach(function(t){e["fire"+t]=function(n){e.fireEvents(t,n)}})},componentDidMount:function(){this.componentDidUpdate({},{popupVisible:this.state.popupVisible})},componentWillReceiveProps:function(e){var t=e.popupVisible;void 0!==t&&this.setState({popupVisible:t})},componentDidUpdate:function(e,t){var n=this.props,o=this.state;if(this.renderComponent(null,function(){t.popupVisible!==o.popupVisible&&n.afterPopupVisibleChange(o.popupVisible)}),o.popupVisible){var r=void 0;return!this.clickOutsideHandler&&this.isClickToHide()&&(r=n.getDocument(),this.clickOutsideHandler=(0,b.default)(r,"mousedown",this.onDocumentClick)),void(!this.touchOutsideHandler&&O&&(r=r||n.getDocument(),this.touchOutsideHandler=(0,b.default)(r,"click",this.onDocumentClick)))}this.clearOutsideHandler()},componentWillUnmount:function(){this.clearDelayTimer(),this.clearOutsideHandler()},onMouseEnter:function(e){this.fireEvents("onMouseEnter",e),this.delaySetPopupVisible(!0,this.props.mouseEnterDelay)},onMouseLeave:function(e){this.fireEvents("onMouseLeave",e),this.delaySetPopupVisible(!1,this.props.mouseLeaveDelay)},onPopupMouseEnter:function(){this.clearDelayTimer()},onPopupMouseLeave:function(e){e.relatedTarget&&!e.relatedTarget.setTimeout&&this._component&&this._component.getPopupDomNode&&(0,g.default)(this._component.getPopupDomNode(),e.relatedTarget)||this.delaySetPopupVisible(!1,this.props.mouseLeaveDelay)},onFocus:function(e){this.fireEvents("onFocus",e),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.props.focusDelay))},onMouseDown:function(e){this.fireEvents("onMouseDown",e),this.preClickTime=Date.now()},onTouchStart:function(e){this.fireEvents("onTouchStart",e),this.preTouchTime=Date.now()},onBlur:function(e){this.fireEvents("onBlur",e),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.props.blurDelay)},onClick:function(e){if(this.fireEvents("onClick",e),this.focusTime){var t=void 0;if(this.preClickTime&&this.preTouchTime?t=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?t=this.preClickTime:this.preTouchTime&&(t=this.preTouchTime),Math.abs(t-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,e.preventDefault();var n=!this.state.popupVisible;(this.isClickToHide()&&!n||n&&this.isClickToShow())&&this.setPopupVisible(!this.state.popupVisible)},onDocumentClick:function(e){if(!this.props.mask||this.props.maskClosable){var t=e.target,n=(0,d.findDOMNode)(this),o=this.getPopupDomNode();(0,g.default)(n,t)||(0,g.default)(o,t)||this.close()}},getPopupDomNode:function(){return this._component&&this._component.getPopupDomNode?this._component.getPopupDomNode():null},getRootDomNode:function(){return(0,d.findDOMNode)(this)},getPopupClassNameFromAlign:function(e){var t=[],n=this.props,o=n.popupPlacement,r=n.builtinPlacements,i=n.prefixCls;return o&&r&&t.push((0,x.getPopupClassNameFromAlign)(r,i,e)),n.getPopupClassNameFromAlign&&t.push(n.getPopupClassNameFromAlign(e)),t.join(" ")},getPopupAlign:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,o=e.builtinPlacements;return t&&o?(0,x.getAlignFromPlacement)(o,t,n):n},getComponent:function(){var e=this.props,t=this.state,n={};return this.isMouseEnterToShow()&&(n.onMouseEnter=this.onPopupMouseEnter),this.isMouseLeaveToHide()&&(n.onMouseLeave=this.onPopupMouseLeave),f.default.createElement(w.default,(0,s.default)({prefixCls:e.prefixCls,destroyPopupOnHide:e.destroyPopupOnHide,visible:t.popupVisible,className:e.popupClassName,action:e.action,align:this.getPopupAlign(),onAlign:e.onPopupAlign,animation:e.popupAnimation,getClassNameFromAlign:this.getPopupClassNameFromAlign},n,{getRootDomNode:this.getRootDomNode,style:e.popupStyle,mask:e.mask,zIndex:e.zIndex,transitionName:e.popupTransitionName,maskAnimation:e.maskAnimation,maskTransitionName:e.maskTransitionName}),"function"==typeof e.popup?e.popup():e.popup)},setPopupVisible:function(e){this.clearDelayTimer(),this.state.popupVisible!==e&&("popupVisible"in this.props||this.setState({popupVisible:e}),this.props.onPopupVisibleChange(e))},delaySetPopupVisible:function(e,t){var n=this,o=1e3*t;this.clearDelayTimer(),o?this.delayTimer=setTimeout(function(){n.setPopupVisible(e),n.clearDelayTimer()},o):this.setPopupVisible(e)},clearDelayTimer:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},clearOutsideHandler:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},createTwoChains:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire"+e]:t[e]||n[e]},isClickToShow:function(){var e=this.props,t=e.action,n=e.showAction;return t.indexOf("click")!==-1||n.indexOf("click")!==-1},isClickToHide:function(){var e=this.props,t=e.action,n=e.hideAction;return t.indexOf("click")!==-1||n.indexOf("click")!==-1},isMouseEnterToShow:function(){var e=this.props,t=e.action,n=e.showAction;return t.indexOf("hover")!==-1||n.indexOf("mouseEnter")!==-1},isMouseLeaveToHide:function(){var e=this.props,t=e.action,n=e.hideAction;return t.indexOf("hover")!==-1||n.indexOf("mouseLeave")!==-1},isFocusToShow:function(){var e=this.props,t=e.action,n=e.showAction;return t.indexOf("focus")!==-1||n.indexOf("focus")!==-1},isBlurToHide:function(){var e=this.props,t=e.action,n=e.hideAction;return t.indexOf("focus")!==-1||n.indexOf("blur")!==-1},forcePopupAlign:function(){this.state.popupVisible&&this._component&&this._component.alignInstance&&this._component.alignInstance.forceAlign()},fireEvents:function(e,t){var n=this.props.children.props[e];n&&n(t);var o=this.props[e];o&&o(t)},close:function(){this.setPopupVisible(!1)},render:function(){var e=this.props,t=e.children,n=f.default.Children.only(t),o={};return this.isClickToHide()||this.isClickToShow()?(o.onClick=this.onClick,o.onMouseDown=this.onMouseDown,o.onTouchStart=this.onTouchStart):(o.onClick=this.createTwoChains("onClick"),o.onMouseDown=this.createTwoChains("onMouseDown"),o.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?o.onMouseEnter=this.onMouseEnter:o.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?o.onMouseLeave=this.onMouseLeave:o.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(o.onFocus=this.onFocus,o.onBlur=this.onBlur):(o.onFocus=this.createTwoChains("onFocus"),o.onBlur=this.createTwoChains("onBlur")),f.default.cloneElement(n,o)}});t.default=M,e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(13),i=o(r);t.default=i.default||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}},function(e,t,n){e.exports={default:n(14),__esModule:!0}},function(e,t,n){n(15),e.exports=n(18).Object.assign},function(e,t,n){var o=n(16);o(o.S+o.F,"Object",{assign:n(31)})},function(e,t,n){var o=n(17),r=n(18),i=n(19),a=n(21),u="prototype",s=function(e,t,n){var l,f,c,p=e&s.F,d=e&s.G,h=e&s.S,m=e&s.P,v=e&s.B,g=e&s.W,y=d?r:r[t]||(r[t]={}),b=y[u],_=d?o:h?o[t]:(o[t]||{})[u];d&&(n=t);for(l in n)f=!p&&_&&void 0!==_[l],f&&l in y||(c=f?_[l]:n[l],y[l]=d&&"function"!=typeof _[l]?n[l]:v&&f?i(c,o):g&&_[l]==c?function(e){var t=function(t,n,o){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,o)}return e.apply(this,arguments)};return t[u]=e[u],t}(c):m&&"function"==typeof c?i(Function.call,c):c,m&&((y.virtual||(y.virtual={}))[l]=c,e&s.R&&b&&!b[l]&&a(b,l,c)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){var n=e.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},function(e,t,n){var o=n(20);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var o=n(22),r=n(30);e.exports=n(26)?function(e,t,n){return o.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var o=n(23),r=n(25),i=n(29),a=Object.defineProperty;t.f=n(26)?Object.defineProperty:function(e,t,n){if(o(e),t=i(t,!0),o(n),r)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var o=n(24);e.exports=function(e){if(!o(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(26)&&!n(27)(function(){return 7!=Object.defineProperty(n(28)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){e.exports=!n(27)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var o=n(24),r=n(17).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t,n){var o=n(24);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var o=n(32),r=n(47),i=n(48),a=n(49),u=n(36),s=Object.assign;e.exports=!s||n(27)(function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!=s({},e)[n]||Object.keys(s({},t)).join("")!=o})?function(e,t){for(var n=a(e),s=arguments.length,l=1,f=r.f,c=i.f;s>l;)for(var p,d=u(arguments[l++]),h=f?o(d).concat(f(d)):o(d),m=h.length,v=0;m>v;)c.call(d,p=h[v++])&&(n[p]=d[p]);return n}:s},function(e,t,n){var o=n(33),r=n(46);e.exports=Object.keys||function(e){return o(e,r)}},function(e,t,n){var o=n(34),r=n(35),i=n(39)(!1),a=n(43)("IE_PROTO");e.exports=function(e,t){var n,u=r(e),s=0,l=[];for(n in u)n!=a&&o(u,n)&&l.push(n);for(;t.length>s;)o(u,n=t[s++])&&(~i(l,n)||l.push(n));return l}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var o=n(36),r=n(38);e.exports=function(e){return o(r(e))}},function(e,t,n){var o=n(37);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var o=n(35),r=n(40),i=n(42);e.exports=function(e){return function(t,n,a){var u,s=o(t),l=r(s.length),f=i(a,l);if(e&&n!=n){for(;l>f;)if(u=s[f++],u!=u)return!0}else for(;l>f;f++)if((e||f in s)&&s[f]===n)return e||f||0;return!e&&-1}}},function(e,t,n){var o=n(41),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){var o=n(41),r=Math.max,i=Math.min;e.exports=function(e,t){return e=o(e),e<0?r(e+t,0):i(e,t)}},function(e,t,n){var o=n(44)("keys"),r=n(45);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t,n){var o=n(17),r="__core-js_shared__",i=o[r]||(o[r]={});e.exports=function(e){return i[e]||(i[e]={})}},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var o=n(38);e.exports=function(e){return Object(o(e))}},function(e,t,n){"use strict";var o=n(4),r=n(51);if("undefined"==typeof o)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var i=(new o.Component).updater;e.exports=r(o.Component,o.isValidElement,i)},function(e,t,n){"use strict";function o(e){return e}function r(e,t,n){function r(e,t){var n=y.hasOwnProperty(t)?y[t]:null;E.hasOwnProperty(t)&&s("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&s("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function i(e,n){if(n){s("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),s(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var o=e.prototype,i=o.__reactAutoBindPairs;n.hasOwnProperty(l)&&_.mixins(e,n.mixins);for(var a in n)if(n.hasOwnProperty(a)&&a!==l){var u=n[a],f=o.hasOwnProperty(a);if(r(f,a),_.hasOwnProperty(a))_[a](e,u);else{var c=y.hasOwnProperty(a),h="function"==typeof u,m=h&&!c&&!f&&n.autobind!==!1;if(m)i.push(a,u),o[a]=u;else if(f){var v=y[a];s(c&&("DEFINE_MANY_MERGED"===v||"DEFINE_MANY"===v),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",v,a),"DEFINE_MANY_MERGED"===v?o[a]=p(o[a],u):"DEFINE_MANY"===v&&(o[a]=d(o[a],u))}else o[a]=u}}}else;}function f(e,t){if(t)for(var n in t){var o=t[n];if(t.hasOwnProperty(n)){var r=n in _;s(!r,'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n);var i=n in e;if(i){var a=b.hasOwnProperty(n)?b[n]:null;return s("DEFINE_MANY_MERGED"===a,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),void(e[n]=p(e[n],o))}e[n]=o}}}function c(e,t){s(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects.");for(var n in t)t.hasOwnProperty(n)&&(s(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function p(e,t){return function(){var n=e.apply(this,arguments),o=t.apply(this,arguments);if(null==n)return o;if(null==o)return n;var r={};return c(r,n),c(r,o),r}}function d(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function h(e,t){var n=t.bind(e);return n}function m(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var o=t[n],r=t[n+1];e[o]=h(e,r)}}function v(e){var t=o(function(e,o,r){this.__reactAutoBindPairs.length&&m(this),this.props=e,this.context=o,this.refs=u,this.updater=r||n,this.state=null;var i=this.getInitialState?this.getInitialState():null;s("object"==typeof i&&!Array.isArray(i),"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"),this.state=i});t.prototype=new C,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],g.forEach(i.bind(null,t)),i(t,w),i(t,e),i(t,x),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),s(t.prototype.render,"createClass(...): Class specification must implement a `render` method.");for(var r in y)t.prototype[r]||(t.prototype[r]=null);return t}var g=[],y={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},b={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},_={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)i(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=a({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=a({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=p(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=a({},e.propTypes,t)},statics:function(e,t){f(e,t)},autobind:function(){}},w={componentDidMount:function(){this.__isMounted=!0}},x={componentWillUnmount:function(){this.__isMounted=!1}},E={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},C=function(){};return a(C.prototype,e.prototype,E),v}var i,a=n(52),u=n(53),s=n(9),l="mixins";i={},e.exports=r},function(e,t){/* object-assign (c) Sindre Sorhus @license MIT */ "use strict";function n(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var o=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==o.join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=o()?Object.assign:function(e,t){for(var o,u,s=n(e),l=1;l<arguments.length;l++){o=Object(arguments[l]);for(var f in o)i.call(o,f)&&(s[f]=o[f]);if(r){u=r(o);for(var c=0;c<u.length;c++)a.call(o,u[c])&&(s[u[c]]=o[u[c]])}}return s}},function(e,t,n){"use strict";var o={};e.exports=o},function(e,t){"use strict";function n(e,t){for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){var o=s.default.unstable_batchedUpdates?function(e){s.default.unstable_batchedUpdates(n,e)}:n;return(0,a.default)(e,t,o)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(56),a=o(i),u=n(5),s=o(u);e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){function o(t){var o=new a.default(t);n.call(e,o)}return e.addEventListener?(e.addEventListener(t,o,!1),{remove:function(){e.removeEventListener(t,o,!1)}}):e.attachEvent?(e.attachEvent("on"+t,o),{remove:function(){e.detachEvent("on"+t,o)}}):void 0}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(57),a=o(i);e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e){return null===e||void 0===e}function i(){return p}function a(){return d}function u(e){var t=e.type,n="function"==typeof e.stopPropagation||"boolean"==typeof e.cancelBubble;l.default.call(this),this.nativeEvent=e;var o=a;"defaultPrevented"in e?o=e.defaultPrevented?i:a:"getPreventDefault"in e?o=e.getPreventDefault()?i:a:"returnValue"in e&&(o=e.returnValue===d?i:a),this.isDefaultPrevented=o;var r=[],u=void 0,s=void 0,f=void 0,c=h.concat();for(m.forEach(function(e){t.match(e.reg)&&(c=c.concat(e.props),e.fix&&r.push(e.fix))}),s=c.length;s;)f=c[--s],this[f]=e[f];for(!this.target&&n&&(this.target=e.srcElement||document),this.target&&3===this.target.nodeType&&(this.target=this.target.parentNode),s=r.length;s;)(u=r[--s])(this,e);this.timeStamp=e.timeStamp||Date.now()}Object.defineProperty(t,"__esModule",{value:!0});var s=n(58),l=o(s),f=n(52),c=o(f),p=!0,d=!1,h=["altKey","bubbles","cancelable","ctrlKey","currentTarget","eventPhase","metaKey","shiftKey","target","timeStamp","view","type"],m=[{reg:/^key/,props:["char","charCode","key","keyCode","which"],fix:function(e,t){r(e.which)&&(e.which=r(t.charCode)?t.keyCode:t.charCode),void 0===e.metaKey&&(e.metaKey=e.ctrlKey)}},{reg:/^touch/,props:["touches","changedTouches","targetTouches"]},{reg:/^hashchange$/,props:["newURL","oldURL"]},{reg:/^gesturechange$/i,props:["rotation","scale"]},{reg:/^(mousewheel|DOMMouseScroll)$/,props:[],fix:function(e,t){var n=void 0,o=void 0,r=void 0,i=t.wheelDelta,a=t.axis,u=t.wheelDeltaY,s=t.wheelDeltaX,l=t.detail;i&&(r=i/120),l&&(r=0-(l%3===0?l/3:l)),void 0!==a&&(a===e.HORIZONTAL_AXIS?(o=0,n=0-r):a===e.VERTICAL_AXIS&&(n=0,o=r)),void 0!==u&&(o=u/120),void 0!==s&&(n=-1*s/120),n||o||(o=r),void 0!==n&&(e.deltaX=n),void 0!==o&&(e.deltaY=o),void 0!==r&&(e.delta=r)}},{reg:/^mouse|contextmenu|click|mspointer|(^DOMMouseScroll$)/i,props:["buttons","clientX","clientY","button","offsetX","relatedTarget","which","fromElement","toElement","offsetY","pageX","pageY","screenX","screenY"],fix:function(e,t){var n=void 0,o=void 0,i=void 0,a=e.target,u=t.button;return a&&r(e.pageX)&&!r(t.clientX)&&(n=a.ownerDocument||document,o=n.documentElement,i=n.body,e.pageX=t.clientX+(o&&o.scrollLeft||i&&i.scrollLeft||0)-(o&&o.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(o&&o.scrollTop||i&&i.scrollTop||0)-(o&&o.clientTop||i&&i.clientTop||0)),e.which||void 0===u||(1&u?e.which=1:2&u?e.which=3:4&u?e.which=2:e.which=0),!e.relatedTarget&&e.fromElement&&(e.relatedTarget=e.fromElement===a?e.toElement:e.fromElement),e}}],v=l.default.prototype;(0,c.default)(u.prototype,v,{constructor:u,preventDefault:function(){var e=this.nativeEvent;e.preventDefault?e.preventDefault():e.returnValue=d,v.preventDefault.call(this)},stopPropagation:function(){var e=this.nativeEvent;e.stopPropagation?e.stopPropagation():e.cancelBubble=p,v.stopPropagation.call(this)}}),t.default=u,e.exports=t.default},function(e,t){"use strict";function n(){return!1}function o(){return!0}function r(){this.timeStamp=Date.now(),this.target=void 0,this.currentTarget=void 0}Object.defineProperty(t,"__esModule",{value:!0}),r.prototype={isEventObject:1,constructor:r,isDefaultPrevented:n,isPropagationStopped:n,isImmediatePropagationStopped:n,preventDefault:function(){this.isDefaultPrevented=o},stopPropagation:function(){this.isPropagationStopped=o},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=o,this.stopPropagation()},halt:function(e){e?this.stopImmediatePropagation():this.stopPropagation(),this.preventDefault()}},t.default=r,e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),i=o(r),a=n(60),u=o(a),s=n(61),l=o(s),f=n(65),c=o(f),p=n(100),d=o(p),h=n(4),m=o(h),v=n(6),g=o(v),y=n(5),b=o(y),_=n(108),w=o(_),x=n(121),E=o(x),C=n(130),O=o(C),P=n(131),M=o(P),T=n(133),A=function(e){function t(e){(0,u.default)(this,t);var n=(0,c.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return k.call(n),n.savePopupRef=T.saveRef.bind(n,"popupInstance"),n.saveAlignRef=T.saveRef.bind(n,"alignInstance"),n}return(0,d.default)(t,e),(0,l.default)(t,[{key:"componentDidMount",value:function(){this.rootNode=this.getPopupDomNode()}},{key:"getPopupDomNode",value:function(){return b.default.findDOMNode(this.popupInstance)}},{key:"getMaskTransitionName",value:function(){var e=this.props,t=e.maskTransitionName,n=e.maskAnimation;return!t&&n&&(t=e.prefixCls+"-"+n),t}},{key:"getTransitionName",value:function(){var e=this.props,t=e.transitionName;return!t&&e.animation&&(t=e.prefixCls+"-"+e.animation),t}},{key:"getClassName",value:function(e){return this.props.prefixCls+" "+this.props.className+" "+e}},{key:"getPopupElement",value:function(){var e=this.savePopupRef,t=this.props,n=t.align,o=t.style,r=t.visible,a=t.prefixCls,u=t.destroyPopupOnHide,s=this.getClassName(this.currentAlignClassName||t.getClassNameFromAlign(n)),l=a+"-hidden";r||(this.currentAlignClassName=null);var f=(0,i.default)({},o,this.getZIndexStyle()),c={className:s,prefixCls:a,ref:e,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,style:f};return u?m.default.createElement(E.default,{component:"",exclusive:!0,transitionAppear:!0,transitionName:this.getTransitionName()},r?m.default.createElement(w.default,{target:this.getTarget,key:"popup",ref:this.saveAlignRef,monitorWindowResize:!0,align:n,onAlign:this.onAlign},m.default.createElement(O.default,(0,i.default)({visible:!0},c),t.children)):null):m.default.createElement(E.default,{component:"",exclusive:!0,transitionAppear:!0,transitionName:this.getTransitionName(),showProp:"xVisible"},m.default.createElement(w.default,{target:this.getTarget,key:"popup",ref:this.saveAlignRef,monitorWindowResize:!0,xVisible:r,childrenProps:{visible:"xVisible"},disabled:!r,align:n,onAlign:this.onAlign},m.default.createElement(O.default,(0,i.default)({hiddenClassName:l},c),t.children)))}},{key:"getZIndexStyle",value:function(){var e={},t=this.props;return void 0!==t.zIndex&&(e.zIndex=t.zIndex),e}},{key:"getMaskElement",value:function(){var e=this.props,t=void 0;if(e.mask){var n=this.getMaskTransitionName();t=m.default.createElement(M.default,{style:this.getZIndexStyle(),key:"mask",className:e.prefixCls+"-mask",hiddenClassName:e.prefixCls+"-mask-hidden",visible:e.visible}),n&&(t=m.default.createElement(E.default,{key:"mask",showProp:"visible",transitionAppear:!0,component:"",transitionName:n},t))}return t}},{key:"render",value:function(){return m.default.createElement("div",null,this.getMaskElement(),this.getPopupElement())}}]),t}(h.Component);A.propTypes={visible:g.default.bool,style:g.default.object,getClassNameFromAlign:g.default.func,onAlign:g.default.func,getRootDomNode:g.default.func,onMouseEnter:g.default.func,align:g.default.any,destroyPopupOnHide:g.default.bool,className:g.default.string,prefixCls:g.default.string,onMouseLeave:g.default.func};var k=function(){var e=this;this.onAlign=function(t,n){var o=e.props,r=o.getClassNameFromAlign(n);e.currentAlignClassName!==r&&(e.currentAlignClassName=r,t.className=e.getClassName(r)),o.onAlign(t,n)},this.getTarget=function(){return e.props.getRootDomNode()}};t.default=A,e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(62),i=o(r);t.default=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),(0,i.default)(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}()},function(e,t,n){e.exports={default:n(63),__esModule:!0}},function(e,t,n){n(64);var o=n(18).Object;e.exports=function(e,t,n){return o.defineProperty(e,t,n)}},function(e,t,n){var o=n(16);o(o.S+o.F*!n(26),"Object",{defineProperty:n(22).f})},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(66),i=o(r);t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"==typeof t?"undefined":(0,i.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(67),i=o(r),a=n(87),u=o(a),s="function"==typeof u.default&&"symbol"==typeof i.default?function(e){return typeof e}:function(e){return e&&"function"==typeof u.default&&e.constructor===u.default&&e!==u.default.prototype?"symbol":typeof e};t.default="function"==typeof u.default&&"symbol"===s(i.default)?function(e){return"undefined"==typeof e?"undefined":s(e)}:function(e){return e&&"function"==typeof u.default&&e.constructor===u.default&&e!==u.default.prototype?"symbol":"undefined"==typeof e?"undefined":s(e)}},function(e,t,n){e.exports={default:n(68),__esModule:!0}},function(e,t,n){n(69),n(82),e.exports=n(86).f("iterator")},function(e,t,n){"use strict";var o=n(70)(!0);n(71)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=o(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){var o=n(41),r=n(38);e.exports=function(e){return function(t,n){var i,a,u=String(r(t)),s=o(n),l=u.length;return s<0||s>=l?e?"":void 0:(i=u.charCodeAt(s),i<55296||i>56319||s+1===l||(a=u.charCodeAt(s+1))<56320||a>57343?e?u.charAt(s):i:e?u.slice(s,s+2):(i-55296<<10)+(a-56320)+65536)}}},function(e,t,n){"use strict";var o=n(72),r=n(16),i=n(73),a=n(21),u=n(34),s=n(74),l=n(75),f=n(79),c=n(81),p=n(80)("iterator"),d=!([].keys&&"next"in[].keys()),h="@@iterator",m="keys",v="values",g=function(){return this};e.exports=function(e,t,n,y,b,_,w){l(n,t,y);var x,E,C,O=function(e){if(!d&&e in A)return A[e];switch(e){case m:return function(){return new n(this,e)};case v:return function(){return new n(this,e)}}return function(){return new n(this,e)}},P=t+" Iterator",M=b==v,T=!1,A=e.prototype,k=A[p]||A[h]||b&&A[b],S=!d&&k||O(b),N=b?M?O("entries"):S:void 0,j="Array"==t?A.entries||k:k;if(j&&(C=c(j.call(new e)),C!==Object.prototype&&C.next&&(f(C,P,!0),o||u(C,p)||a(C,p,g))),M&&k&&k.name!==v&&(T=!0,S=function(){return k.call(this)}),o&&!w||!d&&!T&&A[p]||a(A,p,S),s[t]=S,s[P]=g,b)if(x={values:M?S:O(v),keys:_?S:O(m),entries:N},w)for(E in x)E in A||i(A,E,x[E]);else r(r.P+r.F*(d||T),t,x);return x}},function(e,t){e.exports=!0},function(e,t,n){e.exports=n(21)},function(e,t){e.exports={}},function(e,t,n){"use strict";var o=n(76),r=n(30),i=n(79),a={};n(21)(a,n(80)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=o(a,{next:r(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var o=n(23),r=n(77),i=n(46),a=n(43)("IE_PROTO"),u=function(){},s="prototype",l=function(){var e,t=n(28)("iframe"),o=i.length,r="<",a=">";for(t.style.display="none",n(78).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+a+"document.F=Object"+r+"/script"+a),e.close(),l=e.F;o--;)delete l[s][i[o]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(u[s]=o(e),n=new u,u[s]=null,n[a]=e):n=l(),void 0===t?n:r(n,t)}},function(e,t,n){var o=n(22),r=n(23),i=n(32);e.exports=n(26)?Object.defineProperties:function(e,t){r(e);for(var n,a=i(t),u=a.length,s=0;u>s;)o.f(e,n=a[s++],t[n]);return e}},function(e,t,n){var o=n(17).document;e.exports=o&&o.documentElement},function(e,t,n){var o=n(22).f,r=n(34),i=n(80)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t,n){var o=n(44)("wks"),r=n(45),i=n(17).Symbol,a="function"==typeof i,u=e.exports=function(e){return o[e]||(o[e]=a&&i[e]||(a?i:r)("Symbol."+e))};u.store=o},function(e,t,n){var o=n(34),r=n(49),i=n(43)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),o(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){n(83);for(var o=n(17),r=n(21),i=n(74),a=n(80)("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),s=0;s<u.length;s++){var l=u[s],f=o[l],c=f&&f.prototype;c&&!c[a]&&r(c,a,l),i[l]=i.Array}},function(e,t,n){"use strict";var o=n(84),r=n(85),i=n(74),a=n(35);e.exports=n(71)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):"keys"==t?r(0,n):"values"==t?r(0,e[n]):r(0,[n,e[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){t.f=n(80)},function(e,t,n){e.exports={default:n(88),__esModule:!0}},function(e,t,n){n(89),n(97),n(98),n(99),e.exports=n(18).Symbol},function(e,t,n){"use strict";var o=n(17),r=n(34),i=n(26),a=n(16),u=n(73),s=n(90).KEY,l=n(27),f=n(44),c=n(79),p=n(45),d=n(80),h=n(86),m=n(91),v=n(92),g=n(93),y=n(23),b=n(24),_=n(35),w=n(29),x=n(30),E=n(76),C=n(94),O=n(96),P=n(22),M=n(32),T=O.f,A=P.f,k=C.f,S=o.Symbol,N=o.JSON,j=N&&N.stringify,D="prototype",L=d("_hidden"),R=d("toPrimitive"),I={}.propertyIsEnumerable,F=f("symbol-registry"),H=f("symbols"),V=f("op-symbols"),B=Object[D],W="function"==typeof S,Y=o.QObject,U=!Y||!Y[D]||!Y[D].findChild,z=i&&l(function(){return 7!=E(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a})?function(e,t,n){var o=T(B,t);o&&delete B[t],A(e,t,n),o&&e!==B&&A(B,t,o)}:A,X=function(e){var t=H[e]=E(S[D]);return t._k=e,t},K=W&&"symbol"==typeof S.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof S},q=function(e,t,n){return e===B&&q(V,t,n),y(e),t=w(t,!0),y(n),r(H,t)?(n.enumerable?(r(e,L)&&e[L][t]&&(e[L][t]=!1),n=E(n,{enumerable:x(0,!1)})):(r(e,L)||A(e,L,x(1,{})),e[L][t]=!0),z(e,t,n)):A(e,t,n)},G=function(e,t){y(e);for(var n,o=v(t=_(t)),r=0,i=o.length;i>r;)q(e,n=o[r++],t[n]);return e},$=function(e,t){return void 0===t?E(e):G(E(e),t)},Z=function(e){var t=I.call(this,e=w(e,!0));return!(this===B&&r(H,e)&&!r(V,e))&&(!(t||!r(this,e)||!r(H,e)||r(this,L)&&this[L][e])||t)},J=function(e,t){if(e=_(e),t=w(t,!0),e!==B||!r(H,t)||r(V,t)){var n=T(e,t);return!n||!r(H,t)||r(e,L)&&e[L][t]||(n.enumerable=!0),n}},Q=function(e){for(var t,n=k(_(e)),o=[],i=0;n.length>i;)r(H,t=n[i++])||t==L||t==s||o.push(t);return o},ee=function(e){for(var t,n=e===B,o=k(n?V:_(e)),i=[],a=0;o.length>a;)!r(H,t=o[a++])||n&&!r(B,t)||i.push(H[t]);return i};W||(S=function(){if(this instanceof S)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===B&&t.call(V,n),r(this,L)&&r(this[L],e)&&(this[L][e]=!1),z(this,e,x(1,n))};return i&&U&&z(B,e,{configurable:!0,set:t}),X(e)},u(S[D],"toString",function(){return this._k}),O.f=J,P.f=q,n(95).f=C.f=Q,n(48).f=Z,n(47).f=ee,i&&!n(72)&&u(B,"propertyIsEnumerable",Z,!0),h.f=function(e){return X(d(e))}),a(a.G+a.W+a.F*!W,{Symbol:S});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)d(te[ne++]);for(var oe=M(d.store),re=0;oe.length>re;)m(oe[re++]);a(a.S+a.F*!W,"Symbol",{for:function(e){return r(F,e+="")?F[e]:F[e]=S(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in F)if(F[t]===e)return t},useSetter:function(){U=!0},useSimple:function(){U=!1}}),a(a.S+a.F*!W,"Object",{create:$,defineProperty:q,defineProperties:G,getOwnPropertyDescriptor:J,getOwnPropertyNames:Q,getOwnPropertySymbols:ee}),N&&a(a.S+a.F*(!W||l(function(){var e=S();return"[null]"!=j([e])||"{}"!=j({a:e})||"{}"!=j(Object(e))})),"JSON",{stringify:function(e){for(var t,n,o=[e],r=1;arguments.length>r;)o.push(arguments[r++]);if(n=t=o[1],(b(t)||void 0!==e)&&!K(e))return g(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!K(t))return t}),o[1]=t,j.apply(N,o)}}),S[D][R]||n(21)(S[D],R,S[D].valueOf),c(S,"Symbol"),c(Math,"Math",!0),c(o.JSON,"JSON",!0)},function(e,t,n){var o=n(45)("meta"),r=n(24),i=n(34),a=n(22).f,u=0,s=Object.isExtensible||function(){return!0},l=!n(27)(function(){return s(Object.preventExtensions({}))}),f=function(e){a(e,o,{value:{i:"O"+ ++u,w:{}}})},c=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,o)){if(!s(e))return"F";if(!t)return"E";f(e)}return e[o].i},p=function(e,t){if(!i(e,o)){if(!s(e))return!0;if(!t)return!1;f(e)}return e[o].w},d=function(e){return l&&h.NEED&&s(e)&&!i(e,o)&&f(e),e},h=e.exports={KEY:o,NEED:!1,fastKey:c,getWeak:p,onFreeze:d}},function(e,t,n){var o=n(17),r=n(18),i=n(72),a=n(86),u=n(22).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||u(t,e,{value:a.f(e)})}},function(e,t,n){var o=n(32),r=n(47),i=n(48);e.exports=function(e){var t=o(e),n=r.f;if(n)for(var a,u=n(e),s=i.f,l=0;u.length>l;)s.call(e,a=u[l++])&&t.push(a);return t}},function(e,t,n){var o=n(37);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){var o=n(35),r=n(95).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(e){try{return r(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?u(e):r(o(e))}},function(e,t,n){var o=n(33),r=n(46).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t,n){var o=n(48),r=n(30),i=n(35),a=n(29),u=n(34),s=n(25),l=Object.getOwnPropertyDescriptor;t.f=n(26)?l:function(e,t){if(e=i(e),t=a(t,!0),s)try{return l(e,t)}catch(e){}if(u(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t){},function(e,t,n){n(91)("asyncIterator")},function(e,t,n){n(91)("observable")},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(101),i=o(r),a=n(105),u=o(a),s=n(66),l=o(s);t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof t?"undefined":(0,l.default)(t)));e.prototype=(0,u.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(i.default?(0,i.default)(e,t):e.__proto__=t)}},function(e,t,n){e.exports={default:n(102),__esModule:!0}},function(e,t,n){n(103),e.exports=n(18).Object.setPrototypeOf},function(e,t,n){var o=n(16);o(o.S,"Object",{setPrototypeOf:n(104).set})},function(e,t,n){var o=n(24),r=n(23),i=function(e,t){if(r(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{o=n(19)(Function.call,n(96).f(Object.prototype,"__proto__").set,2),o(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:o(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){e.exports={default:n(106),__esModule:!0}},function(e,t,n){n(107);var o=n(18).Object;e.exports=function(e,t){return o.create(e,t)}},function(e,t,n){var o=n(16);o(o.S,"Object",{create:n(76)})},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(109),i=o(r);t.default=i.default,e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){function n(){r&&(clearTimeout(r),r=null)}function o(){n(),r=setTimeout(e,t)}var r=void 0;return o.clear=n,o}t.__esModule=!0;var i=n(60),a=o(i),u=n(65),s=o(u),l=n(100),f=o(l),c=n(4),p=o(c),d=n(6),h=o(d),m=n(5),v=o(m),g=n(110),y=o(g),b=n(55),_=o(b),w=n(120),x=o(w),E=function(e){function t(){var n,o,r;(0,a.default)(this,t);for(var i=arguments.length,u=Array(i),l=0;l<i;l++)u[l]=arguments[l];return n=o=(0,s.default)(this,e.call.apply(e,[this].concat(u))),o.forceAlign=function(){var e=o.props;if(!e.disabled){var t=v.default.findDOMNode(o);e.onAlign(t,(0,y.default)(t,e.target(),e.align))}},r=n,(0,s.default)(o,r)}return(0,f.default)(t,e),t.prototype.componentDidMount=function(){var e=this.props;this.forceAlign(),!e.disabled&&e.monitorWindowResize&&this.startMonitorWindowResize()},t.prototype.componentDidUpdate=function(e){var t=!1,n=this.props;if(!n.disabled)if(e.disabled||e.align!==n.align)t=!0;else{var o=e.target(),r=n.target();(0,x.default)(o)&&(0,x.default)(r)?t=!1:o!==r&&(t=!0)}t&&this.forceAlign(),n.monitorWindowResize&&!n.disabled?this.startMonitorWindowResize():this.stopMonitorWindowResize()},t.prototype.componentWillUnmount=function(){this.stopMonitorWindowResize()},t.prototype.startMonitorWindowResize=function(){this.resizeHandler||(this.bufferMonitor=r(this.forceAlign,this.props.monitorBufferTime),this.resizeHandler=(0,_.default)(window,"resize",this.bufferMonitor))},t.prototype.stopMonitorWindowResize=function(){this.resizeHandler&&(this.bufferMonitor.clear(),this.resizeHandler.remove(),this.resizeHandler=null)},t.prototype.render=function(){var e=this.props,t=e.childrenProps,n=e.children,o=p.default.Children.only(n);if(t){var r={};for(var i in t)t.hasOwnProperty(i)&&(r[i]=this.props[t[i]]);return p.default.cloneElement(o,r)}return o},t}(c.Component);E.propTypes={childrenProps:h.default.object,align:h.default.object.isRequired,target:h.default.func,onAlign:h.default.func,monitorBufferTime:h.default.number,monitorWindowResize:h.default.bool,disabled:h.default.bool,children:h.default.any},E.defaultProps={target:function(){return window},onAlign:function(){},monitorBufferTime:50,monitorWindowResize:!1,disabled:!1},t.default=E,e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){return e.left<n.left||e.left+t.width>n.right}function i(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function a(e,t,n){return e.left>n.right||e.left+t.width<n.left}function u(e,t,n){return e.top>n.bottom||e.top+t.height<n.top}function s(e){var t=(0,b.default)(e),n=(0,E.default)(e);return!t||n.left+n.width<=t.left||n.top+n.height<=t.top||n.left>=t.right||n.top>=t.bottom}function l(e,t,n){var o=[];return m.default.each(e,function(e){o.push(e.replace(t,function(e){return n[e]}))}),o}function f(e,t){return e[t]=-e[t],e}function c(e,t){var n=void 0;return n=/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10),n||0}function p(e,t){e[0]=c(e[0],t.width),e[1]=c(e[1],t.height)}function d(e,t,n){var o=n.points,c=n.offset||[0,0],d=n.targetOffset||[0,0],h=n.overflow,v=n.target||t,g=n.source||e;c=[].concat(c),d=[].concat(d),h=h||{};var y={},_=0,x=(0,b.default)(g),C=(0,E.default)(g),P=(0,E.default)(v);p(c,C),p(d,P);var M=(0,O.default)(C,P,o,c,d),T=m.default.merge(C,M),A=!s(v);if(x&&(h.adjustX||h.adjustY)&&A){if(h.adjustX&&r(M,C,x)){var k=l(o,/[lr]/gi,{l:"r",r:"l"}),S=f(c,0),N=f(d,0),j=(0,O.default)(C,P,k,S,N);a(j,C,x)||(_=1,o=k,c=S,d=N)}if(h.adjustY&&i(M,C,x)){var D=l(o,/[tb]/gi,{t:"b",b:"t"}),L=f(c,1),R=f(d,1),I=(0,O.default)(C,P,D,L,R);u(I,C,x)||(_=1,o=D,c=L,d=R)}_&&(M=(0,O.default)(C,P,o,c,d),m.default.mix(T,M));var F=r(M,C,x),H=i(M,C,x);(F||H)&&(o=n.points,c=n.offset||[0,0],d=n.targetOffset||[0,0]),y.adjustX=h.adjustX&&F,y.adjustY=h.adjustY&&H,(y.adjustX||y.adjustY)&&(T=(0,w.default)(M,C,x,y))}return T.width!==C.width&&m.default.css(g,"width",m.default.width(g)+T.width-C.width),T.height!==C.height&&m.default.css(g,"height",m.default.height(g)+T.height-C.height),m.default.offset(g,{left:T.left,top:T.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform}),{points:o,offset:c,targetOffset:d,overflow:y}}Object.defineProperty(t,"__esModule",{value:!0});var h=n(111),m=o(h),v=n(113),g=o(v),y=n(114),b=o(y),_=n(116),w=o(_),x=n(117),E=o(x),C=n(118),O=o(C);d.__getOffsetParent=g.default,d.__getVisibleRectForElement=b.default,t.default=d,e.exports=t.default},function(e,t,n){"use strict";function o(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function r(e,t,n){var o=n;{if("object"!==("undefined"==typeof t?"undefined":P(t)))return"undefined"!=typeof o?("number"==typeof o&&(o+="px"),void(e.style[t]=o)):A(e,t);for(var i in t)t.hasOwnProperty(i)&&r(e,i,t[i])}}function i(e){var t=void 0,n=void 0,o=void 0,r=e.ownerDocument,i=r.body,a=r&&r.documentElement;return t=e.getBoundingClientRect(),n=t.left,o=t.top,n-=a.clientLeft||i.clientLeft||0,o-=a.clientTop||i.clientTop||0,{left:n,top:o}}function a(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],o="scroll"+(t?"Top":"Left");if("number"!=typeof n){var r=e.document;n=r.documentElement[o],"number"!=typeof n&&(n=r.body[o])}return n}function u(e){return a(e)}function s(e){return a(e,!0)}function l(e){var t=i(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=u(o),t.top+=s(o),t}function f(e){return null!==e&&void 0!==e&&e==e.window}function c(e){return f(e)?e.document:9===e.nodeType?e:e.ownerDocument}function p(e,t,n){var o=n,r="",i=c(e);return o=o||i.defaultView.getComputedStyle(e,null),o&&(r=o.getPropertyValue(t)||o[t]),r}function d(e,t){var n=e[N]&&e[N][t];if(k.test(n)&&!S.test(t)){var o=e.style,r=o[D],i=e[j][D];e[j][D]=e[N][D],o[D]="fontSize"===t?"1em":n||0,n=o.pixelLeft+L,o[D]=r,e[j][D]=i}return""===n?"auto":n}function h(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function m(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function v(e,t,n){"static"===r(e,"position")&&(e.style.position="relative");var i=-999,a=-999,u=h("left",n),s=h("top",n),f=m(u),c=m(s);"left"!==u&&(i=999),"top"!==s&&(a=999);var p="",d=l(e);("left"in t||"top"in t)&&(p=(0,M.getTransitionProperty)(e)||"",(0,M.setTransitionProperty)(e,"none")),"left"in t&&(e.style[f]="",e.style[u]=i+"px"),"top"in t&&(e.style[c]="",e.style[s]=a+"px"),o(e);var v=l(e),g={};for(var y in t)if(t.hasOwnProperty(y)){var b=h(y,n),_="left"===y?i:a,w=d[y]-v[y];b===y?g[b]=_+w:g[b]=_-w}r(e,g),o(e),("left"in t||"top"in t)&&(0,M.setTransitionProperty)(e,p);var x={};for(var E in t)if(t.hasOwnProperty(E)){var C=h(E,n),O=t[E]-d[E];E===C?x[C]=g[C]+O:x[C]=g[C]-O}r(e,x)}function g(e,t){var n=l(e),o=(0,M.getTransformXY)(e),r={x:o.x,y:o.y};"left"in t&&(r.x=o.x+t.left-n.left),"top"in t&&(r.y=o.y+t.top-n.top),(0,M.setTransformXY)(e,r)}function y(e,t,n){n.useCssRight||n.useCssBottom?v(e,t,n):n.useCssTransform&&(0,M.getTransformName)()in document.body.style?g(e,t,n):v(e,t,n)}function b(e,t){for(var n=0;n<e.length;n++)t(e[n])}function _(e){return"border-box"===A(e,"boxSizing")}function w(e,t,n){var o={},r=e.style,i=void 0;for(i in t)t.hasOwnProperty(i)&&(o[i]=r[i],r[i]=t[i]);n.call(e);for(i in t)t.hasOwnProperty(i)&&(r[i]=o[i])}function x(e,t,n){var o=0,r=void 0,i=void 0,a=void 0;for(i=0;i<t.length;i++)if(r=t[i])for(a=0;a<n.length;a++){var u=void 0;u="border"===r?""+r+n[a]+"Width":r+n[a],o+=parseFloat(A(e,u))||0}return o}function E(e,t,n){var o=n;if(f(e))return"width"===t?B.viewportWidth(e):B.viewportHeight(e);if(9===e.nodeType)return"width"===t?B.docWidth(e):B.docHeight(e);var r="width"===t?["Left","Right"]:["Top","Bottom"],i="width"===t?e.getBoundingClientRect().width:e.getBoundingClientRect().height,a=A(e),u=_(e,a),s=0;(null===i||void 0===i||i<=0)&&(i=void 0,s=A(e,t),(null===s||void 0===s||Number(s)<0)&&(s=e.style[t]||0),s=parseFloat(s)||0),void 0===o&&(o=u?H:I);var l=void 0!==i||u,c=i||s;return o===I?l?c-x(e,["border","padding"],r,a):s:l?o===H?c:c+(o===F?-x(e,["border"],r,a):x(e,["margin"],r,a)):s+x(e,R.slice(o),r,a)}function C(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=void 0,r=t[0];return 0!==r.offsetWidth?o=E.apply(void 0,t):w(r,W,function(){o=E.apply(void 0,t)}),o}function O(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}Object.defineProperty(t,"__esModule",{value:!0});var P="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=n(112),T=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,A=void 0,k=new RegExp("^("+T+")(?!px)[a-z%]+$","i"),S=/^(top|right|bottom|left)$/,N="currentStyle",j="runtimeStyle",D="left",L="px";"undefined"!=typeof window&&(A=window.getComputedStyle?p:d);var R=["margin","border","padding"],I=-1,F=2,H=1,V=0,B={};b(["Width","Height"],function(e){B["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],B["viewport"+e](n))},B["viewport"+e]=function(t){var n="client"+e,o=t.document,r=o.body,i=o.documentElement,a=i[n];return"CSS1Compat"===o.compatMode&&a||r&&r[n]||a}});var W={position:"absolute",visibility:"hidden",display:"block"};b(["width","height"],function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);B["outer"+t]=function(t,n){return t&&C(t,e,n?V:H)};var n="width"===e?["Left","Right"]:["Top","Bottom"];B[e]=function(t,o){var i=o;{if(void 0===i)return t&&C(t,e,I);if(t){var a=A(t),u=_(t);return u&&(i+=x(t,["padding","border"],n,a)),r(t,e,i)}}}});var Y={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:c,offset:function(e,t,n){return"undefined"==typeof t?l(e):void y(e,t,n||{})},isWindow:f,each:b,css:r,clone:function(e){var t=void 0,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);var o=e.overflow;if(o)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:O,getWindowScrollLeft:function(e){return u(e)},getWindowScrollTop:function(e){return s(e)},merge:function(){for(var e={},t=arguments.length,n=Array(t),o=0;o<t;o++)n[o]=arguments[o];for(var r=0;r<n.length;r++)Y.mix(e,n[r]);return e},viewportWidth:0,viewportHeight:0};O(Y,B),t.default=Y,e.exports=t.default},function(e,t){ "use strict";function n(){if(void 0!==f)return f;f="";var e=document.createElement("p").style,t="Transform";for(var n in c)n+t in e&&(f=n);return f}function o(){return n()?n()+"TransitionProperty":"transitionProperty"}function r(){return n()?n()+"Transform":"transform"}function i(e,t){var n=o();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function a(e,t){var n=r();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}function u(e){return e.style.transitionProperty||e.style[o()]}function s(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(r());if(n&&"none"!==n){var o=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(o[12]||o[4],0),y:parseFloat(o[13]||o[5],0)}}return{x:0,y:0}}function l(e,t){var n=window.getComputedStyle(e,null),o=n.getPropertyValue("transform")||n.getPropertyValue(r());if(o&&"none"!==o){var i=void 0,u=o.match(p);if(u)u=u[1],i=u.split(",").map(function(e){return parseFloat(e,10)}),i[4]=t.x,i[5]=t.y,a(e,"matrix("+i.join(",")+")");else{var s=o.match(d)[1];i=s.split(",").map(function(e){return parseFloat(e,10)}),i[12]=t.x,i[13]=t.y,a(e,"matrix3d("+i.join(",")+")")}}else a(e,"translateX("+t.x+"px) translateY("+t.y+"px) translateZ(0)")}Object.defineProperty(t,"__esModule",{value:!0}),t.getTransformName=r,t.setTransitionProperty=i,t.getTransitionProperty=u,t.getTransformXY=s,t.setTransformXY=l;var f=void 0,c={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"},p=/matrix\((.*)\)/,d=/matrix3d\((.*)\)/},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e){if(a.default.isWindow(e)||9===e.nodeType)return null;var t=a.default.getDocument(e),n=t.body,o=void 0,r=a.default.css(e,"position"),i="fixed"===r||"absolute"===r;if(!i)return"html"===e.nodeName.toLowerCase()?null:e.parentNode;for(o=e.parentNode;o&&o!==n;o=o.parentNode)if(r=a.default.css(o,"position"),"static"!==r)return o;return null}Object.defineProperty(t,"__esModule",{value:!0});var i=n(111),a=o(i);t.default=r,e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e){for(var t={left:0,right:1/0,top:0,bottom:1/0},n=(0,s.default)(e),o=a.default.getDocument(e),r=o.defaultView||o.parentWindow,i=o.body,u=o.documentElement;n;){if(navigator.userAgent.indexOf("MSIE")!==-1&&0===n.clientWidth||n===i||n===u||"visible"===a.default.css(n,"overflow")){if(n===i||n===u)break}else{var l=a.default.offset(n);l.left+=n.clientLeft,l.top+=n.clientTop,t.top=Math.max(t.top,l.top),t.right=Math.min(t.right,l.left+n.clientWidth),t.bottom=Math.min(t.bottom,l.top+n.clientHeight),t.left=Math.max(t.left,l.left)}n=(0,s.default)(n)}var c=null;if(!a.default.isWindow(e)&&9!==e.nodeType){c=e.style.position;var p=a.default.css(e,"position");"absolute"===p&&(e.style.position="fixed")}var d=a.default.getWindowScrollLeft(r),h=a.default.getWindowScrollTop(r),m=a.default.viewportWidth(r),v=a.default.viewportHeight(r),g=u.scrollWidth,y=u.scrollHeight;if(e.style&&(e.style.position=c),(0,f.default)(e))t.left=Math.max(t.left,d),t.top=Math.max(t.top,h),t.right=Math.min(t.right,d+m),t.bottom=Math.min(t.bottom,h+v);else{var b=Math.max(g,d+m);t.right=Math.min(t.right,b);var _=Math.max(y,h+v);t.bottom=Math.min(t.bottom,_)}return t.top>=0&&t.left>=0&&t.bottom>t.top&&t.right>t.left?t:null}Object.defineProperty(t,"__esModule",{value:!0});var i=n(111),a=o(i),u=n(113),s=o(u),l=n(115),f=o(l);t.default=r,e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e){if(a.default.isWindow(e)||9===e.nodeType)return!1;var t=a.default.getDocument(e),n=t.body,o=null;for(o=e.parentNode;o&&o!==n;o=o.parentNode){var r=a.default.css(o,"position");if("fixed"===r)return!0}return!1}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var i=n(111),a=o(i);e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,o){var r=a.default.clone(e),i={width:t.width,height:t.height};return o.adjustX&&r.left<n.left&&(r.left=n.left),o.resizeWidth&&r.left>=n.left&&r.left+i.width>n.right&&(i.width-=r.left+i.width-n.right),o.adjustX&&r.left+i.width>n.right&&(r.left=Math.max(n.right-i.width,n.left)),o.adjustY&&r.top<n.top&&(r.top=n.top),o.resizeHeight&&r.top>=n.top&&r.top+i.height>n.bottom&&(i.height-=r.top+i.height-n.bottom),o.adjustY&&r.top+i.height>n.bottom&&(r.top=Math.max(n.bottom-i.height,n.top)),a.default.mix(r,i)}Object.defineProperty(t,"__esModule",{value:!0});var i=n(111),a=o(i);t.default=r,e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e){var t=void 0,n=void 0,o=void 0;if(a.default.isWindow(e)||9===e.nodeType){var r=a.default.getWindow(e);t={left:a.default.getWindowScrollLeft(r),top:a.default.getWindowScrollTop(r)},n=a.default.viewportWidth(r),o=a.default.viewportHeight(r)}else t=a.default.offset(e),n=a.default.outerWidth(e),o=a.default.outerHeight(e);return t.width=n,t.height=o,t}Object.defineProperty(t,"__esModule",{value:!0});var i=n(111),a=o(i);t.default=r,e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n,o,r){var i=(0,a.default)(t,n[1]),u=(0,a.default)(e,n[0]),s=[u.left-i.left,u.top-i.top];return{left:e.left-s[0]+o[0]-r[0],top:e.top-s[1]+o[1]-r[1]}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(119),a=o(i);t.default=r,e.exports=t.default},function(e,t){"use strict";function n(e,t){var n=t.charAt(0),o=t.charAt(1),r=e.width,i=e.height,a=e.left,u=e.top;return"c"===n?u+=i/2:"b"===n&&(u+=i),"c"===o?a+=r/2:"r"===o&&(a+=r),{left:a,top:u}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=t.default},function(e,t){"use strict";function n(e){return null!=e&&e==e.window}t.__esModule=!0,t.default=n,e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e){var t=e.children;return b.default.isValidElement(t)&&!t.key?b.default.cloneElement(t,{key:M}):t}function i(){}Object.defineProperty(t,"__esModule",{value:!0});var a=n(12),u=o(a),s=n(122),l=o(s),f=n(60),c=o(f),p=n(61),d=o(p),h=n(65),m=o(h),v=n(100),g=o(v),y=n(4),b=o(y),_=n(6),w=o(_),x=n(123),E=n(124),C=o(E),O=n(129),P=o(O),M="rc_animate_"+Date.now(),T=function(e){function t(e){(0,c.default)(this,t);var n=(0,m.default)(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return A.call(n),n.currentlyAnimatingKeys={},n.keysToEnter=[],n.keysToLeave=[],n.state={children:(0,x.toArrayChildren)(r(e))},n.childrenRefs={},n}return(0,g.default)(t,e),(0,d.default)(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.showProp,n=this.state.children;t&&(n=n.filter(function(e){return!!e.props[t]})),n.forEach(function(t){t&&e.performAppear(t.key)})}},{key:"componentWillReceiveProps",value:function(e){var t=this;this.nextProps=e;var n=(0,x.toArrayChildren)(r(e)),o=this.props;o.exclusive&&Object.keys(this.currentlyAnimatingKeys).forEach(function(e){t.stop(e)});var i=o.showProp,a=this.currentlyAnimatingKeys,u=o.exclusive?(0,x.toArrayChildren)(r(o)):this.state.children,s=[];i?(u.forEach(function(e){var t=e&&(0,x.findChildInChildrenByKey)(n,e.key),o=void 0;o=t&&t.props[i]||!e.props[i]?t:b.default.cloneElement(t||e,(0,l.default)({},i,!0)),o&&s.push(o)}),n.forEach(function(e){e&&(0,x.findChildInChildrenByKey)(u,e.key)||s.push(e)})):s=(0,x.mergeChildren)(u,n),this.setState({children:s}),n.forEach(function(e){var n=e&&e.key;if(!e||!a[n]){var o=e&&(0,x.findChildInChildrenByKey)(u,n);if(i){var r=e.props[i];if(o){var s=(0,x.findShownChildInChildrenByKey)(u,n,i);!s&&r&&t.keysToEnter.push(n)}else r&&t.keysToEnter.push(n)}else o||t.keysToEnter.push(n)}}),u.forEach(function(e){var o=e&&e.key;if(!e||!a[o]){var r=e&&(0,x.findChildInChildrenByKey)(n,o);if(i){var u=e.props[i];if(r){var s=(0,x.findShownChildInChildrenByKey)(n,o,i);!s&&u&&t.keysToLeave.push(o)}else u&&t.keysToLeave.push(o)}else r||t.keysToLeave.push(o)}})}},{key:"componentDidUpdate",value:function(){var e=this.keysToEnter;this.keysToEnter=[],e.forEach(this.performEnter);var t=this.keysToLeave;this.keysToLeave=[],t.forEach(this.performLeave)}},{key:"isValidChildByKey",value:function(e,t){var n=this.props.showProp;return n?(0,x.findShownChildInChildrenByKey)(e,t,n):(0,x.findChildInChildrenByKey)(e,t)}},{key:"stop",value:function(e){delete this.currentlyAnimatingKeys[e];var t=this.childrenRefs[e];t&&t.stop()}},{key:"render",value:function(){var e=this,t=this.props;this.nextProps=t;var n=this.state.children,o=null;n&&(o=n.map(function(n){if(null===n||void 0===n)return n;if(!n.key)throw new Error("must set key for <rc-animate> children");return b.default.createElement(C.default,{key:n.key,ref:function(t){return e.childrenRefs[n.key]=t},animation:t.animation,transitionName:t.transitionName,transitionEnter:t.transitionEnter,transitionAppear:t.transitionAppear,transitionLeave:t.transitionLeave},n)}));var r=t.component;if(r){var i=t;return"string"==typeof r&&(i=(0,u.default)({className:t.className,style:t.style},t.componentProps)),b.default.createElement(r,i,o)}return o[0]||null}}]),t}(b.default.Component);T.isAnimate=!0,T.propTypes={component:w.default.any,componentProps:w.default.object,animation:w.default.object,transitionName:w.default.oneOfType([w.default.string,w.default.object]),transitionEnter:w.default.bool,transitionAppear:w.default.bool,exclusive:w.default.bool,transitionLeave:w.default.bool,onEnd:w.default.func,onEnter:w.default.func,onLeave:w.default.func,onAppear:w.default.func,showProp:w.default.string},T.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:i,onEnter:i,onLeave:i,onAppear:i};var A=function(){var e=this;this.performEnter=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillEnter(e.handleDoneAdding.bind(e,t,"enter")))},this.performAppear=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillAppear(e.handleDoneAdding.bind(e,t,"appear")))},this.handleDoneAdding=function(t,n){var o=e.props;if(delete e.currentlyAnimatingKeys[t],!o.exclusive||o===e.nextProps){var i=(0,x.toArrayChildren)(r(o));e.isValidChildByKey(i,t)?"appear"===n?P.default.allowAppearCallback(o)&&(o.onAppear(t),o.onEnd(t,!0)):P.default.allowEnterCallback(o)&&(o.onEnter(t),o.onEnd(t,!0)):e.performLeave(t)}},this.performLeave=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillLeave(e.handleDoneLeaving.bind(e,t)))},this.handleDoneLeaving=function(t){var n=e.props;if(delete e.currentlyAnimatingKeys[t],!n.exclusive||n===e.nextProps){var o=(0,x.toArrayChildren)(r(n));if(e.isValidChildByKey(o,t))e.performEnter(t);else{var i=function(){P.default.allowLeaveCallback(n)&&(n.onLeave(t),n.onEnd(t,!1))};(0,x.isSameChildren)(e.state.children,o,n.showProp)?i():e.setState({children:o},i)}}}};t.default=T,e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(62),i=o(r);t.default=function(e,t,n){return t in e?(0,i.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e){var t=[];return c.default.Children.forEach(e,function(e){t.push(e)}),t}function i(e,t){var n=null;return e&&e.forEach(function(e){n||e&&e.key===t&&(n=e)}),n}function a(e,t,n){var o=null;return e&&e.forEach(function(e){if(e&&e.key===t&&e.props[n]){if(o)throw new Error("two child with same key for <rc-animate> children");o=e}}),o}function u(e,t,n){var o=0;return e&&e.forEach(function(e){o||(o=e&&e.key===t&&!e.props[n])}),o}function s(e,t,n){var o=e.length===t.length;return o&&e.forEach(function(e,r){var i=t[r];e&&i&&(e&&!i||!e&&i?o=!1:e.key!==i.key?o=!1:n&&e.props[n]!==i.props[n]&&(o=!1))}),o}function l(e,t){var n=[],o={},r=[];return e.forEach(function(e){e&&i(t,e.key)?r.length&&(o[e.key]=r,r=[]):r.push(e)}),t.forEach(function(e){e&&o.hasOwnProperty(e.key)&&(n=n.concat(o[e.key])),n.push(e)}),n=n.concat(r)}Object.defineProperty(t,"__esModule",{value:!0}),t.toArrayChildren=r,t.findChildInChildrenByKey=i,t.findShownChildInChildrenByKey=a,t.findHiddenChildInChildrenByKey=u,t.isSameChildren=s,t.mergeChildren=l;var f=n(4),c=o(f)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(66),i=o(r),a=n(60),u=o(a),s=n(61),l=o(s),f=n(65),c=o(f),p=n(100),d=o(p),h=n(4),m=o(h),v=n(5),g=o(v),y=n(6),b=o(y),_=n(125),w=o(_),x=n(129),E=o(x),C={enter:"transitionEnter",appear:"transitionAppear",leave:"transitionLeave"},O=function(e){function t(){return(0,u.default)(this,t),(0,c.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,d.default)(t,e),(0,l.default)(t,[{key:"componentWillUnmount",value:function(){this.stop()}},{key:"componentWillEnter",value:function(e){E.default.isEnterSupported(this.props)?this.transition("enter",e):e()}},{key:"componentWillAppear",value:function(e){E.default.isAppearSupported(this.props)?this.transition("appear",e):e()}},{key:"componentWillLeave",value:function(e){E.default.isLeaveSupported(this.props)?this.transition("leave",e):e()}},{key:"transition",value:function(e,t){var n=this,o=g.default.findDOMNode(this),r=this.props,a=r.transitionName,u="object"===("undefined"==typeof a?"undefined":(0,i.default)(a));this.stop();var s=function(){n.stopper=null,t()};if((_.isCssAnimationSupported||!r.animation[e])&&a&&r[C[e]]){var l=u?a[e]:a+"-"+e,f=l+"-active";u&&a[e+"Active"]&&(f=a[e+"Active"]),this.stopper=(0,w.default)(o,{name:l,active:f},s)}else this.stopper=r.animation[e](o,s)}},{key:"stop",value:function(){var e=this.stopper;e&&(this.stopper=null,e.stop())}},{key:"render",value:function(){return this.props.children}}]),t}(m.default.Component);O.propTypes={children:b.default.any},t.default=O,e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){for(var n=window.getComputedStyle(e,null),o="",r=0;r<m.length&&!(o=n.getPropertyValue(m[r]+t));r++);return o}function i(e){if(d){var t=parseFloat(r(e,"transition-delay"))||0,n=parseFloat(r(e,"transition-duration"))||0,o=parseFloat(r(e,"animation-delay"))||0,i=parseFloat(r(e,"animation-duration"))||0,a=Math.max(n+t,i+o);e.rcEndAnimTimeout=setTimeout(function(){e.rcEndAnimTimeout=null,e.rcEndListener&&e.rcEndListener()},1e3*a+200)}}function a(e){e.rcEndAnimTimeout&&(clearTimeout(e.rcEndAnimTimeout),e.rcEndAnimTimeout=null)}Object.defineProperty(t,"__esModule",{value:!0}),t.isCssAnimationSupported=void 0;var u=n(66),s=o(u),l=n(126),f=o(l),c=n(127),p=o(c),d=0!==f.default.endEvents.length,h=["Webkit","Moz","O","ms"],m=["-webkit-","-moz-","-o-","ms-",""],v=function(e,t,n){var o="object"===("undefined"==typeof t?"undefined":(0,s.default)(t)),r=o?t.name:t,u=o?t.active:t+"-active",l=n,c=void 0,d=void 0,h=(0,p.default)(e);return n&&"[object Object]"===Object.prototype.toString.call(n)&&(l=n.end,c=n.start,d=n.active),e.rcEndListener&&e.rcEndListener(),e.rcEndListener=function(t){t&&t.target!==e||(e.rcAnimTimeout&&(clearTimeout(e.rcAnimTimeout),e.rcAnimTimeout=null),a(e),h.remove(r),h.remove(u),f.default.removeEndEventListener(e,e.rcEndListener),e.rcEndListener=null,l&&l())},f.default.addEndEventListener(e,e.rcEndListener),c&&c(),h.add(r),e.rcAnimTimeout=setTimeout(function(){e.rcAnimTimeout=null,h.add(u),d&&setTimeout(d,0),i(e)},30),{stop:function(){e.rcEndListener&&e.rcEndListener()}}};v.style=function(e,t,n){e.rcEndListener&&e.rcEndListener(),e.rcEndListener=function(t){t&&t.target!==e||(e.rcAnimTimeout&&(clearTimeout(e.rcAnimTimeout),e.rcAnimTimeout=null),a(e),f.default.removeEndEventListener(e,e.rcEndListener),e.rcEndListener=null,n&&n())},f.default.addEndEventListener(e,e.rcEndListener),e.rcAnimTimeout=setTimeout(function(){for(var n in t)t.hasOwnProperty(n)&&(e.style[n]=t[n]);e.rcAnimTimeout=null,i(e)},0)},v.setTransition=function(e,t,n){var o=t,r=n;void 0===n&&(r=o,o=""),o=o||"",h.forEach(function(t){e.style[t+"Transition"+o]=r})},v.isCssAnimationSupported=d,t.isCssAnimationSupported=d,t.default=v},function(e,t){"use strict";function n(){var e=document.createElement("div"),t=e.style;"AnimationEvent"in window||delete i.animationend.animation,"TransitionEvent"in window||delete i.transitionend.transition;for(var n in i)if(i.hasOwnProperty(n)){var o=i[n];for(var r in o)if(r in t){a.push(o[r]);break}}}function o(e,t,n){e.addEventListener(t,n,!1)}function r(e,t,n){e.removeEventListener(t,n,!1)}Object.defineProperty(t,"__esModule",{value:!0});var i={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},a=[];"undefined"!=typeof window&&"undefined"!=typeof document&&n();var u={addEndEventListener:function(e,t){return 0===a.length?void window.setTimeout(t,0):void a.forEach(function(n){o(e,n,t)})},endEvents:a,removeEndEventListener:function(e,t){0!==a.length&&a.forEach(function(n){r(e,n,t)})}};t.default=u,e.exports=t.default},function(e,t,n){function o(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}try{var r=n(128)}catch(e){var r=n(128)}var i=/\s+/,a=Object.prototype.toString;e.exports=function(e){return new o(e)},o.prototype.add=function(e){if(this.list)return this.list.add(e),this;var t=this.array(),n=r(t,e);return~n||t.push(e),this.el.className=t.join(" "),this},o.prototype.remove=function(e){if("[object RegExp]"==a.call(e))return this.removeMatching(e);if(this.list)return this.list.remove(e),this;var t=this.array(),n=r(t,e);return~n&&t.splice(n,1),this.el.className=t.join(" "),this},o.prototype.removeMatching=function(e){for(var t=this.array(),n=0;n<t.length;n++)e.test(t[n])&&this.remove(t[n]);return this},o.prototype.toggle=function(e,t){return this.list?("undefined"!=typeof t?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this):("undefined"!=typeof t?t?this.add(e):this.remove(e):this.has(e)?this.remove(e):this.add(e),this)},o.prototype.array=function(){var e=this.el.getAttribute("class")||"",t=e.replace(/^\s+|\s+$/g,""),n=t.split(i);return""===n[0]&&n.shift(),n},o.prototype.has=o.prototype.contains=function(e){return this.list?this.list.contains(e):!!~r(this.array(),e)}},function(e,t){e.exports=function(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={isAppearSupported:function(e){return e.transitionName&&e.transitionAppear||e.animation.appear},isEnterSupported:function(e){return e.transitionName&&e.transitionEnter||e.animation.enter},isLeaveSupported:function(e){return e.transitionName&&e.transitionLeave||e.animation.leave},allowAppearCallback:function(e){return e.transitionAppear||e.animation.appear},allowEnterCallback:function(e){return e.transitionEnter||e.animation.enter},allowLeaveCallback:function(e){return e.transitionLeave||e.animation.leave}};t.default=n,e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(60),i=o(r),a=n(61),u=o(a),s=n(65),l=o(s),f=n(100),c=o(f),p=n(4),d=o(p),h=n(6),m=o(h),v=n(131),g=o(v),y=function(e){function t(){return(0,i.default)(this,t),(0,l.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,c.default)(t,e),(0,u.default)(t,[{key:"render",value:function(){var e=this.props,t=e.className;return e.visible||(t+=" "+e.hiddenClassName),d.default.createElement("div",{className:t,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,style:e.style},d.default.createElement(g.default,{className:e.prefixCls+"-content",visible:e.visible},e.children))}}]),t}(p.Component);y.propTypes={hiddenClassName:m.default.string,className:m.default.string,prefixCls:m.default.string,onMouseEnter:m.default.func,onMouseLeave:m.default.func,children:m.default.any},t.default=y,e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(132),i=o(r),a=n(60),u=o(a),s=n(61),l=o(s),f=n(65),c=o(f),p=n(100),d=o(p),h=n(4),m=o(h),v=n(6),g=o(v),y=function(e){function t(){return(0,u.default)(this,t),(0,c.default)(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return(0,d.default)(t,e),(0,l.default)(t,[{key:"shouldComponentUpdate",value:function(e){return e.hiddenClassName||e.visible}},{key:"render",value:function(){var e=this.props,t=e.hiddenClassName,n=e.visible,o=(0,i.default)(e,["hiddenClassName","visible"]);return t||m.default.Children.count(o.children)>1?(!n&&t&&(o.className+=" "+t),m.default.createElement("div",o)):m.default.Children.only(o.children)}}]),t}(h.Component);y.propTypes={children:g.default.any,className:g.default.string,visible:g.default.bool,hiddenClassName:g.default.string},t.default=y,e.exports=t.default},function(e,t){"use strict";t.__esModule=!0,t.default=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}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return e[0]===t[0]&&e[1]===t[1]}function i(e,t,n){var o=e[t]||{};return(0,l.default)({},o,n)}function a(e,t,n){var o=n.points;for(var i in e)if(e.hasOwnProperty(i)&&r(e[i].points,o))return t+"-placement-"+i;return""}function u(e,t){this[e]=t}Object.defineProperty(t,"__esModule",{value:!0});var s=n(12),l=o(s);t.getAlignFromPlacement=i,t.getPopupClassNameFromAlign=a,t.saveRef=u},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(){var e=document.createElement("div");return document.body.appendChild(e),e}function i(e){function t(e,t,n){if(!f||e._component||f(e)||c&&c(e)){e._container||(e._container=h(e));var o=void 0;o=e.getComponent?e.getComponent(t):p(e,t),l.default.unstable_renderSubtreeIntoContainer(e,o,e._container,function(){e._component=this,n&&n.call(this)})}}function n(e){if(e._container){var t=e._container;l.default.unmountComponentAtNode(t),t.parentNode.removeChild(t),e._container=null}}var o=e.autoMount,i=void 0===o||o,a=e.autoDestroy,s=void 0===a||a,f=e.isVisible,c=e.isForceRender,p=e.getComponent,d=e.getContainer,h=void 0===d?r:d,m=void 0;return i&&(m=(0,u.default)({},m,{componentDidMount:function(){t(this)},componentDidUpdate:function(){t(this)}})),i&&s||(m=(0,u.default)({},m,{renderComponent:function(e,n){t(this,e,n)}})),m=s?(0,u.default)({},m,{componentWillUnmount:function(){n(this)}}):(0,u.default)({},m,{removeContainer:function(){n(this)}})}Object.defineProperty(t,"__esModule",{value:!0});var a=n(12),u=o(a);t.default=i;var s=n(5),l=o(s);e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){for(var n=Object.getOwnPropertyNames(t),o=0;o<n.length;o++){var r=n[o],i=Object.getOwnPropertyDescriptor(t,r);i&&i.configurable&&void 0===e[r]&&Object.defineProperty(e,r,i)}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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}function s(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):r(e,t))}function l(){}Object.defineProperty(t,"__esModule",{value:!0});var f=n(4),c=o(f),p=n(6),d=o(p),h=n(136),m=o(h),v=n(138),g=o(v),y=n(139),b=o(y),_=n(140),w=o(_),x=n(141),E=o(x),C=n(142),O=o(C),P=n(143),M=o(P),T=n(145),A=o(T),k=function(e){function t(n){a(this,t);var o=u(this,e.call(this,n));S.call(o);var r="undefined"==typeof n.alpha?n.defaultAlpha:Math.min(n.alpha,n.defaultAlpha),i=new m.default(n.color||n.defaultColor);return o.state={color:i,alpha:r},o}return s(t,e),t.prototype.componentDidMount=function(){this.props.onMount(this.ref)},t.prototype.componentWillReceiveProps=function(e){if(e.color){var t=new m.default(e.color);this.setState({color:t})}void 0!==e.alpha&&this.setState({alpha:e.alpha})},t.prototype.render=function(){var e,t=this,n=this.props,o=n.prefixCls,r=n.enableAlpha,a=this.state,u=a.color,s=a.alpha,l=(0,M.default)((e={},i(e,o+"-wrap",!0),i(e,o+"-wrap-has-alpha",r),e));return c.default.createElement("div",{ref:function(e){return t.ref=e},className:[o,this.props.className].join(" "),style:this.props.style,onFocus:this.onFocus,onBlur:this.onBlur,tabIndex:"0"},c.default.createElement("div",{className:o+"-inner"},c.default.createElement(g.default,{rootPrefixCls:o,color:u,onChange:this.handleChange}),c.default.createElement("div",{className:l},c.default.createElement("div",{className:o+"-wrap-ribbon"},c.default.createElement(w.default,{rootPrefixCls:o,color:u,onChange:this.handleChange})),r&&c.default.createElement("div",{className:o+"-wrap-alpha"},c.default.createElement(E.default,{rootPrefixCls:o,alpha:s,color:u,onChange:this.handleAlphaChange})),c.default.createElement("div",{className:o+"-wrap-preview"},c.default.createElement(b.default,{rootPrefixCls:o,alpha:s,onChange:this.handleChange,onInputClick:this.onSystemColorPickerOpen,color:u}))),c.default.createElement("div",{className:o+"-wrap",style:{height:40,marginTop:6}},c.default.createElement(O.default,{rootPrefixCls:o,color:u,alpha:s,onAlphaChange:this.handleAlphaChange,onChange:this.handleChange,mode:this.props.mode,enableAlpha:this.props.enableAlpha}))))},t}(c.default.Component),S=function(){var e=this;this.onSystemColorPickerOpen=function(t){"color"===t.target.type&&(e.systemColorPickerOpen=!0)},this.onFocus=function(){e._blurTimer?(clearTimeout(e._blurTimer),e._blurTimer=null):e.props.onFocus()},this.onBlur=function(){e._blurTimer&&clearTimeout(e._blurTimer),e._blurTimer=setTimeout(function(){return e.systemColorPickerOpen?void(e.systemColorPickerOpen=!1):void e.props.onBlur()},100)},this.handleAlphaChange=function(t){var n=e.state.color;n.alpha=t,e.setState({alpha:t,color:n}),e.props.onChange({color:n.toHexString(),alpha:t})},this.handleChange=function(t){var n=e.state.alpha;t.alpha=n,e.setState({color:t}),e.props.onChange({color:t.toHexString(),alpha:t.alpha})}};t.default=k,k.propTypes={alpha:d.default.number,className:d.default.string,color:A.default,defaultAlpha:d.default.number,defaultColor:A.default,enableAlpha:d.default.bool,mode:d.default.oneOf(["RGB","HSL","HSB"]),onBlur:d.default.func,onChange:d.default.func,onFocus:d.default.func,onMount:d.default.func,prefixCls:d.default.string,style:d.default.object},k.defaultProps={className:"",defaultAlpha:100,defaultColor:"#ff0000",enableAlpha:!0,mode:"RGB",onBlur:l,onChange:l,onFocus:l,onMount:l,prefixCls:"rc-color-picker-panel",style:{}},e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=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},a=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}}(),u=n(137),s=o(u),l=function(){function e(t){var n=this;r(this,e),this.initRgb=function(){var e=n.color.toRgb(),t=e.r,o=e.g,r=e.b;n.redValue=t,n.greenValue=o,n.blueValue=r},this.initHsb=function(){var e=n.color.toHsv(),t=e.h,o=e.s,r=e.v;n.hueValue=t,n.saturationValue=o,n.brightnessValue=r},this.toHexString=function(){return n.color.toHexString()},this.toRgbString=function(){return n.color.toRgbString()},this.color=(0,s.default)(t),this.initRgb(),this.initHsb();var o=t&&t.alpha||this.color.toRgb().a;this.alphaValue=100*Math.min(1,o)}return e.isValidHex=function(e){return(0,s.default)(e).isValid()},a(e,[{key:"hex",get:function(){return this.color.toHex()}},{key:"hue",set:function(e){this.color=(0,s.default)({h:e,s:this.saturation,v:this.brightness}),this.initRgb(),this.hueValue=e},get:function(){return this.hueValue}},{key:"saturation",set:function(e){this.color=(0,s.default)({h:this.hue,s:e,v:this.brightness}),this.initRgb(),this.saturationValue=e},get:function(){return this.saturationValue}},{key:"lightness",set:function(e){this.color=(0,s.default)({h:this.hue,s:this.saturation,l:e}),this.initRgb(),this.lightnessValue=e},get:function(){return this.lightnessValue}},{key:"brightness",set:function(e){this.color=(0,s.default)({h:this.hue,s:this.saturation,v:e}),this.initRgb(),this.brightnessValue=e},get:function(){return this.brightnessValue}},{key:"red",set:function(e){var t=this.color.toRgb();this.color=(0,s.default)(i({},t,{r:e})),this.initHsb(),this.redValue=e},get:function(){return this.redValue}},{key:"green",set:function(e){var t=this.color.toRgb();this.color=(0,s.default)(i({},t,{g:e})),this.initHsb(),this.greenValue=e},get:function(){return this.greenValue}},{key:"blue",set:function(e){var t=this.color.toRgb();this.color=(0,s.default)(i({},t,{b:e})),this.initHsb(),this.blueValue=e},get:function(){return this.blueValue}},{key:"alpha",set:function(e){this.color.setAlpha(e/100)},get:function(){return 100*this.color.getAlpha()}},{key:"RGB",get:function(){return[this.red,this.green,this.blue]}},{key:"HSB",get:function(){return[this.hue,this.saturation,this.brightness]}}]),e}();t.default=l,e.exports=t.default},function(e,t,n){var o;!function(r){function i(e,t){if(e=e?e:"",t=t||{},e instanceof i)return e;if(!(this instanceof i))return new i(e,t);var n=a(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=z(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=z(this._r)),this._g<1&&(this._g=z(this._g)),this._b<1&&(this._b=z(this._b)),this._ok=n.ok,this._tc_id=U++}function a(e){var t={r:0,g:0,b:0},n=1,o=null,r=null,i=null,a=!1,s=!1;return"string"==typeof e&&(e=V(e)),"object"==typeof e&&(H(e.r)&&H(e.g)&&H(e.b)?(t=u(e.r,e.g,e.b),a=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):H(e.h)&&H(e.s)&&H(e.v)?(o=R(e.s),r=R(e.v),t=c(e.h,o,r),a=!0,s="hsv"):H(e.h)&&H(e.s)&&H(e.l)&&(o=R(e.s),i=R(e.l),t=l(e.h,o,i),a=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=A(n),{ok:a,format:e.format||s,r:X(255,K(t.r,0)),g:X(255,K(t.g,0)),b:X(255,K(t.b,0)),a:n}}function u(e,t,n){return{r:255*k(e,255),g:255*k(t,255),b:255*k(n,255)}}function s(e,t,n){e=k(e,255),t=k(t,255),n=k(n,255);var o,r,i=K(e,t,n),a=X(e,t,n),u=(i+a)/2;if(i==a)o=r=0;else{var s=i-a;switch(r=u>.5?s/(2-i-a):s/(i+a),i){case e:o=(t-n)/s+(t<n?6:0);break;case t:o=(n-e)/s+2;break;case n:o=(e-t)/s+4}o/=6}return{h:o,s:r,l:u}}function l(e,t,n){function o(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var r,i,a;if(e=k(e,360),t=k(t,100),n=k(n,100),0===t)r=i=a=n;else{var u=n<.5?n*(1+t):n+t-n*t,s=2*n-u;r=o(s,u,e+1/3),i=o(s,u,e),a=o(s,u,e-1/3)}return{r:255*r,g:255*i,b:255*a}}function f(e,t,n){e=k(e,255),t=k(t,255),n=k(n,255);var o,r,i=K(e,t,n),a=X(e,t,n),u=i,s=i-a;if(r=0===i?0:s/i,i==a)o=0;else{switch(i){case e:o=(t-n)/s+(t<n?6:0);break;case t:o=(n-e)/s+2;break;case n:o=(e-t)/s+4}o/=6}return{h:o,s:r,v:u}}function c(e,t,n){e=6*k(e,360),t=k(t,100),n=k(n,100);var o=r.floor(e),i=e-o,a=n*(1-t),u=n*(1-i*t),s=n*(1-(1-i)*t),l=o%6,f=[n,u,a,a,s,n][l],c=[s,n,n,u,a,a][l],p=[a,a,s,n,n,u][l]; return{r:255*f,g:255*c,b:255*p}}function p(e,t,n,o){var r=[L(z(e).toString(16)),L(z(t).toString(16)),L(z(n).toString(16))];return o&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function d(e,t,n,o,r){var i=[L(z(e).toString(16)),L(z(t).toString(16)),L(z(n).toString(16)),L(I(o))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function h(e,t,n,o){var r=[L(I(o)),L(z(e).toString(16)),L(z(t).toString(16)),L(z(n).toString(16))];return r.join("")}function m(e,t){t=0===t?0:t||10;var n=i(e).toHsl();return n.s-=t/100,n.s=S(n.s),i(n)}function v(e,t){t=0===t?0:t||10;var n=i(e).toHsl();return n.s+=t/100,n.s=S(n.s),i(n)}function g(e){return i(e).desaturate(100)}function y(e,t){t=0===t?0:t||10;var n=i(e).toHsl();return n.l+=t/100,n.l=S(n.l),i(n)}function b(e,t){t=0===t?0:t||10;var n=i(e).toRgb();return n.r=K(0,X(255,n.r-z(255*-(t/100)))),n.g=K(0,X(255,n.g-z(255*-(t/100)))),n.b=K(0,X(255,n.b-z(255*-(t/100)))),i(n)}function _(e,t){t=0===t?0:t||10;var n=i(e).toHsl();return n.l-=t/100,n.l=S(n.l),i(n)}function w(e,t){var n=i(e).toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,i(n)}function x(e){var t=i(e).toHsl();return t.h=(t.h+180)%360,i(t)}function E(e){var t=i(e).toHsl(),n=t.h;return[i(e),i({h:(n+120)%360,s:t.s,l:t.l}),i({h:(n+240)%360,s:t.s,l:t.l})]}function C(e){var t=i(e).toHsl(),n=t.h;return[i(e),i({h:(n+90)%360,s:t.s,l:t.l}),i({h:(n+180)%360,s:t.s,l:t.l}),i({h:(n+270)%360,s:t.s,l:t.l})]}function O(e){var t=i(e).toHsl(),n=t.h;return[i(e),i({h:(n+72)%360,s:t.s,l:t.l}),i({h:(n+216)%360,s:t.s,l:t.l})]}function P(e,t,n){t=t||6,n=n||30;var o=i(e).toHsl(),r=360/n,a=[i(e)];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,a.push(i(o));return a}function M(e,t){t=t||6;for(var n=i(e).toHsv(),o=n.h,r=n.s,a=n.v,u=[],s=1/t;t--;)u.push(i({h:o,s:r,v:a})),a=(a+s)%1;return u}function T(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function A(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function k(e,t){j(e)&&(e="100%");var n=D(e);return e=X(t,K(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),r.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function S(e){return X(1,K(0,e))}function N(e){return parseInt(e,16)}function j(e){return"string"==typeof e&&e.indexOf(".")!=-1&&1===parseFloat(e)}function D(e){return"string"==typeof e&&e.indexOf("%")!=-1}function L(e){return 1==e.length?"0"+e:""+e}function R(e){return e<=1&&(e=100*e+"%"),e}function I(e){return r.round(255*parseFloat(e)).toString(16)}function F(e){return N(e)/255}function H(e){return!!Z.CSS_UNIT.exec(e)}function V(e){e=e.replace(W,"").replace(Y,"").toLowerCase();var t=!1;if(G[e])e=G[e],t=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=Z.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=Z.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Z.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=Z.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Z.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=Z.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Z.hex8.exec(e))?{r:N(n[1]),g:N(n[2]),b:N(n[3]),a:F(n[4]),format:t?"name":"hex8"}:(n=Z.hex6.exec(e))?{r:N(n[1]),g:N(n[2]),b:N(n[3]),format:t?"name":"hex"}:(n=Z.hex4.exec(e))?{r:N(n[1]+""+n[1]),g:N(n[2]+""+n[2]),b:N(n[3]+""+n[3]),a:F(n[4]+""+n[4]),format:t?"name":"hex8"}:!!(n=Z.hex3.exec(e))&&{r:N(n[1]+""+n[1]),g:N(n[2]+""+n[2]),b:N(n[3]+""+n[3]),format:t?"name":"hex"}}function B(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA"),"small"!==n&&"large"!==n&&(n="small"),{level:t,size:n}}var W=/^\s+/,Y=/\s+$/,U=0,z=r.round,X=r.min,K=r.max,q=r.random;i.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,o,i,a,u=this.toRgb();return e=u.r/255,t=u.g/255,n=u.b/255,o=e<=.03928?e/12.92:r.pow((e+.055)/1.055,2.4),i=t<=.03928?t/12.92:r.pow((t+.055)/1.055,2.4),a=n<=.03928?n/12.92:r.pow((n+.055)/1.055,2.4),.2126*o+.7152*i+.0722*a},setAlpha:function(e){return this._a=A(e),this._roundA=z(100*this._a)/100,this},toHsv:function(){var e=f(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=f(this._r,this._g,this._b),t=z(360*e.h),n=z(100*e.s),o=z(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+o+"%)":"hsva("+t+", "+n+"%, "+o+"%, "+this._roundA+")"},toHsl:function(){var e=s(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=s(this._r,this._g,this._b),t=z(360*e.h),n=z(100*e.s),o=z(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+o+"%)":"hsla("+t+", "+n+"%, "+o+"%, "+this._roundA+")"},toHex:function(e){return p(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return d(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:z(this._r),g:z(this._g),b:z(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+z(this._r)+", "+z(this._g)+", "+z(this._b)+")":"rgba("+z(this._r)+", "+z(this._g)+", "+z(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:z(100*k(this._r,255))+"%",g:z(100*k(this._g,255))+"%",b:z(100*k(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+z(100*k(this._r,255))+"%, "+z(100*k(this._g,255))+"%, "+z(100*k(this._b,255))+"%)":"rgba("+z(100*k(this._r,255))+"%, "+z(100*k(this._g,255))+"%, "+z(100*k(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&($[p(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+h(this._r,this._g,this._b,this._a),n=t,o=this._gradientType?"GradientType = 1, ":"";if(e){var r=i(e);n="#"+h(r._r,r._g,r._b,r._a)}return"progid:DXImageTransform.Microsoft.gradient("+o+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,o=this._a<1&&this._a>=0,r=!t&&o&&("hex"===e||"hex6"===e||"hex3"===e||"hex4"===e||"hex8"===e||"name"===e);return r?"name"===e&&0===this._a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return i(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(y,arguments)},brighten:function(){return this._applyModification(b,arguments)},darken:function(){return this._applyModification(_,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(v,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(w,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(P,arguments)},complement:function(){return this._applyCombination(x,arguments)},monochromatic:function(){return this._applyCombination(M,arguments)},splitcomplement:function(){return this._applyCombination(O,arguments)},triad:function(){return this._applyCombination(E,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},i.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var o in e)e.hasOwnProperty(o)&&("a"===o?n[o]=e[o]:n[o]=R(e[o]));e=n}return i(e,t)},i.equals=function(e,t){return!(!e||!t)&&i(e).toRgbString()==i(t).toRgbString()},i.random=function(){return i.fromRatio({r:q(),g:q(),b:q()})},i.mix=function(e,t,n){n=0===n?0:n||50;var o=i(e).toRgb(),r=i(t).toRgb(),a=n/100,u={r:(r.r-o.r)*a+o.r,g:(r.g-o.g)*a+o.g,b:(r.b-o.b)*a+o.b,a:(r.a-o.a)*a+o.a};return i(u)},i.readability=function(e,t){var n=i(e),o=i(t);return(r.max(n.getLuminance(),o.getLuminance())+.05)/(r.min(n.getLuminance(),o.getLuminance())+.05)},i.isReadable=function(e,t,n){var o,r,a=i.readability(e,t);switch(r=!1,o=B(n),o.level+o.size){case"AAsmall":case"AAAlarge":r=a>=4.5;break;case"AAlarge":r=a>=3;break;case"AAAsmall":r=a>=7}return r},i.mostReadable=function(e,t,n){var o,r,a,u,s=null,l=0;n=n||{},r=n.includeFallbackColors,a=n.level,u=n.size;for(var f=0;f<t.length;f++)o=i.readability(e,t[f]),o>l&&(l=o,s=i(t[f]));return i.isReadable(e,s,{level:a,size:u})||!r?s:(n.includeFallbackColors=!1,i.mostReadable(e,["#fff","#000"],n))};var G=i.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},$=i.hexNames=T(G),Z=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",o="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+o),rgba:new RegExp("rgba"+r),hsl:new RegExp("hsl"+o),hsla:new RegExp("hsla"+r),hsv:new RegExp("hsv"+o),hsva:new RegExp("hsva"+r),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();"undefined"!=typeof e&&e.exports?e.exports=i:(o=function(){return i}.call(t,n,t,e),!(void 0!==o&&(e.exports=o)))}(Math)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){for(var n=Object.getOwnPropertyNames(t),o=0;o<n.length;o++){var r=n[o],i=Object.getOwnPropertyDescriptor(t,r);i&&i.configurable&&void 0===e[r]&&Object.defineProperty(e,r,i)}return e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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}function u(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):r(e,t))}Object.defineProperty(t,"__esModule",{value:!0});var s=n(4),l=o(s),f=n(5),c=o(f),p=n(6),d=o(p),h=n(55),m=o(h),v=n(136),g=o(v),y=200,b=150,_=function(e){function t(n){i(this,t);var o=a(this,e.call(this,n));return o.onBoardMouseDown=function(e){var t=e.buttons;if(1===t){var n=e.clientX,r=e.clientY;o.pointMoveTo({x:n,y:r}),o.removeListeners(),o.dragListener=(0,m.default)(window,"mousemove",o.onBoardDrag),o.dragUpListener=(0,m.default)(window,"mouseup",o.onBoardDragEnd)}},o.onBoardTouchStart=function(e){if(1===e.touches.length){o.removeTouchListeners();var t=e.targetTouches[0].clientX,n=e.targetTouches[0].clientY;o.pointMoveTo({x:t,y:n}),o.touchMoveListener=(0,m.default)(window,"touchmove",o.onBoardTouchMove),o.touchEndListener=(0,m.default)(window,"touchend",o.onBoardTouchEnd)}},o.onBoardTouchMove=function(e){e.preventDefault&&e.preventDefault();var t=e.targetTouches[0].clientX,n=e.targetTouches[0].clientY;o.pointMoveTo({x:t,y:n})},o.onBoardTouchEnd=function(){o.removeTouchListeners()},o.onBoardDrag=function(e){var t=e.clientX,n=e.clientY;o.pointMoveTo({x:t,y:n})},o.onBoardDragEnd=function(e){var t=e.clientX,n=e.clientY;o.pointMoveTo({x:t,y:n}),o.removeListeners()},o.getPrefixCls=function(){return o.props.rootPrefixCls+"-board"},o.removeTouchListeners=function(){o.touchMoveListener&&(o.touchMoveListener.remove(),o.touchMoveListener=null),o.touchEndListener&&(o.touchEndListener.remove(),o.touchEndListener=null)},o.removeListeners=function(){o.dragListener&&(o.dragListener.remove(),o.dragListener=null),o.dragUpListener&&(o.dragUpListener.remove(),o.dragUpListener=null)},o.pointMoveTo=function(e){var t=c.default.findDOMNode(o).getBoundingClientRect(),n=e.x-t.left,r=e.y-t.top,i=t.width||y,a=t.height||b;n=Math.max(0,n),n=Math.min(n,i),r=Math.max(0,r),r=Math.min(r,a);var u=o.props.color;u.saturation=n/i,u.brightness=1-r/a,o.props.onChange(u)},o}return u(t,e),t.prototype.componentWillUnmount=function(){this.removeListeners(),this.removeTouchListeners()},t.prototype.render=function(){var e=this.getPrefixCls(),t=this.props.color,n={h:t.hue,s:1,v:1},o=new g.default(n).toHexString(),r=100*t.saturation,i=100*(1-t.brightness);return l.default.createElement("div",{className:e},l.default.createElement("div",{className:e+"-hsv",style:{backgroundColor:o}},l.default.createElement("div",{className:e+"-value"}),l.default.createElement("div",{className:e+"-saturation"})),l.default.createElement("span",{style:{left:r+"%",top:i+"%"}}),l.default.createElement("div",{className:e+"-handler",onMouseDown:this.onBoardMouseDown,onTouchStart:this.onBoardTouchStart}))},t}(l.default.Component);t.default=_,_.propTypes={color:d.default.object,onChange:d.default.func,rootPrefixCls:d.default.string},e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){for(var n=Object.getOwnPropertyNames(t),o=0;o<n.length;o++){var r=n[o],i=Object.getOwnPropertyDescriptor(t,r);i&&i.configurable&&void 0===e[r]&&Object.defineProperty(e,r,i)}return e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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}function u(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):r(e,t))}Object.defineProperty(t,"__esModule",{value:!0});var s=n(4),l=o(s),f=n(6),c=o(f),p=n(136),d=o(p),h=function(e){function t(){var n,o,r;i(this,t);for(var u=arguments.length,s=Array(u),l=0;l<u;l++)s[l]=arguments[l];return n=o=a(this,e.call.apply(e,[this].concat(s))),o.onChange=function(e){var t=e.target.value,n=new d.default(t);o.props.onChange(n),e.stopPropagation()},o.getPrefixCls=function(){return o.props.rootPrefixCls+"-preview"},r=n,a(o,r)}return u(t,e),t.prototype.render=function(){var e=this.getPrefixCls(),t=this.props.color.toHexString();return l.default.createElement("div",{className:e},l.default.createElement("span",{style:{backgroundColor:t,opacity:this.props.alpha/100}}),l.default.createElement("input",{type:"color",value:t,onChange:this.onChange,onClick:this.props.onInputClick}))},t}(l.default.Component);t.default=h,h.propTypes={rootPrefixCls:c.default.string,color:c.default.object,alpha:c.default.number,onChange:c.default.func,onInputClick:c.default.func},e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){for(var n=Object.getOwnPropertyNames(t),o=0;o<n.length;o++){var r=n[o],i=Object.getOwnPropertyDescriptor(t,r);i&&i.configurable&&void 0===e[r]&&Object.defineProperty(e,r,i)}return e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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}function u(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):r(e,t))}Object.defineProperty(t,"__esModule",{value:!0});var s=n(4),l=o(s),f=n(5),c=o(f),p=n(6),d=o(p),h=n(55),m=o(h),v=function(e){function t(n){i(this,t);var o=a(this,e.call(this,n));return o.onMouseDown=function(e){var t=e.clientX,n=e.clientY;o.pointMoveTo({x:t,y:n}),o.dragListener=(0,m.default)(window,"mousemove",o.onDrag),o.dragUpListener=(0,m.default)(window,"mouseup",o.onDragEnd)},o.onDrag=function(e){var t=e.clientX,n=e.clientY;o.pointMoveTo({x:t,y:n})},o.onDragEnd=function(e){var t=e.clientX,n=e.clientY;o.pointMoveTo({x:t,y:n}),o.removeListeners()},o.getPrefixCls=function(){return o.props.rootPrefixCls+"-ribbon"},o.pointMoveTo=function(e){var t=c.default.findDOMNode(o).getBoundingClientRect(),n=t.width,r=e.x-t.left;r=Math.max(0,r),r=Math.min(r,n);var i=r/n,a=360*i,u=o.props.color;u.hue=a,o.props.onChange(u)},o.removeListeners=function(){o.dragListener&&(o.dragListener.remove(),o.dragListener=null),o.dragUpListener&&(o.dragUpListener.remove(),o.dragUpListener=null)},o}return u(t,e),t.prototype.componentWillUnmount=function(){this.removeListeners()},t.prototype.render=function(){var e=this.getPrefixCls(),t=this.props.color.hue,n=t/360*100;return l.default.createElement("div",{className:e},l.default.createElement("span",{ref:"point",style:{left:n+"%"}}),l.default.createElement("div",{className:e+"-handler",onMouseDown:this.onMouseDown}))},t}(l.default.Component);t.default=v,v.propTypes={rootPrefixCls:d.default.string,color:d.default.object,onChange:d.default.func},e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){for(var n=Object.getOwnPropertyNames(t),o=0;o<n.length;o++){var r=n[o],i=Object.getOwnPropertyDescriptor(t,r);i&&i.configurable&&void 0===e[r]&&Object.defineProperty(e,r,i)}return e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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}function u(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):r(e,t))}function s(e,t,n,o){return"rgba("+[e,t,n,o/100].join(",")+")"}Object.defineProperty(t,"__esModule",{value:!0});var l=n(4),f=o(l),c=n(5),p=n(6),d=o(p),h=n(55),m=o(h),v=function(e){function t(n){i(this,t);var o=a(this,e.call(this,n));return o.onMouseDown=function(e){var t=e.clientX,n=e.clientY;o.pointMoveTo({x:t,y:n}),o.dragListener=(0,m.default)(window,"mousemove",o.onDrag),o.dragUpListener=(0,m.default)(window,"mouseup",o.onDragEnd)},o.onDrag=function(e){var t=e.clientX,n=e.clientY;o.pointMoveTo({x:t,y:n})},o.onDragEnd=function(e){var t=e.clientX,n=e.clientY;o.pointMoveTo({x:t,y:n}),o.removeListeners()},o.getBackground=function(){var e=o.props.color,t=e.red,n=e.green,r=e.blue,i="linear-gradient(to right, "+s(t,n,r,0)+" , "+s(t,n,r,100)+")";return i},o.getPrefixCls=function(){return o.props.rootPrefixCls+"-alpha"},o.pointMoveTo=function(e){var t=(0,c.findDOMNode)(o).getBoundingClientRect(),n=t.width,r=e.x-t.left;r=Math.max(0,r),r=Math.min(r,n);var i=Math.round(r/n*100);o.props.onChange(i)},o.removeListeners=function(){o.dragListener&&(o.dragListener.remove(),o.dragListener=null),o.dragUpListener&&(o.dragUpListener.remove(),o.dragUpListener=null)},o}return u(t,e),t.prototype.componentWillUnmount=function(){this.removeListeners()},t.prototype.render=function(){var e=this.getPrefixCls();return f.default.createElement("div",{className:e},f.default.createElement("div",{ref:"bg",className:e+"-bg",style:{background:this.getBackground()}}),f.default.createElement("span",{style:{left:this.props.alpha+"%"}}),f.default.createElement("div",{className:e+"-handler",onMouseDown:this.onMouseDown}))},t}(f.default.Component);t.default=v,v.propTypes={color:d.default.object,onChange:d.default.func,rootPrefixCls:d.default.string,alpha:d.default.number},e.exports=t.default},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){for(var n=Object.getOwnPropertyNames(t),o=0;o<n.length;o++){var r=n[o],i=Object.getOwnPropertyDescriptor(t,r);i&&i.configurable&&void 0===e[r]&&Object.defineProperty(e,r,i)}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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}function s(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):r(e,t))}Object.defineProperty(t,"__esModule",{value:!0});var l=n(4),f=o(l),c=n(6),p=o(c),d=n(143),h=o(d),m=n(136),v=o(m),g=n(144),y=o(g),b=["RGB","HSB"],_=function(e){function t(n){a(this,t);var o=u(this,e.call(this,n));return o.getChannelInRange=function(e,t){var n={RGB:[[0,255],[0,255],[0,255]],HSB:[[0,359],[0,100],[0,100]]},r=o.state.mode,i=n[r][t],a=parseInt(e,10);return isNaN(a)&&(a=0),a=Math.max(i[0],a),a=Math.min(a,i[1])},o.getPrefixCls=function(){return o.props.rootPrefixCls+"-params"},o.handleHexBlur=function(){var e=o.state.hex,t=null;v.default.isValidHex(e)&&(t=new v.default(e)),null!==t&&(o.setState({color:t,hex:e}),o.props.onChange(t,!1))},o.handleHexPress=function(e){var t=o.state.hex;if(13===e.nativeEvent.which){var n=null;v.default.isValidHex(t)&&(n=new v.default(t)),null!==n&&(o.setState({color:n,hex:t}),o.props.onChange(n,!1))}},o.handleHexChange=function(e){var t=e.target.value;o.setState({hex:t})},o.handleModeChange=function(){var e=o.state.mode,t=(b.indexOf(e)+1)%b.length;e=b[t],o.setState({mode:e})},o.handleAlphaHandler=function(e){var t=parseInt(e.target.value,10);isNaN(t)&&(t=0),t=Math.max(0,t),t=Math.min(t,100),o.props.onAlphaChange(t)},o.updateColorByChanel=function(e,t){var n=o.props.color,r=o.state.mode;return"HSB"===r?"H"===e?n.hue=parseInt(t,10):"S"===e?n.saturation=parseInt(t,10)/100:"B"===e&&(n.brightness=parseInt(t,10)/100):"R"===e?n.red=parseInt(t,10):"G"===e?n.green=parseInt(t,10):"B"===e&&(n.blue=parseInt(t,10)),n},o.handleColorChannelChange=function(e,t){var n=o.getChannelInRange(t.target.value,e),r=o.state.mode,i=r[e],a=o.updateColorByChanel(i,n);o.setState({hex:a.hex,color:a},function(){o.props.onChange(a,!1)})},o.state={mode:n.mode,hex:n.color.hex,color:n.color},o}return s(t,e),t.prototype.componentWillReceiveProps=function(e){var t=e.color;this.setState({color:t,hex:t.hex})},t.prototype.render=function(){var e,t=this.getPrefixCls(),n=this.props.enableAlpha,o=this.state,r=o.mode,a=o.color,u=a[r];"HSB"===r&&(u[0]=parseInt(u[0],10),u[1]=(0,y.default)(u[1]),u[2]=(0,y.default)(u[2]));var s=(0,h.default)((e={},i(e,t,!0),i(e,t+"-has-alpha",n),e));return f.default.createElement("div",{className:s},f.default.createElement("div",{className:t+"-input"},f.default.createElement("input",{className:t+"-hex",type:"text",maxLength:"6",onKeyPress:this.handleHexPress,onBlur:this.handleHexBlur,onChange:this.handleHexChange,value:this.state.hex.toLowerCase()}),f.default.createElement("input",{type:"number",ref:"channel_0",value:u[0],onChange:this.handleColorChannelChange.bind(null,0)}),f.default.createElement("input",{type:"number",ref:"channel_1",value:u[1],onChange:this.handleColorChannelChange.bind(null,1)}),f.default.createElement("input",{type:"number",ref:"channel_2",value:u[2],onChange:this.handleColorChannelChange.bind(null,2)}),n&&f.default.createElement("input",{type:"number",value:Math.round(this.props.alpha),onChange:this.handleAlphaHandler})),f.default.createElement("div",{className:t+"-lable"},f.default.createElement("label",{className:t+"-lable-hex"},"Hex"),f.default.createElement("label",{className:t+"-lable-number",onClick:this.handleModeChange},r[0]),f.default.createElement("label",{className:t+"-lable-number",onClick:this.handleModeChange},r[1]),f.default.createElement("label",{className:t+"-lable-number",onClick:this.handleModeChange},r[2]),n&&f.default.createElement("label",{className:t+"-lable-alpha"},"A")))},t}(f.default.Component);t.default=_,_.propTypes={alpha:p.default.number,enableAlpha:p.default.bool,color:p.default.object.isRequired,mode:p.default.oneOf(b),onAlphaChange:p.default.func,onChange:p.default.func,rootPrefixCls:p.default.string},_.defaultProps={mode:b[0],enableAlpha:!0},e.exports=t.default},function(e,t,n){var o,r;/*! Copyright (c) 2016 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ !function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var r=typeof o;if("string"===r||"number"===r)e.push(o);else if(Array.isArray(o))e.push(n.apply(null,o));else if("object"===r)for(var a in o)i.call(o,a)&&o[a]&&e.push(a)}}return e.join(" ")}var i={}.hasOwnProperty;"undefined"!=typeof e&&e.exports?e.exports=n:(o=[],r=function(){return n}.apply(t,o),!(void 0!==r&&(e.exports=r)))}()},function(e,t){"use strict";function n(e){return Math.round(100*e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=t.default},function(e,t){"use strict";e.exports=function(e,t,n){if(e[t]&&!/^#[0-9a-fA-F]{3,6}$/.test(e[t]))return new Error(n+".props."+t+" Validation failed!")}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={adjustX:1,adjustY:1},o=[0,0],r={topLeft:{points:["bl","tl"],overflow:n,offset:[0,-5],targetOffset:o},topRight:{points:["br","tr"],overflow:n,offset:[0,-5],targetOffset:o},bottomLeft:{points:["tl","bl"],overflow:n,offset:[0,5],targetOffset:o},bottomRight:{points:["tr","br"],overflow:n,offset:[0,5],targetOffset:o}};t.default=r,e.exports=t.default}])}); //# sourceMappingURL=rc-color-picker.min.js.map
8,638.071429
32,114
0.705018
c0fa023dc0fc0249a9122de0c9dfd463683f9496
1,932
js
JavaScript
BugFixTabLostFocus.js
t-awana/RPGMakerMV-1
57d983da44d21099f12a0f476cd2caf9df2a7704
[ "MIT" ]
2
2020-01-07T19:52:06.000Z
2020-05-06T21:18:58.000Z
BugFixTabLostFocus.js
t-awana/RPGMakerMV-1
57d983da44d21099f12a0f476cd2caf9df2a7704
[ "MIT" ]
null
null
null
BugFixTabLostFocus.js
t-awana/RPGMakerMV-1
57d983da44d21099f12a0f476cd2caf9df2a7704
[ "MIT" ]
2
2021-03-01T18:26:25.000Z
2022-02-05T14:35:29.000Z
//============================================================================= // BugFixTabLostFocus.js // ---------------------------------------------------------------------------- // (C)2015-2018 Triacontane // This software is released under the MIT License. // http://opensource.org/licenses/mit-license.php // ---------------------------------------------------------------------------- // Version // 1.1.1 2018/03/17 ヘルプの記述を微修正 // 1.1.0 2018/03/17 実装方法をシンプルに変更 // 1.0.0 2017/07/19 初版 // ---------------------------------------------------------------------------- // [Blog] : https://triacontane.blogspot.jp/ // [Twitter]: https://twitter.com/triacontane/ // [GitHub] : https://github.com/triacontane/ //============================================================================= /*: * @plugindesc BugFixTabLostFocusPlugin * @author triacontane * * @help 特定条件(※1)でタブキーを押下したときに発生する * ロストフォーカスイベントを無効化します。 * この現象はGame.exeでのみ発生します。 * * ※1 起動後、初めてタブキーを押下した場合や、マウス操作後に押下した場合など * * このプラグインによって以下の現象が解消されます。 * ・タブの初回キー入力が無効になる * ・タブ入力時、他のキーの押下状態がすべて解除される * ・一度でもTabキーを押下した後で、別のキーを押し続けたまま *  ロストフォーカスすると対象キーを押し続けたままになってしまう * * This plugin is released under the MIT License. */ /*:ja * @plugindesc タブのロストフォーカス無効化プラグイン * @author トリアコンタン * * @help 特定条件(※1)でタブキーを押下したときに発生する * ロストフォーカスイベントを無効化します。 * この現象はGame.exeでのみ発生します。 * * ※1 起動後、初めてタブキーを押下した場合や、マウス操作後に押下した場合など * * このプラグインによって以下の現象が解消されます。 * ・タブの初回キー入力が無効になる * ・タブ入力時、他のキーの押下状態がすべて解除される * ・一度でもTabキーを押下した後で、別のキーを押し続けたまま *  ロストフォーカスすると対象キーを押し続けたままになってしまう * * このプラグインにはプラグインコマンドはありません。 * * 利用規約: * 作者に無断で改変、再配布が可能で、利用形態(商用、18禁利用等) * についても制限はありません。 * このプラグインはもうあなたのものです。 */ (function() { 'use strict'; var _Input__shouldPreventDefault = Input._shouldPreventDefault; Input._shouldPreventDefault = function(keyCode) { return _Input__shouldPreventDefault.apply(this, arguments) || keyCode === 9; // Tab }; })();
28
91
0.574017
c0fa5406ff0748d8faee64a5f42dffe9fa7aa6c7
761
js
JavaScript
Film Store/routes/actor.js
Oth-mane1/film-store
e071c3c73ff6020f53ee546f2b9f9d36121e97c8
[ "MIT" ]
null
null
null
Film Store/routes/actor.js
Oth-mane1/film-store
e071c3c73ff6020f53ee546f2b9f9d36121e97c8
[ "MIT" ]
null
null
null
Film Store/routes/actor.js
Oth-mane1/film-store
e071c3c73ff6020f53ee546f2b9f9d36121e97c8
[ "MIT" ]
1
2021-11-24T09:05:45.000Z
2021-11-24T09:05:45.000Z
var express = require('express'); var path = require('path'); const sql = require('mssql'); const dbConfig = require('../dbConfig'); var router = express.Router(); /* GET actor page. */ router.get('/', function(req, res, next) { res.statusCode = 200; res.sendFile(path.resolve('public/actor.html')); }); router.get('/:id', (req, res, next) => { var id = req.params.id; const pool = new sql.ConnectionPool(dbConfig) pool.connect(err => { var req = new sql.Request(pool) req.query(`Select * from tblActor where ActorName = '${id}'`, (err, rec) => { if (err) { console.log`Error: ${err}` return } res.render('actor', rec.recordset[0]) }) }) }) module.exports = router;
23.060606
83
0.575558
c0fb08f7d240e4c9d7cb43cd73e8d8c5e32eabc2
216
js
JavaScript
2021/day__.js
kalisjoshua/adventofcode
31bc3a98f9581d94696f456bd99e304a2c2659ef
[ "Unlicense" ]
1
2020-12-08T18:02:14.000Z
2020-12-08T18:02:14.000Z
2021/day__.js
kalisjoshua/adventofcode
31bc3a98f9581d94696f456bd99e304a2c2659ef
[ "Unlicense" ]
2
2021-06-10T20:12:40.000Z
2021-06-10T20:12:51.000Z
2021/day__.js
kalisjoshua/adventofcode
31bc3a98f9581d94696f456bd99e304a2c2659ef
[ "Unlicense" ]
null
null
null
const example = ` ` module.exports = (input, {report}) => { input = input.trim().split(/\n/) const partOne = input const partTwo = input // report('Part one', partOne) // report('Part two', partTwo) }
14.4
39
0.601852
c0fb940d25beb625ec0ac79a82f468fed321dedd
469
js
JavaScript
src/services/utils/tezos.js
rohitverma007/gingerbread
5bf01f6669211f34f1442540a32a5935a66aad3c
[ "MIT" ]
14
2018-12-04T03:39:37.000Z
2019-11-02T15:04:33.000Z
src/services/utils/tezos.js
rohitverma007/gingerbread
5bf01f6669211f34f1442540a32a5935a66aad3c
[ "MIT" ]
10
2018-12-11T05:35:15.000Z
2019-04-12T21:39:40.000Z
src/services/utils/tezos.js
rohitverma007/gingerbread
5bf01f6669211f34f1442540a32a5935a66aad3c
[ "MIT" ]
3
2018-12-05T00:53:22.000Z
2020-04-21T03:07:31.000Z
export default class { formatTezosNumericalData (data) { let formattedValue = this.toTezos(data) if (formattedValue > 1000000) { return Math.floor((formattedValue / 1000000) * 1000) / 100 + ' Mꜩ' } else if (formattedValue > 1000) { return Math.floor((formattedValue / 1000) * 100) / 100 + ' Kꜩ' } else { return formattedValue.toFixed(2) + ' ꜩ' } } toTezos (value) { return (parseFloat(parseFloat(value) / 1000000)) } }
29.3125
72
0.626866
c0fbdf542648abbf333bab96d3deb54c83f1a1fe
2,993
js
JavaScript
Cash Register/index.js
johnazar/fcc
3c1cacb61a74b6b5151bd0efe1309ca0f20861c9
[ "MIT" ]
null
null
null
Cash Register/index.js
johnazar/fcc
3c1cacb61a74b6b5151bd0efe1309ca0f20861c9
[ "MIT" ]
null
null
null
Cash Register/index.js
johnazar/fcc
3c1cacb61a74b6b5151bd0efe1309ca0f20861c9
[ "MIT" ]
null
null
null
const REGISTER_STATUS ={ closed: 'CLOSED', insufficient_funds: 'INSUFFICIENT_FUNDS', open:'OPEN' } function checkCashRegister(price, cash, cid) { //cid change in drawer let cashRegister={status:'',change: cid}; //console.log("CID",cid.length); // how mush change needed const changeNeeded = parseFloat(cash-price).toFixed(2); //console.log("changeNeeded" , changeNeeded); const changeAvailable = getTotalCashRegisterChange(cid); //console.log("changeAvailable", changeAvailable); cashRegister.status = getCashRegisterStatus(changeNeeded,changeAvailable); //console.log(cashRegister.status); // in case we do not have insufficient_funds if(cashRegister.status == REGISTER_STATUS.insufficient_funds){ cashRegister.change =[]; //console.log(cashRegister); return cashRegister; } cashRegister.change = getChange(changeNeeded, cid); //console.log(cashRegister.change); if(changeNeeded>getTotalCashRegisterChange(cashRegister.change)){ cashRegister.status = REGISTER_STATUS.insufficient_funds; cashRegister.change =[]; } if(cashRegister.status == REGISTER_STATUS.closed){ cashRegister.change =[...cid]; //console.log(cashRegister); } return cashRegister; } //supplementary functions function getChange(changeNeeded, changeInDrawer){ const change=[]; const currencyDictionary = { "PENNY": 0.01, "NICKEL": 0.05, "DIME": 0.10, "QUARTER": 0.25, "ONE": 1.00, "FIVE": 5.00, "TEN": 10.00, "TWENTY": 20.00, "ONE HUNDRED": 100.00 }; console.log(changeInDrawer); for(let x = changeInDrawer.length-1 ; x >=0 ; x--){ const coinName = changeInDrawer[x][0]; const coinTotal = changeInDrawer[x][1]; const coinValue = currencyDictionary[coinName]; let coinAmount = (coinTotal/coinValue).toFixed(2); let coinToReturn = 0; while(changeNeeded>=coinValue && coinAmount >0){ changeNeeded-= coinValue; changeNeeded= changeNeeded.toFixed(2); coinAmount--; coinToReturn++; } console.log(coinToReturn); if(coinToReturn>0){ change.push([coinName,coinToReturn*coinValue]) } } return change; } function getCashRegisterStatus(changeNeeded, changeAvailable){ if(Number(changeNeeded)>Number(changeAvailable)){ return REGISTER_STATUS.insufficient_funds; } if(Number(changeNeeded)<Number(changeAvailable)){ return REGISTER_STATUS.open; } return REGISTER_STATUS.closed; } function getTotalCashRegisterChange(changeInDrawer){ let total = 0; for (let change of changeInDrawer){ let changeValue = change[1]; //["PENNY", 1.01], changeValue = 1.01 total +=changeValue } return total.toFixed(2); } checkCashRegister(19.5, 20, [["PENNY", 1.01], ["NICKEL", 2.05], ["DIME", 3.1], ["QUARTER", 4.25], ["ONE", 90], ["FIVE", 55], ["TEN", 20], ["TWENTY", 60], ["ONE HUNDRED", 100]]);
29.058252
179
0.660875
c0fbe3d8850d52a08623f23d844721f96c8321cd
116
js
JavaScript
Server/custom/utility.config.js
yeasin72/services-provider
7438ac7b1d17adde2a13934a4f750ae7af7804dc
[ "MIT" ]
null
null
null
Server/custom/utility.config.js
yeasin72/services-provider
7438ac7b1d17adde2a13934a4f750ae7af7804dc
[ "MIT" ]
null
null
null
Server/custom/utility.config.js
yeasin72/services-provider
7438ac7b1d17adde2a13934a4f750ae7af7804dc
[ "MIT" ]
null
null
null
function wordcount(data) { const word = data.split(' ') return word.length } module.exports = wordcount
19.333333
32
0.663793
c0fbfe673238fd7c8488250b3f586ddccc6df57c
22,590
js
JavaScript
build/static/js/main.a4ec88c9.chunk.js
julioleao/my-cash-frontend
6c89cbb84ba6cc4c2e2f4844edeb35caa21a4cb0
[ "MIT" ]
null
null
null
build/static/js/main.a4ec88c9.chunk.js
julioleao/my-cash-frontend
6c89cbb84ba6cc4c2e2f4844edeb35caa21a4cb0
[ "MIT" ]
null
null
null
build/static/js/main.a4ec88c9.chunk.js
julioleao/my-cash-frontend
6c89cbb84ba6cc4c2e2f4844edeb35caa21a4cb0
[ "MIT" ]
null
null
null
(this.webpackJsonpfrontend=this.webpackJsonpfrontend||[]).push([[0],{152:function(e,t,a){e.exports=a(297)},171:function(e,t,a){},296:function(e,t,a){},297:function(e,t,a){"use strict";a.r(t);var n=a(0),r=a.n(n),l=a(59),c=a.n(l),o=a(4),s=a(8),i=a(124),u=a.n(i),m=a(125),p=a.n(m),d=a(126),b=a(9),E=a(10),h=a(12),f=a(11),v=a(80),y=a.n(v);window.$=window.jQuery=y.a;a(162),a(163),a(164),a(165),a(166),a(167),a(168),a(169),a(170),a(171);var O=a(25),g=a.n(O),N=a(44),j=a(26),C=a.n(j),k={API_URL:"".concat("http://localhost:3000","/api"),OAPI_URL:"".concat("http://localhost:3000","/oapi")},w=a(14),D="_mymoney_user",_={user:JSON.parse(localStorage.getItem(D)),validToken:!1};function T(e){return L(e,"".concat(k.OAPI_URL,"/login"))}function S(e){return L(e,"".concat(k.OAPI_URL,"/signup"))}function L(e,t){return function(a){g.a.post(t,e).then((function(e){a([{type:"USER_FETCHED",payload:e.data}])})).catch((function(e){e.response.data.errors.forEach((function(e){return j.toastr.error("Erro",e)}))}))}}function I(){return{type:"TOKEN_VALIDATED",payload:!1}}function A(e){return function(t){e?g.a.post("".concat(k.OAPI_URL,"/validateToken"),{token:e}).then((function(e){t({type:"TOKEN_VALIDATED",payload:e.data.valid})})).catch((function(e){return t({type:"TOKEN_VALIDATED",payload:!1})})):t({type:"TOKEN_VALIDATED",payload:!1})}}var R=function(e){Object(h.a)(a,e);var t=Object(f.a)(a);function a(e){var n;return Object(b.a)(this,a),(n=t.call(this,e)).state={open:!1},n}return Object(E.a)(a,[{key:"changeOpen",value:function(){this.setState({open:!this.state.open})}},{key:"render",value:function(){var e=this,t=this.props.user,a=t.name,n=t.email;return r.a.createElement("div",{className:"navbar-custom-menu"},r.a.createElement("ul",{className:"nav navbar-nav"},r.a.createElement("li",{onMouseLeave:function(){return e.changeOpen()},className:"dropdown user user-menu ".concat(this.state.open?"open":"")},r.a.createElement("a",{onClick:function(){return e.changeOpen()},"aria-expanded":this.state.open?"true":"false",className:"dropdown-toggle","data-toggle":"dropdown"},r.a.createElement("img",{src:"http://lorempixel.com/160/160/abstract",className:"user-image",alt:"User"}),r.a.createElement("span",{className:"hidden-xs"},a)),r.a.createElement("ul",{className:"dropdown-menu"},r.a.createElement("li",{className:"user-header"},r.a.createElement("img",{src:"http://lorempixel.com/160/160/abstract",className:"img-circle",alt:"User"}),r.a.createElement("p",null,a,r.a.createElement("small",null,n))),r.a.createElement("li",{className:"user-footer"},r.a.createElement("div",{className:"pull-right"},r.a.createElement("a",{href:"#",onClick:this.props.logout,className:"btn btn-default btn-flat"},"Sair")))))))}}]),a}(n.Component),M=Object(s.connect)((function(e){return{user:e.auth.user}}),(function(e){return Object(o.b)({logout:I},e)}))(R),x=function(e){return r.a.createElement("header",{className:"main-header"},r.a.createElement("a",{href:"/",className:"logo"},r.a.createElement("span",{className:"logo-mini"},r.a.createElement("b",null,"My"),"M"),r.a.createElement("span",{className:"logo-lg"},r.a.createElement("i",{className:"fa fa-money"}),r.a.createElement("b",null," My")," Money")),r.a.createElement("nav",{className:"navbar navbar-static-top"},r.a.createElement("a",{className:"sidebar-toggle","data-toggle":"offcanvas"}),r.a.createElement(M,null)))},U=function(e){return r.a.createElement("li",null,r.a.createElement(N.b,{to:e.path},r.a.createElement("i",{className:"fa fa-".concat(e.icon)})," ",r.a.createElement("span",null,e.label)))},F=function(e){return r.a.createElement("li",{className:"treeview"},r.a.createElement("a",null,r.a.createElement("i",{className:"fa fa-".concat(e.icon)})," ",r.a.createElement("span",null,e.label),r.a.createElement("i",{className:"fa fa-angle-left pull-right"})),r.a.createElement("ul",{className:"treeview-menu"},e.children))},B=function(e){return r.a.createElement("ul",{className:"sidebar-menu"},r.a.createElement(U,{path:"/",label:"Dashboard",icon:"dashboard"}),r.a.createElement(F,{label:"Cadastro",icon:"edit"},r.a.createElement(U,{path:"billingCycles",label:"Ciclos de Pagamentos",icon:"usd"})))},V=function(e){return r.a.createElement("aside",{className:"main-sidebar"},r.a.createElement("section",{className:"sidebar"},r.a.createElement(B,null)))},H=function(e){return r.a.createElement("footer",{className:"main-footer"},r.a.createElement("strong",null,"Copyright \xa9",(new Date).getFullYear()))},P=a(13),$="".concat("http://localhost:3000","/api");function J(){return{type:"BILLING_SUMMARY_FETCHED",payload:g.a.get("".concat($,"/billingCycles/summary"))}}var K=function(e){return r.a.createElement("div",null,r.a.createElement("section",{className:"content-header"},r.a.createElement("h1",null,e.title," ",r.a.createElement("small",null,e.small))))},Y=function(e){return r.a.createElement("div",null,r.a.createElement("section",{className:"content"},e.children))},G=function(e){Object(h.a)(a,e);var t=Object(f.a)(a);function a(){return Object(b.a)(this,a),t.apply(this,arguments)}return Object(E.a)(a,[{key:"toCssClasses",value:function(e){var t=e?e.split(" "):[],a="";return t[0]&&(a+="col-xs-".concat(t[0])),t[1]&&(a+=" col-sm-".concat(t[1])),t[2]&&(a+=" col-md-".concat(t[2])),t[3]&&(a+=" col-lg-".concat(t[3])),a}},{key:"render",value:function(){var e=this.toCssClasses(this.props.col||"12");return r.a.createElement("div",{className:e},this.props.children)}}]),a}(n.Component),W=function(e){return r.a.createElement(G,{col:e.col},r.a.createElement("div",{className:"small-box bg-".concat(e.color)},r.a.createElement("div",{className:"inner"},r.a.createElement("h3",null,e.value),r.a.createElement("p",null,e.text)),r.a.createElement("div",{className:"icon"},r.a.createElement("i",{className:"fa fa-".concat(e.icon)}))))},X=function(e){return r.a.createElement("div",{className:"row"},e.children)},q=function(e){Object(h.a)(a,e);var t=Object(f.a)(a);function a(){return Object(b.a)(this,a),t.apply(this,arguments)}return Object(E.a)(a,[{key:"componentDidMount",value:function(){this.props.getSummary()}},{key:"render",value:function(){var e=this.props.summary,t=e.credit,a=e.debt;return r.a.createElement("div",null,r.a.createElement(K,{title:"Dashboard",small:"Vers\xe3o 1.0"}),r.a.createElement(Y,null,r.a.createElement(X,null,r.a.createElement(W,{col:"12 4",color:"green",icon:"bank",value:"R$ ".concat(t),text:"Total de Cr\xe9ditos"}),r.a.createElement(W,{col:"12 4",color:"red",icon:"credit-card",value:"R$ ".concat(a),text:"Total de D\xe9bitos"}),r.a.createElement(W,{col:"12 4",color:"blue",icon:"money",value:"R$ ".concat(t-a),text:"Valor Consolidado"}))))}}]),a}(n.Component),z=Object(s.connect)((function(e){return{summary:e.dashboard.summary}}),(function(e){return Object(o.b)({getSummary:J},e)}))(q),Q=function(e){return r.a.createElement("div",{className:"nav-tabs-custom"},e.children)},Z=function(e){return r.a.createElement("div",{className:"tab-content"},e.children)},ee=function(e){return r.a.createElement("ul",{className:"nav nav-tabs"},e.children)},te=function(e){return!!e.test&&e.children};function ae(e){return{type:"TAB_SELECTED",payload:e}}function ne(){for(var e={},t=arguments.length,a=new Array(t),n=0;n<t;n++)a[n]=arguments[n];return a.forEach((function(t){return e[t]=!0})),{type:"TAB_SHOWED",payload:e}}var re=function(e){Object(h.a)(a,e);var t=Object(f.a)(a);function a(){return Object(b.a)(this,a),t.apply(this,arguments)}return Object(E.a)(a,[{key:"render",value:function(){var e=this,t=this.props.tab.selected===this.props.target,a=this.props.tab.visible[this.props.target];return r.a.createElement(te,{test:a},r.a.createElement("li",{className:t?"active":""},r.a.createElement("a",{"data-toggle":"tab",onClick:function(){return e.props.selectTab(e.props.target)},"data-target":this.props.target},r.a.createElement("i",{className:"fa fa-".concat(this.props.icon)})," ",this.props.label)))}}]),a}(n.Component),le=Object(s.connect)((function(e){return{tab:e.tab}}),(function(e){return Object(o.b)({selectTab:ae},e)}))(re),ce=function(e){Object(h.a)(a,e);var t=Object(f.a)(a);function a(){return Object(b.a)(this,a),t.apply(this,arguments)}return Object(E.a)(a,[{key:"render",value:function(){var e=this.props.tab.selected===this.props.id,t=this.props.tab.visible[this.props.id];return r.a.createElement(te,{test:t},r.a.createElement("div",{id:this.props.id,className:"tab-pane ".concat(e?"active":"")},this.props.children))}}]),a}(n.Component),oe=Object(s.connect)((function(e){return{tab:e.tab}}))(ce),se=a(24),ie={credits:[{}],debts:[{}]};function ue(){return{type:"BILLING_CYCLE_FETCHED",payload:g.a.get("".concat($,"/billingCycles"))}}function me(e){return be(e,"post")}function pe(e){return be(e,"put")}function de(e){return be(e,"delete")}function be(e,t){return function(a){var n=e._id?e._id:"";g.a[t]("".concat($,"/billingCycles/").concat(n),e).then((function(e){j.toastr.success("Sucesso","Opera\xe7\xe3o realizada com sucesso."),a(fe())})).catch((function(e){e.response.data.errors.forEach((function(e){return j.toastr.error("Erro",e)}))}))}}function Ee(e){return[ne("tabUpdate"),ae("tabUpdate"),Object(se.c)("billingCycleForm",e)]}function he(e){return[ne("tabDelete"),ae("tabDelete"),Object(se.c)("billingCycleForm",e)]}function fe(){return[ne("tabList","tabCreate"),ae("tabList"),ue(),Object(se.c)("billingCycleForm",ie)]}var ve=function(e){Object(h.a)(a,e);var t=Object(f.a)(a);function a(){return Object(b.a)(this,a),t.apply(this,arguments)}return Object(E.a)(a,[{key:"componentDidMount",value:function(){this.props.getList()}},{key:"renderRows",value:function(){var e=this;return(this.props.list||[]).map((function(t){return r.a.createElement("tr",{key:t._id},r.a.createElement("td",null,t.name),r.a.createElement("td",null,t.month),r.a.createElement("td",null,t.year),r.a.createElement("td",null,r.a.createElement("button",{className:"btn btn-warning",onClick:function(){return e.props.showUpdate(t)}},r.a.createElement("i",{className:"fa fa-pencil"})),r.a.createElement("button",{className:"btn btn-danger",onClick:function(){return e.props.showDelete(t)}},r.a.createElement("i",{className:"fa fa-trash-o"}))))}))}},{key:"render",value:function(){return r.a.createElement("div",null,r.a.createElement("table",{className:"table"},r.a.createElement("thead",null,r.a.createElement("tr",null,r.a.createElement("th",null,"Nome"),r.a.createElement("th",null,"M\xeas"),r.a.createElement("th",null,"Ano"),r.a.createElement("th",{className:"table-actions"},"A\xe7\xf5es"))),r.a.createElement("tbody",null,this.renderRows())))}}]),a}(n.Component),ye=Object(s.connect)((function(e){return{list:e.billingCycle.list}}),(function(e){return Object(o.b)({getList:ue,showUpdate:Ee,showDelete:he},e)}))(ve),Oe=a(119),ge=a(120),Ne=a(122),je=function(e){return r.a.createElement(G,{col:e.col},r.a.createElement("div",{className:"form-group"},r.a.createElement("label",{htmlFor:e.name},e.label),r.a.createElement("input",Object.assign({},e.input,{className:"form-control",placeholder:e.placeholder,readOnly:e.readOnly,type:e.type}))))},Ce=function(e){return r.a.createElement("input",Object.assign({},e.input,{className:"form-control",placeholder:e.placeholder,readOnly:e.type}))},ke=function(e){Object(h.a)(a,e);var t=Object(f.a)(a);function a(){return Object(b.a)(this,a),t.apply(this,arguments)}return Object(E.a)(a,[{key:"add",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.props.readOnly||this.props.arrayInsert("billingCycleForm",this.props.field,e,t)}},{key:"remove",value:function(e){!this.props.readOnly&&this.props.list.length>1&&this.props.arrayRemove("billingCycleForm",this.props.field,e)}},{key:"renderRows",value:function(){var e=this;return(this.props.list||[]).map((function(t,a){return r.a.createElement("tr",{key:a},r.a.createElement("td",null,r.a.createElement(Oe.a,{name:"".concat(e.props.field,"[").concat(a,"].name"),component:Ce,placeholder:"Informe o nome",readOnly:e.props.readOnly})),r.a.createElement("td",null,r.a.createElement(Oe.a,{name:"".concat(e.props.field,"[").concat(a,"].value"),component:Ce,placeholder:"Informe o valor",readOnly:e.props.readOnly})),r.a.createElement(te,{test:e.props.showStatus},r.a.createElement("td",null,r.a.createElement(Oe.a,{name:"".concat(e.props.field,"[").concat(a,"].status"),component:Ce,placeholder:"Informe o status",readOnly:e.props.readOnly}))),r.a.createElement("td",null,r.a.createElement("button",{type:"button",className:"btn btn-success",onClick:function(){return e.add(a+1)}},r.a.createElement("i",{className:"fa fa-plus"})),r.a.createElement("button",{type:"button",className:"btn btn-warning",onClick:function(){return e.add(a+1,t)}},r.a.createElement("i",{className:"fa fa-clone"})),r.a.createElement("button",{type:"button",className:"btn btn-danger",onClick:function(){return e.remove(a)}},r.a.createElement("i",{className:"fa fa-trash-o"}))))}))}},{key:"render",value:function(){return r.a.createElement(G,{col:this.props.col},r.a.createElement("fieldset",null,r.a.createElement("legend",null,this.props.legend),r.a.createElement("table",{className:"table"},r.a.createElement("thead",null,r.a.createElement("tr",null,r.a.createElement("th",null,"Nome"),r.a.createElement("th",null,"Valor"),r.a.createElement(te,{test:this.props.showStatus},r.a.createElement("th",null,"Status")),r.a.createElement("th",{className:"table-actions"},"A\xe7\xf5es"))),r.a.createElement("tbody",null,this.renderRows()))))}}]),a}(n.Component),we=Object(s.connect)(null,(function(e){return Object(o.b)({arrayInsert:se.a,arrayRemove:se.b},e)}))(ke),De=function(e){var t=e.credit,a=e.debt;return r.a.createElement(G,{col:"12"},r.a.createElement("fieldset",null,r.a.createElement("legend",null,"Resumo"),r.a.createElement(X,null,r.a.createElement(W,{col:"12 4",color:"green",icon:"bank",value:"R$ ".concat(t),text:"Total de Cr\xe9ditos"}),r.a.createElement(W,{col:"12 4",color:"red",icon:"credit-card",value:"R$ ".concat(a),text:"Total de D\xe9bitos"}),r.a.createElement(W,{col:"12 4",color:"blue",icon:"money",value:"R$ ".concat(t-a),text:"Valor Consolidado"}))))},_e=function(e){Object(h.a)(a,e);var t=Object(f.a)(a);function a(){return Object(b.a)(this,a),t.apply(this,arguments)}return Object(E.a)(a,[{key:"calculateSummary",value:function(){var e=function(e,t){return e+t};return{sumOfCredits:this.props.credits.map((function(e){return+e.value||0})).reduce(e),sumOfDebts:this.props.debts.map((function(e){return+e.value||0})).reduce(e)}}},{key:"render",value:function(){var e=this.props,t=e.handleSubmit,a=e.readOnly,n=e.credits,l=e.debts,c=this.calculateSummary(),o=c.sumOfCredits,s=c.sumOfDebts;return r.a.createElement("form",{onSubmit:t},r.a.createElement("div",{className:"box-body"},r.a.createElement(Oe.a,{name:"name",component:je,readOnly:a,label:"Nome",col:"12 4",placeholder:"Informe seu nome"}),r.a.createElement(Oe.a,{name:"month",component:je,readOnly:a,label:"M\xeas",col:"12 4",placeholder:"Informe o m\xeas"}),r.a.createElement(Oe.a,{name:"year",component:je,readOnly:a,label:"Ano",col:"12 4",placeholder:"Informe o ano"}),r.a.createElement(De,{credit:o,debt:s}),r.a.createElement(we,{col:"12 6",list:n,readOnly:a,field:"credits",legend:"Cr\xe9ditos"}),r.a.createElement(we,{col:"12 6",list:l,readOnly:a,field:"debts",legend:"D\xe9bitos",showStatus:!0})),r.a.createElement("div",{className:"box-footer"},r.a.createElement("button",{type:"submit",className:"btn btn-".concat(this.props.submitClass)},this.props.submitLabel),r.a.createElement("button",{type:"button",className:"btn btn-default",onClick:this.props.init},"Cancelar")))}}]),a}(n.Component);_e=Object(ge.a)({form:"billingCycleForm",destroyOnUnmount:!1})(_e);var Te=Object(Ne.a)("billingCycleForm"),Se=Object(s.connect)((function(e){return{credits:Te(e,"credits"),debts:Te(e,"debts")}}),(function(e){return Object(o.b)({init:fe},e)}))(_e),Le=function(e){Object(h.a)(a,e);var t=Object(f.a)(a);function a(){return Object(b.a)(this,a),t.apply(this,arguments)}return Object(E.a)(a,[{key:"componentDidMount",value:function(){this.props.init()}},{key:"render",value:function(){return r.a.createElement("div",null,r.a.createElement(K,{title:"Ciclos de Pagamento",small:"Cadastro"}),r.a.createElement(Y,null,r.a.createElement(Q,null,r.a.createElement(ee,null,r.a.createElement(le,{label:"Listar",icon:"bars",target:"tabList"}),r.a.createElement(le,{label:"Incluir",icon:"plus",target:"tabCreate"}),r.a.createElement(le,{label:"Alterar",icon:"pencil",target:"tabUpdate"}),r.a.createElement(le,{label:"Excluir",icon:"trash-o",target:"tabDelete"})),r.a.createElement(Z,null,r.a.createElement(oe,{id:"tabList"},r.a.createElement(ye,null)),r.a.createElement(oe,{id:"tabCreate"},r.a.createElement(Se,{onSubmit:this.props.create,submitLabel:"Adicionar",submitClass:"primary"})),r.a.createElement(oe,{id:"tabUpdate"},r.a.createElement(Se,{onSubmit:this.props.update,submitLabel:"Alterar",submitClass:"info"})),r.a.createElement(oe,{id:"tabDelete"},r.a.createElement(Se,{onSubmit:this.props.remove,readOnly:!0,submitLabel:"Apagar",submitClass:"danger"}))))))}}]),a}(n.Component),Ie=Object(s.connect)(null,(function(e){return Object(o.b)({create:me,update:pe,remove:de,init:fe},e)}))(Le),Ae=function(e){return r.a.createElement("div",{className:"content-wrapper"},r.a.createElement(P.d,null,r.a.createElement(P.b,{exact:!0,path:"/",component:z}),r.a.createElement(P.b,{path:"/billingCycles",component:Ie}),r.a.createElement(P.a,{from:"*",to:"/"})))},Re=(a(295),function(e){return r.a.createElement(C.a,{timeOut:4e3,newestOnTop:!1,preventDuplicates:!0,position:"top-right",transitionIn:"fadeIn",transitionOut:"fadeOut",progressBar:!0})}),Me=function(e){return r.a.createElement(N.a,null,r.a.createElement("div",{className:"wrapper"},r.a.createElement(x,null),r.a.createElement(V,null),r.a.createElement(Ae,null),r.a.createElement(H,null),r.a.createElement(Re,null)))},xe=(a(296),function(e){return r.a.createElement(te,{test:!e.hide},r.a.createElement("div",{className:"form-group has-feedback"},r.a.createElement("input",Object.assign({},e.input,{className:"form-control",placeholder:e.placeholder,readOnly:e.readOnly,type:e.type})),r.a.createElement("span",{className:"glyphicon glyphicon-".concat(e.icon,"\n form-control-feedback")})))}),Ue=function(e){Object(h.a)(a,e);var t=Object(f.a)(a);function a(e){var n;return Object(b.a)(this,a),(n=t.call(this,e)).state={loginMode:!0},n}return Object(E.a)(a,[{key:"changeMode",value:function(){this.setState({loginMode:!this.state.loginMode})}},{key:"onSubmit",value:function(e){var t=this.props,a=t.login,n=t.signup;this.state.loginMode?a(e):n(e)}},{key:"render",value:function(){var e=this,t=this.state.loginMode,a=this.props.handleSubmit;return r.a.createElement("div",{className:"login-box"},r.a.createElement("div",{className:"login-logo"},r.a.createElement("b",null," My")," Money"),r.a.createElement("div",{className:"login-box-body"},r.a.createElement("p",{className:"login-box-msg"},"Bem vindo!"),r.a.createElement("form",{onSubmit:a((function(t){return e.onSubmit(t)}))},r.a.createElement(Oe.a,{component:xe,type:"input",name:"name",placeholder:"Nome",icon:"user",hide:t}),r.a.createElement(Oe.a,{component:xe,type:"email",name:"email",placeholder:"E-mail",icon:"envelope"}),r.a.createElement(Oe.a,{component:xe,type:"password",name:"password",placeholder:"Senha",icon:"lock"}),r.a.createElement(Oe.a,{component:xe,type:"password",name:"confirm_password",placeholder:"Confirmar Senha",icon:"lock",hide:t}),r.a.createElement(X,null,r.a.createElement(G,{cols:"4"},r.a.createElement("button",{type:"submit",className:"btn btn-primary btn-block btn-flat"},t?"Entrar":"Registrar")))),r.a.createElement("br",null),r.a.createElement("a",{onClick:function(){return e.changeMode()}},t?"Novo usu\xe1rio? Registrar aqui!":"J\xe1 \xe9 cadastrado? Entrar aqui!")),r.a.createElement(Re,null))}}]),a}(n.Component);Ue=Object(ge.a)({form:"authForm"})(Ue);var Fe=Object(s.connect)(null,(function(e){return Object(o.b)({login:T,signup:S},e)}))(Ue),Be=function(e){Object(h.a)(a,e);var t=Object(f.a)(a);function a(){return Object(b.a)(this,a),t.apply(this,arguments)}return Object(E.a)(a,[{key:"componentDidMount",value:function(){this.props.auth.user&&this.props.validateToken(this.props.auth.user.token)}},{key:"render",value:function(){var e=this.props.auth,t=e.user,a=e.validToken;return t&&a?(g.a.defaults.headers.common.authorization=t.token,r.a.createElement(Me,null,this.props.children)):!t&&!a&&r.a.createElement(Fe,null)}}]),a}(n.Component),Ve=Object(s.connect)((function(e){return{auth:e.auth}}),(function(e){return Object(o.b)({validateToken:A},e)}))(Be),He=a(121),Pe={summary:{credit:0,debt:0}},$e={selected:"",visible:{}},Je={list:[]},Ke=Object(o.c)({dashboard:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Pe,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"BILLING_SUMMARY_FETCHED":return Object(w.a)(Object(w.a)({},e),{},{summary:t.payload.data});default:return e}},tab:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$e,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TAB_SELECTED":return Object(w.a)(Object(w.a)({},e),{},{selected:t.payload});case"TAB_SHOWED":return Object(w.a)(Object(w.a)({},e),{},{visible:t.payload});default:return e}},billingCycle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Je,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"BILLING_CYCLE_FETCHED":return Object(w.a)(Object(w.a)({},e),{},{list:t.payload.data});default:return e}},form:He.a,toastr:j.reducer,auth:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"TOKEN_VALIDATED":return t.payload?Object(w.a)(Object(w.a)({},e),{},{validToken:!0}):(localStorage.removeItem(D),Object(w.a)(Object(w.a)({},e),{},{validToken:!1,user:null}));case"USER_FETCHED":return localStorage.setItem(D,JSON.stringify(t.payload)),Object(w.a)(Object(w.a)({},e),{},{user:t.payload,validToken:!0});default:return e}}});Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));var Ye=window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__(),Ge=Object(o.a)(p.a,d.a,u.a)(o.d)(Ke,Ye);c.a.render(r.a.createElement(s.Provider,{store:Ge},r.a.createElement(Ve,null)),document.getElementById("app")),"serviceWorker"in navigator&&navigator.serviceWorker.ready.then((function(e){e.unregister()})).catch((function(e){console.error(e.message)}))}},[[152,1,2]]]); //# sourceMappingURL=main.a4ec88c9.chunk.js.map
11,295
22,542
0.713679
c0fc0995be058e8be63270cda7d7b304035d1514
2,207
js
JavaScript
c/html/js/mathjax/unpacked/jax/output/HTML-CSS/fonts/Neo-Euler/Size4/Regular/Main.js
masterfish2015/my_project
dfd340ba142a1e3adaa9d93e6ba677d0da840276
[ "MIT" ]
1
2018-10-09T14:46:36.000Z
2018-10-09T14:46:36.000Z
libs/mathjax/unpacked/jax/output/HTML-CSS/fonts/Neo-Euler/Size4/Regular/Main.js
masterfish2015/my_project
dfd340ba142a1e3adaa9d93e6ba677d0da840276
[ "MIT" ]
null
null
null
libs/mathjax/unpacked/jax/output/HTML-CSS/fonts/Neo-Euler/Size4/Regular/Main.js
masterfish2015/my_project
dfd340ba142a1e3adaa9d93e6ba677d0da840276
[ "MIT" ]
null
null
null
/************************************************************* * * MathJax/jax/output/HTML-CSS/fonts/Neo-Euler/Size4/Regular/Main.js * * Copyright (c) 2013-2016 The MathJax Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ MathJax.OutputJax['HTML-CSS'].FONTDATA.FONTS['NeoEulerMathJax_Size4'] = { directory: 'Size4/Regular', family: 'NeoEulerMathJax_Size4', testString: '\u00A0\u2016\u2044\u2215\u221A\u2223\u2225\u2308\u2309\u230A\u230B\u2329\u232A\u23DC\u23DD', 0x20: [0,0,333,0,0], 0x28: [2799,199,790,236,768], 0x29: [2799,199,790,22,554], 0x2F: [2799,200,1277,50,1228], 0x5B: [2874,125,583,275,571], 0x5C: [2799,200,1277,50,1228], 0x5D: [2874,125,583,11,307], 0x7B: [2799,200,806,144,661], 0x7C: [3098,208,213,86,126], 0x7D: [2799,200,806,144,661], 0xA0: [0,0,333,0,0], 0x2016: [3098,208,403,86,316], 0x2044: [2799,200,1277,50,1228], 0x2215: [2799,200,1277,50,1228], 0x221A: [3002,1,1000,111,1023], 0x2223: [3098,208,213,86,126], 0x2225: [2498,208,403,86,316], 0x2308: [2799,200,638,275,627], 0x2309: [2799,200,638,11,363], 0x230A: [2799,200,638,275,627], 0x230B: [2799,200,638,11,363], 0x2329: [2730,228,803,137,694], 0x232A: [2730,228,859,109,666], 0x23DC: [814,-293,3111,56,3055], 0x23DD: [264,257,3111,56,3055], 0x23DE: [962,-445,3111,56,3055], 0x23DF: [110,407,3111,56,3055], 0x27E8: [2134,232,757,123,648], 0x27E9: [2134,232,818,100,625] }; MathJax.Callback.Queue( ["initFont",MathJax.OutputJax["HTML-CSS"],"NeoEulerMathJax_Size4"], ["loadComplete",MathJax.Ajax,MathJax.OutputJax["HTML-CSS"].fontDir+"/Size4/Regular/Main.js"] );
37.40678
108
0.650204
c0fc25afe54a7f757381ce936862dcfd2a6da137
3,321
js
JavaScript
corehq/apps/app_manager/static/app_manager/js/app_manager_utils.js
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
471
2015-01-10T02:55:01.000Z
2022-03-29T18:07:18.000Z
corehq/apps/app_manager/static/app_manager/js/app_manager_utils.js
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
14,354
2015-01-01T07:38:23.000Z
2022-03-31T20:55:14.000Z
corehq/apps/app_manager/static/app_manager/js/app_manager_utils.js
akashkj/commcare-hq
b00a62336ec26cea1477dfb8c048c548cc462831
[ "BSD-3-Clause" ]
175
2015-01-06T07:16:47.000Z
2022-03-29T13:27:01.000Z
hqDefine('app_manager/js/app_manager_utils', [ 'jquery', 'underscore', ], function ( $, _ ) { var get_bitly_to_phonetic_dict = function () { var nato_phonetic = { "A": "Alpha", "B": "Bravo", "C": "Charlie", "D": "Delta", "E": "Echo", "F": "Foxtrot", "G": "Golf", "H": "Hotel", "I": "India", "J": "Juliett", "K": "Kilo", "L": "Lima", "M": "Mike", "N": "November", "O": "Oscar", "P": "Papa", "Q": "Quebec", "R": "Romeo", "S": "Sierra", "T": "Tango", "U": "Uniform", "V": "Victor", "W": "Whiskey", "X": "X-ray", "Y": "Yankee", "Z": "Zulu", }; var bitly_to_phonetic = { '0': 'zero', '1': 'one', '2': 'two', '3': 'three', '4': 'four', '5': 'five', '6': 'six', '7': 'seven', '8': 'eight', '9': 'nine', }; bitly_to_phonetic = _(bitly_to_phonetic).extend(_.object(_(nato_phonetic).map(function (v, k) { return [k.toLowerCase(), v.toLowerCase()]; }))); bitly_to_phonetic = _(bitly_to_phonetic).extend(_.object(_(nato_phonetic).map(function (v, k) { return [k.toUpperCase(), v.toUpperCase()]; }))); return bitly_to_phonetic; }; var bitly_to_phonetic; var bitly_nato_phonetic = function (bitly_url) { /** * We use this method to explicitly spell out the bitly code for * users who have trouble reading the letters (esp. 1 and l, O and 0) */ 'use strict'; if (bitly_to_phonetic === undefined) { bitly_to_phonetic = get_bitly_to_phonetic_dict(); } if (bitly_url) { var bitly_code = bitly_url.replace('http://bit.ly/', ''); var phonetics = []; for (var i = 0; i < bitly_code.length; i++) { phonetics.push(bitly_to_phonetic[bitly_code[i]] || 'symbol'); } return phonetics.join(' '); } }; var handleAjaxAppChange = function (callback) { $(document).ajaxComplete(function (e, xhr, options) { xhr.done(() => { var match = options.url.match(/\/apps\/(.*)/); if (match) { var suffix = match[1]; // first captured group if (/^edit_form_attr/.test(suffix) || /^edit_module_attr/.test(suffix) || /^edit_module_detail_screens/.test(suffix) || /^edit_app_attr/.test(suffix) || /^edit_form_actions/.test(suffix) || /^edit_commcare_settings/.test(suffix) || /^rearrange/.test(suffix) || /^patch_xform/.test(suffix)) { callback(); } } }); }); }; return { bitly_nato_phonetic: bitly_nato_phonetic, handleAjaxAppChange: handleAjaxAppChange, }; });
31.932692
103
0.429389
c0fd0852a1675fcf4e4dad15ad56b1753e60a495
217
js
JavaScript
jest.config.js
foxglove/ts-jest-resolver
08ec1b6ac8a1b5bf574d5ea0f27a373abc8a2ec4
[ "MIT" ]
25
2021-03-22T03:44:34.000Z
2022-02-27T19:22:27.000Z
jest.config.js
foxglove/ts-jest-resolver
08ec1b6ac8a1b5bf574d5ea0f27a373abc8a2ec4
[ "MIT" ]
3
2021-05-26T02:59:37.000Z
2021-07-30T14:35:04.000Z
jest.config.js
foxglove/ts-jest-resolver
08ec1b6ac8a1b5bf574d5ea0f27a373abc8a2ec4
[ "MIT" ]
3
2021-05-26T03:01:22.000Z
2021-07-30T12:21:57.000Z
// @ts-check /* eslint-env node */ /** * An object with Jest options. * @type {import('@jest/types').Config.InitialOptions} */ const options = { preset: 'ts-jest', resolver: '.', }; module.exports = options;
15.5
54
0.617512
c0fd2612540c15c4f749fa5f4134595a16ae9d0f
995
js
JavaScript
test/js/indent.js
mtaran-google/google-modes
4713338d3b8083ea6846bb45f93fff7a3df61948
[ "MIT" ]
33
2017-07-08T05:11:37.000Z
2021-06-26T18:39:32.000Z
test/js/indent.js
mtaran-google/google-modes
4713338d3b8083ea6846bb45f93fff7a3df61948
[ "MIT" ]
330
2017-07-07T17:56:38.000Z
2021-12-17T11:02:25.000Z
test/js/indent.js
mtaran-google/google-modes
4713338d3b8083ea6846bb45f93fff7a3df61948
[ "MIT" ]
28
2017-07-07T17:43:35.000Z
2022-02-20T05:25:42.000Z
// test: indent_only const foo = 1 + 2 ; const foo = [1, 2]; const foo = [ 1, 2]; const foo = {a, b}; const foo = { a, b}; someMethod(foo, [ 0, 1, 2,], bar); someMethod( foo, [0, 1, 2,], bar); someMethod(foo, [ 0, 1, 2, ], bar); someMethod( foo, [ 1, 2],); someMethod( foo, [1, 2], ); someMethod(foo, { a: 1, b: 2,}, bar); someMethod( foo, {a: 1, b: 2,}, bar); someMethod(foo, { a: 1, b: 2 }, bar); someMethod( foo, { a: 1, b: 2},); someMethod( foo, {a: 1, b: 2}, ); someMethod(a => a*2 ); someMethod(a => { a*2} ); foo() .bar(a => a*2); foo().bar(a => a*2); foo = function() { }; foo = function() { }; switch (foo) { case 1: return b;} switch (foo) { case 1: return b;} class Foo { } class Foo { bar( ) {} } class Foo { bar() { } } if (x) { statement; more; }
8.22314
21
0.40201
c0fda13d99980b2ec42e5effb5d95590f056716e
75,354
js
JavaScript
js/index.js
AlvaroXimenesrj/TomTom
d1585298e8954f5639f9f87745ee7484119cd90c
[ "Apache-2.0" ]
null
null
null
js/index.js
AlvaroXimenesrj/TomTom
d1585298e8954f5639f9f87745ee7484119cd90c
[ "Apache-2.0" ]
1
2022-02-13T04:53:33.000Z
2022-02-13T04:53:33.000Z
js/index.js
AlvaroXimenesrj/TomTom
d1585298e8954f5639f9f87745ee7484119cd90c
[ "Apache-2.0" ]
null
null
null
/* globals t, Clipboard, Prism, tomtom */ (function() { 'use strict'; var EXAMPLES; var loadedScripts = new LoadedScripts(); var mapInstances = []; var currentLoadedExample; var allExampleIds = []; var sidebarEl; var API_KEYS = [{ placeholder: '<your-tomtom-API-key>', name: 'api.key', label: 'Maps API key'}, { placeholder: '<your-tomtom-traffic-API-key>', name: 'api.key.traffic', label: 'Traffic API key' }, { placeholder: '<your-tomtom-traffic-flow-API-key>', name: 'api.key.trafficFlow', label: 'Traffic Flow API key' }, { placeholder: '<your-tomtom-search-API-key>', name: 'api.key.search', label: 'Search API key' }, { placeholder: '<your-tomtom-routing-API-key>', name: 'api.key.routing', label: 'Routing API key' }]; var devPortalBaseUrl = 'https://developer.tomtom.com'; var mapSdkDocsUrl = devPortalBaseUrl + '/maps-sdk-web/documentation'; var searchApiDocsUrl = devPortalBaseUrl + '/search-api/search-api-documentation'; var routingApiDocsUrl = devPortalBaseUrl + '/routing-api/routing-api-documentation-routing'; function addInstance() { mapInstances = [].concat(mapInstances, this); } //hack to get over coffee script loading multiple times var oldAddEventListener = window.addEventListener; window.coffeeScriptLoaded = false; window.addEventListener = function(type, listener, useCapture) { if (type === 'DOMContentLoaded' && listener && listener.toString().indexOf('text/coffeescript') > -1) { if (window.coffeeScriptLoaded) { return; } window.coffeeScriptLoaded = true; } oldAddEventListener.call(this, type, listener, useCapture); }; /** * Returns the absolute path where example HTML files are located. * @return {String} */ function getBaseUrl() { return (/^(.*\/)/).exec(window.location.href)[1]; } window.baseUrl = window.baseUrl || getBaseUrl(); /** * Sends a message to the iframe container. * @param {*} msg */ function sentMessageToParent(msg) { // The global parentIFrame is created by the iframeResizer lib // Method documented at https://github.com/davidjbradshaw/iframe-resizer#sendmessagemessagetargetorigin window.parentIFrame.sendMessage(msg, '*'); } /** * @param {String} pageUrl * @return {String} */ function getExampleIdFromUrl(pageUrl) { var matches = /([-\w.]+)\.html/i.exec(pageUrl); return matches[1]; } /** * @param {String} exampleId * @return {String} */ function getFilenameFromExampleId(exampleId) { return exampleId + '.html'; } /** * @param {String} url * @return {Boolean} */ function isAbsoluteUrl(url) { return (/^https?:\/\//i).test(url); } var modal; var scrollMessage = null; function centerModal() { modal = modal || document.querySelector('.modal.in .modal-dialog'); if (!(modal && scrollMessage)) { return; } var top = parseInt(scrollMessage.top, 10); var iTop = parseInt(scrollMessage.iframeTop, 10); var translate = Math.max(0, top - (modal.offsetHeight / 2) - iTop); modal.style.transform = 'translate(0, ' + translate + 'px)'; modal.style.marginTop = 0; } window.iFrameResizer = { messageCallback: function(msg) { switch (msg.type) { case 'loadExample': { EXAMPLES.load(msg.exampleId); break; } case 'scroll': { scrollMessage = msg; centerModal(); break; } } }, readyCallback: function() { sentMessageToParent({type: 'ready'}); } }; EXAMPLES = EXAMPLES || {}; EXAMPLES.config = { 'Basic map initialization': { 'Vector map': 'map-vector-basic.html', 'Vector map (RequireJS)': 'map-vector-require.html', 'Raster map': 'map.html', 'Raster map (RequireJS)': 'map-require.html', 'Switching map tiles': 'map-tile-switch.html', 'Multiple maps': 'multimap.html', 'Copyrights and attribution': 'map-copyrights.html', 'Static map image': 'static-map-image.html', 'Geopolitical views': 'geopolitical-views.html' }, 'Map layers': { 'Styles and layers': 'map-style.html', 'Vector map with geojson overlay': 'map-vector-geojson.html', 'Raster map with vector overlay': 'vectors.html', 'WMS layer': 'wms.html', 'Getting and setting style': 'vector-map-style-altering.html', 'Heatmap layer': 'heatmap.html' }, 'Map interaction': { 'Changing map center': 'map-center.html', 'Center based on user language code': 'map-center-lang.html', 'Automated location change': 'pan.html', 'Map resize': 'map-resize.html', 'Map events': 'map-events.html', 'Zoom fractions': 'zoom-fractions.html', 'Limit pan and zoom': 'panzoom-limit.html', 'Block pan and zoom': 'panzoom-block.html', 'Pan and zoom controls': 'panzoom.html', 'Minimap': 'minimap.html', 'Distance measurement': 'distance-measurement.html' }, 'Markers': { 'Draggable marker': 'draggable-marker.html', 'Custom markers': 'custom-markers.html', 'Vector markers': 'font-awsome-markers.html', 'Marker clustering': 'markers-clustering.html' }, 'Traffic': { 'Traffic layers': 'traffic.html', 'Traffic incidents': 'vector-traffic-incidents.html', 'Traffic flow': 'traffic-flow.html', 'Custom incident markers': 'traffic-incidents.html', 'Traffic incidents list': 'traffic-list.html', 'Traffic flow segments': 'traffic-flow-segments.html' }, 'Routing': { 'Static route': 'routing.html', 'Static routes with popups': 'routing-with-popup.html', 'Routing A-B': 'routing_ab.html', 'Routing from my location': 'routing-from-my-location.html', 'Routing with draggable marker': 'routing_ab_drag.html', 'Routing with summary': 'routing_ab_summary.html', 'Routing with raw instructions': 'routing_ab_raw_instructions.html', 'Routing with instructions': 'routing_ab_instructions.html', 'Waypoints': 'waypoints.html', 'Soft Waypoints': 'routing-soft-waypoints.html', 'Waypoints optimization': 'waypoints-optimization.html', 'Supporting points': 'routing-with-supporting-points.html', 'Units conversion': 'units_conversion.html', 'Batch routing': 'batch-routing.html', 'Matrix routing': 'matrix-routing.html', 'Reachable range': 'reachable-range.html', 'Batch reachable range': 'batch-reachable-range.html' }, 'Routing options': { 'Travel mode': 'routing-travel-mode.html', 'Route type': 'routing-route-type.html', 'Alternatives with deviation constraints': 'routing-alternatives-with-deviation.html', 'Include traffic': 'routing-with-traffic.html', 'Avoid options': 'routing-avoid.html', 'Allow/avoid vignettes': 'routing-vignettes.html', 'Avoid areas': 'routing-avoid-areas.html', 'Hilliness and windingness': 'routing-hilliness-windingness.html', 'Arrival and departure time': 'routing-arrival-departure-time.html', 'Truck parameters (basic)': 'routing-truck.html', 'Truck size and weight': 'truck-size-weight.html', 'Truck load types': 'truck-load-types.html', 'Consumption models': 'consumption-models.html', 'Route sections': 'routing-section-types.html', 'Heading': 'heading.html', 'Max speed restriction': 'max-speed-restriction.html', 'Batch & Matrix POST params': 'batch-matrix-post-params.html' }, 'Search & geocoding': { 'My location': 'mylocation.html', 'Search': 'search.html', 'Geocode': 'geocode.html', 'Geocode I\'m feeling lucky': 'geocode-best-result.html', 'Structured geocode': 'structured-geocode.html', 'Structured geocode I\'m feeling lucky': 'structured-geocode-best-result.html', 'Search with autocomplete': 'search-with-autocomplete.html', 'Geometry search (advanced)': 'geometry-search-advanced.html', 'Search output parameters': 'search-output-parameters.html', 'Entry points': 'entry-points.html', 'Along route search': 'along-route-search.html', 'Polygons for search results': 'polygons-for-search-results.html', 'Batch search': 'batch-search.html', 'Geopolitical views search': 'search-geopolitical-views.html' }, 'Reverse geocode': { 'Reverse geocode': 'reverse-geocode.html', 'Cross street lookup': 'cross-street-lookup.html', 'Reverse geocode (advanced)': 'reverse-geocode-advanced.html', 'Cross street lookup (advanced)': 'cross-street-lookup-advanced.html' } }; $.each(EXAMPLES.config, function(header, examples) { $.each(examples, function(title, pageUrl) { allExampleIds.push(getExampleIdFromUrl(pageUrl)); }); }); EXAMPLES.descriptions = { //Basic map initialization 'map-vector-basic.html': '<p>Most basic usage of vector maps</p>', 'map-vector-require.html': '<p>Most basic usage of vector maps with <a href="http://requirejs.org/" target="_blank">RequireJS</a>.</p>', 'map.html': '<p>The most basic and minimalistic example of the TomTom map usage. There are multiple possible ' + 'ways of initializing the <a href="' + mapSdkDocsUrl + '#L.Map" ' + 'target="_blank">map</a>. However, the only required parameter is the id of the DOM object where map is ' + 'going to be displayed. It is important that the map object has a proper size.</p>', 'map-require.html': '<p>TomTom JavaScript Maps SDK is also an AMD module ready to be combined with ' + '<a href="http://requirejs.org/" target="_blank">RequireJS</a> engine.</p>', 'map-tile-switch.html': '<p>Example of switching between raster and vector tiles in runtime.</p>', 'multimap.html': '<p>Developers are not limited to attaching only a single map. You can put as many map ' + 'objects as you want on the same page without any issues.</p>', 'map-copyrights.html': '<p>There is a legal requirement to properly credit TomTom content display to the ' + 'end users. When using the SDK proper clickable link is added to the map. This example shows how to ' + 'customize the location of <a href="http://leafletjs.com/reference-1.3.0.html#control-attribution">attribution control' + '</a> and its content by adding links to report map issue and information about privacy.</p>', 'static-map-image.html': '<p>This example shows usage of static map image service to show how to obtain an url to a desired part of the world map.</p>', 'geopolitical-views.html': '<p>You can change the geopolitical view of your map. If you don\'t specify a geopolitical view the "Unified" view will be used.</p>' + '<p>The Israel, Marocco, Pakistan, Argentina and Arabic Geopolitical views are currently available only for vector maps.</p>' + '<p>Note: Inside India\'s territory only the "IN" geopolitical view is available without the possibility of being overridden.</p>', //Map layers 'map-style.html': '<p>Every map layer can have a style and layer applied. Please refer to the documentation ' + '(<a href="' + mapSdkDocsUrl + '#L.TomTomLayer" target="_blank">' + 'TomTomLayer class</a>) in order to find more details on the style and layer options.</p>', 'map-vector-geojson.html': '<p>Example of adding GeoJSON overlay to vector map.</p>', 'vectors.html': '<p>This is an example of adding <a href="http://leafletjs.com/reference-1.3.0.html#path" ' + 'target="_blank">leaflet vector objects</a> to a map. It includes a circle and a polygon with default ' + 'or custom styling.</p>', 'wms.html': '<p>If during the initialization of the map object <i>layers</i> array is passed the base map ' + 'layer is not added by default. In this example for the base map layer the ' + '<a href="http://leafletjs.com/reference-1.3.0.html#tilelayer-wms" target="_blank">WMS</a> service is used. ' + 'There are no technical limitations to use any external WMS service.</p>', 'vector-map-style-altering.html': '<p>This advanced example allows changing the style of the presented map ' + '"on the fly". A prerequisite required for it to work is a style file generated with ' + '<a href="https://maputnik.github.io/editor/" target="_blank">Maputnik</a>. As a starting point, you may use styles provided in the SDK ' + '(they are located in the "styles" subdirectory). More information needed to create your own styles may be found ' + 'here:<ul><li><a target="_blank" href="https://github.com/maputnik/editor/wiki/Design-a-Map-Style">Design a Map Style with ' + 'Maputnik</a></li><li><a target="_blank" href="https://www.mapbox.com/mapbox-gl-js/style-spec/">Mapbox Style Specification</a>' + '</li><li><a target="_blank" href="' + devPortalBaseUrl + '/maps-api/maps-api-documentation-vector/tile">TomTom ' + 'vector data format</a></li></ul></p>', 'heatmap.html': '<p>This example is showing distribution of data using heatmaps. ' + 'Data was gathered using <a href="' + searchApiDocsUrl + '" target="_blank">' + 'Search API</a> to get nearby POI\'s. In order to create a heatmap layer <a href="https://github.com/Leaflet/Leaflet.heat" target="_blank">' + 'Leaflet.heat</a> was used.</p>', //Map interaction 'map-center.html': '<p>A center point\'s latitude and longitude coordinates together with a zoom level can ' + 'be passed to a method initializing a map object. You can construct the map only after a #map div is ' + 'rendered - for example, by using the window.onload event. If your project already includes jQuery, then ' + 'it is more convenient to use the <a href="https://learn.jquery.com/using-jquery-core/document-ready/" ' + 'target="_blank">$(document).ready()</a> callback.</p>', 'map-center-lang.html': '<p>This example is a simple application showing how to set a map\'s center based on ' + 'user settings - in this particular case - a language code. Please note, that not all the browsers ' + 'handle users\' locales in the same way.</p>', 'pan.html': '<p>Multiple map locations can be used in a form of an animated carousel. The only information ' + 'that you need to provide is set of center points coordinates and a desired time interval between ' + 'location switches.</p>', 'map-resize.html': '<p>The map object is designed to be independent of a size of the container DOM element. ' + 'Always call the invalidateSize() method, when you change the size of the map container.</p>', 'map-events.html': '<p>The map object can be combined with every JavaScript DOM event. For example, by ' + 'using the <i>click()</i> event, application may get the clicked location\'s coordinates and show them ' + 'in a popup.</p>', 'zoom-fractions.html': '<p>Since version 4.0 you\'re no longer limited to use only integer numbers ' + 'for zoom levels. You have now three parameters to configure the zoom:</p>' + '<ul>' + '<li><b><a href="https://leafletjs.com/reference-1.3.0.html#map-zoomsnap">Snap</a>:</b> Forces ' + 'the map\'s zoom level to always be a multiple of this value.</li>' + '<li><b><a href="https://leafletjs.com/reference-1.3.0.html#map-zoomdelta">Zoom controls delta</a>:</b> ' + 'The amount of zoom level change that will be apply every time the ' + 'user press the zoom control buttons.</li>' + '<li><b><a href="https://leafletjs.com/reference-1.3.0.html#map-wheelpxperzoomlevel">Mouse wheel ' + 'pixels per zoom level</a>:</b> How many scroll pixels mean a change of one full zoom ' + 'level. Smaller values will make wheel-zooming faster (and vice versa).</li>' + '</ul>' + '<p>These parameters must be defined during the initialization of the map.</p>' + '<p><b>Note:</b> To ensure the correct behavior of the zoom buttons, when using ZoomSnap ' + 'the value of the ZoomDelta must be greater than half of the ZoomSnap value, otherwise they will not work as expected.</p>', 'panzoom-limit.html': '<p>Visible map area can be limited to certain bounding box and a range of zoom ' + 'levels. It is possible by setting the following properties: <i>maxBounds</i>, <i>maxZoom</i> and ' + '<i>minZoom</i>.<br/>Just test it by panning and zooming the map.</p>', 'panzoom-block.html': '<p>There might be a need to disable all map browsing capabilities for a given map ' + 'instance. You can achieve this by disabling multiple properties: dragging, scrolling, zooming, ' + 'keyboard etc.</p>', 'panzoom.html': '<p>You can enable the pan controls and zoom slider included in the SDK or also use other ' + '<a href="http://leafletjs.com/plugins.html" target="_blank">leaflet plugins</a> available to add ' + 'additional customisations to the map.</p>', 'minimap.html': '<p>We can easily add a smaller map in any corner of the main map. ' + 'It shows the main map in the context of lower zoom level.</p>', 'distance-measurement.html': '<p>The SDK comes with a widget which allows you to take distance measurements.</p>' + '<p>We encourage you to try this widget in the current example.</p>' + '<p>Here you have some tips of how to use this feature:</p>' + '<ul>' + '<li>Activate the measurement mode pressing over the <i>ruler button</i> located on the upper right corner.</li>' + '<li>Click on any part of the map to start the measuring.</li>' + '<li>To finish the measuring press the <i>tick</i> button or use a double-click for the last point of your measurement.</li>' + '<li>To cancel a current measurement press the <i>cross</i> button.</li>' + '<li>After finish a measurement you can immediately start another without loose the previous measurement.</li>' + '<li>If you press the <i>cross</i> button when there is no measurement in progress, it will clear all the finished measurements from the screen.</li>' + '<li>During a measurement, you can still change the zoom level or position of the map.</li>' + '<li>During a measurement, if you click over a marker the ruler will snap to its position.</li>' + '<li>You can customize the look of the <i>distanceMeasurement</i> widget. Take a look at the API documentation to discover the options available.</li>' + '</ul>', //Markers 'draggable-marker.html': '<p>Markers could be dragged by the user. It is fairly easy to attach an action ' + 'when user drops the pin with exact location after the action.</p>', 'custom-markers.html': '<p>The leaflet marker mechanism allows straight forward look and feel ' + 'customisations. When changing the marker icon leaflet needs to know its size and the anchor point.</p>', 'font-awsome-markers.html': '<p>The SDK by default uses vector images as icons (with png fallbacks for old ' + 'IEs). This examples shows how you could integrate external icons library into your map.</p>', 'markers-clustering.html': '<p>Our software bundle delivers already included ' + '<a href="https://github.com/Leaflet/Leaflet.markercluster/tree/leaflet-0.7" target="_blank">marker ' + 'clustering plugin</a>.</p>', //Traffic 'traffic.html': '<p>This example presents all three available TomTom traffic layers:<ul><li>' + '<a href="' + mapSdkDocsUrl + '#L.TomTomTrafficLayer" ' + 'target="_blank">TomTomTrafficLayer</a> - a raster layer showing styled traffic tubes</li><li>' + '<a href="' + mapSdkDocsUrl + '#L.TomTomTrafficIncidentsLayer" ' + 'target="_blank">TomTomTrafficIncidentsLayer</a> - icons of the incidents with some additional data that ' + 'can be displayed in a popup</li><li>' + '<a href="' + mapSdkDocsUrl + '#L.TomTomTrafficFlowLayer" ' + 'target="_blank">TomTomTrafficFlowLayer</a> - a raster layer showing flow data</li></ul></p>', 'traffic-flow.html': '<p>The overlay presenting rasterized traffic flow data is called ' + 'TomTomTrafficFlowLayer. Traffic flow can be displayed in three different variants:<ul><li>absolute ' + '(default) - the colours reflect the absolute speed measured on the given road segment</li><li>relative ' + '- the speed relative to free-flow is taken into account, highlighting areas of congestion</li><li>' + 'relative-delay - displays relative speeds only where they are different from the freeflow speed (no ' + 'green segments)</li></ul></p>', 'traffic-incidents.html': '<p>There is a default look and feel and behaviour provided for the traffic ' + 'incidents layer. However, you can specify your own custom function to create traffic incident icons ' + 'and popups. You can find the code of the default method in the TomTomTrafficIncidentsLayer ' + 'class documentation.</p>', 'traffic-list.html': '<p>Traffic incident details can be presented in the form of an interactive list. ' + 'It is possible to synchronize behaviour of the list items (highlighting) with markers visible in ' + 'the map viewport (display of popups).</p>', 'vector-traffic-incidents.html': '<p>This example presents how traffic incidents (both vector and raster) can' + ' be composed along with other layers like traffic details or base layer.', 'traffic-list-segments.html': '<p>This service provides information' + 'about the speeds and travel times of the road fragment closest to the' + 'given coordinates. ', //Routing 'routing.html': '<p>Because the routing service response is a GeoJSON it is easy to display that on ' + 'Leaflet map.</p><p>This example does not use traffic information to calculate routes.</p>', 'routing-with-popup.html': '<p>It is possible to add popups to displayed routes using onEachFeature option ' + 'from routeOnMap widget.</p><p>This example does not use traffic information to calculate routes.</p>', 'routing_ab.html': '<p>By usage of two SearchBox widgets it is possible to create a basic routing ' + 'application, where user can enter location.</p>', 'routing-from-my-location.html': '<p>The SDK comes with a widget that provides some default behaviour for ' + 'the basic routing application.</p>', 'routing_ab_drag.html': '<p>It is possible to create two way communication with the widgets. Search ' + 'boxes passes data to the routeOnMap widget but also start / end icon changes can trigger search box ' + 'values changes.</p>', 'routing_ab_summary.html': '<p>Route summary widget allows to display the basic route information on the ' + 'Leaflet component.</p>', 'routing_ab_raw_instructions.html': '<p>Route guidance can be displayed using data directly from ' + 'routing service.</p><p>This example does not use traffic information to calculate routes.</p>', 'routing_ab_instructions.html': '<p>Route instructions widget allows to display the route guidance on the ' + 'Leaflet component.</p>', 'waypoints.html': '<p>The routing widgets allow to route via waypoints, this is supported on the inputs ' + 'side as well as route drawing gadget.</p>', 'routing-soft-waypoints.html': '<p>This example demonstrates the usage of soft waypoints with the help of ' + 'Leaflet drawing library (<a href="https://github.com/Leaflet/Leaflet.draw" target="_blank">Leaflet.draw</a>).', 'waypoints-optimization.html': '<p>The Routing service may help you optimizing your trip through several waypoints. ' + 'There are two special parameters for this: computeBestOrder and routeRepresentation. The latter can be used only ' + 'in conjunction with computeBestOrder.</p> <p>ComputeBestOrder changes the order of waypoints to optimize the length ' + 'of the route.</p><p>RouteRepresenation accepts two values: <ul><li>polyline - includes routes in the response</li>' + '<li>none - includes only the optimized waypoint indices, but does not include the routes in the response. ' + 'This parameter value can only be used in conjunction with computeBestOrder set to true</li></ul> </p>' + '<p>This example does not use traffic information to calculate routes.</p>', 'routing-with-supporting-points.html': '<p>Supporting points are used for route reconstruction. They ' + 'can also be used in combination with other POST parameters as described ' + '<a href="' + routingApiDocsUrl + '/calculate-route">' + 'here</a>, you can calculate alternative routes. If you omit ' + 'these parameters, the exact same route will be reconstructed. If you use minDeviationDistance and minDeviationTime, ' + 'the supporting points need to contain start point (as first supporting point) and end point (as last one). ' + '<p>It is worth to note that you can\'t use it with waypoints. The order of points is respected, when ' + 'creating a route. As opposed to waypoints, you can add as many supporting points as you want (waypoints ' + '- 50, or 20 if computeBestOrder parameter is set).</p>', 'units_conversion.html': '<p>Usage of measurement unit conversion.</p><p>This example does not use traffic information to calculate routes.</p>', 'batch-routing.html': '<p>Our Batch Routing API enables users to send multipe requests simultaneously and compare ' + 'them in an easy way. In the presented example we show the best time to avoid traffic jams and other obstacles ' + 'and reach your destination on time.</p>', 'matrix-routing.html': '<p><p>Matrix routing allows calculation of a matrix of route summaries for a set of routes' + ' defined with origin and destination locations. For every given origin this service calculates the cost of' + ' routing from that origin to every given destination. The set of origins and the set of destinations can be' + ' thought of as the column and row headers of a table and each cell in the table contains the costs of' + ' routing from the origin to the destination for that cell.</p>' + '<p>There are generally three types of use cases for Matrix Routing:</br><ul>' + '<li>1-to-many = from one origin (e.g. your current location) to many destinations (e.g. POIs)</li>' + '<li>many-to-many = from many origins (e.g. taxis) to many destinations (e.g. passengers)</li>' + '<li>many-to-1 = from many origins (e.g. ambulances) to one destination (e.g. patient)</li>' + 'This example only reflects the 1-to-many use case.</ul></p></p>', 'reachable-range.html': '<p>This example demonstrates the use of the <a href="' + mapSdkDocsUrl + '#ReachableRange" ' + 'target="_blank">Reachable Range</a> class. ' + 'This class is being used to generate a polygon representing the maximum distance that a vehicle could reach based on the consumption model values presented in the control panel. ' + 'The reachable range area is then used to make a Geometry Search for either gas stations or electric vehicle charging points available inside that area. ' + 'To perform this request we use our <a href="' + devPortalBaseUrl + '/maps-sdk-web/functional-examples#geometry-search-advanced">Geometry&nbsp;Search</a>. ' + 'The user can drag the icon with flag to change the origin point of the search query.</p>', 'batch-reachable-range.html': 'This example shows how Reachable Range calculations for multiple locations and time budgets can be retrieved with a single request to the Batch Routing service. ' + 'For each location, you can choose multiple time budgets that will affect ranges returned as a result. These ranges are then visualised as polygons on the map.', //Routing options 'routing-travel-mode.html': '<p>User can select his ' + '<a href="' + mapSdkDocsUrl + '#Routing" ' + 'target="_blank">mean of transportation</a> for the planed route, which will have impact on ' + 'the resulting route.</p><p>This example does not use traffic information to calculate routes.</p>', 'routing-route-type.html': '<p>Routing may be parametrized by choosing ' + '<a href="' + mapSdkDocsUrl + '#Routing" target="_blank">route ' + 'type</a> from four types: fastest, shortest, eco and thrilling. Choosing option from drop down menu ' + 'will redraw route on a map.</p><p>This example does not use traffic information to calculate routes.</p>', 'routing-alternatives-with-deviation.html': '<p>This example demonstrates the usage of <a href="' + mapSdkDocsUrl + '#Routing" ' + 'target="_blank"><i>Alternative routes</i></a>, <a href="' + routingApiDocsUrl + '/calculate-route" ' + 'target="_blank"><i>Alternative Types and Supporting points with Minimum Deviation Time and Minimum Deviation Distance</i></a> constraints.' + '<p>To find alternatives to the main route simply change the number of alternatives in the form to see them on the map.</p>' + '</p>For advanced alternative route calculation you can include supporting points along with min deviation time or distance constraints. ' + 'When these constraints are used, the alternative routes will follow the reference route ' + 'from the origin point for the given time or distance. In other words, the alternative routes just diverge from the ' + 'referente route after the given constraints.</p><p>Keep in mind that in order for these constraints to work you need ' + 'to include in the supporting points the start and ending points of the desired route. If you just provide supporting points ' + 'for the first 500 meters of the route, the min deviation constraints will only work for that section.</p>' + '<p>Alternative type: By default the alternative type is \'Any route\', which means that all the requested alternative routes ' + 'will be returned. When \'Better route\' is selected, the service will only return alternative routes that are better than the reference route.</p>' + '<p>This example does not use traffic information to calculate routes.</p>', 'routing-with-traffic.html': '<p>Routing results can be also affected by ' + '<a href="' + mapSdkDocsUrl + '#Routing" target="_blank">current ' + 'road situations</a>, there is an option for the routing engine to use current traffic incidents ' + 'while calculating the route.</p>', 'routing-avoid.html': '<p>Routing between locations may be determined by different avoid options. ' + '<a href="' + mapSdkDocsUrl + '#Routing" target="_blank">' + 'Available options are</a>: toll roads, motorways, ferries, unpaved roads, carpools,' + 'already used roads.</p><p>This example does not use traffic information to calculate routes.</p>', 'routing-vignettes.html': '<p>This example shows the usage of <b>allowVignette</b> and <b>avoidVignette</b> ' + 'methods in routing.</p><p>These two methods have oposite effect on the calculated route, for instance, if you ' + 'use allowVignette with Austria, it will be the same as using avoidVignette with all the other Countries selected ' + 'but Austria.</p><p>These methods have some constraints, they can not be used together and they expect to receive ' + 'at least one Country.</p><p>For more information please refer to <a target="_blank" href=' + '"' + routingApiDocsUrl + '/common-routing-parameters">Common routing parameters ' + 'Documentation</a> and <a target="_blank" href="' + mapSdkDocsUrl + '#Routing">' + 'Maps Web SDK Documentation</a>.</p><p>This example does not use traffic information to calculate routes.</p>', 'routing-avoid-areas.html': '<p>This example demonstrates the avoidAreas parameter. ' + 'Use draw tool to draw areas which should be avoided when route is calculated.</p>' + '<p>This example does not use traffic information to calculate routes.</p>', 'routing-hilliness-windingness.html': '<p>Routing may enter thrilling mode by adjusting two options: ' + '<a href="' + mapSdkDocsUrl + '#Routing" target="_blank">' + 'windingness</a> and/or <a href="' + mapSdkDocsUrl + '#Routing" ' + 'target="_blank">hilliness</a>.</p>' + '<p>This example does not use traffic information to calculate routes.</p>', 'routing-arrival-departure-time.html': '<p>Routing may be parametrized by ' + '<a href="' + mapSdkDocsUrl + '#Routing" target="_blank">' + 'departing</a> or <a href="' + mapSdkDocsUrl + '#Routing" ' + 'target="_blank">arriving</a> times. User can leave from given start location now or in given time ' + 'in the future. It is also possible to arrive at given time in the future. </p>', 'routing-truck.html': '<p>The routing in truck mode is supported with additional parameters describing ' + 'the vehicles\' size, weight or load type.</p>' + '<p>This example does not use traffic information to calculate routes.</p>', 'truck-load-types.html': '<p>The routing in truck mode supports multiple values for load type parameters.' + ' Additionally different sets of values are supported either a route runs through a territory of USA or not.</p>', 'consumption-models.html': '<p>This example demonstrates the use of routing in conjunction with consumption model. The output ' + 'will contain the additional field <b>fuelConsumptionInLiters</b> or <b>batteryConsumptionInkWh</b> for electric cars. ' + 'Please refer to <a href="' + routingApiDocsUrl + '/common-routing-parameters#ConsumptionModelParameters">this documentation</a> ' + 'for further details.</p>', 'routing-section-types.html': '<p>This example demonstrates the usage of <a target="_blank" href="' + mapSdkDocsUrl + '#Routing"><b>Section Types</b></a> in ' + 'Routing.</p><p>We have included 5 different scenarios using Section Types. In each scenario you will be able ' + 'to see different sections of the route in a different color. It is also possible to highlight the different ' + 'sections by hovering over the legend entries in the top right corner.</p><p>Scenarios explanation:<br /><i>Cross country:</i> Uses the ' + '\'country\' section which gives us the different country sections in the route;<br /><i>Motorway and vignettes:</i> ' + 'In this scenario we present the \'tollVignette\', \'motorway\' and \'tollRoad\' sections of the route;<br />' + '<i>Cross shore:</i> In this scenario we present \'tunnel\' and \'ferry\' sections of the route;<br />' + '<i>Park:</i> In this scenario we combine car travel mode with the \'travelMode\' and \'pedestrian\' sections of the route. ' + 'Note that to obtain travelMode sections you need to specify a travel mode;<br /><i>Traffic:</i> ' + 'In this scenario we use the \'traffic\' section which provides us with the different traffic occurences ' + 'in the selected route;</p>' + '<p>For more information please refer to <a target="_blank" href="' + routingApiDocsUrl + '/calculate-route">Maps APIs ' + 'Documentation</a>.</p><p>This example uses traffic information to calculate routes only when "Traffic" is chosen.</p>', 'truck-size-weight.html': 'This example demonstrates the usage of Vehicle parameters for route calculation. ' + 'For more information on these paramenters please refer to the <a target="_blank" href="' + routingApiDocsUrl + '/common-routing-parameters">' + 'Common Routing Parameters Documentation</a> and <a target="_blank" ' + 'href="' + mapSdkDocsUrl + '#Routing">' + 'Maps SDK For Web Documentation</a>.</p><p>This example does not use traffic information to calculate routes.</p>', 'heading.html': 'This example shows you how to use the \'vehicleHeading\' parameter. For more information please ' + 'refer to the <a target="_blank" href="' + mapSdkDocsUrl + '#Routing">' + 'Routing documentation</a>. <p>This example does not use traffic information to calculate routes.</p>', 'max-speed-restriction.html': '<p>VehicleMaxSpeed parameter in routing engine specifies the maximum speed you want to travel with. ' + 'For example, if you can drive with max speed set to 100 km/h, there is a higher chance that the routing engine will route you ' + 'through the highways. But if your vehicle max speed is, for example 40 km/h, it will avoid highways, because usually you can not ' + 'drive that slowly on highways.</p> <p> This example also shows additional fields in the route summary if you specify the routing ' + 'parameter computeTravelTimeFor and set it to "all". We set this parameter to "all" in this example, so you can observe ' + 'additional fields in the summary. These additional fields are: noTrafficTravelTimeInSeconds, ' + 'historicTrafficTravelTimeInSeconds and liveTrafficIncidentsTravelTimeInSeconds</p>' + '<ul>' + '<li><b>noTrafficTravelTimeInSeconds</b> - Estimated travel time in seconds calculated as if there are no delays on the route due to traffic conditions (e.g. congestion). Included if requested using computeTravelTimeFor parameter.</li>' + '<li><b>historicTrafficTravelTimeInSeconds</b> - Estimated travel time in seconds calculated using time-dependent historic traffic data. Included if requested using computeTravelTimeFor parameter.</li>' + '<li><b>liveTrafficIncidentsTravelTimeInSeconds</b> - Estimated travel time in seconds calculated using real-time speed data. Included if requested using computeTravelTimeFor parameter.</li>' + '</ul>' + '<p>This example does not use traffic information to calculate routes.</p>', 'batch-matrix-post-params.html': '<p>This example demonstrates the usage of Matrix and Batch Routing with POST parameters. ' + 'In order to check different scenarios, select or deselect options in the form to change the set of parameters which are ' + 'sent to the underlying services as POST attributes.</p><p>Note: The data presented in the Legend box is obtained using ' + 'Matrix Routing and route paths visualized on the map are taken from the corresponding Batch Routing responses. It is done ' + 'for instructional purposes only. It would be possible to use Batch Routing calls to get the all info presented in Legend and ' + 'the routes representations. The difference is in the response times and downloaded volumes of data for both services. For ' + 'instance, if only route summaries were needed (and not routes themselves), then Matrix Routing alone would be a better fit.</p>', //Search & geocoding 'mylocation.html': '<p>By usage of HTML5 Geolocation API user location can be shown on the map. ' + 'There is a number of means to identify the location nevertheless from the API point it is totally ' + 'transparent. The programmer receives the location together with accuracy depending on the location ' + 'information source.</p>', 'search.html': '<p>A simple application that shows how to search within many services such like: ' + '<i>fuzzy search</i>, <i>point of interest search</i>, <i>category search</i>, <i>geometry search</i>, ' + '<i>nearby search</i> and <i>low bandwidth search</i>.</p><p>Choose one of given search types ' + 'from the list, type query that you want to search for (<i>e.g. pizza, Amsterdam or New York)</i> ' + 'and press <i>Submit</i> button.</p>', 'geocode.html': '<p>A simple application that shows usage of geocode service to retrieve a list of results. ' + 'Then results are displayed on the map and have interactive popups attached.</p>', 'geocode-best-result.html': '<p>A simple application that shows how to display geocode results on the map. ' + 'This is using the best match result.</p>', 'structured-geocode.html': '<p>A simple application that shows usage of structured geocode service to ' + 'retrieve a list of results. Then results are displayed on the map and have interactive ' + 'popups attached.</p>', 'structured-geocode-best-result.html': '<p>A simple application that shows how to display structured ' + 'geocode results on the map. This is using the best match result.</p>', 'search-with-autocomplete.html': '<p>A presentation of the ' + '<a href="' + mapSdkDocsUrl + '#L.SearchBox" ' + 'target="_blank">SearchBox</a> and ' + '<a href="' + mapSdkDocsUrl + '#L.MarkersLayer" target="_blank">' + 'MarkersLayer</a> widgets. It is also possible to style the icons based on <i>type</i> or ' + '<i>poiClassifications</i>.</p>', 'geometry-search-advanced.html': '<p>Example of performing geometry search limited by shapes drawn on map.</p>', 'search-output-parameters.html': '<p>This example visualizes an output of search calls. It prints out the whole ' + 'output in a marker popup (try to click on a marker to see a response)</p>', 'entry-points.html': '<p>Example of search with entry points of results visualized.</p>', 'along-route-search.html': '<p>The Along Route Search endpoint allows you to perform a fuzzy search for POIs ' + 'along a specified route. This search is constrained by specifying Detour Time limiting measure. ' + 'The minimum number of route points is 2.</p>', 'polygons-for-search-results.html': '<p>This example shows how to use Additional Data service to ' + 'retrieve polygons representing borders of a particular search result. Polygons are shown when geometry data is available.</p> ' + '<p>For more information please refer to the ' + '<a href="' + searchApiDocsUrl + '/additional-data" target="_blank">' + 'Additional Data service</a> documentation.</p>', 'search-geopolitical-views.html': 'This example shows how search results may differ depending on the ' + '<a href="' + searchApiDocsUrl + '/search" target="_blank">Search</a> service view param. ' + 'Search results are presented as POIs on the map. Clicking on them reveals popup with address that corresponds to particular country.' + 'For the list of available views see link to the service shown above.', 'batch-search.html': '<p>A simple application that shows how to use Batch Search.', //Reverse geocode 'reverse-geocode.html': '<p>This example shows how to use the reverse geocode service to ' + 'retrieve a list of results from a given position. Try clicking on any place on the map to get ' + 'its address.</p>', 'cross-street-lookup.html': '<p>This example shows how to use the cross street lookup ' + 'service to retrieve a list of results from a given position. Try clicking on any place on the ' + 'map to get its address.</p>', 'reverse-geocode-advanced.html': '<p>This advanced example shows how to use the reverse geocode service ' + 'with different options. You can try different combinations with the options available to see how they ' + 'affect the result.</p>', 'cross-street-lookup-advanced.html': '<p>This advanced example shows how to use the cross street lookup service ' + 'with different options. You can try different combinations with the options available to see how they ' + 'affect the result.</p>' }; /** * @param {String} exampleId */ function updateWindowHash(exampleId) { if (isIFramed()) { sentMessageToParent({type: 'exampleLoaded', exampleId: exampleId}); } else { location.hash = exampleId; } } EXAMPLES.load = function(exampleId) { var exampleFilename; var timeoutId = null; /** @param {String} response */ function extractStyle(response) { var style = ''; $(response).filter('style').each(function() { style += this.outerHTML; }); return style; } function addExternalStyles(response) { var currentStylesUrls = []; $(document.styleSheets).each(function() { if (this.href) { currentStylesUrls.push(this.href); } }); $(response).filter('link[rel=\'stylesheet\']').each(function() { if ($.inArray(this.href, currentStylesUrls) < 0) { $('head').append('<link rel="stylesheet" href="' + processUrl(this.href) + '" type="text/css" />'); } }); } function loadScripts(response) { var dataMain; var toLoad = []; $(response).filter('script[src]').each(function() { toLoad.push(processUrl(this.src)); dataMain = this.getAttribute('data-main'); if (dataMain) { toLoad.push(processUrl(dataMain)); } }); return loadedScripts.load(toLoad); } /** @param {String} response */ function extractScript(response) { var code = ''; $(response).filter('script:not([src])').each(function() { code += this.outerHTML; }); //removing the window.onload so that script is executed immediately return code.replace(/window.onload\s*=\s*function\s*\(\s*\)/g, ''); } /** @param {String} response */ function getBodyHTML(response) { var bodyReg = /<body.*>((?:.|\s)*?)<\/body>/gm; //extract everything from body tag var bodyMatch = response.match(bodyReg)[0]; //remove plain scripts except template scripts bodyMatch = bodyMatch.replace(/<script*((?!type='t\/template').)*>(.|\s)*?<\/script>/gm, ''); return bodyMatch; } function addExamplesLoadedMarkerClass() { $('#jssdk-example-panel').addClass('jssdk-example-loaded'); } function removeExamplesLoadedMarkerClass() { $('#jssdk-example-panel').removeClass('jssdk-example-loaded'); } function cleanMapoxGlReference() { if (typeof window.tomtom !== 'undefined') { window.tomtom.setMapbox(null); } if (window.mapboxgl) { window.mapboxgl = null; delete window.mapboxgl; } if (typeof tomtom !== 'undefined') { tomtom.setMapbox(null); } } function cleanVectorLayers(map) { var keys = []; for (var i in map._layers) { keys.push(i); } return keys.map(function(key) { return map._layers[key]; }).filter(function(layer) { return '_glMap' in layer && '_canvas' in layer._glMap; }).map(function(layer) { var canvasDeferred = $.Deferred(); var removeDeferred = $.Deferred(); layer._glMap._canvas.addEventListener('webglcontextlost', function() { canvasDeferred.resolve(); }); layer.once('remove', function() { removeDeferred.resolve(); }); return [canvasDeferred, removeDeferred]; }); } /** * @return {Promise[]} */ function cleanMapInstance() { var concat = function(arr, curr) { return arr.concat(curr); }; return mapInstances.map(function(map) { var deferred = $.Deferred(); var vectorLayersPromises = cleanVectorLayers(map).reduce(concat, []); map.once('unload', function() { var position = mapInstances.indexOf(map); // remove element from the array mapInstances = mapInstances.slice(0, position).concat(mapInstances.slice(position + 1)); deferred.resolve(); }).remove(); return vectorLayersPromises.concat([deferred]); }).reduce(concat, []); } function cleanRequireJSDefine() { // CS is messing up require.js by changing define function if (window.define !== undefined) { window.define = undefined; } } function cleanIntervals() { var lastIntervalId, i; // cleanup all intervals lastIntervalId = window.setInterval(function() { // do nothing }, 9999); for (i = 1; i < lastIntervalId; i += 1) { window.clearInterval(i); } } /** * @return {Promise} */ function cleanUp() { var promises; removeExamplesLoadedMarkerClass(); cleanRequireJSDefine(); promises = cleanMapInstance(); cleanMapoxGlReference(); cleanIntervals(); return $.when(promises) .then(function() { mapInstances = []; }); } function raiseEvents() { var domContentLoadedEvent = document.createEvent('Event'); domContentLoadedEvent.initEvent('DOMContentLoaded', true, true); window.document.dispatchEvent(domContentLoadedEvent); } function urlStringToRegexp(string) { return new RegExp(string.replace(/[/.+]/g, '\\$&'), 'g'); } function SnippetPrinter(text) { this.snippets = { start: /^\s*\/\/\s*tomtom-snippet-start\s*$/mi, end: /^\s*\/\/\s*tomtom-snippet-end\s*$/mi }; this.text = text; } SnippetPrinter.prototype.hasSnippets = function() { return this.snippets.start.test(this.text); }; SnippetPrinter.prototype.concatenateIfNeeded = function(text) { return text.replace(/\/\/\s*tomtom-snippet-end\s*\/\/\s*tomtom-snippet-start/gmi, ''); }; SnippetPrinter.prototype.reduceSnippets = function(acc, line) { if (this.snippets.start.test(line)) { acc.snippet = true; } else if (this.snippets.end.test(line)) { acc.snippet = false; acc.code.push([]); } else if (acc.snippet) { acc.code[acc.code.length - 1].push(line); } return acc; }; SnippetPrinter.prototype.extractSnippets = function() { return SnippetPrinter.stripLeadingSpaces(this.concatenateIfNeeded(this.text) .split('\n') .reduce(this.reduceSnippets.bind(this), {code: [[]], snippet: false}) .code .filter(function(block) { return block.length; }) .map(function(block) { return block.join('\n'); }) .join('\n// ...\n')); }; SnippetPrinter.prototype.getScriptCode = function() { var code = ''; $(this.text).filter('script:not([src]):not([type=\'t/template\'])').each(function() { code += this.innerHTML; }); return SnippetPrinter.stripLeadingSpaces(code); }; SnippetPrinter.stripLeadingSpaces = function(text) { var leadingSpaceCount; var code = text.replace(/^\s*$[\n\r]{0,2}/gm, ''); leadingSpaceCount = code.search(/\S|$/); code = code.replace(new RegExp('^\\s{' + leadingSpaceCount + '}', 'gm'), ''); return code; }; function CodepenLinkGenerator(response, scriptCode) { if (location.protocol === 'http:') { return null; } this.form = $('<form/>', { 'action': 'https://codepen.io/pen/define', 'method': 'POST', 'target': 'blank' }); var clickHandler = function() { this.gatherDataForCodepen(response, scriptCode); }; return $('<button/>', { 'class': 'codepen-form', 'html': '<img src="https://s.cdpn.io/3/cp-arrow-right.svg" width="30" height="30" /> <span>CodePen</span>' }).on('click', clickHandler.bind(this)); } CodepenLinkGenerator.prototype.getJavascriptCodeForCodepen = function(code, keys) { var generatedCode = code .replace(/<your-tomtom-API-key>/g, keys['api-key']) .replace(/<your-tomtom-traffic-API-key>/g, keys['api-key-traffic']) .replace(/<your-tomtom-traffic-flow-API-key>/g, keys['api-key-trafficFlow']) .replace(/<your-tomtom-search-API-key>/g, keys['api-key-search']) .replace(/<your-tomtom-routing-API-key>/g, keys['api-key-routing']) .replace(/<your-product-version>/g, '4.48.5-SNAPSHOT') .replace(/<your-product-name>/g, 'Codepen Examples') .replace(/<your-tomtom-sdk-base-path>/g, 'https://api.tomtom.com/maps-sdk-js/4.47.6/examples/sdk'); if (generatedCode.match(/^\s*require\(\[.*/g)) { var requireConfig = { baseUrl: 'https://api.tomtom.com/maps-sdk-js/4.47.6/examples' }; generatedCode = 'require.config(' + JSON.stringify(requireConfig) + ');\n' + generatedCode; } return generatedCode; }; CodepenLinkGenerator.prototype.getExternalCssForCodepen = function(response) { return $(response).filter('link[rel=\'stylesheet\']').map(function() { return this.href; // return this.href.replace(window.origin, 'http://api.tomtom.com/maps-sdk-js/latest/examples'); }).toArray().join(';'); }; CodepenLinkGenerator.prototype.getExternalJsForCodepen = function(response) { return $(response).filter('script[src]').map(function() { return this.src; // return this.src.replace(window.origin, 'https://api.tomtom.com/maps-sdk-js/codepen/sdk/'); }).toArray().join(';'); }; CodepenLinkGenerator.prototype.detectMissingApiKey = function(code) { return API_KEYS.filter(function(item) { return code.indexOf(item.placeholder) > -1; }).map(function(item) { return item.name; }); }; CodepenLinkGenerator.prototype.gatherDataForCodepen = function(response, scriptCode) { /** * In order to prevent browser blocking opening codepen page (it is seen as popup) * we need to submit this form by user action instead js form.submit() * we do that by injecting form which will produce POST request to codepen into modal * @param {Object} data data gathered from modal */ var formFillerCallback = function(keys) { var data = { title: 'Example: ' + $('.jssdk-menu-group-elements .active-trail.active')[0].innerText, html: getBodyHTML(response), js: this.getJavascriptCodeForCodepen(scriptCode, keys), css: extractStyle(response).replace(/<\/?style(\s+type="text\/css")?>/g, '') + 'html{height:100%}', js_external: this.getExternalJsForCodepen(response), css_external: this.getExternalCssForCodepen(response) }; this.form.append($('<input />') .attr('type', 'hidden') .attr('name', 'data') .attr('value', JSON.stringify(data))); }; var missingKeys = this.detectMissingApiKey(scriptCode); window.modal.showModal(missingKeys, this.form, formFillerCallback.bind(this)); }; function parseCode(response) { var displayReponse, scriptCode, loaded, isFullCode = true, printer, downloadUrl; addExternalStyles(response); loaded = loadScripts(response); downloadUrl = 'https://api.tomtom.com/maps-sdk-js/latest/jssdk-examples-latest-examples.zip'; displayReponse = response.replace(/${api.key}/g, '<your-tomtom-API-key>') .replace(/MapsWebSDKExamplesSelfhosted/g, '<your-product-name>') .replace(/\/sdk/g, '<your-tomtom-sdk-base-path>') .replace(/4.48.5-SNAPSHOT/g, '<your-product-version>') .replace(/${api.key.traffic}/g, '<your-tomtom-traffic-API-key>') .replace(/${api.key.trafficFlow}/g, '<your-tomtom-traffic-flow-API-key>') .replace(/${api.key.search}/g, '<your-tomtom-search-API-key>') .replace(/${api.key.routing}/g, '<your-tomtom-routing-API-key>') .replace( urlStringToRegexp('window.location.protocol + "//" + window.location.host + "/sdk/glyphs/{fontstack}/{range}.pbf"'), '<your-glyphs-URL>' ) .replace( urlStringToRegexp('window.location.protocol + "//" + window.location.host + "/sdk/sprites/sprite"'), '<your-sprite-URL>' ); if (EXAMPLES.descriptions[exampleFilename]) { $('#description') .append( $('<h3/>', { html: '<a href="javascript:void(0);" class="section-header"><strong>Description</strong></a>' }) ).append( $('<div/>') .html(EXAMPLES.descriptions[exampleFilename]) ); } printer = new SnippetPrinter(displayReponse); if (printer.hasSnippets()) { scriptCode = printer.extractSnippets(); isFullCode = false; } else { scriptCode = printer.getScriptCode(); } $('#code').append( $('<h3/>', { 'class': 'lang', 'html': '<a href="javascript:void(0);" class="section-header"><strong>JavaScript </strong></a>' }), $('<em/>', { 'html': function() { if (isFullCode) { return null; } return '<a href="' + downloadUrl + '">this is only a fragment of the code, click this link to download a full archive</a>'; } }), $('<pre/>', { 'id': 'jssdk-js-to-copy', 'class': 'prettyprint lang-js', 'style': function() { if (location.protocol === 'http:') { return ''; } return 'padding-top: 40px'; } }) .append(new CodepenLinkGenerator(response, printer.getScriptCode())) .append( $('<code/>', { 'class': 'language-js', 'text': scriptCode }) ), $('<button/>', { 'text': 'Copy to clipboard', 'class': 'btn', 'data-clipboard-target': 'pre#jssdk-js-to-copy' }) ); if (isFullCode) { $('#code').append( $('<br/>'), $('<br/>'), $('<h3/>', { 'class': 'lang', 'html': '<a href="javascript:void(0);" class="section-header"><strong>HTML + JavaScript</strong></a>' }), $('<pre/>', { 'id': 'jssdk-html-to-copy', 'class': 'prettyprint lang-html' }).append( $('<code/>', { 'class': 'language-markup', 'text': displayReponse }) ), $('<button/>', { 'text': 'Copy to clipboard', 'class': 'btn', 'data-iframe-height': 'data-iframe-height', 'data-clipboard-target': 'pre#jssdk-html-to-copy' }) ); } $('.lang').click(function() { $(this).next().fadeToggle().next().fadeToggle(); }); new Clipboard('.btn'); Prism.highlightAll(); loaded.then(function() { $('#example').append(extractStyle(response)).append(getBodyHTML(response)).append(extractScript(response)); // Creating button to open the example in a blank page $('#actions').append($('<a/>', { 'id': 'open-in-new-window', 'class': 'btn', 'target': 'blank', 'href': 'https://api.tomtom.com/maps-sdk-js/latest/examples/' + exampleFilename, 'text': 'Open example in a new window' }), $('<a/>', { 'class': 'btn', 'target': 'blank', 'href': downloadUrl, 'text': 'Download examples as a ZIP archive' })); raiseEvents(); addExamplesLoadedMarkerClass(); }); } if (!isValidExampleId(exampleId)) { exampleId = getDefaultExampleId(); } exampleFilename = getFilenameFromExampleId(exampleId); if (currentLoadedExample === exampleId) { return; } currentLoadedExample = exampleId; cleanUp() .then(function() { setActiveLinkInSidebar(exampleId); resetExampleContainer(); if (timeoutId) { timeoutId = clearTimeout(timeoutId); } timeoutId = setTimeout(function() { $.ajax({url: processUrl(exampleFilename), success: parseCode}); updateWindowHash(exampleId); }, 250); }); }; function LoadedScripts() { var loaded = [], toLoad = [], loaderPromise; function loadNextScriptInQueue() { if (toLoad.length > 0) { var url = toLoad.shift(); $.getScript(url, function() { loaded.push(url); loadNextScriptInQueue(); }); } else { loaderPromise.resolve(); } } function isNotLoaded(url) { return loaded.concat(toLoad).indexOf(url) === -1; } function isLoadInProgress() { return toLoad.length > 0; } function isNotMapSdkLib(url) { return !/\/?tomtom\.min\.js$/.test(url); } /** * @param {String[]} urls * @return {Promise} */ this.load = function(urls) { urls = urls.filter(isNotLoaded); urls = urls.filter(isNotMapSdkLib); if (urls.length === 0 && toLoad.length === 0) { return $.Deferred().resolve().promise(); // Returns a resolved promise } if (isLoadInProgress()) { toLoad = toLoad.concat(urls); } else { toLoad = urls.slice(); loaderPromise = $.Deferred(); loadNextScriptInQueue(); } return loaderPromise.promise(); }; } /** * Converts relative paths into absolute ones. * @param {String} url Relative path * @return {String} Absolute path */ function processUrl(url) { return isAbsoluteUrl(url) ? url : window.baseUrl + url; } /** * Detects if it is running from within an iframe */ function isIFramed() { try { return window.self !== window.top; } catch (e) { return true; } } function menuGroupClick(event) { event.preventDefault(); $(this).parent().find('ul').stop().slideToggle(); } function getSidebar() { if (!sidebarEl) { sidebarEl = $('#jssdk-menu').append(buildSidebar()); } return sidebarEl; } /** * @param {String} exampleId */ function setActiveLinkInSidebar(exampleId) { var sidebar = getSidebar(); sidebar .find('ul.jssdk-menu-group-elements > li').removeClass('active') .find('a.active').removeClass('active-trail active'); sidebar .find('a[href$="#' + exampleId + '"]').addClass('active-trail active') .parent().addClass('active') .parents('ul').first().show(); } function resetExampleContainer() { $('#jssdk-example-panel') .empty() .append( $('<div/>', {id: 'example', class: 'col-sm-12'}), $('<div/>', {id: 'actions', class: 'col-sm-12'}), $('<div/>', {id: 'description', class: 'col-sm-12'}), $('<div/>', {id: 'code', class: 'col-sm-12'}) ); } function parseParams(query) { return query.split(/(?=\?|&)/) .map(function(p) { return p.replace(/(\?|&)/, '').split('='); }).filter(function(pair) { return Array.isArray(pair) && pair.length === 2; }).reduce(function(acc, curr) { acc[curr[0]] = curr[1]; return acc; }, {}); } function buildSidebar() { var menu = $($('#menu-template').html()), menuGroupTemplateHtml = $('#menu-group-template').html(), menuGroupElementTemplateHtml = $('#menu-group-element-template').html(), host = decodeURIComponent(parseParams(location.search).host) || ''; $.each(EXAMPLES.config, function(header, examples) { var menuGroupTemplate = new t(menuGroupTemplateHtml); var menuGroup = $(menuGroupTemplate.render({name: header})); menuGroup.find('.dhtml-menu-header').on('click', menuGroupClick); menu.find('.jssdk-menu-group').append(menuGroup); $.each(examples, function(title, pageUrl) { var exampleId = getExampleIdFromUrl(pageUrl); var menuGroupElementTemplate = new t(menuGroupElementTemplateHtml); var menuGroupElement = $(menuGroupElementTemplate.render({ name: title, link: host + '#' + exampleId })); menuGroupElement.find('a').click(function(evt) { evt.preventDefault(); EXAMPLES.load(exampleId); }); menuGroup.find('.jssdk-menu-group-elements').append(menuGroupElement); }); }); return menu; } /** * @return {String} */ function getDefaultExampleId() { return allExampleIds[0]; } /** * @param {String} * @return {Boolean} */ function isValidExampleId(exampleId) { return allExampleIds.indexOf(exampleId) !== -1; } function loadExampleFromHash() { var exampleId = location.hash.replace('#', ''); EXAMPLES.load(exampleId); } function ApiKeysModal(selector) { this.element = document.querySelector(selector); this.body = this.element.querySelector('.modal-body'); this.footer = this.element.querySelector('.modal-footer'); } ApiKeysModal.prototype.showModal = function(requestedApiKeys, form, formFillerCallback) { $('.modal-footer form').remove(); form.appendTo(this.footer); form.empty(); form.append($('<button/>', { 'id': 'save-btn', 'class': 'btn btn-primary', 'text': 'Open in CodePen' })); this.element.style.display = 'block'; this.element.classList.add('in'); var cachedApiKeys = JSON.parse(window.sessionStorage.getItem('TomTomApiKeys')); API_KEYS.map(function(apiKey) { apiKey.shouldBeShown = requestedApiKeys.indexOf(apiKey.name) > -1; return apiKey; }).forEach(function(apiKey) { this.addRemoveInputIfNeeded(apiKey.name, apiKey.label, cachedApiKeys && cachedApiKeys[apiKey.name.replace(/\./g, '-')], apiKey.shouldBeShown); }, this); var submitHandler = function() { form.off('submit', submitHandler); this.hideModal(); var result = Array.prototype.reduce.call(this.body.querySelectorAll('input'), function(acc, input) { acc[input.parentNode.getAttribute('id')] = input.value; return acc; }, {}); window.sessionStorage.setItem('TomTomApiKeys', JSON.stringify(result)); formFillerCallback(result); }; submitHandler = submitHandler.bind(this); var closeHandler = function(event) { event.preventDefault(); this.element.querySelector('#close-btn').removeEventListener('click', closeHandler); this.hideModal(); }; closeHandler = closeHandler.bind(this); form.on('submit', submitHandler); this.element.querySelector('#close-btn').addEventListener('click', closeHandler); centerModal(); }; ApiKeysModal.prototype.hideModal = function() { this.element.style.display = 'none'; this.element.classList.remove('in'); }; ApiKeysModal.prototype.addRemoveInputIfNeeded = function(key, label, value, shouldBeShown) { var escapedKey = key.replace(/\./g, '-'); var container = this.body.querySelector('#' + escapedKey); if (container) { container.querySelector('input').value = value || ''; } else { container = document.createElement('div'); container.classList.add('modal-row'); container.setAttribute('id', escapedKey); container.innerHTML = ['<input value="', value, '"><label>', label, '</label>'].join(''); this.body.appendChild(container); } if (shouldBeShown) { container.classList.remove('hide'); } else { container.classList.add('hide'); } }; /** * This method tries to fix a LNS-21080 issue. */ function tryToFixIssueCausedByUnfocusedMap() { //this issue occurs only when an example app is embedded in an iframe. if (!isIFramed()) { return; } document.body.addEventListener('mouseover', function() { var activeElement = document.activeElement; var canMapBeFocused = !activeElement || ['body', 'a'].indexOf(activeElement.tagName.toLowerCase()) !== -1; if (canMapBeFocused) { var map = document.getElementById('map'); if (map) { map.focus({preventScroll: true}); } } }); } $(function() { if (!isIFramed()) { $('#jssdk-header').html('<h1>Maps SDK for Web functional examples</h1>'); } tryToFixIssueCausedByUnfocusedMap(); getSidebar(); L.Map.addInitHook(addInstance); $(window).on('hashchange', loadExampleFromHash); loadExampleFromHash(); window.modal = new ApiKeysModal('#modal'); }); })();
54.525326
250
0.583592
c0fe0a1bde61b883f7d78feb5baa84c2ad49dee3
3,504
js
JavaScript
components/vam-api/packages/vam-services/lib/appstream/lti-service.js
dpnguyen01/aws-virtual-application-management
6d3a7672a3bf5a2f80fecae2c8b21324938c98be
[ "Apache-2.0" ]
12
2021-09-02T22:18:04.000Z
2022-03-04T23:57:33.000Z
components/vam-api/packages/vam-services/lib/appstream/lti-service.js
dpnguyen01/aws-virtual-application-management
6d3a7672a3bf5a2f80fecae2c8b21324938c98be
[ "Apache-2.0" ]
null
null
null
components/vam-api/packages/vam-services/lib/appstream/lti-service.js
dpnguyen01/aws-virtual-application-management
6d3a7672a3bf5a2f80fecae2c8b21324938c98be
[ "Apache-2.0" ]
5
2021-10-20T03:45:49.000Z
2021-12-12T14:37:29.000Z
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ import lti from 'ims-lti'; import { Service } from '@aws-ee/base-services-container'; const settingKeys = { ltiConsumerKey: 'ltiConsumerKey', ltiConsumerSecretPrimary: 'ltiConsumerSecretPrimary', ltiConsumerSecretSecondary: 'ltiConsumerSecretSecondary', }; class LTIService extends Service { constructor() { super(); this.dependency(['aws']); } async handleLTIRequest(_requestContext, req) { this._cleanupRequest(req); const body = req.body; const fleetName = body.custom_fleet; const userId = body.ext_user_username; const callerConsumerKey = body.oauth_consumer_key; const primarySecret = await this._retrieveSecret('ltiConsumerSecretPrimary'); const primaryConsumerKey = primarySecret.ltiConsumerKey; const primaryConsumerSecret = primarySecret.ltiConsumerSecret; const secondarySecret = await this._retrieveSecret('ltiConsumerSecretSecondary'); const secondaryConsumerKey = secondarySecret.ltiConsumerKey; const secondaryConsumerSecret = secondarySecret.ltiConsumerSecret; let provider; if (callerConsumerKey === primaryConsumerKey) { provider = new lti.Provider(primaryConsumerKey, primaryConsumerSecret); } else if (callerConsumerKey === secondaryConsumerKey) { provider = new lti.Provider(secondaryConsumerKey, secondaryConsumerSecret); } else { throw new Error('Invalid consumer key'); } return new Promise((resolve, reject) => { provider.valid_request(req, (err, isValid) => { if (err) { reject(err); } if (isValid) { resolve(this._getFleetLink({ fleetName, userId })); } }); }); } async _getFleetLink({ fleetName, userId }) { const params = { FleetName: fleetName, StackName: fleetName, UserId: userId.substring(0, 32), }; const [aws] = await this.service(['aws']); const appstream = new aws.sdk.AppStream(); const res = await appstream.createStreamingURL(params).promise(); return { link: res.StreamingURL, expires: res.Expires }; } async _retrieveSecret(keyName) { const aws = await this.service('aws'); const sm = new aws.sdk.SecretsManager({ apiVersion: '2017-10-17' }); const secretId = this.settings.get(settingKeys[keyName]); const result = await sm.getSecretValue({ SecretId: secretId }).promise(); return JSON.parse(result.SecretString); } _cleanupRequest(req) { // API Gateway modifies URLs in the request when it forwards them to the handler. // The original values must be reconstructed or the signatures won't match. const protocol = req.connection.encrypted ? 'https' : 'http'; const { context, headers } = req; req.url = `${protocol}://${headers.host}/${context.stage}${context.resourcePath}`; req.originalUrl = `${protocol}://${headers.host}/${context.stage}${context.resourcePath}`; } } export default LTIService;
34.693069
94
0.699201
c0fe17eb3bcd836a66f4dc7a578e8557f2d1b745
543
js
JavaScript
public/static/wap/js_new/detail_3d55d41.js
1352468579/wzclpc
274f21d5646915e1e39975690464532be85394d7
[ "Apache-2.0" ]
null
null
null
public/static/wap/js_new/detail_3d55d41.js
1352468579/wzclpc
274f21d5646915e1e39975690464532be85394d7
[ "Apache-2.0" ]
null
null
null
public/static/wap/js_new/detail_3d55d41.js
1352468579/wzclpc
274f21d5646915e1e39975690464532be85394d7
[ "Apache-2.0" ]
null
null
null
!function(){function e(){var e=r.scrollTop(),o=r.height();o>e?n.fadeOut():e>=o&&n.fadeIn()}window.$=window.jQuery=require("common:widget/jquery/1.11.3/jquery.js");{var o=require("common:widget/wzcl/wzcl.js");require("common:widget/tool/slider/slider.js")}require("common:widget/jquery/mousewheel/mousewheel.js");var i=(require("common:widget/arale-easing/1.1.0/index.js"),!!o.data.get("stu")),r=$(window),n=$(".J-top");i&&n.css("bottom","12px"),n.click(function(){$("html, body").animate({scrollTop:0},"slow")}),r.on("resize scroll",e),e()}();
543
543
0.685083
c0ff86e346b0cb48d178819474ade845063bb38e
1,256
js
JavaScript
cloudfunctions/message/updateAllMessages/index.js
2283533702/mianshiya-public
f724e30be49cfbd163186c10cbb7131628743f63
[ "MIT" ]
1
2022-03-31T11:26:35.000Z
2022-03-31T11:26:35.000Z
cloudfunctions/message/updateAllMessages/index.js
sakura-love/mianshiya-public
f724e30be49cfbd163186c10cbb7131628743f63
[ "MIT" ]
null
null
null
cloudfunctions/message/updateAllMessages/index.js
sakura-love/mianshiya-public
f724e30be49cfbd163186c10cbb7131628743f63
[ "MIT" ]
null
null
null
const cloud = require('@cloudbase/node-sdk'); const app = cloud.init({ env: cloud.SYMBOL_CURRENT_ENV, }); const db = app.database(); const _ = db.command; /** * 修改全部消息(已读、删除) * @param event * @param context * @return {Promise<*|boolean>} */ exports.main = async (event, context) => { const { status, isDelete } = event; // 请求参数校验 if (status === undefined && isDelete === undefined) { return false; } // 获取当前登录用户 const { userInfo } = app.auth().getEndUserInfo(); if (!userInfo || !userInfo.customUserId) { return false; } const currentUser = await db .collection('user') .where({ unionId: userInfo.customUserId, isDelete: false, }) .limit(1) .get() .then(({ data }) => data[0]); if (!currentUser || !currentUser._id) { return false; } // 封装数据 const condition = { toUserId: currentUser._id, isDelete: false, }; const updateData = { _updateTime: new Date(), }; if (status !== undefined) { updateData.status = status; updateData.readTime = new Date(); condition.status = _.neq(status); } if (isDelete !== undefined) { updateData.isDelete = isDelete; } return await db.collection('message').where(condition).update(updateData); };
21.288136
76
0.612261
c0ffd713a22719c6007ac75f2bde658e2c24546f
604
js
JavaScript
AgeCalculator/js/app.js
NoualAli/JavaScript
3d21c6f5cb9fb669ab47921f19db3462592ae6c4
[ "MIT" ]
null
null
null
AgeCalculator/js/app.js
NoualAli/JavaScript
3d21c6f5cb9fb669ab47921f19db3462592ae6c4
[ "MIT" ]
null
null
null
AgeCalculator/js/app.js
NoualAli/JavaScript
3d21c6f5cb9fb669ab47921f19db3462592ae6c4
[ "MIT" ]
null
null
null
/** * Variables that contains $ sign at start are HTML elements */ const $ageCalculator = document.querySelector('#age-calculator') const $birthday = $ageCalculator.querySelector('#birthday') const $age = $ageCalculator.querySelector('#age') $ageCalculator.addEventListener('submit', (e) => { e.preventDefault() calculate() }) /** * Calculate age * * @return {void} */ function calculate() { const birthday = new Date($birthday.value) const difference = Date.now() - birthday.getTime() const age = new Date(difference) $age.value = Math.abs(age.getUTCFullYear() - 1970) }
24.16
64
0.683775
8d003532de5c61c63070487eaa578b1646b5332f
3,853
js
JavaScript
test/reducers/GameReducer_test.js
shaderzz/react-solitaire
52a1e90238b5b108c1896a4a1ff7e454206e114e
[ "MIT" ]
199
2015-10-21T15:33:08.000Z
2022-03-11T07:28:33.000Z
test/reducers/GameReducer_test.js
shaderzz/react-solitaire
52a1e90238b5b108c1896a4a1ff7e454206e114e
[ "MIT" ]
16
2015-10-30T12:29:29.000Z
2020-07-20T22:17:26.000Z
test/reducers/GameReducer_test.js
shaderzz/react-solitaire
52a1e90238b5b108c1896a4a1ff7e454206e114e
[ "MIT" ]
51
2015-10-21T15:41:30.000Z
2022-02-06T00:54:11.000Z
import expect from 'expect'; import reducer from '../../src/reducers'; import { OrderedDeck } from '../../src/reducers/GameReducer.js'; import { ActionTypes as types } from '../../src/constants'; import TestActions from './TestActions.js'; import initialState from './initialState.js'; import { Suits, Ranks } from '../../src/constants'; import flatten from 'lodash/flatten'; import filter from 'lodash/filter'; import omit from 'lodash/omit'; const getNewState = state => action => reducer(state, action).game.toJS(); const getNewGame = getNewState(initialState); describe('GameReducer', function () { describe('Initial State', function () { it('all the cards should have been dealt', () => { const state = getNewState()({}); const dealtDeck = state.DECK.upturned .concat(state.DECK.downturned) .concat(flatten(state.PILE.map(pile => pile))); expect(dealtDeck.length).toBe(Object.keys(Suits).length * Ranks.length); expect( OrderedDeck.every( card => filter(dealtDeck, omit(card, 'upturned')).length ) ).toBe(true); }); }); describe('MOVE_CARD', () => { it('should handle from PILE to FOUNDATION', () => { const newState = getNewGame(TestActions.PILE_TO_FOUNDATION); expect( newState.FOUNDATION.DIAMONDS ).toEqual( TestActions.PILE_TO_FOUNDATION.payload.cards ); expect(newState.PILE[2].length).toBe(2); expect( newState.PILE[2] ).not.toContain( TestActions.PILE_TO_FOUNDATION.payload.cards[0] ); }); it('should handle from PILE to PILE', () => { const newState = getNewGame(TestActions.PILE_TO_PILE); expect( newState.PILE[5] ).toContainEqual(TestActions.PILE_TO_PILE.payload.cards[0]); expect( newState.PILE[3] ).not.toContainEqual(TestActions.PILE_TO_PILE.payload.cards[0]) }); it('should handle from PILE to PILE, multiple cards'); it('should handle from FOUNDATION to PILE', () => { const newState = getNewGame(TestActions.FOUNDATION_TO_PILE); expect( newState.PILE[2] ).toContainEqual(TestActions.FOUNDATION_TO_PILE.payload.cards[0]); expect( newState.FOUNDATION.CLUBS ).not.toContainEqual(TestActions.FOUNDATION_TO_PILE.payload.cards[0]); }); it('should handle from DECK to PILE', () => { const newState = getNewGame(TestActions.DECK_TO_PILE); expect( newState.PILE[5] ).toContainEqual(TestActions.DECK_TO_PILE.payload.cards[0]); expect( newState.DECK.upturned ).not.toContain(TestActions.DECK_TO_PILE.payload.cards[0]); expect( newState.DECK.downturned ).not.toContain(TestActions.DECK_TO_PILE.payload.cards[0]); }); it('should handle from DECK to FOUNDATION', () => { const newState = getNewGame(TestActions.DECK_TO_FOUNDATION); expect( newState.FOUNDATION.CLUBS ).toContainEqual(TestActions.DECK_TO_FOUNDATION.payload.cards[0]); expect( newState.DECK.upturned ).not.toContainEqual(TestActions.DECK_TO_FOUNDATION.payload.cards[0]); expect( newState.DECK.downturned ).not.toContainEqual(TestActions.DECK_TO_FOUNDATION.payload.cards[0]); }); }); describe('TURN_CARD', () => { it('should turn a deck card', () => { const newState = getNewGame(TestActions.TURN_CARD); expect(newState.DECK.upturned).toContainEqual({ rank:'2', suit:'CLUBS' }); expect(newState.DECK.upturned).toContainEqual({ rank:'Q', suit:'CLUBS' }); expect(newState.DECK.downturned).not.toContainEqual({ rank:'Q', suit:'CLUBS' }); }); }); });
34.401786
88
0.625487
8d0088865038b0de96b5c7243402fea09ff7eac0
144
js
JavaScript
test/config.js
xezian/nekodb
e4cab854de29647f670151557f47460293242862
[ "MIT" ]
17
2018-03-10T00:33:55.000Z
2019-09-18T02:51:20.000Z
test/config.js
xezian/nekodb
e4cab854de29647f670151557f47460293242862
[ "MIT" ]
41
2018-03-09T12:43:55.000Z
2019-03-15T18:01:07.000Z
test/config.js
cutejs/kodbm
42dddf5fe69e2220cd227ca0ceae08a44411e444
[ "MIT" ]
3
2018-04-21T06:37:39.000Z
2018-09-29T21:29:52.000Z
module.exports = { testMongo: false, client: 'mongodb', username: '', password: '', address: 'localhost:27017', database: 'ko_db_test', }
16
28
0.659722
8d00df6d59d3b8149a3a3f581f592321132066d0
1,012
js
JavaScript
src/components/ImportRecordsFlow/stepThree/assignFieldModalFooter.js
ahmadawais/react-rainbow
2227c1dd6e811649d624e4e56ccb12bc7743748f
[ "MIT" ]
1
2019-10-25T04:12:39.000Z
2019-10-25T04:12:39.000Z
src/components/ImportRecordsFlow/stepThree/assignFieldModalFooter.js
ahmadawais/react-rainbow
2227c1dd6e811649d624e4e56ccb12bc7743748f
[ "MIT" ]
null
null
null
src/components/ImportRecordsFlow/stepThree/assignFieldModalFooter.js
ahmadawais/react-rainbow
2227c1dd6e811649d624e4e56ccb12bc7743748f
[ "MIT" ]
null
null
null
import React from 'react'; import PropTypes from 'prop-types'; import Button from '../../Button'; export default function AssignFieldModalFooter(props) { const { onCancel, onAssign, isAssignButtonDisabled } = props; return ( <div className="rainbow-import-records-flow_step-three-assign-field-modal-footer"> <Button className="rainbow-import-records-flow_step-three-assign-field-modal-footer_cancel-button" label="Cancel" onClick={onCancel} /> <Button label="Assign" variant="brand" onClick={onAssign} disabled={isAssignButtonDisabled} /> </div> ); } AssignFieldModalFooter.propTypes = { onCancel: PropTypes.func, onAssign: PropTypes.func, isAssignButtonDisabled: PropTypes.bool, }; AssignFieldModalFooter.defaultProps = { onCancel: () => {}, onAssign: () => {}, isAssignButtonDisabled: false, };
28.914286
106
0.604743
8d00f5d8b9b16f9b27dbc5ec7c44a47117df4691
110
js
JavaScript
src/context/firebase.js
dylanchau/instagrame-clone
0ae654a9d2ebefefe1bd80e1980711421b74f18b
[ "MIT" ]
null
null
null
src/context/firebase.js
dylanchau/instagrame-clone
0ae654a9d2ebefefe1bd80e1980711421b74f18b
[ "MIT" ]
null
null
null
src/context/firebase.js
dylanchau/instagrame-clone
0ae654a9d2ebefefe1bd80e1980711421b74f18b
[ "MIT" ]
null
null
null
import { createContext } from 'react' const FirebaseContext = createContext(null) export { FirebaseContext }
22
43
0.781818
8d0138c75905e47480fa109823dcac46a16642ae
1,829
js
JavaScript
scripts/1.js
smhmayboudi/fip-api
e2da64ab5a9c8ed8a521736716131473e522535a
[ "MIT" ]
null
null
null
scripts/1.js
smhmayboudi/fip-api
e2da64ab5a9c8ed8a521736716131473e522535a
[ "MIT" ]
null
null
null
scripts/1.js
smhmayboudi/fip-api
e2da64ab5a9c8ed8a521736716131473e522535a
[ "MIT" ]
null
null
null
function registerSchema(filename) { const type = { name: "RtValidateDto", namespace: "fip.common", req: { name: "RtValidateReqDto", version: 1, }, res: { name: "RtResDto", version: 1, }, }; const file = fs.readFileSync(filename); const cont = file .toString() .replace(/ /g, "") .replace(/\n/g, "") .replace(/NAME/g, type.name) .replace(/REQ/g, type.req) .replace(/RES/g, type.res); const schema = { references: [ { name: type.req.name, subject: `${type.namespace}.${type.req.name}`, version: type.req.version, }, { name: type.res.name, subject: `${type.namespace}.${type.res.name}`, version: type.res.version, }, ], schema: cont, schemaType: "AVRO", }; console.log("-- XXX", schema); // COMPATIBILITY BACKWARD const response = await this.api.Subject.register({ subject, body: { schema: JSON.stringify(schema) }, }) } // ======================================== // // ======================================== // // ======================================== // // ======================================== // const fs = require("fs"); const path = require("path"); function process(startPath, filter) { console.log("-- START ", startPath); if (!fs.existsSync(startPath)) { console.log("no dir ", startPath); return; } var files = fs.readdirSync(startPath); for (var i = 0; i < files.length; i++) { var filename = path.join(startPath, files[i]); var stat = fs.lstatSync(filename); if (stat.isDirectory()) { void process(filename, filter); } else if (filename.indexOf(filter) >= 0) { console.log("-- FILENAME", filename); registerSchema(filename); } } } void process(".", ".avsc");
24.716216
54
0.511208
8d01e3f167f18a724d00f8ef49680c7716bdef03
2,087
js
JavaScript
node_modules/reakit/es/Dialog/DialogBackdrop.js
rajrajhans/bundle-stats-action
3accdfcb7f5850c227dff44bf17fe3e370d1a591
[ "MIT" ]
14
2020-04-10T10:00:08.000Z
2022-03-31T20:04:07.000Z
node_modules/reakit/es/Dialog/DialogBackdrop.js
rajrajhans/bundle-stats-action
3accdfcb7f5850c227dff44bf17fe3e370d1a591
[ "MIT" ]
72
2020-03-29T00:22:15.000Z
2022-03-04T19:34:55.000Z
node_modules/reakit/es/Dialog/DialogBackdrop.js
rajrajhans/bundle-stats-action
3accdfcb7f5850c227dff44bf17fe3e370d1a591
[ "MIT" ]
1
2021-11-25T05:20:40.000Z
2021-11-25T05:20:40.000Z
import { _ as _objectWithoutPropertiesLoose, a as _objectSpread2 } from '../_rollupPluginBabelHelpers-1f0bf8c2.js'; import { createComponent } from 'reakit-system/createComponent'; import { createHook } from 'reakit-system/createHook'; import 'reakit-utils/shallowEqual'; import { useCallback, createElement } from 'react'; import 'reakit-utils/useLiveRef'; import 'reakit-utils/isSelfTarget'; import 'reakit-utils/useIsomorphicEffect'; import '../Role/Role.js'; import 'reakit-utils/canUseDOM'; import '../__keys-e6a5cfbe.js'; import { useDisclosureContent } from '../Disclosure/DisclosureContent.js'; import 'react-dom'; import { Portal } from '../Portal/Portal.js'; import { D as DialogBackdropContext } from '../DialogBackdropContext-8775f78b.js'; import { a as DIALOG_BACKDROP_KEYS } from '../__keys-ed7b48af.js'; var useDialogBackdrop = createHook({ name: "DialogBackdrop", compose: useDisclosureContent, keys: DIALOG_BACKDROP_KEYS, useOptions: function useOptions(_ref) { var _ref$modal = _ref.modal, modal = _ref$modal === void 0 ? true : _ref$modal, options = _objectWithoutPropertiesLoose(_ref, ["modal"]); return _objectSpread2({ modal: modal }, options); }, useProps: function useProps(options, _ref2) { var htmlWrapElement = _ref2.wrapElement, htmlProps = _objectWithoutPropertiesLoose(_ref2, ["wrapElement"]); var wrapElement = useCallback(function (element) { if (options.modal) { element = /*#__PURE__*/createElement(Portal, null, /*#__PURE__*/createElement(DialogBackdropContext.Provider, { value: options.baseId }, element)); } if (htmlWrapElement) { return htmlWrapElement(element); } return element; }, [options.modal, htmlWrapElement]); return _objectSpread2({ id: undefined, "data-dialog-ref": options.baseId, wrapElement: wrapElement }, htmlProps); } }); var DialogBackdrop = createComponent({ as: "div", memo: true, useHook: useDialogBackdrop }); export { DialogBackdrop, useDialogBackdrop };
33.66129
119
0.701965
8d02447477187db0b93316d546cc7fcf15e5ef70
156
js
JavaScript
node_modules/webpack-theme-color-replacer/client/index.js
lycnihao/squirrel-admin
a101d968d0736a5d5a98fcc5964e4d0038461dc8
[ "MIT" ]
1
2022-01-09T07:13:45.000Z
2022-01-09T07:13:45.000Z
node_modules/webpack-theme-color-replacer/client/index.js
lycnihao/squirrel-admin
a101d968d0736a5d5a98fcc5964e4d0038461dc8
[ "MIT" ]
7
2020-07-19T14:12:37.000Z
2022-02-26T23:47:00.000Z
node_modules/webpack-theme-color-replacer/client/index.js
tyebu/starhome-ui
31eb481254b0c712eb429d96c5957bf3c73550cf
[ "MIT" ]
1
2022-01-09T07:13:47.000Z
2022-01-09T07:13:47.000Z
var changer = require('./themeColorChanger.js') var varyColor = require('./varyColor') module.exports = { changer: changer, varyColor: varyColor }
19.5
47
0.698718
8d027b8876d10085c5e60d4abe265f8dadfe487c
1,018
js
JavaScript
server.js
apesconsole/apesconsole-docker
4033f2fc4261dee6f7a1b6eb6cd71ac3a88c46af
[ "MIT" ]
null
null
null
server.js
apesconsole/apesconsole-docker
4033f2fc4261dee6f7a1b6eb6cd71ac3a88c46af
[ "MIT" ]
null
null
null
server.js
apesconsole/apesconsole-docker
4033f2fc4261dee6f7a1b6eb6cd71ac3a88c46af
[ "MIT" ]
null
null
null
/* Apes's Console */ var express = require("express"); var app = express(); var http = require('http').Server(app); var router = express.Router(); var logger = require("logging_component"); var url = require("url"); var path = __dirname + '/public/'; app.use('/resources', express.static(path + 'resources')); app.use("/", router); router.use(function (req, res, next) { var headers = req.headers; var userAgent = headers['user-agent']; logger.log('User Agent - ' + userAgent + ', Request - ' + req.method); next(); }); router.get("/", function(req,res){ res.redirect('/index'); }); router.get("/index", function(req,res){ res.sendFile(path + "index.html"); }); http.listen(process.env.PORT || 3001, () => { logger.log('##################################################'); logger.log(' Ape\'s Console - Data'); logger.log(' Process Port :' + process.env.PORT); logger.log(' Local Port :' + 3001); logger.log('##################################################'); });
24.829268
71
0.551081
8d0301ce438d7883569f9c4e90e140b290ed9ce4
1,149
js
JavaScript
src/js/fetch/todoFetch.js
sihyung92/js-todo-list-step2
bacdafe9c7bbc4f52dab332f173f23b872ea89a4
[ "MIT" ]
null
null
null
src/js/fetch/todoFetch.js
sihyung92/js-todo-list-step2
bacdafe9c7bbc4f52dab332f173f23b872ea89a4
[ "MIT" ]
null
null
null
src/js/fetch/todoFetch.js
sihyung92/js-todo-list-step2
bacdafe9c7bbc4f52dab332f173f23b872ea89a4
[ "MIT" ]
null
null
null
import {deleteFetch, getFetch, postFetch, putFetch} from "./methodFetches.js"; export {addTodoFetch, deleteAllTodoFetch, deleteEachTodoFetch, toggleItem, updateEachTodoFetch, getTodoFetch} function getTodoFetch(userId) { return getFetch(`/api/users/${userId}/items/`) .then(response => response.json()) } function deleteAllTodoFetch(userId) { return deleteFetch(`/api/users/${userId}/items/`) .then(response => response.json()) } function deleteEachTodoFetch(userId, itemId) { return deleteFetch(`/api/users/${userId}/items/${itemId}`) .then(response => response.json()) } function updateEachTodoFetch(userId, itemId, updateContents) { return putFetch(`/api/users/${userId}/items/${itemId}`, {contents: `${updateContents}`}) .then(response => response.json()) } function toggleItem(userId, itemId) { return putFetch(`/api/users/${userId}/items/${itemId}/toggle`, {method: 'PUT'}) .then(response => response.json()) } function addTodoFetch(userId, contents) { return postFetch(`/api/users/${userId}/items/`, {contents: `${contents}`}) .then(response => response.json()) }
34.818182
109
0.688425
8d03be8ad94f33f3d01ab37eec8c236341278b35
2,641
js
JavaScript
js/app.js
Dima-Zeklam/Books-Shop
2b87c60ae858215ba1d3130a0f7fcb003a00694d
[ "MIT" ]
null
null
null
js/app.js
Dima-Zeklam/Books-Shop
2b87c60ae858215ba1d3130a0f7fcb003a00694d
[ "MIT" ]
null
null
null
js/app.js
Dima-Zeklam/Books-Shop
2b87c60ae858215ba1d3130a0f7fcb003a00694d
[ "MIT" ]
null
null
null
'use strict'; let min= 1; let max = 500; let form = document.getElementById('form'); let table = document.getElementById('table'); let bookList = []; function Books(BookName, BookPrice) { this.BookName = BookName; this.BookPrice = BookPrice; bookList.push(this); SaveToLocalStoarge() } function SaveToLocalStoarge() { let obj = JSON.stringify(bookList); localStorage.setItem('book', obj); } function LoadFromLoaclStoarge() { let strObj = localStorage.getItem('book'); let normalObj = JSON.parse(strObj); if (normalObj !== null) { for (let i = 0; i < normalObj.length; i++) { new Books(normalObj[i].BookName, normalObj[i].BookPrice); render(); } } } function getRandomPages(){ return Math.floor(Math.random()*(max-min+1)+min); } let h3El = document.getElementById('total'); let thead = document.createElement('thead'); let trEl= document.createElement('tr'); let thEl = document.createElement('th'); function tableHeader(){ trEl= document.createElement('tr'); thEl = document.createElement('th'); thEl.textContent = 'Book Name' ; trEl.appendChild(thEl); thEl = document.createElement('th'); thEl.textContent = 'Book Pages'; trEl.appendChild(thEl); thEl = document.createElement('th'); thEl.textContent = 'Price' ; trEl.appendChild(thEl); thead.appendChild(trEl); table.appendChild(thead); h3El = document.getElementById('total'); h3El.textContent= 'Total: ' + 0; } tableHeader(); let tdEl = document.createElement('td'); let tbody = document.createElement('tbody'); // let tfoot = document.createElement('tfoot'); let total = 0; function render(){ total = 0; for(let i=0;i<bookList.length;i++){ trEl= document.createElement('tr'); tdEl = document.createElement('td'); tdEl.textContent = bookList[i].BookName; trEl.appendChild(tdEl); tdEl = document.createElement('td'); let bookPages = getRandomPages(); tdEl.textContent = bookPages; trEl.appendChild(tdEl); tdEl = document.createElement('td'); tdEl.textContent = bookList[i].BookPrice; total += Number(bookList[i].BookPrice); trEl.appendChild(tdEl); } tbody.appendChild(trEl); table.appendChild(tbody); h3El = document.getElementById('total'); h3El.textContent= 'Total: ' + total; SaveToLocalStoarge(); } function handl(event){ event.preventDefault(); let Bookname = event.target.bookname.value; let Bookprice = event.target.select.value; new Books(Bookname,Bookprice); render(); } form.addEventListener('submit',handl); LoadFromLoaclStoarge();
28.706522
69
0.670201
8d03e34ac6c36c703bf9f94209106ade686927f7
1,690
js
JavaScript
src/components/HeadConfig/index.js
EdemarSantos/lequiz
3b6bd9568784968a35015713241e4b0a535f04ff
[ "MIT" ]
null
null
null
src/components/HeadConfig/index.js
EdemarSantos/lequiz
3b6bd9568784968a35015713241e4b0a535f04ff
[ "MIT" ]
null
null
null
src/components/HeadConfig/index.js
EdemarSantos/lequiz
3b6bd9568784968a35015713241e4b0a535f04ff
[ "MIT" ]
null
null
null
import React from 'react'; import Head from 'next/head'; function HeadConfig() { return ( <div> <Head> <title>Le Quiz - O quiz de gatos mais fofo que existe!</title> <meta name="title" content="Le Quiz - O quiz de gatos mais fofo que existe!" /> <meta name="description" content="Um quiz de curiosidades sobre 🐈 gatinhos, gatas, bichanos e felinos 🐱. A quiz of curiosities about kitty, kitten and cats." /> {/* <!-- Open Graph / Facebook --> */} <meta property="og:type" content="website" /> <meta property="og:url" content="https://metatags.io/" /> <meta property="og:title" content="Le Quiz - O quiz de gatos mais fofo que existe!" /> <meta property="og:description" content="Um quiz de curiosidades sobre 🐈 gatinhos, gatas, bichanos e felinos 🐱. A quiz of curiosities about kitty, kitten and cats." /> <meta property="og:image" content="https://lequiz.edemarsantos.vercel.app/img/ogimg.png" /> {/* <!-- Twitter --> */} <meta property="twitter:card" content="summary_large_image" /> <meta property="twitter:url" content="https://metatags.io/" /> <meta property="twitter:title" content="Le Quiz - O quiz de gatos mais fofo que existe!" /> <meta property="twitter:description" content="Um quiz de curiosidades sobre 🐈 gatinhos, gatas, bichanos e felinos 🐱. A quiz of curiosities about kitty, kitten and cats." /> <meta property="twitter:image" content="https://lequiz.edemarsantos.vercel.app/img/ogimg.png" /> </Head> </div> ); } export default HeadConfig;
41.219512
142
0.615976
8d04680c76f83241b6186041b2508b856f09ca00
44,217
js
JavaScript
Quicksave.plugin.js
planetarian/BetterDiscordQuicksave
25e33e1a6976fbdda159c396e8dafb840ce7ab24
[ "MIT" ]
1
2019-03-12T16:01:40.000Z
2019-03-12T16:01:40.000Z
Quicksave.plugin.js
planetarian/BetterDiscordQuicksave
25e33e1a6976fbdda159c396e8dafb840ce7ab24
[ "MIT" ]
null
null
null
Quicksave.plugin.js
planetarian/BetterDiscordQuicksave
25e33e1a6976fbdda159c396e8dafb840ce7ab24
[ "MIT" ]
null
null
null
//META{"name":"Quicksave"}*// /* global $, ReactUtilities, PluginUtilities, PluginSettings, navigator, BdApi */ class Quicksave { get local() { let lang = navigator.language; if (document.documentElement.getAttribute('lang')) lang = document.documentElement.getAttribute('lang').split('-')[0]; switch (lang) { case "es": // Spanish return { startMessage: "${pluginName} ${version} ha empezado", description: 'Le permite guardar archivos rápidamente con un nombre corto y aleatorio', quicksave: "Guardar archivo", as: 'como', finished: 'Finalizado', showFn: "Archivo guardado como ${filename}", saveFail: "Hubo un problema al guardar el archivo.", invalidLocation: "Ubicación no válida", save: "Guardar", reset: "Reajustar configuraciones", downloading: 'Bajando...', noFreeName: 'Error: Ha fallado al encontrar un nombre libre', modals: { generalButtons: { cancel: 'Cancelar', save: 'Guardar' }, filenameChoose: { insertFilename: 'Insira el nombre del archivo' }, error: { alreadyExists: 'Archivo <span class="file-name">${filename}</span>${filetype} ya existe', genRandom: 'Generar aleatorio', overwrite: 'Sustituir', chooseNew: 'Elegir nuevo nombre', question: '¿Qué vas a hacer?', invalidUrl: 'URL no válida' } }, settings: { panel: 'Panel de configuraciones', labels: { directory: 'Directorio', original: 'Mantener el nombre original', randomizeUnknown: 'Reemplazar nombres de archivo desconocidos', filename: 'Mostrar el nombre del archivo al finalzar', randomLength: 'Tamaño del nombre al azar' }, help: { original: 'Guardar archivos con el nombre original en lugar de un aleatorio', randomizeUnknown: 'Al guardar los nombres de archivos originales, aleatorizar si el nombre de archivo es "unknown".', filename: 'Si mostrar el nombre del archivo al finalizar o no' }, protip: { label: 'Consejo:', tip: 'Los archivos guardados ganan un nombre al azar en Base64. Sólo 4 caracteres permiten ~ 17 millones de nombres (64^4)' } } }; case "pt": // Portuguese return { startMessage: "${pluginName} ${version} iniciado", description: 'Permite salvar arquivos rapidamente com um nome curto e aleatório', quicksave: "Salvar arquivo", as: 'como', finished: 'Finalizado', filename: "Arquivo salvo como ${filename}", saveFail: "Houve um problema ao salvar o arquivo", invalidLocation: "Local inválido", save: "Salvar", reset: "Redefinir configurações", downloading: 'Baixando...', noFreeName: 'Erro: Falha ao encontrar um nome disponível', modals: { generalButtons: { cancel: 'Cancelar', save: 'Salvar' }, filenameChoose: { insertFilename: 'Insira o nome do arquivo' }, error: { alreadyExists: 'Arquivo <span class="file-name">${filename}</span>${filetype} já existe', genRandom: 'Gerar aleatório', overwrite: 'Substituir', chooseNew: 'Escolher novo nome', question: 'O que você deseja fazer?', invalidUrl: 'URL inválido' } }, settings: { panel: 'Painel de configurações', labels: { directory: 'Diretório', original: 'Manter o nome original', randomizeUnknown: 'Substituir nomes de arquivo desconhecidos', filename: 'Mostrar nome do arquivo ao terminar de baixar', randomLength: 'Tamanho do nome aleatório', autoAddNum: 'Adicionar (n) ao final dos arquivos automaticamente' }, help: { original: 'Salvar arquivos com o nome original em vez de um aleatório', randomizeUnknown: 'Ao manter os nomes de arquivos originais, Randomize se o nome do arquivo for "unknown".', filename: 'Mostrar o nome do arquivo ao finalizar ou não', autoAddNum: 'Ao salvar um arquivo com um nome já existente, adicionar (n) ao final do nome' }, protip: { label: 'Fica a dica:', tip: 'Arquivos salvos ganham um nome aleatório em Base64. Só 4 caracteres permitem ~17 milhões de nomes (64^4)' } } }; case "tr": // Turkish return { startMessage: "${pluginName} ${version} başladı.", description: 'Dosyaları kısa bir rastgele adla hızlıca kaydetmenizi sağlar', quicksave: "Dosyayı kaydet", as: 'olarak', finished: 'Tamamlandı', filename: "Dosya ${filename} olarak kaydedildi.", saveFail: "Dosya kaydedilirken bir sorun oluştu.", invalidLocation: "Geçersiz konum", save: "Kaydet", reset: "Ayarları sıfırla", downloading: 'İndiriliyor...', noFreeName: 'Hata: Failed to find a free file name', modals: { generalButtons: { cancel: 'İptal', save: 'Kaydet' }, filenameChoose: { insertFilename: 'Dosya adını ekle' }, error: { alreadyExists: 'Dosya <span class="file-name">${filename}</span>${filetype} zaten var', genRandom: 'Rastgele oluştur', overwrite: 'Üzerine Yaz (Overwrite)', chooseNew: 'Yeni isim seç', question: 'Ne yapacaksın??', invalidUrl: 'Geçersiz URL' } }, settings: { panel: 'Ayar paneli', labels: { directory: 'Konum', original: 'Orijinal ismi koru', randomizeUnknown: 'Bilinmeyen dosya isimlerini değiştir', filename: 'İndirme işlemi bittiğinde dosya adını göster', randomLength: 'Rastgele dosya adı uzunluğu', autoAddNum: 'Dosya adlarının sonuna otomatik olarak (n) ekle' }, help: { original: 'Dosyaları yeni rastgele biri yerine orijinal dosya adıyla kaydedin', randomizeUnknown: 'Orijinal dosya isimlerini saklarken, dosya adı "unknown" ise rastgele hale getirin.', filename: 'İndirmenin sonunda dosya adının gösterilip gösterilmeyeceği', autoAddNum: 'Bir dosyayı aynı ada sahip bir dosyaya kaydederken, dosya adının sonuna (n) ekleyin.' }, protip: { label: 'Protip:', tip: 'Kayıtlı dosyalar rasgetle bir base64 adı alır. Sadece 4 karakter, ~17 milyon farklı dosya adına izin verir (64 ^ 4).' } } }; case "it": // Italian return { startMessage: "${pluginName} ${version} avviato.", description: 'Permette di salvare velocemente le immagini con un nome breve casuale', quicksave: "Salva immagine", as: 'come', finished: 'Fatto', filename: "Immagine salvata come ${filename}", saveFail: "Si è verificato un problema durante il salvataggio.", invalidLocation: "Percorso non valido", save: "Salva", reset: "Reimposta opzioni", downloading: 'Download in corso...', noFreeName: 'Errore: Non è stato possibile trovare un nome utilizzabile per il file', modals: { generalButtons: { cancel: 'Annulla', save: 'Salva' }, filenameChoose: { insertFilename: 'Inserisci il nome del file' }, error: { alreadyExists: 'Il file <span class="file-name">${filename}</span> esiste già', genRandom: 'Genera casualmente', overwrite: 'Sovrascrivi', chooseNew: 'Scegli un nuovo nome', question: 'Cosa vuoi fare?', invalidUrl: 'Invalid URL' } }, settings: { panel: 'Pannello di configurazione', labels: { directory: 'Percorso', original: 'Mantieni il nome originale', randomizeUnknown: 'Replace unknown filenames', filename: 'Mostra il nome del file una volta completato il download', randomLength: 'Lunghezza nome del file casuale', autoAddNum: 'Add (n) at the end of the file names automatically' }, help: { original: 'Salva il file con il suo nome originale invece di generarne uno casuale', randomizeUnknown: 'When keeping original file names, randomize if the file name is "unknown".', filename: 'Se mostrare il nome del file alla fine oppure no', autoAddNum: 'When saving a file with the same name of another, add (n) to the end of the file name.' }, protip: { label: 'Suggerimento:', tip: 'I file vengono salvati con un nome base64. Solo 4 caratteri possono avere ~17 milioni di combinazioni differenti (64^4).' } } }; default: // English return { startMessage: "${pluginName} ${version} has started.", description: 'Lets you save files fast with a short random name', quicksave: "Save file", as: 'as', finished: 'Finished', filename: "File saved as ${filename}", saveFail: "There was an issue saving the file.", invalidLocation: "Invalid location", save: "Save", reset: "Reset settings", downloading: 'Downloading...', noFreeName: 'Error: Failed to find a free file name', modals: { generalButtons: { cancel: 'Cancel', save: 'Save' }, filenameChoose: { insertFilename: 'Insert file name' }, error: { alreadyExists: 'File <span class="file-name">${filename}</span>${filetype} already exists', genRandom: 'Generate random', overwrite: 'Overwrite', chooseNew: 'Choose new name', question: 'What will you do?', invalidUrl: 'Invalid URL' } }, settings: { panel: 'Settings panel', labels: { directory: 'Directory', original: 'Keep original name', randomizeUnknown: 'Replace unknown filenames', filename: 'Show file name when finished downloading', randomLength: 'Random file name length', autoAddNum: 'Add (n) at the end of the file names automatically' }, help: { original: 'Save files with original file name instead of new random one', randomizeUnknown: 'When keeping original file names, randomize if the file name is "unknown".', filename: 'Whether to show file name on ending or not', autoAddNum: 'When saving a file with the same name of another, add (n) to the end of the file name.' }, protip: { label: 'Protip:', tip: 'Saved files get a random base64 name. Only 4 chars allow ~17 million different file names (64^4).' } } }; } } getAuthor () { return "Nirewen" } getName () { return "Quicksave" } getDescription() { return this.local.description} getVersion () { return "0.3.0" } start () { let self = this; $('#zeresLibraryScript').remove(); $('head').append($("<script type='text/javascript' id='zeresLibraryScript' src='https://rauenzi.github.io/BetterDiscordAddons/Plugins/PluginLibrary.js'>")); if (typeof window.ZeresLibrary !== "undefined") this.initialize(); else $('#zeresLibraryScript').on("load", () => self.initialize()); } initialize() { BdApi.injectCSS(this.getName(), this.css.modals); BdApi.injectCSS(`${this.getName()}-style`, this.css.thumb); PluginUtilities.checkForUpdate(this.getName(), this.getVersion(), "https://raw.githubusercontent.com/nirewen/Quicksave/master/Quicksave.plugin.js"); PluginUtilities.showToast(PluginUtilities.formatString(this.local.startMessage, {pluginName: this.getName(), version: this.getVersion()})); this.initialized = true; this.loadSettings(); this.injectThumbIcons(); } stop () { BdApi.clearCSS(this.getName()); this.initialized = false; } load () {BdApi.injectCSS(`${this.getName()}-inputs`, this.css.input)} unload() {BdApi.clearCSS(`${this.getName()}-inputs`)} accessSync(dir) { let fs = require('fs'); try { fs.accessSync(dir, fs.F_OK); return true; } catch (e) { return false; } } closeModal(modal) { modal.addClass('closing'); setTimeout(() => modal.remove(), 100); } openModal(modal, type, url) { $('#app-mount').find('[class*=theme-]').last().append(modal); this.bindEvents(modal, type, url); } bindEvents(modal, type, url) { let self = this; switch (type) { case 'filenameChoose': { let filetype = '.' + url.split('.').slice(-1)[0].split('?')[0]; modal.find('.hint').html(filetype); modal.find('.footer .button').click(e => self.closeModal(modal)); modal.find('.footer .button-primary').click(e => self.saveCurrentFile(url, modal.find('.filename').val())); modal.find('.filename') .on("input", e => modal.find('.hint').html(modal.find('.filename').val() + filetype)) .on("keyup", e => { let code = e.keyCode || e.which; if (code == 13) { e.preventDefault(); self.saveCurrentFile(url, modal.find('.filename').val()); self.closeModal(modal); } }) .focus(); } case 'error': { modal.find('button.cancel').click(e => self.closeModal(modal)); modal.find('button.overwrite').click(e => self.saveCurrentFile(url, modal.find('.already_exists .file-name').text(), true)); modal.find('button.gen-random').click(e => self.saveCurrentFile(url, this.randomFilename64(this.settings.fnLength))); modal.find('button.choose-new').click(e => self.openModal($(PluginUtilities.formatString(self.modals.name, { insertFilename: this.local.modals.filenameChoose.insertFilename, cancel: this.local.modals.generalButtons.cancel, save: this.local.modals.generalButtons.save })), 'filenameChoose', url)); modal.find('.button').click(e => self.closeModal(modal)); } } } observer(e) { if (!e.addedNodes.length || e.addedNodes.length == 0 || !(e.addedNodes[0] instanceof Element) || !this.initialized) return; let fs = require('fs'), elem = $(e.addedNodes[0]), self = this; if (elem.hasClass('backdrop-1wrmKB')) { let elem = $('.modal-1UGdnR .downloadLink-1ywL9o'); if (!elem) return; fs.access(this.settings.directory, fs.W_OK, err => { let button = $('<a id="qs_button" class="anchor-3Z-8Bb downloadLink-1ywL9o size14-3iUx6q weightMedium-2iZe9B"></a>'); if (err) button.html(this.local.invalidLocation); else { button.html(this.local.quicksave); $(document).on("keydown.qs", e => { if (e.shiftKey) button.html(`${this.local.quicksave} ${this.local.as}...`); }).on('keyup.qs', e => button.html(this.local.quicksave)); button.click(e => { button.html(self.local.quicksave); let filePath = null; let videoEl = $('.modal-1UGdnR .imageWrapper-2p5ogY video')[0]; if (videoEl) filePath = videoEl.attributes['src'].nodeValue; else filePath = $('.modal-1UGdnR .inner-1JeGVc').find('a').filter('[href^="http"]')[0].attributes['href'].nodeValue; if (e.shiftKey) self.openModal($(PluginUtilities.formatString(self.modals.name, { insertFilename: this.local.modals.filenameChoose.insertFilename, cancel: this.local.modals.generalButtons.cancel, save: this.local.modals.generalButtons.save })), 'filenameChoose', filePath); else self.saveCurrentFile(filePath); }); } elem.after(button); }); } if (elem.hasClass('contextMenu-HLZMGh')) { let link = ReactUtilities.getReactProperty(elem[0], "return.memoizedProps.attachment.url") || ReactUtilities.getReactProperty(elem[0], "return.memoizedProps.src"), item = $(`<div class="item-1Yvehc qs-item"><span>${this.local.quicksave}</span><div class="hint-22uc-R"></div></div>`); if (link) { $(document) .on("keydown.qs", e => { if (e.shiftKey) item.find('span').html(`${this.local.quicksave} ${this.local.as}...`); }) .on('keyup.qs', e => item.html(this.local.quicksave)); item .click(e => { $(document).off('keyup.qs').off('keydown.qs'); item.find('span').html(self.local.quicksave); $(elem[0]).hide(); if (e.shiftKey) { self.openModal($(PluginUtilities.formatString(self.modals.name, { insertFilename: this.local.modals.filenameChoose.insertFilename, cancel: this.local.modals.generalButtons.cancel, save: this.local.modals.generalButtons.save })), 'filenameChoose', link); } else self.saveCurrentFile(link); }); $(elem[0]).prepend(item); } } if (elem.find('.downloadButton-23tKQp').length) { let anchor = elem.find('.downloadButton-23tKQp').parent(), link = ReactUtilities.getReactProperty(anchor[0], 'memoizedProps.href'); anchor .on('click.qs', e => { e.preventDefault(); e.stopPropagation(); tooltip.tooltip.remove(); if (e.shiftKey) { self.openModal($(PluginUtilities.formatString(self.modals.name, { insertFilename: this.local.modals.filenameChoose.insertFilename, cancel: this.local.modals.generalButtons.cancel, save: this.local.modals.generalButtons.save })), 'filenameChoose', link); } else self.saveCurrentFile(link); }); } } injectThumbIcons() { var fs = require('fs'); let list = document.querySelectorAll("img"); for (let i = 0; i < list.length; i++) { let elem = list[i].parentElement; //console.log(elem); if( !elem.href || !elem.classList.contains('imageWrapper-2p5ogY') || elem.querySelector('.thumbQuicksave') ) continue; let div = document.createElement('div'); div.innerHTML = "Save"; div.className = "thumbQuicksave"; this.loadSettings(); fs.access(this.settings.directory, fs.W_OK, (err) => { if (err) div.innerHTML = "Dir Error"; else div.onclick = (e) => { // Prevent parent from opening the image e.stopPropagation(); e.preventDefault(); this.saveThumbImage(e); }; // appendChild but as the first child elem.insertAdjacentElement('afterbegin', div); }); } // Originally this code was in mutationobserver, but that wasn't reliable. // Now we use this timeout loop with global img search. Not optimal but // works very well (and maybe even better perfomance wise?) this.injectionTimeout = setTimeout(this.injectThumbIcons.bind(this), 2000); } saveSettings() { PluginUtilities.saveSettings(this.getName(), this.settings); } loadSettings() { this.settings = PluginUtilities.loadSettings(this.getName(), this.defaultSettings); } getSettingsPanel() { let panel = $("<form>").addClass("form").css("width", "100%"); if (this.initialized) this.generateSettings(panel); return panel[0]; } generateSettings(panel) { new PluginSettings.ControlGroup(this.local.settings.panel, () => this.saveSettings(), {shown: true}).appendTo(panel).append( new PluginSettings.Textbox(this.local.settings.labels.directory, '', this.settings.directory, 'none', text => { text.endsWith('/') ? this.settings.directory = text : this.settings.directory = text + '/'; }, { width: '400px', class: 'quicksave input' }), new PluginSettings.Checkbox(this.local.settings.labels.original, this.local.settings.help.original, this.settings.norandom, checked => { this.settings.norandom = checked; }), new PluginSettings.Checkbox(this.local.settings.labels.randomizeUnknown, this.local.settings.help.randomizeUnknown, this.settings.randomizeUnknown, checked => { this.settings.randomizeUnknown = checked; }), new PluginSettings.Checkbox(this.local.settings.labels.filename, this.local.settings.help.filename, this.settings.showfn, checked => { this.settings.showfn = checked; }), new PluginSettings.SettingField(this.local.settings.labels.randomLength, '', {type: 'number', value: `${this.settings.fnLength}`, class: 'quicksave input', min: '1'}, number => { this.settings.fnLength = number; }), new PluginSettings.Checkbox(this.local.settings.labels.autoAddNum, this.local.settings.help.autoAddNum, this.settings.addnum, checked => { this.settings.addnum = checked; }), $(`<div class='protip-12obwm inline-136HKr'> <div class='pro-1T8RK7 small-29zrCQ size12-3R0845 height16-2Lv3qA statusGreen-pvYWjA weightBold-2yjlgw'>${this.local.settings.protip.label}</div> <div class='tip-2ab612 primary-jw0I4K'>${this.local.settings.protip.tip}</div> </div>`), $(`<button type="button" class="button-38aScr lookOutlined-3sRXeN colorRed-1TFJan sizeMedium-1AC_Sl grow-q77ONN" style='margin: 10px 0; float: right;'><div class="contents-18-Yxp">${this.local.reset}</div></button>`) .click(() => { this.settings = this.defaultSettings; this.saveSettings(); panel.empty(); this.generateSettings(panel); }) ); } addNumber(filename, type, i = 0) { let temp = filename + (i > 0 ? ` (${i})` : ''); if (this.accessSync(this.settings.directory + temp + type)) return this.addNumber(filename, type, ++i); return temp; } randomFilename64(length) { let name = ''; while(length--) name += 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_-'[(Math.random() * 64 | 0)]; return name; } saveCurrentFile(url, filename, overwrite = false) { if (url == '') { PluginUtilities.showToast(this.local.modals.error.invalidUrl, {type: 'error'}); return; } let button = $('#qs_button'), fs = require('fs'), dir = this.settings.directory, net = (url.split('//')[0] == 'https:') ? require('https') : require('http'); if (/:large$/.test(url)) url = url.replace(/:large$/, ''); // Get the last instance of something that looks like a valid filename, the last instance of anything usable at all let fullFilename = /^\w+:\/\/[^\/]+\/(?:.*?\/)*?([^?=\/\\]+\.\w{3,}(?!.*\.)|[\w-\.]+(?=$|\/mp4))/.exec(url)[1]; // If the URL is so bizarre that nothing matches at all, just give it a random name if (!fullFilename) fullFilename = this.randomFilename64(this.settings.fnLength); // If it's a virtualized URL with no valid extension, best we can do is make one up and let the OS (attempt to) handle the rest. let dotIndex = fullFilename.indexOf('.'); if (dotIndex == -1 || fullFilename.length - dotIndex > 5) { // If we don't have a dot, or we do but it's obviously not an extension if (url.endsWith('/mp4')) fullFilename += '.mp4'; else fullFilename += '.jpg'; } if (!filename && this.settings.norandom) filename = fullFilename.substring(0,fullFilename.lastIndexOf('.')); if ((!filename && !overwrite && !this.settings.addnum) || (this.settings.randomizeUnknown && /^(small|medium|large|image|viewimage|unknown)$/.test(filename))) filename = this.randomFilename64(this.settings.fnLength); let filetype = '.' + fullFilename.split('.').slice(-1)[0], tries = 50; if (this.settings.addnum) filename = this.addNumber(filename, filetype); if (this.accessSync(dir + filename + filetype) && !overwrite && !this.settings.addnum) { return this.openModal($(PluginUtilities.formatString(this.modals.error, { alreadyExists: PluginUtilities.formatString(this.local.modals.error.alreadyExists, {filename, filetype}), question: this.local.modals.error.question, cancel: this.local.modals.generalButtons.cancel, chooseNew: this.local.modals.error.chooseNew, overwrite: this.local.modals.error.overwrite, genRandom: this.local.modals.error.genRandom })), 'error', url); } button.html(this.local.downloading); while (this.accessSync(dir + filename + filetype) && tries-- && !overwrite && !this.settings.addnum && !this.settings.norandom) filename = this.randomFilename64(this.settings.fnLength); if (tries == -1) return PluginUtilities.showToast(this.local.noFreeName, {type: 'error'}); filename += filetype; let dest = dir + filename, file = fs.createWriteStream(dest), self = this; net.get(url, res => { res.pipe(file); file.on('finish', () => { button.html(self.local.quicksave); PluginUtilities.showToast(self.local.finished, {type: 'success'}); if (self.settings.showfn) PluginUtilities.showToast(PluginUtilities.formatString(self.local.filename, {filename}), {type: 'info'}); file.close(); }); }).on('error', err => { fs.unlink(dest); PluginUtilities.showToast(err.message, {type: 'error'}); file.close(); }); } saveThumbImage(e){ // Reimplementation of pull #2, icon in thumbnails var button = e.srcElement; var plugin = BdApi.getPlugin('Quicksave'); var url = button.parentElement.href; if(!url) { button.innerHTML = "Error"; console.error("Couldn't extract url!"); return; } button.innerHTML = "Wait"; var name = url.split('/')[6]; //console.log(name); this.saveCurrentFile(url); button.innerHTML = "Saved!"; } get defaultSettings() { return { directory: 'none', norandom: false, randomizeUnknown: true, fnLength: 4, showfn: true, addnum: false }; } get modals() { return { name: "<div id='quicksave-modal-wrapper'>" + "<div class='callout-backdrop backdrop-1wrmKB'></div>" + "<div class='modal-1UGdnR' style='opacity: 1; transform: scale(1) translateZ(0px);'>" + "<div class='modal-body inner-1JeGVc'>" + "<div class='comment'>" + "<div class='label'>" + "<span>${insertFilename}:</span>" + "</div>" + "<div class='inner'>" + "<input class='filename' maxlength='50'>" + "<div class='hint'></div>" + "</div>" + "</div>" + "<div class='footer'>" + "<button type='button' class='button cancel'>" + "<span>${cancel}</span>" + "</button>" + "<button type='button' class='button button-primary save'>" + "<span>${save}</span>" + "</button>" + "</div>" + "</div>" + "</div>" + "</div>", error: '<div id="quicksave-modal-wrapper">' + '<div class="callout-backdrop backdrop-1wrmKB"></div>' + '<div class="modal-1UGdnR" style="opacity: 1; transform: scale(1) translateZ(0px);">' + '<div class="inner-1JeGVc">' + '<form class="modal-3HD5ck container-SaXBYZ">' + '<div class="flex-1xMQg5 flex-1O1GKY horizontal-1ae9ci horizontal-2EEEnY flex-1O1GKY directionRow-3v3tfG justifyStart-2NDFzi alignCenter-1dQNNs noWrap-3jynv6 header-1R_AjF title" style="flex: 0 0 auto;">' + '<h4 class="h4-AQvcAz title-3sZWYQ size16-14cGz5 height20-mO2eIN weightSemiBold-NJexzi defaultColor-1_ajX0 header-3OkTu9 already_exists">' + '${alreadyExists}</h4>' + '</div>' + '<div class="scrollerWrap-2lJEkd content-2BXhLs scrollerThemed-2oenus themeGhostHairline-DBD-2d">' + '<div class="scroller-2FKFPG inner-3wn6Q5 content-KhOrDM">' + '<div class="spacing-2P-ODW marginBottom20-32qID7 medium-zmzTW- size16-14cGz5 height20-mO2eIN primary-jw0I4K">' + '${question}</div>' + '</div>' + '</div>' + '<div class="flex-1xMQg5 flex-1O1GKY horizontalReverse-2eTKWD horizontalReverse-3tRjY7 flex-1O1GKY directionRowReverse-m8IjIq justifyStart-2NDFzi alignStretch-DpGPf3 noWrap-3jynv6 footer-2yfCgX" style="flex: 0 0 auto;">' + '<button type="button" class="button choose-new">' + '<div class="contentsDefault-nt2Ym5 contents-18-Yxp contentsFilled-3M8HCx contents-18-Yxp">${chooseNew}</div>' + '</button>' + '<button type="button" class="button gen-random">' + '<div class="contentsDefault-nt2Ym5 contents-18-Yxp contentsFilled-3M8HCx contents-18-Yxp">${genRandom}</div>' + '</button>' + '<button type="button" class="button red overwrite">' + '<div class="contentsDefault-nt2Ym5 contents-18-Yxp contentsFilled-3M8HCx contents-18-Yxp">${overwrite}</div>' + '</button>' + '<button type="button" class="button cancel">' + '<div class="contents-18-Yxp">${cancel}</div>' + '</button>' + '</div>' + '</form>' + '</div>' + '</div>' + '</div>' }; } get css() { return { modals: ` @keyframes quicksave-modal-wrapper { to { transform: scale(1); opacity: 1; } } @keyframes quicksave-modal-wrapper-closing { to { transform: scale(0.7); opacity: 0; } } @keyframes quicksave-backdrop { to { opacity: 0.85; } } @keyframes quicksave-backdrop-closing { to { opacity: 0; } } #quicksave-modal-wrapper .callout-backdrop { animation: quicksave-backdrop 250ms ease; animation-fill-mode: forwards; opacity: 0; background-color: rgb(0, 0, 0); transform: translateZ(0px); } #quicksave-modal-wrapper.closing .callout-backdrop { animation: quicksave-backdrop-closing 100ms linear; animation-fill-mode: forwards; animation-delay: 50ms; opacity: 0.85; } #quicksave-modal-wrapper.closing .modal-body, #quicksave-modal-wrapper.closing .container-SaXBYZ { animation: quicksave-modal-wrapper-closing 100ms cubic-bezier(0.19, 1, 0.22, 1); animation-fill-mode: forwards; opacity: 1; transform: scale(1); } #quicksave-modal-wrapper .label { font-size: 12px; font-weight: 500; text-transform: uppercase; } #quicksave-modal-wrapper .hint { background-color: transparent; color: #dadddf; left: 16px; line-height: 52px; position: absolute; top: 0; } #quicksave-modal-wrapper .comment { margin: 15px 18px 10px 18px; } #quicksave-modal-wrapper .filename { -webkit-box-flex: 1; background-color: transparent; border: none; color: #fff; flex: 1; line-height: 52px; margin-right: 16px; padding: 0; z-index: 1; } #quicksave-modal-wrapper .filename:focus { outline: none; } #quicksave-modal-wrapper .inner, #quicksave-modal-wrapper .hint, #quicksave-modal-wrapper .filename { font-family: Whitney,Helvetica Neue,Helvetica,Arial,sans-serif; font-size: 14px; font-weight: 300; letter-spacing: .04em; white-space: pre; } #quicksave-modal-wrapper .inner { -webkit-box-align: center; -webkit-box-direction: normal; -webkit-box-orient: horizontal; align-items: center; border: 1px solid rgba(0,0,0,.2); background-color: rgba(36,39,43,.2); border-radius: 3px; display: flex; flex-direction: row; height: 52px; margin: 13px 0; padding: 0 16px; position: relative; } #quicksave-modal-wrapper .footer { -webkit-box-direction: normal; -webkit-box-orient: horizontal; -webkit-box-pack: end; background-color: #5b6dae; border-radius: 0 0 5px 5px; display: -webkit-box; display: -ms-flexbox; display: flex; flex-direction: row; justify-content: flex-end; padding: 10px; } #quicksave-modal-wrapper .button { margin: 0 3px; background-color: #5b6dae; height: 36px; min-width: 84px; padding: 3px !important; } #quicksave-modal-wrapper .button.cancel { background-color: transparent; color: #fff; } #quicksave-modal-wrapper .button.red { background-color: #f04747; } #quicksave-modal-wrapper .button-primary { background-color: #fff; color: #5b6dae; transition: opacity .2s ease-in-out; } #quicksave-modal-wrapper .modal-body, #quicksave-modal-wrapper .container-SaXBYZ { animation: quicksave-modal-wrapper 250ms cubic-bezier(0.175, 0.885, 0.32, 1.275); animation-fill-mode: forwards; transform: scale(0.7); transform-origin: 50% 50%; } #quicksave-modal-wrapper .modal-body { color: #fff; margin: 0; opacity: 0; -webkit-box-direction: normal; -webkit-box-orient: vertical; -webkit-filter: blur(0); -webkit-perspective: 1000; background-color: #7289da; border-radius: 5px; display: -webkit-box; display: -ms-flexbox; display: flex; filter: blur(0); flex-direction: column; width: 520px; } #quicksave-modal-wrapper { z-index: 1001; }`, input: ` .quicksave.input { -webkit-box-flex: 1; background-color: transparent; border: none; color: #fff; flex: 1; line-height: 52px; padding: 0; z-index: 1; -webkit-box-align: center; -webkit-box-direction: normal; -webkit-box-orient: horizontal; align-items: center; border: 1px solid rgba(0,0,0,.2); background-color: rgba(0,0,0,0.3); border-radius: 3px; display: flex; flex-direction: row; height: 40px; padding: 0 16px; position: relative; }`, thumb: ` .thumbQuicksave { z-index: 9000!important; background-color: rgba(51, 51, 51, .8); position: absolute; display: block; padding: 3px 9px; margin: 5px; border-radius: 3px; font-family: inherit; color: #FFF; font-weight: 500; font-size: 14px; opacity: 0; } .imageWrapper-2p5ogY:hover .thumbQuicksave { opacity: 0.8; } .thumbQuicksave:hover { opacity: 1 !important; } #qs_button { padding-left: 10px; }` }; } }
47.039362
254
0.472737
8d04ce0bd755e23961a85bb8a9d930d21d504761
5,380
js
JavaScript
opencti-platform/opencti-graphql/src/domain/workspace.js
thanapir21/opencti
97bc3312686236f71aec4056b2b8aa65ef731b59
[ "Apache-2.0" ]
1
2020-10-17T19:28:01.000Z
2020-10-17T19:28:01.000Z
opencti-platform/opencti-graphql/src/domain/workspace.js
thanapir21/opencti
97bc3312686236f71aec4056b2b8aa65ef731b59
[ "Apache-2.0" ]
null
null
null
opencti-platform/opencti-graphql/src/domain/workspace.js
thanapir21/opencti
97bc3312686236f71aec4056b2b8aa65ef731b59
[ "Apache-2.0" ]
null
null
null
import { assoc, concat, map, pipe } from 'ramda'; import { delEditContext, notify, setEditContext } from '../database/redis'; import { createEntity, createRelation, createRelations, deleteEntityById, deleteRelationsByFromAndTo, escapeString, getSingleValueNumber, listEntities, load, loadById, prepareDate, updateAttribute, } from '../database/grakn'; import { BUS_TOPICS } from '../config/conf'; import { findAll as findAllStixDomains } from './stixDomainObject'; import { FunctionalError } from '../config/errors'; import { ENTITY_TYPE_WORKSPACE } from '../schema/internalObject'; import { isStixMetaRelationship, RELATION_OBJECT } from '../schema/stixMetaRelationship'; import { isInternalRelationship } from '../schema/internalRelationship'; import { ABSTRACT_INTERNAL_RELATIONSHIP } from '../schema/general'; // region grakn fetch export const findById = (workspaceId) => { return loadById(workspaceId, ENTITY_TYPE_WORKSPACE); }; export const findAll = (args) => { return listEntities([ENTITY_TYPE_WORKSPACE], ['name', 'description'], args); }; export const ownedBy = async (workspaceId) => { const element = await load( `match $x isa User; $rel(owner:$x, so:$workspace) isa owned_by; $workspace has internal_id "${escapeString(workspaceId)}"; get;`, ['x'] ); return element && element.x; }; export const objectRefs = (workspaceId, args) => { const filter = { key: `${RELATION_OBJECT}.internal_id`, values: [workspaceId] }; const filters = concat([filter], args.filters || []); const finalArgs = pipe(assoc('filters', filters), assoc('types', ['Stix-Domain-Object']))(args); return findAllStixDomains(finalArgs); }; // endregion // region time series export const workspacesNumber = (args) => { return { count: getSingleValueNumber( `match $x isa ${ENTITY_TYPE_WORKSPACE}; ${ args.endDate ? `$x has created_at $date; $date < ${prepareDate(args.endDate)};` : '' } get; count;` ), total: getSingleValueNumber(`match $x isa ${ENTITY_TYPE_WORKSPACE}; get; count;`), }; }; // endregion // region mutations export const addWorkspace = async (user, workspace) => { const created = await createEntity(user, workspace, ENTITY_TYPE_WORKSPACE, { noLog: true, }); return notify(BUS_TOPICS[ENTITY_TYPE_WORKSPACE].ADDED_TOPIC, created, user); }; export const workspaceDelete = (user, workspaceId) => deleteEntityById(user, workspaceId, ENTITY_TYPE_WORKSPACE, { noLog: true }); export const workspaceAddRelation = async (user, workspaceId, input) => { const workspace = await loadById(workspaceId, ENTITY_TYPE_WORKSPACE); if (!workspace) { throw FunctionalError(`Cannot add the relation, ${ENTITY_TYPE_WORKSPACE} cannot be found.`); } if (!isInternalRelationship(input.relationship_type)) { throw FunctionalError(`Only ${ABSTRACT_INTERNAL_RELATIONSHIP} can be added through this method.`); } const finalInput = assoc('fromId', workspaceId, input); return createRelation(user, finalInput).then((relationData) => { notify(BUS_TOPICS[ENTITY_TYPE_WORKSPACE].EDIT_TOPIC, relationData, user); return relationData; }); }; export const workspaceAddRelations = async (user, workspaceId, input) => { const workspace = await loadById(workspaceId, ENTITY_TYPE_WORKSPACE); if (!workspace) { throw FunctionalError('Cannot add the relation, Stix-Domain-Object cannot be found.'); } if (!isInternalRelationship(input.relationship_type)) { throw FunctionalError(`Only ${ABSTRACT_INTERNAL_RELATIONSHIP} can be added through this method.`); } const finalInput = map( (n) => ({ fromId: workspaceId, toId: n, relationship_type: input.relationship_type }), input.toIds ); await createRelations(user, finalInput); return loadById(workspaceId, ENTITY_TYPE_WORKSPACE).then((entity) => notify(BUS_TOPICS[ENTITY_TYPE_WORKSPACE].EDIT_TOPIC, entity, user) ); }; export const workspaceDeleteRelation = async (user, workspaceId, toId, relationshipType) => { const workspace = await loadById(workspaceId, ENTITY_TYPE_WORKSPACE); if (!workspace) { throw FunctionalError('Cannot delete the relation, Stix-Domain-Object cannot be found.'); } if (!isStixMetaRelationship(relationshipType)) { throw FunctionalError(`Only ${ABSTRACT_INTERNAL_RELATIONSHIP} can be deleted through this method.`); } await deleteRelationsByFromAndTo(user, workspaceId, toId, relationshipType, ABSTRACT_INTERNAL_RELATIONSHIP); return notify(BUS_TOPICS[ENTITY_TYPE_WORKSPACE].EDIT_TOPIC, workspace, user); }; export const workspaceEditField = async (user, workspaceId, input) => { const workspace = await updateAttribute(user, workspaceId, ENTITY_TYPE_WORKSPACE, input, { noLog: true }); return notify(BUS_TOPICS[ENTITY_TYPE_WORKSPACE].EDIT_TOPIC, workspace, user); }; // endregion // region context export const workspaceCleanContext = (user, workspaceId) => { delEditContext(user, workspaceId); return loadById(workspaceId, ENTITY_TYPE_WORKSPACE).then((workspace) => notify(BUS_TOPICS[ENTITY_TYPE_WORKSPACE].EDIT_TOPIC, workspace, user) ); }; export const workspaceEditContext = (user, workspaceId, input) => { setEditContext(user, workspaceId, input); return loadById(workspaceId, ENTITY_TYPE_WORKSPACE).then((workspace) => notify(BUS_TOPICS[ENTITY_TYPE_WORKSPACE].EDIT_TOPIC, workspace, user) ); }; // endregion
38.156028
110
0.733271
8d04ec70ed1f00cf963838ec1104a7f70cfee1e1
469
js
JavaScript
app/javascript/components/conditions/SkipLogicFormField/guard.js
bananabrann/nemo
ed63ad2d52822aedc9e8f7d56d190675a755f789
[ "Apache-2.0" ]
35
2015-01-13T04:10:34.000Z
2018-12-21T20:06:21.000Z
app/javascript/components/conditions/SkipLogicFormField/guard.js
bananabrann/nemo
ed63ad2d52822aedc9e8f7d56d190675a755f789
[ "Apache-2.0" ]
206
2015-01-13T21:52:01.000Z
2019-01-02T15:45:53.000Z
app/javascript/components/conditions/SkipLogicFormField/guard.js
bananabrann/nemo
ed63ad2d52822aedc9e8f7d56d190675a755f789
[ "Apache-2.0" ]
38
2015-01-09T17:24:16.000Z
2018-12-21T20:06:25.000Z
import React from 'react'; import ErrorBoundary from '../../ErrorBoundary/component'; import Component from './component'; /** * Top-level error boundary so no errors can leak out from this root component. * * Intended to be generic so it can be used anywhere we have a root * React component that gets rendered by Rails. */ function Guard(props) { return ( <ErrorBoundary> <Component {...props} /> </ErrorBoundary> ); } export default Guard;
22.333333
79
0.692964
8d0529c83525f33d8dd130d5b6610456c95e9f79
256
js
JavaScript
test/app/directives/directive_with_template_and_styles.js
galkinrost/ngbuild
fe47f64c6a4844e65c2396f27ece243c64032e9d
[ "MIT" ]
1
2015-05-11T16:32:02.000Z
2015-05-11T16:32:02.000Z
test/app/directives/directive_with_template_and_styles.js
galkinrost/ngbuild
fe47f64c6a4844e65c2396f27ece243c64032e9d
[ "MIT" ]
null
null
null
test/app/directives/directive_with_template_and_styles.js
galkinrost/ngbuild
fe47f64c6a4844e65c2396f27ece243c64032e9d
[ "MIT" ]
null
null
null
angular.module('App.directivesWithTemplateAndStyles', []).directive('AppDirectiveWithTemplateAndStyles', function () { return{ templateUrl: '/app/templates/directives/template.html', styles: '/app/styles/directives/styles.css' } });
42.666667
118
0.710938
8d06e1e14c200c35fc90f1e2804bd8623814d92b
567
js
JavaScript
CI/ConsoleInputHandler.js
angelsflyinhell/dinject
87ec273a3e2d075c93beb5d34afa6302002f9bbe
[ "Apache-2.0" ]
1
2021-10-08T20:24:28.000Z
2021-10-08T20:24:28.000Z
CI/ConsoleInputHandler.js
angelsflyinhell/dinject
87ec273a3e2d075c93beb5d34afa6302002f9bbe
[ "Apache-2.0" ]
2
2021-10-08T17:56:58.000Z
2021-10-09T06:26:05.000Z
CI/ConsoleInputHandler.js
angelsflyinhell/dinject
87ec273a3e2d075c93beb5d34afa6302002f9bbe
[ "Apache-2.0" ]
null
null
null
const readline = require('readline'); const S = require("../utils/AppStatic"); const inject = require("./Injector"); function listen() { console.log(S.APP_LOGO) console.log(S.DESC) const rl = readline.createInterface(process.stdin, process.stdout); rl.setPrompt(`${S.APP_NAME}/>`); rl.prompt(); rl.on('line', function (line) { if (line.startsWith('inject')) { const args = line.split(" ") inject(args[1]) } }).on('close', function () { process.exit(0); }); } module.exports = listen
23.625
71
0.580247
8d07206f6989cd45a2e0828f763c0674170eddd4
131
js
JavaScript
packages/utils/src/get-as-array.js
limit-zero/marketing-cloud
6fff465637dab0d1b374dc416925a6970bb2f422
[ "MIT" ]
1
2020-08-25T22:27:56.000Z
2020-08-25T22:27:56.000Z
packages/utils/src/get-as-array.js
limit-zero/marketing-cloud
6fff465637dab0d1b374dc416925a6970bb2f422
[ "MIT" ]
7
2020-03-06T15:48:05.000Z
2021-09-21T07:04:11.000Z
packages/utils/src/get-as-array.js
parameter1/libraries
e1b338b53a23cb91416052902a3fcf295e4f5a81
[ "MIT" ]
null
null
null
const get = require('./get'); const asArray = require('./as-array'); module.exports = (obj, path) => asArray(get(obj, path, []));
26.2
60
0.618321
8d07785356ea5649be4bcf295d755dd435456c9f
4,598
js
JavaScript
06-build-page/index.js
IgorAblyak/HTML-builder
c50a5f0d8612c2141032088e12e45b3afce27e96
[ "MIT" ]
null
null
null
06-build-page/index.js
IgorAblyak/HTML-builder
c50a5f0d8612c2141032088e12e45b3afce27e96
[ "MIT" ]
null
null
null
06-build-page/index.js
IgorAblyak/HTML-builder
c50a5f0d8612c2141032088e12e45b3afce27e96
[ "MIT" ]
null
null
null
const path = require('path'); const fs = require('fs/promises'); const projectDirPath = path.join(__dirname, 'project-dist'); const templateFilePath = path.join(__dirname, 'template.html'); const stylesDirPath = path.join(__dirname, 'styles'); const componentsPath = path.join(__dirname, 'components'); const assetsDirPath = path.join(__dirname, 'assets'); const projectAssetsPath = path.join(projectDirPath, 'assets'); async function createDir(dirPath) { try { await fs.mkdir(dirPath, { recursive: true } ); } catch (err) { console.log('Project directory do not create!' + '\n', err); } } async function readTemplate(path) { try { const temp = await fs.readFile(path, 'utf-8'); return temp; } catch (err) { console.log ('Can not read template file!' + '\n', err); } } async function getPath(getPath, name) { try { const pathToFile = path.join(getPath, name); return pathToFile; } catch (err) { console.log ('Can not give a path!' + '\n', err); } } async function getFileHtmlPath(getPath, file) { try { const pathToFile = path.join(getPath, `${file}.html`); return pathToFile; } catch (err) { console.log ('Can not give html path!' + '\n', err); } } async function getFileCssPath(getPath, file) { try { if (path.extname(file).slice(1) !== 'css') { const pathToFile = path.join(getPath, `${file}.css`); return pathToFile; } const pathToFile = path.join(getPath, file); return pathToFile; } catch (err) { console.log ('Can not give css path!' + '\n', err); } } async function mergeStyles() { try { const arrayStyles = []; const fileList = await fs.readdir(stylesDirPath); fileList.map(async file => { const withoutPointExt = path.extname(file).slice(1); const styleFilesPath = await getFileCssPath(stylesDirPath, file); const bundleCssPath = await getFileCssPath(projectDirPath, 'style'); fs.stat(styleFilesPath).then(res => { if (res.isFile() && withoutPointExt === 'css') { fs.readFile(styleFilesPath, 'utf-8').then(res => { arrayStyles.push(res); fs.writeFile(bundleCssPath, arrayStyles.join('')); }); } }); }); } catch (err) { console.log('Oops, error!' + '\n', err); } } async function replaceTag() { try { let contentTemp = await readTemplate(templateFilePath); const tagName = contentTemp.match(/{{\w+}}/g); createDir(projectDirPath); tagName.forEach(async (item) => { const name = item.match(/\w+/g); const componentFilePath = await getFileHtmlPath(componentsPath, name); const contentComponent = await readTemplate(componentFilePath); contentTemp = contentTemp.replace(item, contentComponent); const bundleFilePath = await getFileHtmlPath(projectDirPath, 'index'); fs.writeFile(bundleFilePath, contentTemp); }); } catch (err) { console.log('Error with tags!' + '\n', err); } } async function copyProcess(projectAssetsPath, assetsPath = assetsDirPath) { try { await fs.mkdir(projectAssetsPath, { recursive: true } ); const fileList = await fs.readdir(assetsPath); fileList.map(async file => { const assetsSrcFilePath = await getPath(assetsPath, file); const assetsDestFilePath = await getPath(projectAssetsPath, file); const smthExist = await fs.stat(assetsSrcFilePath); if (smthExist.isDirectory()) { copyProcess(assetsDestFilePath, assetsSrcFilePath); } else if (smthExist.isFile()) { fs.copyFile(assetsSrcFilePath, assetsDestFilePath); } }); } catch (err) { console.log('Oops, copy error!' + '\n', err); } } async function copyAssets(assetsPath = projectAssetsPath) { try { await fs.access(projectAssetsPath) .catch(() => { console.log('Create assets!'); copyProcess(projectAssetsPath); }); const fileList = await fs.readdir(assetsPath); fileList.forEach(async file => { const assetsFilePath = await getPath(assetsPath, file); const dirExists = await fs.stat(assetsFilePath); if (dirExists.isDirectory() && fileList !== []) { copyAssets(assetsFilePath); } else if (dirExists.isFile()) fs.unlink(assetsFilePath); }); copyProcess(projectAssetsPath); } catch (err) { if (err.code == 'ENOENT') { console.log(''); } } } replaceTag(); mergeStyles(); copyAssets();
31.930556
77
0.623097
8d07e3903b80baa01b3fc68aa40695ae77ea56f4
1,536
js
JavaScript
project/js/db/7708275B2C36B180D252FC9528843D89753BCA1F.js
zzqqqzzz/WebNES
5b31fb44b3b6323cf4fe300a7050095f232de1ac
[ "MIT" ]
75
2015-01-12T23:30:35.000Z
2021-12-11T04:25:53.000Z
project/js/db/7708275B2C36B180D252FC9528843D89753BCA1F.js
zzqqqzzz/WebNES
5b31fb44b3b6323cf4fe300a7050095f232de1ac
[ "MIT" ]
3
2018-11-13T13:18:00.000Z
2021-04-22T14:59:53.000Z
project/js/db/7708275B2C36B180D252FC9528843D89753BCA1F.js
zzqqqzzz/WebNES
5b31fb44b3b6323cf4fe300a7050095f232de1ac
[ "MIT" ]
38
2016-02-24T22:21:01.000Z
2022-01-25T12:44:04.000Z
this.NesDb = this.NesDb || {}; NesDb[ '7708275B2C36B180D252FC9528843D89753BCA1F' ] = { "$": { "name": "Family Trainer 4: Jogging Race", "altname": "ファミリートレーナー④ ジョギングレース", "class": "Licensed", "subclass": "3rd-Party", "catalog": "FT-04", "publisher": "Bandai", "developer": "Human Entertainment", "region": "Japan", "players": "1", "date": "1987-05-28" }, "peripherals": [ { "device": [ { "$": { "type": "familytrainer", "name": "Family Trainer Mat" } } ] } ], "cartridge": [ { "$": { "system": "Famicom", "crc": "2F128512", "sha1": "7708275B2C36B180D252FC9528843D89753BCA1F", "dump": "ok", "dumper": "bootgod", "datedumped": "2010-07-23" }, "board": [ { "$": { "type": "BANDAI-74*161/32", "pcb": "BA-ジョギング", "mapper": "3" }, "prg": [ { "$": { "name": "BANDAI87 JG PR", "size": "32k", "crc": "7E704A14", "sha1": "4B5AF9B5622E1CEC310E8CB741DB642AC38126EF" } } ], "chr": [ { "$": { "name": "BANDAI 87 JOGC", "size": "128k", "crc": "F2DC2EFD", "sha1": "E26098C422B39B17263A51B170CF5315AAF50556" } } ], "chip": [ { "$": { "type": "74xx161" } }, { "$": { "type": "74xx32" } } ], "pad": [ { "$": { "h": "1", "v": "0" } } ] } ] } ] };
17.066667
58
0.412109
8d0900f1d269129b350393b872eb0abb84e8dca9
348
js
JavaScript
tests/index.test.js
Teaminator/standup-and-prosper-sdk.js
2a53b499f36e34f5b0a67dbd1ded65decf9ce9a4
[ "Apache-2.0" ]
4
2020-04-30T13:02:33.000Z
2021-09-16T08:00:07.000Z
tests/index.test.js
Teaminator/standup-and-prosper-sdk.js
2a53b499f36e34f5b0a67dbd1ded65decf9ce9a4
[ "Apache-2.0" ]
null
null
null
tests/index.test.js
Teaminator/standup-and-prosper-sdk.js
2a53b499f36e34f5b0a67dbd1ded65decf9ce9a4
[ "Apache-2.0" ]
3
2020-04-30T13:02:37.000Z
2021-03-12T12:21:40.000Z
const { describe, it, beforeEach, afterEach } = require('mocha'); const sinon = require('sinon'); let sandbox; beforeEach(() => { sandbox = sinon.createSandbox(); }); afterEach(() => sandbox.restore()); describe('index.js', () => { describe('Syntax', () => { it('Should be valid node', () => { require('../index'); }); }); });
21.75
65
0.563218
8d0957c2f11d4dfaeee9a55163be8d084ed01c46
52
js
JavaScript
packages/@sanity/resolver/.babelrc.js
coreyward/sanity
3033f230bcea9cb7adb84e6ccdbb3467e45c6a6b
[ "MIT" ]
3
2018-03-25T02:20:11.000Z
2021-06-15T07:30:27.000Z
packages/@sanity/resolver/.babelrc.js
coreyward/sanity
3033f230bcea9cb7adb84e6ccdbb3467e45c6a6b
[ "MIT" ]
38
2018-03-30T19:12:20.000Z
2022-03-28T07:25:07.000Z
packages/@sanity/resolver/.babelrc.js
coreyward/sanity
3033f230bcea9cb7adb84e6ccdbb3467e45c6a6b
[ "MIT" ]
1
2018-03-30T19:09:35.000Z
2018-03-30T19:09:35.000Z
module.exports = { extends: '../../../.babelrc' }
13
30
0.519231
8d0964cda004bac9bacf1b5e01cac7dd17b81c92
1,649
js
JavaScript
web/Secure/calendar/Jquery-DatePicker/jquery.datepick-en-AU.js
TVilaboa/TravelTogether
00839214594a2d5d989557039dec959f1a7b20e8
[ "Apache-2.0" ]
null
null
null
web/Secure/calendar/Jquery-DatePicker/jquery.datepick-en-AU.js
TVilaboa/TravelTogether
00839214594a2d5d989557039dec959f1a7b20e8
[ "Apache-2.0" ]
null
null
null
web/Secure/calendar/Jquery-DatePicker/jquery.datepick-en-AU.js
TVilaboa/TravelTogether
00839214594a2d5d989557039dec959f1a7b20e8
[ "Apache-2.0" ]
null
null
null
/* http://keith-wood.name/datepick.html English/Australia localisation for jQuery Datepicker. Based on en-GB. */ (function ($) { $.datepick.regionalOptions['en-AU'] = { monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'], monthNamesShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], dayNamesMin: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'], dateFormat: 'dd/mm/yyyy', firstDay: 1, renderer: $.datepick.defaultRenderer, prevText: 'Prev', prevStatus: 'Show the previous month', prevJumpText: '&#x3c;&#x3c;', prevJumpStatus: 'Show the previous year', nextText: 'Next', nextStatus: 'Show the next month', nextJumpText: '&#x3e;&#x3e;', nextJumpStatus: 'Show the next year', currentText: 'Current', currentStatus: 'Show the current month', todayText: 'Today', todayStatus: 'Show today\'s month', clearText: 'Clear', clearStatus: 'Erase the current date', closeText: 'Done', closeStatus: 'Close without change', yearStatus: 'Show a different year', monthStatus: 'Show a different month', weekText: 'Wk', weekStatus: 'Week of the year', dayStatus: 'Select DD, M d', defaultStatus: 'Select a date', isRTL: false }; $.datepick.setDefaults($.datepick.regionalOptions['en-AU']); })(jQuery);
54.966667
97
0.595512
8d09b5cc2807852974a1d9ec91a8031624d35cb0
1,640
js
JavaScript
widgets/Splash/setting/nls/tr/strings.js
I-CU/zestywab
d66f68868be1b1b449203c1c29ac7072811b13b2
[ "Apache-2.0" ]
null
null
null
widgets/Splash/setting/nls/tr/strings.js
I-CU/zestywab
d66f68868be1b1b449203c1c29ac7072811b13b2
[ "Apache-2.0" ]
null
null
null
widgets/Splash/setting/nls/tr/strings.js
I-CU/zestywab
d66f68868be1b1b449203c1c29ac7072811b13b2
[ "Apache-2.0" ]
null
null
null
define({ "instruction": "Uygulama erişilebilir olmadan önce başlangıç ekranı görüntülenir.", "defaultContent": "Buraya metin, bağlantılar ve küçük grafikler ekleyin.", "requireConfirm": "Devam etmek için onay gerekiyor", "noRequireConfirm": "Devam etmek için onay gerekmesin", "optionText": "Kullanıcının uygulama başlatılırken açılış ekranını devre dışı bırakma seçeneği.", "confirmLabel": "Onay Metinleri: ", "confirmLabelColor": "Onaylama metni rengi", "defaultConfirmText": "Yukarıdaki şartları ve koşulları kabul ediyorum", "confirmOption": "Uygulama başlatılırken her zaman için bu açılış ekranını göster", "backgroundColor": "Arkaplan Rengi", "content": "İçerik", "contentDescription": "Başlangıç ekranında görüntülenen içeriği tanımlayın.", "appearance": "Görünüm", "appearanceDescription": "Başlangıç ekranının görüntüsünü ayarlayın.", "size": "Boyut", "width": "Genişlik", "height": "Yükseklik", "custom": "Özel", "background": "Arkaplan", "colorFill": "Renk dolgusu", "imageFill": "Görüntü dolgusu", "chooseFile": "Dosya seç", "noFileChosen": "Seçili dosya yok", "transparency": "Şeffaflık", "sizeFill": "Dolgu", "sizeFit": "Uydur", "sizeStretch": "Doldurmak için uzat", "sizeCenter": "Merkez", "sizeTile": "Sıra", "buttonColor": "Düğme rengi", "buttonText": "Düğme metni", "buttonTextColor": "Düğme metni rengi", "contentAlign": "İçerik hizalama", "alignTop": "En Üst", "alignMiddle": "Orta", "maskColor": "Maske rengi", "options": "Seçenekler", "optionsDescription": "Başlangıç ekranı davranışını ayarlayın." });
41
100
0.693902
8d0a5d8c3ae3d6da9f270a7289c1c74f41f0bf19
5,440
js
JavaScript
lib/Endpoint.js
niklabh/redsmin
26d69be79bc4c50d426009830d2ae7d46a91e8ed
[ "MIT" ]
null
null
null
lib/Endpoint.js
niklabh/redsmin
26d69be79bc4c50d426009830d2ae7d46a91e8ed
[ "MIT" ]
null
null
null
lib/Endpoint.js
niklabh/redsmin
26d69be79bc4c50d426009830d2ae7d46a91e8ed
[ "MIT" ]
null
null
null
var env = require('./config').env , log = require('./log') , url = require('url') , _ = require('lodash') , fs = require('fs') , Backoff = require('backoff') , EventEmitter = require('events').EventEmitter , jsonPackage = JSON.parse(fs.readFileSync(__dirname + '/../package.json')); /** * Endpoint (redsmin) * @param {Function} fnWrite `callback(data)` where to write datas from the endpoint * @param {String} key Connection key * @param {Object} opts Optional parameters */ function Endpoint(fnWrite, key, opts){ _.extend(this, EventEmitter); _.bindAll(this); opts = opts || {}; if(!fnWrite || typeof fnWrite !== 'function'){ throw new Error("Endpoint `fnWrite` parameter is not defined or is not a function"); } if(!key){ throw new Error("Endpoint `key` parameter is not defined"); } this.uri = null; this.key = key; this.hostname = null; this.port = null; this.auth = opts.auth; this.handshaken = false; this.connected = false; this.socket = null; this.fnWrite = fnWrite; this.handshakenBackoff = new Backoff({ initialTimeout: opts.initialTimeout || 500, maxTimeout: opts.maxTimeout || 10000 }); this.handshakenBackoff.on('backoff', this.reconnect); this.reconnectBackoff = new Backoff({ initialTimeout: opts.initialTimeout || 500, maxTimeout: opts.maxTimeout || 10000 }); this.reconnectBackoff.on('backoff', this.reconnect); } Endpoint.tls = require('tls'); Endpoint.log = log; Endpoint.process = process; _.extend(Endpoint.prototype, EventEmitter.prototype, { connect:function(port, hostname){ if(!port){ throw new Error("connect(port, hostname) port must be defined") } if(!hostname){ throw new Error("connect(port, hostname) hostname must be defined") } this.port = port; // Standard TLS port for "IMAP" this.hostname = hostname; this.uri = this.hostname + ':' + this.port; this._connect(); }, _connect:function(){ if(this.socket){ this.socket.removeAllListeners(); this.socket.destroy(); } Endpoint.log.info("[Endpoint] Connecting to "+this.uri+"..."); this.socket = Endpoint.tls.connect(this.port, this.hostname, this.onConnected); this.socket.on('data', this.onData); this.socket.on('close', this.onClose); this.socket.on('error', this.onError); this.socket.setTimeout(0, function(){ console.log('timeout'); }); this.socket.setNoDelay(true); this.socket.setKeepAlive(true, 30); }, reconnect:function(number, delay){ if(this.connected){ // If, between the .backoff() call and the call to reconnect // we are already back online, don't do anything else return this.reconnectBackoff.reset(); } Endpoint.log.info("[Endpoint] Reconnecting..."); this._connect(); }, onConnected: function(){ Endpoint.log.debug("[Endpoint] Connected"); this.connected = true; this.reconnectBackoff.reset(); if(!this.handshaken){ this._sendHandshake(); } this.emit('connect'); }, _sendHandshake: function(){ if(this.handshaken){return this.handshakenBackoff.reset();} Endpoint.log.debug("[Endpoint] Handshaking..."); this.socket.write(JSON.stringify({version:jsonPackage.version, key: this.key, auth: this.auth})); }, onData:function(data){ if(!this.handshaken){ data = (data || '').toString(); var handshake = data; if(data.indexOf('*') === -1){ data = null; } else { // in case of multiple messages after the handshake var idx = handshake.indexOf('*'); handshake = data.substr(0, idx); data = data.substr(idx); } try{ var json = JSON.parse(handshake); if(json && json.error){ Endpoint.log.error('[Endpoint] Handshake failed: ' + json.error); Endpoint.log.error('Edit configuration file with `redsmin set_key`, see http://bit.ly/YAIeAM'); Endpoint.log.error('Exiting...'); Endpoint.process.exit(1); return; } } catch(err){ Endpoint.log.error('[Endpoint] Bad handshake response:' + handshake); Endpoint.log.error(err); this.handshakenBackoff.reset(); return this.handshakenBackoff.backoff(); } Endpoint.log.debug('[Endpoint] Handshake succeeded'); this.handshaken = true; if(!data){return;} } this.fnWrite(data); }, /** * Forward data from redis to the endpoint */ write: function(data){ this.socket.write(data); }, /** * If the connection to redsmin just closed, try to reconnect * @param {Error} err */ onClose: function(sourceWasAnError){ Endpoint.log.error("[Endpoint] Connection closed " + (sourceWasAnError ? 'because of an error' : '')); this.handshakenBackoff.reset(); this.reconnectBackoff.backoff(); this.connected = false; this.handshaken = false; this.emit('close', sourceWasAnError); }, onError: function(err){ console.log('onerror', err); Endpoint.log.error('[Endpoint] Error ' + (err ? err.message : '')); this.socket.destroy(); // End the socket try{ this.onClose(err ? err.message : ''); }catch(err){ console.error('err::onError', err); } } }); module.exports = Endpoint;
27.064677
106
0.61636
8d0b1fe5d9be17ff13d9b04ccd2f5c8da2fb41b1
433
js
JavaScript
test/assertions/selected-outcome.js
justinbarry/augur-copy
acbb98462b8e1b4c60dc097c6addd87b1bd06be0
[ "AAL" ]
null
null
null
test/assertions/selected-outcome.js
justinbarry/augur-copy
acbb98462b8e1b4c60dc097c6addd87b1bd06be0
[ "AAL" ]
1
2018-05-09T22:04:35.000Z
2018-05-09T22:04:35.000Z
test/assertions/selected-outcome.js
justinbarry/augur-copy
acbb98462b8e1b4c60dc097c6addd87b1bd06be0
[ "AAL" ]
null
null
null
import { assert } from 'chai' export default function (selectedOutcome) { assert.isObject(selectedOutcome, `selectedOutcome isn't an object`) assert.isDefined(selectedOutcome.selectedOutcomeId, `selectedOutcome isn't defined`) assert.isFunction(selectedOutcome.updateSelectedOutcome, `updateSelectedOutcome isn't a function`) assert.isDefined(selectedOutcome.updateSelectedOutcome, `updateSelectedOutcome isn't defined`) }
43.3
100
0.817552
8d0b4f9a5aca831a7b20cb70b2f47950ae4f63c8
4,638
js
JavaScript
special_symbols.js
anseal/it.is.js
e70f37181449fd5d0183faaa142c95fa17a2bad7
[ "MIT" ]
null
null
null
special_symbols.js
anseal/it.is.js
e70f37181449fd5d0183faaa142c95fa17a2bad7
[ "MIT" ]
1
2020-11-29T13:13:02.000Z
2020-11-29T13:13:02.000Z
special_symbols.js
anseal/it.is.js
e70f37181449fd5d0183faaa142c95fa17a2bad7
[ "MIT" ]
null
null
null
export const hidden_symbols = {} // needed for make_live_value() in tests export const GeneratorFunction = Object.getPrototypeOf(function*(){}).constructor hidden_symbols. GeneratorFunction = [ GeneratorFunction , "Object.getPrototypeOf(function*(){}).constructor" ] export const Generator = Object.getPrototypeOf(function*(){}()) hidden_symbols. Generator = [ Generator , "Object.getPrototypeOf(function*(){}())" ] export const AsyncFunction = Object.getPrototypeOf(async function(){}).constructor hidden_symbols. AsyncFunction = [ AsyncFunction , "Object.getPrototypeOf(async function(){}).constructor" ] export const AsyncGeneratorFunction = Object.getPrototypeOf(async function*() {}).constructor hidden_symbols. AsyncGeneratorFunction = [ AsyncGeneratorFunction, "Object.getPrototypeOf(async function*() {}).constructor" ] export const AsyncGenerator = Object.getPrototypeOf(async function*() {}()) hidden_symbols. AsyncGenerator = [ AsyncGenerator , "Object.getPrototypeOf(async function*() {}())" ] export const TAG = Object.prototype.toString export function base_TAG(v) { let proto1 = Object.getPrototypeOf(v) if( proto1 === null ) return "[object Object]" // this `if` works only for `v === Object.create(null)` // constant is faster than `Object.prototype.toString.call(v)` // and required for `v === Object.create(null); v[Symbol.toStringTag] = "something"` let proto2 = Object.getPrototypeOf(proto1) if( proto2 === null ) return TAG.call(proto1) let proto3 = null while(true) { proto3 = Object.getPrototypeOf(proto2) if( proto3 === null ) return TAG.call(proto1) proto1 = proto2 proto2 = proto3 } } // Returns "[object Object]" for cases like `Object.create(...Object.create(new Number())...)`. Not sure if it is useful export function pure_TAG(v) { let proto1 = Object.getPrototypeOf(v) if( proto1 === null ) return "[object Object]" let proto2 = Object.getPrototypeOf(proto1) if( proto2 === null ) return TAG.call(proto1) let proto3 = null let proto_chain_length = 3 while(true) { proto3 = Object.getPrototypeOf(proto2) if( proto3 === null ) { if( proto_chain_length >= 4 ) return "[object Object]" // TODO: get rid off while() return TAG.call(proto1) } proto1 = proto2 proto2 = proto3 ++proto_chain_length } } export function infinite(v) { if( typeof v === "number" ) return (v === -Infinity || v === Infinity) return v !== null && typeof v === "object" && ((v=v.valueOf?.()) === -Infinity || v === Infinity) } export function no_own_props(v) { for(const key in v) if( v.hasOwnProperty(key) ) return false return true } export function no_props(v) { for(const key in v) return false return true } export function reflect_constructable(v) { try { Reflect.construct(String, [], v) return true } catch (e) { return false } } export function proxy_constructable(v) { try { new (new Proxy(v, { construct() { return {} } })) return true } catch(e) { return false } } export const TypedArraysTags = { '[object Float32Array]' : true, '[object Float64Array]' : true, '[object Int8Array]' : true, '[object Uint8Array]' : true, '[object Uint8ClampedArray]' : true, '[object Int16Array]' : true, '[object Uint16Array]' : true, '[object Int32Array]' : true, '[object Uint32Array]' : true, '[object Float32Array]' : true, '[object Float64Array]' : true, '[object BigInt64Array]' : true, '[object BigUint64Array]' : true, } export const PrimitivesTags = { "[object Number]" : true, "[object String]" : true, "[object Boolean]" : true, "[object BigInt]" : true, "[object Symbol]" : true, } export const PrimitivesTypeOf = { // quite useless - slower than `typeof || typeof || ...` "undefined" : true, "number" : true, "boolean" : true, "string" : true, "symbol" : true, "bigint" : true, } // TODO: looks like `Set().has()` slower than other options export const TypedArraysTagsSet = new Set(Object.keys(TypedArraysTags)) export const PrimitivesTagsSet = new Set(Object.keys(PrimitivesTags)) export const PrimitivesTypeOfSet = new Set(Object.keys(PrimitivesTypeOf))
35.953488
126
0.614273
8d0b6c4cf2449b6ff7981fe1606958d85a522ff8
12,925
js
JavaScript
packages/react-dom/src/events/DOMLegacyEventPluginSystem.js
anton-treez/react
a3bf6688121e69cfb377c25f362000b33d7984cd
[ "MIT" ]
4
2020-03-17T22:06:26.000Z
2020-03-17T22:08:30.000Z
packages/react-dom/src/events/DOMLegacyEventPluginSystem.js
anton-treez/react
a3bf6688121e69cfb377c25f362000b33d7984cd
[ "MIT" ]
null
null
null
packages/react-dom/src/events/DOMLegacyEventPluginSystem.js
anton-treez/react
a3bf6688121e69cfb377c25f362000b33d7984cd
[ "MIT" ]
null
null
null
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type {AnyNativeEvent} from 'legacy-events/PluginModuleType'; import type {DOMTopLevelEventType} from 'legacy-events/TopLevelEventTypes'; import type {EventSystemFlags} from 'legacy-events/EventSystemFlags'; import type {Fiber} from 'react-reconciler/src/ReactFiber'; import type {PluginModule} from 'legacy-events/PluginModuleType'; import type {ReactSyntheticEvent} from 'legacy-events/ReactSyntheticEventType'; import type {TopLevelType} from 'legacy-events/TopLevelEventTypes'; import {HostRoot, HostComponent, HostText} from 'shared/ReactWorkTags'; import {IS_FIRST_ANCESTOR} from 'legacy-events/EventSystemFlags'; import {batchedEventUpdates} from 'legacy-events/ReactGenericBatching'; import {runEventsInBatch} from 'legacy-events/EventBatching'; import {plugins} from 'legacy-events/EventPluginRegistry'; import accumulateInto from 'legacy-events/accumulateInto'; import {registrationNameDependencies} from 'legacy-events/EventPluginRegistry'; import getEventTarget from './getEventTarget'; import {getClosestInstanceFromNode} from '../client/ReactDOMComponentTree'; import {getListenerMapForElement} from './DOMEventListenerMap'; import isEventSupported from './isEventSupported'; import { TOP_BLUR, TOP_CANCEL, TOP_CLOSE, TOP_FOCUS, TOP_INVALID, TOP_RESET, TOP_SCROLL, TOP_SUBMIT, getRawEventName, mediaEventTypes, } from './DOMTopLevelEventTypes'; import {addTrappedEventListener} from './ReactDOMEventListener'; /** * Summary of `DOMEventPluginSystem` event handling: * * - Top-level delegation is used to trap most native browser events. This * may only occur in the main thread and is the responsibility of * ReactDOMEventListener, which is injected and can therefore support * pluggable event sources. This is the only work that occurs in the main * thread. * * - We normalize and de-duplicate events to account for browser quirks. This * may be done in the worker thread. * * - Forward these native events (with the associated top-level type used to * trap it) to `EventPluginRegistry`, which in turn will ask plugins if they want * to extract any synthetic events. * * - The `EventPluginRegistry` will then process each event by annotating them with * "dispatches", a sequence of listeners and IDs that care about that event. * * - The `EventPluginRegistry` then dispatches the events. * * Overview of React and the event system: * * +------------+ . * | DOM | . * +------------+ . * | . * v . * +------------+ . * | ReactEvent | . * | Listener | . * +------------+ . +-----------+ * | . +--------+|SimpleEvent| * | . | |Plugin | * +-----|------+ . v +-----------+ * | | | . +--------------+ +------------+ * | +-----------.--->|PluginRegistry| | Event | * | | . | | +-----------+ | Propagators| * | ReactEvent | . | | |TapEvent | |------------| * | Emitter | . | |<---+|Plugin | |other plugin| * | | . | | +-----------+ | utilities | * | +-----------.--->| | +------------+ * | | | . +--------------+ * +-----|------+ . ^ +-----------+ * | . | |Enter/Leave| * + . +-------+|Plugin | * +-------------+ . +-----------+ * | application | . * |-------------| . * | | . * | | . * +-------------+ . * . * React Core . General Purpose Event Plugin System */ const CALLBACK_BOOKKEEPING_POOL_SIZE = 10; const callbackBookkeepingPool = []; type BookKeepingInstance = {| topLevelType: DOMTopLevelEventType | null, eventSystemFlags: EventSystemFlags, nativeEvent: AnyNativeEvent | null, targetInst: Fiber | null, ancestors: Array<Fiber | null>, |}; function releaseTopLevelCallbackBookKeeping( instance: BookKeepingInstance, ): void { instance.topLevelType = null; instance.nativeEvent = null; instance.targetInst = null; instance.ancestors.length = 0; if (callbackBookkeepingPool.length < CALLBACK_BOOKKEEPING_POOL_SIZE) { callbackBookkeepingPool.push(instance); } } // Used to store ancestor hierarchy in top level callback function getTopLevelCallbackBookKeeping( topLevelType: DOMTopLevelEventType, nativeEvent: AnyNativeEvent, targetInst: Fiber | null, eventSystemFlags: EventSystemFlags, ): BookKeepingInstance { if (callbackBookkeepingPool.length) { const instance = callbackBookkeepingPool.pop(); instance.topLevelType = topLevelType; instance.eventSystemFlags = eventSystemFlags; instance.nativeEvent = nativeEvent; instance.targetInst = targetInst; return instance; } return { topLevelType, eventSystemFlags, nativeEvent, targetInst, ancestors: [], }; } /** * Find the deepest React component completely containing the root of the * passed-in instance (for use when entire React trees are nested within each * other). If React trees are not nested, returns null. */ function findRootContainerNode(inst) { if (inst.tag === HostRoot) { return inst.stateNode.containerInfo; } // TODO: It may be a good idea to cache this to prevent unnecessary DOM // traversal, but caching is difficult to do correctly without using a // mutation observer to listen for all DOM changes. while (inst.return) { inst = inst.return; } if (inst.tag !== HostRoot) { // This can happen if we're in a detached tree. return null; } return inst.stateNode.containerInfo; } /** * Allows registered plugins an opportunity to extract events from top-level * native browser events. * * @return {*} An accumulation of synthetic events. * @internal */ function extractPluginEvents( topLevelType: TopLevelType, targetInst: null | Fiber, nativeEvent: AnyNativeEvent, nativeEventTarget: null | EventTarget, eventSystemFlags: EventSystemFlags, ): Array<ReactSyntheticEvent> | ReactSyntheticEvent | null { let events = null; for (let i = 0; i < plugins.length; i++) { // Not every plugin in the ordering may be loaded at runtime. const possiblePlugin: PluginModule<AnyNativeEvent> = plugins[i]; if (possiblePlugin) { const extractedEvents = possiblePlugin.extractEvents( topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, ); if (extractedEvents) { events = accumulateInto(events, extractedEvents); } } } return events; } function runExtractedPluginEventsInBatch( topLevelType: TopLevelType, targetInst: null | Fiber, nativeEvent: AnyNativeEvent, nativeEventTarget: null | EventTarget, eventSystemFlags: EventSystemFlags, ) { const events = extractPluginEvents( topLevelType, targetInst, nativeEvent, nativeEventTarget, eventSystemFlags, ); runEventsInBatch(events); } function handleTopLevel(bookKeeping: BookKeepingInstance) { let targetInst = bookKeeping.targetInst; // Loop through the hierarchy, in case there's any nested components. // It's important that we build the array of ancestors before calling any // event handlers, because event handlers can modify the DOM, leading to // inconsistencies with ReactMount's node cache. See #1105. let ancestor = targetInst; do { if (!ancestor) { const ancestors = bookKeeping.ancestors; ((ancestors: any): Array<Fiber | null>).push(ancestor); break; } const root = findRootContainerNode(ancestor); if (!root) { break; } const tag = ancestor.tag; if (tag === HostComponent || tag === HostText) { bookKeeping.ancestors.push(ancestor); } ancestor = getClosestInstanceFromNode(root); } while (ancestor); for (let i = 0; i < bookKeeping.ancestors.length; i++) { targetInst = bookKeeping.ancestors[i]; const eventTarget = getEventTarget(bookKeeping.nativeEvent); const topLevelType = ((bookKeeping.topLevelType: any): DOMTopLevelEventType); const nativeEvent = ((bookKeeping.nativeEvent: any): AnyNativeEvent); let eventSystemFlags = bookKeeping.eventSystemFlags; // If this is the first ancestor, we mark it on the system flags if (i === 0) { eventSystemFlags |= IS_FIRST_ANCESTOR; } runExtractedPluginEventsInBatch( topLevelType, targetInst, nativeEvent, eventTarget, eventSystemFlags, ); } } export function dispatchEventForLegacyPluginEventSystem( topLevelType: DOMTopLevelEventType, eventSystemFlags: EventSystemFlags, nativeEvent: AnyNativeEvent, targetInst: null | Fiber, ): void { const bookKeeping = getTopLevelCallbackBookKeeping( topLevelType, nativeEvent, targetInst, eventSystemFlags, ); try { // Event queue being processed in the same cycle allows // `preventDefault`. batchedEventUpdates(handleTopLevel, bookKeeping); } finally { releaseTopLevelCallbackBookKeeping(bookKeeping); } } /** * We listen for bubbled touch events on the document object. * * Firefox v8.01 (and possibly others) exhibited strange behavior when * mounting `onmousemove` events at some node that was not the document * element. The symptoms were that if your mouse is not moving over something * contained within that mount point (for example on the background) the * top-level listeners for `onmousemove` won't be called. However, if you * register the `mousemove` on the document object, then it will of course * catch all `mousemove`s. This along with iOS quirks, justifies restricting * top-level listeners to the document object only, at least for these * movement types of events and possibly all events. * * @see http://www.quirksmode.org/blog/archives/2010/09/click_event_del.html * * Also, `keyup`/`keypress`/`keydown` do not bubble to the window on IE, but * they bubble to document. * * @param {string} registrationName Name of listener (e.g. `onClick`). * @param {object} mountAt Container where to mount the listener */ export function legacyListenToEvent( registrationName: string, mountAt: Document | Element, ): void { const listenerMap = getListenerMapForElement(mountAt); const dependencies = registrationNameDependencies[registrationName]; for (let i = 0; i < dependencies.length; i++) { const dependency = dependencies[i]; legacyListenToTopLevelEvent(dependency, mountAt, listenerMap); } } export function legacyListenToTopLevelEvent( topLevelType: DOMTopLevelEventType, mountAt: Document | Element, listenerMap: Map<DOMTopLevelEventType | string, null | (any => void)>, ): void { if (!listenerMap.has(topLevelType)) { switch (topLevelType) { case TOP_SCROLL: legacyTrapCapturedEvent(TOP_SCROLL, mountAt); break; case TOP_FOCUS: case TOP_BLUR: legacyTrapCapturedEvent(TOP_FOCUS, mountAt); legacyTrapCapturedEvent(TOP_BLUR, mountAt); // We set the flag for a single dependency later in this function, // but this ensures we mark both as attached rather than just one. listenerMap.set(TOP_BLUR, null); listenerMap.set(TOP_FOCUS, null); break; case TOP_CANCEL: case TOP_CLOSE: if (isEventSupported(getRawEventName(topLevelType))) { legacyTrapCapturedEvent(topLevelType, mountAt); } break; case TOP_INVALID: case TOP_SUBMIT: case TOP_RESET: // We listen to them on the target DOM elements. // Some of them bubble so we don't want them to fire twice. break; default: // By default, listen on the top level to all non-media events. // Media events don't bubble so adding the listener wouldn't do anything. const isMediaEvent = mediaEventTypes.indexOf(topLevelType) !== -1; if (!isMediaEvent) { legacyTrapBubbledEvent(topLevelType, mountAt); } break; } listenerMap.set(topLevelType, null); } } export function legacyTrapBubbledEvent( topLevelType: DOMTopLevelEventType, element: Document | Element, ): void { addTrappedEventListener(element, topLevelType, false); } export function legacyTrapCapturedEvent( topLevelType: DOMTopLevelEventType, element: Document | Element, ): void { addTrappedEventListener(element, topLevelType, true); }
34.013158
84
0.658182
8d0bbd5aa730a25f7174af39a696e185d0ac08c5
134
js
JavaScript
public/js/collections/LevelsCollection.js
r0mk1n/mbeditor
9961beac9a15536e55d3fc677d058f1fcc5b12ba
[ "MIT" ]
null
null
null
public/js/collections/LevelsCollection.js
r0mk1n/mbeditor
9961beac9a15536e55d3fc677d058f1fcc5b12ba
[ "MIT" ]
null
null
null
public/js/collections/LevelsCollection.js
r0mk1n/mbeditor
9961beac9a15536e55d3fc677d058f1fcc5b12ba
[ "MIT" ]
null
null
null
/** * Levels collection */ var LevelsCollection = Backbone.Collection.extend({ // model : Level, url : '/levels' });
13.4
51
0.58209
8d0c489fed8fb528698f7827ae10c946746fe3a2
1,738
js
JavaScript
packages/ember-lifeline/rollup.config.js
chriskrycho/ember-lifeline
665e196737a671a61c7ea579aa7eda6f20fda58c
[ "MIT" ]
204
2016-10-31T04:07:55.000Z
2018-03-22T22:20:13.000Z
packages/ember-lifeline/rollup.config.js
chriskrycho/ember-lifeline
665e196737a671a61c7ea579aa7eda6f20fda58c
[ "MIT" ]
57
2016-10-31T04:26:18.000Z
2018-03-24T11:46:38.000Z
packages/ember-lifeline/rollup.config.js
chriskrycho/ember-lifeline
665e196737a671a61c7ea579aa7eda6f20fda58c
[ "MIT" ]
26
2016-10-31T14:43:32.000Z
2018-03-21T17:51:55.000Z
import { join } from 'path'; import walkSync from 'walk-sync'; import babel from '@rollup/plugin-babel'; import ts from 'rollup-plugin-ts'; import { Addon } from '@embroider/addon-dev/rollup'; const addon = new Addon({ srcDir: 'src', destDir: 'dist', }); const extensions = ['.js', '.ts']; function publicEntrypoints(args) { return { name: 'addon-modules', buildStart() { for (let name of walkSync(args.srcDir, { globs: args.include, })) { this.emitFile({ type: 'chunk', id: join(args.srcDir, name), fileName: name.replace('.ts', '.js'), }); } }, }; } // The custom TS configuration here can be removed once https://github.com/embroider-build/embroider/issues/1094 is resolved. export default { // This provides defaults that work well alongside `publicEntrypoints` below. // You can augment this if you need to. // output: { ...addon.output(), entryFileNames: '[name].js' }, output: addon.output(), plugins: [ publicEntrypoints({ srcDir: 'src', include: ['**/*.ts'], }), ts({ transpiler: 'babel', browserslist: false, tsconfig: { fileName: 'tsconfig.json', hook: (resolvedConfig) => ({ ...resolvedConfig, declaration: true }), }, }), addon.dependencies(), // This babel config should *not* apply presets or compile away ES modules. // It exists only to provide development niceties for you, like automatic // template colocation. // See `babel.config.json` for the actual Babel configuration! babel({ babelHelpers: 'bundled', extensions }), // Remove leftover build artifacts when starting a new build. addon.clean(), ], };
26.738462
125
0.616226
8d0c6c4569d5cbbd88e54085e503976e783e3ea1
627
js
JavaScript
eco.js
xovel/chess
dc68049de4ac3901f3a868e29bba534838c16482
[ "MIT" ]
null
null
null
eco.js
xovel/chess
dc68049de4ac3901f3a868e29bba534838c16482
[ "MIT" ]
null
null
null
eco.js
xovel/chess
dc68049de4ac3901f3a868e29bba534838c16482
[ "MIT" ]
null
null
null
'use strict'; const fs = require('fs'); const path = require('path'); const cheerio = require('cheerio'); const wFile = require('./util/wFile'); const filePath = path.resolve('cache', `www.chessgames.com_chessecohelp.html`); const content = fs.readFileSync(filePath, 'utf8'); const $ = cheerio.load(content); const eco = {}; $('tr').each((index, item) => { const $td = $(item).find('td'); const key = $td.eq(0).text(); const name = $td.eq(1).find('b').text(); const notation = $td.eq(1).find('font').find('font').text(); eco[key] = { name, notation }; }); wFile('eco.json', JSON.stringify(eco, null, ' '));
23.222222
79
0.61882
8d0c733faa86b0af658e7aeabbe1af7ba080161f
1,208
js
JavaScript
problems/0541-reverse-string-ii.js
adityaworld/leetcode-js-master
7f9bf1ed5f87bd01560d1e9f4f24dc175bcb4c45
[ "MIT" ]
null
null
null
problems/0541-reverse-string-ii.js
adityaworld/leetcode-js-master
7f9bf1ed5f87bd01560d1e9f4f24dc175bcb4c45
[ "MIT" ]
null
null
null
problems/0541-reverse-string-ii.js
adityaworld/leetcode-js-master
7f9bf1ed5f87bd01560d1e9f4f24dc175bcb4c45
[ "MIT" ]
null
null
null
// 541. Reverse String II // Easy 43% // Given a string and an integer k, you need to reverse the first k characters // for every 2k characters counting from the start of the string. If there are // less than k characters left, reverse all of them. If there are less than 2k // but greater than or equal to k characters, then reverse the first k characters // and left the other as original. // Example: // Input: s = "abcdefg", k = 2 // Output: "bacdfeg" // Restrictions: // The string consists of lower English letters only. // Length of the given string and k will in the range [1, 10000] /** * @param {string} s * @param {number} k * @return {string} */ const reverseStr = function(s, k) { const array = [] for (let i = 0, n = s.length; i < n; i++) { if (i % k === 0) array.push([]) array[array.length - 1].push(s[i]) } for (let i = 0, n = array.length; i < n; i++ ) { if (i % 2 === 0) array[i] = array[i].reverse() array[i] = array[i].join('') } return array.join('') } ;[ ['abcdefg', 2], // 'bacdfeg' ].forEach(args => { console.log(reverseStr(...args)) }) // Solution: // 1. 先以 k 为长度分组, // 2. 组号为偶数的组倒置。 // Submission Result: Accepted
23.230769
81
0.607616
8d0c9c8173fd9341013fa0aa0b9299e7ed54bd6b
233
js
JavaScript
src/js/refs.js
Anna-Sokolova/goit-js-hw-11-color-switch
a91df9bbefc8b5f08da729ae02db69d9ecbbd624
[ "MIT" ]
null
null
null
src/js/refs.js
Anna-Sokolova/goit-js-hw-11-color-switch
a91df9bbefc8b5f08da729ae02db69d9ecbbd624
[ "MIT" ]
null
null
null
src/js/refs.js
Anna-Sokolova/goit-js-hw-11-color-switch
a91df9bbefc8b5f08da729ae02db69d9ecbbd624
[ "MIT" ]
null
null
null
export default { startBtnRef: document.querySelector('button[data-action="start"]'), stopBtnRef: document.querySelector('button[data-action="stop"]'), body: document.querySelector("body"), }; //получаем доступы к ДОМ элементам
33.285714
69
0.746781
8d0d0da74a32aa9c2258502dc6ed93ab92ad1b0e
764
js
JavaScript
src/components/PageTitle.js
elm-street-technology/stormquestions
182794c3387c085c5b7daceccccea550ed01bd66
[ "MIT" ]
1
2018-12-09T18:49:07.000Z
2018-12-09T18:49:07.000Z
src/components/PageTitle.js
elm-street-technology/stormquestions
182794c3387c085c5b7daceccccea550ed01bd66
[ "MIT" ]
3
2018-10-31T21:11:58.000Z
2018-11-28T20:55:21.000Z
src/components/PageTitle.js
elm-street-technology/stormquestions
182794c3387c085c5b7daceccccea550ed01bd66
[ "MIT" ]
null
null
null
import React from "react"; import classNames from "classnames"; import withStyles from "elevate-ui/withStyles"; const PageTitle = ({ children, classes, className }) => { return <div className={classNames(classes.root, className)}>{children}</div>; }; export default withStyles((theme) => ({ root: { width: "100%", lineHeight: "1.2", fontSize: "28px", color: theme.colors.black, fontWeight: "800", marginTop: "80px", marginBottom: "30px", textAlign: "center", fontFamily: "-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif !important", [theme.breakpoints[600]]: { fontSize: "36px", }, }, }))(PageTitle);
28.296296
165
0.640052
8d0d50a84f5d13ad83da16f7f7454af0811cbfa6
1,077
js
JavaScript
demo/src/components/Nav.js
adreyfus-stripe/react-stripe-elements
3ccc605ec2399ca540aba38c0b2f08344f0d6db5
[ "MIT" ]
1
2020-05-23T02:24:17.000Z
2020-05-23T02:24:17.000Z
demo/src/components/Nav.js
adreyfus-stripe/react-stripe-elements
3ccc605ec2399ca540aba38c0b2f08344f0d6db5
[ "MIT" ]
null
null
null
demo/src/components/Nav.js
adreyfus-stripe/react-stripe-elements
3ccc605ec2399ca540aba38c0b2f08344f0d6db5
[ "MIT" ]
null
null
null
import React, {Component} from 'react'; class Nav extends Component { state = { tabs: [ {id: 'card', text: 'Card'}, {id: 'split-card', text: 'Card (Split Form)'}, {id: 'payment-request', text: 'Payment Request'}, {id: 'iban', text: 'IBAN'}, {id: 'ideal', text: 'iDEAL Bank'}, {id: 'async', text: 'Async Elements'}, ], }; render() { const tabs = this.state.tabs; const activeTab = this.props.active; return ( <header className="header"> <h2>Stripe React Elements Demo</h2> <ul className="optionList" role="tablist"> {tabs.map((tab) => { return ( <li key={tab.id} role="tab" aria-selected={tab.id === activeTab} className={tab.id === activeTab ? 'active' : ''} onClick={this.props.tabClicked(tab.id)} > <a href={tab.id}>{tab.text}</a> </li> ); })} </ul> </header> ); } } export default Nav;
26.268293
64
0.46611
8d0ddf0f124814fb1308a0412d4127f6a30ed161
91
js
JavaScript
app/assets/locales.js
axin313/bitshares-ui
0d17ff1c31e9f0247c4dde626154f4e8a45ddc49
[ "MIT" ]
2
2018-01-11T14:01:09.000Z
2021-03-30T08:48:25.000Z
app/assets/locales.js
axin313/bitshares-ui
0d17ff1c31e9f0247c4dde626154f4e8a45ddc49
[ "MIT" ]
5
2018-01-22T13:38:06.000Z
2018-06-07T15:21:02.000Z
app/assets/locales.js
axin313/bitshares-ui
0d17ff1c31e9f0247c4dde626154f4e8a45ddc49
[ "MIT" ]
8
2018-07-26T15:41:14.000Z
2022-03-08T09:55:37.000Z
const locales = ["de", "es", "fr", "ko", "it", "tr", "ru", "zh"]; export default locales;
22.75
65
0.527473
8d0e2d6ba06ff2a1027c9966d631a16e280ad344
279
js
JavaScript
rpi_src/src/ydlidar_ros/sdk/doc/html/search/variables_6.js
HyunCello/Tutorial
1254b2ce66a5fe7450e254ac636064877b2416f7
[ "Apache-2.0" ]
29
2019-05-20T10:56:40.000Z
2022-01-08T11:42:29.000Z
lidar/ydlidar/sdk/doc/html/search/variables_6.js
ps-micro/Gaea
c5290650287115e508f9815b0d649278ef4c3178
[ "Apache-2.0" ]
1
2021-09-03T13:27:33.000Z
2021-09-06T03:28:16.000Z
lidar/ydlidar/sdk/doc/html/search/variables_6.js
ps-micro/Gaea
c5290650287115e508f9815b0d649278ef4c3178
[ "Apache-2.0" ]
21
2019-08-15T21:44:33.000Z
2022-02-20T09:45:40.000Z
var searchData= [ ['hardware_5fid',['hardware_id',['../structserial_1_1_port_info.html#a7d55368e1a4e6ccc9da6f4d339524837',1,'serial::PortInfo']]], ['hardware_5fversion',['hardware_version',['../structdevice__info.html#add77e9b0edbc4a0dbd8f91b0cac9ea13',1,'device_info']]] ];
46.5
130
0.774194
8d0e9401ec1e96af7e5b936336859f41cf175edc
1,454
js
JavaScript
extension.js
d3ck-net/keyval
96b0d7b2930c26eea22f2a9acbebba823bc98c5b
[ "MIT" ]
143
2016-11-30T16:44:28.000Z
2022-03-13T12:52:04.000Z
extension.js
d3ck-net/keyval
96b0d7b2930c26eea22f2a9acbebba823bc98c5b
[ "MIT" ]
58
2016-11-30T16:46:32.000Z
2021-08-25T15:33:21.000Z
extension.js
d3ck-net/keyval
96b0d7b2930c26eea22f2a9acbebba823bc98c5b
[ "MIT" ]
38
2016-12-10T23:16:31.000Z
2020-07-16T19:09:13.000Z
const vscode = require('vscode'); const PromiseSeries = require('promise-series'); var activeContext; var disposables = []; function activate(context) { loadMacros(context); activeContext = context; vscode.workspace.onDidChangeConfiguration(() => { disposeMacros(); loadMacros(activeContext); }); } exports.activate = activate; function deactivate() { } exports.deactivate = deactivate; function loadMacros(context) { const settings = vscode.workspace.getConfiguration('macros'); const macros = Object.keys(settings).filter((prop) => { return prop !== 'has' && prop !== 'get' && prop !== 'update'; }); macros.forEach((name) => { const disposable = vscode.commands.registerCommand(`macros.${name}`, function () { const series = new PromiseSeries(); settings[name].forEach((action) => { series.add(() => { // support objects so that we can pass arguments from user settings to the commands if (typeof action === "object"){ vscode.commands.executeCommand(action.command, action.args); } // support commands as strings (no args) else{ vscode.commands.executeCommand(action); } }) }) return series.run(); }) context.subscriptions.push(disposable); disposables.push(disposable); }); } function disposeMacros() { for (var disposable of disposables) { disposable.dispose(); } }
26.925926
93
0.636864
8d0ec004d17833f1b6d358371f92ae1de420c0ef
4,922
js
JavaScript
src/game/hand/handState.js
DuncanWalter/card-engine
0497ec1b5675cc945a0a287174d711b2e6f11849
[ "MIT" ]
null
null
null
src/game/hand/handState.js
DuncanWalter/card-engine
0497ec1b5675cc945a0a287174d711b2e6f11849
[ "MIT" ]
null
null
null
src/game/hand/handState.js
DuncanWalter/card-engine
0497ec1b5675cc945a0a287174d711b2e6f11849
[ "MIT" ]
1
2021-02-12T19:57:49.000Z
2021-02-12T19:57:49.000Z
import type { State } from '../../state' import type { Reducer } from '../../utils/state' import { createReducer } from '../../utils/state' import { CardState, Card } from '../../cards/card' import { type ID } from '../../utils/entity' import { Game, withGame } from '../battle/battleState' import { CardStack } from '../../cards/cardStack' export interface HandState { focus: ID<CardState<>> | void; cursor: { x: number, y: number, }; dragging: boolean; anchor: { x: number, y: number, }; cardSlots: CardSlot[]; // cardSprites: CardSprite[], } export interface CardSlot { card: ID<CardState<>>; cardState: CardState<>; pos: { x: number, y: number, a: number, }; isActive: boolean; isDragging: boolean; isFocus: boolean; } interface CardSprite { pos: { x: number, y: number, a: number, }; trg: { x: number, y: number, a: number, }; } function targetLocation(isActive, isFocussed, index, handSize) { let maxHandSize = 1600 let handWidth = Math.min(maxHandSize, 240 * handSize) let centeredIndex = index - (handSize - 1) / 2 let offset = (handWidth * centeredIndex) / (handSize + 1) let raise = isActive || isFocussed let angle = (((handWidth / maxHandSize) * 0.6 * 180) / 3.1415) * Math.atan(centeredIndex / handSize) return { x: offset, y: 19 * ((handWidth / maxHandSize) * centeredIndex) ** 2 + (raise ? -180 : -65), a: angle, } } function easeTo(from, to, delta, speed) { let dx = from.x - to.x let dy = from.y - to.y let dm = (dx ** 2 + dy ** 2) ** 0.5 if (dm <= speed * delta) { return to } else { return { x: from.x + ((to.x - from.x) * speed * delta) / dm, y: from.y + ((to.y - from.y) * speed * delta) / dm, a: 0, } } } export const handReducer: Reducer<HandState, State> = createReducer({ setFocus(slice: HandState, { focus }, { battle }: State) { if (focus == slice.focus) { return slice } else { return { ...slice, focus, } } }, unsetFocus(slice: HandState, { focus }, { battle }: State) { if (focus == slice.focus) { return { ...slice, focus: undefined, } } else { return slice } }, updateHand: ( slice: HandState, { game, delta }: { game: Game, delta: number } ) => { let slots = [...slice.cardSlots] const slottedIds = slots.map((slot) => slot.card) const visibleCards = [...game.hand, ...game.activeCards] const visibleIds = visibleCards.map((card) => card.id) const activeIds = [...game.activeCards].map((card) => card.id) // First, add any cards appearing in the hand const newSlotIds = visibleCards .map((card) => card.id) .filter((id) => !slottedIds.includes(id)) slots.push( ...newSlotIds.map((id, index) => { const isActive = activeIds.includes(id) const isFocus = id == slice.focus return { card: id, cardState: any(undefined), pos: targetLocation( isActive, isFocus, index + slottedIds.length, newSlotIds.length + slottedIds.length ), isActive, isDragging: false, isFocus, } }) ) // Then remove cards which are no longer visible slots = slots.filter((slot) => visibleIds.includes(slot.card)) // Then determine real target locations slots.forEach((slot: CardSlot, index) => { const target = targetLocation( slot.isActive, slot.isFocus, index, slots.length ) slot.pos = easeTo(slot.pos, target, delta, 900) slot.isFocus = slot.card == slice.focus slot.isActive = activeIds.includes(slot.card) const card: Card<> = visibleCards[visibleIds.indexOf(slot.card)] slot.cardState = { type: card.type, data: card.data, effects: card.effects, appearance: card.appearance, } }) return { cursor: { x: 0, y: 0 }, dragging: false, anchor: slice.anchor, cardSlots: slots, focus: slice.focus, } }, }) export const handInitial: HandState = { cursor: { x: -1, y: -1, }, dragging: false, anchor: { x: -1, y: -1, }, cardSlots: [], cardSprites: [], focus: undefined, } export function updateHand(game: Game, delta: number) { return { type: 'updateHand', game, delta } } export function setFocus(card: ID<CardState<>>) { return { type: 'setFocus', focus: card, } } export function unsetFocus(card: ID<CardState<>>) { return { type: 'unsetFocus', focus: card, } } function any(any: any): any { return any } export function findCardById(game: Game, id: ID<CardState<>>): Card<> | void { return [...game.activeCards, ...game.hand].filter((card) => card.id == id)[0] }
22.682028
79
0.568468
8d0ee6d4ac8f97b9993a84b02a29ca685ea9d9cc
5,273
js
JavaScript
sources/osgShadow/ShadowSettings.js
fonlylovey/osgjs
79e69dda54351038fdea35223107a87574e60989
[ "MIT" ]
null
null
null
sources/osgShadow/ShadowSettings.js
fonlylovey/osgjs
79e69dda54351038fdea35223107a87574e60989
[ "MIT" ]
null
null
null
sources/osgShadow/ShadowSettings.js
fonlylovey/osgjs
79e69dda54351038fdea35223107a87574e60989
[ "MIT" ]
1
2018-04-28T07:57:51.000Z
2018-04-28T07:57:51.000Z
define( [ 'osg/Utils', 'osg/Object', 'osg/Texture' ], function ( MACROUTILS, Object, Texture ) { 'use strict'; var kernelSizeList = [ '1Band(1texFetch)', '4Band(4texFetch)', '9Band(9texFetch)', '16Band(16texFetch)', '1Tap(4texFetch)', '4Tap(16texFetch)', '9Tap(36texFetch)', '16Tap(64texFetch)', '4Poisson(16texFetch)', '8Poisson(32texFetch)', '16Poisson(64texFetch)', '25Poisson(100texFetch)', '32Poisson(128texFetch)' ]; /** * ShadowSettings provides the parameters that the ShadowTechnique should use as a guide for setting up shadowing * @class ShadowSettings */ var ShadowSettings = function ( options ) { this.castsShadowDrawTraversalMask = 0xffffffff; this.castsShadowBoundsTraversalMask = 0xffffffff; this.textureSize = 1024; // important note: // comparison shadow is: DepthShadow > DephFragment => shadowed // which is d<z // and // Average( (d < z) ) != (Average( z ) < d) // so PCF/NONE technique cannot be prefiltered (bilinear, etc..) with HW filter // on gl/dx desktop there is a sampler2DShadow that allows that taking z in third param // we emulate that with texture2DShadowLerp // which is why some techniques have more texfetch than advertized. // http://http.developer.nvidia.com/GPUGems/gpugems_ch11.html // texture precision. (and bandwith implication) this.textureType = 'UNSIGNED_BYTE'; this.textureFormat = Texture.RGBA; // either orthogonal (non-fov) or perpsective (fov) this.shadowProjection = 'fov'; // fov size: can be infered from spotlight angle this.fov = 50; // PCF algo and kernel size // Band kernelsize gives nxn texFetch // others a n*n*4 (emulating the HW shadowSampler) // '4Band(4texFetch)', '9Band(9texFetch)', '16Band(16texFetch)', '4Tap(16texFetch)', '9Tap(36texFetch)', '16Tap(64texFetch)', '4Poisson(16texFetch)', '8Poisson(32texFetch)', '16Poisson(64texFetch)', '25Poisson(100texFetch)', '32Poisson(128texFetch)' this.kernelSizePCF = '4Band(4texFetch)'; // ensure that we don't linearly interpolate between shadowmap // but do use the fake Texture2DShadow // http://codeflow.org/entries/2013/feb/15/soft-shadow-mapping/#interpolated-shadowing this._fakePCF = false; // for prefilterable technique (ESM/VSM/EVSM) this.superSample = 0; this.blur = false; this.blurKernelSize = 4.0; this.blurTextureSize = 256; // VSM bias this.epsilonVSM = 0.0008; // depth offset (shadow acne / peter panning) this.bias = 0.005; // Impact on shadow aliasing by better coverage // algo for shadow //'Variance Shadow Map (VSM)': 'VSM', //'Exponential Variance Shadow Map (EVSM)': 'EVSM', //'Exponential Shadow Map (ESM)': 'ESM', //'Shadow Map': 'NONE', //'Shadow Map Percentage Close Filtering (PCF)': 'PCF' // nice overview here // http://developer.download.nvidia.com/presentations/2008/GDC/GDC08_SoftShadowMapping.pdf // ALGO alllowing filtering // // ESM http://research.edm.uhasselt.be/tmertens/papers/gi_08_esm.pdf // http://pixelstoomany.wordpress.com/2008/06/12/a-conceptually-simpler-way-to-derive-exponential-shadow-maps-sample-code/ // VSM: http://www.punkuser.net/vsm/ // http://lousodrome.net/blog/light/tag/evsm this.algorithm = 'PCF'; // Exponential techniques variales this.exponent = 40; this.exponent1 = 10; // if url options override url options MACROUTILS.objectMix( this, options ); }; ShadowSettings.kernelSizeList = kernelSizeList; ShadowSettings.prototype = { setCastsShadowDrawTraversalMask: function ( mask ) { this.castsShadowDrawTraversalMask = mask; }, getCastsShadowDrawTraversalMask: function () { return this.castsDrawShadowTraversalMask; }, setCastsShadowBoundsTraversalMask: function ( mask ) { this.castsShadowBoundsTraversalMask = mask; }, getCastsShadowBoundsTraversalMask: function () { return this.castsShadowBoundsTraversalMask; }, setLight: function ( light ) { this.light = light; }, getLight: function () { return this.light; }, setTextureSize: function ( textureSize ) { this.textureSize = textureSize; }, getTextureSize: function () { return this.textureSize; }, setTextureType: function ( tt ) { this.textureType = tt; }, getTextureType: function () { return this.textureType; }, setTextureFormat: function ( tf ) { this.textureFormat = tf; }, getTextureFormat: function () { return this.textureFormat; }, setAlgorithm: function ( alg ) { this.algorithm = alg; }, getAlgorithm: function () { return this.algorithm; } }; return ShadowSettings; } );
36.874126
315
0.612175
8d0f1b88110775ef2e5156e5286f4a98ea0dda19
1,455
js
JavaScript
Gruntfile.js
danielhaim1/grunt-typeset
5880d6c0d137dd8cc9d63207339da2aec3bf62e0
[ "MIT" ]
6
2015-08-18T14:47:40.000Z
2019-09-26T05:59:31.000Z
Gruntfile.js
danielhaim1/grunt-typeset
5880d6c0d137dd8cc9d63207339da2aec3bf62e0
[ "MIT" ]
2
2015-08-25T20:05:15.000Z
2020-10-21T10:07:11.000Z
Gruntfile.js
danielhaim1/grunt-typeset
5880d6c0d137dd8cc9d63207339da2aec3bf62e0
[ "MIT" ]
5
2015-08-21T19:55:54.000Z
2020-01-02T12:47:48.000Z
/* * grunt-typeset * https://github.com/mobinni/grunt-typeset * * Copyright (c) 2019 Mo Binni * Licensed under the MIT license. */ module.exports = function(grunt) { grunt.initConfig({ // ! clean configs clean: { tests: ['dist'] }, // ! jshint configs jshint: { all: [ 'Gruntfile.js', 'tasks/*.js', 'Typeset/src/*/**.js', 'Typeset/test/*.js', ], options: { jshintrc: '.jshintrc' } }, // ! typeset configs typeset: { // ! task1 custom_task1: { options: { only: '.only-typeset', disable: 'smallCaps', dest: 'dist', }, src: ['test/task1.html'] }, // ! task2 custom_task2: { options: { ignore: '.skip, #skip', only: '#only-typeset, .only-typeset', dest: 'dist', }, src: ['test/task2.html'] } }, }); // ! load tasks grunt.loadTasks('tasks'); grunt.loadNpmTasks('grunt-contrib-clean'); grunt.loadNpmTasks('grunt-contrib-jshint'); // Whenever the "test" task is run, first clean the "tmp" dir, then run this // plugin's task(s), then test the result. grunt.registerTask('default', ['jshint', 'test']); grunt.registerTask('test', ['clean', 'typeset']); };
22.045455
80
0.468729
8d10a7802afc829c176d97a1cb87d533ad426cdd
61,006
js
JavaScript
static/demos/demoloop/webglsamples/aquarium/assets/MediumFishA.js
Theodeus/www.html5rocks.com
df153ceca613213205e78d3f077019d8715779f4
[ "Apache-2.0" ]
24
2019-07-24T12:18:09.000Z
2021-01-27T18:07:12.000Z
static/demos/demoloop/webglsamples/aquarium/assets/MediumFishA.js
Theodeus/www.html5rocks.com
df153ceca613213205e78d3f077019d8715779f4
[ "Apache-2.0" ]
75
2019-07-26T05:43:44.000Z
2021-06-03T06:56:35.000Z
static/demos/demoloop/webglsamples/aquarium/assets/MediumFishA.js
Theodeus/www.html5rocks.com
df153ceca613213205e78d3f077019d8715779f4
[ "Apache-2.0" ]
7
2019-07-25T07:39:47.000Z
2020-09-23T13:27:47.000Z
{"models":[{"textures":{"normalMap":"MediumFishA_NM.png","diffuse":"MediumFishA_DM.jpg"},"fields":{"normal":{"numComponents":3,"type":"Float32Array","data":[0.970991,-0.146312,-0.189126,0.757427,-0.624624,-0.190129,0.811176,-0.563745,-0.155514,0.970991,-0.146312,-0.189126,0.834304,-0.508477,-0.213046,0.757427,-0.624624,-0.190129,0.757427,-0.624624,-0.190129,0.834304,-0.508477,-0.213046,0.665075,-0.709551,-0.232838,0.834304,-0.508477,-0.213046,0.825296,-0.540795,-0.162565,0.665075,-0.709551,-0.232838,0.665075,-0.709551,-0.232838,0.825296,-0.540795,-0.162565,0.624183,-0.761607,-0.174215,0.825296,-0.540795,-0.162565,0.821309,-0.570162,-0.019172,0.624183,-0.761607,-0.174215,0.624183,-0.761607,-0.174215,0.821309,-0.570162,-0.019172,0.611902,-0.790763,-0.016401,0.611902,-0.790763,-0.016401,0.821309,-0.570162,-0.019172,0.574548,-0.812749,0.096614,0.574548,-0.812749,0.096614,0.821309,-0.570162,-0.019172,0.801777,-0.590859,0.089663,0.574548,-0.812749,0.096614,0.801777,-0.590859,0.089663,0,-0.951319,0.308209,0,-0.951319,0.308209,0.801777,-0.590859,0.089663,0.767266,-0.586241,0.260047,0,-0.951319,0.308209,0.767266,-0.586241,0.260047,0,-0.774989,0.631975,0,-0.774989,0.631975,0.767266,-0.586241,0.260047,0.732756,-0.476596,0.485722,0,-0.203403,0.979095,0,-0.774989,0.631975,0.836374,-0.089155,0.540861,0.836374,-0.089155,0.540861,0,-0.774989,0.631975,0.732756,-0.476596,0.485722,0.732756,-0.476596,0.485722,0.938033,-0.036117,0.344659,0.836374,-0.089155,0.540861,0.970991,-0.146312,-0.189126,0.983433,0.013141,-0.180795,0.834304,-0.508477,-0.213046,0.983433,0.013141,-0.180795,0.990842,-0.018294,-0.133785,0.834304,-0.508477,-0.213046,0.834304,-0.508477,-0.213046,0.990842,-0.018294,-0.133785,0.825296,-0.540795,-0.162565,0.990842,-0.018294,-0.133785,0.999195,-0.032891,-0.022992,0.825296,-0.540795,-0.162565,0.825296,-0.540795,-0.162565,0.999195,-0.032891,-0.022992,0.821309,-0.570162,-0.019172,0.821309,-0.570162,-0.019172,0.999195,-0.032891,-0.022992,0.801777,-0.590859,0.089663,0.801777,-0.590859,0.089663,0.999195,-0.032891,-0.022992,0.99656,-0.045007,0.069584,0.99656,-0.045007,0.069584,0.97393,-0.057718,0.219381,0.801777,-0.590859,0.089663,0.801777,-0.590859,0.089663,0.97393,-0.057718,0.219381,0.767266,-0.586241,0.260047,0.767266,-0.586241,0.260047,0.97393,-0.057718,0.219381,0.732756,-0.476596,0.485722,0.732756,-0.476596,0.485722,0.97393,-0.057718,0.219381,0.938033,-0.036117,0.344659,0.926564,0.373482,-0.044613,0.995731,0.091249,-0.013942,0.886576,0.453861,0.089402,0.821001,0.549774,-0.153968,0.826235,0.529387,-0.192574,0.970991,-0.146312,-0.189126,0.970991,-0.146312,-0.189126,0.826235,0.529387,-0.192574,0.983433,0.013141,-0.180795,0.839543,0.53465,-0.096521,0.821001,0.549774,-0.153968,0.970991,-0.146312,-0.189126,0.983433,0.013141,-0.180795,0.826235,0.529387,-0.192574,0.990842,-0.018294,-0.133785,0.990842,-0.018294,-0.133785,0.826235,0.529387,-0.192574,0.849316,0.507615,-0.144878,0.990842,-0.018294,-0.133785,0.849316,0.507615,-0.144878,0.999195,-0.032891,-0.022992,0.999195,-0.032891,-0.022992,0.849316,0.507615,-0.144878,0.852055,0.522857,-0.024961,0.852055,0.522857,-0.024961,0.833,0.546803,0.084365,0.999195,-0.032891,-0.022992,0.999195,-0.032891,-0.022992,0.833,0.546803,0.084365,0.99656,-0.045007,0.069584,0.833,0.546803,0.084365,0.802344,0.542605,0.248643,0.99656,-0.045007,0.069584,0.99656,-0.045007,0.069584,0.802344,0.542605,0.248643,0.97393,-0.057718,0.219381,0.97393,-0.057718,0.219381,0.802344,0.542605,0.248643,0.938033,-0.036117,0.344659,0.938033,-0.036117,0.344659,0.802344,0.542605,0.248643,0.79529,0.450639,0.405511,0.938033,-0.036117,0.344659,0.838108,0.29846,0.456614,0.836374,-0.089155,0.540861,0.657829,0.724963,-0.204179,0.826235,0.529387,-0.192574,0.821001,0.549774,-0.153968,0.886576,0.453861,0.089402,0.995731,0.091249,-0.013942,0.995532,0.042815,0.084159,0.826235,0.529387,-0.192574,0.657829,0.724963,-0.204179,0.849316,0.507615,-0.144878,0.849316,0.507615,-0.144878,0.657829,0.724963,-0.204179,0.823298,0.553787,-0.124501,0.849316,0.507615,-0.144878,0.823298,0.553787,-0.124501,0.852055,0.522857,-0.024961,0.852055,0.522857,-0.024961,0.823298,0.553787,-0.124501,0.926564,0.373482,-0.044613,0.926564,0.373482,-0.044613,0.886576,0.453861,0.089402,0.852055,0.522857,-0.024961,0.852055,0.522857,-0.024961,0.886576,0.453861,0.089402,0.833,0.546803,0.084365,0.886576,0.453861,0.089402,0,0.956811,0.29071,0.833,0.546803,0.084365,0.833,0.546803,0.084365,0,0.956811,0.29071,0.802344,0.542605,0.248643,0.802344,0.542605,0.248643,0,0.956811,0.29071,0.79529,0.450639,0.405511,0.79529,0.450639,0.405511,0,0.956811,0.29071,0,0.884568,0.466411,0.79529,0.450639,0.405511,0,0.884568,0.466411,0.838108,0.29846,0.456614,0.838108,0.29846,0.456614,0,0.884568,0.466411,0.662692,0.497709,0.559576,0.926564,0.373482,-0.044613,0.983452,0.17681,-0.039502,0.961141,0.256514,-0.102021,0.79529,0.450639,0.405511,0.838108,0.29846,0.456614,0.938033,-0.036117,0.344659,0.662692,0.497709,0.559576,0,-0.203403,0.979095,0.838108,0.29846,0.456614,0.838108,0.29846,0.456614,0,-0.203403,0.979095,0.836374,-0.089155,0.540861,0.9978,0.031112,-0.058552,0.9978,0.031112,-0.058552,0.997589,-0.006347,-0.069104,0.996499,0.068523,-0.047911,0.9978,0.031112,-0.058552,0.9978,0.031112,-0.058552,-0.997565,0.035192,0.060212,-0.997565,0.035192,0.060212,-0.997762,-0.000425,0.066861,-0.996059,0.070762,0.053483,-0.997565,0.035192,0.060212,-0.997565,0.035192,0.060212,-0.998795,0.020358,0.044649,-0.998795,0.020358,0.044649,-0.999114,0.02656,0.032645,-0.998294,0.014152,0.056645,-0.998795,0.020358,0.044649,-0.998795,0.020358,0.044649,0.716702,-0.609135,0.339548,0.716702,-0.609135,0.339548,0.755505,-0.595175,0.273822,0.716702,-0.609135,0.339548,0.716702,-0.609135,0.339548,0.673584,-0.619428,0.403229,0.997244,0.011889,0.073238,0.999987,0.002671,-0.004451,0.995831,0.067253,0.06163,0.995831,0.067253,0.06163,0.999987,0.002671,-0.004451,0.999085,0.000119,-0.042768,0.999085,0.000119,-0.042768,0.999987,0.002671,-0.004451,0.991494,-0.013334,-0.129464,0.997459,-0.045963,0.054424,0.999987,0.002671,-0.004451,0.997244,0.011889,0.073238,0.999022,-0.004033,-0.044043,0.999987,0.002671,-0.004451,0.997459,-0.045963,0.054424,0.991494,-0.013334,-0.129464,0.999987,0.002671,-0.004451,0.999022,-0.004033,-0.044043,0.961141,0.256514,-0.102021,0.995731,0.091249,-0.013942,0.926564,0.373482,-0.044613,0.823298,0.553787,-0.124501,0.983452,0.17681,-0.039502,0.926564,0.373482,-0.044613,-0.811176,-0.563745,-0.155514,-0.757427,-0.624624,-0.190129,-0.973869,-0.122733,-0.19109,-0.665075,-0.709551,-0.232838,-0.834304,-0.508477,-0.213046,-0.757427,-0.624624,-0.190129,-0.757427,-0.624624,-0.190129,-0.834304,-0.508477,-0.213046,-0.973869,-0.122733,-0.19109,-0.624183,-0.761607,-0.174215,-0.825296,-0.540795,-0.162565,-0.665075,-0.709551,-0.232838,-0.665075,-0.709551,-0.232838,-0.825296,-0.540795,-0.162565,-0.834304,-0.508477,-0.213046,-0.611902,-0.790763,-0.016401,-0.821309,-0.570162,-0.019172,-0.624183,-0.761607,-0.174215,-0.624183,-0.761607,-0.174215,-0.821309,-0.570162,-0.019172,-0.825296,-0.540795,-0.162565,-0.801777,-0.590859,0.089663,-0.821309,-0.570162,-0.019172,-0.574548,-0.812749,0.096614,-0.574548,-0.812749,0.096614,-0.821309,-0.570162,-0.019172,-0.611902,-0.790763,-0.016401,-0.767266,-0.586241,0.260047,-0.801777,-0.590859,0.089663,0,-0.951319,0.308209,0,-0.951319,0.308209,-0.801777,-0.590859,0.089663,-0.574548,-0.812749,0.096614,-0.732756,-0.476596,0.485722,-0.767266,-0.586241,0.260047,0,-0.774989,0.631975,0,-0.774989,0.631975,-0.767266,-0.586241,0.260047,0,-0.951319,0.308209,-0.732756,-0.476596,0.485722,0,-0.774989,0.631975,-0.836374,-0.089155,0.540861,-0.836374,-0.089155,0.540861,0,-0.774989,0.631975,0,-0.203403,0.979095,-0.836374,-0.089155,0.540861,-0.938033,-0.036117,0.344659,-0.732756,-0.476596,0.485722,-0.834304,-0.508477,-0.213046,-0.982906,0.021925,-0.182799,-0.973869,-0.122733,-0.19109,-0.825296,-0.540795,-0.162565,-0.990842,-0.018294,-0.133785,-0.834304,-0.508477,-0.213046,-0.834304,-0.508477,-0.213046,-0.990842,-0.018294,-0.133785,-0.982906,0.021925,-0.182799,-0.821309,-0.570162,-0.019172,-0.999195,-0.032891,-0.022992,-0.825296,-0.540795,-0.162565,-0.825296,-0.540795,-0.162565,-0.999195,-0.032891,-0.022992,-0.990842,-0.018294,-0.133785,-0.99656,-0.045007,0.069584,-0.999195,-0.032891,-0.022992,-0.801777,-0.590859,0.089663,-0.801777,-0.590859,0.089663,-0.999195,-0.032891,-0.022992,-0.821309,-0.570162,-0.019172,-0.767266,-0.586241,0.260047,-0.97393,-0.057718,0.219381,-0.801777,-0.590859,0.089663,-0.801777,-0.590859,0.089663,-0.97393,-0.057718,0.219381,-0.99656,-0.045007,0.069584,-0.938033,-0.036117,0.344659,-0.97393,-0.057718,0.219381,-0.732756,-0.476596,0.485722,-0.732756,-0.476596,0.485722,-0.97393,-0.057718,0.219381,-0.767266,-0.586241,0.260047,-0.886576,0.453861,0.089402,-0.996262,0.085815,-0.009885,-0.928922,0.367821,-0.042569,-0.982906,0.021925,-0.182799,-0.820549,0.53689,-0.196085,-0.973869,-0.122733,-0.19109,-0.973869,-0.122733,-0.19109,-0.820549,0.53689,-0.196085,-0.795146,0.586454,-0.154321,-0.973869,-0.122733,-0.19109,-0.795146,0.586454,-0.154321,-0.784978,0.613846,-0.083682,-0.849316,0.507615,-0.144878,-0.820549,0.53689,-0.196085,-0.990842,-0.018294,-0.133785,-0.990842,-0.018294,-0.133785,-0.820549,0.53689,-0.196085,-0.982906,0.021925,-0.182799,-0.852055,0.522857,-0.024961,-0.849316,0.507615,-0.144878,-0.999195,-0.032891,-0.022992,-0.999195,-0.032891,-0.022992,-0.849316,0.507615,-0.144878,-0.990842,-0.018294,-0.133785,-0.99656,-0.045007,0.069584,-0.833,0.546803,0.084365,-0.999195,-0.032891,-0.022992,-0.999195,-0.032891,-0.022992,-0.833,0.546803,0.084365,-0.852055,0.522857,-0.024961,-0.97393,-0.057718,0.219381,-0.802344,0.542605,0.248643,-0.99656,-0.045007,0.069584,-0.99656,-0.045007,0.069584,-0.802344,0.542605,0.248643,-0.833,0.546803,0.084365,-0.79529,0.450639,0.405511,-0.802344,0.542605,0.248643,-0.938033,-0.036117,0.344659,-0.938033,-0.036117,0.344659,-0.802344,0.542605,0.248643,-0.97393,-0.057718,0.219381,-0.836374,-0.089155,0.540861,-0.838108,0.29846,0.456614,-0.938033,-0.036117,0.344659,-0.795146,0.586454,-0.154321,-0.820549,0.53689,-0.196085,-0.656843,0.724503,-0.208932,-0.995532,0.042815,0.084159,-0.996262,0.085815,-0.009885,-0.886576,0.453861,0.089402,-0.823298,0.553787,-0.124501,-0.656843,0.724503,-0.208932,-0.849316,0.507615,-0.144878,-0.849316,0.507615,-0.144878,-0.656843,0.724503,-0.208932,-0.820549,0.53689,-0.196085,-0.928922,0.367821,-0.042569,-0.823298,0.553787,-0.124501,-0.852055,0.522857,-0.024961,-0.852055,0.522857,-0.024961,-0.823298,0.553787,-0.124501,-0.849316,0.507615,-0.144878,-0.833,0.546803,0.084365,-0.886576,0.453861,0.089402,-0.852055,0.522857,-0.024961,-0.852055,0.522857,-0.024961,-0.886576,0.453861,0.089402,-0.928922,0.367821,-0.042569,-0.802344,0.542605,0.248643,0,0.956811,0.29071,-0.833,0.546803,0.084365,-0.833,0.546803,0.084365,0,0.956811,0.29071,-0.886576,0.453861,0.089402,0,0.884568,0.466411,0,0.956811,0.29071,-0.79529,0.450639,0.405511,-0.79529,0.450639,0.405511,0,0.956811,0.29071,-0.802344,0.542605,0.248643,-0.662692,0.497709,0.559576,0,0.884568,0.466411,-0.838108,0.29846,0.456614,-0.838108,0.29846,0.456614,0,0.884568,0.466411,-0.79529,0.450639,0.405511,-0.966014,0.239934,-0.096166,-0.98498,0.168056,-0.039652,-0.928922,0.367821,-0.042569,-0.938033,-0.036117,0.344659,-0.838108,0.29846,0.456614,-0.79529,0.450639,0.405511,-0.836374,-0.089155,0.540861,0,-0.203403,0.979095,-0.838108,0.29846,0.456614,-0.838108,0.29846,0.456614,0,-0.203403,0.979095,-0.662692,0.497709,0.559576,-0.997589,-0.006347,-0.069104,-0.9978,0.031112,-0.058552,-0.9978,0.031112,-0.058552,-0.9978,0.031112,-0.058552,-0.9978,0.031112,-0.058552,-0.996499,0.068523,-0.047911,0.997762,-0.000425,0.066861,0.997565,0.035192,0.060212,0.997565,0.035192,0.060212,0.997565,0.035192,0.060212,0.997565,0.035192,0.060212,0.996059,0.070762,0.053483,0.999114,0.02656,0.032645,0.998795,0.020358,0.044649,0.998795,0.020358,0.044649,0.998795,0.020358,0.044649,0.998795,0.020358,0.044649,0.998294,0.014152,0.056645,-0.755505,-0.595175,0.273822,-0.716702,-0.609135,0.339548,-0.716702,-0.609135,0.339548,-0.673584,-0.619428,0.403229,-0.716702,-0.609135,0.339548,-0.716702,-0.609135,0.339548,-0.992322,0.080956,0.093501,-0.999852,0.004597,0.01655,-0.990538,0.017638,0.136097,-0.999085,0.000119,-0.042768,-0.999852,0.004597,0.01655,-0.992322,0.080956,0.093501,-0.991494,-0.013334,-0.129464,-0.999852,0.004597,0.01655,-0.999085,0.000119,-0.042768,-0.990538,0.017638,0.136097,-0.999852,0.004597,0.01655,-0.994897,-0.053915,0.085284,-0.994897,-0.053915,0.085284,-0.999852,0.004597,0.01655,-0.999022,-0.004033,-0.044043,-0.999022,-0.004033,-0.044043,-0.999852,0.004597,0.01655,-0.991494,-0.013334,-0.129464,-0.928922,0.367821,-0.042569,-0.996262,0.085815,-0.009885,-0.966014,0.239934,-0.096166,-0.928922,0.367821,-0.042569,-0.98498,0.168056,-0.039652,-0.823298,0.553787,-0.124501]},"texCoord":{"numComponents":2,"type":"Float32Array","data":[0.867524,0.474914,0.866989,0.440008,0.935042,0.481496,0.867524,0.474914,0.729053,0.394667,0.866989,0.440008,0.866989,0.440008,0.729053,0.394667,0.728479,0.340123,0.729053,0.394667,0.578282,0.3207,0.728479,0.340123,0.728479,0.340123,0.578282,0.3207,0.582596,0.231153,0.578282,0.3207,0.427844,0.284329,0.582596,0.231153,0.582596,0.231153,0.427844,0.284329,0.426959,0.198851,0.426959,0.198851,0.427844,0.284329,0.284469,0.216382,0.284469,0.216382,0.427844,0.284329,0.283068,0.307557,0.284469,0.216382,0.283068,0.307557,0.12837,0.290212,0.12837,0.290212,0.283068,0.307557,0.126995,0.326966,0.12837,0.290212,0.126995,0.326966,0.042299,0.382201,0.042299,0.382201,0.126995,0.326966,0.044718,0.40907,-0.003704,0.480838,0.042299,0.382201,0.012432,0.48257,0.012432,0.48257,0.042299,0.382201,0.044718,0.40907,0.044718,0.40907,0.047424,0.452,0.012432,0.48257,0.867524,0.474914,0.730552,0.461318,0.729053,0.394667,0.730552,0.461318,0.576934,0.447133,0.729053,0.394667,0.729053,0.394667,0.576934,0.447133,0.578282,0.3207,0.576934,0.447133,0.425915,0.435754,0.578282,0.3207,0.578282,0.3207,0.425915,0.435754,0.427844,0.284329,0.427844,0.284329,0.425915,0.435754,0.283068,0.307557,0.283068,0.307557,0.425915,0.435754,0.282777,0.441062,0.282777,0.441062,0.128179,0.447192,0.283068,0.307557,0.283068,0.307557,0.128179,0.447192,0.126995,0.326966,0.126995,0.326966,0.128179,0.447192,0.044718,0.40907,0.044718,0.40907,0.128179,0.447192,0.047424,0.452,0.423634,0.732776,0.369182,0.827466,0.300844,0.721935,0.866607,0.509106,0.73042,0.543042,0.867524,0.474914,0.867524,0.474914,0.73042,0.543042,0.730552,0.461318,0.935042,0.481496,0.866607,0.509106,0.867524,0.474914,0.730552,0.461318,0.73042,0.543042,0.576934,0.447133,0.576934,0.447133,0.73042,0.543042,0.573946,0.607825,0.576934,0.447133,0.573946,0.607825,0.425915,0.435754,0.425915,0.435754,0.573946,0.607825,0.425937,0.634182,0.425937,0.634182,0.292342,0.62843,0.425915,0.435754,0.425915,0.435754,0.292342,0.62843,0.282777,0.441062,0.292342,0.62843,0.125351,0.583634,0.282777,0.441062,0.282777,0.441062,0.125351,0.583634,0.128179,0.447192,0.128179,0.447192,0.125351,0.583634,0.047424,0.452,0.047424,0.452,0.125351,0.583634,0.038071,0.526366,0.047424,0.452,0.013652,0.500798,0.012432,0.48257,0.727421,0.612743,0.73042,0.543042,0.866607,0.509106,0.300844,0.721935,0.369182,0.827466,0.36263,1,0.73042,0.543042,0.727421,0.612743,0.573946,0.607825,0.573946,0.607825,0.727421,0.612743,0.573226,0.706613,0.573946,0.607825,0.573226,0.706613,0.425937,0.634182,0.425937,0.634182,0.573226,0.706613,0.423634,0.732776,0.423634,0.732776,0.300844,0.721935,0.425937,0.634182,0.425937,0.634182,0.300844,0.721935,0.292342,0.62843,0.300844,0.721935,0.123833,0.635918,0.292342,0.62843,0.292342,0.62843,0.123833,0.635918,0.125351,0.583634,0.125351,0.583634,0.123833,0.635918,0.038071,0.526366,0.038071,0.526366,0.123833,0.635918,0.035156,0.551959,0.038071,0.526366,0.035156,0.551959,0.013652,0.500798,0.013652,0.500798,0.035156,0.551959,0.004909,0.513705,0.423634,0.732776,0.544571,0.736322,0.424529,0.774801,0.038071,0.526366,0.013652,0.500798,0.047424,0.452,0.004909,0.513705,-0.003704,0.480838,0.013652,0.500798,0.013652,0.500798,-0.003704,0.480838,0.012432,0.48257,0.573226,0.706613,0.611328,0.730183,0.61637,0.855868,0.673156,0.638919,0.611328,0.730183,0.573226,0.706613,0.61406,0.262298,0.669383,0.238698,0.669728,0.114349,0.728862,0.341624,0.669383,0.238698,0.61406,0.262298,0.276969,0.230106,0.320924,0.034892,0.308525,0,0.340288,0.212337,0.320924,0.034892,0.276969,0.230106,0.059988,0.90247,0.084942,0.800095,0.178845,0.917997,0.084942,0.800095,0.059988,0.90247,0.03125,0.873828,0.874976,0.47619,0.909166,0.480558,0.947383,0.681971,0.947383,0.681971,0.909166,0.480558,0.99236,0.761127,0.99236,0.761127,0.909166,0.480558,0.936708,0.484042,0.938367,0.223723,0.909166,0.480558,0.874976,0.47619,0.976732,0.141934,0.909166,0.480558,0.938367,0.223723,0.936708,0.484042,0.909166,0.480558,0.976732,0.141934,0.424529,0.774801,0.369182,0.827466,0.423634,0.732776,0.573226,0.706613,0.544571,0.736322,0.423634,0.732776,0.935042,0.481496,0.866989,0.440008,0.867524,0.474914,0.728479,0.340123,0.729053,0.394667,0.866989,0.440008,0.866989,0.440008,0.729053,0.394667,0.867524,0.474914,0.582596,0.231153,0.578282,0.3207,0.728479,0.340123,0.728479,0.340123,0.578282,0.3207,0.729053,0.394667,0.426959,0.198851,0.427844,0.284329,0.582596,0.231153,0.582596,0.231153,0.427844,0.284329,0.578282,0.3207,0.283068,0.307557,0.427844,0.284329,0.284469,0.216382,0.284469,0.216382,0.427844,0.284329,0.426959,0.198851,0.126995,0.326966,0.283068,0.307557,0.12837,0.290212,0.12837,0.290212,0.283068,0.307557,0.284469,0.216382,0.042496,0.406104,0.126995,0.326966,0.042299,0.382201,0.042299,0.382201,0.126995,0.326966,0.12837,0.290212,0.042496,0.406104,0.042299,0.382201,0.012432,0.48257,0.012432,0.48257,0.042299,0.382201,-0.003704,0.480838,0.012432,0.48257,0.047424,0.452,0.042496,0.406104,0.729053,0.394667,0.730552,0.461318,0.867524,0.474914,0.578282,0.3207,0.576934,0.447133,0.729053,0.394667,0.729053,0.394667,0.576934,0.447133,0.730552,0.461318,0.427844,0.284329,0.425915,0.435754,0.578282,0.3207,0.578282,0.3207,0.425915,0.435754,0.576934,0.447133,0.282777,0.441062,0.425915,0.435754,0.283068,0.307557,0.283068,0.307557,0.425915,0.435754,0.427844,0.284329,0.126995,0.326966,0.128179,0.447192,0.283068,0.307557,0.283068,0.307557,0.128179,0.447192,0.282777,0.441062,0.047424,0.452,0.128179,0.447192,0.042496,0.406104,0.042496,0.406104,0.128179,0.447192,0.126995,0.326966,0.300844,0.721935,0.369182,0.827466,0.423634,0.732776,0.730552,0.461318,0.73042,0.543042,0.867524,0.474914,0.867524,0.474914,0.73042,0.543042,0.866607,0.509106,0.867524,0.474914,0.866607,0.509106,0.935042,0.481496,0.573946,0.607825,0.73042,0.543042,0.576934,0.447133,0.576934,0.447133,0.73042,0.543042,0.730552,0.461318,0.425937,0.634182,0.573946,0.607825,0.425915,0.435754,0.425915,0.435754,0.573946,0.607825,0.576934,0.447133,0.282777,0.441062,0.292342,0.62843,0.425915,0.435754,0.425915,0.435754,0.292342,0.62843,0.425937,0.634182,0.128179,0.447192,0.125351,0.583634,0.282777,0.441062,0.282777,0.441062,0.125351,0.583634,0.292342,0.62843,0.038071,0.526366,0.125351,0.583634,0.047424,0.452,0.047424,0.452,0.125351,0.583634,0.128179,0.447192,0.012432,0.48257,0.013652,0.500798,0.047424,0.452,0.866607,0.509106,0.73042,0.543042,0.727421,0.612743,0.36263,1,0.369182,0.827466,0.300844,0.721935,0.573226,0.706613,0.727421,0.612743,0.573946,0.607825,0.573946,0.607825,0.727421,0.612743,0.73042,0.543042,0.423634,0.732776,0.573226,0.706613,0.425937,0.634182,0.425937,0.634182,0.573226,0.706613,0.573946,0.607825,0.292342,0.62843,0.300844,0.721935,0.425937,0.634182,0.425937,0.634182,0.300844,0.721935,0.423634,0.732776,0.125351,0.583634,0.123833,0.635918,0.292342,0.62843,0.292342,0.62843,0.123833,0.635918,0.300844,0.721935,0.035156,0.551959,0.123833,0.635918,0.038071,0.526366,0.038071,0.526366,0.123833,0.635918,0.125351,0.583634,0.004909,0.513705,0.035156,0.551959,0.013652,0.500798,0.013652,0.500798,0.035156,0.551959,0.038071,0.526366,0.424529,0.774801,0.544571,0.736322,0.423634,0.732776,0.047424,0.452,0.013652,0.500798,0.038071,0.526366,0.012432,0.48257,-0.003704,0.480838,0.013652,0.500798,0.013652,0.500798,-0.003704,0.480838,0.004909,0.513705,0.61637,0.855868,0.611328,0.730183,0.573226,0.706613,0.573226,0.706613,0.611328,0.730183,0.673156,0.638919,0.669728,0.114349,0.669383,0.238698,0.61406,0.262298,0.61406,0.262298,0.669383,0.238698,0.728862,0.341624,0.308525,0,0.320924,0.034892,0.276969,0.230106,0.276969,0.230106,0.320924,0.034892,0.340288,0.212337,0.178845,0.917997,0.084942,0.800095,0.059988,0.90247,0.03125,0.873828,0.059988,0.90247,0.084942,0.800095,0.947383,0.681971,0.909166,0.480558,0.874976,0.47619,0.99236,0.761127,0.909166,0.480558,0.947383,0.681971,0.936708,0.484042,0.909166,0.480558,0.99236,0.761127,0.874976,0.47619,0.909166,0.480558,0.938367,0.223723,0.938367,0.223723,0.909166,0.480558,0.976732,0.141934,0.976732,0.141934,0.909166,0.480558,0.936708,0.484042,0.423634,0.732776,0.369182,0.827466,0.424529,0.774801,0.423634,0.732776,0.544571,0.736322,0.573226,0.706613]},"tangent":{"numComponents":3,"type":"Float32Array","data":[0.188614,-0.0174925,0.981896,0.210125,-0.0425127,0.97675,0.177634,-0.015838,0.983969,0.192911,0.011999,0.981143,0.260675,0.023328,0.965145,0.265012,0.0279738,0.963839,0.265012,0.0279738,0.963839,0.260675,0.023328,0.965145,0.32787,-0.00268931,0.944719,0.275976,0.0506622,0.959828,0.241903,0.0784415,0.967125,0.344245,0.0146126,0.938766,0.344245,0.0146126,0.938766,0.241903,0.0784415,0.967125,0.320882,0.046594,0.945973,0.189435,-0.00606159,0.981875,0.0632047,0.0575428,0.99634,0.199989,-0.0598044,0.977971,0.199989,-0.0598044,0.977971,0.0632047,0.0575428,0.99634,0.0864735,0.0462735,0.995179,-0.0281166,-0.0424708,0.998702,-0.0121373,-0.0510628,0.998622,-0.118508,0.0341901,0.992364,-0.118508,0.0341901,0.992364,-0.0121373,-0.0510628,0.998622,-0.116366,-0.00719,0.99318,-0.234961,-0.0507106,0.970681,-0.160124,-0.0678458,0.984762,-0.242464,0.299012,0.922932,-0.242464,0.299012,0.922932,-0.160124,-0.0678458,0.984762,-0.285541,0.0508047,0.957019,-0.782764,0.191804,0.592023,-0.478817,-0.253882,0.840403,-0.801123,0.378237,0.463831,-0.801123,0.378237,0.463831,-0.478817,-0.253882,0.840403,-0.585941,-0.0789277,0.806501,-0.825213,0.553015,0.114887,-0.789585,0.387806,0.475565,-0.532336,0.103257,0.840212,-0.532336,0.103257,0.840212,-0.789585,0.387806,0.475565,-0.628606,-0.200699,0.751382,-0.528159,0.0517631,0.847566,-0.345609,-0.0243986,0.938061,-0.543631,-0.00833963,0.839283,0.191008,-0.00121043,0.981588,0.180811,0,0.983518,0.230729,-0.0289246,0.972588,0.180811,0,0.983518,0.133825,0.000994891,0.991005,0.231877,-0.0269514,0.972372,0.231877,-0.0269514,0.972372,0.133825,0.000994891,0.991005,0.192153,-0.00176137,0.981363,0.133797,-0.0005848,0.991009,0.0230832,0.00239526,0.999731,0.164607,-0.0449916,0.985333,0.164607,-0.0449916,0.985333,0.0230832,0.00239526,0.999731,0.0447354,0.0308648,0.998522,-0.00364858,-0.0388556,0.999238,0.0229217,-0.00251262,0.999734,-0.0909211,0.0276863,0.995473,-0.0909211,0.0276863,0.995473,0.0229217,-0.00251262,0.999734,-0.0696088,0.00101849,0.997574,-0.0697377,-0.00185097,0.997564,-0.219348,0.0069897,0.975622,-0.107483,0.0050185,0.994194,-0.107483,0.0050185,0.994194,-0.219348,0.0069897,0.975622,-0.240356,0.113073,0.964077,-0.340091,-0.0281516,0.939971,-0.220648,-0.0165047,0.975214,-0.511176,0.0856519,0.855198,-0.511176,0.0856519,0.855198,-0.220648,-0.0165047,0.975214,-0.344962,-0.00232853,0.938614,0.0368242,0.0279673,0.99893,0.0138383,0.00176868,0.999903,-0.0866685,-0.0268694,0.995875,0.198352,-0.0217835,0.979889,0.218185,0.0144345,0.975801,0.191278,0.000652842,0.981536,0.191278,0.000652842,0.981536,0.218185,0.0144345,0.975801,0.180807,0.000273367,0.983518,0.124193,-0.0159054,0.992131,0.173382,0.016857,0.984711,0.187429,-0.0254282,0.981949,0.180808,0.000238986,0.983518,0.210752,0.0265383,0.977179,0.133819,0.000654977,0.991006,0.133819,0.000654977,0.991006,0.210752,0.0265383,0.977179,0.169968,-0.00312651,0.985445,0.133791,-0.000884244,0.991009,0.145607,0.0385308,0.988592,0.0230671,0.00190655,0.999732,0.0230671,0.00190655,0.999732,0.145607,0.0385308,0.988592,0.0420411,-0.0208238,0.998899,0.0147946,0.0236115,0.999612,-0.0797909,-0.0321623,0.996293,0.0229463,-0.00176769,0.999735,0.0229463,-0.00176769,0.999735,-0.0797909,-0.0321623,0.996293,-0.06959,0.00143683,0.997575,-0.0967482,-0.00617483,0.99529,-0.235722,-0.0946502,0.9672,-0.0697046,-0.00111417,0.997567,-0.0697046,-0.00111417,0.997567,-0.235722,-0.0946502,0.9672,-0.21935,0.00694992,0.975622,-0.220194,-0.0080478,0.975423,-0.299406,0.00551699,0.95411,-0.344835,0.00142923,0.938662,-0.344835,0.00142923,0.938662,-0.299406,0.00551699,0.95411,-0.414492,-0.0839301,0.906174,-0.344799,0.00248663,0.938673,-0.460343,-0.0621308,0.885564,-0.540836,0.02654,0.84071,0.262543,0.0333674,0.964343,0.224567,0.00398379,0.974451,0.195143,-0.0167833,0.980631,-0.0970123,-0.006543,0.995262,0.0131792,0.00895677,0.999873,-0.0842359,0,0.996446,0.225848,0.00187768,0.974161,0.268916,0.0271446,0.962781,0.180414,-0.0211987,0.983362,0.180414,-0.0211987,0.983362,0.268916,0.0271446,0.962781,0.171061,-0.0329314,0.98471,0.160874,0.0125037,0.986896,0.143484,0.00916922,0.98961,0.0568456,-0.0450224,0.997367,0.0568456,-0.0450224,0.997367,0.143484,0.00916922,0.98961,0.0578637,-0.0243369,0.998028,0.0302194,0.0443089,0.998561,-0.0924139,-0.015592,0.995599,0.0041383,0.0409553,0.999152,0.0041383,0.0409553,0.999152,-0.0924139,-0.015592,0.995599,-0.0835783,-0.0263708,0.996152,-0.136867,0.0727574,0.987914,-0.282445,-0.278873,0.917853,-0.152252,0.0799511,0.985103,-0.152252,0.0799511,0.985103,-0.282445,-0.278873,0.917853,-0.28742,-0.0138537,0.957704,-0.394167,0.168882,0.903389,-0.602431,-0.232037,0.763699,-0.481181,0.062354,0.874401,-0.481181,0.062354,0.874401,-0.602431,-0.232037,0.763699,-0.602599,-0.372217,0.705924,-0.513486,0.145167,0.845729,-0.661405,-0.349822,0.663452,-0.491228,0.0489372,0.869655,-0.491228,0.0489372,0.869655,-0.661405,-0.349822,0.663452,-0.605417,-0.0837678,0.791488,0.0454761,0.00650471,0.998944,0.0394499,0.00381123,0.999214,0.10022,0.0201195,0.994762,-0.435704,-0.0402121,0.899191,-0.468087,-0.036361,0.882934,-0.344908,-0.000708906,0.938636,-0.69645,0.134889,0.704813,-0.888428,0.449419,0.093365,-0.533451,0.273432,0.800416,-0.533451,0.273432,0.800416,-0.888428,0.449419,0.093365,-0.499916,0.280691,0.819327,0.0594991,-0.0304409,0.997764,0.0594991,-0.0304409,0.997764,0.0688831,-0.0301469,0.997169,0.0485175,-0.00721303,0.998796,0.0587932,-0.00689305,0.998246,0.0587932,-0.00689305,0.998246,0.0602576,0.000235749,0.998183,0.0602576,0.000235749,0.998183,0.066861,0,0.997762,0.0536175,0,0.998562,0.0602411,-0.000232929,0.998184,0.0602411,-0.000232929,0.998184,0.0446532,-0.000251613,0.999003,0.0446532,-0.000251613,0.999003,0.0326563,0,0.999467,0.0566507,0,0.998394,0.0446632,0.000243093,0.999002,0.0446632,0.000243093,0.999002,-0.395626,0.0458206,0.917268,-0.395626,0.0458206,0.917268,-0.340748,0,0.940155,-0.459959,-0.0469135,0.8867,-0.459959,-0.0469135,0.8867,-0.513634,0,0.85801,-0.0732437,0,0.997314,0.00445042,0.000220645,0.99999,-0.0618375,0.00100631,0.998086,-0.0617023,-0.00100285,0.998094,0.00445065,0.000136463,0.99999,0.042768,0,0.999085,0.042768,0,0.999085,0.00445192,-0.000341016,0.99999,0.129476,0,0.991583,-0.0545138,-0.000702041,0.998513,0.00445048,0.000202033,0.99999,-0.0732427,0,0.997314,0.044042,-0.000346253,0.99903,0.00445073,0.000106699,0.99999,-0.0544497,0.000695104,0.998516,0.129475,0,0.991583,0.00445189,-0.000327036,0.99999,0.0440447,0.000338866,0.99903,0.119131,-0.0520318,0.991514,0.0186623,-0.051083,0.99852,0.0789078,-0.0770378,0.993901,0.114638,0.052594,0.992014,0.0396348,0.00278213,0.99921,0.0460347,0.0051167,0.998927,-0.177634,-0.015838,0.983969,-0.210125,-0.0425127,0.97675,-0.190399,-0.0174468,0.981552,-0.32787,-0.00268932,0.944719,-0.260675,0.023328,0.965145,-0.265012,0.0279738,0.963839,-0.265012,0.0279738,0.963839,-0.260675,0.023328,0.965145,-0.193741,0.00992787,0.981003,-0.320882,0.046594,0.945973,-0.241903,0.0784415,0.967125,-0.344245,0.0146126,0.938766,-0.344245,0.0146126,0.938766,-0.241903,0.0784415,0.967125,-0.275976,0.0506622,0.959828,-0.0864735,0.0462735,0.995179,-0.0632047,0.0575428,0.99634,-0.199989,-0.0598044,0.977971,-0.199989,-0.0598044,0.977971,-0.0632047,0.0575428,0.99634,-0.189435,-0.00606157,0.981875,0.116366,-0.00719001,0.99318,0.0121373,-0.0510628,0.998622,0.118508,0.0341901,0.992364,0.118508,0.0341901,0.992364,0.0121373,-0.0510628,0.998622,0.0281166,-0.0424708,0.998702,0.285541,0.0508047,0.957019,0.160124,-0.0678458,0.984762,0.242464,0.299012,0.922932,0.242464,0.299012,0.922932,0.160124,-0.0678458,0.984762,0.234961,-0.0507106,0.970681,0.597943,-0.110196,0.793927,0.486866,-0.268505,0.831184,0.813375,0.367645,0.450842,0.813375,0.367645,0.450842,0.486866,-0.268505,0.831184,0.782764,0.191804,0.592023,0.652249,-0.2884,0.700997,0.819146,0.362491,0.444522,0.538084,0.0547791,0.841109,0.538084,0.0547791,0.841109,0.819146,0.362491,0.444522,0.825213,0.553015,0.114886,0.541916,0.0140193,0.840316,0.344963,-0.0023552,0.938613,0.51874,0.0707625,0.851999,-0.230729,-0.0289246,0.972588,-0.182843,0,0.983142,-0.192401,-0.00118793,0.981316,-0.192153,-0.00176137,0.981363,-0.133825,0.000994889,0.991005,-0.231877,-0.0269514,0.972372,-0.231877,-0.0269514,0.972372,-0.133825,0.000994889,0.991005,-0.182844,0,0.983142,-0.0447354,0.0308648,0.998522,-0.0230832,0.00239527,0.999731,-0.164607,-0.0449916,0.985333,-0.164607,-0.0449916,0.985333,-0.0230832,0.00239527,0.999731,-0.133797,-0.000584783,0.991009,0.0696088,0.00101852,0.997574,-0.0229217,-0.00251261,0.999734,0.0909211,0.0276863,0.995473,0.0909211,0.0276863,0.995473,-0.0229217,-0.00251261,0.999734,0.00364858,-0.0388556,0.999238,0.240356,0.113073,0.964077,0.219348,0.00698972,0.975622,0.107483,0.00501852,0.994194,0.107483,0.00501852,0.994194,0.219348,0.00698972,0.975622,0.0697377,-0.00185094,0.997564,0.344906,-0.000653153,0.938637,0.220214,-0.00840499,0.975416,0.507518,0.0927419,0.856636,0.507518,0.0927419,0.856636,0.220214,-0.00840499,0.975416,0.33259,-0.0170276,0.942918,0.0866685,-0.0268694,0.995875,-0.00982478,0.00112414,0.999951,-0.0351834,0.026765,0.999022,-0.182832,0.000501728,0.983144,-0.225824,0.0106327,0.97411,-0.192803,0.0021214,0.981235,-0.192803,0.0021214,0.981235,-0.225824,0.0106327,0.97411,-0.213887,-0.0330944,0.976298,-0.189465,-0.0248898,0.981572,-0.173159,0.0243096,0.984594,-0.118289,-0.0159168,0.992852,-0.169968,-0.00312652,0.985445,-0.214149,0.0292984,0.976362,-0.133819,0.000654966,0.991006,-0.133819,0.000654966,0.991006,-0.214149,0.0292984,0.976362,-0.182833,0.00044267,0.983144,-0.0420412,-0.0208238,0.998899,-0.145607,0.0385308,0.988592,-0.0230671,0.00190654,0.999732,-0.0230671,0.00190654,0.999732,-0.145607,0.0385308,0.988592,-0.133791,-0.000884244,0.991009,0.06959,0.00143683,0.997575,0.0797909,-0.0321623,0.996293,-0.0229463,-0.00176769,0.999735,-0.0229463,-0.00176769,0.999735,0.0797909,-0.0321623,0.996293,-0.0147946,0.0236115,0.999612,0.21935,0.00694993,0.975622,0.235722,-0.0946502,0.9672,0.0697046,-0.00111415,0.997567,0.0697046,-0.00111415,0.997567,0.235722,-0.0946502,0.9672,0.0967482,-0.00617481,0.99529,0.414492,-0.0839302,0.906174,0.299406,0.00551699,0.95411,0.344835,0.00142921,0.938662,0.344835,0.00142921,0.938662,0.299406,0.00551699,0.95411,0.220194,-0.0080478,0.975423,0.540836,0.02654,0.84071,0.460343,-0.0621308,0.885564,0.344799,0.00248668,0.938673,-0.206517,-0.022606,0.978182,-0.232592,-0.00027229,0.972574,-0.273062,0.0297267,0.961537,0.0842359,0,0.996446,-0.00922581,0.00807499,0.999925,0.0970123,-0.00654307,0.995262,-0.171061,-0.0329314,0.98471,-0.272102,0.0306667,0.96178,-0.180414,-0.0211987,0.983362,-0.180414,-0.0211987,0.983362,-0.272102,0.0306667,0.96178,-0.230014,0.00388952,0.97318,-0.0555594,-0.0247951,0.998147,-0.143484,0.00916922,0.98961,-0.0568456,-0.0450224,0.997367,-0.0568456,-0.0450224,0.997367,-0.143484,0.00916922,0.98961,-0.160874,0.0125037,0.986896,0.0835783,-0.0263708,0.996152,0.0924139,-0.015592,0.995599,-0.0041383,0.0409553,0.999152,-0.0041383,0.0409553,0.999152,0.0924139,-0.015592,0.995599,-0.0287778,0.0429008,0.998665,0.28742,-0.0138537,0.957704,0.282445,-0.278873,0.917853,0.152252,0.0799512,0.985103,0.152252,0.0799512,0.985103,0.282445,-0.278873,0.917853,0.136867,0.0727574,0.987914,0.602599,-0.372217,0.705924,0.602431,-0.232036,0.763699,0.481181,0.0623541,0.874401,0.481181,0.0623541,0.874401,0.602431,-0.232036,0.763699,0.394167,0.168882,0.903389,0.605417,-0.0837678,0.791488,0.661405,-0.349822,0.663452,0.491228,0.0489371,0.869655,0.491228,0.0489371,0.869655,0.661405,-0.349822,0.663452,0.513486,0.145167,0.845729,-0.0947274,0.0175492,0.995349,-0.03958,0.00377935,0.999209,-0.0435658,0.00559695,0.999035,0.344908,-0.000708905,0.938636,0.468087,-0.036361,0.882934,0.435704,-0.0402121,0.899191,0.499916,0.280691,0.819327,0.888428,0.449419,0.093365,0.533451,0.273432,0.800416,0.533451,0.273432,0.800416,0.888428,0.449419,0.093365,0.69645,0.134889,0.704813,-0.0688831,-0.0301469,0.997169,-0.0594991,-0.030441,0.997764,-0.0594991,-0.030441,0.997764,-0.0587932,-0.00689304,0.998246,-0.0587932,-0.00689304,0.998246,-0.0485175,-0.00721302,0.998796,-0.066861,0,0.997762,-0.0602576,0.00023584,0.998183,-0.0602576,0.00023584,0.998183,-0.0602411,-0.000232902,0.998184,-0.0602411,-0.000232902,0.998184,-0.0536175,0,0.998562,-0.0326563,0,0.999467,-0.0446532,-0.000251358,0.999003,-0.0446532,-0.000251358,0.999003,-0.0446632,0.000243104,0.999002,-0.0446632,0.000243104,0.999002,-0.0566507,0,0.998394,0.340748,0,0.940155,0.395626,0.0458207,0.917268,0.395626,0.0458207,0.917268,0.513634,0,0.85801,0.459959,-0.0469135,0.8867,0.459959,-0.0469135,0.8867,0.0941169,0.00381644,0.995554,0.0165529,0.00057914,0.999863,0.13612,0,0.990692,-0.042768,0,0.999085,0.0165508,0.000138611,0.999863,0.0935008,-0.0038018,0.995612,-0.129476,0,0.991583,0.016547,-0.000687114,0.999863,-0.042768,0,0.999085,0.136117,0,0.990693,0.0165526,0.000535889,0.999863,0.0855423,-0.00249733,0.996332,0.0852741,0.00248759,0.996355,0.0165506,0,0.999863,-0.044042,-0.000346253,0.99903,-0.0440447,0.000338787,0.99903,0.0165471,-0.000663087,0.999863,-0.129475,0,0.991583,-0.0743598,-0.0726882,0.994579,-0.0141639,-0.0493969,0.998679,-0.111121,-0.0495699,0.99257,-0.0440771,0.00430393,0.999019,-0.0397451,0.00281101,0.999206,-0.114638,0.052594,0.992014]},"binormal":{"numComponents":3,"type":"Float32Array","data":[-0.146971,-0.989084,0.0106115,-0.618184,-0.779768,0.0990485,-0.557171,-0.825797,0.0872929,-0.141284,-0.989166,0.0398762,-0.485784,-0.86076,0.15201,-0.596719,-0.780424,0.186721,-0.596719,-0.780424,0.186721,-0.485784,-0.86076,0.15201,-0.670952,-0.704649,0.230852,-0.477257,-0.859584,0.182595,-0.510264,-0.837489,0.195557,-0.6627,-0.704503,0.253978,-0.6627,-0.704503,0.253978,-0.510264,-0.837489,0.195557,-0.712342,-0.646362,0.273469,-0.531978,-0.841133,0.0974432,-0.566972,-0.819515,0.0832973,-0.755248,-0.645274,0.114984,-0.755248,-0.645274,0.114984,-0.566972,-0.819515,0.0832973,-0.786192,-0.610371,0.0966949,-0.790434,-0.610647,-0.0482216,-0.570355,-0.819944,-0.0488586,-0.809846,-0.58161,-0.0766731,-0.809846,-0.58161,-0.0766731,-0.570355,-0.819944,-0.0488586,-0.586185,-0.806743,-0.0745208,-0.78402,-0.580403,-0.2201,-0.575773,-0.803917,-0.149008,-0.97016,-0.0747297,-0.230661,-0.97016,-0.0747297,-0.230661,-0.575773,-0.803917,-0.149008,-0.574255,-0.808542,-0.128415,-0.622318,-0.241255,-0.744658,-0.426658,-0.769328,-0.475497,-0.5985,-0.506289,-0.620861,-0.5985,-0.506289,-0.620861,-0.426658,-0.769328,-0.475497,-0.346038,-0.875572,-0.337092,-0.564822,-0.807962,-0.167851,-0.613641,-0.498998,-0.61192,-0.130756,-0.990651,0.0389006,-0.130756,-0.990651,0.0389006,-0.613641,-0.498998,-0.61192,-0.260621,-0.855907,-0.446654,-0.429089,-0.877597,-0.213789,-0.0254708,-0.99905,-0.035369,-0.0703157,-0.995983,-0.0554425,-0.143847,-0.989238,0.0267714,0.012919,-0.999914,-0.00240569,-0.500701,-0.86059,0.0931887,0.0129138,-0.999914,-0.00243398,-0.0179963,-0.999832,0.00343398,-0.50017,-0.860654,0.0954184,-0.50017,-0.860654,0.0954184,-0.0179963,-0.999832,0.00343398,-0.531003,-0.841152,0.102462,-0.0182077,-0.999833,0.00186823,-0.0328271,-0.999456,0.00315256,-0.540177,-0.83995,0.0518872,-0.540177,-0.83995,0.0518872,-0.0328271,-0.999456,0.00315256,-0.568727,-0.820952,0.0508559,-0.570472,-0.820613,-0.0339927,-0.03294,-0.999456,-0.00175668,-0.590667,-0.8063,-0.0315233,-0.590667,-0.8063,-0.0315233,-0.03294,-0.999456,-0.00175668,-0.0449687,-0.998986,-0.00211789,-0.0447686,-0.998985,-0.00498328,-0.0578444,-0.998308,-0.00585284,-0.587879,-0.806759,-0.0594834,-0.587879,-0.806759,-0.0594834,-0.0578444,-0.998308,-0.00585284,-0.594585,-0.802207,-0.0541499,-0.543729,-0.809648,-0.220975,-0.0526666,-0.998196,-0.0288098,-0.449187,-0.87494,-0.180862,-0.449187,-0.87494,-0.180862,-0.0526666,-0.998196,-0.0288098,-0.0330974,-0.999345,-0.0146432,0.37433,-0.927216,0.0121603,0.0912648,-0.995826,0.00049839,0.454391,-0.890667,0.0155137,0.535363,-0.835029,-0.126933,0.519356,-0.848257,-0.103578,-0.143487,-0.989238,0.0286202,-0.143487,-0.989238,0.0286202,0.519356,-0.848257,-0.103578,0.0129738,-0.999914,-0.00210715,0.528908,-0.844924,-0.0797531,0.543964,-0.835143,-0.081481,-0.14848,-0.988912,0.00273249,0.0129676,-0.999914,-0.00214097,0.522417,-0.847965,-0.0896422,-0.0180418,-0.999833,0.00309707,-0.0180418,-0.999833,0.00309707,0.522417,-0.847965,-0.0896422,0.499774,-0.861579,-0.0889336,-0.0182478,-0.999832,0.00157143,0.507406,-0.860722,-0.0411874,-0.0328384,-0.999457,0.00266372,-0.0328384,-0.999457,0.00266372,0.507406,-0.860722,-0.0411874,0.521761,-0.852166,-0.0397245,0.523243,-0.852093,0.0123828,0.547489,-0.836643,0.0168387,-0.0329229,-0.999457,-0.00101153,-0.0329229,-0.999457,-0.00101153,0.547489,-0.836643,0.0168387,-0.0449978,-0.998986,-0.00170014,0.544748,-0.837239,0.0477585,0.548342,-0.834638,0.0519618,-0.04482,-0.998986,-0.00424753,-0.04482,-0.998986,-0.00424753,0.548342,-0.834638,0.0519618,-0.0578356,-0.998309,-0.00589172,-0.054534,-0.998301,-0.0205472,0.516333,-0.83997,0.166886,-0.0343942,-0.999347,-0.0111137,-0.0343942,-0.999347,-0.0111137,0.516333,-0.83997,0.166886,0.442392,-0.888752,0.120038,-0.0347591,-0.999345,-0.0101206,0.292675,-0.952398,0.0853218,-0.0893079,-0.995664,-0.0260208,0.705926,-0.687979,-0.168384,0.516629,-0.848371,-0.115591,0.536541,-0.835145,-0.121064,0.452296,-0.891048,0.0382292,0.0913623,-0.995788,0.00771594,0.0426635,-0.999083,0.00359902,0.51607,-0.848378,-0.11801,0.703523,-0.688253,-0.177098,0.496098,-0.861323,-0.109585,0.496098,-0.861323,-0.109585,0.703523,-0.688253,-0.177098,0.54122,-0.832007,-0.121844,0.502774,-0.861493,-0.0710422,0.549175,-0.832608,-0.0719103,0.520357,-0.851231,-0.0680836,0.520357,-0.851231,-0.0680836,0.549175,-0.832608,-0.0719103,0.37166,-0.927318,-0.0441607,0.374921,-0.926579,0.0297686,0.453257,-0.890936,0.0281196,0.523436,-0.851436,0.0327325,0.523436,-0.851436,0.0327325,0.453257,-0.890936,0.0281196,0.546924,-0.836846,0.023734,0.441871,-0.888097,0.126624,0.959283,-0.0821097,0.270247,0.531912,-0.833435,0.149851,0.531912,-0.833435,0.149851,0.959283,-0.0821097,0.270247,0.5231,-0.839874,0.14484,0.448192,-0.822836,0.349379,0.798171,-0.175133,0.576412,0.368754,-0.890526,0.266428,0.368754,-0.890526,0.266428,0.798171,-0.175133,0.576412,0.798044,-0.281059,0.53304,0.322251,-0.880824,0.346847,0.750029,-0.308487,0.585058,0.237212,-0.953167,0.187627,0.237212,-0.953167,0.187627,0.750029,-0.308487,0.585058,0.440805,-0.86329,0.245809,0.373378,-0.927615,-0.0109575,0.176822,-0.984238,-0.00322698,0.257223,-0.966331,-0.00637022,0.421517,-0.8918,0.164365,0.280123,-0.953729,0.109231,-0.0336564,-0.999347,-0.013122,0.275311,-0.856791,0.436019,-0.459015,-0.869856,-0.180709,0.114039,-0.914416,0.38838,0.114039,-0.914416,0.38838,-0.459015,-0.869856,-0.180709,-0.224862,-0.955648,0.190193,0.0292601,-0.999052,-0.0322251,0.0292601,-0.999052,-0.0322251,-0.00841231,-0.999525,-0.029637,0.068095,-0.997623,-0.0105123,0.0306539,-0.999492,-0.00870705,0.0306539,-0.999492,-0.00870705,-0.0351139,-0.999381,0.00235576,-0.0351139,-0.999381,0.00235576,0.000424234,-1,0,-0.0706602,-0.997493,0.00379477,-0.0351421,-0.999381,0.00188764,-0.0351421,-0.999381,0.00188764,-0.0203489,-0.999793,0.00065774,-0.0203489,-0.999793,0.00065774,-0.0265461,-0.999647,0.000860223,-0.0141293,-0.9999,0.000800401,-0.0203268,-0.999793,0.00115205,-0.0203268,-0.999793,0.00115205,-0.574298,-0.791742,-0.20815,-0.574298,-0.791742,-0.20815,-0.559556,-0.803596,-0.202807,-0.52419,-0.791678,-0.3138,-0.52419,-0.791678,-0.3138,-0.531474,-0.785053,-0.318161,0.0118538,-0.999929,0.000914913,0.00267195,-0.999996,0.000208755,0.0670622,-0.997735,0.00516087,0.0671866,-0.997736,0.00315099,0.00267158,-0.999996,0.000124573,0.000119316,-1,0,0.000118549,-1,0,0.00266946,-0.999996,-0.000352902,-0.0132169,-0.999911,0.0017634,-0.0458565,-0.998943,-0.00320588,0.00267187,-0.999996,0.000190144,0.0118598,-0.999929,0.000833118,-0.00404434,-0.999992,-0.000168293,0.00267145,-0.999996,0,-0.0459327,-0.998943,-0.00180933,-0.0132259,-0.999911,0.00169469,0.00266952,-0.999996,-0.000338923,-0.00401416,-0.999992,0.000516167,0.249029,-0.965139,-0.0805688,0.0904018,-0.994517,-0.0525678,0.367767,-0.924433,-0.100851,0.555912,-0.830996,-0.0201843,0.17678,-0.984241,-0.00427174,0.373309,-0.927623,-0.0124522,0.557171,-0.825797,0.0872929,0.618184,-0.779768,0.0990485,0.123803,-0.992286,0.00637732,0.670952,-0.704649,0.230852,0.485784,-0.86076,0.15201,0.596719,-0.780424,0.186721,0.596719,-0.780424,0.186721,0.485784,-0.86076,0.15201,0.118504,-0.99239,0.0334468,0.712342,-0.646362,0.273469,0.510264,-0.837489,0.195557,0.6627,-0.704503,0.253978,0.6627,-0.704503,0.253978,0.510264,-0.837489,0.195557,0.477257,-0.859584,0.182595,0.786192,-0.610371,0.0966949,0.566972,-0.819515,0.0832973,0.755248,-0.645274,0.114984,0.755248,-0.645274,0.114984,0.566972,-0.819515,0.0832973,0.531978,-0.841133,0.0974432,0.586185,-0.806743,-0.0745208,0.570355,-0.819944,-0.0488586,0.809846,-0.58161,-0.0766731,0.809846,-0.58161,-0.0766731,0.570355,-0.819944,-0.0488586,0.790434,-0.610647,-0.0482216,0.574255,-0.808542,-0.128415,0.575773,-0.803917,-0.149008,0.97016,-0.0747297,-0.230661,0.97016,-0.0747297,-0.230661,0.575773,-0.803917,-0.149008,0.78402,-0.580403,-0.2201,0.324858,-0.872189,-0.365724,0.41745,-0.764347,-0.491436,0.58174,-0.514032,-0.630356,0.58174,-0.514032,-0.630356,0.41745,-0.764347,-0.491436,0.622318,-0.241255,-0.744658,0.19401,-0.830471,-0.522186,0.573584,-0.51768,-0.634829,0.104617,-0.99451,-0.00215703,0.104617,-0.99451,-0.00215703,0.573584,-0.51768,-0.634829,0.564822,-0.807962,-0.167851,0.0825008,-0.995919,-0.0365891,0.0330882,-0.999345,-0.0146683,0.44043,-0.87627,-0.195377,0.500701,-0.86059,0.0931887,-0.0215546,-0.99976,-0.00401295,0.120667,-0.992439,0.0224571,0.531003,-0.841152,0.102462,0.0179963,-0.999832,0.00343398,0.50017,-0.860654,0.0954184,0.50017,-0.860654,0.0954184,0.0179963,-0.999832,0.00343398,-0.0215455,-0.99976,-0.00406181,0.568727,-0.820952,0.0508559,0.0328271,-0.999456,0.00315257,0.540177,-0.83995,0.0518872,0.540177,-0.83995,0.0518872,0.0328271,-0.999456,0.00315257,0.0182077,-0.999833,0.00186825,0.0449687,-0.998986,-0.00211787,0.03294,-0.999456,-0.00175667,0.590667,-0.8063,-0.0315233,0.590667,-0.8063,-0.0315233,0.03294,-0.999456,-0.00175667,0.570472,-0.820613,-0.0339927,0.594585,-0.802207,-0.0541499,0.0578444,-0.998308,-0.00585283,0.587879,-0.806759,-0.0594834,0.587879,-0.806759,-0.0594834,0.0578444,-0.998308,-0.00585283,0.0447686,-0.998985,-0.00498326,0.0336756,-0.999347,-0.0130697,0.0544552,-0.998298,-0.0208962,0.453316,-0.874217,-0.173924,0.453316,-0.874217,-0.173924,0.0544552,-0.998298,-0.0208962,0.548349,-0.809958,-0.208043,-0.454391,-0.890667,0.0155137,-0.0858219,-0.99631,0.000276829,-0.368601,-0.929511,0.0119214,-0.0216471,-0.99976,-0.00351544,-0.525075,-0.843585,-0.112518,0.120025,-0.992437,0.0257292,0.120025,-0.992437,0.0257292,-0.525075,-0.843585,-0.112518,-0.567446,-0.809306,-0.15175,0.125227,-0.992128,-0.000985838,-0.58117,-0.809618,-0.0822204,-0.608126,-0.789265,-0.0851056,-0.499774,-0.861579,-0.0889336,-0.529944,-0.843144,-0.0909337,0.0180418,-0.999833,0.00309705,0.0180418,-0.999833,0.00309705,-0.529944,-0.843144,-0.0909337,-0.0216363,-0.999759,-0.00357352,-0.521761,-0.852166,-0.0397245,-0.507406,-0.860722,-0.0411874,0.0328384,-0.999457,0.00266371,0.0328384,-0.999457,0.00266371,-0.507406,-0.860722,-0.0411874,0.0182478,-0.999832,0.00157143,0.0449978,-0.998986,-0.00170014,-0.547489,-0.836643,0.0168387,0.0329229,-0.999457,-0.00101154,0.0329229,-0.999457,-0.00101154,-0.547489,-0.836643,0.0168387,-0.523243,-0.852093,0.0123828,0.0578356,-0.998309,-0.00589171,-0.548342,-0.834638,0.0519618,0.04482,-0.998986,-0.00424752,0.04482,-0.998986,-0.00424752,-0.548342,-0.834638,0.0519618,-0.544748,-0.837239,0.0477586,-0.442392,-0.888752,0.120038,-0.516333,-0.83997,0.166886,0.0343942,-0.999347,-0.0111138,0.0343942,-0.999347,-0.0111138,-0.516333,-0.83997,0.166886,0.054534,-0.998301,-0.0205472,0.0893079,-0.995664,-0.0260208,-0.292675,-0.952398,0.0853218,0.0347591,-0.999345,-0.0101205,-0.57017,-0.809667,-0.139088,-0.522112,-0.843652,-0.1251,-0.702847,-0.68863,-0.178308,-0.0426635,-0.999083,0.00359894,-0.0858884,-0.996278,0.0072531,-0.452296,-0.891048,0.0382292,-0.54122,-0.832007,-0.121844,-0.703219,-0.688589,-0.176996,-0.496098,-0.861323,-0.109585,-0.496098,-0.861323,-0.109585,-0.703219,-0.688589,-0.176996,-0.523253,-0.843643,-0.120301,-0.366084,-0.929566,-0.0434687,-0.549175,-0.832608,-0.0719103,-0.520357,-0.851231,-0.0680836,-0.520357,-0.851231,-0.0680836,-0.549175,-0.832608,-0.0719103,-0.502774,-0.861493,-0.0710422,-0.546924,-0.836846,0.023734,-0.453258,-0.890936,0.0281196,-0.523436,-0.851436,0.0327324,-0.523436,-0.851436,0.0327324,-0.453258,-0.890936,0.0281196,-0.369156,-0.928907,0.0292664,-0.5231,-0.839874,0.14484,-0.959283,-0.0821097,0.270247,-0.531912,-0.833435,0.149851,-0.531912,-0.833435,0.149851,-0.959283,-0.0821097,0.270247,-0.441871,-0.888097,0.126624,-0.798044,-0.281059,0.53304,-0.798171,-0.175133,0.576412,-0.368754,-0.890526,0.266428,-0.368754,-0.890526,0.266428,-0.798171,-0.175133,0.576412,-0.448192,-0.822836,0.349379,-0.440805,-0.86329,0.245809,-0.750029,-0.308487,0.585058,-0.237212,-0.953167,0.187627,-0.237212,-0.953167,0.187627,-0.750029,-0.308487,0.585058,-0.322251,-0.880824,0.346847,-0.240506,-0.970631,-0.00577558,-0.168073,-0.98577,-0.00292907,-0.367704,-0.92988,-0.0108253,0.0336564,-0.999347,-0.013122,-0.280123,-0.953729,0.109231,-0.421517,-0.8918,0.164365,0.224862,-0.955648,0.190193,0.459015,-0.869856,-0.180709,-0.114039,-0.914416,0.38838,-0.114039,-0.914416,0.38838,0.459015,-0.869856,-0.180709,-0.275311,-0.856791,0.436019,0.00841231,-0.999525,-0.029637,-0.0292601,-0.999052,-0.0322251,-0.0292601,-0.999052,-0.0322251,-0.0306538,-0.999492,-0.00870704,-0.0306538,-0.999492,-0.00870704,-0.068095,-0.997624,-0.0105123,-0.00042424,-1,0,0.0351138,-0.999381,0.00235585,0.0351138,-0.999381,0.00235585,0.0351421,-0.999381,0.00188767,0.0351421,-0.999381,0.00188767,0.0706602,-0.997493,0.00379479,0.0265461,-0.999647,0.000860477,0.0203489,-0.999793,0.000657994,0.0203489,-0.999793,0.000657994,0.0203268,-0.999793,0.00115207,0.0203268,-0.999793,0.00115207,0.0141293,-0.9999,0.000800412,0.559556,-0.803596,-0.202806,0.574298,-0.791742,-0.20815,0.574298,-0.791742,-0.20815,0.531474,-0.785053,-0.318161,0.52419,-0.791678,-0.3138,0.52419,-0.791678,-0.3138,-0.0802392,-0.99671,0.0114065,-0.00458679,-0.999989,0.000655148,-0.0174623,-0.999844,0.00248494,-0.000119313,-1,0,-0.00459408,-0.99999,0.000214675,-0.0809563,-0.99671,0.00379685,0.0132169,-0.999911,0.00176356,-0.00460774,-0.999989,-0.000610946,-0.000118556,-1,0,-0.0174845,-0.999844,0.00232327,-0.0045875,-0.999989,0.000611902,0.0535042,-0.998542,-0.0070966,0.0539306,-0.998542,-0.00212266,-0.00459482,-0.99999,0.000170161,0.00404434,-0.999992,-0.000168293,0.00401417,-0.999992,0.000516088,-0.00460735,-0.999989,-0.000586922,0.0132259,-0.999911,0.00169461,-0.362733,-0.927051,-0.0948727,-0.0852133,-0.995086,-0.0504277,-0.233384,-0.969523,-0.074547,-0.367643,-0.929887,-0.0122145,-0.168034,-0.985773,-0.00391062,-0.555912,-0.830996,-0.0201843]},"indices":{"numComponents":3,"type":"Uint16Array","data":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398,399,400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455]},"position":{"numComponents":3,"type":"Float32Array","data":[0.07762,-0.029144,-2.82323,0,-0.141923,-2.81926,0,0.000348,-3.335,0.07762,-0.029144,-2.82323,0.201665,-0.288417,-1.74239,0,-0.141923,-2.81926,0,-0.141923,-2.81926,0.201665,-0.288417,-1.74239,0,-0.464645,-1.73815,0.201665,-0.288417,-1.74239,0.352697,-0.5274,-0.627079,0,-0.464645,-1.73815,0,-0.464645,-1.73815,0.352697,-0.5274,-0.627079,0,-0.816721,-0.658996,0.352697,-0.5274,-0.627079,0.415658,-0.644912,0.485764,0,-0.816721,-0.658996,0,-0.816721,-0.658996,0.415658,-0.644912,0.485764,0,-0.954628,0.486827,0,-0.954628,0.486827,0.415658,-0.644912,0.485764,0,-0.864446,1.54636,0,-0.864446,1.54636,0.415658,-0.644912,0.485764,0.375511,-0.569864,1.55672,0,-0.864446,1.54636,0.375511,-0.569864,1.55672,0,-0.649865,2.70108,0,-0.649865,2.70108,0.375511,-0.569864,1.55672,0.288929,-0.507156,2.71125,0,-0.649865,2.70108,0.288929,-0.507156,2.71125,0,-0.347862,3.34874,0,-0.347862,3.34874,0.288929,-0.507156,2.71125,0.125794,-0.251465,3.33633,0,0.028329,3.65068,0,-0.347862,3.34874,0.085182,-0.004407,3.55872,0.085182,-0.004407,3.55872,0,-0.347862,3.34874,0.125794,-0.251465,3.33633,0.125794,-0.251465,3.33633,0.176808,-0.103179,3.29987,0.085182,-0.004407,3.55872,0.07762,-0.029144,-2.82323,0.263654,-0.073073,-1.75348,0.201665,-0.288417,-1.74239,0.263654,-0.073073,-1.75348,0.464318,-0.118902,-0.617108,0.201665,-0.288417,-1.74239,0.201665,-0.288417,-1.74239,0.464318,-0.118902,-0.617108,0.352697,-0.5274,-0.627079,0.464318,-0.118902,-0.617108,0.569104,-0.155669,0.50003,0.352697,-0.5274,-0.627079,0.352697,-0.5274,-0.627079,0.569104,-0.155669,0.50003,0.415658,-0.644912,0.485764,0.415658,-0.644912,0.485764,0.569104,-0.155669,0.50003,0.375511,-0.569864,1.55672,0.375511,-0.569864,1.55672,0.569104,-0.155669,0.50003,0.525119,-0.138516,1.55887,0.525119,-0.138516,1.55887,0.404695,-0.11871,2.7025,0.375511,-0.569864,1.55672,0.375511,-0.569864,1.55672,0.404695,-0.11871,2.7025,0.288929,-0.507156,2.71125,0.288929,-0.507156,2.71125,0.404695,-0.11871,2.7025,0.125794,-0.251465,3.33633,0.125794,-0.251465,3.33633,0.404695,-0.11871,2.7025,0.176808,-0.103179,3.29987,0.037501,0.806737,0.516907,0.028072,1.10993,0.919705,0,0.768966,1.42523,0.008046,0.08133,-2.81644,0.189649,0.190975,-1.7525,0.07762,-0.029144,-2.82323,0.07762,-0.029144,-2.82323,0.189649,0.190975,-1.7525,0.263654,-0.073073,-1.75348,0,0.000348,-3.335,0.008046,0.08133,-2.81644,0.07762,-0.029144,-2.82323,0.263654,-0.073073,-1.75348,0.189649,0.190975,-1.7525,0.464318,-0.118902,-0.617108,0.464318,-0.118902,-0.617108,0.189649,0.190975,-1.7525,0.346567,0.400286,-0.595003,0.464318,-0.118902,-0.617108,0.346567,0.400286,-0.595003,0.569104,-0.155669,0.50003,0.569104,-0.155669,0.50003,0.346567,0.400286,-0.595003,0.408605,0.485442,0.499873,0.408605,0.485442,0.499873,0.389869,0.466857,1.48812,0.569104,-0.155669,0.50003,0.569104,-0.155669,0.50003,0.389869,0.466857,1.48812,0.525119,-0.138516,1.55887,0.389869,0.466857,1.48812,0.315388,0.322124,2.72342,0.525119,-0.138516,1.55887,0.525119,-0.138516,1.55887,0.315388,0.322124,2.72342,0.404695,-0.11871,2.7025,0.404695,-0.11871,2.7025,0.315388,0.322124,2.72342,0.176808,-0.103179,3.29987,0.176808,-0.103179,3.29987,0.315388,0.322124,2.72342,0.147963,0.137095,3.36905,0.176808,-0.103179,3.29987,0.078168,0.054486,3.54969,0.085182,-0.004407,3.55872,0,0.368258,-1.73031,0.189649,0.190975,-1.7525,0.008046,0.08133,-2.81644,0,0.768966,1.42523,0.028072,1.10993,0.919705,0,1.66738,0.968175,0.189649,0.190975,-1.7525,0,0.368258,-1.73031,0.346567,0.400286,-0.595003,0.346567,0.400286,-0.595003,0,0.368258,-1.73031,0,0.719462,-0.589677,0.346567,0.400286,-0.595003,0,0.719462,-0.589677,0.408605,0.485442,0.499873,0.408605,0.485442,0.499873,0,0.719462,-0.589677,0.037501,0.806737,0.516907,0.037501,0.806737,0.516907,0,0.768966,1.42523,0.408605,0.485442,0.499873,0.408605,0.485442,0.499873,0,0.768966,1.42523,0.389869,0.466857,1.48812,0,0.768966,1.42523,0,0.491051,2.73464,0.389869,0.466857,1.48812,0.389869,0.466857,1.48812,0,0.491051,2.73464,0.315388,0.322124,2.72342,0.315388,0.322124,2.72342,0,0.491051,2.73464,0.147963,0.137095,3.36905,0.147963,0.137095,3.36905,0,0.491051,2.73464,0,0.219785,3.39062,0.147963,0.137095,3.36905,0,0.219785,3.39062,0.078168,0.054486,3.54969,0.078168,0.054486,3.54969,0,0.219785,3.39062,0,0.096186,3.61437,0.037501,0.806737,0.516907,0,0.815451,-0.37771,-0.001343,0.948149,0.506514,0.147963,0.137095,3.36905,0.078168,0.054486,3.54969,0.176808,-0.103179,3.29987,0,0.096186,3.61437,0,0.028329,3.65068,0.078168,0.054486,3.54969,0.078168,0.054486,3.54969,0,0.028329,3.65068,0.085182,-0.004407,3.55872,0.020348,0.710557,-0.569983,0,0.795616,-0.871537,0,1.2017,-0.908833,0,0.477977,-1.32583,0,0.795616,-0.871537,0.020348,0.710557,-0.569983,0.027391,-0.716095,-0.891744,0,-0.792346,-1.30099,0,-1.19411,-1.30354,0,-0.459796,-1.74098,0,-0.792346,-1.30099,0.027391,-0.716095,-0.891744,0.027391,-0.820105,1.60184,0,-1.45083,1.27669,0,-1.56357,1.36841,0,-0.877515,1.13345,0,-1.45083,1.27669,0.027391,-0.820105,1.60184,0.673616,0.082525,1.53034,0.479947,-0.248241,1.34575,1.0318,0.132694,0.65112,0.479947,-0.248241,1.34575,0.673616,0.082525,1.53034,0.461256,-0.010016,1.74293,0.008046,-0.02502,-2.87835,0.026452,-0.010908,-3.13126,0,0.639847,-3.41397,0,0.639847,-3.41397,0.026452,-0.010908,-3.13126,0,0.895596,-3.74668,0,0.895596,-3.74668,0.026452,-0.010908,-3.13126,0,0.000348,-3.335,0,-0.840729,-3.34727,0.026452,-0.010908,-3.13126,0.008046,-0.02502,-2.87835,0,-1.10498,-3.63108,0.026452,-0.010908,-3.13126,0,-0.840729,-3.34727,0,0.000348,-3.335,0.026452,-0.010908,-3.13126,0,-1.10498,-3.63108,-0.001343,0.948149,0.506514,0.028072,1.10993,0.919705,0.037501,0.806737,0.516907,0,0.719462,-0.589677,0,0.815451,-0.37771,0.037501,0.806737,0.516907,0,0.000348,-3.335,0,-0.141923,-2.81926,-0.07762,-0.029144,-2.82323,0,-0.464645,-1.73815,-0.201665,-0.288417,-1.74239,0,-0.141923,-2.81926,0,-0.141923,-2.81926,-0.201665,-0.288417,-1.74239,-0.07762,-0.029144,-2.82323,0,-0.816721,-0.658996,-0.352697,-0.5274,-0.627079,0,-0.464645,-1.73815,0,-0.464645,-1.73815,-0.352697,-0.5274,-0.627079,-0.201665,-0.288417,-1.74239,0,-0.954628,0.486827,-0.415658,-0.644912,0.485764,0,-0.816721,-0.658996,0,-0.816721,-0.658996,-0.415658,-0.644912,0.485764,-0.352697,-0.5274,-0.627079,-0.375511,-0.569864,1.55672,-0.415658,-0.644912,0.485764,0,-0.864446,1.54636,0,-0.864446,1.54636,-0.415658,-0.644912,0.485764,0,-0.954628,0.486827,-0.288929,-0.507156,2.71125,-0.375511,-0.569864,1.55672,0,-0.649865,2.70108,0,-0.649865,2.70108,-0.375511,-0.569864,1.55672,0,-0.864446,1.54636,-0.125794,-0.251465,3.33633,-0.288929,-0.507156,2.71125,0,-0.347862,3.34874,0,-0.347862,3.34874,-0.288929,-0.507156,2.71125,0,-0.649865,2.70108,-0.125794,-0.251465,3.33633,0,-0.347862,3.34874,-0.085182,-0.004407,3.55872,-0.085182,-0.004407,3.55872,0,-0.347862,3.34874,0,0.028329,3.65068,-0.085182,-0.004407,3.55872,-0.176808,-0.103179,3.29987,-0.125794,-0.251465,3.33633,-0.201665,-0.288417,-1.74239,-0.263654,-0.073073,-1.75348,-0.07762,-0.029144,-2.82323,-0.352697,-0.5274,-0.627079,-0.464318,-0.118902,-0.617108,-0.201665,-0.288417,-1.74239,-0.201665,-0.288417,-1.74239,-0.464318,-0.118902,-0.617108,-0.263654,-0.073073,-1.75348,-0.415658,-0.644912,0.485764,-0.569104,-0.155669,0.50003,-0.352697,-0.5274,-0.627079,-0.352697,-0.5274,-0.627079,-0.569104,-0.155669,0.50003,-0.464318,-0.118902,-0.617108,-0.525119,-0.138516,1.55887,-0.569104,-0.155669,0.50003,-0.375511,-0.569864,1.55672,-0.375511,-0.569864,1.55672,-0.569104,-0.155669,0.50003,-0.415658,-0.644912,0.485764,-0.288929,-0.507156,2.71125,-0.404695,-0.11871,2.7025,-0.375511,-0.569864,1.55672,-0.375511,-0.569864,1.55672,-0.404695,-0.11871,2.7025,-0.525119,-0.138516,1.55887,-0.176808,-0.103179,3.29987,-0.404695,-0.11871,2.7025,-0.125794,-0.251465,3.33633,-0.125794,-0.251465,3.33633,-0.404695,-0.11871,2.7025,-0.288929,-0.507156,2.71125,0,0.768966,1.42523,-0.028072,1.10993,0.919705,-0.037501,0.806737,0.516907,-0.263654,-0.073073,-1.75348,-0.189649,0.190975,-1.7525,-0.07762,-0.029144,-2.82323,-0.07762,-0.029144,-2.82323,-0.189649,0.190975,-1.7525,0.008046,0.08133,-2.81644,-0.07762,-0.029144,-2.82323,0.008046,0.08133,-2.81644,0,0.000348,-3.335,-0.346567,0.400286,-0.595003,-0.189649,0.190975,-1.7525,-0.464318,-0.118902,-0.617108,-0.464318,-0.118902,-0.617108,-0.189649,0.190975,-1.7525,-0.263654,-0.073073,-1.75348,-0.408605,0.485442,0.499873,-0.346567,0.400286,-0.595003,-0.569104,-0.155669,0.50003,-0.569104,-0.155669,0.50003,-0.346567,0.400286,-0.595003,-0.464318,-0.118902,-0.617108,-0.525119,-0.138516,1.55887,-0.389869,0.466857,1.48812,-0.569104,-0.155669,0.50003,-0.569104,-0.155669,0.50003,-0.389869,0.466857,1.48812,-0.408605,0.485442,0.499873,-0.404695,-0.11871,2.7025,-0.315388,0.322124,2.72342,-0.525119,-0.138516,1.55887,-0.525119,-0.138516,1.55887,-0.315388,0.322124,2.72342,-0.389869,0.466857,1.48812,-0.147963,0.137095,3.36905,-0.315388,0.322124,2.72342,-0.176808,-0.103179,3.29987,-0.176808,-0.103179,3.29987,-0.315388,0.322124,2.72342,-0.404695,-0.11871,2.7025,-0.085182,-0.004407,3.55872,-0.078168,0.054486,3.54969,-0.176808,-0.103179,3.29987,0.008046,0.08133,-2.81644,-0.189649,0.190975,-1.7525,0,0.368258,-1.73031,0,1.66738,0.968175,-0.028072,1.10993,0.919705,0,0.768966,1.42523,0,0.719462,-0.589677,0,0.368258,-1.73031,-0.346567,0.400286,-0.595003,-0.346567,0.400286,-0.595003,0,0.368258,-1.73031,-0.189649,0.190975,-1.7525,-0.037501,0.806737,0.516907,0,0.719462,-0.589677,-0.408605,0.485442,0.499873,-0.408605,0.485442,0.499873,0,0.719462,-0.589677,-0.346567,0.400286,-0.595003,-0.389869,0.466857,1.48812,0,0.768966,1.42523,-0.408605,0.485442,0.499873,-0.408605,0.485442,0.499873,0,0.768966,1.42523,-0.037501,0.806737,0.516907,-0.315388,0.322124,2.72342,0,0.491051,2.73464,-0.389869,0.466857,1.48812,-0.389869,0.466857,1.48812,0,0.491051,2.73464,0,0.768966,1.42523,0,0.219785,3.39062,0,0.491051,2.73464,-0.147963,0.137095,3.36905,-0.147963,0.137095,3.36905,0,0.491051,2.73464,-0.315388,0.322124,2.72342,0,0.096186,3.61437,0,0.219785,3.39062,-0.078168,0.054486,3.54969,-0.078168,0.054486,3.54969,0,0.219785,3.39062,-0.147963,0.137095,3.36905,-0.001343,0.948149,0.506514,0,0.815451,-0.37771,-0.037501,0.806737,0.516907,-0.176808,-0.103179,3.29987,-0.078168,0.054486,3.54969,-0.147963,0.137095,3.36905,-0.085182,-0.004407,3.55872,0,0.028329,3.65068,-0.078168,0.054486,3.54969,-0.078168,0.054486,3.54969,0,0.028329,3.65068,0,0.096186,3.61437,0,1.2017,-0.908833,0,0.795616,-0.871537,-0.020348,0.710557,-0.569983,-0.020348,0.710557,-0.569983,0,0.795616,-0.871537,0,0.477977,-1.32583,0,-1.19411,-1.30354,0,-0.792346,-1.30099,-0.027391,-0.716095,-0.891744,-0.027391,-0.716095,-0.891744,0,-0.792346,-1.30099,0,-0.459796,-1.74098,0,-1.56357,1.36841,0,-1.45083,1.27669,-0.027391,-0.820105,1.60184,-0.027391,-0.820105,1.60184,0,-1.45083,1.27669,0,-0.877515,1.13345,-1.0318,0.132694,0.65112,-0.479947,-0.248241,1.34575,-0.673616,0.082525,1.53034,-0.461256,-0.010016,1.74293,-0.673616,0.082525,1.53034,-0.479947,-0.248241,1.34575,0,0.639847,-3.41397,-0.026452,-0.010908,-3.13126,0.008046,-0.02502,-2.87835,0,0.895596,-3.74668,-0.026452,-0.010908,-3.13126,0,0.639847,-3.41397,0,0.000348,-3.335,-0.026452,-0.010908,-3.13126,0,0.895596,-3.74668,0.008046,-0.02502,-2.87835,-0.026452,-0.010908,-3.13126,0,-0.840729,-3.34727,0,-0.840729,-3.34727,-0.026452,-0.010908,-3.13126,0,-1.10498,-3.63108,0,-1.10498,-3.63108,-0.026452,-0.010908,-3.13126,0,0.000348,-3.335,-0.037501,0.806737,0.516907,-0.028072,1.10993,0.919705,-0.001343,0.948149,0.506514,-0.037501,0.806737,0.516907,0,0.815451,-0.37771,0,0.719462,-0.589677]}}}]}
61,006
61,006
0.741845
8d117e069b814a554a0f201a5787e783f7da966a
3,481
js
JavaScript
stories/AdditionalControlHeader.js
mark-tate/use-date-input
1a63cfbf897196a59613d4e85cb9007b378f2129
[ "MIT" ]
41
2020-07-27T22:06:45.000Z
2022-02-05T09:49:11.000Z
stories/AdditionalControlHeader.js
mark-tate/use-date-input
1a63cfbf897196a59613d4e85cb9007b378f2129
[ "MIT" ]
7
2020-10-06T06:55:29.000Z
2022-03-20T10:09:04.000Z
stories/AdditionalControlHeader.js
mark-tate/use-date-input
1a63cfbf897196a59613d4e85cb9007b378f2129
[ "MIT" ]
4
2020-10-06T08:06:37.000Z
2021-06-25T00:28:15.000Z
import React, { useMemo } from 'react'; import Dropdown from './Dropdown'; import { makeStyles } from '@material-ui/core'; import IconButton from '@material-ui/core/IconButton'; import ChevronLeft from '@material-ui/icons/ChevronLeft'; import ChevronRight from '@material-ui/icons/ChevronRight'; import { useCalendarDispatch, useCalendarState, useDateAPI } from '@use-date-input/core'; import { formatNames } from '@use-date-input/common'; const useStyles = makeStyles({ root: { alignItems: 'center', display: 'flex', justifyContent: 'space-between', paddingBottom: '10px' } }); const createMonthSource = ({ addMonths, createDate, toFormattedDate }) => { const monthStart = createDate(); return [...Array(12)].map((unused, index) => { const month = addMonths(monthStart, index); const monthValue = toFormattedDate(month, formatNames.MONTH); const monthLabel = toFormattedDate(month, formatNames.MONTH_FULL); return { key: `monthValue-${index}`, value: monthValue, label: monthLabel }; }); }; const createYearSource = (fromDate, { addYears, startOfMonth, subtractYears, toFormattedDate }) => { const yearStart = subtractYears(startOfMonth(fromDate), 5); return [...Array(10)].map((unused, index) => { const year = toFormattedDate(addYears(yearStart, index), formatNames.HEADER); return { key: `year-${year}`, value: year, label: year }; }); }; export default function AdditionalControlHeader() { const classes = useStyles(); const { visibleFromDate } = useCalendarState(); const dateAPI = useDateAPI(); const { navigateNext, navigatePrevious, setVisibleFromDate } = useCalendarDispatch(); const monthSource = useMemo(() => createMonthSource(dateAPI), [dateAPI]); const yearSource = useMemo(() => createYearSource(visibleFromDate, dateAPI), [ dateAPI, visibleFromDate ]); const handlePrevious = () => { navigatePrevious(); }; const handleNext = () => { navigateNext(); }; const handleYearChange = year => { const newVisibleFromDate = dateAPI.set(visibleFromDate, { year }); setVisibleFromDate(newVisibleFromDate); }; const handleMonthChange = month => { const newVisibleFromDate = dateAPI.set(visibleFromDate, { month: month - 1 }); setVisibleFromDate(newVisibleFromDate); }; return ( <div className={classes.root}> <IconButton aria-label="previous month" onClick={handlePrevious} size="small"> <ChevronLeft fontSize="inherit" /> </IconButton> <Dropdown label={'Month'} labelId={'select-month-year'} onChange={handleMonthChange} selectedValue={dateAPI.toFormattedDate(visibleFromDate, formatNames.MONTH)} source={monthSource} /> <Dropdown label={'Year'} labelId={'select-label-year'} onChange={handleYearChange} selectedValue={dateAPI.toFormattedDate(visibleFromDate, formatNames.YEAR)} source={yearSource} /> <IconButton aria-label="next month" onClick={handleNext} size="small"> <ChevronRight fontSize="inherit" /> </IconButton> </div> ); }
37.031915
100
0.611031
8d134a1d575006e8a51ec9485ae1bf2e8667c595
2,386
js
JavaScript
lib/helpers/connectMiddleware.js
Jimdo/grunt-angular-toolbox
eec59e43e152d89b23c6264b9bf146bb15d1bdab
[ "MIT" ]
1
2016-01-12T19:46:47.000Z
2016-01-12T19:46:47.000Z
lib/helpers/connectMiddleware.js
Jimdo/grunt-angular-toolbox
eec59e43e152d89b23c6264b9bf146bb15d1bdab
[ "MIT" ]
14
2015-02-22T15:00:49.000Z
2016-01-06T12:24:39.000Z
lib/helpers/connectMiddleware.js
Jimdo/grunt-angular-toolbox
eec59e43e152d89b23c6264b9bf146bb15d1bdab
[ "MIT" ]
null
null
null
module.exports = function connectMiddleWareFactory( _, fs, grunt, path, del, mkdirp ) { 'use strict'; var connectLess = require('connect-less'); var sass = require('node-sass-middleware'); var postcssMiddleware = require('postcss-middleware'); var autoprefixer = require('autoprefixer'); function cleanup() { var tmpFolder = grunt.config('angularToolbox._.folder.tmp'); [ path.join(tmpFolder, grunt.config('angularToolbox.folder.demo')), path.join(tmpFolder, grunt.config('angularToolbox.folder.e2eSandbox')), path.join(tmpFolder, grunt.config('angularToolbox.folder.src.less')) ].forEach(function(folder) { del.sync(folder, {force: true}); mkdirp(folder); }); } function lessMiddleware() { var tmpFolder = grunt.config('angularToolbox._.folder.tmp'); return connectLess({ dst: tmpFolder }); } function sassMiddleware() { var sassSrc = grunt.config('angularToolbox.folder.src.sass'); var tmpFolder = grunt.config('angularToolbox._.folder.tmp'); return sass({ response: false, src: path.resolve(sassSrc), outputStyle: 'expanded', dest: path.join(tmpFolder, 'src/sass'), prefix: '/src/sass' }); } function autoprefixerMiddleware() { var tmpFolder = grunt.config('angularToolbox._.folder.tmp'); var projectBase = grunt.config('angularToolbox._.folder.projectBase'); return postcssMiddleware({ plugins: [ autoprefixer({ browsers: grunt.config('angularToolbox.autoprefixerBrowsers') }) ], src: function(req) { if (path.extname(req.url) === '.css') { return [ path.join(tmpFolder, req.url), path.join(projectBase, req.url) ]; } return ''; } }); } function customMiddleware() { var custom = grunt.config('angularToolbox.customMiddleware'); if (_.isArray(custom) || _.isFunction(custom)) { return custom; } return []; } return function(connect, options, middlewares) { cleanup(); middlewares.unshift(lessMiddleware()); middlewares.unshift(sassMiddleware()); if (grunt.config('angularToolbox.demoAutoprefixer') !== false) { middlewares.unshift(autoprefixerMiddleware()); } return [].concat(customMiddleware()).concat(middlewares); }; };
25.115789
77
0.633277
8d140dc9c7eafc00e4ffb8e05c93b63ccef6a189
436
js
JavaScript
dump/gsw-react-hooks/src/App.js
zgo23/learn-programming
99a02592b5aaac82cde6ca996d84dc921c4d9034
[ "MIT" ]
null
null
null
dump/gsw-react-hooks/src/App.js
zgo23/learn-programming
99a02592b5aaac82cde6ca996d84dc921c4d9034
[ "MIT" ]
null
null
null
dump/gsw-react-hooks/src/App.js
zgo23/learn-programming
99a02592b5aaac82cde6ca996d84dc921c4d9034
[ "MIT" ]
null
null
null
import "./App.css"; // import GetPreviouseValue from "./get-previous-value/example-2"; // import MeasureDomNode from "./measure-dom-node/example"; // import CounterUseReducer from "./counter-use-reducer/example"; import CounterUseReducer from "./counter-use-reducer/example-2"; function App() { return ( <div className="App"> <CounterUseReducer initialCount={10} /> </div> ); } export default App;
27.25
66
0.672018
8d149a14276ea1fe3f6b7d882a7eff960f61eda4
3,682
js
JavaScript
node_modules/leancloud-realtime/src/connection.js
osalien/KDBlog-frontend
3451e28dc87d4df7807e8aa06643a33b1e8bf68e
[ "MIT" ]
1
2019-05-22T01:32:03.000Z
2019-05-22T01:32:03.000Z
node_modules/leancloud-realtime/src/connection.js
osalien/osalien-frontend
3451e28dc87d4df7807e8aa06643a33b1e8bf68e
[ "MIT" ]
8
2021-06-28T20:32:39.000Z
2022-02-27T10:54:36.000Z
node_modules/leancloud-realtime/src/connection.js
osalien/osalien-frontend
3451e28dc87d4df7807e8aa06643a33b1e8bf68e
[ "MIT" ]
2
2020-06-07T20:01:37.000Z
2021-10-02T06:40:13.000Z
import d from 'debug'; import WebSocketPlus, { OPEN, DISCONNECT, RECONNECT, RETRY, SCHEDULE, OFFLINE, ONLINE, ERROR, MESSAGE, } from './websocket-plus'; import { createError } from './error'; import { GenericCommand, CommandType } from '../proto/message'; import { trim, isWeapp } from './utils'; const debug = d('LC:Connection'); const COMMAND_TIMEOUT = 20000; const EXPIRE = Symbol('expire'); export { OPEN, DISCONNECT, RECONNECT, RETRY, SCHEDULE, OFFLINE, ONLINE, ERROR, MESSAGE, EXPIRE, }; export default class Connection extends WebSocketPlus { constructor(getUrl, { format, version }) { debug('initializing Connection'); const protocolString = `lc.${format}.${version}`; if (!isWeapp) { super(getUrl, protocolString); } else { super( getUrl().then(urls => urls.map( url => `${url}${ url.indexOf('?') === -1 ? '?' : '&' }subprotocol=${encodeURIComponent(protocolString)}` ) ) ); } this._protocalFormat = format; this._commands = {}; this._serialId = 0; } async send(command, waitingForRespond = true) { let serialId; if (waitingForRespond) { this._serialId += 1; serialId = this._serialId; command.i = serialId; // eslint-disable-line no-param-reassign } if (debug.enabled) debug('↑ %O sent', trim(command)); let message; if (this._protocalFormat === 'proto2base64') { message = command.toBase64(); } else if (command.toArrayBuffer) { message = command.toArrayBuffer(); } if (!message) { throw new TypeError(`${command} is not a GenericCommand`); } super.send(message); if (!waitingForRespond) return undefined; return new Promise((resolve, reject) => { this._commands[serialId] = { resolve, reject, timeout: setTimeout(() => { if (this._commands[serialId]) { if (debug.enabled) debug('✗ %O timeout', trim(command)); reject( createError({ error: `Command Timeout [cmd:${command.cmd} op:${command.op}]`, name: 'COMMAND_TIMEOUT', }) ); delete this._commands[serialId]; } }, COMMAND_TIMEOUT), }; }); } handleMessage(msg) { let message; try { message = GenericCommand.decode(msg); if (debug.enabled) debug('↓ %O received', trim(message)); } catch (e) { console.warn('Decode message failed:', e.message, msg); return; } const serialId = message.i; if (serialId) { if (this._commands[serialId]) { clearTimeout(this._commands[serialId].timeout); if (message.cmd === CommandType.error) { this._commands[serialId].reject(createError(message.errorMessage)); } else { this._commands[serialId].resolve(message); } delete this._commands[serialId]; } else { console.warn(`Unexpected command received with serialId [${serialId}], which have timed out or never been requested.`); } } else { switch (message.cmd) { case CommandType.error: { this.emit(ERROR, createError(message.errorMessage)); return; } case CommandType.goaway: { this.emit(EXPIRE); return; } default: { this.emit(MESSAGE, message); } } } } ping() { return this.send( new GenericCommand({ cmd: CommandType.echo, }) ).catch(error => debug('ping failed:', error)); } }
24.711409
79
0.563281
8d149a62f24d828cd6d9b2e5cd1ec828e62a3c5c
11,557
js
JavaScript
node_modules/tone/build/esm/source/oscillator/OmniOscillator.js
SamueleDelMoro/ACTAM.Project2122-TraningGame
73a5070ea619abcb155a3e0a892f410866af49ed
[ "MIT" ]
3
2020-11-05T23:31:08.000Z
2021-03-21T00:13:48.000Z
node_modules/tone/build/esm/source/oscillator/OmniOscillator.js
SamueleDelMoro/ACTAM.Project2122-TraningGame
73a5070ea619abcb155a3e0a892f410866af49ed
[ "MIT" ]
null
null
null
node_modules/tone/build/esm/source/oscillator/OmniOscillator.js
SamueleDelMoro/ACTAM.Project2122-TraningGame
73a5070ea619abcb155a3e0a892f410866af49ed
[ "MIT" ]
2
2020-11-04T21:55:21.000Z
2020-11-05T23:23:13.000Z
import { __awaiter } from "tslib"; import { optionsFromArguments } from "../../core/util/Defaults"; import { readOnly } from "../../core/util/Interface"; import { isNumber, isString } from "../../core/util/TypeCheck"; import { Signal } from "../../signal/Signal"; import { Source } from "../Source"; import { AMOscillator } from "./AMOscillator"; import { FatOscillator } from "./FatOscillator"; import { FMOscillator } from "./FMOscillator"; import { Oscillator } from "./Oscillator"; import { generateWaveform } from "./OscillatorInterface"; import { PulseOscillator } from "./PulseOscillator"; import { PWMOscillator } from "./PWMOscillator"; const OmniOscillatorSourceMap = { am: AMOscillator, fat: FatOscillator, fm: FMOscillator, oscillator: Oscillator, pulse: PulseOscillator, pwm: PWMOscillator, }; /** * OmniOscillator aggregates all of the oscillator types into one. * @example * return Tone.Offline(() => { * const omniOsc = new Tone.OmniOscillator("C#4", "pwm").toDestination().start(); * }, 0.1, 1); * @category Source */ export class OmniOscillator extends Source { constructor() { super(optionsFromArguments(OmniOscillator.getDefaults(), arguments, ["frequency", "type"])); this.name = "OmniOscillator"; const options = optionsFromArguments(OmniOscillator.getDefaults(), arguments, ["frequency", "type"]); this.frequency = new Signal({ context: this.context, units: "frequency", value: options.frequency, }); this.detune = new Signal({ context: this.context, units: "cents", value: options.detune, }); readOnly(this, ["frequency", "detune"]); // set the options this.set(options); } static getDefaults() { return Object.assign(Oscillator.getDefaults(), FMOscillator.getDefaults(), AMOscillator.getDefaults(), FatOscillator.getDefaults(), PulseOscillator.getDefaults(), PWMOscillator.getDefaults()); } /** * start the oscillator */ _start(time) { this._oscillator.start(time); } /** * start the oscillator */ _stop(time) { this._oscillator.stop(time); } _restart(time) { this._oscillator.restart(time); return this; } /** * The type of the oscillator. Can be any of the basic types: sine, square, triangle, sawtooth. Or * prefix the basic types with "fm", "am", or "fat" to use the FMOscillator, AMOscillator or FatOscillator * types. The oscillator could also be set to "pwm" or "pulse". All of the parameters of the * oscillator's class are accessible when the oscillator is set to that type, but throws an error * when it's not. * @example * const omniOsc = new Tone.OmniOscillator().toDestination().start(); * omniOsc.type = "pwm"; * // modulationFrequency is parameter which is available * // only when the type is "pwm". * omniOsc.modulationFrequency.value = 0.5; */ get type() { let prefix = ""; if (["am", "fm", "fat"].some(p => this._sourceType === p)) { prefix = this._sourceType; } return prefix + this._oscillator.type; } set type(type) { if (type.substr(0, 2) === "fm") { this._createNewOscillator("fm"); this._oscillator = this._oscillator; this._oscillator.type = type.substr(2); } else if (type.substr(0, 2) === "am") { this._createNewOscillator("am"); this._oscillator = this._oscillator; this._oscillator.type = type.substr(2); } else if (type.substr(0, 3) === "fat") { this._createNewOscillator("fat"); this._oscillator = this._oscillator; this._oscillator.type = type.substr(3); } else if (type === "pwm") { this._createNewOscillator("pwm"); this._oscillator = this._oscillator; } else if (type === "pulse") { this._createNewOscillator("pulse"); } else { this._createNewOscillator("oscillator"); this._oscillator = this._oscillator; this._oscillator.type = type; } } /** * The value is an empty array when the type is not "custom". * This is not available on "pwm" and "pulse" oscillator types. * See [[Oscillator.partials]] */ get partials() { return this._oscillator.partials; } set partials(partials) { if (!this._getOscType(this._oscillator, "pulse") && !this._getOscType(this._oscillator, "pwm")) { this._oscillator.partials = partials; } } get partialCount() { return this._oscillator.partialCount; } set partialCount(partialCount) { if (!this._getOscType(this._oscillator, "pulse") && !this._getOscType(this._oscillator, "pwm")) { this._oscillator.partialCount = partialCount; } } set(props) { // make sure the type is set first if (Reflect.has(props, "type") && props.type) { this.type = props.type; } // then set the rest super.set(props); return this; } /** * connect the oscillator to the frequency and detune signals */ _createNewOscillator(oscType) { if (oscType !== this._sourceType) { this._sourceType = oscType; const OscConstructor = OmniOscillatorSourceMap[oscType]; // short delay to avoid clicks on the change const now = this.now(); if (this._oscillator) { const oldOsc = this._oscillator; oldOsc.stop(now); // dispose the old one this.context.setTimeout(() => oldOsc.dispose(), this.blockTime); } this._oscillator = new OscConstructor({ context: this.context, }); this.frequency.connect(this._oscillator.frequency); this.detune.connect(this._oscillator.detune); this._oscillator.connect(this.output); this._oscillator.onstop = () => this.onstop(this); if (this.state === "started") { this._oscillator.start(now); } } } get phase() { return this._oscillator.phase; } set phase(phase) { this._oscillator.phase = phase; } /** * The source type of the oscillator. * @example * const omniOsc = new Tone.OmniOscillator(440, "fmsquare"); * console.log(omniOsc.sourceType); // 'fm' */ get sourceType() { return this._sourceType; } set sourceType(sType) { // the basetype defaults to sine let baseType = "sine"; if (this._oscillator.type !== "pwm" && this._oscillator.type !== "pulse") { baseType = this._oscillator.type; } // set the type if (sType === "fm") { this.type = "fm" + baseType; } else if (sType === "am") { this.type = "am" + baseType; } else if (sType === "fat") { this.type = "fat" + baseType; } else if (sType === "oscillator") { this.type = baseType; } else if (sType === "pulse") { this.type = "pulse"; } else if (sType === "pwm") { this.type = "pwm"; } } _getOscType(osc, sourceType) { return osc instanceof OmniOscillatorSourceMap[sourceType]; } /** * The base type of the oscillator. See [[Oscillator.baseType]] * @example * const omniOsc = new Tone.OmniOscillator(440, "fmsquare4"); * console.log(omniOsc.sourceType, omniOsc.baseType, omniOsc.partialCount); */ get baseType() { return this._oscillator.baseType; } set baseType(baseType) { if (!this._getOscType(this._oscillator, "pulse") && !this._getOscType(this._oscillator, "pwm") && baseType !== "pulse" && baseType !== "pwm") { this._oscillator.baseType = baseType; } } /** * The width of the oscillator when sourceType === "pulse". * See [[PWMOscillator.width]] */ get width() { if (this._getOscType(this._oscillator, "pulse")) { return this._oscillator.width; } else { return undefined; } } /** * The number of detuned oscillators when sourceType === "fat". * See [[FatOscillator.count]] */ get count() { if (this._getOscType(this._oscillator, "fat")) { return this._oscillator.count; } else { return undefined; } } set count(count) { if (this._getOscType(this._oscillator, "fat") && isNumber(count)) { this._oscillator.count = count; } } /** * The detune spread between the oscillators when sourceType === "fat". * See [[FatOscillator.count]] */ get spread() { if (this._getOscType(this._oscillator, "fat")) { return this._oscillator.spread; } else { return undefined; } } set spread(spread) { if (this._getOscType(this._oscillator, "fat") && isNumber(spread)) { this._oscillator.spread = spread; } } /** * The type of the modulator oscillator. Only if the oscillator is set to "am" or "fm" types. * See [[AMOscillator]] or [[FMOscillator]] */ get modulationType() { if (this._getOscType(this._oscillator, "fm") || this._getOscType(this._oscillator, "am")) { return this._oscillator.modulationType; } else { return undefined; } } set modulationType(mType) { if ((this._getOscType(this._oscillator, "fm") || this._getOscType(this._oscillator, "am")) && isString(mType)) { this._oscillator.modulationType = mType; } } /** * The modulation index when the sourceType === "fm" * See [[FMOscillator]]. */ get modulationIndex() { if (this._getOscType(this._oscillator, "fm")) { return this._oscillator.modulationIndex; } else { return undefined; } } /** * Harmonicity is the frequency ratio between the carrier and the modulator oscillators. * See [[AMOscillator]] or [[FMOscillator]] */ get harmonicity() { if (this._getOscType(this._oscillator, "fm") || this._getOscType(this._oscillator, "am")) { return this._oscillator.harmonicity; } else { return undefined; } } /** * The modulationFrequency Signal of the oscillator when sourceType === "pwm" * see [[PWMOscillator]] * @min 0.1 * @max 5 */ get modulationFrequency() { if (this._getOscType(this._oscillator, "pwm")) { return this._oscillator.modulationFrequency; } else { return undefined; } } asArray(length = 1024) { return __awaiter(this, void 0, void 0, function* () { return generateWaveform(this, length); }); } dispose() { super.dispose(); this.detune.dispose(); this.frequency.dispose(); this._oscillator.dispose(); return this; } } //# sourceMappingURL=OmniOscillator.js.map
33.20977
200
0.563468
8d14b53adafa5afd7eead1c9bb124a9c643785f0
472
js
JavaScript
routes/app-tags/apps-tags-model.js
labs14-lambda-app-store/be2
974e0adbff5f09b5aa44e2e9d631a95a97078967
[ "MIT" ]
2
2019-08-05T16:31:26.000Z
2020-01-24T18:06:37.000Z
routes/app-tags/apps-tags-model.js
labs14-lambda-app-store/be2
974e0adbff5f09b5aa44e2e9d631a95a97078967
[ "MIT" ]
14
2019-07-22T22:30:55.000Z
2022-02-18T05:46:04.000Z
routes/app-tags/apps-tags-model.js
labs14-lambda-app-store/be2
974e0adbff5f09b5aa44e2e9d631a95a97078967
[ "MIT" ]
null
null
null
const db = require("../../data/dbConfig.js"); module.exports = { getAppTags, addAppTag, deleteAppTag }; //get all Apps-Tags relations function getAppTags() { return db("apps_tags"); } //post for adding an App-Tag relations function addAppTag(app_tag) { return db("apps_tags") .insert(app_tag) .then(ids => ({ id: ids[0] })); } // for deleting an App-Tag relations function deleteAppTag(id) { return db("apps_tags") .where({ id }) .del(); }
17.481481
45
0.644068
8d15783acad484ffdcf69fe2f536bae1f064fb96
1,123
js
JavaScript
server.js
mihai-vatulescu13/SocialMedia
1eb158aa1095405ff5b140288ad390df99e9770d
[ "MIT" ]
null
null
null
server.js
mihai-vatulescu13/SocialMedia
1eb158aa1095405ff5b140288ad390df99e9770d
[ "MIT" ]
null
null
null
server.js
mihai-vatulescu13/SocialMedia
1eb158aa1095405ff5b140288ad390df99e9770d
[ "MIT" ]
null
null
null
const express = require("express"); const authRouters = require("./routes/auth"); const usersRoute = require("./routes/users"); const postsRoute = require("./routes/posts"); const mongoose = require("mongoose"); const helmet = require("helmet"); //get the access to .env file: require("dotenv").config(); const app = express(); const port = process.env.PORT || 5000; // app.use(express.json()); //add a limit inside of json parser for files storing: app.use(express.json({ limit: "50mb" })); app.use(helmet()); app.use("/api/auth", authRouters); app.use("/api/user", usersRoute); app.use("/api/post", postsRoute); //connect the server to the database: mongoose.connect(process.env.DATABASE_MONGO_URL); //check if the app it is in the production mode: if (process.env.NODE_ENV === "production") { app.use(express.static("client/build")); //module user for working with folder or files paths const path = require("path"); app.get("*", (req, res) => { res.sendFile(path.resolve(__dirname, "client", "build", "index.html")); }); } app.listen(port, () => console.log(`Server is running on port: ${port}`));
30.351351
75
0.682992
8d15ac43bbefc1a5ec0032fab5c97e12394cfafd
1,106
js
JavaScript
api/workers/jobProcessors/cleanSandboxOrganizations.js
StarLord07/federalist
69b91b869018400d63e1bfe86608796988edbfcc
[ "CC0-1.0" ]
372
2015-05-28T21:31:56.000Z
2022-03-07T18:09:05.000Z
api/workers/jobProcessors/cleanSandboxOrganizations.js
StarLord07/federalist
69b91b869018400d63e1bfe86608796988edbfcc
[ "CC0-1.0" ]
2,655
2015-05-30T16:04:09.000Z
2022-03-30T21:55:47.000Z
api/workers/jobProcessors/cleanSandboxOrganizations.js
StarLord07/federalist
69b91b869018400d63e1bfe86608796988edbfcc
[ "CC0-1.0" ]
102
2015-06-05T11:07:53.000Z
2022-03-17T17:53:34.000Z
const moment = require('moment'); const SandboxHelper = require('../../services/SandboxHelper'); const { logger } = require('../../../winston'); async function cleanSandboxOrganizations() { const cleaningDate = moment().subtract(1, 'day').endOf('day'); const results = await SandboxHelper.cleanSandboxes(cleaningDate); const successes = results .filter(result => result.status === 'fulfilled') .map(result => result.value); const failures = results .filter(result => result.status === 'rejected') .map(result => result.reason); const msg = [`Sandbox organizations cleaned with ${successes.length} successes and ${failures.length} failures.`]; if (successes.length) { msg.push(` Successes:\n ${successes.join('\n ')}`); } if (failures.length) { msg.push(` Failures:\n ${failures.join('\n ')}`); } if (failures.length) { logger.error(`Exiting with failed cleaning of sandbox organizations. ${msg.join('\n')}`); throw new Error(msg.join('\n')); } logger.info(msg.join('\n')); } module.exports = cleanSandboxOrganizations;
33.515152
116
0.65009
8d184a48852eda48e5f648019d0ec105f81f4e24
759
js
JavaScript
src/Pages/Dashboards/Cart/index.js
JasonHoku/Primeval
17635551475b2655ae9676d9f912ff5569b1eca8
[ "MIT" ]
null
null
null
src/Pages/Dashboards/Cart/index.js
JasonHoku/Primeval
17635551475b2655ae9676d9f912ff5569b1eca8
[ "MIT" ]
null
null
null
src/Pages/Dashboards/Cart/index.js
JasonHoku/Primeval
17635551475b2655ae9676d9f912ff5569b1eca8
[ "MIT" ]
null
null
null
import React, { Component, Fragment } from "react"; import CSSTransitionGroup from "react-transition-group/CSSTransitionGroup"; import Tabs, { TabPane } from "rc-tabs"; import TabContent from "rc-tabs/lib/SwipeableTabContent"; import ScrollableInkTabBar from "rc-tabs/lib/ScrollableInkTabBar"; // Examples import CRMDashboard2 from "./CartPage"; // export default class DavePage extends Component { render() { return ( <Fragment> <CSSTransitionGroup component="div" transitionName="TabsAnimation" transitionAppear={true} transitionAppearTimeout={0} transitionEnter={false} transitionLeave={false}> <CRMDashboard2 /> </CSSTransitionGroup> </Fragment> ) } }
21.685714
98
0.679842