code
stringlengths
2
1.05M
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'pastetext', 'tr', { button: 'Düz Metin Olarak Yapıştır', title: 'Düz Metin Olarak Yapıştır' });
export{default}from"./ListItemIcon";
"use strict"; var iteratorSymbol = require("es6-symbol").iterator , Iterator = require("../"); module.exports = function (t, a) { var iterator; a(t(), false, "Undefined"); a(t(123), false, "Number"); a(t({}), false, "Plain object"); a(t({ length: 0 }), false, "Array-like"); iterator = {}; iterator[iteratorSymbol] = function () { return new Iterator([]); }; a(t(iterator), true, "Iterator"); a(t([]), true, "Array"); a(t("foo"), true, "String"); a(t(""), true, "Empty string"); a(t(function () { return arguments; }()), true, "Arguments"); };
// ==ClosureCompiler== // @compilation_level SIMPLE_OPTIMIZATIONS /** * @license Highcharts JS v4.2.2 (2016-02-04) * * (c) 2009-2016 Torstein Honsi * * License: www.highcharts.com/license */ (function (factory) { if (typeof module === 'object' && module.exports) { module.exports = factory; } else { factory(Highcharts); } }(function (Highcharts) { var arrayMin = Highcharts.arrayMin, arrayMax = Highcharts.arrayMax, each = Highcharts.each, extend = Highcharts.extend, merge = Highcharts.merge, map = Highcharts.map, pick = Highcharts.pick, pInt = Highcharts.pInt, defaultPlotOptions = Highcharts.getOptions().plotOptions, seriesTypes = Highcharts.seriesTypes, extendClass = Highcharts.extendClass, splat = Highcharts.splat, wrap = Highcharts.wrap, Axis = Highcharts.Axis, Tick = Highcharts.Tick, Point = Highcharts.Point, Pointer = Highcharts.Pointer, CenteredSeriesMixin = Highcharts.CenteredSeriesMixin, TrackerMixin = Highcharts.TrackerMixin, Series = Highcharts.Series, math = Math, mathRound = math.round, mathFloor = math.floor, mathMax = math.max, Color = Highcharts.Color, noop = function () {}, UNDEFINED;/** * The Pane object allows options that are common to a set of X and Y axes. * * In the future, this can be extended to basic Highcharts and Highstock. */ function Pane(options, chart, firstAxis) { this.init(options, chart, firstAxis); } // Extend the Pane prototype extend(Pane.prototype, { /** * Initiate the Pane object */ init: function (options, chart, firstAxis) { var pane = this, backgroundOption, defaultOptions = pane.defaultOptions; pane.chart = chart; // Set options. Angular charts have a default background (#3318) pane.options = options = merge(defaultOptions, chart.angular ? { background: {} } : undefined, options); backgroundOption = options.background; // To avoid having weighty logic to place, update and remove the backgrounds, // push them to the first axis' plot bands and borrow the existing logic there. if (backgroundOption) { each([].concat(splat(backgroundOption)).reverse(), function (config) { var backgroundColor = config.backgroundColor, // if defined, replace the old one (specific for gradients) axisUserOptions = firstAxis.userOptions; config = merge(pane.defaultBackgroundOptions, config); if (backgroundColor) { config.backgroundColor = backgroundColor; } config.color = config.backgroundColor; // due to naming in plotBands firstAxis.options.plotBands.unshift(config); axisUserOptions.plotBands = axisUserOptions.plotBands || []; // #3176 if (axisUserOptions.plotBands !== firstAxis.options.plotBands) { axisUserOptions.plotBands.unshift(config); } }); } }, /** * The default options object */ defaultOptions: { // background: {conditional}, center: ['50%', '50%'], size: '85%', startAngle: 0 //endAngle: startAngle + 360 }, /** * The default background options */ defaultBackgroundOptions: { shape: 'circle', borderWidth: 1, borderColor: 'silver', backgroundColor: { linearGradient: { x1: 0, y1: 0, x2: 0, y2: 1 }, stops: [ [0, '#FFF'], [1, '#DDD'] ] }, from: -Number.MAX_VALUE, // corrected to axis min innerRadius: 0, to: Number.MAX_VALUE, // corrected to axis max outerRadius: '105%' } }); var axisProto = Axis.prototype, tickProto = Tick.prototype; /** * Augmented methods for the x axis in order to hide it completely, used for the X axis in gauges */ var hiddenAxisMixin = { getOffset: noop, redraw: function () { this.isDirty = false; // prevent setting Y axis dirty }, render: function () { this.isDirty = false; // prevent setting Y axis dirty }, setScale: noop, setCategories: noop, setTitle: noop }; /** * Augmented methods for the value axis */ var radialAxisMixin = { isRadial: true, /** * The default options extend defaultYAxisOptions */ defaultRadialGaugeOptions: { labels: { align: 'center', x: 0, y: null // auto }, minorGridLineWidth: 0, minorTickInterval: 'auto', minorTickLength: 10, minorTickPosition: 'inside', minorTickWidth: 1, tickLength: 10, tickPosition: 'inside', tickWidth: 2, title: { rotation: 0 }, zIndex: 2 // behind dials, points in the series group }, // Circular axis around the perimeter of a polar chart defaultRadialXOptions: { gridLineWidth: 1, // spokes labels: { align: null, // auto distance: 15, x: 0, y: null // auto }, maxPadding: 0, minPadding: 0, showLastLabel: false, tickLength: 0 }, // Radial axis, like a spoke in a polar chart defaultRadialYOptions: { gridLineInterpolation: 'circle', labels: { align: 'right', x: -3, y: -2 }, showLastLabel: false, title: { x: 4, text: null, rotation: 90 } }, /** * Merge and set options */ setOptions: function (userOptions) { var options = this.options = merge( this.defaultOptions, this.defaultRadialOptions, userOptions ); // Make sure the plotBands array is instanciated for each Axis (#2649) if (!options.plotBands) { options.plotBands = []; } }, /** * Wrap the getOffset method to return zero offset for title or labels in a radial * axis */ getOffset: function () { // Call the Axis prototype method (the method we're in now is on the instance) axisProto.getOffset.call(this); // Title or label offsets are not counted this.chart.axisOffset[this.side] = 0; // Set the center array this.center = this.pane.center = CenteredSeriesMixin.getCenter.call(this.pane); }, /** * Get the path for the axis line. This method is also referenced in the getPlotLinePath * method. */ getLinePath: function (lineWidth, radius) { var center = this.center; radius = pick(radius, center[2] / 2 - this.offset); return this.chart.renderer.symbols.arc( this.left + center[0], this.top + center[1], radius, radius, { start: this.startAngleRad, end: this.endAngleRad, open: true, innerR: 0 } ); }, /** * Override setAxisTranslation by setting the translation to the difference * in rotation. This allows the translate method to return angle for * any given value. */ setAxisTranslation: function () { // Call uber method axisProto.setAxisTranslation.call(this); // Set transA and minPixelPadding if (this.center) { // it's not defined the first time if (this.isCircular) { this.transA = (this.endAngleRad - this.startAngleRad) / ((this.max - this.min) || 1); } else { this.transA = (this.center[2] / 2) / ((this.max - this.min) || 1); } if (this.isXAxis) { this.minPixelPadding = this.transA * this.minPointOffset; } else { // This is a workaround for regression #2593, but categories still don't position correctly. this.minPixelPadding = 0; } } }, /** * In case of auto connect, add one closestPointRange to the max value right before * tickPositions are computed, so that ticks will extend passed the real max. */ beforeSetTickPositions: function () { if (this.autoConnect) { this.max += (this.categories && 1) || this.pointRange || this.closestPointRange || 0; // #1197, #2260 } }, /** * Override the setAxisSize method to use the arc's circumference as length. This * allows tickPixelInterval to apply to pixel lengths along the perimeter */ setAxisSize: function () { axisProto.setAxisSize.call(this); if (this.isRadial) { // Set the center array this.center = this.pane.center = Highcharts.CenteredSeriesMixin.getCenter.call(this.pane); // The sector is used in Axis.translate to compute the translation of reversed axis points (#2570) if (this.isCircular) { this.sector = this.endAngleRad - this.startAngleRad; } // Axis len is used to lay out the ticks this.len = this.width = this.height = this.center[2] * pick(this.sector, 1) / 2; } }, /** * Returns the x, y coordinate of a point given by a value and a pixel distance * from center */ getPosition: function (value, length) { return this.postTranslate( this.isCircular ? this.translate(value) : 0, // #2848 pick(this.isCircular ? length : this.translate(value), this.center[2] / 2) - this.offset ); }, /** * Translate from intermediate plotX (angle), plotY (axis.len - radius) to final chart coordinates. */ postTranslate: function (angle, radius) { var chart = this.chart, center = this.center; angle = this.startAngleRad + angle; return { x: chart.plotLeft + center[0] + Math.cos(angle) * radius, y: chart.plotTop + center[1] + Math.sin(angle) * radius }; }, /** * Find the path for plot bands along the radial axis */ getPlotBandPath: function (from, to, options) { var center = this.center, startAngleRad = this.startAngleRad, fullRadius = center[2] / 2, radii = [ pick(options.outerRadius, '100%'), options.innerRadius, pick(options.thickness, 10) ], percentRegex = /%$/, start, end, open, isCircular = this.isCircular, // X axis in a polar chart ret; // Polygonal plot bands if (this.options.gridLineInterpolation === 'polygon') { ret = this.getPlotLinePath(from).concat(this.getPlotLinePath(to, true)); // Circular grid bands } else { // Keep within bounds from = Math.max(from, this.min); to = Math.min(to, this.max); // Plot bands on Y axis (radial axis) - inner and outer radius depend on to and from if (!isCircular) { radii[0] = this.translate(from); radii[1] = this.translate(to); } // Convert percentages to pixel values radii = map(radii, function (radius) { if (percentRegex.test(radius)) { radius = (pInt(radius, 10) * fullRadius) / 100; } return radius; }); // Handle full circle if (options.shape === 'circle' || !isCircular) { start = -Math.PI / 2; end = Math.PI * 1.5; open = true; } else { start = startAngleRad + this.translate(from); end = startAngleRad + this.translate(to); } ret = this.chart.renderer.symbols.arc( this.left + center[0], this.top + center[1], radii[0], radii[0], { start: Math.min(start, end), // Math is for reversed yAxis (#3606) end: Math.max(start, end), innerR: pick(radii[1], radii[0] - radii[2]), open: open } ); } return ret; }, /** * Find the path for plot lines perpendicular to the radial axis. */ getPlotLinePath: function (value, reverse) { var axis = this, center = axis.center, chart = axis.chart, end = axis.getPosition(value), xAxis, xy, tickPositions, ret; // Spokes if (axis.isCircular) { ret = ['M', center[0] + chart.plotLeft, center[1] + chart.plotTop, 'L', end.x, end.y]; // Concentric circles } else if (axis.options.gridLineInterpolation === 'circle') { value = axis.translate(value); if (value) { // a value of 0 is in the center ret = axis.getLinePath(0, value); } // Concentric polygons } else { // Find the X axis in the same pane each(chart.xAxis, function (a) { if (a.pane === axis.pane) { xAxis = a; } }); ret = []; value = axis.translate(value); tickPositions = xAxis.tickPositions; if (xAxis.autoConnect) { tickPositions = tickPositions.concat([tickPositions[0]]); } // Reverse the positions for concatenation of polygonal plot bands if (reverse) { tickPositions = [].concat(tickPositions).reverse(); } each(tickPositions, function (pos, i) { xy = xAxis.getPosition(pos, value); ret.push(i ? 'L' : 'M', xy.x, xy.y); }); } return ret; }, /** * Find the position for the axis title, by default inside the gauge */ getTitlePosition: function () { var center = this.center, chart = this.chart, titleOptions = this.options.title; return { x: chart.plotLeft + center[0] + (titleOptions.x || 0), y: chart.plotTop + center[1] - ({ high: 0.5, middle: 0.25, low: 0 }[titleOptions.align] * center[2]) + (titleOptions.y || 0) }; } }; /** * Override axisProto.init to mix in special axis instance functions and function overrides */ wrap(axisProto, 'init', function (proceed, chart, userOptions) { var axis = this, angular = chart.angular, polar = chart.polar, isX = userOptions.isX, isHidden = angular && isX, isCircular, startAngleRad, endAngleRad, options, chartOptions = chart.options, paneIndex = userOptions.pane || 0, pane, paneOptions; // Before prototype.init if (angular) { extend(this, isHidden ? hiddenAxisMixin : radialAxisMixin); isCircular = !isX; if (isCircular) { this.defaultRadialOptions = this.defaultRadialGaugeOptions; } } else if (polar) { //extend(this, userOptions.isX ? radialAxisMixin : radialAxisMixin); extend(this, radialAxisMixin); isCircular = isX; this.defaultRadialOptions = isX ? this.defaultRadialXOptions : merge(this.defaultYAxisOptions, this.defaultRadialYOptions); } // Run prototype.init proceed.call(this, chart, userOptions); if (!isHidden && (angular || polar)) { options = this.options; // Create the pane and set the pane options. if (!chart.panes) { chart.panes = []; } this.pane = pane = chart.panes[paneIndex] = chart.panes[paneIndex] || new Pane( splat(chartOptions.pane)[paneIndex], chart, axis ); paneOptions = pane.options; // Disable certain features on angular and polar axes chart.inverted = false; chartOptions.chart.zoomType = null; // Start and end angle options are // given in degrees relative to top, while internal computations are // in radians relative to right (like SVG). this.startAngleRad = startAngleRad = (paneOptions.startAngle - 90) * Math.PI / 180; this.endAngleRad = endAngleRad = (pick(paneOptions.endAngle, paneOptions.startAngle + 360) - 90) * Math.PI / 180; this.offset = options.offset || 0; this.isCircular = isCircular; // Automatically connect grid lines? if (isCircular && userOptions.max === UNDEFINED && endAngleRad - startAngleRad === 2 * Math.PI) { this.autoConnect = true; } } }); /** * Wrap auto label align to avoid setting axis-wide rotation on radial axes (#4920) * @param {Function} proceed * @returns {String} Alignment */ wrap(axisProto, 'autoLabelAlign', function (proceed) { if (!this.isRadial) { return proceed.apply(this, [].slice.call(arguments, 1)); } // else return undefined }); /** * Add special cases within the Tick class' methods for radial axes. */ wrap(tickProto, 'getPosition', function (proceed, horiz, pos, tickmarkOffset, old) { var axis = this.axis; return axis.getPosition ? axis.getPosition(pos) : proceed.call(this, horiz, pos, tickmarkOffset, old); }); /** * Wrap the getLabelPosition function to find the center position of the label * based on the distance option */ wrap(tickProto, 'getLabelPosition', function (proceed, x, y, label, horiz, labelOptions, tickmarkOffset, index, step) { var axis = this.axis, optionsY = labelOptions.y, ret, centerSlot = 20, // 20 degrees to each side at the top and bottom align = labelOptions.align, angle = ((axis.translate(this.pos) + axis.startAngleRad + Math.PI / 2) / Math.PI * 180) % 360; if (axis.isRadial) { ret = axis.getPosition(this.pos, (axis.center[2] / 2) + pick(labelOptions.distance, -25)); // Automatically rotated if (labelOptions.rotation === 'auto') { label.attr({ rotation: angle }); // Vertically centered } else if (optionsY === null) { optionsY = axis.chart.renderer.fontMetrics(label.styles.fontSize).b - label.getBBox().height / 2; } // Automatic alignment if (align === null) { if (axis.isCircular) { if (this.label.getBBox().width > axis.len * axis.tickInterval / (axis.max - axis.min)) { // #3506 centerSlot = 0; } if (angle > centerSlot && angle < 180 - centerSlot) { align = 'left'; // right hemisphere } else if (angle > 180 + centerSlot && angle < 360 - centerSlot) { align = 'right'; // left hemisphere } else { align = 'center'; // top or bottom } } else { align = 'center'; } label.attr({ align: align }); } ret.x += labelOptions.x; ret.y += optionsY; } else { ret = proceed.call(this, x, y, label, horiz, labelOptions, tickmarkOffset, index, step); } return ret; }); /** * Wrap the getMarkPath function to return the path of the radial marker */ wrap(tickProto, 'getMarkPath', function (proceed, x, y, tickLength, tickWidth, horiz, renderer) { var axis = this.axis, endPoint, ret; if (axis.isRadial) { endPoint = axis.getPosition(this.pos, axis.center[2] / 2 + tickLength); ret = [ 'M', x, y, 'L', endPoint.x, endPoint.y ]; } else { ret = proceed.call(this, x, y, tickLength, tickWidth, horiz, renderer); } return ret; });/* * The AreaRangeSeries class * */ /** * Extend the default options with map options */ defaultPlotOptions.arearange = merge(defaultPlotOptions.area, { lineWidth: 1, marker: null, threshold: null, tooltip: { pointFormat: '<span style="color:{series.color}">\u25CF</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>' }, trackByArea: true, dataLabels: { align: null, verticalAlign: null, xLow: 0, xHigh: 0, yLow: 0, yHigh: 0 }, states: { hover: { halo: false } } }); /** * Add the series type */ seriesTypes.arearange = extendClass(seriesTypes.area, { type: 'arearange', pointArrayMap: ['low', 'high'], dataLabelCollections: ['dataLabel', 'dataLabelUpper'], toYData: function (point) { return [point.low, point.high]; }, pointValKey: 'low', deferTranslatePolar: true, /** * Translate a point's plotHigh from the internal angle and radius measures to * true plotHigh coordinates. This is an addition of the toXY method found in * Polar.js, because it runs too early for arearanges to be considered (#3419). */ highToXY: function (point) { // Find the polar plotX and plotY var chart = this.chart, xy = this.xAxis.postTranslate(point.rectPlotX, this.yAxis.len - point.plotHigh); point.plotHighX = xy.x - chart.plotLeft; point.plotHigh = xy.y - chart.plotTop; }, /** * Translate data points from raw values x and y to plotX and plotY */ translate: function () { var series = this, yAxis = series.yAxis; seriesTypes.area.prototype.translate.apply(series); // Set plotLow and plotHigh each(series.points, function (point) { var low = point.low, high = point.high, plotY = point.plotY; if (high === null || low === null) { point.isNull = true; } else { point.plotLow = plotY; point.plotHigh = yAxis.translate(high, 0, 1, 0, 1); } }); // Postprocess plotHigh if (this.chart.polar) { each(this.points, function (point) { series.highToXY(point); }); } }, /** * Extend the line series' getSegmentPath method by applying the segment * path to both lower and higher values of the range */ getGraphPath: function () { var points = this.points, highPoints = [], highAreaPoints = [], i = points.length, getGraphPath = Series.prototype.getGraphPath, point, pointShim, linePath, lowerPath, options = this.options, step = options.step, higherPath, higherAreaPath; // Create the top line and the top part of the area fill. The area fill compensates for // null points by drawing down to the lower graph, moving across the null gap and // starting again at the lower graph. i = points.length; while (i--) { point = points[i]; if (!point.isNull && (!points[i + 1] || points[i + 1].isNull)) { highAreaPoints.push({ plotX: point.plotX, plotY: point.plotLow }); } pointShim = { plotX: point.plotX, plotY: point.plotHigh, isNull: point.isNull }; highAreaPoints.push(pointShim); highPoints.push(pointShim); if (!point.isNull && (!points[i - 1] || points[i - 1].isNull)) { highAreaPoints.push({ plotX: point.plotX, plotY: point.plotLow }); } } // Get the paths lowerPath = getGraphPath.call(this, points); if (step) { if (step === true) { step = 'left'; } options.step = { left: 'right', center: 'center', right: 'left' }[step]; // swap for reading in getGraphPath } higherPath = getGraphPath.call(this, highPoints); higherAreaPath = getGraphPath.call(this, highAreaPoints); options.step = step; // Create a line on both top and bottom of the range linePath = [].concat(lowerPath, higherPath); // For the area path, we need to change the 'move' statement into 'lineTo' or 'curveTo' if (!this.chart.polar) { higherAreaPath[0] = 'L'; // this probably doesn't work for spline } this.areaPath = this.areaPath.concat(lowerPath, higherAreaPath); return linePath; }, /** * Extend the basic drawDataLabels method by running it for both lower and higher * values. */ drawDataLabels: function () { var data = this.data, length = data.length, i, originalDataLabels = [], seriesProto = Series.prototype, dataLabelOptions = this.options.dataLabels, align = dataLabelOptions.align, verticalAlign = dataLabelOptions.verticalAlign, inside = dataLabelOptions.inside, point, up, inverted = this.chart.inverted; if (dataLabelOptions.enabled || this._hasPointLabels) { // Step 1: set preliminary values for plotY and dataLabel and draw the upper labels i = length; while (i--) { point = data[i]; if (point) { up = inside ? point.plotHigh < point.plotLow : point.plotHigh > point.plotLow; // Set preliminary values point.y = point.high; point._plotY = point.plotY; point.plotY = point.plotHigh; // Store original data labels and set preliminary label objects to be picked up // in the uber method originalDataLabels[i] = point.dataLabel; point.dataLabel = point.dataLabelUpper; // Set the default offset point.below = up; if (inverted) { if (!align) { dataLabelOptions.align = up ? 'right' : 'left'; } } else { if (!verticalAlign) { dataLabelOptions.verticalAlign = up ? 'top' : 'bottom'; } } dataLabelOptions.x = dataLabelOptions.xHigh; dataLabelOptions.y = dataLabelOptions.yHigh; } } if (seriesProto.drawDataLabels) { seriesProto.drawDataLabels.apply(this, arguments); // #1209 } // Step 2: reorganize and handle data labels for the lower values i = length; while (i--) { point = data[i]; if (point) { up = inside ? point.plotHigh < point.plotLow : point.plotHigh > point.plotLow; // Move the generated labels from step 1, and reassign the original data labels point.dataLabelUpper = point.dataLabel; point.dataLabel = originalDataLabels[i]; // Reset values point.y = point.low; point.plotY = point._plotY; // Set the default offset point.below = !up; if (inverted) { if (!align) { dataLabelOptions.align = up ? 'left' : 'right'; } } else { if (!verticalAlign) { dataLabelOptions.verticalAlign = up ? 'bottom' : 'top'; } } dataLabelOptions.x = dataLabelOptions.xLow; dataLabelOptions.y = dataLabelOptions.yLow; } } if (seriesProto.drawDataLabels) { seriesProto.drawDataLabels.apply(this, arguments); } } dataLabelOptions.align = align; dataLabelOptions.verticalAlign = verticalAlign; }, alignDataLabel: function () { seriesTypes.column.prototype.alignDataLabel.apply(this, arguments); }, setStackedPoints: noop, getSymbol: noop, drawPoints: noop }); /** * The AreaSplineRangeSeries class */ defaultPlotOptions.areasplinerange = merge(defaultPlotOptions.arearange); /** * AreaSplineRangeSeries object */ seriesTypes.areasplinerange = extendClass(seriesTypes.arearange, { type: 'areasplinerange', getPointSpline: seriesTypes.spline.prototype.getPointSpline }); (function () { var colProto = seriesTypes.column.prototype; /** * The ColumnRangeSeries class */ defaultPlotOptions.columnrange = merge(defaultPlotOptions.column, defaultPlotOptions.arearange, { lineWidth: 1, pointRange: null }); /** * ColumnRangeSeries object */ seriesTypes.columnrange = extendClass(seriesTypes.arearange, { type: 'columnrange', /** * Translate data points from raw values x and y to plotX and plotY */ translate: function () { var series = this, yAxis = series.yAxis, xAxis = series.xAxis, chart = series.chart, plotHigh; colProto.translate.apply(series); // Set plotLow and plotHigh each(series.points, function (point) { var shapeArgs = point.shapeArgs, minPointLength = series.options.minPointLength, heightDifference, height, y; point.plotHigh = plotHigh = yAxis.translate(point.high, 0, 1, 0, 1); point.plotLow = point.plotY; // adjust shape y = plotHigh; height = point.plotY - plotHigh; // Adjust for minPointLength if (Math.abs(height) < minPointLength) { heightDifference = (minPointLength - height); height += heightDifference; y -= heightDifference / 2; // Adjust for negative ranges or reversed Y axis (#1457) } else if (height < 0) { height *= -1; y -= height; } shapeArgs.height = height; shapeArgs.y = y; point.tooltipPos = chart.inverted ? [ yAxis.len + yAxis.pos - chart.plotLeft - y - height / 2, xAxis.len + xAxis.pos - chart.plotTop - shapeArgs.x - shapeArgs.width / 2, height ] : [ xAxis.left - chart.plotLeft + shapeArgs.x + shapeArgs.width / 2, yAxis.pos - chart.plotTop + y + height / 2, height ]; // don't inherit from column tooltip position - #3372 }); }, directTouch: true, trackerGroups: ['group', 'dataLabelsGroup'], drawGraph: noop, crispCol: colProto.crispCol, pointAttrToOptions: colProto.pointAttrToOptions, drawPoints: colProto.drawPoints, drawTracker: colProto.drawTracker, animate: colProto.animate, getColumnMetrics: colProto.getColumnMetrics }); }()); /* * The GaugeSeries class */ /** * Extend the default options */ defaultPlotOptions.gauge = merge(defaultPlotOptions.line, { dataLabels: { enabled: true, defer: false, y: 15, borderWidth: 1, borderColor: 'silver', borderRadius: 3, crop: false, verticalAlign: 'top', zIndex: 2 }, dial: { // radius: '80%', // backgroundColor: 'black', // borderColor: 'silver', // borderWidth: 0, // baseWidth: 3, // topWidth: 1, // baseLength: '70%' // of radius // rearLength: '10%' }, pivot: { //radius: 5, //borderWidth: 0 //borderColor: 'silver', //backgroundColor: 'black' }, tooltip: { headerFormat: '' }, showInLegend: false }); /** * Extend the point object */ var GaugePoint = extendClass(Point, { /** * Don't do any hover colors or anything */ setState: function (state) { this.state = state; } }); /** * Add the series type */ var GaugeSeries = { type: 'gauge', pointClass: GaugePoint, // chart.angular will be set to true when a gauge series is present, and this will // be used on the axes angular: true, drawGraph: noop, fixedBox: true, forceDL: true, trackerGroups: ['group', 'dataLabelsGroup'], /** * Calculate paths etc */ translate: function () { var series = this, yAxis = series.yAxis, options = series.options, center = yAxis.center; series.generatePoints(); each(series.points, function (point) { var dialOptions = merge(options.dial, point.dial), radius = (pInt(pick(dialOptions.radius, 80)) * center[2]) / 200, baseLength = (pInt(pick(dialOptions.baseLength, 70)) * radius) / 100, rearLength = (pInt(pick(dialOptions.rearLength, 10)) * radius) / 100, baseWidth = dialOptions.baseWidth || 3, topWidth = dialOptions.topWidth || 1, overshoot = options.overshoot, rotation = yAxis.startAngleRad + yAxis.translate(point.y, null, null, null, true); // Handle the wrap and overshoot options if (overshoot && typeof overshoot === 'number') { overshoot = overshoot / 180 * Math.PI; rotation = Math.max(yAxis.startAngleRad - overshoot, Math.min(yAxis.endAngleRad + overshoot, rotation)); } else if (options.wrap === false) { rotation = Math.max(yAxis.startAngleRad, Math.min(yAxis.endAngleRad, rotation)); } rotation = rotation * 180 / Math.PI; point.shapeType = 'path'; point.shapeArgs = { d: dialOptions.path || [ 'M', -rearLength, -baseWidth / 2, 'L', baseLength, -baseWidth / 2, radius, -topWidth / 2, radius, topWidth / 2, baseLength, baseWidth / 2, -rearLength, baseWidth / 2, 'z' ], translateX: center[0], translateY: center[1], rotation: rotation }; // Positions for data label point.plotX = center[0]; point.plotY = center[1]; }); }, /** * Draw the points where each point is one needle */ drawPoints: function () { var series = this, center = series.yAxis.center, pivot = series.pivot, options = series.options, pivotOptions = options.pivot, renderer = series.chart.renderer; each(series.points, function (point) { var graphic = point.graphic, shapeArgs = point.shapeArgs, d = shapeArgs.d, dialOptions = merge(options.dial, point.dial); // #1233 if (graphic) { graphic.animate(shapeArgs); shapeArgs.d = d; // animate alters it } else { point.graphic = renderer[point.shapeType](shapeArgs) .attr({ stroke: dialOptions.borderColor || 'none', 'stroke-width': dialOptions.borderWidth || 0, fill: dialOptions.backgroundColor || 'black', rotation: shapeArgs.rotation, // required by VML when animation is false zIndex: 1 }) .add(series.group); } }); // Add or move the pivot if (pivot) { pivot.animate({ // #1235 translateX: center[0], translateY: center[1] }); } else { series.pivot = renderer.circle(0, 0, pick(pivotOptions.radius, 5)) .attr({ 'stroke-width': pivotOptions.borderWidth || 0, stroke: pivotOptions.borderColor || 'silver', fill: pivotOptions.backgroundColor || 'black', zIndex: 2 }) .translate(center[0], center[1]) .add(series.group); } }, /** * Animate the arrow up from startAngle */ animate: function (init) { var series = this; if (!init) { each(series.points, function (point) { var graphic = point.graphic; if (graphic) { // start value graphic.attr({ rotation: series.yAxis.startAngleRad * 180 / Math.PI }); // animate graphic.animate({ rotation: point.shapeArgs.rotation }, series.options.animation); } }); // delete this function to allow it only once series.animate = null; } }, render: function () { this.group = this.plotGroup( 'group', 'series', this.visible ? 'visible' : 'hidden', this.options.zIndex, this.chart.seriesGroup ); Series.prototype.render.call(this); this.group.clip(this.chart.clipRect); }, /** * Extend the basic setData method by running processData and generatePoints immediately, * in order to access the points from the legend. */ setData: function (data, redraw) { Series.prototype.setData.call(this, data, false); this.processData(); this.generatePoints(); if (pick(redraw, true)) { this.chart.redraw(); } }, /** * If the tracking module is loaded, add the point tracker */ drawTracker: TrackerMixin && TrackerMixin.drawTrackerPoint }; seriesTypes.gauge = extendClass(seriesTypes.line, GaugeSeries); /* **************************************************************************** * Start Box plot series code * *****************************************************************************/ // Set default options defaultPlotOptions.boxplot = merge(defaultPlotOptions.column, { fillColor: '#FFFFFF', lineWidth: 1, //medianColor: null, medianWidth: 2, states: { hover: { brightness: -0.3 } }, //stemColor: null, //stemDashStyle: 'solid' //stemWidth: null, threshold: null, tooltip: { pointFormat: '<span style="color:{point.color}">\u25CF</span> <b> {series.name}</b><br/>' + 'Maximum: {point.high}<br/>' + 'Upper quartile: {point.q3}<br/>' + 'Median: {point.median}<br/>' + 'Lower quartile: {point.q1}<br/>' + 'Minimum: {point.low}<br/>' }, //whiskerColor: null, whiskerLength: '50%', whiskerWidth: 2 }); // Create the series object seriesTypes.boxplot = extendClass(seriesTypes.column, { type: 'boxplot', pointArrayMap: ['low', 'q1', 'median', 'q3', 'high'], // array point configs are mapped to this toYData: function (point) { // return a plain array for speedy calculation return [point.low, point.q1, point.median, point.q3, point.high]; }, pointValKey: 'high', // defines the top of the tracker /** * One-to-one mapping from options to SVG attributes */ pointAttrToOptions: { // mapping between SVG attributes and the corresponding options fill: 'fillColor', stroke: 'color', 'stroke-width': 'lineWidth' }, /** * Disable data labels for box plot */ drawDataLabels: noop, /** * Translate data points from raw values x and y to plotX and plotY */ translate: function () { var series = this, yAxis = series.yAxis, pointArrayMap = series.pointArrayMap; seriesTypes.column.prototype.translate.apply(series); // do the translation on each point dimension each(series.points, function (point) { each(pointArrayMap, function (key) { if (point[key] !== null) { point[key + 'Plot'] = yAxis.translate(point[key], 0, 1, 0, 1); } }); }); }, /** * Draw the data points */ drawPoints: function () { var series = this, //state = series.state, points = series.points, options = series.options, chart = series.chart, renderer = chart.renderer, pointAttr, q1Plot, q3Plot, highPlot, lowPlot, medianPlot, crispCorr, crispX, graphic, stemPath, stemAttr, boxPath, whiskersPath, whiskersAttr, medianPath, medianAttr, width, left, right, halfWidth, shapeArgs, color, doQuartiles = series.doQuartiles !== false, // error bar inherits this series type but doesn't do quartiles pointWiskerLength, whiskerLength = series.options.whiskerLength; each(points, function (point) { graphic = point.graphic; shapeArgs = point.shapeArgs; // the box stemAttr = {}; whiskersAttr = {}; medianAttr = {}; color = point.color || series.color; if (point.plotY !== UNDEFINED) { pointAttr = point.pointAttr[point.selected ? 'selected' : '']; // crisp vector coordinates width = shapeArgs.width; left = mathFloor(shapeArgs.x); right = left + width; halfWidth = mathRound(width / 2); //crispX = mathRound(left + halfWidth) + crispCorr; q1Plot = mathFloor(doQuartiles ? point.q1Plot : point.lowPlot);// + crispCorr; q3Plot = mathFloor(doQuartiles ? point.q3Plot : point.lowPlot);// + crispCorr; highPlot = mathFloor(point.highPlot);// + crispCorr; lowPlot = mathFloor(point.lowPlot);// + crispCorr; // Stem attributes stemAttr.stroke = point.stemColor || options.stemColor || color; stemAttr['stroke-width'] = pick(point.stemWidth, options.stemWidth, options.lineWidth); stemAttr.dashstyle = point.stemDashStyle || options.stemDashStyle; // Whiskers attributes whiskersAttr.stroke = point.whiskerColor || options.whiskerColor || color; whiskersAttr['stroke-width'] = pick(point.whiskerWidth, options.whiskerWidth, options.lineWidth); // Median attributes medianAttr.stroke = point.medianColor || options.medianColor || color; medianAttr['stroke-width'] = pick(point.medianWidth, options.medianWidth, options.lineWidth); // The stem crispCorr = (stemAttr['stroke-width'] % 2) / 2; crispX = left + halfWidth + crispCorr; stemPath = [ // stem up 'M', crispX, q3Plot, 'L', crispX, highPlot, // stem down 'M', crispX, q1Plot, 'L', crispX, lowPlot ]; // The box if (doQuartiles) { crispCorr = (pointAttr['stroke-width'] % 2) / 2; crispX = mathFloor(crispX) + crispCorr; q1Plot = mathFloor(q1Plot) + crispCorr; q3Plot = mathFloor(q3Plot) + crispCorr; left += crispCorr; right += crispCorr; boxPath = [ 'M', left, q3Plot, 'L', left, q1Plot, 'L', right, q1Plot, 'L', right, q3Plot, 'L', left, q3Plot, 'z' ]; } // The whiskers if (whiskerLength) { crispCorr = (whiskersAttr['stroke-width'] % 2) / 2; highPlot = highPlot + crispCorr; lowPlot = lowPlot + crispCorr; pointWiskerLength = (/%$/).test(whiskerLength) ? halfWidth * parseFloat(whiskerLength) / 100 : whiskerLength / 2; whiskersPath = [ // High whisker 'M', crispX - pointWiskerLength, highPlot, 'L', crispX + pointWiskerLength, highPlot, // Low whisker 'M', crispX - pointWiskerLength, lowPlot, 'L', crispX + pointWiskerLength, lowPlot ]; } // The median crispCorr = (medianAttr['stroke-width'] % 2) / 2; medianPlot = mathRound(point.medianPlot) + crispCorr; medianPath = [ 'M', left, medianPlot, 'L', right, medianPlot ]; // Create or update the graphics if (graphic) { // update point.stem.animate({ d: stemPath }); if (whiskerLength) { point.whiskers.animate({ d: whiskersPath }); } if (doQuartiles) { point.box.animate({ d: boxPath }); } point.medianShape.animate({ d: medianPath }); } else { // create new point.graphic = graphic = renderer.g() .add(series.group); point.stem = renderer.path(stemPath) .attr(stemAttr) .add(graphic); if (whiskerLength) { point.whiskers = renderer.path(whiskersPath) .attr(whiskersAttr) .add(graphic); } if (doQuartiles) { point.box = renderer.path(boxPath) .attr(pointAttr) .add(graphic); } point.medianShape = renderer.path(medianPath) .attr(medianAttr) .add(graphic); } } }); }, setStackedPoints: noop // #3890 }); /* **************************************************************************** * End Box plot series code * *****************************************************************************/ /* **************************************************************************** * Start error bar series code * *****************************************************************************/ // 1 - set default options defaultPlotOptions.errorbar = merge(defaultPlotOptions.boxplot, { color: '#000000', grouping: false, linkedTo: ':previous', tooltip: { pointFormat: '<span style="color:{point.color}">\u25CF</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>' }, whiskerWidth: null }); // 2 - Create the series object seriesTypes.errorbar = extendClass(seriesTypes.boxplot, { type: 'errorbar', pointArrayMap: ['low', 'high'], // array point configs are mapped to this toYData: function (point) { // return a plain array for speedy calculation return [point.low, point.high]; }, pointValKey: 'high', // defines the top of the tracker doQuartiles: false, drawDataLabels: seriesTypes.arearange ? seriesTypes.arearange.prototype.drawDataLabels : noop, /** * Get the width and X offset, either on top of the linked series column * or standalone */ getColumnMetrics: function () { return (this.linkedParent && this.linkedParent.columnMetrics) || seriesTypes.column.prototype.getColumnMetrics.call(this); } }); /* **************************************************************************** * End error bar series code * *****************************************************************************/ /* **************************************************************************** * Start Waterfall series code * *****************************************************************************/ // 1 - set default options defaultPlotOptions.waterfall = merge(defaultPlotOptions.column, { lineWidth: 1, lineColor: '#333', dashStyle: 'dot', borderColor: '#333', dataLabels: { inside: true }, states: { hover: { lineWidthPlus: 0 // #3126 } } }); // 2 - Create the series object seriesTypes.waterfall = extendClass(seriesTypes.column, { type: 'waterfall', upColorProp: 'fill', pointValKey: 'y', /** * Translate data points from raw values */ translate: function () { var series = this, options = series.options, yAxis = series.yAxis, len, i, points, point, shapeArgs, stack, y, yValue, previousY, previousIntermediate, range, minPointLength = pick(options.minPointLength, 5), threshold = options.threshold, stacking = options.stacking, tooltipY; // run column series translate seriesTypes.column.prototype.translate.apply(this); series.minPointLengthOffset = 0; previousY = previousIntermediate = threshold; points = series.points; for (i = 0, len = points.length; i < len; i++) { // cache current point object point = points[i]; yValue = this.processedYData[i]; shapeArgs = point.shapeArgs; // get current stack stack = stacking && yAxis.stacks[(series.negStacks && yValue < threshold ? '-' : '') + series.stackKey]; range = stack ? stack[point.x].points[series.index + ',' + i] : [0, yValue]; // override point value for sums // #3710 Update point does not propagate to sum if (point.isSum) { point.y = yValue; } else if (point.isIntermediateSum) { point.y = yValue - previousIntermediate; // #3840 } // up points y = mathMax(previousY, previousY + point.y) + range[0]; shapeArgs.y = yAxis.translate(y, 0, 1); // sum points if (point.isSum) { shapeArgs.y = yAxis.translate(range[1], 0, 1); shapeArgs.height = Math.min(yAxis.translate(range[0], 0, 1), yAxis.len) - shapeArgs.y + series.minPointLengthOffset; // #4256 } else if (point.isIntermediateSum) { shapeArgs.y = yAxis.translate(range[1], 0, 1); shapeArgs.height = Math.min(yAxis.translate(previousIntermediate, 0, 1), yAxis.len) - shapeArgs.y + series.minPointLengthOffset; previousIntermediate = range[1]; // If it's not the sum point, update previous stack end position and get // shape height (#3886) } else { if (previousY !== 0) { // Not the first point shapeArgs.height = yValue > 0 ? yAxis.translate(previousY, 0, 1) - shapeArgs.y : yAxis.translate(previousY, 0, 1) - yAxis.translate(previousY - yValue, 0, 1); } previousY += yValue; } // #3952 Negative sum or intermediate sum not rendered correctly if (shapeArgs.height < 0) { shapeArgs.y += shapeArgs.height; shapeArgs.height *= -1; } point.plotY = shapeArgs.y = mathRound(shapeArgs.y) - (series.borderWidth % 2) / 2; shapeArgs.height = mathMax(mathRound(shapeArgs.height), 0.001); // #3151 point.yBottom = shapeArgs.y + shapeArgs.height; if (shapeArgs.height <= minPointLength) { shapeArgs.height = minPointLength; series.minPointLengthOffset += minPointLength; } shapeArgs.y -= series.minPointLengthOffset; // Correct tooltip placement (#3014) tooltipY = point.plotY + (point.negative ? shapeArgs.height : 0) - series.minPointLengthOffset; if (series.chart.inverted) { point.tooltipPos[0] = yAxis.len - tooltipY; } else { point.tooltipPos[1] = tooltipY; } } }, /** * Call default processData then override yData to reflect waterfall's extremes on yAxis */ processData: function (force) { var series = this, options = series.options, yData = series.yData, points = series.options.data, // #3710 Update point does not propagate to sum point, dataLength = yData.length, threshold = options.threshold || 0, subSum, sum, dataMin, dataMax, y, i; sum = subSum = dataMin = dataMax = threshold; for (i = 0; i < dataLength; i++) { y = yData[i]; point = points && points[i] ? points[i] : {}; if (y === 'sum' || point.isSum) { yData[i] = sum; } else if (y === 'intermediateSum' || point.isIntermediateSum) { yData[i] = subSum; } else { sum += y; subSum += y; } dataMin = Math.min(sum, dataMin); dataMax = Math.max(sum, dataMax); } Series.prototype.processData.call(this, force); // Record extremes series.dataMin = dataMin; series.dataMax = dataMax; }, /** * Return y value or string if point is sum */ toYData: function (pt) { if (pt.isSum) { return (pt.x === 0 ? null : 'sum'); //#3245 Error when first element is Sum or Intermediate Sum } if (pt.isIntermediateSum) { return (pt.x === 0 ? null : 'intermediateSum'); //#3245 } return pt.y; }, /** * Postprocess mapping between options and SVG attributes */ getAttribs: function () { seriesTypes.column.prototype.getAttribs.apply(this, arguments); var series = this, options = series.options, stateOptions = options.states, upColor = options.upColor || series.color, hoverColor = Highcharts.Color(upColor).brighten(0.1).get(), seriesDownPointAttr = merge(series.pointAttr), upColorProp = series.upColorProp; seriesDownPointAttr[''][upColorProp] = upColor; seriesDownPointAttr.hover[upColorProp] = stateOptions.hover.upColor || hoverColor; seriesDownPointAttr.select[upColorProp] = stateOptions.select.upColor || upColor; each(series.points, function (point) { if (!point.options.color) { // Up color if (point.y > 0) { point.pointAttr = seriesDownPointAttr; point.color = upColor; // Down color (#3710, update to negative) } else { point.pointAttr = series.pointAttr; } } }); }, /** * Draw columns' connector lines */ getGraphPath: function () { var data = this.data, length = data.length, lineWidth = this.options.lineWidth + this.borderWidth, normalizer = mathRound(lineWidth) % 2 / 2, path = [], M = 'M', L = 'L', prevArgs, pointArgs, i, d; for (i = 1; i < length; i++) { pointArgs = data[i].shapeArgs; prevArgs = data[i - 1].shapeArgs; d = [ M, prevArgs.x + prevArgs.width, prevArgs.y + normalizer, L, pointArgs.x, prevArgs.y + normalizer ]; if (data[i - 1].y < 0) { d[2] += prevArgs.height; d[5] += prevArgs.height; } path = path.concat(d); } return path; }, /** * Extremes are recorded in processData */ getExtremes: noop, drawGraph: Series.prototype.drawGraph }); /* **************************************************************************** * End Waterfall series code * *****************************************************************************/ /** * Set the default options for polygon */ defaultPlotOptions.polygon = merge(defaultPlotOptions.scatter, { marker: { enabled: false } }); /** * The polygon series class */ seriesTypes.polygon = extendClass(seriesTypes.scatter, { type: 'polygon', fillGraph: true, // Close all segments getSegmentPath: function (segment) { return Series.prototype.getSegmentPath.call(this, segment).concat('z'); }, drawGraph: Series.prototype.drawGraph, drawLegendSymbol: Highcharts.LegendSymbolMixin.drawRectangle }); /* **************************************************************************** * Start Bubble series code * *****************************************************************************/ // 1 - set default options defaultPlotOptions.bubble = merge(defaultPlotOptions.scatter, { dataLabels: { formatter: function () { // #2945 return this.point.z; }, inside: true, verticalAlign: 'middle' }, // displayNegative: true, marker: { // fillOpacity: 0.5, lineColor: null, // inherit from series.color lineWidth: 1 }, minSize: 8, maxSize: '20%', // negativeColor: null, // sizeBy: 'area' softThreshold: false, states: { hover: { halo: { size: 5 } } }, tooltip: { pointFormat: '({point.x}, {point.y}), Size: {point.z}' }, turboThreshold: 0, zThreshold: 0, zoneAxis: 'z' }); var BubblePoint = extendClass(Point, { haloPath: function () { return Point.prototype.haloPath.call(this, this.shapeArgs.r + this.series.options.states.hover.halo.size); }, ttBelow: false }); // 2 - Create the series object seriesTypes.bubble = extendClass(seriesTypes.scatter, { type: 'bubble', pointClass: BubblePoint, pointArrayMap: ['y', 'z'], parallelArrays: ['x', 'y', 'z'], trackerGroups: ['group', 'dataLabelsGroup'], bubblePadding: true, zoneAxis: 'z', /** * Mapping between SVG attributes and the corresponding options */ pointAttrToOptions: { stroke: 'lineColor', 'stroke-width': 'lineWidth', fill: 'fillColor' }, /** * Apply the fillOpacity to all fill positions */ applyOpacity: function (fill) { var markerOptions = this.options.marker, fillOpacity = pick(markerOptions.fillOpacity, 0.5); // When called from Legend.colorizeItem, the fill isn't predefined fill = fill || markerOptions.fillColor || this.color; if (fillOpacity !== 1) { fill = Color(fill).setOpacity(fillOpacity).get('rgba'); } return fill; }, /** * Extend the convertAttribs method by applying opacity to the fill */ convertAttribs: function () { var obj = Series.prototype.convertAttribs.apply(this, arguments); obj.fill = this.applyOpacity(obj.fill); return obj; }, /** * Get the radius for each point based on the minSize, maxSize and each point's Z value. This * must be done prior to Series.translate because the axis needs to add padding in * accordance with the point sizes. */ getRadii: function (zMin, zMax, minSize, maxSize) { var len, i, pos, zData = this.zData, radii = [], options = this.options, sizeByArea = options.sizeBy !== 'width', zThreshold = options.zThreshold, zRange = zMax - zMin, value, radius; // Set the shape type and arguments to be picked up in drawPoints for (i = 0, len = zData.length; i < len; i++) { value = zData[i]; // When sizing by threshold, the absolute value of z determines the size // of the bubble. if (options.sizeByAbsoluteValue && value !== null) { value = Math.abs(value - zThreshold); zMax = Math.max(zMax - zThreshold, Math.abs(zMin - zThreshold)); zMin = 0; } if (value === null) { radius = null; // Issue #4419 - if value is less than zMin, push a radius that's always smaller than the minimum size } else if (value < zMin) { radius = minSize / 2 - 1; } else { // Relative size, a number between 0 and 1 pos = zRange > 0 ? (value - zMin) / zRange : 0.5; if (sizeByArea && pos >= 0) { pos = Math.sqrt(pos); } radius = math.ceil(minSize + pos * (maxSize - minSize)) / 2; } radii.push(radius); } this.radii = radii; }, /** * Perform animation on the bubbles */ animate: function (init) { var animation = this.options.animation; if (!init) { // run the animation each(this.points, function (point) { var graphic = point.graphic, shapeArgs = point.shapeArgs; if (graphic && shapeArgs) { // start values graphic.attr('r', 1); // animate graphic.animate({ r: shapeArgs.r }, animation); } }); // delete this function to allow it only once this.animate = null; } }, /** * Extend the base translate method to handle bubble size */ translate: function () { var i, data = this.data, point, radius, radii = this.radii; // Run the parent method seriesTypes.scatter.prototype.translate.call(this); // Set the shape type and arguments to be picked up in drawPoints i = data.length; while (i--) { point = data[i]; radius = radii ? radii[i] : 0; // #1737 if (typeof radius === 'number' && radius >= this.minPxSize / 2) { // Shape arguments point.shapeType = 'circle'; point.shapeArgs = { x: point.plotX, y: point.plotY, r: radius }; // Alignment box for the data label point.dlBox = { x: point.plotX - radius, y: point.plotY - radius, width: 2 * radius, height: 2 * radius }; } else { // below zThreshold or z = null point.shapeArgs = point.plotY = point.dlBox = UNDEFINED; // #1691 } } }, /** * Get the series' symbol in the legend * * @param {Object} legend The legend object * @param {Object} item The series (this) or point */ drawLegendSymbol: function (legend, item) { var renderer = this.chart.renderer, radius = renderer.fontMetrics(legend.itemStyle.fontSize).f / 2; item.legendSymbol = renderer.circle( radius, legend.baseline - radius, radius ).attr({ zIndex: 3 }).add(item.legendGroup); item.legendSymbol.isMarker = true; }, drawPoints: seriesTypes.column.prototype.drawPoints, alignDataLabel: seriesTypes.column.prototype.alignDataLabel, buildKDTree: noop, applyZones: noop }); /** * Add logic to pad each axis with the amount of pixels * necessary to avoid the bubbles to overflow. */ Axis.prototype.beforePadding = function () { var axis = this, axisLength = this.len, chart = this.chart, pxMin = 0, pxMax = axisLength, isXAxis = this.isXAxis, dataKey = isXAxis ? 'xData' : 'yData', min = this.min, extremes = {}, smallestSize = math.min(chart.plotWidth, chart.plotHeight), zMin = Number.MAX_VALUE, zMax = -Number.MAX_VALUE, range = this.max - min, transA = axisLength / range, activeSeries = []; // Handle padding on the second pass, or on redraw each(this.series, function (series) { var seriesOptions = series.options, zData; if (series.bubblePadding && (series.visible || !chart.options.chart.ignoreHiddenSeries)) { // Correction for #1673 axis.allowZoomOutside = true; // Cache it activeSeries.push(series); if (isXAxis) { // because X axis is evaluated first // For each series, translate the size extremes to pixel values each(['minSize', 'maxSize'], function (prop) { var length = seriesOptions[prop], isPercent = /%$/.test(length); length = pInt(length); extremes[prop] = isPercent ? smallestSize * length / 100 : length; }); series.minPxSize = extremes.minSize; series.maxPxSize = extremes.maxSize; // Find the min and max Z zData = series.zData; if (zData.length) { // #1735 zMin = pick(seriesOptions.zMin, math.min( zMin, math.max( arrayMin(zData), seriesOptions.displayNegative === false ? seriesOptions.zThreshold : -Number.MAX_VALUE ) )); zMax = pick(seriesOptions.zMax, math.max(zMax, arrayMax(zData))); } } } }); each(activeSeries, function (series) { var data = series[dataKey], i = data.length, radius; if (isXAxis) { series.getRadii(zMin, zMax, series.minPxSize, series.maxPxSize); } if (range > 0) { while (i--) { if (typeof data[i] === 'number') { radius = series.radii[i]; pxMin = Math.min(((data[i] - min) * transA) - radius, pxMin); pxMax = Math.max(((data[i] - min) * transA) + radius, pxMax); } } } }); if (activeSeries.length && range > 0 && !this.isLog) { pxMax -= axisLength; transA *= (axisLength + pxMin - pxMax) / axisLength; each([['min', 'userMin', pxMin], ['max', 'userMax', pxMax]], function (keys) { if (pick(axis.options[keys[0]], axis[keys[1]]) === UNDEFINED) { axis[keys[0]] += keys[2] / transA; } }); } }; /* **************************************************************************** * End Bubble series code * *****************************************************************************/ (function () { /** * Extensions for polar charts. Additionally, much of the geometry required for polar charts is * gathered in RadialAxes.js. * */ var seriesProto = Series.prototype, pointerProto = Pointer.prototype, colProto; /** * Search a k-d tree by the point angle, used for shared tooltips in polar charts */ seriesProto.searchPointByAngle = function (e) { var series = this, chart = series.chart, xAxis = series.xAxis, center = xAxis.pane.center, plotX = e.chartX - center[0] - chart.plotLeft, plotY = e.chartY - center[1] - chart.plotTop; return this.searchKDTree({ clientX: 180 + (Math.atan2(plotX, plotY) * (-180 / Math.PI)) }); }; /** * Wrap the buildKDTree function so that it searches by angle (clientX) in case of shared tooltip, * and by two dimensional distance in case of non-shared. */ wrap(seriesProto, 'buildKDTree', function (proceed) { if (this.chart.polar) { if (this.kdByAngle) { this.searchPoint = this.searchPointByAngle; } else { this.kdDimensions = 2; } } proceed.apply(this); }); /** * Translate a point's plotX and plotY from the internal angle and radius measures to * true plotX, plotY coordinates */ seriesProto.toXY = function (point) { var xy, chart = this.chart, plotX = point.plotX, plotY = point.plotY, clientX; // Save rectangular plotX, plotY for later computation point.rectPlotX = plotX; point.rectPlotY = plotY; // Find the polar plotX and plotY xy = this.xAxis.postTranslate(point.plotX, this.yAxis.len - plotY); point.plotX = point.polarPlotX = xy.x - chart.plotLeft; point.plotY = point.polarPlotY = xy.y - chart.plotTop; // If shared tooltip, record the angle in degrees in order to align X points. Otherwise, // use a standard k-d tree to get the nearest point in two dimensions. if (this.kdByAngle) { clientX = ((plotX / Math.PI * 180) + this.xAxis.pane.options.startAngle) % 360; if (clientX < 0) { // #2665 clientX += 360; } point.clientX = clientX; } else { point.clientX = point.plotX; } }; if (seriesTypes.spline) { /** * Overridden method for calculating a spline from one point to the next */ wrap(seriesTypes.spline.prototype, 'getPointSpline', function (proceed, segment, point, i) { var ret, smoothing = 1.5, // 1 means control points midway between points, 2 means 1/3 from the point, 3 is 1/4 etc; denom = smoothing + 1, plotX, plotY, lastPoint, nextPoint, lastX, lastY, nextX, nextY, leftContX, leftContY, rightContX, rightContY, distanceLeftControlPoint, distanceRightControlPoint, leftContAngle, rightContAngle, jointAngle; if (this.chart.polar) { plotX = point.plotX; plotY = point.plotY; lastPoint = segment[i - 1]; nextPoint = segment[i + 1]; // Connect ends if (this.connectEnds) { if (!lastPoint) { lastPoint = segment[segment.length - 2]; // not the last but the second last, because the segment is already connected } if (!nextPoint) { nextPoint = segment[1]; } } // find control points if (lastPoint && nextPoint) { lastX = lastPoint.plotX; lastY = lastPoint.plotY; nextX = nextPoint.plotX; nextY = nextPoint.plotY; leftContX = (smoothing * plotX + lastX) / denom; leftContY = (smoothing * plotY + lastY) / denom; rightContX = (smoothing * plotX + nextX) / denom; rightContY = (smoothing * plotY + nextY) / denom; distanceLeftControlPoint = Math.sqrt(Math.pow(leftContX - plotX, 2) + Math.pow(leftContY - plotY, 2)); distanceRightControlPoint = Math.sqrt(Math.pow(rightContX - plotX, 2) + Math.pow(rightContY - plotY, 2)); leftContAngle = Math.atan2(leftContY - plotY, leftContX - plotX); rightContAngle = Math.atan2(rightContY - plotY, rightContX - plotX); jointAngle = (Math.PI / 2) + ((leftContAngle + rightContAngle) / 2); // Ensure the right direction, jointAngle should be in the same quadrant as leftContAngle if (Math.abs(leftContAngle - jointAngle) > Math.PI / 2) { jointAngle -= Math.PI; } // Find the corrected control points for a spline straight through the point leftContX = plotX + Math.cos(jointAngle) * distanceLeftControlPoint; leftContY = plotY + Math.sin(jointAngle) * distanceLeftControlPoint; rightContX = plotX + Math.cos(Math.PI + jointAngle) * distanceRightControlPoint; rightContY = plotY + Math.sin(Math.PI + jointAngle) * distanceRightControlPoint; // Record for drawing in next point point.rightContX = rightContX; point.rightContY = rightContY; } // moveTo or lineTo if (!i) { ret = ['M', plotX, plotY]; } else { // curve from last point to this ret = [ 'C', lastPoint.rightContX || lastPoint.plotX, lastPoint.rightContY || lastPoint.plotY, leftContX || plotX, leftContY || plotY, plotX, plotY ]; lastPoint.rightContX = lastPoint.rightContY = null; // reset for updating series later } } else { ret = proceed.call(this, segment, point, i); } return ret; }); } /** * Extend translate. The plotX and plotY values are computed as if the polar chart were a * cartesian plane, where plotX denotes the angle in radians and (yAxis.len - plotY) is the pixel distance from * center. */ wrap(seriesProto, 'translate', function (proceed) { var chart = this.chart, points, i; // Run uber method proceed.call(this); // Postprocess plot coordinates if (chart.polar) { this.kdByAngle = chart.tooltip && chart.tooltip.shared; if (!this.preventPostTranslate) { points = this.points; i = points.length; while (i--) { // Translate plotX, plotY from angle and radius to true plot coordinates this.toXY(points[i]); } } } }); /** * Extend getSegmentPath to allow connecting ends across 0 to provide a closed circle in * line-like series. */ wrap(seriesProto, 'getGraphPath', function (proceed, points) { var series = this; // Connect the path if (this.chart.polar) { points = points || this.points; if (this.options.connectEnds !== false && points[0].y !== null) { this.connectEnds = true; // re-used in splines points.splice(points.length, 0, points[0]); } // For area charts, pseudo points are added to the graph, now we need to translate these each(points, function (point) { if (point.polarPlotY === undefined) { series.toXY(point); } }); } // Run uber method return proceed.apply(this, [].slice.call(arguments, 1)); }); function polarAnimate(proceed, init) { var chart = this.chart, animation = this.options.animation, group = this.group, markerGroup = this.markerGroup, center = this.xAxis.center, plotLeft = chart.plotLeft, plotTop = chart.plotTop, attribs; // Specific animation for polar charts if (chart.polar) { // Enable animation on polar charts only in SVG. In VML, the scaling is different, plus animation // would be so slow it would't matter. if (chart.renderer.isSVG) { if (animation === true) { animation = {}; } // Initialize the animation if (init) { // Scale down the group and place it in the center attribs = { translateX: center[0] + plotLeft, translateY: center[1] + plotTop, scaleX: 0.001, // #1499 scaleY: 0.001 }; group.attr(attribs); if (markerGroup) { //markerGroup.attrSetters = group.attrSetters; markerGroup.attr(attribs); } // Run the animation } else { attribs = { translateX: plotLeft, translateY: plotTop, scaleX: 1, scaleY: 1 }; group.animate(attribs, animation); if (markerGroup) { markerGroup.animate(attribs, animation); } // Delete this function to allow it only once this.animate = null; } } // For non-polar charts, revert to the basic animation } else { proceed.call(this, init); } } // Define the animate method for regular series wrap(seriesProto, 'animate', polarAnimate); if (seriesTypes.column) { colProto = seriesTypes.column.prototype; /** * Define the animate method for columnseries */ wrap(colProto, 'animate', polarAnimate); /** * Extend the column prototype's translate method */ wrap(colProto, 'translate', function (proceed) { var xAxis = this.xAxis, len = this.yAxis.len, center = xAxis.center, startAngleRad = xAxis.startAngleRad, renderer = this.chart.renderer, start, points, point, i; this.preventPostTranslate = true; // Run uber method proceed.call(this); // Postprocess plot coordinates if (xAxis.isRadial) { points = this.points; i = points.length; while (i--) { point = points[i]; start = point.barX + startAngleRad; point.shapeType = 'path'; point.shapeArgs = { d: renderer.symbols.arc( center[0], center[1], len - point.plotY, null, { start: start, end: start + point.pointWidth, innerR: len - pick(point.yBottom, len) } ) }; // Provide correct plotX, plotY for tooltip this.toXY(point); point.tooltipPos = [point.plotX, point.plotY]; point.ttBelow = point.plotY > center[1]; } } }); /** * Align column data labels outside the columns. #1199. */ wrap(colProto, 'alignDataLabel', function (proceed, point, dataLabel, options, alignTo, isNew) { if (this.chart.polar) { var angle = point.rectPlotX / Math.PI * 180, align, verticalAlign; // Align nicely outside the perimeter of the columns if (options.align === null) { if (angle > 20 && angle < 160) { align = 'left'; // right hemisphere } else if (angle > 200 && angle < 340) { align = 'right'; // left hemisphere } else { align = 'center'; // top or bottom } options.align = align; } if (options.verticalAlign === null) { if (angle < 45 || angle > 315) { verticalAlign = 'bottom'; // top part } else if (angle > 135 && angle < 225) { verticalAlign = 'top'; // bottom part } else { verticalAlign = 'middle'; // left or right } options.verticalAlign = verticalAlign; } seriesProto.alignDataLabel.call(this, point, dataLabel, options, alignTo, isNew); } else { proceed.call(this, point, dataLabel, options, alignTo, isNew); } }); } /** * Extend getCoordinates to prepare for polar axis values */ wrap(pointerProto, 'getCoordinates', function (proceed, e) { var chart = this.chart, ret = { xAxis: [], yAxis: [] }; if (chart.polar) { each(chart.axes, function (axis) { var isXAxis = axis.isXAxis, center = axis.center, x = e.chartX - center[0] - chart.plotLeft, y = e.chartY - center[1] - chart.plotTop; ret[isXAxis ? 'xAxis' : 'yAxis'].push({ axis: axis, value: axis.translate( isXAxis ? Math.PI - Math.atan2(x, y) : // angle Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2)), // distance from center true ) }); }); } else { ret = proceed.call(this, e); } return ret; }); }()); }));
/* * /MathJax/extensions/CHTML-preview.js * * Copyright (c) 2009-2017 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.Callback.Queue(["Require",MathJax.Ajax,"[MathJax]/extensions/fast-preview.js"],["loadComplete",MathJax.Ajax,"[MathJax]/extensions/CHTML-preview.js"]);
/* textAngular Author : Austin Anderson License : 2013 MIT Version 1.0.0 How to Use: 1.Include textAngular.js in your project, alternatively grab all this code and throw it in your "directives.js" module file. 2.Create a div or something, and add the text-angular directive to it. ALSO add a text-angular-name="<YOUR TEXT EDITOR NAME>" 3.Create a textAngularOpts object and bind it to your local scope in the controller you want controlling textAngular It should look something like: $scope.textAngularOpts = { ..options go here.. } 4.IF YOU WANT ALL EDITORS TO HAVE INDIVIDUAL SETTINGS -> go to 6. Else go to 7. 5. Create the textAngularEditors property manually (it will get created regardless). Then add to it, a new property with the name of your editor you chose earlier, if it was "coolMonkeyMan" it will look like this: $scope.textAngularOpts = { ..options for ALL editors, unless they have their own property... textAngularEditors : { coolMonkeyMan : { ..options for this editor ALONE ... } } } 7. Globally inherited settings for each editor or individual settings? Either way you'll need to supply some options! **OPTIONS** html <STRING> the default html to show in the editor on load (also will be the property to watch for HTML changes!!!) toolbar <ARRAY of OBJECTS> holds the toolbar items to configure, more on that later disableStyle <BOOLEAN> disable all styles on this editor theme <OBJECT of OBJECTS> holds the theme objects, more on that later **Toolbar Settings** The list of available tools in textAngular is large. Add tools to the toolbar like: toolbar : [ {title : "<i class='icon-code'></i>", name : "html"}, {title : "h1", name : "h1"}, {title : "h2", name : "h2"} ..and more ] **OPTIONS** title <STRING> Can be an angular express, html, or text. Use this to add icons to each tool i,e "<i class='icon-code'></i>" name <STRING> the command, the tool name, has to be one of the following: h1 h2 h3 p pre ul ol quote undo redo b justifyLeft justifyRight justifyCenter i clear insertImage insertHtml createLink **Theme settings** Every piece of textAngular has a specific class you can grab and style in CSS. However, you can also use the theme object to specify styling. Each property takes a normal, jQuery-like CSS property object. Heres an example : theme : { editor : { "background" : "white", "color" : "gray", "text-align" : "left", "border" : "3px solid rgba(2,2,2,0.2)", "border-radius" : "5px", "font-size" : "1.3em", "font-family" : "Tahoma" }, toolbar : { ..some styling... }, toolbarItems : { ..some more styling... } } } **OPTIONS** editor -> the actual editor element toolbar -> the toolbar wrapper toolbarItems -> each toolbar item insertForm -> the form that holds the insert stuff insertFormBtn -> the button that submits the insert stuff **HOW TO GET THE HTML** To actually get the model (watch or bind), simply follow this model: textAngularOpts.textAngularEditors.<YOUR EDITORS NAME>.html so to bind the expression: {{textAngularOpts.textAngularEditors.<YOUR EDITORS NAME>.html}} or to $watch for changes: $scope.$watch('textAngularOpts.textAngularEditors.<YOUR EDITORS NAME>.html', function(oldHTML, newHTML){ console.log("My new html is: "+newHTML); }); */ var textAngular = angular.module('textAngular',[]); textAngular.directive('compile', function ($compile) { // directive factory creates a link function return function (scope, element, attrs) { scope.$watch( function (scope) { return scope.$eval(attrs.compile); }, function (value) { element.html(value); $compile(element.contents())(scope); } ); }; }); textAngular.directive('textAngular', function ($compile, $sce, $window, $timeout) { var methods = { theme: function (scope, opts) { if (opts.disableStyle) { return false; } scope.theme = !!!opts.theme ? {} : opts.theme; var editorDefault = { "resize": "both", "overflow-y": "auto", "min-height": "300px", "text-align": "left", "padding": "4px" }; var toolbarDefault = { //to prevent people from freaking out 'margin': '0.2em', 'text-align': 'right', 'overflow': 'hidden', 'border-radius': '3px', 'display': 'inline-block' }; scope.theme.editor = !!!scope.theme.editor ? { "background": "#FFFFFF", "color": "#5E5E5E", "border": "1px solid #C4C4C4", "padding": "4px", "resize": "both", "overflow-y": "auto", "min-height": "300px", "text-align": "left", "border-radius": "3px" } : angular.extend(scope.theme.editor, editorDefault); scope.theme.toolbar = !!!scope.theme.toolbar ? { 'margin': '0.2em', 'text-align': 'right', 'overflow': 'hidden', 'border-radius': '3px', 'border': '1px #C4C4C4', 'display': 'inline-block' } : angular.extend(scope.theme.toolbar, toolbarDefault); scope.theme.toolbarItems = !!!scope.theme.toolbarItems ? { 'cursor': 'pointer', 'display': 'inline-block', 'padding': '0.2em 0.4em', 'margin-left': '0em', 'background': 'gray', 'color': 'white', "font-size": "14px" } : scope.theme.toolbarItems; scope.theme.insertForm = !!!scope.theme.insertForm ? { 'text-align': 'right', 'padding': '0.2em' } : scope.theme.insertForm; scope.theme.insertFormBtn = !!!scope.theme.insertFormBtn ? { 'margin-top': '0.2em' } : scope.theme.insertFormBtn; }, compileHtml: function (scope, html) { var compHtml = $("<div>").append(html).html().replace(/(class="(.*?)")|(class='(.*?)')/g, "").replace(/&lt;/g, "<").replace(/&gt;/g, ">"); if (scope.showHtml == "load") { scope.textAngularModel.text = $sce.trustAsHtml(compHtml); scope.textAngularModel.html = $sce.trustAsHtml(compHtml.replace(/</g, "&lt;")); scope.showHtml = (scope.showHtmlDefault || false); } else if (scope.showHtml) { scope.textAngularModel.text = $sce.trustAsHtml(compHtml); } else { scope.textAngularModel.html = $sce.trustAsHtml(compHtml.replace(/</g, "&lt;")); } scope.$parent.textAngularOpts.textAngularEditors[scope.name]["html"] = compHtml; }, //wraps the selection in the provided tag wrapSelection: function (command, opt) { document.execCommand(command, false, opt); }, toolbarFn: { html: function (scope, el) { scope.showHtml = !scope.showHtml; if (scope.showHtml) { var ht = $(el).find('.textAngular-text').html(); $timeout(function () { //hacky! $(el).find('.textAngular-html').focus(); }, 100) } else { var ht = $(el).find('.textAngular-html').html(); $timeout(function () { //hacky! but works! $(el).find('.textAngular-text').focus(); }, 100); } methods.compileHtml(scope, ht); }, h1: function (scope) { methods.wrapSelection("formatBlock", "<H1>"); }, h2: function (scope) { methods.wrapSelection("formatBlock", "<H2>"); }, h3: function (scope) { methods.wrapSelection("formatBlock", "<H3>"); }, p: function (scope) { methods.wrapSelection("formatBlock", "<P>"); }, pre: function (scope) { methods.wrapSelection("formatBlock", "<PRE>"); }, ul: function (scope) { methods.wrapSelection("insertUnorderedList", null); }, ol: function (scope) { methods.wrapSelection("insertOrderedList", null); }, quote: function (scope) { methods.wrapSelection("formatBlock", "<BLOCKQUOTE>"); }, undo: function (scope) { methods.wrapSelection("undo", null); }, redo: function (scope) { methods.wrapSelection("redo", null); }, b: function (scope) { methods.wrapSelection("bold", null); }, justifyLeft: function (scope) { methods.wrapSelection("justifyLeft", null); }, justifyRight: function (scope) { methods.wrapSelection("justifyRight", null); }, justifyCenter: function (scope) { methods.wrapSelection("justifyCenter", null); }, i: function (scope) { methods.wrapSelection("italic", null); }, clear: function (scope) { console.log('asdasd'); methods.wrapSelection("FormatBlock", "<div>"); }, insertImage: function (scope) { if (scope.inserting == true) { scope.inserting = false; return false; } scope.insert.model = ""; scope.inserting = true; scope.insert.text = "Insert Image"; scope.currentInsert = "insertImage"; }, insertHtml: function (scope) { if (scope.inserting == true) { scope.inserting = false; return false; } scope.insert.model = ""; scope.inserting = true; scope.insert.text = "Insert HTML"; scope.currentInsert = "insertHtml"; }, createLink: function (scope) { if (scope.inserting == true) { scope.inserting = false; return false; } scope.insert.model = ""; scope.inserting = true; scope.insert.text = "Make a Link"; scope.currentInsert = "createLink"; } } }; return { template : "<div class='textAngular-root' style='text-align:right;'>\ <div class='textAngular-toolbar' ng-style='theme.toolbar'><span ng-repeat='toolbarItem in toolbar' title='{{toolbarItem.title}}' class='textAngular-toolbar-item' ng-style='theme.toolbarItems' ng-mousedown='runToolbar(toolbarItem.name,$event)' unselectable='on' compile='toolbarItem.icon' name='toolbarItem.name'></span></div>\ <form class='textAngular-insert' ng-show='inserting' ng-style='theme.insertForm'><input type='text' ng-model='insert.model' required><div class='textAngular-insert-submit'><button ng-style='theme.insertFormBtn' ng-mousedown='finishInsert();'>{{insert.text}}</button></div></form>\ <pre contentEditable='true' ng-show='showHtml' class='textAngular-html' ng-style='theme.editor' ng-bind-html='textAngularModel.html' ></pre>\ <div contentEditable='true' ng-hide='showHtml' class='textAngular-text' ng-style='theme.editor' ng-bind-html='textAngularModel.text' ></div>\ </div>", replace : true, scope : {}, restrict : "A", controller : function($scope,$element,$attrs){ console.log("Thank you for using textAngular! http://www.textangular.com"); $scope.insert = {}; $scope.finishInsert = function(){ methods.wrapSelection($scope.currentInsert,$scope.insert.model); $scope.inserting = false; } $scope.runToolbar = function(name,$event){ $event.preventDefault(); var wd = methods.toolbarFn[name]($scope,$element); if (name == "html") return; if ($scope.showHtml) { var ht = $($element).find('.textAngular-html').html(); }else{ var ht = $($element).find('.textAngular-text').html(); } methods.compileHtml($scope,ht); } }, link : function(scope,el,attr){ scope.$parent.$watch('textAngularOpts', function(){ if (!!!scope.$parent.textAngularOpts) { console.log("No textAngularOpts config object found in scope! Please create one!"); } scope.showHtml = "load"; //first state for updating boths if (!!!attr.textAngularName) { console.log("No 'text-angular-name' directive found on directve root element. Please add one! "); return false; } var name = attr.textAngularName; scope.name = name; //create a new object if one doesn't yet exist if (!!!scope.$parent.textAngularOpts.textAngularEditors) scope.$parent.textAngularOpts.textAngularEditors = {}; if (!!!scope.$parent.textAngularOpts.textAngularEditors[name] ) { scope.$parent.textAngularOpts.textAngularEditors[name] = {}; var opts = scope.$parent.textAngularOpts; scope.toolbar = scope.$parent.textAngularOpts.toolbar; //go through each toolbar item and find matches against whats configured in the opts }else{ var opts = scope.$parent.textAngularOpts.textAngularEditors[name]; scope.toolbar = scope.$parent.textAngularOpts.textAngularEditors[name].toolbar; //go through each toolbar item and find matches against whats configured in the opts } methods.theme(scope,opts); scope.textAngularModel = {}; methods.compileHtml(scope,opts.html); $(el).find('.textAngular-text,.textAngular-html').on('keyup', function(e){ if (scope.showHtml) { var ht = $(this.parentNode).find('.textAngular-html').html(); }else{ var ht = $(this.parentNode).find('.textAngular-text').html(); } scope.$apply(methods.compileHtml(scope,ht)); }); }); } }; });
/* json2.js 2012-10-08 Public Domain. NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. See http://www.JSON.org/js.html This code should be minified before deployment. See http://javascript.crockford.com/jsmin.html USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO NOT CONTROL. This file creates a global JSON object containing two methods: stringify and parse. JSON.stringify(value, replacer, space) value any JavaScript value, usually an object or array. replacer an optional parameter that determines how object values are stringified for objects. It can be a function or an array of strings. space an optional parameter that specifies the indentation of nested structures. If it is omitted, the text will be packed without extra whitespace. If it is a number, it will specify the number of spaces to indent at each level. If it is a string (such as '\t' or '&nbsp;'), it contains the characters used to indent at each level. This method produces a JSON text from a JavaScript value. When an object value is found, if the object contains a toJSON method, its toJSON method will be called and the result will be stringified. A toJSON method does not serialize: it returns the value represented by the name/value pair that should be serialized, or undefined if nothing should be serialized. The toJSON method will be passed the key associated with the value, and this will be bound to the value For example, this would serialize Dates as ISO strings. Date.prototype.toJSON = function (key) { function f(n) { // Format integers to have at least two digits. return n < 10 ? '0' + n : n; } return this.getUTCFullYear() + '-' + f(this.getUTCMonth() + 1) + '-' + f(this.getUTCDate()) + 'T' + f(this.getUTCHours()) + ':' + f(this.getUTCMinutes()) + ':' + f(this.getUTCSeconds()) + 'Z'; }; You can provide an optional replacer method. It will be passed the key and value of each member, with this bound to the containing object. The value that is returned from your method will be serialized. If your method returns undefined, then the member will be excluded from the serialization. If the replacer parameter is an array of strings, then it will be used to select the members to be serialized. It filters the results such that only members with keys listed in the replacer array are stringified. Values that do not have JSON representations, such as undefined or functions, will not be serialized. Such values in objects will be dropped; in arrays they will be replaced with null. You can use a replacer function to replace those with JSON values. JSON.stringify(undefined) returns undefined. The optional space parameter produces a stringification of the value that is filled with line breaks and indentation to make it easier to read. If the space parameter is a non-empty string, then that string will be used for indentation. If the space parameter is a number, then the indentation will be that many spaces. Example: text = JSON.stringify(['e', {pluribus: 'unum'}]); // text is '["e",{"pluribus":"unum"}]' text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t'); // text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]' text = JSON.stringify([new Date()], function (key, value) { return this[key] instanceof Date ? 'Date(' + this[key] + ')' : value; }); // text is '["Date(---current time---)"]' JSON.parse(text, reviver) This method parses a JSON text to produce an object or array. It can throw a SyntaxError exception. The optional reviver parameter is a function that can filter and transform the results. It receives each of the keys and values, and its return value is used instead of the original value. If it returns what it received, then the structure is not modified. If it returns undefined then the member is deleted. Example: // Parse the text. Values that look like ISO date strings will // be converted to Date objects. myData = JSON.parse(text, function (key, value) { var a; if (typeof value === 'string') { a = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value); if (a) { return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4], +a[5], +a[6])); } } return value; }); myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) { var d; if (typeof value === 'string' && value.slice(0, 5) === 'Date(' && value.slice(-1) === ')') { d = new Date(value.slice(5, -1)); if (d) { return d; } } return value; }); This is a reference implementation. You are free to copy, modify, or redistribute. */ /*jslint evil: true, regexp: true */ /*members "", "\b", "\t", "\n", "\f", "\r", "\"", JSON, "\\", apply, call, charCodeAt, getUTCDate, getUTCFullYear, getUTCHours, getUTCMinutes, getUTCMonth, getUTCSeconds, hasOwnProperty, join, lastIndex, length, parse, prototype, push, replace, slice, stringify, test, toJSON, toString, valueOf */ // Create a JSON object only if one does not already exist. We create the // methods in a closure to avoid creating global variables. if (typeof JSON !== 'object') { JSON = {}; } (function () { 'use strict'; function f(n) { // Format integers to have at least two digits. return n < 10 ? '0' + n : n; } if (typeof Date.prototype.toJSON !== 'function') { Date.prototype.toJSON = function (key) { return isFinite(this.valueOf()) ? this.getUTCFullYear() + '-' + f(this.getUTCMonth() + 1) + '-' + f(this.getUTCDate()) + 'T' + f(this.getUTCHours()) + ':' + f(this.getUTCMinutes()) + ':' + f(this.getUTCSeconds()) + 'Z' : null; }; String.prototype.toJSON = Number.prototype.toJSON = Boolean.prototype.toJSON = function (key) { return this.valueOf(); }; } var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, gap, indent, meta = { // table of character substitutions '\b': '\\b', '\t': '\\t', '\n': '\\n', '\f': '\\f', '\r': '\\r', '"' : '\\"', '\\': '\\\\' }, rep; function quote(string) { // If the string contains no control characters, no quote characters, and no // backslash characters, then we can safely slap some quotes around it. // Otherwise we must also replace the offending characters with safe escape // sequences. escapable.lastIndex = 0; return escapable.test(string) ? '"' + string.replace(escapable, function (a) { var c = meta[a]; return typeof c === 'string' ? c : '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4); }) + '"' : '"' + string + '"'; } function str(key, holder) { // Produce a string from holder[key]. var i, // The loop counter. k, // The member key. v, // The member value. length, mind = gap, partial, value = holder[key]; // If the value has a toJSON method, call it to obtain a replacement value. if (value && typeof value === 'object' && typeof value.toJSON === 'function') { value = value.toJSON(key); } // If we were called with a replacer function, then call the replacer to // obtain a replacement value. if (typeof rep === 'function') { value = rep.call(holder, key, value); } // What happens next depends on the value's type. switch (typeof value) { case 'string': return quote(value); case 'number': // JSON numbers must be finite. Encode non-finite numbers as null. return isFinite(value) ? String(value) : 'null'; case 'boolean': case 'null': // If the value is a boolean or null, convert it to a string. Note: // typeof null does not produce 'null'. The case is included here in // the remote chance that this gets fixed someday. return String(value); // If the type is 'object', we might be dealing with an object or an array or // null. case 'object': // Due to a specification blunder in ECMAScript, typeof null is 'object', // so watch out for that case. if (!value) { return 'null'; } // Make an array to hold the partial results of stringifying this object value. gap += indent; partial = []; // Is the value an array? if (Object.prototype.toString.apply(value) === '[object Array]') { // The value is an array. Stringify every element. Use null as a placeholder // for non-JSON values. length = value.length; for (i = 0; i < length; i += 1) { partial[i] = str(i, value) || 'null'; } // Join all of the elements together, separated with commas, and wrap them in // brackets. v = partial.length === 0 ? '[]' : gap ? '[\n' + gap + partial.join(',\n' + gap) + '\n' + mind + ']' : '[' + partial.join(',') + ']'; gap = mind; return v; } // If the replacer is an array, use it to select the members to be stringified. if (rep && typeof rep === 'object') { length = rep.length; for (i = 0; i < length; i += 1) { if (typeof rep[i] === 'string') { k = rep[i]; v = str(k, value); if (v) { partial.push(quote(k) + (gap ? ': ' : ':') + v); } } } } else { // Otherwise, iterate through all of the keys in the object. for (k in value) { if (Object.prototype.hasOwnProperty.call(value, k)) { v = str(k, value); if (v) { partial.push(quote(k) + (gap ? ': ' : ':') + v); } } } } // Join all of the member texts together, separated with commas, // and wrap them in braces. v = partial.length === 0 ? '{}' : gap ? '{\n' + gap + partial.join(',\n' + gap) + '\n' + mind + '}' : '{' + partial.join(',') + '}'; gap = mind; return v; } } // If the JSON object does not yet have a stringify method, give it one. if (typeof JSON.stringify !== 'function') { JSON.stringify = function (value, replacer, space) { // The stringify method takes a value and an optional replacer, and an optional // space parameter, and returns a JSON text. The replacer can be a function // that can replace values, or an array of strings that will select the keys. // A default replacer method can be provided. Use of the space parameter can // produce text that is more easily readable. var i; gap = ''; indent = ''; // If the space parameter is a number, make an indent string containing that // many spaces. if (typeof space === 'number') { for (i = 0; i < space; i += 1) { indent += ' '; } // If the space parameter is a string, it will be used as the indent string. } else if (typeof space === 'string') { indent = space; } // If there is a replacer, it must be a function or an array. // Otherwise, throw an error. rep = replacer; if (replacer && typeof replacer !== 'function' && (typeof replacer !== 'object' || typeof replacer.length !== 'number')) { throw new Error('JSON.stringify'); } // Make a fake root object containing our value under the key of ''. // Return the result of stringifying the value. return str('', {'': value}); }; } // If the JSON object does not yet have a parse method, give it one. if (typeof JSON.parse !== 'function') { JSON.parse = function (text, reviver) { // The parse method takes a text and an optional reviver function, and returns // a JavaScript value if the text is a valid JSON text. var j; function walk(holder, key) { // The walk method is used to recursively walk the resulting structure so // that modifications can be made. var k, v, value = holder[key]; if (value && typeof value === 'object') { for (k in value) { if (Object.prototype.hasOwnProperty.call(value, k)) { v = walk(value, k); if (v !== undefined) { value[k] = v; } else { delete value[k]; } } } } return reviver.call(holder, key, value); } // Parsing happens in four stages. In the first stage, we replace certain // Unicode characters with escape sequences. JavaScript handles many characters // incorrectly, either silently deleting them, or treating them as line endings. text = String(text); cx.lastIndex = 0; if (cx.test(text)) { text = text.replace(cx, function (a) { return '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4); }); } // In the second stage, we run the text against regular expressions that look // for non-JSON patterns. We are especially concerned with '()' and 'new' // because they can cause invocation, and '=' because it can cause mutation. // But just to be safe, we want to reject all unexpected forms. // We split the second stage into 4 regexp operations in order to work around // crippling inefficiencies in IE's and Safari's regexp engines. First we // replace the JSON backslash pairs with '@' (a non-JSON character). Second, we // replace all simple value tokens with ']' characters. Third, we delete all // open brackets that follow a colon or comma or that begin the text. Finally, // we look to see that the remaining characters are only whitespace or ']' or // ',' or ':' or '{' or '}'. If that is so, then the text is safe for eval. if (/^[\],:{}\s]*$/ .test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, '@') .replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']') .replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) { // In the third stage we use the eval function to compile the text into a // JavaScript structure. The '{' operator is subject to a syntactic ambiguity // in JavaScript: it can begin a block or an object literal. We wrap the text // in parens to eliminate the ambiguity. j = eval('(' + text + ')'); // In the optional fourth stage, we recursively walk the new structure, passing // each name/value pair to a reviver function for possible transformation. return typeof reviver === 'function' ? walk({'': j}, '') : j; } // If the text is not JSON parseable, then a SyntaxError is thrown. throw new SyntaxError('JSON.parse'); }; } }());/** * History.js Zepto Adapter * @author Benjamin Arthur Lupton <contact@balupton.com> * @copyright 2010-2011 Benjamin Arthur Lupton <contact@balupton.com> * @license New BSD License <http://creativecommons.org/licenses/BSD/> */ // Closure (function(window,undefined){ "use strict"; // Localise Globals var History = window.History = window.History||{}, Zepto = window.Zepto; // Check Existence if ( typeof History.Adapter !== 'undefined' ) { throw new Error('History.js Adapter has already been loaded...'); } // Add the Adapter History.Adapter = { /** * History.Adapter.bind(el,event,callback) * @param {Element|string} el * @param {string} event - custom and standard events * @param {function} callback * @return {void} */ bind: function(el,event,callback){ new Zepto(el).bind(event,callback); }, /** * History.Adapter.trigger(el,event) * @param {Element|string} el * @param {string} event - custom and standard events * @return {void} */ trigger: function(el,event){ new Zepto(el).trigger(event); }, /** * History.Adapter.extractEventData(key,event,extra) * @param {string} key - key for the event data to extract * @param {string} event - custom and standard events * @return {mixed} */ extractEventData: function(key,event){ // Zepto Native var result = (event && event[key]) || undefined; // Return return result; }, /** * History.Adapter.onDomLoad(callback) * @param {function} callback * @return {void} */ onDomLoad: function(callback) { new Zepto(callback); } }; // Try and Initialise History if ( typeof History.init !== 'undefined' ) { History.init(); } })(window); /** * History.js HTML4 Support * Depends on the HTML5 Support * @author Benjamin Arthur Lupton <contact@balupton.com> * @copyright 2010-2011 Benjamin Arthur Lupton <contact@balupton.com> * @license New BSD License <http://creativecommons.org/licenses/BSD/> */ (function(window,undefined){ "use strict"; // ======================================================================== // Initialise // Localise Globals var document = window.document, // Make sure we are using the correct document setTimeout = window.setTimeout||setTimeout, clearTimeout = window.clearTimeout||clearTimeout, setInterval = window.setInterval||setInterval, History = window.History = window.History||{}; // Public History Object // Check Existence if ( typeof History.initHtml4 !== 'undefined' ) { throw new Error('History.js HTML4 Support has already been loaded...'); } // ======================================================================== // Initialise HTML4 Support // Initialise HTML4 Support History.initHtml4 = function(){ // Initialise if ( typeof History.initHtml4.initialized !== 'undefined' ) { // Already Loaded return false; } else { History.initHtml4.initialized = true; } // ==================================================================== // Properties /** * History.enabled * Is History enabled? */ History.enabled = true; // ==================================================================== // Hash Storage /** * History.savedHashes * Store the hashes in an array */ History.savedHashes = []; /** * History.isLastHash(newHash) * Checks if the hash is the last hash * @param {string} newHash * @return {boolean} true */ History.isLastHash = function(newHash){ // Prepare var oldHash = History.getHashByIndex(), isLast; // Check isLast = newHash === oldHash; // Return isLast return isLast; }; /** * History.isHashEqual(newHash, oldHash) * Checks to see if two hashes are functionally equal * @param {string} newHash * @param {string} oldHash * @return {boolean} true */ History.isHashEqual = function(newHash, oldHash){ newHash = encodeURIComponent(newHash).replace(/%25/g, "%"); oldHash = encodeURIComponent(oldHash).replace(/%25/g, "%"); return newHash === oldHash; }; /** * History.saveHash(newHash) * Push a Hash * @param {string} newHash * @return {boolean} true */ History.saveHash = function(newHash){ // Check Hash if ( History.isLastHash(newHash) ) { return false; } // Push the Hash History.savedHashes.push(newHash); // Return true return true; }; /** * History.getHashByIndex() * Gets a hash by the index * @param {integer} index * @return {string} */ History.getHashByIndex = function(index){ // Prepare var hash = null; // Handle if ( typeof index === 'undefined' ) { // Get the last inserted hash = History.savedHashes[History.savedHashes.length-1]; } else if ( index < 0 ) { // Get from the end hash = History.savedHashes[History.savedHashes.length+index]; } else { // Get from the beginning hash = History.savedHashes[index]; } // Return hash return hash; }; // ==================================================================== // Discarded States /** * History.discardedHashes * A hashed array of discarded hashes */ History.discardedHashes = {}; /** * History.discardedStates * A hashed array of discarded states */ History.discardedStates = {}; /** * History.discardState(State) * Discards the state by ignoring it through History * @param {object} State * @return {true} */ History.discardState = function(discardedState,forwardState,backState){ //History.debug('History.discardState', arguments); // Prepare var discardedStateHash = History.getHashByState(discardedState), discardObject; // Create Discard Object discardObject = { 'discardedState': discardedState, 'backState': backState, 'forwardState': forwardState }; // Add to DiscardedStates History.discardedStates[discardedStateHash] = discardObject; // Return true return true; }; /** * History.discardHash(hash) * Discards the hash by ignoring it through History * @param {string} hash * @return {true} */ History.discardHash = function(discardedHash,forwardState,backState){ //History.debug('History.discardState', arguments); // Create Discard Object var discardObject = { 'discardedHash': discardedHash, 'backState': backState, 'forwardState': forwardState }; // Add to discardedHash History.discardedHashes[discardedHash] = discardObject; // Return true return true; }; /** * History.discardedState(State) * Checks to see if the state is discarded * @param {object} State * @return {bool} */ History.discardedState = function(State){ // Prepare var StateHash = History.getHashByState(State), discarded; // Check discarded = History.discardedStates[StateHash]||false; // Return true return discarded; }; /** * History.discardedHash(hash) * Checks to see if the state is discarded * @param {string} State * @return {bool} */ History.discardedHash = function(hash){ // Check var discarded = History.discardedHashes[hash]||false; // Return true return discarded; }; /** * History.recycleState(State) * Allows a discarded state to be used again * @param {object} data * @param {string} title * @param {string} url * @return {true} */ History.recycleState = function(State){ //History.debug('History.recycleState', arguments); // Prepare var StateHash = History.getHashByState(State); // Remove from DiscardedStates if ( History.discardedState(State) ) { delete History.discardedStates[StateHash]; } // Return true return true; }; // ==================================================================== // HTML4 HashChange Support if ( History.emulated.hashChange ) { /* * We must emulate the HTML4 HashChange Support by manually checking for hash changes */ /** * History.hashChangeInit() * Init the HashChange Emulation */ History.hashChangeInit = function(){ // Define our Checker Function History.checkerFunction = null; // Define some variables that will help in our checker function var lastDocumentHash = '', iframeId, iframe, lastIframeHash, checkerRunning, startedWithHash = Boolean(History.getHash()); // Handle depending on the browser if ( History.isInternetExplorer() ) { // IE6 and IE7 // We need to use an iframe to emulate the back and forward buttons // Create iFrame iframeId = 'historyjs-iframe'; iframe = document.createElement('iframe'); // Adjust iFarme // IE 6 requires iframe to have a src on HTTPS pages, otherwise it will throw a // "This page contains both secure and nonsecure items" warning. iframe.setAttribute('id', iframeId); iframe.setAttribute('src', '#'); iframe.style.display = 'none'; // Append iFrame document.body.appendChild(iframe); // Create initial history entry iframe.contentWindow.document.open(); iframe.contentWindow.document.close(); // Define some variables that will help in our checker function lastIframeHash = ''; checkerRunning = false; // Define the checker function History.checkerFunction = function(){ // Check Running if ( checkerRunning ) { return false; } // Update Running checkerRunning = true; // Fetch var documentHash = History.getHash(), iframeHash = History.getHash(iframe.contentWindow.document); // The Document Hash has changed (application caused) if ( documentHash !== lastDocumentHash ) { // Equalise lastDocumentHash = documentHash; // Create a history entry in the iframe if ( iframeHash !== documentHash ) { //History.debug('hashchange.checker: iframe hash change', 'documentHash (new):', documentHash, 'iframeHash (old):', iframeHash); // Equalise lastIframeHash = iframeHash = documentHash; // Create History Entry iframe.contentWindow.document.open(); iframe.contentWindow.document.close(); // Update the iframe's hash iframe.contentWindow.document.location.hash = History.escapeHash(documentHash); } // Trigger Hashchange Event History.Adapter.trigger(window,'hashchange'); } // The iFrame Hash has changed (back button caused) else if ( iframeHash !== lastIframeHash ) { //History.debug('hashchange.checker: iframe hash out of sync', 'iframeHash (new):', iframeHash, 'documentHash (old):', documentHash); // Equalise lastIframeHash = iframeHash; // If there is no iframe hash that means we're at the original // iframe state. // And if there was a hash on the original request, the original // iframe state was replaced instantly, so skip this state and take // the user back to where they came from. if (startedWithHash && iframeHash === '') { History.back(); } else { // Update the Hash History.setHash(iframeHash,false); } } // Reset Running checkerRunning = false; // Return true return true; }; } else { // We are not IE // Firefox 1 or 2, Opera // Define the checker function History.checkerFunction = function(){ // Prepare var documentHash = History.getHash()||''; // The Document Hash has changed (application caused) if ( documentHash !== lastDocumentHash ) { // Equalise lastDocumentHash = documentHash; // Trigger Hashchange Event History.Adapter.trigger(window,'hashchange'); } // Return true return true; }; } // Apply the checker function History.intervalList.push(setInterval(History.checkerFunction, History.options.hashChangeInterval)); // Done return true; }; // History.hashChangeInit // Bind hashChangeInit History.Adapter.onDomLoad(History.hashChangeInit); } // History.emulated.hashChange // ==================================================================== // HTML5 State Support // Non-Native pushState Implementation if ( History.emulated.pushState ) { /* * We must emulate the HTML5 State Management by using HTML4 HashChange */ /** * History.onHashChange(event) * Trigger HTML5's window.onpopstate via HTML4 HashChange Support */ History.onHashChange = function(event){ //History.debug('History.onHashChange', arguments); // Prepare var currentUrl = ((event && event.newURL) || History.getLocationHref()), currentHash = History.getHashByUrl(currentUrl), currentState = null, currentStateHash = null, currentStateHashExits = null, discardObject; // Check if we are the same state if ( History.isLastHash(currentHash) ) { // There has been no change (just the page's hash has finally propagated) //History.debug('History.onHashChange: no change'); History.busy(false); return false; } // Reset the double check History.doubleCheckComplete(); // Store our location for use in detecting back/forward direction History.saveHash(currentHash); // Expand Hash if ( currentHash && History.isTraditionalAnchor(currentHash) ) { //History.debug('History.onHashChange: traditional anchor', currentHash); // Traditional Anchor Hash History.Adapter.trigger(window,'anchorchange'); History.busy(false); return false; } // Create State currentState = History.extractState(History.getFullUrl(currentHash||History.getLocationHref()),true); // Check if we are the same state if ( History.isLastSavedState(currentState) ) { //History.debug('History.onHashChange: no change'); // There has been no change (just the page's hash has finally propagated) History.busy(false); return false; } // Create the state Hash currentStateHash = History.getHashByState(currentState); // Check if we are DiscardedState discardObject = History.discardedState(currentState); if ( discardObject ) { // Ignore this state as it has been discarded and go back to the state before it if ( History.getHashByIndex(-2) === History.getHashByState(discardObject.forwardState) ) { // We are going backwards //History.debug('History.onHashChange: go backwards'); History.back(false); } else { // We are going forwards //History.debug('History.onHashChange: go forwards'); History.forward(false); } return false; } // Push the new HTML5 State //History.debug('History.onHashChange: success hashchange'); History.pushState(currentState.data,currentState.title,encodeURI(currentState.url),false); // End onHashChange closure return true; }; History.Adapter.bind(window,'hashchange',History.onHashChange); /** * History.pushState(data,title,url) * Add a new State to the history object, become it, and trigger onpopstate * We have to trigger for HTML4 compatibility * @param {object} data * @param {string} title * @param {string} url * @return {true} */ History.pushState = function(data,title,url,queue){ //History.debug('History.pushState: called', arguments); // We assume that the URL passed in is URI-encoded, but this makes // sure that it's fully URI encoded; any '%'s that are encoded are // converted back into '%'s url = encodeURI(url).replace(/%25/g, "%"); // Check the State if ( History.getHashByUrl(url) ) { throw new Error('History.js does not support states with fragment-identifiers (hashes/anchors).'); } // Handle Queueing if ( queue !== false && History.busy() ) { // Wait + Push to Queue //History.debug('History.pushState: we must wait', arguments); History.pushQueue({ scope: History, callback: History.pushState, args: arguments, queue: queue }); return false; } // Make Busy History.busy(true); // Fetch the State Object var newState = History.createStateObject(data,title,url), newStateHash = History.getHashByState(newState), oldState = History.getState(false), oldStateHash = History.getHashByState(oldState), html4Hash = History.getHash(), wasExpected = History.expectedStateId == newState.id; // Store the newState History.storeState(newState); History.expectedStateId = newState.id; // Recycle the State History.recycleState(newState); // Force update of the title History.setTitle(newState); // Check if we are the same State if ( newStateHash === oldStateHash ) { //History.debug('History.pushState: no change', newStateHash); History.busy(false); return false; } // Update HTML5 State History.saveState(newState); // Fire HTML5 Event if(!wasExpected) History.Adapter.trigger(window,'statechange'); // Update HTML4 Hash if ( !History.isHashEqual(newStateHash, html4Hash) && !History.isHashEqual(newStateHash, History.getShortUrl(History.getLocationHref())) ) { History.setHash(newStateHash,false); } History.busy(false); // End pushState closure return true; }; /** * History.replaceState(data,title,url) * Replace the State and trigger onpopstate * We have to trigger for HTML4 compatibility * @param {object} data * @param {string} title * @param {string} url * @return {true} */ History.replaceState = function(data,title,url,queue){ //History.debug('History.replaceState: called', arguments); // We assume that the URL passed in is URI-encoded, but this makes // sure that it's fully URI encoded; any '%'s that are encoded are // converted back into '%'s url = encodeURI(url).replace(/%25/g, "%"); // Check the State if ( History.getHashByUrl(url) ) { throw new Error('History.js does not support states with fragment-identifiers (hashes/anchors).'); } // Handle Queueing if ( queue !== false && History.busy() ) { // Wait + Push to Queue //History.debug('History.replaceState: we must wait', arguments); History.pushQueue({ scope: History, callback: History.replaceState, args: arguments, queue: queue }); return false; } // Make Busy History.busy(true); // Fetch the State Objects var newState = History.createStateObject(data,title,url), newStateHash = History.getHashByState(newState), oldState = History.getState(false), oldStateHash = History.getHashByState(oldState), previousState = History.getStateByIndex(-2); // Discard Old State History.discardState(oldState,newState,previousState); // If the url hasn't changed, just store and save the state // and fire a statechange event to be consistent with the // html 5 api if ( newStateHash === oldStateHash ) { // Store the newState History.storeState(newState); History.expectedStateId = newState.id; // Recycle the State History.recycleState(newState); // Force update of the title History.setTitle(newState); // Update HTML5 State History.saveState(newState); // Fire HTML5 Event //History.debug('History.pushState: trigger popstate'); History.Adapter.trigger(window,'statechange'); History.busy(false); } else { // Alias to PushState History.pushState(newState.data,newState.title,newState.url,false); } // End replaceState closure return true; }; } // History.emulated.pushState // ==================================================================== // Initialise // Non-Native pushState Implementation if ( History.emulated.pushState ) { /** * Ensure initial state is handled correctly */ if ( History.getHash() && !History.emulated.hashChange ) { History.Adapter.onDomLoad(function(){ History.Adapter.trigger(window,'hashchange'); }); } } // History.emulated.pushState }; // History.initHtml4 // Try to Initialise History if ( typeof History.init !== 'undefined' ) { History.init(); } })(window); /** * History.js Core * @author Benjamin Arthur Lupton <contact@balupton.com> * @copyright 2010-2011 Benjamin Arthur Lupton <contact@balupton.com> * @license New BSD License <http://creativecommons.org/licenses/BSD/> */ (function(window,undefined){ "use strict"; // ======================================================================== // Initialise // Localise Globals var console = window.console||undefined, // Prevent a JSLint complain document = window.document, // Make sure we are using the correct document navigator = window.navigator, // Make sure we are using the correct navigator sessionStorage = window.sessionStorage||false, // sessionStorage setTimeout = window.setTimeout, clearTimeout = window.clearTimeout, setInterval = window.setInterval, clearInterval = window.clearInterval, JSON = window.JSON, alert = window.alert, History = window.History = window.History||{}, // Public History Object history = window.history; // Old History Object try { sessionStorage.setItem('TEST', '1'); sessionStorage.removeItem('TEST'); } catch(e) { sessionStorage = false; } // MooTools Compatibility JSON.stringify = JSON.stringify||JSON.encode; JSON.parse = JSON.parse||JSON.decode; // Check Existence if ( typeof History.init !== 'undefined' ) { throw new Error('History.js Core has already been loaded...'); } // Initialise History History.init = function(options){ // Check Load Status of Adapter if ( typeof History.Adapter === 'undefined' ) { return false; } // Check Load Status of Core if ( typeof History.initCore !== 'undefined' ) { History.initCore(); } // Check Load Status of HTML4 Support if ( typeof History.initHtml4 !== 'undefined' ) { History.initHtml4(); } // Return true return true; }; // ======================================================================== // Initialise Core // Initialise Core History.initCore = function(options){ // Initialise if ( typeof History.initCore.initialized !== 'undefined' ) { // Already Loaded return false; } else { History.initCore.initialized = true; } // ==================================================================== // Options /** * History.options * Configurable options */ History.options = History.options||{}; /** * History.options.hashChangeInterval * How long should the interval be before hashchange checks */ History.options.hashChangeInterval = History.options.hashChangeInterval || 100; /** * History.options.safariPollInterval * How long should the interval be before safari poll checks */ History.options.safariPollInterval = History.options.safariPollInterval || 500; /** * History.options.doubleCheckInterval * How long should the interval be before we perform a double check */ History.options.doubleCheckInterval = History.options.doubleCheckInterval || 500; /** * History.options.disableSuid * Force History not to append suid */ History.options.disableSuid = History.options.disableSuid || false; /** * History.options.storeInterval * How long should we wait between store calls */ History.options.storeInterval = History.options.storeInterval || 1000; /** * History.options.busyDelay * How long should we wait between busy events */ History.options.busyDelay = History.options.busyDelay || 250; /** * History.options.debug * If true will enable debug messages to be logged */ History.options.debug = History.options.debug || false; /** * History.options.initialTitle * What is the title of the initial state */ History.options.initialTitle = History.options.initialTitle || document.title; /** * History.options.html4Mode * If true, will force HTMl4 mode (hashtags) */ History.options.html4Mode = History.options.html4Mode || false; /** * History.options.delayInit * Want to override default options and call init manually. */ History.options.delayInit = History.options.delayInit || false; // ==================================================================== // Interval record /** * History.intervalList * List of intervals set, to be cleared when document is unloaded. */ History.intervalList = []; /** * History.clearAllIntervals * Clears all setInterval instances. */ History.clearAllIntervals = function(){ var i, il = History.intervalList; if (typeof il !== "undefined" && il !== null) { for (i = 0; i < il.length; i++) { clearInterval(il[i]); } History.intervalList = null; } }; // ==================================================================== // Debug /** * History.debug(message,...) * Logs the passed arguments if debug enabled */ History.debug = function(){ if ( (History.options.debug||false) ) { History.log.apply(History,arguments); } }; /** * History.log(message,...) * Logs the passed arguments */ History.log = function(){ // Prepare var consoleExists = !(typeof console === 'undefined' || typeof console.log === 'undefined' || typeof console.log.apply === 'undefined'), textarea = document.getElementById('log'), message, i,n, args,arg ; // Write to Console if ( consoleExists ) { args = Array.prototype.slice.call(arguments); message = args.shift(); if ( typeof console.debug !== 'undefined' ) { console.debug.apply(console,[message,args]); } else { console.log.apply(console,[message,args]); } } else { message = ("\n"+arguments[0]+"\n"); } // Write to log for ( i=1,n=arguments.length; i<n; ++i ) { arg = arguments[i]; if ( typeof arg === 'object' && typeof JSON !== 'undefined' ) { try { arg = JSON.stringify(arg); } catch ( Exception ) { // Recursive Object } } message += "\n"+arg+"\n"; } // Textarea if ( textarea ) { textarea.value += message+"\n-----\n"; textarea.scrollTop = textarea.scrollHeight - textarea.clientHeight; } // No Textarea, No Console else if ( !consoleExists ) { alert(message); } // Return true return true; }; // ==================================================================== // Emulated Status /** * History.getInternetExplorerMajorVersion() * Get's the major version of Internet Explorer * @return {integer} * @license Public Domain * @author Benjamin Arthur Lupton <contact@balupton.com> * @author James Padolsey <https://gist.github.com/527683> */ History.getInternetExplorerMajorVersion = function(){ var result = History.getInternetExplorerMajorVersion.cached = (typeof History.getInternetExplorerMajorVersion.cached !== 'undefined') ? History.getInternetExplorerMajorVersion.cached : (function(){ var v = 3, div = document.createElement('div'), all = div.getElementsByTagName('i'); while ( (div.innerHTML = '<!--[if gt IE ' + (++v) + ']><i></i><![endif]-->') && all[0] ) {} return (v > 4) ? v : false; })() ; return result; }; /** * History.isInternetExplorer() * Are we using Internet Explorer? * @return {boolean} * @license Public Domain * @author Benjamin Arthur Lupton <contact@balupton.com> */ History.isInternetExplorer = function(){ var result = History.isInternetExplorer.cached = (typeof History.isInternetExplorer.cached !== 'undefined') ? History.isInternetExplorer.cached : Boolean(History.getInternetExplorerMajorVersion()) ; return result; }; /** * History.emulated * Which features require emulating? */ if (History.options.html4Mode) { History.emulated = { pushState : true, hashChange: true }; } else { History.emulated = { pushState: !Boolean( window.history && window.history.pushState && window.history.replaceState && !( (/ Mobile\/([1-7][a-z]|(8([abcde]|f(1[0-8]))))/i).test(navigator.userAgent) /* disable for versions of iOS before version 4.3 (8F190) */ || (/AppleWebKit\/5([0-2]|3[0-2])/i).test(navigator.userAgent) /* disable for the mercury iOS browser, or at least older versions of the webkit engine */ ) ), hashChange: Boolean( !(('onhashchange' in window) || ('onhashchange' in document)) || (History.isInternetExplorer() && History.getInternetExplorerMajorVersion() < 8) ) }; } /** * History.enabled * Is History enabled? */ History.enabled = !History.emulated.pushState; /** * History.bugs * Which bugs are present */ History.bugs = { /** * Safari 5 and Safari iOS 4 fail to return to the correct state once a hash is replaced by a `replaceState` call * https://bugs.webkit.org/show_bug.cgi?id=56249 */ setHash: Boolean(!History.emulated.pushState && navigator.vendor === 'Apple Computer, Inc.' && /AppleWebKit\/5([0-2]|3[0-3])/.test(navigator.userAgent)), /** * Safari 5 and Safari iOS 4 sometimes fail to apply the state change under busy conditions * https://bugs.webkit.org/show_bug.cgi?id=42940 */ safariPoll: Boolean(!History.emulated.pushState && navigator.vendor === 'Apple Computer, Inc.' && /AppleWebKit\/5([0-2]|3[0-3])/.test(navigator.userAgent)), /** * MSIE 6 and 7 sometimes do not apply a hash even it was told to (requiring a second call to the apply function) */ ieDoubleCheck: Boolean(History.isInternetExplorer() && History.getInternetExplorerMajorVersion() < 8), /** * MSIE 6 requires the entire hash to be encoded for the hashes to trigger the onHashChange event */ hashEscape: Boolean(History.isInternetExplorer() && History.getInternetExplorerMajorVersion() < 7) }; /** * History.isEmptyObject(obj) * Checks to see if the Object is Empty * @param {Object} obj * @return {boolean} */ History.isEmptyObject = function(obj) { for ( var name in obj ) { if ( obj.hasOwnProperty(name) ) { return false; } } return true; }; /** * History.cloneObject(obj) * Clones a object and eliminate all references to the original contexts * @param {Object} obj * @return {Object} */ History.cloneObject = function(obj) { var hash,newObj; if ( obj ) { hash = JSON.stringify(obj); newObj = JSON.parse(hash); } else { newObj = {}; } return newObj; }; // ==================================================================== // URL Helpers /** * History.getRootUrl() * Turns "http://mysite.com/dir/page.html?asd" into "http://mysite.com" * @return {String} rootUrl */ History.getRootUrl = function(){ // Create var rootUrl = document.location.protocol+'//'+(document.location.hostname||document.location.host); if ( document.location.port||false ) { rootUrl += ':'+document.location.port; } rootUrl += '/'; // Return return rootUrl; }; /** * History.getBaseHref() * Fetches the `href` attribute of the `<base href="...">` element if it exists * @return {String} baseHref */ History.getBaseHref = function(){ // Create var baseElements = document.getElementsByTagName('base'), baseElement = null, baseHref = ''; // Test for Base Element if ( baseElements.length === 1 ) { // Prepare for Base Element baseElement = baseElements[0]; baseHref = baseElement.href.replace(/[^\/]+$/,''); } // Adjust trailing slash baseHref = baseHref.replace(/\/+$/,''); if ( baseHref ) baseHref += '/'; // Return return baseHref; }; /** * History.getBaseUrl() * Fetches the baseHref or basePageUrl or rootUrl (whichever one exists first) * @return {String} baseUrl */ History.getBaseUrl = function(){ // Create var baseUrl = History.getBaseHref()||History.getBasePageUrl()||History.getRootUrl(); // Return return baseUrl; }; /** * History.getPageUrl() * Fetches the URL of the current page * @return {String} pageUrl */ History.getPageUrl = function(){ // Fetch var State = History.getState(false,false), stateUrl = (State||{}).url||History.getLocationHref(), pageUrl; // Create pageUrl = stateUrl.replace(/\/+$/,'').replace(/[^\/]+$/,function(part,index,string){ return (/\./).test(part) ? part : part+'/'; }); // Return return pageUrl; }; /** * History.getBasePageUrl() * Fetches the Url of the directory of the current page * @return {String} basePageUrl */ History.getBasePageUrl = function(){ // Create var basePageUrl = (History.getLocationHref()).replace(/[#\?].*/,'').replace(/[^\/]+$/,function(part,index,string){ return (/[^\/]$/).test(part) ? '' : part; }).replace(/\/+$/,'')+'/'; // Return return basePageUrl; }; /** * History.getFullUrl(url) * Ensures that we have an absolute URL and not a relative URL * @param {string} url * @param {Boolean} allowBaseHref * @return {string} fullUrl */ History.getFullUrl = function(url,allowBaseHref){ // Prepare var fullUrl = url, firstChar = url.substring(0,1); allowBaseHref = (typeof allowBaseHref === 'undefined') ? true : allowBaseHref; // Check if ( /[a-z]+\:\/\//.test(url) ) { // Full URL } else if ( firstChar === '/' ) { // Root URL fullUrl = History.getRootUrl()+url.replace(/^\/+/,''); } else if ( firstChar === '#' ) { // Anchor URL fullUrl = History.getPageUrl().replace(/#.*/,'')+url; } else if ( firstChar === '?' ) { // Query URL fullUrl = History.getPageUrl().replace(/[\?#].*/,'')+url; } else { // Relative URL if ( allowBaseHref ) { fullUrl = History.getBaseUrl()+url.replace(/^(\.\/)+/,''); } else { fullUrl = History.getBasePageUrl()+url.replace(/^(\.\/)+/,''); } // We have an if condition above as we do not want hashes // which are relative to the baseHref in our URLs // as if the baseHref changes, then all our bookmarks // would now point to different locations // whereas the basePageUrl will always stay the same } // Return return fullUrl.replace(/\#$/,''); }; /** * History.getShortUrl(url) * Ensures that we have a relative URL and not a absolute URL * @param {string} url * @return {string} url */ History.getShortUrl = function(url){ // Prepare var shortUrl = url, baseUrl = History.getBaseUrl(), rootUrl = History.getRootUrl(); // Trim baseUrl if ( History.emulated.pushState ) { // We are in a if statement as when pushState is not emulated // The actual url these short urls are relative to can change // So within the same session, we the url may end up somewhere different shortUrl = shortUrl.replace(baseUrl,''); } // Trim rootUrl shortUrl = shortUrl.replace(rootUrl,'/'); // Ensure we can still detect it as a state if ( History.isTraditionalAnchor(shortUrl) ) { shortUrl = './'+shortUrl; } // Clean It shortUrl = shortUrl.replace(/^(\.\/)+/g,'./').replace(/\#$/,''); // Return return shortUrl; }; /** * History.getLocationHref(document) * Returns a normalized version of document.location.href * accounting for browser inconsistencies, etc. * * This URL will be URI-encoded and will include the hash * * @param {object} document * @return {string} url */ History.getLocationHref = function(doc) { doc = doc || document; // most of the time, this will be true if (doc.URL === doc.location.href) return doc.location.href; // some versions of webkit URI-decode document.location.href // but they leave document.URL in an encoded state if (doc.location.href === decodeURIComponent(doc.URL)) return doc.URL; // FF 3.6 only updates document.URL when a page is reloaded // document.location.href is updated correctly if (doc.location.hash && decodeURIComponent(doc.location.href.replace(/^[^#]+/, "")) === doc.location.hash) return doc.location.href; if (doc.URL.indexOf('#') == -1 && doc.location.href.indexOf('#') != -1) return doc.location.href; return doc.URL || doc.location.href; }; // ==================================================================== // State Storage /** * History.store * The store for all session specific data */ History.store = {}; /** * History.idToState * 1-1: State ID to State Object */ History.idToState = History.idToState||{}; /** * History.stateToId * 1-1: State String to State ID */ History.stateToId = History.stateToId||{}; /** * History.urlToId * 1-1: State URL to State ID */ History.urlToId = History.urlToId||{}; /** * History.storedStates * Store the states in an array */ History.storedStates = History.storedStates||[]; /** * History.savedStates * Saved the states in an array */ History.savedStates = History.savedStates||[]; /** * History.noramlizeStore() * Noramlize the store by adding necessary values */ History.normalizeStore = function(){ History.store.idToState = History.store.idToState||{}; History.store.urlToId = History.store.urlToId||{}; History.store.stateToId = History.store.stateToId||{}; }; /** * History.getState() * Get an object containing the data, title and url of the current state * @param {Boolean} friendly * @param {Boolean} create * @return {Object} State */ History.getState = function(friendly,create){ // Prepare if ( typeof friendly === 'undefined' ) { friendly = true; } if ( typeof create === 'undefined' ) { create = true; } // Fetch var State = History.getLastSavedState(); // Create if ( !State && create ) { State = History.createStateObject(); } // Adjust if ( friendly ) { State = History.cloneObject(State); State.url = State.cleanUrl||State.url; } // Return return State; }; /** * History.getIdByState(State) * Gets a ID for a State * @param {State} newState * @return {String} id */ History.getIdByState = function(newState){ // Fetch ID var id = History.extractId(newState.url), str; if ( !id ) { // Find ID via State String str = History.getStateString(newState); if ( typeof History.stateToId[str] !== 'undefined' ) { id = History.stateToId[str]; } else if ( typeof History.store.stateToId[str] !== 'undefined' ) { id = History.store.stateToId[str]; } else { // Generate a new ID while ( true ) { id = (new Date()).getTime() + String(Math.random()).replace(/\D/g,''); if ( typeof History.idToState[id] === 'undefined' && typeof History.store.idToState[id] === 'undefined' ) { break; } } // Apply the new State to the ID History.stateToId[str] = id; History.idToState[id] = newState; } } // Return ID return id; }; /** * History.normalizeState(State) * Expands a State Object * @param {object} State * @return {object} */ History.normalizeState = function(oldState){ // Variables var newState, dataNotEmpty; // Prepare if ( !oldState || (typeof oldState !== 'object') ) { oldState = {}; } // Check if ( typeof oldState.normalized !== 'undefined' ) { return oldState; } // Adjust if ( !oldState.data || (typeof oldState.data !== 'object') ) { oldState.data = {}; } // ---------------------------------------------------------------- // Create newState = {}; newState.normalized = true; newState.title = oldState.title||''; newState.url = History.getFullUrl(oldState.url?oldState.url:(History.getLocationHref())); newState.hash = History.getShortUrl(newState.url); newState.data = History.cloneObject(oldState.data); // Fetch ID newState.id = History.getIdByState(newState); // ---------------------------------------------------------------- // Clean the URL newState.cleanUrl = newState.url.replace(/\??\&_suid.*/,''); newState.url = newState.cleanUrl; // Check to see if we have more than just a url dataNotEmpty = !History.isEmptyObject(newState.data); // Apply if ( (newState.title || dataNotEmpty) && History.options.disableSuid !== true ) { // Add ID to Hash newState.hash = History.getShortUrl(newState.url).replace(/\??\&_suid.*/,''); if ( !/\?/.test(newState.hash) ) { newState.hash += '?'; } newState.hash += '&_suid='+newState.id; } // Create the Hashed URL newState.hashedUrl = History.getFullUrl(newState.hash); // ---------------------------------------------------------------- // Update the URL if we have a duplicate if ( (History.emulated.pushState || History.bugs.safariPoll) && History.hasUrlDuplicate(newState) ) { newState.url = newState.hashedUrl; } // ---------------------------------------------------------------- // Return return newState; }; /** * History.createStateObject(data,title,url) * Creates a object based on the data, title and url state params * @param {object} data * @param {string} title * @param {string} url * @return {object} */ History.createStateObject = function(data,title,url){ // Hashify var State = { 'data': data, 'title': title, 'url': url }; // Expand the State State = History.normalizeState(State); // Return object return State; }; /** * History.getStateById(id) * Get a state by it's UID * @param {String} id */ History.getStateById = function(id){ // Prepare id = String(id); // Retrieve var State = History.idToState[id] || History.store.idToState[id] || undefined; // Return State return State; }; /** * Get a State's String * @param {State} passedState */ History.getStateString = function(passedState){ // Prepare var State, cleanedState, str; // Fetch State = History.normalizeState(passedState); // Clean cleanedState = { data: State.data, title: passedState.title, url: passedState.url }; // Fetch str = JSON.stringify(cleanedState); // Return return str; }; /** * Get a State's ID * @param {State} passedState * @return {String} id */ History.getStateId = function(passedState){ // Prepare var State, id; // Fetch State = History.normalizeState(passedState); // Fetch id = State.id; // Return return id; }; /** * History.getHashByState(State) * Creates a Hash for the State Object * @param {State} passedState * @return {String} hash */ History.getHashByState = function(passedState){ // Prepare var State, hash; // Fetch State = History.normalizeState(passedState); // Hash hash = State.hash; // Return return hash; }; /** * History.extractId(url_or_hash) * Get a State ID by it's URL or Hash * @param {string} url_or_hash * @return {string} id */ History.extractId = function ( url_or_hash ) { // Prepare var id,parts,url, tmp; // Extract // If the URL has a #, use the id from before the # if (url_or_hash.indexOf('#') != -1) { tmp = url_or_hash.split("#")[0]; } else { tmp = url_or_hash; } parts = /(.*)\&_suid=([0-9]+)$/.exec(tmp); url = parts ? (parts[1]||url_or_hash) : url_or_hash; id = parts ? String(parts[2]||'') : ''; // Return return id||false; }; /** * History.isTraditionalAnchor * Checks to see if the url is a traditional anchor or not * @param {String} url_or_hash * @return {Boolean} */ History.isTraditionalAnchor = function(url_or_hash){ // Check var isTraditional = !(/[\/\?\.]/.test(url_or_hash)); // Return return isTraditional; }; /** * History.extractState * Get a State by it's URL or Hash * @param {String} url_or_hash * @return {State|null} */ History.extractState = function(url_or_hash,create){ // Prepare var State = null, id, url; create = create||false; // Fetch SUID id = History.extractId(url_or_hash); if ( id ) { State = History.getStateById(id); } // Fetch SUID returned no State if ( !State ) { // Fetch URL url = History.getFullUrl(url_or_hash); // Check URL id = History.getIdByUrl(url)||false; if ( id ) { State = History.getStateById(id); } // Create State if ( !State && create && !History.isTraditionalAnchor(url_or_hash) ) { State = History.createStateObject(null,null,url); } } // Return return State; }; /** * History.getIdByUrl() * Get a State ID by a State URL */ History.getIdByUrl = function(url){ // Fetch var id = History.urlToId[url] || History.store.urlToId[url] || undefined; // Return return id; }; /** * History.getLastSavedState() * Get an object containing the data, title and url of the current state * @return {Object} State */ History.getLastSavedState = function(){ return History.savedStates[History.savedStates.length-1]||undefined; }; /** * History.getLastStoredState() * Get an object containing the data, title and url of the current state * @return {Object} State */ History.getLastStoredState = function(){ return History.storedStates[History.storedStates.length-1]||undefined; }; /** * History.hasUrlDuplicate * Checks if a Url will have a url conflict * @param {Object} newState * @return {Boolean} hasDuplicate */ History.hasUrlDuplicate = function(newState) { // Prepare var hasDuplicate = false, oldState; // Fetch oldState = History.extractState(newState.url); // Check hasDuplicate = oldState && oldState.id !== newState.id; // Return return hasDuplicate; }; /** * History.storeState * Store a State * @param {Object} newState * @return {Object} newState */ History.storeState = function(newState){ // Store the State History.urlToId[newState.url] = newState.id; // Push the State History.storedStates.push(History.cloneObject(newState)); // Return newState return newState; }; /** * History.isLastSavedState(newState) * Tests to see if the state is the last state * @param {Object} newState * @return {boolean} isLast */ History.isLastSavedState = function(newState){ // Prepare var isLast = false, newId, oldState, oldId; // Check if ( History.savedStates.length ) { newId = newState.id; oldState = History.getLastSavedState(); oldId = oldState.id; // Check isLast = (newId === oldId); } // Return return isLast; }; /** * History.saveState * Push a State * @param {Object} newState * @return {boolean} changed */ History.saveState = function(newState){ // Check Hash if ( History.isLastSavedState(newState) ) { return false; } // Push the State History.savedStates.push(History.cloneObject(newState)); // Return true return true; }; /** * History.getStateByIndex() * Gets a state by the index * @param {integer} index * @return {Object} */ History.getStateByIndex = function(index){ // Prepare var State = null; // Handle if ( typeof index === 'undefined' ) { // Get the last inserted State = History.savedStates[History.savedStates.length-1]; } else if ( index < 0 ) { // Get from the end State = History.savedStates[History.savedStates.length+index]; } else { // Get from the beginning State = History.savedStates[index]; } // Return State return State; }; /** * History.getCurrentIndex() * Gets the current index * @return (integer) */ History.getCurrentIndex = function(){ // Prepare var index = null; // No states saved if(History.savedStates.length < 1) { index = 0; } else { index = History.savedStates.length-1; } return index; }; // ==================================================================== // Hash Helpers /** * History.getHash() * @param {Location=} location * Gets the current document hash * Note: unlike location.hash, this is guaranteed to return the escaped hash in all browsers * @return {string} */ History.getHash = function(doc){ var url = History.getLocationHref(doc), hash; hash = History.getHashByUrl(url); return hash; }; /** * History.unescapeHash() * normalize and Unescape a Hash * @param {String} hash * @return {string} */ History.unescapeHash = function(hash){ // Prepare var result = History.normalizeHash(hash); // Unescape hash result = decodeURIComponent(result); // Return result return result; }; /** * History.normalizeHash() * normalize a hash across browsers * @return {string} */ History.normalizeHash = function(hash){ // Prepare var result = hash.replace(/[^#]*#/,'').replace(/#.*/, ''); // Return result return result; }; /** * History.setHash(hash) * Sets the document hash * @param {string} hash * @return {History} */ History.setHash = function(hash,queue){ // Prepare var State, pageUrl; // Handle Queueing if ( queue !== false && History.busy() ) { // Wait + Push to Queue //History.debug('History.setHash: we must wait', arguments); History.pushQueue({ scope: History, callback: History.setHash, args: arguments, queue: queue }); return false; } // Log //History.debug('History.setHash: called',hash); // Make Busy + Continue History.busy(true); // Check if hash is a state State = History.extractState(hash,true); if ( State && !History.emulated.pushState ) { // Hash is a state so skip the setHash //History.debug('History.setHash: Hash is a state so skipping the hash set with a direct pushState call',arguments); // PushState History.pushState(State.data,State.title,State.url,false); } else if ( History.getHash() !== hash ) { // Hash is a proper hash, so apply it // Handle browser bugs if ( History.bugs.setHash ) { // Fix Safari Bug https://bugs.webkit.org/show_bug.cgi?id=56249 // Fetch the base page pageUrl = History.getPageUrl(); // Safari hash apply History.pushState(null,null,pageUrl+'#'+hash,false); } else { // Normal hash apply document.location.hash = hash; } } // Chain return History; }; /** * History.escape() * normalize and Escape a Hash * @return {string} */ History.escapeHash = function(hash){ // Prepare var result = History.normalizeHash(hash); // Escape hash result = window.encodeURIComponent(result); // IE6 Escape Bug if ( !History.bugs.hashEscape ) { // Restore common parts result = result .replace(/\%21/g,'!') .replace(/\%26/g,'&') .replace(/\%3D/g,'=') .replace(/\%3F/g,'?'); } // Return result return result; }; /** * History.getHashByUrl(url) * Extracts the Hash from a URL * @param {string} url * @return {string} url */ History.getHashByUrl = function(url){ // Extract the hash var hash = String(url) .replace(/([^#]*)#?([^#]*)#?(.*)/, '$2') ; // Unescape hash hash = History.unescapeHash(hash); // Return hash return hash; }; /** * History.setTitle(title) * Applies the title to the document * @param {State} newState * @return {Boolean} */ History.setTitle = function(newState){ // Prepare var title = newState.title, firstState; // Initial if ( !title ) { firstState = History.getStateByIndex(0); if ( firstState && firstState.url === newState.url ) { title = firstState.title||History.options.initialTitle; } } // Apply try { document.getElementsByTagName('title')[0].innerHTML = title.replace('<','&lt;').replace('>','&gt;').replace(' & ',' &amp; '); } catch ( Exception ) { } document.title = title; // Chain return History; }; // ==================================================================== // Queueing /** * History.queues * The list of queues to use * First In, First Out */ History.queues = []; /** * History.busy(value) * @param {boolean} value [optional] * @return {boolean} busy */ History.busy = function(value){ // Apply if ( typeof value !== 'undefined' ) { //History.debug('History.busy: changing ['+(History.busy.flag||false)+'] to ['+(value||false)+']', History.queues.length); History.busy.flag = value; } // Default else if ( typeof History.busy.flag === 'undefined' ) { History.busy.flag = false; } // Queue if ( !History.busy.flag ) { // Execute the next item in the queue clearTimeout(History.busy.timeout); var fireNext = function(){ var i, queue, item; if ( History.busy.flag ) return; for ( i=History.queues.length-1; i >= 0; --i ) { queue = History.queues[i]; if ( queue.length === 0 ) continue; item = queue.shift(); History.fireQueueItem(item); History.busy.timeout = setTimeout(fireNext,History.options.busyDelay); } }; History.busy.timeout = setTimeout(fireNext,History.options.busyDelay); } // Return return History.busy.flag; }; /** * History.busy.flag */ History.busy.flag = false; /** * History.fireQueueItem(item) * Fire a Queue Item * @param {Object} item * @return {Mixed} result */ History.fireQueueItem = function(item){ return item.callback.apply(item.scope||History,item.args||[]); }; /** * History.pushQueue(callback,args) * Add an item to the queue * @param {Object} item [scope,callback,args,queue] */ History.pushQueue = function(item){ // Prepare the queue History.queues[item.queue||0] = History.queues[item.queue||0]||[]; // Add to the queue History.queues[item.queue||0].push(item); // Chain return History; }; /** * History.queue (item,queue), (func,queue), (func), (item) * Either firs the item now if not busy, or adds it to the queue */ History.queue = function(item,queue){ // Prepare if ( typeof item === 'function' ) { item = { callback: item }; } if ( typeof queue !== 'undefined' ) { item.queue = queue; } // Handle if ( History.busy() ) { History.pushQueue(item); } else { History.fireQueueItem(item); } // Chain return History; }; /** * History.clearQueue() * Clears the Queue */ History.clearQueue = function(){ History.busy.flag = false; History.queues = []; return History; }; // ==================================================================== // IE Bug Fix /** * History.stateChanged * States whether or not the state has changed since the last double check was initialised */ History.stateChanged = false; /** * History.doubleChecker * Contains the timeout used for the double checks */ History.doubleChecker = false; /** * History.doubleCheckComplete() * Complete a double check * @return {History} */ History.doubleCheckComplete = function(){ // Update History.stateChanged = true; // Clear History.doubleCheckClear(); // Chain return History; }; /** * History.doubleCheckClear() * Clear a double check * @return {History} */ History.doubleCheckClear = function(){ // Clear if ( History.doubleChecker ) { clearTimeout(History.doubleChecker); History.doubleChecker = false; } // Chain return History; }; /** * History.doubleCheck() * Create a double check * @return {History} */ History.doubleCheck = function(tryAgain){ // Reset History.stateChanged = false; History.doubleCheckClear(); // Fix IE6,IE7 bug where calling history.back or history.forward does not actually change the hash (whereas doing it manually does) // Fix Safari 5 bug where sometimes the state does not change: https://bugs.webkit.org/show_bug.cgi?id=42940 if ( History.bugs.ieDoubleCheck ) { // Apply Check History.doubleChecker = setTimeout( function(){ History.doubleCheckClear(); if ( !History.stateChanged ) { //History.debug('History.doubleCheck: State has not yet changed, trying again', arguments); // Re-Attempt tryAgain(); } return true; }, History.options.doubleCheckInterval ); } // Chain return History; }; // ==================================================================== // Safari Bug Fix /** * History.safariStatePoll() * Poll the current state * @return {History} */ History.safariStatePoll = function(){ // Poll the URL // Get the Last State which has the new URL var urlState = History.extractState(History.getLocationHref()), newState; // Check for a difference if ( !History.isLastSavedState(urlState) ) { newState = urlState; } else { return; } // Check if we have a state with that url // If not create it if ( !newState ) { //History.debug('History.safariStatePoll: new'); newState = History.createStateObject(); } // Apply the New State //History.debug('History.safariStatePoll: trigger'); History.Adapter.trigger(window,'popstate'); // Chain return History; }; // ==================================================================== // State Aliases /** * History.back(queue) * Send the browser history back one item * @param {Integer} queue [optional] */ History.back = function(queue){ //History.debug('History.back: called', arguments); // Handle Queueing if ( queue !== false && History.busy() ) { // Wait + Push to Queue //History.debug('History.back: we must wait', arguments); History.pushQueue({ scope: History, callback: History.back, args: arguments, queue: queue }); return false; } // Make Busy + Continue History.busy(true); // Fix certain browser bugs that prevent the state from changing History.doubleCheck(function(){ History.back(false); }); // Go back history.go(-1); // End back closure return true; }; /** * History.forward(queue) * Send the browser history forward one item * @param {Integer} queue [optional] */ History.forward = function(queue){ //History.debug('History.forward: called', arguments); // Handle Queueing if ( queue !== false && History.busy() ) { // Wait + Push to Queue //History.debug('History.forward: we must wait', arguments); History.pushQueue({ scope: History, callback: History.forward, args: arguments, queue: queue }); return false; } // Make Busy + Continue History.busy(true); // Fix certain browser bugs that prevent the state from changing History.doubleCheck(function(){ History.forward(false); }); // Go forward history.go(1); // End forward closure return true; }; /** * History.go(index,queue) * Send the browser history back or forward index times * @param {Integer} queue [optional] */ History.go = function(index,queue){ //History.debug('History.go: called', arguments); // Prepare var i; // Handle if ( index > 0 ) { // Forward for ( i=1; i<=index; ++i ) { History.forward(queue); } } else if ( index < 0 ) { // Backward for ( i=-1; i>=index; --i ) { History.back(queue); } } else { throw new Error('History.go: History.go requires a positive or negative integer passed.'); } // Chain return History; }; // ==================================================================== // HTML5 State Support // Non-Native pushState Implementation if ( History.emulated.pushState ) { /* * Provide Skeleton for HTML4 Browsers */ // Prepare var emptyFunction = function(){}; History.pushState = History.pushState||emptyFunction; History.replaceState = History.replaceState||emptyFunction; } // History.emulated.pushState // Native pushState Implementation else { /* * Use native HTML5 History API Implementation */ /** * History.onPopState(event,extra) * Refresh the Current State */ History.onPopState = function(event,extra){ // Prepare var stateId = false, newState = false, currentHash, currentState; // Reset the double check History.doubleCheckComplete(); // Check for a Hash, and handle apporiatly currentHash = History.getHash(); if ( currentHash ) { // Expand Hash currentState = History.extractState(currentHash||History.getLocationHref(),true); if ( currentState ) { // We were able to parse it, it must be a State! // Let's forward to replaceState //History.debug('History.onPopState: state anchor', currentHash, currentState); History.replaceState(currentState.data, currentState.title, currentState.url, false); } else { // Traditional Anchor //History.debug('History.onPopState: traditional anchor', currentHash); History.Adapter.trigger(window,'anchorchange'); History.busy(false); } // We don't care for hashes History.expectedStateId = false; return false; } // Ensure stateId = History.Adapter.extractEventData('state',event,extra) || false; // Fetch State if ( stateId ) { // Vanilla: Back/forward button was used newState = History.getStateById(stateId); } else if ( History.expectedStateId ) { // Vanilla: A new state was pushed, and popstate was called manually newState = History.getStateById(History.expectedStateId); } else { // Initial State newState = History.extractState(History.getLocationHref()); } // The State did not exist in our store if ( !newState ) { // Regenerate the State newState = History.createStateObject(null,null,History.getLocationHref()); } // Clean History.expectedStateId = false; // Check if we are the same state if ( History.isLastSavedState(newState) ) { // There has been no change (just the page's hash has finally propagated) //History.debug('History.onPopState: no change', newState, History.savedStates); History.busy(false); return false; } // Store the State History.storeState(newState); History.saveState(newState); // Force update of the title History.setTitle(newState); // Fire Our Event History.Adapter.trigger(window,'statechange'); History.busy(false); // Return true return true; }; History.Adapter.bind(window,'popstate',History.onPopState); /** * History.pushState(data,title,url) * Add a new State to the history object, become it, and trigger onpopstate * We have to trigger for HTML4 compatibility * @param {object} data * @param {string} title * @param {string} url * @return {true} */ History.pushState = function(data,title,url,queue){ //History.debug('History.pushState: called', arguments); // Check the State if ( History.getHashByUrl(url) && History.emulated.pushState ) { throw new Error('History.js does not support states with fragement-identifiers (hashes/anchors).'); } // Handle Queueing if ( queue !== false && History.busy() ) { // Wait + Push to Queue //History.debug('History.pushState: we must wait', arguments); History.pushQueue({ scope: History, callback: History.pushState, args: arguments, queue: queue }); return false; } // Make Busy + Continue History.busy(true); // Create the newState var newState = History.createStateObject(data,title,url); // Check it if ( History.isLastSavedState(newState) ) { // Won't be a change History.busy(false); } else { // Store the newState History.storeState(newState); History.expectedStateId = newState.id; // Push the newState history.pushState(newState.id,newState.title,newState.url); // Fire HTML5 Event History.Adapter.trigger(window,'popstate'); } // End pushState closure return true; }; /** * History.replaceState(data,title,url) * Replace the State and trigger onpopstate * We have to trigger for HTML4 compatibility * @param {object} data * @param {string} title * @param {string} url * @return {true} */ History.replaceState = function(data,title,url,queue){ //History.debug('History.replaceState: called', arguments); // Check the State if ( History.getHashByUrl(url) && History.emulated.pushState ) { throw new Error('History.js does not support states with fragement-identifiers (hashes/anchors).'); } // Handle Queueing if ( queue !== false && History.busy() ) { // Wait + Push to Queue //History.debug('History.replaceState: we must wait', arguments); History.pushQueue({ scope: History, callback: History.replaceState, args: arguments, queue: queue }); return false; } // Make Busy + Continue History.busy(true); // Create the newState var newState = History.createStateObject(data,title,url); // Check it if ( History.isLastSavedState(newState) ) { // Won't be a change History.busy(false); } else { // Store the newState History.storeState(newState); History.expectedStateId = newState.id; // Push the newState history.replaceState(newState.id,newState.title,newState.url); // Fire HTML5 Event History.Adapter.trigger(window,'popstate'); } // End replaceState closure return true; }; } // !History.emulated.pushState // ==================================================================== // Initialise /** * Load the Store */ if ( sessionStorage ) { // Fetch try { History.store = JSON.parse(sessionStorage.getItem('History.store'))||{}; } catch ( err ) { History.store = {}; } // Normalize History.normalizeStore(); } else { // Default Load History.store = {}; History.normalizeStore(); } /** * Clear Intervals on exit to prevent memory leaks */ History.Adapter.bind(window,"unload",History.clearAllIntervals); /** * Create the initial State */ History.saveState(History.storeState(History.extractState(History.getLocationHref(),true))); /** * Bind for Saving Store */ if ( sessionStorage ) { // When the page is closed History.onUnload = function(){ // Prepare var currentStore, item, currentStoreString; // Fetch try { currentStore = JSON.parse(sessionStorage.getItem('History.store'))||{}; } catch ( err ) { currentStore = {}; } // Ensure currentStore.idToState = currentStore.idToState || {}; currentStore.urlToId = currentStore.urlToId || {}; currentStore.stateToId = currentStore.stateToId || {}; // Sync for ( item in History.idToState ) { if ( !History.idToState.hasOwnProperty(item) ) { continue; } currentStore.idToState[item] = History.idToState[item]; } for ( item in History.urlToId ) { if ( !History.urlToId.hasOwnProperty(item) ) { continue; } currentStore.urlToId[item] = History.urlToId[item]; } for ( item in History.stateToId ) { if ( !History.stateToId.hasOwnProperty(item) ) { continue; } currentStore.stateToId[item] = History.stateToId[item]; } // Update History.store = currentStore; History.normalizeStore(); // In Safari, going into Private Browsing mode causes the // Session Storage object to still exist but if you try and use // or set any property/function of it it throws the exception // "QUOTA_EXCEEDED_ERR: DOM Exception 22: An attempt was made to // add something to storage that exceeded the quota." infinitely // every second. currentStoreString = JSON.stringify(currentStore); try { // Store sessionStorage.setItem('History.store', currentStoreString); } catch (e) { if (e.code === DOMException.QUOTA_EXCEEDED_ERR) { if (sessionStorage.length) { // Workaround for a bug seen on iPads. Sometimes the quota exceeded error comes up and simply // removing/resetting the storage can work. sessionStorage.removeItem('History.store'); sessionStorage.setItem('History.store', currentStoreString); } else { // Otherwise, we're probably private browsing in Safari, so we'll ignore the exception. } } else { throw e; } } }; // For Internet Explorer History.intervalList.push(setInterval(History.onUnload,History.options.storeInterval)); // For Other Browsers History.Adapter.bind(window,'beforeunload',History.onUnload); History.Adapter.bind(window,'unload',History.onUnload); // Both are enabled for consistency } // Non-Native pushState Implementation if ( !History.emulated.pushState ) { // Be aware, the following is only for native pushState implementations // If you are wanting to include something for all browsers // Then include it above this if block /** * Setup Safari Fix */ if ( History.bugs.safariPoll ) { History.intervalList.push(setInterval(History.safariStatePoll, History.options.safariPollInterval)); } /** * Ensure Cross Browser Compatibility */ if ( navigator.vendor === 'Apple Computer, Inc.' || (navigator.appCodeName||'') === 'Mozilla' ) { /** * Fix Safari HashChange Issue */ // Setup Alias History.Adapter.bind(window,'hashchange',function(){ History.Adapter.trigger(window,'popstate'); }); // Initialise Alias if ( History.getHash() ) { History.Adapter.onDomLoad(function(){ History.Adapter.trigger(window,'hashchange'); }); } } } // !History.emulated.pushState }; // History.initCore // Try to Initialise History if (!History.options || !History.options.delayInit) { History.init(); } })(window);
/*! * json-schema-faker library v0.3.1 * http://json-schema-faker.js.org * @preserve * * Copyright (c) 2014-2016 Alvaro Cabrera & Tomasz Ducin * Released under the MIT license * * Date: 2016-04-15 18:37:35.154Z */ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.jsf = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ var Registry = require('../class/Registry'); // instantiate var registry = new Registry(); /** * Custom format API * * @see https://github.com/json-schema-faker/json-schema-faker#custom-formats * @param nameOrFormatMap * @param callback * @returns {any} */ function formatAPI(nameOrFormatMap, callback) { if (typeof nameOrFormatMap === 'undefined') { return registry.list(); } else if (typeof nameOrFormatMap === 'string') { if (typeof callback === 'function') { registry.register(nameOrFormatMap, callback); } else { return registry.get(nameOrFormatMap); } } else { registry.registerMany(nameOrFormatMap); } } module.exports = formatAPI; },{"../class/Registry":5}],2:[function(require,module,exports){ var OptionRegistry = require('../class/OptionRegistry'); // instantiate var registry = new OptionRegistry(); /** * Custom option API * * @param nameOrOptionMap * @returns {any} */ function optionAPI(nameOrOptionMap) { if (typeof nameOrOptionMap === 'string') { return registry.get(nameOrOptionMap); } else { return registry.registerMany(nameOrOptionMap); } } module.exports = optionAPI; },{"../class/OptionRegistry":4}],3:[function(require,module,exports){ var randexp = require('randexp'); /** * Container is used to wrap external libraries (faker, chance, randexp) that are used among the whole codebase. These * libraries might be configured, customized, etc. and each internal JSF module needs to access those instances instead * of pure npm module instances. This class supports consistent access to these instances. */ var Container = (function () { function Container() { // static requires - handle both initial dependency load (deps will be available // among other modules) as well as they will be included by browserify AST this.registry = { faker: null, chance: null, // randexp is required for "pattern" values randexp: randexp }; } /** * Override dependency given by name * @param name * @param callback */ Container.prototype.extend = function (name, callback) { if (typeof this.registry[name] === 'undefined') { throw new ReferenceError('"' + name + '" dependency is not allowed.'); } this.registry[name] = callback(this.registry[name]); }; /** * Returns dependency given by name * @param name * @returns {Dependency} */ Container.prototype.get = function (name) { if (typeof this.registry[name] === 'undefined') { throw new ReferenceError('"' + name + '" dependency doesn\'t exist.'); } else if (name === 'randexp') { return this.registry['randexp'].randexp; } return this.registry[name]; }; /** * Returns all dependencies * * @returns {Registry} */ Container.prototype.getAll = function () { return { faker: this.get('faker'), chance: this.get('chance'), randexp: this.get('randexp') }; }; return Container; })(); // TODO move instantiation somewhere else (out from class file) // instantiate var container = new Container(); module.exports = container; },{"randexp":175}],4:[function(require,module,exports){ var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var Registry = require('./Registry'); /** * This class defines a registry for custom formats used within JSF. */ var OptionRegistry = (function (_super) { __extends(OptionRegistry, _super); function OptionRegistry() { _super.call(this); this.data['failOnInvalidTypes'] = true; this.data['defaultInvalidTypeProduct'] = null; } return OptionRegistry; })(Registry); module.exports = OptionRegistry; },{"./Registry":5}],5:[function(require,module,exports){ /** * This class defines a registry for custom formats used within JSF. */ var Registry = (function () { function Registry() { // empty by default this.data = {}; } /** * Registers custom format */ Registry.prototype.register = function (name, callback) { this.data[name] = callback; }; /** * Register many formats at one shot */ Registry.prototype.registerMany = function (formats) { for (var name in formats) { this.data[name] = formats[name]; } }; /** * Returns element by registry key */ Registry.prototype.get = function (name) { var format = this.data[name]; if (typeof format === 'undefined') { throw new Error('unknown registry key ' + JSON.stringify(name)); } return format; }; /** * Returns the whole registry content */ Registry.prototype.list = function () { return this.data; }; return Registry; })(); module.exports = Registry; },{}],6:[function(require,module,exports){ var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var ParseError = (function (_super) { __extends(ParseError, _super); function ParseError(message, path) { _super.call(this); this.path = path; Error.captureStackTrace(this, this.constructor); this.name = 'ParseError'; this.message = message; this.path = path; } return ParseError; })(Error); module.exports = ParseError; },{}],7:[function(require,module,exports){ var inferredProperties = { array: [ 'additionalItems', 'items', 'maxItems', 'minItems', 'uniqueItems' ], integer: [ 'exclusiveMaximum', 'exclusiveMinimum', 'maximum', 'minimum', 'multipleOf' ], object: [ 'additionalProperties', 'dependencies', 'maxProperties', 'minProperties', 'patternProperties', 'properties', 'required' ], string: [ 'maxLength', 'minLength', 'pattern' ] }; inferredProperties.number = inferredProperties.integer; var subschemaProperties = [ 'additionalItems', 'items', 'additionalProperties', 'dependencies', 'patternProperties', 'properties' ]; /** * Iterates through all keys of `obj` and: * - checks whether those keys match properties of a given inferred type * - makes sure that `obj` is not a subschema; _Do not attempt to infer properties named as subschema containers. The * reason for this is that any property name within those containers that matches one of the properties used for * inferring missing type values causes the container itself to get processed which leads to invalid output. (Issue 62)_ * * @returns {boolean} */ function matchesType(obj, lastElementInPath, inferredTypeProperties) { return Object.keys(obj).filter(function (prop) { var isSubschema = subschemaProperties.indexOf(lastElementInPath) > -1, inferredPropertyFound = inferredTypeProperties.indexOf(prop) > -1; if (inferredPropertyFound && !isSubschema) { return true; } }).length > 0; } /** * Checks whether given `obj` type might be inferred. The mechanism iterates through all inferred types definitions, * tries to match allowed properties with properties of given `obj`. Returns type name, if inferred, or null. * * @returns {string|null} */ function inferType(obj, schemaPath) { for (var typeName in inferredProperties) { var lastElementInPath = schemaPath[schemaPath.length - 1]; if (matchesType(obj, lastElementInPath, inferredProperties[typeName])) { return typeName; } } } module.exports = inferType; },{}],8:[function(require,module,exports){ /// <reference path="../index.d.ts" /> /** * Returns random element of a collection * * @param collection * @returns {T} */ function pick(collection) { return collection[Math.floor(Math.random() * collection.length)]; } /** * Returns shuffled collection of elements * * @param collection * @returns {T[]} */ function shuffle(collection) { var copy = collection.slice(), length = collection.length; for (; length > 0;) { var key = Math.floor(Math.random() * length), tmp = copy[--length]; copy[length] = copy[key]; copy[key] = tmp; } return copy; } /** * These values determine default range for random.number function * * @type {number} */ var MIN_NUMBER = -100, MAX_NUMBER = 100; /** * Generates random number according to parameters passed * * @param min * @param max * @param defMin * @param defMax * @param hasPrecision * @returns {number} */ function number(min, max, defMin, defMax, hasPrecision) { if (hasPrecision === void 0) { hasPrecision = false; } defMin = typeof defMin === 'undefined' ? MIN_NUMBER : defMin; defMax = typeof defMax === 'undefined' ? MAX_NUMBER : defMax; min = typeof min === 'undefined' ? defMin : min; max = typeof max === 'undefined' ? defMax : max; if (max < min) { max += min; } var result = Math.random() * (max - min) + min; if (!hasPrecision) { return parseInt(result + '', 10); } return result; } module.exports = { pick: pick, shuffle: shuffle, number: number }; },{}],9:[function(require,module,exports){ var deref = require('deref'); var traverse = require('./traverse'); var random = require('./random'); var utils = require('./utils'); function isKey(prop) { return prop === 'enum' || prop === 'required' || prop === 'definitions'; } // TODO provide types function run(schema, refs, ex) { var $ = deref(); try { var seen = {}; return traverse($(schema, refs, ex), [], function reduce(sub) { if (seen[sub.$ref] <= 0) { delete sub.$ref; delete sub.oneOf; delete sub.anyOf; delete sub.allOf; return sub; } if (typeof sub.$ref === 'string') { var id = sub.$ref; delete sub.$ref; if (!seen[id]) { // TODO: this should be configurable seen[id] = random.number(1, 5); } seen[id] -= 1; utils.merge(sub, $.util.findByRef(id, $.refs)); } if (Array.isArray(sub.allOf)) { var schemas = sub.allOf; delete sub.allOf; // this is the only case where all sub-schemas // must be resolved before any merge schemas.forEach(function (schema) { utils.merge(sub, reduce(schema)); }); } if (Array.isArray(sub.oneOf || sub.anyOf)) { var mix = sub.oneOf || sub.anyOf; delete sub.anyOf; delete sub.oneOf; utils.merge(sub, random.pick(mix)); } for (var prop in sub) { if ((Array.isArray(sub[prop]) || typeof sub[prop] === 'object') && !isKey(prop)) { sub[prop] = reduce(sub[prop]); } } return sub; }); } catch (e) { if (e.path) { throw new Error(e.message + ' in ' + '/' + e.path.join('/')); } else { throw e; } } } module.exports = run; },{"./random":8,"./traverse":10,"./utils":11,"deref":29}],10:[function(require,module,exports){ var random = require('./random'); var ParseError = require('./error'); var inferType = require('./infer'); var types = require('../types/index'); var option = require('../api/option'); function isExternal(schema) { return schema.faker || schema.chance; } function reduceExternal(schema, path) { if (schema['x-faker']) { schema.faker = schema['x-faker']; } if (schema['x-chance']) { schema.chance = schema['x-chance']; } var fakerUsed = schema.faker !== undefined, chanceUsed = schema.chance !== undefined; if (fakerUsed && chanceUsed) { throw new ParseError('ambiguous generator when using both faker and chance: ' + JSON.stringify(schema), path); } return schema; } // TODO provide types function traverse(schema, path, resolve) { resolve(schema); if (Array.isArray(schema.enum)) { return random.pick(schema.enum); } // TODO remove the ugly overcome var type = schema.type; if (Array.isArray(type)) { type = random.pick(type); } else if (typeof type === 'undefined') { // Attempt to infer the type type = inferType(schema, path) || type; } schema = reduceExternal(schema, path); if (isExternal(schema)) { type = 'external'; } if (typeof type === 'string') { if (!types[type]) { if (option('failOnInvalidTypes')) { throw new ParseError('unknown primitive ' + JSON.stringify(type), path.concat(['type'])); } else { return option('defaultInvalidTypeProduct'); } } else { try { return types[type](schema, path, resolve, traverse); } catch (e) { if (typeof e.path === 'undefined') { throw new ParseError(e.message, path); } throw e; } } } var copy = {}; if (Array.isArray(schema)) { copy = []; } for (var prop in schema) { if (typeof schema[prop] === 'object' && prop !== 'definitions') { copy[prop] = traverse(schema[prop], path.concat([prop]), resolve); } else { copy[prop] = schema[prop]; } } return copy; } module.exports = traverse; },{"../api/option":2,"../types/index":23,"./error":6,"./infer":7,"./random":8}],11:[function(require,module,exports){ function getSubAttribute(obj, dotSeparatedKey) { var keyElements = dotSeparatedKey.split('.'); while (keyElements.length) { var prop = keyElements.shift(); if (!obj[prop]) { break; } obj = obj[prop]; } return obj; } /** * Returns true/false whether the object parameter has its own properties defined * * @param obj * @returns {boolean} */ function hasProperties(obj) { var properties = []; for (var _i = 1; _i < arguments.length; _i++) { properties[_i - 1] = arguments[_i]; } return properties.filter(function (key) { return typeof obj[key] !== 'undefined'; }).length > 0; } function clone(arr) { var out = []; arr.forEach(function (item, index) { if (typeof item === 'object' && item !== null) { out[index] = Array.isArray(item) ? clone(item) : merge({}, item); } else { out[index] = item; } }); return out; } // TODO refactor merge function function merge(a, b) { for (var key in b) { if (typeof b[key] !== 'object' || b[key] === null) { a[key] = b[key]; } else if (Array.isArray(b[key])) { a[key] = (a[key] || []).concat(clone(b[key])); } else if (typeof a[key] !== 'object' || a[key] === null || Array.isArray(a[key])) { a[key] = merge({}, b[key]); } else { a[key] = merge(a[key], b[key]); } } return a; } module.exports = { getSubAttribute: getSubAttribute, hasProperties: hasProperties, clone: clone, merge: merge }; },{}],12:[function(require,module,exports){ /** * Generates randomized boolean value. * * @returns {boolean} */ function booleanGenerator() { return Math.random() > 0.5; } module.exports = booleanGenerator; },{}],13:[function(require,module,exports){ var container = require('../class/Container'); var randexp = container.get('randexp'); var regexps = { email: '[a-zA-Z\\d][a-zA-Z\\d-]{1,13}[a-zA-Z\\d]@{hostname}', hostname: '[a-zA-Z]{1,33}\\.[a-z]{2,4}', ipv6: '[a-f\\d]{4}(:[a-f\\d]{4}){7}', uri: '[a-zA-Z][a-zA-Z0-9+-.]*' }; /** * Generates randomized string basing on a built-in regex format * * @param coreFormat * @returns {string} */ function coreFormatGenerator(coreFormat) { return randexp(regexps[coreFormat]).replace(/\{(\w+)\}/, function (match, key) { return randexp(regexps[key]); }); } module.exports = coreFormatGenerator; },{"../class/Container":3}],14:[function(require,module,exports){ var random = require('../core/random'); /** * Generates randomized date time ISO format string. * * @returns {string} */ function dateTimeGenerator() { return new Date(random.number(0, 100000000000000)).toISOString(); } module.exports = dateTimeGenerator; },{"../core/random":8}],15:[function(require,module,exports){ var random = require('../core/random'); /** * Generates randomized ipv4 address. * * @returns {string} */ function ipv4Generator() { return [0, 0, 0, 0].map(function () { return random.number(0, 255); }).join('.'); } module.exports = ipv4Generator; },{"../core/random":8}],16:[function(require,module,exports){ /** * Generates null value. * * @returns {null} */ function nullGenerator() { return null; } module.exports = nullGenerator; },{}],17:[function(require,module,exports){ var words = require('../generators/words'); var random = require('../core/random'); function produce() { var length = random.number(1, 5); return words(length).join(' '); } /** * Generates randomized concatenated string based on words generator. * * @returns {string} */ function thunkGenerator(min, max) { if (min === void 0) { min = 0; } if (max === void 0) { max = 140; } var min = Math.max(0, min), max = random.number(min, max), sample = produce(); while (sample.length < min) { sample += produce(); } if (sample.length > max) { sample = sample.substr(0, max); } return sample; } module.exports = thunkGenerator; },{"../core/random":8,"../generators/words":18}],18:[function(require,module,exports){ var random = require('../core/random'); var LIPSUM_WORDS = ('Lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor incididunt ut labore' + ' et dolore magna aliqua Ut enim ad minim veniam quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea' + ' commodo consequat Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla' + ' pariatur Excepteur sint occaecat cupidatat non proident sunt in culpa qui officia deserunt mollit anim id est' + ' laborum').split(' '); /** * Generates randomized array of single lorem ipsum words. * * @param length * @returns {Array.<string>} */ function wordsGenerator(length) { var words = random.shuffle(LIPSUM_WORDS); return words.slice(0, length); } module.exports = wordsGenerator; },{"../core/random":8}],19:[function(require,module,exports){ var container = require('./class/Container'); var format = require('./api/format'); var option = require('./api/option'); var run = require('./core/run'); var jsf = function (schema, refs) { return run(schema, refs); }; jsf.format = format; jsf.option = option; // returns itself for chaining jsf.extend = function (name, cb) { container.extend(name, cb); return jsf; }; module.exports = jsf; },{"./api/format":1,"./api/option":2,"./class/Container":3,"./core/run":9}],20:[function(require,module,exports){ var random = require('../core/random'); var utils = require('../core/utils'); var ParseError = require('../core/error'); // TODO provide types function unique(path, items, value, sample, resolve, traverseCallback) { var tmp = [], seen = []; function walk(obj) { var json = JSON.stringify(obj); if (seen.indexOf(json) === -1) { seen.push(json); tmp.push(obj); } } items.forEach(walk); // TODO: find a better solution? var limit = 100; while (tmp.length !== items.length) { walk(traverseCallback(value.items || sample, path, resolve)); if (!limit--) { break; } } return tmp; } // TODO provide types function arrayType(value, path, resolve, traverseCallback) { var items = []; if (!(value.items || value.additionalItems)) { if (utils.hasProperties(value, 'minItems', 'maxItems', 'uniqueItems')) { throw new ParseError('missing items for ' + JSON.stringify(value), path); } return items; } if (Array.isArray(value.items)) { return Array.prototype.concat.apply(items, value.items.map(function (item, key) { return traverseCallback(item, path.concat(['items', key]), resolve); })); } var length = random.number(value.minItems, value.maxItems, 1, 5), sample = typeof value.additionalItems === 'object' ? value.additionalItems : {}; for (var current = items.length; current < length; current += 1) { items.push(traverseCallback(value.items || sample, path.concat(['items', current]), resolve)); } if (value.uniqueItems) { return unique(path.concat(['items']), items, value, sample, resolve, traverseCallback); } return items; } module.exports = arrayType; },{"../core/error":6,"../core/random":8,"../core/utils":11}],21:[function(require,module,exports){ var booleanGenerator = require('../generators/boolean'); var booleanType = booleanGenerator; module.exports = booleanType; },{"../generators/boolean":12}],22:[function(require,module,exports){ var utils = require('../core/utils'); var container = require('../class/Container'); function externalType(value, path) { var libraryName = value.faker ? 'faker' : 'chance', libraryModule = value.faker ? container.get('faker') : container.get('chance'), key = value.faker || value.chance, path = key, args = []; if (typeof path === 'object') { path = Object.keys(path)[0]; if (Array.isArray(key[path])) { args = key[path]; } else { args.push(key[path]); } } var genFunction = utils.getSubAttribute(libraryModule, path); if (typeof genFunction !== 'function') { throw new Error('unknown ' + libraryName + '-generator for ' + JSON.stringify(key)); } // see #116, #117 - faker.js 3.1.0 introduced local dependencies between generators // making jsf break after upgrading from 3.0.1 var contextObject = libraryModule; if (libraryName === 'faker') { var fakerModuleName = path.split('.')[0]; contextObject = libraryModule[fakerModuleName]; } return genFunction.apply(contextObject, args); } module.exports = externalType; },{"../class/Container":3,"../core/utils":11}],23:[function(require,module,exports){ var _boolean = require('./boolean'); var _null = require('./null'); var _array = require('./array'); var _integer = require('./integer'); var _number = require('./number'); var _object = require('./object'); var _string = require('./string'); var _external = require('./external'); var typeMap = { boolean: _boolean, null: _null, array: _array, integer: _integer, number: _number, object: _object, string: _string, external: _external }; module.exports = typeMap; },{"./array":20,"./boolean":21,"./external":22,"./integer":24,"./null":25,"./number":26,"./object":27,"./string":28}],24:[function(require,module,exports){ var number = require('./number'); // The `integer` type is just a wrapper for the `number` type. The `number` type // returns floating point numbers, and `integer` type truncates the fraction // part, leaving the result as an integer. function integerType(value) { var generated = number(value); // whether the generated number is positive or negative, need to use either // floor (positive) or ceil (negative) function to get rid of the fraction return generated > 0 ? Math.floor(generated) : Math.ceil(generated); } module.exports = integerType; },{"./number":26}],25:[function(require,module,exports){ var nullGenerator = require('../generators/null'); var nullType = nullGenerator; module.exports = nullType; },{"../generators/null":16}],26:[function(require,module,exports){ var random = require('../core/random'); var MIN_INTEGER = -100000000, MAX_INTEGER = 100000000; function numberType(value) { var multipleOf = value.multipleOf; var min = typeof value.minimum === 'undefined' ? MIN_INTEGER : value.minimum, max = typeof value.maximum === 'undefined' ? MAX_INTEGER : value.maximum; if (multipleOf) { max = Math.floor(max / multipleOf) * multipleOf; min = Math.ceil(min / multipleOf) * multipleOf; } if (value.exclusiveMinimum && value.minimum && min === value.minimum) { min += multipleOf || 1; } if (value.exclusiveMaximum && value.maximum && max === value.maximum) { max -= multipleOf || 1; } if (multipleOf) { return Math.floor(random.number(min, max) / multipleOf) * multipleOf; } if (min > max) { return NaN; } return random.number(min, max, undefined, undefined, true); } module.exports = numberType; },{"../core/random":8}],27:[function(require,module,exports){ var container = require('../class/Container'); var random = require('../core/random'); var words = require('../generators/words'); var utils = require('../core/utils'); var ParseError = require('../core/error'); var randexp = container.get('randexp'); // TODO provide types function objectType(value, path, resolve, traverseCallback) { var props = {}; if (!(value.properties || value.patternProperties || value.additionalProperties)) { if (utils.hasProperties(value, 'minProperties', 'maxProperties', 'dependencies', 'required')) { throw new ParseError('missing properties for ' + JSON.stringify(value), path); } return props; } var reqProps = value.required || [], allProps = value.properties ? Object.keys(value.properties) : []; reqProps.forEach(function (key) { if (value.properties && value.properties[key]) { props[key] = value.properties[key]; } }); var optProps = allProps.filter(function (prop) { return reqProps.indexOf(prop) === -1; }); if (value.patternProperties) { optProps = Array.prototype.concat.apply(optProps, Object.keys(value.patternProperties)); } var length = random.number(value.minProperties, value.maxProperties, 0, optProps.length); random.shuffle(optProps).slice(0, length).forEach(function (key) { if (value.properties && value.properties[key]) { props[key] = value.properties[key]; } else { props[randexp(key)] = value.patternProperties[key]; } }); var current = Object.keys(props).length, sample = typeof value.additionalProperties === 'object' ? value.additionalProperties : {}; if (current < length) { words(length - current).forEach(function (key) { props[key + randexp('[a-f\\d]{4,7}')] = sample; }); } return traverseCallback(props, path.concat(['properties']), resolve); } module.exports = objectType; },{"../class/Container":3,"../core/error":6,"../core/random":8,"../core/utils":11,"../generators/words":18}],28:[function(require,module,exports){ var thunk = require('../generators/thunk'); var ipv4 = require('../generators/ipv4'); var dateTime = require('../generators/dateTime'); var coreFormat = require('../generators/coreFormat'); var format = require('../api/format'); var container = require('../class/Container'); var randexp = container.get('randexp'); function generateFormat(value) { switch (value.format) { case 'date-time': return dateTime(); case 'ipv4': return ipv4(); case 'regex': // TODO: discuss return '.+?'; case 'email': case 'hostname': case 'ipv6': case 'uri': return coreFormat(value.format); default: var callback = format(value.format); return callback(container.getAll(), value); } } function stringType(value) { if (value.format) { return generateFormat(value); } else if (value.pattern) { return randexp(value.pattern); } else { return thunk(value.minLength, value.maxLength); } } module.exports = stringType; },{"../api/format":1,"../class/Container":3,"../generators/coreFormat":13,"../generators/dateTime":14,"../generators/ipv4":15,"../generators/thunk":17}],29:[function(require,module,exports){ 'use strict'; var $ = require('./util/uri-helpers'); $.findByRef = require('./util/find-reference'); $.resolveSchema = require('./util/resolve-schema'); $.normalizeSchema = require('./util/normalize-schema'); var instance = module.exports = function() { function $ref(fakeroot, schema, refs, ex) { if (typeof fakeroot === 'object') { ex = refs; refs = schema; schema = fakeroot; fakeroot = undefined; } if (typeof schema !== 'object') { throw new Error('schema must be an object'); } if (typeof refs === 'object' && refs !== null) { var aux = refs; refs = []; for (var k in aux) { aux[k].id = aux[k].id || k; refs.push(aux[k]); } } if (typeof refs !== 'undefined' && !Array.isArray(refs)) { ex = !!refs; refs = []; } function push(ref) { if (typeof ref.id === 'string') { var id = $.resolveURL(fakeroot, ref.id).replace(/\/#?$/, ''); if (id.indexOf('#') > -1) { var parts = id.split('#'); if (parts[1].charAt() === '/') { id = parts[0]; } else { id = parts[1] || parts[0]; } } if (!$ref.refs[id]) { $ref.refs[id] = ref; } } } (refs || []).concat([schema]).forEach(function(ref) { schema = $.normalizeSchema(fakeroot, ref, push); push(schema); }); return $.resolveSchema(schema, $ref.refs, ex); } $ref.refs = {}; $ref.util = $; return $ref; }; instance.util = $; },{"./util/find-reference":31,"./util/normalize-schema":32,"./util/resolve-schema":33,"./util/uri-helpers":34}],30:[function(require,module,exports){ 'use strict'; var clone = module.exports = function(obj, seen) { seen = seen || []; if (seen.indexOf(obj) > -1) { throw new Error('unable dereference circular structures'); } if (!obj || typeof obj !== 'object') { return obj; } seen = seen.concat([obj]); var target = Array.isArray(obj) ? [] : {}; function copy(key, value) { target[key] = clone(value, seen); } if (Array.isArray(target)) { obj.forEach(function(value, key) { copy(key, value); }); } else if (Object.prototype.toString.call(obj) === '[object Object]') { Object.keys(obj).forEach(function(key) { copy(key, obj[key]); }); } return target; }; },{}],31:[function(require,module,exports){ 'use strict'; var $ = require('./uri-helpers'); function get(obj, path) { var hash = path.split('#')[1]; var parts = hash.split('/').slice(1); while (parts.length) { var key = decodeURIComponent(parts.shift()).replace(/~1/g, '/').replace(/~0/g, '~'); if (typeof obj[key] === 'undefined') { throw new Error('JSON pointer not found: ' + path); } obj = obj[key]; } return obj; } var find = module.exports = function(id, refs) { var target = refs[id] || refs[id.split('#')[1]] || refs[$.getDocumentURI(id)]; if (target) { target = id.indexOf('#/') > -1 ? get(target, id) : target; } else { for (var key in refs) { if ($.resolveURL(refs[key].id, id) === refs[key].id) { target = refs[key]; break; } } } if (!target) { throw new Error('Reference not found: ' + id); } while (target.$ref) { target = find(target.$ref, refs); } return target; }; },{"./uri-helpers":34}],32:[function(require,module,exports){ 'use strict'; var $ = require('./uri-helpers'); var cloneObj = require('./clone-obj'); var SCHEMA_URI = [ 'http://json-schema.org/schema#', 'http://json-schema.org/draft-04/schema#' ]; function expand(obj, parent, callback) { if (obj) { var id = typeof obj.id === 'string' ? obj.id : '#'; if (!$.isURL(id)) { id = $.resolveURL(parent === id ? null : parent, id); } if (typeof obj.$ref === 'string' && !$.isURL(obj.$ref)) { obj.$ref = $.resolveURL(id, obj.$ref); } if (typeof obj.id === 'string') { obj.id = parent = id; } } for (var key in obj) { var value = obj[key]; if (typeof value === 'object' && !(key === 'enum' || key === 'required')) { expand(value, parent, callback); } } if (typeof callback === 'function') { callback(obj); } } module.exports = function(fakeroot, schema, push) { if (typeof fakeroot === 'object') { push = schema; schema = fakeroot; fakeroot = null; } var base = fakeroot || '', copy = cloneObj(schema); if (copy.$schema && SCHEMA_URI.indexOf(copy.$schema) === -1) { throw new Error('Unsupported schema version (v4 only)'); } base = $.resolveURL(copy.$schema || SCHEMA_URI[0], base); expand(copy, $.resolveURL(copy.id || '#', base), push); copy.id = copy.id || base; return copy; }; },{"./clone-obj":30,"./uri-helpers":34}],33:[function(require,module,exports){ 'use strict'; var $ = require('./uri-helpers'); var find = require('./find-reference'); var deepExtend = require('deep-extend'); function isKey(prop) { return prop === 'enum' || prop === 'required' || prop === 'definitions'; } function copy(obj, refs, parent, resolve) { var target = Array.isArray(obj) ? [] : {}; if (typeof obj.$ref === 'string') { var base = $.getDocumentURI(obj.$ref); if (parent !== base || (resolve && obj.$ref.indexOf('#/') > -1)) { var fixed = find(obj.$ref, refs); deepExtend(obj, fixed); delete obj.$ref; delete obj.id; } } for (var prop in obj) { if (typeof obj[prop] === 'object' && !isKey(prop)) { target[prop] = copy(obj[prop], refs, parent, resolve); } else { target[prop] = obj[prop]; } } return target; } module.exports = function(obj, refs, resolve) { var fixedId = $.resolveURL(obj.$schema, obj.id), parent = $.getDocumentURI(fixedId); return copy(obj, refs, parent, resolve); }; },{"./find-reference":31,"./uri-helpers":34,"deep-extend":35}],34:[function(require,module,exports){ 'use strict'; // https://gist.github.com/pjt33/efb2f1134bab986113fd function URLUtils(url, baseURL) { // remove leading ./ url = url.replace(/^\.\//, ''); var m = String(url).replace(/^\s+|\s+$/g, '').match(/^([^:\/?#]+:)?(?:\/\/(?:([^:@]*)(?::([^:@]*))?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/); if (!m) { throw new RangeError(); } var href = m[0] || ''; var protocol = m[1] || ''; var username = m[2] || ''; var password = m[3] || ''; var host = m[4] || ''; var hostname = m[5] || ''; var port = m[6] || ''; var pathname = m[7] || ''; var search = m[8] || ''; var hash = m[9] || ''; if (baseURL !== undefined) { var base = new URLUtils(baseURL); var flag = protocol === '' && host === '' && username === ''; if (flag && pathname === '' && search === '') { search = base.search; } if (flag && pathname.charAt(0) !== '/') { pathname = (pathname !== '' ? (base.pathname.slice(0, base.pathname.lastIndexOf('/') + 1) + pathname) : base.pathname); } // dot segments removal var output = []; pathname.replace(/\/?[^\/]+/g, function(p) { if (p === '/..') { output.pop(); } else { output.push(p); } }); pathname = output.join('') || '/'; if (flag) { port = base.port; hostname = base.hostname; host = base.host; password = base.password; username = base.username; } if (protocol === '') { protocol = base.protocol; } href = protocol + (host !== '' ? '//' : '') + (username !== '' ? username + (password !== '' ? ':' + password : '') + '@' : '') + host + pathname + search + hash; } this.href = href; this.origin = protocol + (host !== '' ? '//' + host : ''); this.protocol = protocol; this.username = username; this.password = password; this.host = host; this.hostname = hostname; this.port = port; this.pathname = pathname; this.search = search; this.hash = hash; } function isURL(path) { if (typeof path === 'string' && /^\w+:\/\//.test(path)) { return true; } } function parseURI(href, base) { return new URLUtils(href, base); } function resolveURL(base, href) { base = base || 'http://json-schema.org/schema#'; href = parseURI(href, base); base = parseURI(base); if (base.hash && !href.hash) { return href.href + base.hash; } return href.href; } function getDocumentURI(uri) { return typeof uri === 'string' && uri.split('#')[0]; } module.exports = { isURL: isURL, parseURI: parseURI, resolveURL: resolveURL, getDocumentURI: getDocumentURI }; },{}],35:[function(require,module,exports){ /*! * @description Recursive object extending * @author Viacheslav Lotsmanov <lotsmanov89@gmail.com> * @license MIT * * The MIT License (MIT) * * Copyright (c) 2013-2015 Viacheslav Lotsmanov * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of * the Software, and to permit persons to whom the Software is furnished to do so, * subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ 'use strict'; function isSpecificValue(val) { return ( val instanceof Buffer || val instanceof Date || val instanceof RegExp ) ? true : false; } function cloneSpecificValue(val) { if (val instanceof Buffer) { var x = new Buffer(val.length); val.copy(x); return x; } else if (val instanceof Date) { return new Date(val.getTime()); } else if (val instanceof RegExp) { return new RegExp(val); } else { throw new Error('Unexpected situation'); } } /** * Recursive cloning array. */ function deepCloneArray(arr) { var clone = []; arr.forEach(function (item, index) { if (typeof item === 'object' && item !== null) { if (Array.isArray(item)) { clone[index] = deepCloneArray(item); } else if (isSpecificValue(item)) { clone[index] = cloneSpecificValue(item); } else { clone[index] = deepExtend({}, item); } } else { clone[index] = item; } }); return clone; } /** * Extening object that entered in first argument. * * Returns extended object or false if have no target object or incorrect type. * * If you wish to clone source object (without modify it), just use empty new * object as first argument, like this: * deepExtend({}, yourObj_1, [yourObj_N]); */ var deepExtend = module.exports = function (/*obj_1, [obj_2], [obj_N]*/) { if (arguments.length < 1 || typeof arguments[0] !== 'object') { return false; } if (arguments.length < 2) { return arguments[0]; } var target = arguments[0]; // convert arguments to array and cut off target object var args = Array.prototype.slice.call(arguments, 1); var val, src, clone; args.forEach(function (obj) { // skip argument if it is array or isn't object if (typeof obj !== 'object' || Array.isArray(obj)) { return; } Object.keys(obj).forEach(function (key) { src = target[key]; // source value val = obj[key]; // new value // recursion prevention if (val === target) { return; /** * if new value isn't object then just overwrite by new value * instead of extending. */ } else if (typeof val !== 'object' || val === null) { target[key] = val; return; // just clone arrays (and recursive clone objects inside) } else if (Array.isArray(val)) { target[key] = deepCloneArray(val); return; // custom cloning and overwrite for specific objects } else if (isSpecificValue(val)) { target[key] = cloneSpecificValue(val); return; // overwrite by new value if source isn't object or array } else if (typeof src !== 'object' || src === null || Array.isArray(src)) { target[key] = deepExtend({}, val); return; // source value and new value is objects both, extending... } else { target[key] = deepExtend(src, val); return; } }); }); return target; } },{}],36:[function(require,module,exports){ /** * * @namespace faker.address */ function Address (faker) { var f = faker.fake, Helpers = faker.helpers; /** * Generates random zipcode from format. If format is not specified, the * locale's zip format is used. * * @method faker.address.zipCode * @param {String} format */ this.zipCode = function(format) { // if zip format is not specified, use the zip format defined for the locale if (typeof format === 'undefined') { var localeFormat = faker.definitions.address.postcode; if (typeof localeFormat === 'string') { format = localeFormat; } else { format = faker.random.arrayElement(localeFormat); } } return Helpers.replaceSymbols(format); } /** * Generates a random localized city name. The format string can contain any * method provided by faker wrapped in `{{}}`, e.g. `{{name.firstName}}` in * order to build the city name. * * If no format string is provided one of the following is randomly used: * * * `{{address.cityPrefix}} {{name.firstName}}{{address.citySuffix}}` * * `{{address.cityPrefix}} {{name.firstName}}` * * `{{name.firstName}}{{address.citySuffix}}` * * `{{name.lastName}}{{address.citySuffix}}` * * @method faker.address.city * @param {String} format */ this.city = function (format) { var formats = [ '{{address.cityPrefix}} {{name.firstName}}{{address.citySuffix}}', '{{address.cityPrefix}} {{name.firstName}}', '{{name.firstName}}{{address.citySuffix}}', '{{name.lastName}}{{address.citySuffix}}' ]; if (typeof format !== "number") { format = faker.random.number(formats.length - 1); } return f(formats[format]); } /** * Return a random localized city prefix * @method faker.address.cityPrefix */ this.cityPrefix = function () { return faker.random.arrayElement(faker.definitions.address.city_prefix); } /** * Return a random localized city suffix * * @method faker.address.citySuffix */ this.citySuffix = function () { return faker.random.arrayElement(faker.definitions.address.city_suffix); } /** * Returns a random localized street name * * @method faker.address.streetName */ this.streetName = function () { var result; var suffix = faker.address.streetSuffix(); if (suffix !== "") { suffix = " " + suffix } switch (faker.random.number(1)) { case 0: result = faker.name.lastName() + suffix; break; case 1: result = faker.name.firstName() + suffix; break; } return result; } // // TODO: change all these methods that accept a boolean to instead accept an options hash. // /** * Returns a random localized street address * * @method faker.address.streetAddress * @param {Boolean} useFullAddress */ this.streetAddress = function (useFullAddress) { if (useFullAddress === undefined) { useFullAddress = false; } var address = ""; switch (faker.random.number(2)) { case 0: address = Helpers.replaceSymbolWithNumber("#####") + " " + faker.address.streetName(); break; case 1: address = Helpers.replaceSymbolWithNumber("####") + " " + faker.address.streetName(); break; case 2: address = Helpers.replaceSymbolWithNumber("###") + " " + faker.address.streetName(); break; } return useFullAddress ? (address + " " + faker.address.secondaryAddress()) : address; } /** * streetSuffix * * @method faker.address.streetSuffix */ this.streetSuffix = function () { return faker.random.arrayElement(faker.definitions.address.street_suffix); } /** * streetPrefix * * @method faker.address.streetPrefix */ this.streetPrefix = function () { return faker.random.arrayElement(faker.definitions.address.street_prefix); } /** * secondaryAddress * * @method faker.address.secondaryAddress */ this.secondaryAddress = function () { return Helpers.replaceSymbolWithNumber(faker.random.arrayElement( [ 'Apt. ###', 'Suite ###' ] )); } /** * county * * @method faker.address.county */ this.county = function () { return faker.random.arrayElement(faker.definitions.address.county); } /** * country * * @method faker.address.country */ this.country = function () { return faker.random.arrayElement(faker.definitions.address.country); } /** * countryCode * * @method faker.address.countryCode */ this.countryCode = function () { return faker.random.arrayElement(faker.definitions.address.country_code); } /** * state * * @method faker.address.state * @param {Boolean} useAbbr */ this.state = function (useAbbr) { return faker.random.arrayElement(faker.definitions.address.state); } /** * stateAbbr * * @method faker.address.stateAbbr */ this.stateAbbr = function () { return faker.random.arrayElement(faker.definitions.address.state_abbr); } /** * latitude * * @method faker.address.latitude */ this.latitude = function () { return (faker.random.number(180 * 10000) / 10000.0 - 90.0).toFixed(4); } /** * longitude * * @method faker.address.longitude */ this.longitude = function () { return (faker.random.number(360 * 10000) / 10000.0 - 180.0).toFixed(4); } return this; } module.exports = Address; },{}],37:[function(require,module,exports){ /** * * @namespace faker.commerce */ var Commerce = function (faker) { var self = this; /** * color * * @method faker.commerce.color */ self.color = function() { return faker.random.arrayElement(faker.definitions.commerce.color); }; /** * department * * @method faker.commerce.department * @param {number} max * @param {number} fixedAmount */ self.department = function(max, fixedAmount) { return faker.random.arrayElement(faker.definitions.commerce.department); }; /** * productName * * @method faker.commerce.productName */ self.productName = function() { return faker.commerce.productAdjective() + " " + faker.commerce.productMaterial() + " " + faker.commerce.product(); }; /** * price * * @method faker.commerce.price * @param {number} min * @param {number} max * @param {number} dec * @param {string} symbol */ self.price = function(min, max, dec, symbol) { min = min || 0; max = max || 1000; dec = dec || 2; symbol = symbol || ''; if(min < 0 || max < 0) { return symbol + 0.00; } var randValue = faker.random.number({ max: max, min: min }); return symbol + (Math.round(randValue * Math.pow(10, dec)) / Math.pow(10, dec)).toFixed(dec); }; /* self.categories = function(num) { var categories = []; do { var category = faker.random.arrayElement(faker.definitions.commerce.department); if(categories.indexOf(category) === -1) { categories.push(category); } } while(categories.length < num); return categories; }; */ /* self.mergeCategories = function(categories) { var separator = faker.definitions.separator || " &"; // TODO: find undefined here categories = categories || faker.definitions.commerce.categories; var commaSeparated = categories.slice(0, -1).join(', '); return [commaSeparated, categories[categories.length - 1]].join(separator + " "); }; */ /** * productAdjective * * @method faker.commerce.productAdjective */ self.productAdjective = function() { return faker.random.arrayElement(faker.definitions.commerce.product_name.adjective); }; /** * productMaterial * * @method faker.commerce.productMaterial */ self.productMaterial = function() { return faker.random.arrayElement(faker.definitions.commerce.product_name.material); }; /** * product * * @method faker.commerce.product */ self.product = function() { return faker.random.arrayElement(faker.definitions.commerce.product_name.product); } return self; }; module['exports'] = Commerce; },{}],38:[function(require,module,exports){ /** * * @namespace faker.company */ var Company = function (faker) { var self = this; var f = faker.fake; /** * suffixes * * @method faker.company.suffixes */ this.suffixes = function () { // Don't want the source array exposed to modification, so return a copy return faker.definitions.company.suffix.slice(0); } /** * companyName * * @method faker.company.companyName * @param {string} format */ this.companyName = function (format) { var formats = [ '{{name.lastName}} {{company.companySuffix}}', '{{name.lastName}} - {{name.lastName}}', '{{name.lastName}}, {{name.lastName}} and {{name.lastName}}' ]; if (typeof format !== "number") { format = faker.random.number(formats.length - 1); } return f(formats[format]); } /** * companySuffix * * @method faker.company.companySuffix */ this.companySuffix = function () { return faker.random.arrayElement(faker.company.suffixes()); } /** * catchPhrase * * @method faker.company.catchPhrase */ this.catchPhrase = function () { return f('{{company.catchPhraseAdjective}} {{company.catchPhraseDescriptor}} {{company.catchPhraseNoun}}') } /** * bs * * @method faker.company.bs */ this.bs = function () { return f('{{company.bsAdjective}} {{company.bsBuzz}} {{company.bsNoun}}'); } /** * catchPhraseAdjective * * @method faker.company.catchPhraseAdjective */ this.catchPhraseAdjective = function () { return faker.random.arrayElement(faker.definitions.company.adjective); } /** * catchPhraseDescriptor * * @method faker.company.catchPhraseDescriptor */ this.catchPhraseDescriptor = function () { return faker.random.arrayElement(faker.definitions.company.descriptor); } /** * catchPhraseNoun * * @method faker.company.catchPhraseNoun */ this.catchPhraseNoun = function () { return faker.random.arrayElement(faker.definitions.company.noun); } /** * bsAdjective * * @method faker.company.bsAdjective */ this.bsAdjective = function () { return faker.random.arrayElement(faker.definitions.company.bs_adjective); } /** * bsBuzz * * @method faker.company.bsBuzz */ this.bsBuzz = function () { return faker.random.arrayElement(faker.definitions.company.bs_verb); } /** * bsNoun * * @method faker.company.bsNoun */ this.bsNoun = function () { return faker.random.arrayElement(faker.definitions.company.bs_noun); } } module['exports'] = Company; },{}],39:[function(require,module,exports){ /** * * @namespace faker.date */ var _Date = function (faker) { var self = this; /** * past * * @method faker.date.past * @param {number} years * @param {date} refDate */ self.past = function (years, refDate) { var date = (refDate) ? new Date(Date.parse(refDate)) : new Date(); var range = { min: 1000, max: (years || 1) * 365 * 24 * 3600 * 1000 }; var past = date.getTime(); past -= faker.random.number(range); // some time from now to N years ago, in milliseconds date.setTime(past); return date; }; /** * future * * @method faker.date.future * @param {number} years * @param {date} refDate */ self.future = function (years, refDate) { var date = (refDate) ? new Date(Date.parse(refDate)) : new Date(); var range = { min: 1000, max: (years || 1) * 365 * 24 * 3600 * 1000 }; var future = date.getTime(); future += faker.random.number(range); // some time from now to N years later, in milliseconds date.setTime(future); return date; }; /** * between * * @method faker.date.between * @param {date} from * @param {date} to */ self.between = function (from, to) { var fromMilli = Date.parse(from); var dateOffset = faker.random.number(Date.parse(to) - fromMilli); var newDate = new Date(fromMilli + dateOffset); return newDate; }; /** * recent * * @method faker.date.recent * @param {number} days */ self.recent = function (days) { var date = new Date(); var range = { min: 1000, max: (days || 1) * 24 * 3600 * 1000 }; var future = date.getTime(); future -= faker.random.number(range); // some time from now to N days ago, in milliseconds date.setTime(future); return date; }; /** * month * * @method faker.date.month * @param {object} options */ self.month = function (options) { options = options || {}; var type = 'wide'; if (options.abbr) { type = 'abbr'; } if (options.context && typeof faker.definitions.date.month[type + '_context'] !== 'undefined') { type += '_context'; } var source = faker.definitions.date.month[type]; return faker.random.arrayElement(source); }; /** * weekday * * @param {object} options * @method faker.date.weekday */ self.weekday = function (options) { options = options || {}; var type = 'wide'; if (options.abbr) { type = 'abbr'; } if (options.context && typeof faker.definitions.date.weekday[type + '_context'] !== 'undefined') { type += '_context'; } var source = faker.definitions.date.weekday[type]; return faker.random.arrayElement(source); }; return self; }; module['exports'] = _Date; },{}],40:[function(require,module,exports){ /* fake.js - generator method for combining faker methods based on string input */ function Fake (faker) { /** * Generator method for combining faker methods based on string input * * __Example:__ * * ``` * console.log(faker.fake('{{name.lastName}}, {{name.firstName}} {{name.suffix}}')); * //outputs: "Marks, Dean Sr." * ``` * * This will interpolate the format string with the value of methods * [name.lastName]{@link faker.name.lastName}, [name.firstName]{@link faker.name.firstName}, * and [name.suffix]{@link faker.name.suffix} * * @method faker.fake * @param {string} str */ this.fake = function fake (str) { // setup default response as empty string var res = ''; // if incoming str parameter is not provided, return error message if (typeof str !== 'string' || str.length === 0) { res = 'string parameter is required!'; return res; } // find first matching {{ and }} var start = str.search('{{'); var end = str.search('}}'); // if no {{ and }} is found, we are done if (start === -1 && end === -1) { return str; } // console.log('attempting to parse', str); // extract method name from between the {{ }} that we found // for example: {{name.firstName}} var token = str.substr(start + 2, end - start - 2); var method = token.replace('}}', '').replace('{{', ''); // console.log('method', method) // extract method parameters var regExp = /\(([^)]+)\)/; var matches = regExp.exec(method); var parameters = ''; if (matches) { method = method.replace(regExp, ''); parameters = matches[1]; } // split the method into module and function var parts = method.split('.'); if (typeof faker[parts[0]] === "undefined") { throw new Error('Invalid module: ' + parts[0]); } if (typeof faker[parts[0]][parts[1]] === "undefined") { throw new Error('Invalid method: ' + parts[0] + "." + parts[1]); } // assign the function from the module.function namespace var fn = faker[parts[0]][parts[1]]; // If parameters are populated here, they are always going to be of string type // since we might actually be dealing with an object or array, // we always attempt to the parse the incoming parameters into JSON var params; // Note: we experience a small performance hit here due to JSON.parse try / catch // If anyone actually needs to optimize this specific code path, please open a support issue on github try { params = JSON.parse(parameters) } catch (err) { // since JSON.parse threw an error, assume parameters was actually a string params = parameters; } var result; if (typeof params === "string" && params.length === 0) { result = fn.call(this); } else { result = fn.call(this, params); } // replace the found tag with the returned fake value res = str.replace('{{' + token + '}}', result); // return the response recursively until we are done finding all tags return fake(res); } return this; } module['exports'] = Fake; },{}],41:[function(require,module,exports){ /** * * @namespace faker.finance */ var Finance = function (faker) { var Helpers = faker.helpers, self = this; /** * account * * @method faker.finance.account * @param {number} length */ self.account = function (length) { length = length || 8; var template = ''; for (var i = 0; i < length; i++) { template = template + '#'; } length = null; return Helpers.replaceSymbolWithNumber(template); } /** * accountName * * @method faker.finance.accountName */ self.accountName = function () { return [Helpers.randomize(faker.definitions.finance.account_type), 'Account'].join(' '); } /** * mask * * @method faker.finance.mask * @param {number} length * @param {boolean} parens * @param {boolean} elipsis */ self.mask = function (length, parens, elipsis) { //set defaults length = (length == 0 || !length || typeof length == 'undefined') ? 4 : length; parens = (parens === null) ? true : parens; elipsis = (elipsis === null) ? true : elipsis; //create a template for length var template = ''; for (var i = 0; i < length; i++) { template = template + '#'; } //prefix with elipsis template = (elipsis) ? ['...', template].join('') : template; template = (parens) ? ['(', template, ')'].join('') : template; //generate random numbers template = Helpers.replaceSymbolWithNumber(template); return template; } //min and max take in minimum and maximum amounts, dec is the decimal place you want rounded to, symbol is $, €, £, etc //NOTE: this returns a string representation of the value, if you want a number use parseFloat and no symbol /** * amount * * @method faker.finance.amount * @param {number} min * @param {number} max * @param {number} dec * @param {string} symbol */ self.amount = function (min, max, dec, symbol) { min = min || 0; max = max || 1000; dec = dec || 2; symbol = symbol || ''; var randValue = faker.random.number({ max: max, min: min }); return symbol + (Math.round(randValue * Math.pow(10, dec)) / Math.pow(10, dec)).toFixed(dec); } /** * transactionType * * @method faker.finance.transactionType */ self.transactionType = function () { return Helpers.randomize(faker.definitions.finance.transaction_type); } /** * currencyCode * * @method faker.finance.currencyCode */ self.currencyCode = function () { return faker.random.objectElement(faker.definitions.finance.currency)['code']; } /** * currencyName * * @method faker.finance.currencyName */ self.currencyName = function () { return faker.random.objectElement(faker.definitions.finance.currency, 'key'); } /** * currencySymbol * * @method faker.finance.currencySymbol */ self.currencySymbol = function () { var symbol; while (!symbol) { symbol = faker.random.objectElement(faker.definitions.finance.currency)['symbol']; } return symbol; } /** * bitcoinAddress * * @method faker.finance.bitcoinAddress */ self.bitcoinAddress = function () { var addressLength = faker.random.number({ min: 27, max: 34 }); var address = faker.random.arrayElement(['1', '3']); for (var i = 0; i < addressLength - 1; i++) address += faker.random.alphaNumeric().toUpperCase(); return address; } } module['exports'] = Finance; },{}],42:[function(require,module,exports){ /** * * @namespace faker.hacker */ var Hacker = function (faker) { var self = this; /** * abbreviation * * @method faker.hacker.abbreviation */ self.abbreviation = function () { return faker.random.arrayElement(faker.definitions.hacker.abbreviation); }; /** * adjective * * @method faker.hacker.adjective */ self.adjective = function () { return faker.random.arrayElement(faker.definitions.hacker.adjective); }; /** * noun * * @method faker.hacker.noun */ self.noun = function () { return faker.random.arrayElement(faker.definitions.hacker.noun); }; /** * verb * * @method faker.hacker.verb */ self.verb = function () { return faker.random.arrayElement(faker.definitions.hacker.verb); }; /** * ingverb * * @method faker.hacker.ingverb */ self.ingverb = function () { return faker.random.arrayElement(faker.definitions.hacker.ingverb); }; /** * phrase * * @method faker.hacker.phrase */ self.phrase = function () { var data = { abbreviation: self.abbreviation, adjective: self.adjective, ingverb: self.ingverb, noun: self.noun, verb: self.verb }; var phrase = faker.random.arrayElement([ "If we {{verb}} the {{noun}}, we can get to the {{abbreviation}} {{noun}} through the {{adjective}} {{abbreviation}} {{noun}}!", "We need to {{verb}} the {{adjective}} {{abbreviation}} {{noun}}!", "Try to {{verb}} the {{abbreviation}} {{noun}}, maybe it will {{verb}} the {{adjective}} {{noun}}!", "You can't {{verb}} the {{noun}} without {{ingverb}} the {{adjective}} {{abbreviation}} {{noun}}!", "Use the {{adjective}} {{abbreviation}} {{noun}}, then you can {{verb}} the {{adjective}} {{noun}}!", "The {{abbreviation}} {{noun}} is down, {{verb}} the {{adjective}} {{noun}} so we can {{verb}} the {{abbreviation}} {{noun}}!", "{{ingverb}} the {{noun}} won't do anything, we need to {{verb}} the {{adjective}} {{abbreviation}} {{noun}}!", "I'll {{verb}} the {{adjective}} {{abbreviation}} {{noun}}, that should {{noun}} the {{abbreviation}} {{noun}}!" ]); return faker.helpers.mustache(phrase, data); }; return self; }; module['exports'] = Hacker; },{}],43:[function(require,module,exports){ /** * * @namespace faker.helpers */ var Helpers = function (faker) { var self = this; /** * backword-compatibility * * @method faker.helpers.randomize * @param {array} array */ self.randomize = function (array) { array = array || ["a", "b", "c"]; return faker.random.arrayElement(array); }; /** * slugifies string * * @method faker.helpers.slugify * @param {string} string */ self.slugify = function (string) { string = string || ""; return string.replace(/ /g, '-').replace(/[^\w\.\-]+/g, ''); }; /** * parses string for a symbol and replace it with a random number from 1-10 * * @method faker.helpers.replaceSymbolWithNumber * @param {string} string * @param {string} symbol defaults to `"#"` */ self.replaceSymbolWithNumber = function (string, symbol) { string = string || ""; // default symbol is '#' if (symbol === undefined) { symbol = '#'; } var str = ''; for (var i = 0; i < string.length; i++) { if (string.charAt(i) == symbol) { str += faker.random.number(9); } else { str += string.charAt(i); } } return str; }; /** * parses string for symbols (numbers or letters) and replaces them appropriately * * @method faker.helpers.replaceSymbols * @param {string} string */ self.replaceSymbols = function (string) { string = string || ""; var alpha = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'] var str = ''; for (var i = 0; i < string.length; i++) { if (string.charAt(i) == "#") { str += faker.random.number(9); } else if (string.charAt(i) == "?") { str += faker.random.arrayElement(alpha); } else { str += string.charAt(i); } } return str; }; /** * takes an array and returns it randomized * * @method faker.helpers.shuffle * @param {array} o */ self.shuffle = function (o) { o = o || ["a", "b", "c"]; for (var j, x, i = o.length-1; i; j = faker.random.number(i), x = o[--i], o[i] = o[j], o[j] = x); return o; }; /** * mustache * * @method faker.helpers.mustache * @param {string} str * @param {object} data */ self.mustache = function (str, data) { if (typeof str === 'undefined') { return ''; } for(var p in data) { var re = new RegExp('{{' + p + '}}', 'g') str = str.replace(re, data[p]); } return str; }; /** * createCard * * @method faker.helpers.createCard */ self.createCard = function () { return { "name": faker.name.findName(), "username": faker.internet.userName(), "email": faker.internet.email(), "address": { "streetA": faker.address.streetName(), "streetB": faker.address.streetAddress(), "streetC": faker.address.streetAddress(true), "streetD": faker.address.secondaryAddress(), "city": faker.address.city(), "state": faker.address.state(), "country": faker.address.country(), "zipcode": faker.address.zipCode(), "geo": { "lat": faker.address.latitude(), "lng": faker.address.longitude() } }, "phone": faker.phone.phoneNumber(), "website": faker.internet.domainName(), "company": { "name": faker.company.companyName(), "catchPhrase": faker.company.catchPhrase(), "bs": faker.company.bs() }, "posts": [ { "words": faker.lorem.words(), "sentence": faker.lorem.sentence(), "sentences": faker.lorem.sentences(), "paragraph": faker.lorem.paragraph() }, { "words": faker.lorem.words(), "sentence": faker.lorem.sentence(), "sentences": faker.lorem.sentences(), "paragraph": faker.lorem.paragraph() }, { "words": faker.lorem.words(), "sentence": faker.lorem.sentence(), "sentences": faker.lorem.sentences(), "paragraph": faker.lorem.paragraph() } ], "accountHistory": [faker.helpers.createTransaction(), faker.helpers.createTransaction(), faker.helpers.createTransaction()] }; }; /** * contextualCard * * @method faker.helpers.contextualCard */ self.contextualCard = function () { var name = faker.name.firstName(), userName = faker.internet.userName(name); return { "name": name, "username": userName, "avatar": faker.internet.avatar(), "email": faker.internet.email(userName), "dob": faker.date.past(50, new Date("Sat Sep 20 1992 21:35:02 GMT+0200 (CEST)")), "phone": faker.phone.phoneNumber(), "address": { "street": faker.address.streetName(true), "suite": faker.address.secondaryAddress(), "city": faker.address.city(), "zipcode": faker.address.zipCode(), "geo": { "lat": faker.address.latitude(), "lng": faker.address.longitude() } }, "website": faker.internet.domainName(), "company": { "name": faker.company.companyName(), "catchPhrase": faker.company.catchPhrase(), "bs": faker.company.bs() } }; }; /** * userCard * * @method faker.helpers.userCard */ self.userCard = function () { return { "name": faker.name.findName(), "username": faker.internet.userName(), "email": faker.internet.email(), "address": { "street": faker.address.streetName(true), "suite": faker.address.secondaryAddress(), "city": faker.address.city(), "zipcode": faker.address.zipCode(), "geo": { "lat": faker.address.latitude(), "lng": faker.address.longitude() } }, "phone": faker.phone.phoneNumber(), "website": faker.internet.domainName(), "company": { "name": faker.company.companyName(), "catchPhrase": faker.company.catchPhrase(), "bs": faker.company.bs() } }; }; /** * createTransaction * * @method faker.helpers.createTransaction */ self.createTransaction = function(){ return { "amount" : faker.finance.amount(), "date" : new Date(2012, 1, 2), //TODO: add a ranged date method "business": faker.company.companyName(), "name": [faker.finance.accountName(), faker.finance.mask()].join(' '), "type" : self.randomize(faker.definitions.finance.transaction_type), "account" : faker.finance.account() }; }; return self; }; /* String.prototype.capitalize = function () { //v1.0 return this.replace(/\w+/g, function (a) { return a.charAt(0).toUpperCase() + a.substr(1).toLowerCase(); }); }; */ module['exports'] = Helpers; },{}],44:[function(require,module,exports){ /** * * @namespace faker.image */ var Image = function (faker) { var self = this; /** * image * * @param {number} width * @param {number} height * @param {boolean} randomize * @method faker.image.image */ self.image = function (width, height, randomize) { var categories = ["abstract", "animals", "business", "cats", "city", "food", "nightlife", "fashion", "people", "nature", "sports", "technics", "transport"]; return self[faker.random.arrayElement(categories)](width, height, randomize); }; /** * avatar * * @method faker.image.avatar */ self.avatar = function () { return faker.internet.avatar(); }; /** * imageUrl * * @param {number} width * @param {number} height * @param {string} category * @param {boolean} randomize * @method faker.image.imageUrl */ self.imageUrl = function (width, height, category, randomize) { var width = width || 640; var height = height || 480; var url ='http://lorempixel.com/' + width + '/' + height; if (typeof category !== 'undefined') { url += '/' + category; } if (randomize) { url += '?' + faker.random.number() } return url; }; /** * abstract * * @param {number} width * @param {number} height * @param {boolean} randomize * @method faker.image.abstract */ self.abstract = function (width, height, randomize) { return faker.image.imageUrl(width, height, 'abstract', randomize); }; /** * animals * * @param {number} width * @param {number} height * @param {boolean} randomize * @method faker.image.animals */ self.animals = function (width, height, randomize) { return faker.image.imageUrl(width, height, 'animals', randomize); }; /** * business * * @param {number} width * @param {number} height * @param {boolean} randomize * @method faker.image.business */ self.business = function (width, height, randomize) { return faker.image.imageUrl(width, height, 'business', randomize); }; /** * cats * * @param {number} width * @param {number} height * @param {boolean} randomize * @method faker.image.cats */ self.cats = function (width, height, randomize) { return faker.image.imageUrl(width, height, 'cats', randomize); }; /** * city * * @param {number} width * @param {number} height * @param {boolean} randomize * @method faker.image.city */ self.city = function (width, height, randomize) { return faker.image.imageUrl(width, height, 'city', randomize); }; /** * food * * @param {number} width * @param {number} height * @param {boolean} randomize * @method faker.image.food */ self.food = function (width, height, randomize) { return faker.image.imageUrl(width, height, 'food', randomize); }; /** * nightlife * * @param {number} width * @param {number} height * @param {boolean} randomize * @method faker.image.nightlife */ self.nightlife = function (width, height, randomize) { return faker.image.imageUrl(width, height, 'nightlife', randomize); }; /** * fashion * * @param {number} width * @param {number} height * @param {boolean} randomize * @method faker.image.fashion */ self.fashion = function (width, height, randomize) { return faker.image.imageUrl(width, height, 'fashion', randomize); }; /** * people * * @param {number} width * @param {number} height * @param {boolean} randomize * @method faker.image.people */ self.people = function (width, height, randomize) { return faker.image.imageUrl(width, height, 'people', randomize); }; /** * nature * * @param {number} width * @param {number} height * @param {boolean} randomize * @method faker.image.nature */ self.nature = function (width, height, randomize) { return faker.image.imageUrl(width, height, 'nature', randomize); }; /** * sports * * @param {number} width * @param {number} height * @param {boolean} randomize * @method faker.image.sports */ self.sports = function (width, height, randomize) { return faker.image.imageUrl(width, height, 'sports', randomize); }; /** * technics * * @param {number} width * @param {number} height * @param {boolean} randomize * @method faker.image.technics */ self.technics = function (width, height, randomize) { return faker.image.imageUrl(width, height, 'technics', randomize); }; /** * transport * * @param {number} width * @param {number} height * @param {boolean} randomize * @method faker.image.transport */ self.transport = function (width, height, randomize) { return faker.image.imageUrl(width, height, 'transport', randomize); } } module["exports"] = Image; },{}],45:[function(require,module,exports){ /* this index.js file is used for including the faker library as a CommonJS module, instead of a bundle you can include the faker library into your existing node.js application by requiring the entire /faker directory var faker = require(./faker); var randomName = faker.name.findName(); you can also simply include the "faker.js" file which is the auto-generated bundled version of the faker library var faker = require(./customAppPath/faker); var randomName = faker.name.findName(); if you plan on modifying the faker library you should be performing your changes in the /lib/ directory */ /** * * @namespace faker */ function Faker (opts) { var self = this; opts = opts || {}; // assign options var locales = self.locales || opts.locales || {}; var locale = self.locale || opts.locale || "en"; var localeFallback = self.localeFallback || opts.localeFallback || "en"; self.locales = locales; self.locale = locale; self.localeFallback = localeFallback; self.definitions = {}; var Fake = require('./fake'); self.fake = new Fake(self).fake; var Random = require('./random'); self.random = new Random(self); // self.random = require('./random'); var Helpers = require('./helpers'); self.helpers = new Helpers(self); var Name = require('./name'); self.name = new Name(self); // self.name = require('./name'); var Address = require('./address'); self.address = new Address(self); var Company = require('./company'); self.company = new Company(self); var Finance = require('./finance'); self.finance = new Finance(self); var Image = require('./image'); self.image = new Image(self); var Lorem = require('./lorem'); self.lorem = new Lorem(self); var Hacker = require('./hacker'); self.hacker = new Hacker(self); var Internet = require('./internet'); self.internet = new Internet(self); var Phone = require('./phone_number'); self.phone = new Phone(self); var _Date = require('./date'); self.date = new _Date(self); var Commerce = require('./commerce'); self.commerce = new Commerce(self); var System = require('./system'); self.system = new System(self); var _definitions = { "name": ["first_name", "last_name", "prefix", "suffix", "title", "male_first_name", "female_first_name", "male_middle_name", "female_middle_name", "male_last_name", "female_last_name"], "address": ["city_prefix", "city_suffix", "street_suffix", "county", "country", "country_code", "state", "state_abbr", "street_prefix", "postcode"], "company": ["adjective", "noun", "descriptor", "bs_adjective", "bs_noun", "bs_verb", "suffix"], "lorem": ["words"], "hacker": ["abbreviation", "adjective", "noun", "verb", "ingverb"], "phone_number": ["formats"], "finance": ["account_type", "transaction_type", "currency"], "internet": ["avatar_uri", "domain_suffix", "free_email", "example_email", "password"], "commerce": ["color", "department", "product_name", "price", "categories"], "system": ["mimeTypes"], "date": ["month", "weekday"], "title": "", "separator": "" }; // Create a Getter for all definitions.foo.bar propetries Object.keys(_definitions).forEach(function(d){ if (typeof self.definitions[d] === "undefined") { self.definitions[d] = {}; } if (typeof _definitions[d] === "string") { self.definitions[d] = _definitions[d]; return; } _definitions[d].forEach(function(p){ Object.defineProperty(self.definitions[d], p, { get: function () { if (typeof self.locales[self.locale][d] === "undefined" || typeof self.locales[self.locale][d][p] === "undefined") { // certain localization sets contain less data then others. // in the case of a missing defintion, use the default localeFallback to substitute the missing set data // throw new Error('unknown property ' + d + p) return self.locales[localeFallback][d][p]; } else { // return localized data return self.locales[self.locale][d][p]; } } }); }); }); }; Faker.prototype.seed = function(value) { var Random = require('./random'); this.seedValue = value; this.random = new Random(this, this.seedValue); } module['exports'] = Faker; },{"./address":36,"./commerce":37,"./company":38,"./date":39,"./fake":40,"./finance":41,"./hacker":42,"./helpers":43,"./image":44,"./internet":46,"./lorem":166,"./name":167,"./phone_number":168,"./random":169,"./system":170}],46:[function(require,module,exports){ var password_generator = require('../vendor/password-generator.js'), random_ua = require('../vendor/user-agent'); /** * * @namespace faker.internet */ var Internet = function (faker) { var self = this; /** * avatar * * @method faker.internet.avatar */ self.avatar = function () { return faker.random.arrayElement(faker.definitions.internet.avatar_uri); }; self.avatar.schema = { "description": "Generates a URL for an avatar.", "sampleResults": ["https://s3.amazonaws.com/uifaces/faces/twitter/igorgarybaldi/128.jpg"] }; /** * email * * @method faker.internet.email * @param {string} firstName * @param {string} lastName * @param {string} provider */ self.email = function (firstName, lastName, provider) { provider = provider || faker.random.arrayElement(faker.definitions.internet.free_email); return faker.helpers.slugify(faker.internet.userName(firstName, lastName)) + "@" + provider; }; self.email.schema = { "description": "Generates a valid email address based on optional input criteria", "sampleResults": ["foo.bar@gmail.com"], "properties": { "firstName": { "type": "string", "required": false, "description": "The first name of the user" }, "lastName": { "type": "string", "required": false, "description": "The last name of the user" }, "provider": { "type": "string", "required": false, "description": "The domain of the user" } } }; /** * exampleEmail * * @method faker.internet.exampleEmail * @param {string} firstName * @param {string} lastName */ self.exampleEmail = function (firstName, lastName) { var provider = faker.random.arrayElement(faker.definitions.internet.example_email); return self.email(firstName, lastName, provider); }; /** * userName * * @method faker.internet.userName * @param {string} firstName * @param {string} lastName */ self.userName = function (firstName, lastName) { var result; firstName = firstName || faker.name.firstName(); lastName = lastName || faker.name.lastName(); switch (faker.random.number(2)) { case 0: result = firstName + faker.random.number(99); break; case 1: result = firstName + faker.random.arrayElement([".", "_"]) + lastName; break; case 2: result = firstName + faker.random.arrayElement([".", "_"]) + lastName + faker.random.number(99); break; } result = result.toString().replace(/'/g, ""); result = result.replace(/ /g, ""); return result; }; self.userName.schema = { "description": "Generates a username based on one of several patterns. The pattern is chosen randomly.", "sampleResults": [ "Kirstin39", "Kirstin.Smith", "Kirstin.Smith39", "KirstinSmith", "KirstinSmith39", ], "properties": { "firstName": { "type": "string", "required": false, "description": "The first name of the user" }, "lastName": { "type": "string", "required": false, "description": "The last name of the user" } } }; /** * protocol * * @method faker.internet.protocol */ self.protocol = function () { var protocols = ['http','https']; return faker.random.arrayElement(protocols); }; self.protocol.schema = { "description": "Randomly generates http or https", "sampleResults": ["https", "http"] }; /** * url * * @method faker.internet.url */ self.url = function () { return faker.internet.protocol() + '://' + faker.internet.domainName(); }; self.url.schema = { "description": "Generates a random URL. The URL could be secure or insecure.", "sampleResults": [ "http://rashawn.name", "https://rashawn.name" ] }; /** * domainName * * @method faker.internet.domainName */ self.domainName = function () { return faker.internet.domainWord() + "." + faker.internet.domainSuffix(); }; self.domainName.schema = { "description": "Generates a random domain name.", "sampleResults": ["marvin.org"] }; /** * domainSuffix * * @method faker.internet.domainSuffix */ self.domainSuffix = function () { return faker.random.arrayElement(faker.definitions.internet.domain_suffix); }; self.domainSuffix.schema = { "description": "Generates a random domain suffix.", "sampleResults": ["net"] }; /** * domainWord * * @method faker.internet.domainWord */ self.domainWord = function () { return faker.name.firstName().replace(/([\\~#&*{}/:<>?|\"'])/ig, '').toLowerCase(); }; self.domainWord.schema = { "description": "Generates a random domain word.", "sampleResults": ["alyce"] }; /** * ip * * @method faker.internet.ip */ self.ip = function () { var randNum = function () { return (faker.random.number(255)).toFixed(0); }; var result = []; for (var i = 0; i < 4; i++) { result[i] = randNum(); } return result.join("."); }; self.ip.schema = { "description": "Generates a random IP.", "sampleResults": ["97.238.241.11"] }; /** * userAgent * * @method faker.internet.userAgent */ self.userAgent = function () { return random_ua.generate(); }; self.userAgent.schema = { "description": "Generates a random user agent.", "sampleResults": ["Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_7_5 rv:6.0; SL) AppleWebKit/532.0.1 (KHTML, like Gecko) Version/7.1.6 Safari/532.0.1"] }; /** * color * * @method faker.internet.color * @param {number} baseRed255 * @param {number} baseGreen255 * @param {number} baseBlue255 */ self.color = function (baseRed255, baseGreen255, baseBlue255) { baseRed255 = baseRed255 || 0; baseGreen255 = baseGreen255 || 0; baseBlue255 = baseBlue255 || 0; // based on awesome response : http://stackoverflow.com/questions/43044/algorithm-to-randomly-generate-an-aesthetically-pleasing-color-palette var red = Math.floor((faker.random.number(256) + baseRed255) / 2); var green = Math.floor((faker.random.number(256) + baseGreen255) / 2); var blue = Math.floor((faker.random.number(256) + baseBlue255) / 2); var redStr = red.toString(16); var greenStr = green.toString(16); var blueStr = blue.toString(16); return '#' + (redStr.length === 1 ? '0' : '') + redStr + (greenStr.length === 1 ? '0' : '') + greenStr + (blueStr.length === 1 ? '0': '') + blueStr; }; self.color.schema = { "description": "Generates a random hexadecimal color.", "sampleResults": ["#06267f"], "properties": { "baseRed255": { "type": "number", "required": false, "description": "The red value. Valid values are 0 - 255." }, "baseGreen255": { "type": "number", "required": false, "description": "The green value. Valid values are 0 - 255." }, "baseBlue255": { "type": "number", "required": false, "description": "The blue value. Valid values are 0 - 255." } } }; /** * mac * * @method faker.internet.mac */ self.mac = function(){ var i, mac = ""; for (i=0; i < 12; i++) { mac+= faker.random.number(15).toString(16); if (i%2==1 && i != 11) { mac+=":"; } } return mac; }; self.mac.schema = { "description": "Generates a random mac address.", "sampleResults": ["78:06:cc:ae:b3:81"] }; /** * password * * @method faker.internet.password * @param {number} len * @param {boolean} memorable * @param {string} pattern * @param {string} prefix */ self.password = function (len, memorable, pattern, prefix) { len = len || 15; if (typeof memorable === "undefined") { memorable = false; } return password_generator(len, memorable, pattern, prefix); } self.password.schema = { "description": "Generates a random password.", "sampleResults": [ "AM7zl6Mg", "susejofe" ], "properties": { "length": { "type": "number", "required": false, "description": "The number of characters in the password." }, "memorable": { "type": "boolean", "required": false, "description": "Whether a password should be easy to remember." }, "pattern": { "type": "regex", "required": false, "description": "A regex to match each character of the password against. This parameter will be negated if the memorable setting is turned on." }, "prefix": { "type": "string", "required": false, "description": "A value to prepend to the generated password. The prefix counts towards the length of the password." } } }; }; module["exports"] = Internet; },{"../vendor/password-generator.js":173,"../vendor/user-agent":174}],47:[function(require,module,exports){ module["exports"] = [ "#####", "####", "###" ]; },{}],48:[function(require,module,exports){ module["exports"] = [ "#{city_prefix} #{Name.first_name}#{city_suffix}", "#{city_prefix} #{Name.first_name}", "#{Name.first_name}#{city_suffix}", "#{Name.last_name}#{city_suffix}" ]; },{}],49:[function(require,module,exports){ module["exports"] = [ "North", "East", "West", "South", "New", "Lake", "Port" ]; },{}],50:[function(require,module,exports){ module["exports"] = [ "town", "ton", "land", "ville", "berg", "burgh", "borough", "bury", "view", "port", "mouth", "stad", "furt", "chester", "mouth", "fort", "haven", "side", "shire" ]; },{}],51:[function(require,module,exports){ module["exports"] = [ "Afghanistan", "Albania", "Algeria", "American Samoa", "Andorra", "Angola", "Anguilla", "Antarctica (the territory South of 60 deg S)", "Antigua and Barbuda", "Argentina", "Armenia", "Aruba", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia", "Bosnia and Herzegovina", "Botswana", "Bouvet Island (Bouvetoya)", "Brazil", "British Indian Ocean Territory (Chagos Archipelago)", "Brunei Darussalam", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Cayman Islands", "Central African Republic", "Chad", "Chile", "China", "Christmas Island", "Cocos (Keeling) Islands", "Colombia", "Comoros", "Congo", "Congo", "Cook Islands", "Costa Rica", "Cote d'Ivoire", "Croatia", "Cuba", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Faroe Islands", "Falkland Islands (Malvinas)", "Fiji", "Finland", "France", "French Guiana", "French Polynesia", "French Southern Territories", "Gabon", "Gambia", "Georgia", "Germany", "Ghana", "Gibraltar", "Greece", "Greenland", "Grenada", "Guadeloupe", "Guam", "Guatemala", "Guernsey", "Guinea", "Guinea-Bissau", "Guyana", "Haiti", "Heard Island and McDonald Islands", "Holy See (Vatican City State)", "Honduras", "Hong Kong", "Hungary", "Iceland", "India", "Indonesia", "Iran", "Iraq", "Ireland", "Isle of Man", "Israel", "Italy", "Jamaica", "Japan", "Jersey", "Jordan", "Kazakhstan", "Kenya", "Kiribati", "Democratic People's Republic of Korea", "Republic of Korea", "Kuwait", "Kyrgyz Republic", "Lao People's Democratic Republic", "Latvia", "Lebanon", "Lesotho", "Liberia", "Libyan Arab Jamahiriya", "Liechtenstein", "Lithuania", "Luxembourg", "Macao", "Macedonia", "Madagascar", "Malawi", "Malaysia", "Maldives", "Mali", "Malta", "Marshall Islands", "Martinique", "Mauritania", "Mauritius", "Mayotte", "Mexico", "Micronesia", "Moldova", "Monaco", "Mongolia", "Montenegro", "Montserrat", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nauru", "Nepal", "Netherlands Antilles", "Netherlands", "New Caledonia", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Niue", "Norfolk Island", "Northern Mariana Islands", "Norway", "Oman", "Pakistan", "Palau", "Palestinian Territory", "Panama", "Papua New Guinea", "Paraguay", "Peru", "Philippines", "Pitcairn Islands", "Poland", "Portugal", "Puerto Rico", "Qatar", "Reunion", "Romania", "Russian Federation", "Rwanda", "Saint Barthelemy", "Saint Helena", "Saint Kitts and Nevis", "Saint Lucia", "Saint Martin", "Saint Pierre and Miquelon", "Saint Vincent and the Grenadines", "Samoa", "San Marino", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Serbia", "Seychelles", "Sierra Leone", "Singapore", "Slovakia (Slovak Republic)", "Slovenia", "Solomon Islands", "Somalia", "South Africa", "South Georgia and the South Sandwich Islands", "Spain", "Sri Lanka", "Sudan", "Suriname", "Svalbard & Jan Mayen Islands", "Swaziland", "Sweden", "Switzerland", "Syrian Arab Republic", "Taiwan", "Tajikistan", "Tanzania", "Thailand", "Timor-Leste", "Togo", "Tokelau", "Tonga", "Trinidad and Tobago", "Tunisia", "Turkey", "Turkmenistan", "Turks and Caicos Islands", "Tuvalu", "Uganda", "Ukraine", "United Arab Emirates", "United Kingdom", "United States of America", "United States Minor Outlying Islands", "Uruguay", "Uzbekistan", "Vanuatu", "Venezuela", "Vietnam", "Virgin Islands, British", "Virgin Islands, U.S.", "Wallis and Futuna", "Western Sahara", "Yemen", "Zambia", "Zimbabwe" ]; },{}],52:[function(require,module,exports){ module["exports"] = [ "AD", "AE", "AF", "AG", "AI", "AL", "AM", "AO", "AQ", "AR", "AS", "AT", "AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BQ", "BQ", "BR", "BS", "BT", "BV", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CW", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES", "ET", "FI", "FJ", "FK", "FM", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GS", "GT", "GU", "GW", "GY", "HK", "HM", "HN", "HR", "HT", "HU", "ID", "IE", "IL", "IM", "IN", "IO", "IQ", "IR", "IS", "IT", "JE", "JM", "JO", "JP", "KE", "KG", "KH", "KI", "KM", "KN", "KP", "KR", "KW", "KY", "KZ", "LA", "LB", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "ME", "MF", "MG", "MH", "MK", "ML", "MM", "MN", "MO", "MP", "MQ", "MR", "MS", "MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NP", "NR", "NU", "NZ", "OM", "PA", "PE", "PF", "PG", "PH", "PK", "PL", "PM", "PN", "PR", "PS", "PT", "PW", "PY", "QA", "RE", "RO", "RS", "RU", "RW", "SA", "SB", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "SS", "ST", "SV", "SX", "SY", "SZ", "TC", "TD", "TF", "TG", "TH", "TJ", "TK", "TL", "TM", "TN", "TO", "TR", "TT", "TV", "TW", "TZ", "UA", "UG", "UM", "US", "UY", "UZ", "VA", "VC", "VE", "VG", "VI", "VN", "VU", "WF", "WS", "YE", "YT", "ZA", "ZM", "ZW" ]; },{}],53:[function(require,module,exports){ module["exports"] = [ "Avon", "Bedfordshire", "Berkshire", "Borders", "Buckinghamshire", "Cambridgeshire" ]; },{}],54:[function(require,module,exports){ module["exports"] = [ "United States of America" ]; },{}],55:[function(require,module,exports){ var address = {}; module['exports'] = address; address.city_prefix = require("./city_prefix"); address.city_suffix = require("./city_suffix"); address.county = require("./county"); address.country = require("./country"); address.country_code = require("./country_code"); address.building_number = require("./building_number"); address.street_suffix = require("./street_suffix"); address.secondary_address = require("./secondary_address"); address.postcode = require("./postcode"); address.postcode_by_state = require("./postcode_by_state"); address.state = require("./state"); address.state_abbr = require("./state_abbr"); address.time_zone = require("./time_zone"); address.city = require("./city"); address.street_name = require("./street_name"); address.street_address = require("./street_address"); address.default_country = require("./default_country"); },{"./building_number":47,"./city":48,"./city_prefix":49,"./city_suffix":50,"./country":51,"./country_code":52,"./county":53,"./default_country":54,"./postcode":56,"./postcode_by_state":57,"./secondary_address":58,"./state":59,"./state_abbr":60,"./street_address":61,"./street_name":62,"./street_suffix":63,"./time_zone":64}],56:[function(require,module,exports){ module["exports"] = [ "#####", "#####-####" ]; },{}],57:[function(require,module,exports){ arguments[4][56][0].apply(exports,arguments) },{"dup":56}],58:[function(require,module,exports){ module["exports"] = [ "Apt. ###", "Suite ###" ]; },{}],59:[function(require,module,exports){ module["exports"] = [ "Alabama", "Alaska", "Arizona", "Arkansas", "California", "Colorado", "Connecticut", "Delaware", "Florida", "Georgia", "Hawaii", "Idaho", "Illinois", "Indiana", "Iowa", "Kansas", "Kentucky", "Louisiana", "Maine", "Maryland", "Massachusetts", "Michigan", "Minnesota", "Mississippi", "Missouri", "Montana", "Nebraska", "Nevada", "New Hampshire", "New Jersey", "New Mexico", "New York", "North Carolina", "North Dakota", "Ohio", "Oklahoma", "Oregon", "Pennsylvania", "Rhode Island", "South Carolina", "South Dakota", "Tennessee", "Texas", "Utah", "Vermont", "Virginia", "Washington", "West Virginia", "Wisconsin", "Wyoming" ]; },{}],60:[function(require,module,exports){ module["exports"] = [ "AL", "AK", "AZ", "AR", "CA", "CO", "CT", "DE", "FL", "GA", "HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME", "MD", "MA", "MI", "MN", "MS", "MO", "MT", "NE", "NV", "NH", "NJ", "NM", "NY", "NC", "ND", "OH", "OK", "OR", "PA", "RI", "SC", "SD", "TN", "TX", "UT", "VT", "VA", "WA", "WV", "WI", "WY" ]; },{}],61:[function(require,module,exports){ module["exports"] = [ "#{building_number} #{street_name}" ]; },{}],62:[function(require,module,exports){ module["exports"] = [ "#{Name.first_name} #{street_suffix}", "#{Name.last_name} #{street_suffix}" ]; },{}],63:[function(require,module,exports){ module["exports"] = [ "Alley", "Avenue", "Branch", "Bridge", "Brook", "Brooks", "Burg", "Burgs", "Bypass", "Camp", "Canyon", "Cape", "Causeway", "Center", "Centers", "Circle", "Circles", "Cliff", "Cliffs", "Club", "Common", "Corner", "Corners", "Course", "Court", "Courts", "Cove", "Coves", "Creek", "Crescent", "Crest", "Crossing", "Crossroad", "Curve", "Dale", "Dam", "Divide", "Drive", "Drive", "Drives", "Estate", "Estates", "Expressway", "Extension", "Extensions", "Fall", "Falls", "Ferry", "Field", "Fields", "Flat", "Flats", "Ford", "Fords", "Forest", "Forge", "Forges", "Fork", "Forks", "Fort", "Freeway", "Garden", "Gardens", "Gateway", "Glen", "Glens", "Green", "Greens", "Grove", "Groves", "Harbor", "Harbors", "Haven", "Heights", "Highway", "Hill", "Hills", "Hollow", "Inlet", "Inlet", "Island", "Island", "Islands", "Islands", "Isle", "Isle", "Junction", "Junctions", "Key", "Keys", "Knoll", "Knolls", "Lake", "Lakes", "Land", "Landing", "Lane", "Light", "Lights", "Loaf", "Lock", "Locks", "Locks", "Lodge", "Lodge", "Loop", "Mall", "Manor", "Manors", "Meadow", "Meadows", "Mews", "Mill", "Mills", "Mission", "Mission", "Motorway", "Mount", "Mountain", "Mountain", "Mountains", "Mountains", "Neck", "Orchard", "Oval", "Overpass", "Park", "Parks", "Parkway", "Parkways", "Pass", "Passage", "Path", "Pike", "Pine", "Pines", "Place", "Plain", "Plains", "Plains", "Plaza", "Plaza", "Point", "Points", "Port", "Port", "Ports", "Ports", "Prairie", "Prairie", "Radial", "Ramp", "Ranch", "Rapid", "Rapids", "Rest", "Ridge", "Ridges", "River", "Road", "Road", "Roads", "Roads", "Route", "Row", "Rue", "Run", "Shoal", "Shoals", "Shore", "Shores", "Skyway", "Spring", "Springs", "Springs", "Spur", "Spurs", "Square", "Square", "Squares", "Squares", "Station", "Station", "Stravenue", "Stravenue", "Stream", "Stream", "Street", "Street", "Streets", "Summit", "Summit", "Terrace", "Throughway", "Trace", "Track", "Trafficway", "Trail", "Trail", "Tunnel", "Tunnel", "Turnpike", "Turnpike", "Underpass", "Union", "Unions", "Valley", "Valleys", "Via", "Viaduct", "View", "Views", "Village", "Village", "Villages", "Ville", "Vista", "Vista", "Walk", "Walks", "Wall", "Way", "Ways", "Well", "Wells" ]; },{}],64:[function(require,module,exports){ module["exports"] = [ "Pacific/Midway", "Pacific/Pago_Pago", "Pacific/Honolulu", "America/Juneau", "America/Los_Angeles", "America/Tijuana", "America/Denver", "America/Phoenix", "America/Chihuahua", "America/Mazatlan", "America/Chicago", "America/Regina", "America/Mexico_City", "America/Mexico_City", "America/Monterrey", "America/Guatemala", "America/New_York", "America/Indiana/Indianapolis", "America/Bogota", "America/Lima", "America/Lima", "America/Halifax", "America/Caracas", "America/La_Paz", "America/Santiago", "America/St_Johns", "America/Sao_Paulo", "America/Argentina/Buenos_Aires", "America/Guyana", "America/Godthab", "Atlantic/South_Georgia", "Atlantic/Azores", "Atlantic/Cape_Verde", "Europe/Dublin", "Europe/London", "Europe/Lisbon", "Europe/London", "Africa/Casablanca", "Africa/Monrovia", "Etc/UTC", "Europe/Belgrade", "Europe/Bratislava", "Europe/Budapest", "Europe/Ljubljana", "Europe/Prague", "Europe/Sarajevo", "Europe/Skopje", "Europe/Warsaw", "Europe/Zagreb", "Europe/Brussels", "Europe/Copenhagen", "Europe/Madrid", "Europe/Paris", "Europe/Amsterdam", "Europe/Berlin", "Europe/Berlin", "Europe/Rome", "Europe/Stockholm", "Europe/Vienna", "Africa/Algiers", "Europe/Bucharest", "Africa/Cairo", "Europe/Helsinki", "Europe/Kiev", "Europe/Riga", "Europe/Sofia", "Europe/Tallinn", "Europe/Vilnius", "Europe/Athens", "Europe/Istanbul", "Europe/Minsk", "Asia/Jerusalem", "Africa/Harare", "Africa/Johannesburg", "Europe/Moscow", "Europe/Moscow", "Europe/Moscow", "Asia/Kuwait", "Asia/Riyadh", "Africa/Nairobi", "Asia/Baghdad", "Asia/Tehran", "Asia/Muscat", "Asia/Muscat", "Asia/Baku", "Asia/Tbilisi", "Asia/Yerevan", "Asia/Kabul", "Asia/Yekaterinburg", "Asia/Karachi", "Asia/Karachi", "Asia/Tashkent", "Asia/Kolkata", "Asia/Kolkata", "Asia/Kolkata", "Asia/Kolkata", "Asia/Kathmandu", "Asia/Dhaka", "Asia/Dhaka", "Asia/Colombo", "Asia/Almaty", "Asia/Novosibirsk", "Asia/Rangoon", "Asia/Bangkok", "Asia/Bangkok", "Asia/Jakarta", "Asia/Krasnoyarsk", "Asia/Shanghai", "Asia/Chongqing", "Asia/Hong_Kong", "Asia/Urumqi", "Asia/Kuala_Lumpur", "Asia/Singapore", "Asia/Taipei", "Australia/Perth", "Asia/Irkutsk", "Asia/Ulaanbaatar", "Asia/Seoul", "Asia/Tokyo", "Asia/Tokyo", "Asia/Tokyo", "Asia/Yakutsk", "Australia/Darwin", "Australia/Adelaide", "Australia/Melbourne", "Australia/Melbourne", "Australia/Sydney", "Australia/Brisbane", "Australia/Hobart", "Asia/Vladivostok", "Pacific/Guam", "Pacific/Port_Moresby", "Asia/Magadan", "Asia/Magadan", "Pacific/Noumea", "Pacific/Fiji", "Asia/Kamchatka", "Pacific/Majuro", "Pacific/Auckland", "Pacific/Auckland", "Pacific/Tongatapu", "Pacific/Fakaofo", "Pacific/Apia" ]; },{}],65:[function(require,module,exports){ module["exports"] = [ "#{Name.name}", "#{Company.name}" ]; },{}],66:[function(require,module,exports){ var app = {}; module['exports'] = app; app.name = require("./name"); app.version = require("./version"); app.author = require("./author"); },{"./author":65,"./name":67,"./version":68}],67:[function(require,module,exports){ module["exports"] = [ "Redhold", "Treeflex", "Trippledex", "Kanlam", "Bigtax", "Daltfresh", "Toughjoyfax", "Mat Lam Tam", "Otcom", "Tres-Zap", "Y-Solowarm", "Tresom", "Voltsillam", "Biodex", "Greenlam", "Viva", "Matsoft", "Temp", "Zoolab", "Subin", "Rank", "Job", "Stringtough", "Tin", "It", "Home Ing", "Zamit", "Sonsing", "Konklab", "Alpha", "Latlux", "Voyatouch", "Alphazap", "Holdlamis", "Zaam-Dox", "Sub-Ex", "Quo Lux", "Bamity", "Ventosanzap", "Lotstring", "Hatity", "Tempsoft", "Overhold", "Fixflex", "Konklux", "Zontrax", "Tampflex", "Span", "Namfix", "Transcof", "Stim", "Fix San", "Sonair", "Stronghold", "Fintone", "Y-find", "Opela", "Lotlux", "Ronstring", "Zathin", "Duobam", "Keylex" ]; },{}],68:[function(require,module,exports){ module["exports"] = [ "0.#.#", "0.##", "#.##", "#.#", "#.#.#" ]; },{}],69:[function(require,module,exports){ module["exports"] = [ "2011-10-12", "2012-11-12", "2015-11-11", "2013-9-12" ]; },{}],70:[function(require,module,exports){ module["exports"] = [ "1234-2121-1221-1211", "1212-1221-1121-1234", "1211-1221-1234-2201", "1228-1221-1221-1431" ]; },{}],71:[function(require,module,exports){ module["exports"] = [ "visa", "mastercard", "americanexpress", "discover" ]; },{}],72:[function(require,module,exports){ var business = {}; module['exports'] = business; business.credit_card_numbers = require("./credit_card_numbers"); business.credit_card_expiry_dates = require("./credit_card_expiry_dates"); business.credit_card_types = require("./credit_card_types"); },{"./credit_card_expiry_dates":69,"./credit_card_numbers":70,"./credit_card_types":71}],73:[function(require,module,exports){ module["exports"] = [ "###-###-####", "(###) ###-####", "1-###-###-####", "###.###.####" ]; },{}],74:[function(require,module,exports){ var cell_phone = {}; module['exports'] = cell_phone; cell_phone.formats = require("./formats"); },{"./formats":73}],75:[function(require,module,exports){ module["exports"] = [ "red", "green", "blue", "yellow", "purple", "mint green", "teal", "white", "black", "orange", "pink", "grey", "maroon", "violet", "turquoise", "tan", "sky blue", "salmon", "plum", "orchid", "olive", "magenta", "lime", "ivory", "indigo", "gold", "fuchsia", "cyan", "azure", "lavender", "silver" ]; },{}],76:[function(require,module,exports){ module["exports"] = [ "Books", "Movies", "Music", "Games", "Electronics", "Computers", "Home", "Garden", "Tools", "Grocery", "Health", "Beauty", "Toys", "Kids", "Baby", "Clothing", "Shoes", "Jewelery", "Sports", "Outdoors", "Automotive", "Industrial" ]; },{}],77:[function(require,module,exports){ var commerce = {}; module['exports'] = commerce; commerce.color = require("./color"); commerce.department = require("./department"); commerce.product_name = require("./product_name"); },{"./color":75,"./department":76,"./product_name":78}],78:[function(require,module,exports){ module["exports"] = { "adjective": [ "Small", "Ergonomic", "Rustic", "Intelligent", "Gorgeous", "Incredible", "Fantastic", "Practical", "Sleek", "Awesome", "Generic", "Handcrafted", "Handmade", "Licensed", "Refined", "Unbranded", "Tasty" ], "material": [ "Steel", "Wooden", "Concrete", "Plastic", "Cotton", "Granite", "Rubber", "Metal", "Soft", "Fresh", "Frozen" ], "product": [ "Chair", "Car", "Computer", "Keyboard", "Mouse", "Bike", "Ball", "Gloves", "Pants", "Shirt", "Table", "Shoes", "Hat", "Towels", "Soap", "Tuna", "Chicken", "Fish", "Cheese", "Bacon", "Pizza", "Salad", "Sausages", "Chips" ] }; },{}],79:[function(require,module,exports){ module["exports"] = [ "Adaptive", "Advanced", "Ameliorated", "Assimilated", "Automated", "Balanced", "Business-focused", "Centralized", "Cloned", "Compatible", "Configurable", "Cross-group", "Cross-platform", "Customer-focused", "Customizable", "Decentralized", "De-engineered", "Devolved", "Digitized", "Distributed", "Diverse", "Down-sized", "Enhanced", "Enterprise-wide", "Ergonomic", "Exclusive", "Expanded", "Extended", "Face to face", "Focused", "Front-line", "Fully-configurable", "Function-based", "Fundamental", "Future-proofed", "Grass-roots", "Horizontal", "Implemented", "Innovative", "Integrated", "Intuitive", "Inverse", "Managed", "Mandatory", "Monitored", "Multi-channelled", "Multi-lateral", "Multi-layered", "Multi-tiered", "Networked", "Object-based", "Open-architected", "Open-source", "Operative", "Optimized", "Optional", "Organic", "Organized", "Persevering", "Persistent", "Phased", "Polarised", "Pre-emptive", "Proactive", "Profit-focused", "Profound", "Programmable", "Progressive", "Public-key", "Quality-focused", "Reactive", "Realigned", "Re-contextualized", "Re-engineered", "Reduced", "Reverse-engineered", "Right-sized", "Robust", "Seamless", "Secured", "Self-enabling", "Sharable", "Stand-alone", "Streamlined", "Switchable", "Synchronised", "Synergistic", "Synergized", "Team-oriented", "Total", "Triple-buffered", "Universal", "Up-sized", "Upgradable", "User-centric", "User-friendly", "Versatile", "Virtual", "Visionary", "Vision-oriented" ]; },{}],80:[function(require,module,exports){ module["exports"] = [ "clicks-and-mortar", "value-added", "vertical", "proactive", "robust", "revolutionary", "scalable", "leading-edge", "innovative", "intuitive", "strategic", "e-business", "mission-critical", "sticky", "one-to-one", "24/7", "end-to-end", "global", "B2B", "B2C", "granular", "frictionless", "virtual", "viral", "dynamic", "24/365", "best-of-breed", "killer", "magnetic", "bleeding-edge", "web-enabled", "interactive", "dot-com", "sexy", "back-end", "real-time", "efficient", "front-end", "distributed", "seamless", "extensible", "turn-key", "world-class", "open-source", "cross-platform", "cross-media", "synergistic", "bricks-and-clicks", "out-of-the-box", "enterprise", "integrated", "impactful", "wireless", "transparent", "next-generation", "cutting-edge", "user-centric", "visionary", "customized", "ubiquitous", "plug-and-play", "collaborative", "compelling", "holistic", "rich" ]; },{}],81:[function(require,module,exports){ module["exports"] = [ "synergies", "web-readiness", "paradigms", "markets", "partnerships", "infrastructures", "platforms", "initiatives", "channels", "eyeballs", "communities", "ROI", "solutions", "e-tailers", "e-services", "action-items", "portals", "niches", "technologies", "content", "vortals", "supply-chains", "convergence", "relationships", "architectures", "interfaces", "e-markets", "e-commerce", "systems", "bandwidth", "infomediaries", "models", "mindshare", "deliverables", "users", "schemas", "networks", "applications", "metrics", "e-business", "functionalities", "experiences", "web services", "methodologies" ]; },{}],82:[function(require,module,exports){ module["exports"] = [ "implement", "utilize", "integrate", "streamline", "optimize", "evolve", "transform", "embrace", "enable", "orchestrate", "leverage", "reinvent", "aggregate", "architect", "enhance", "incentivize", "morph", "empower", "envisioneer", "monetize", "harness", "facilitate", "seize", "disintermediate", "synergize", "strategize", "deploy", "brand", "grow", "target", "syndicate", "synthesize", "deliver", "mesh", "incubate", "engage", "maximize", "benchmark", "expedite", "reintermediate", "whiteboard", "visualize", "repurpose", "innovate", "scale", "unleash", "drive", "extend", "engineer", "revolutionize", "generate", "exploit", "transition", "e-enable", "iterate", "cultivate", "matrix", "productize", "redefine", "recontextualize" ]; },{}],83:[function(require,module,exports){ module["exports"] = [ "24 hour", "24/7", "3rd generation", "4th generation", "5th generation", "6th generation", "actuating", "analyzing", "asymmetric", "asynchronous", "attitude-oriented", "background", "bandwidth-monitored", "bi-directional", "bifurcated", "bottom-line", "clear-thinking", "client-driven", "client-server", "coherent", "cohesive", "composite", "context-sensitive", "contextually-based", "content-based", "dedicated", "demand-driven", "didactic", "directional", "discrete", "disintermediate", "dynamic", "eco-centric", "empowering", "encompassing", "even-keeled", "executive", "explicit", "exuding", "fault-tolerant", "foreground", "fresh-thinking", "full-range", "global", "grid-enabled", "heuristic", "high-level", "holistic", "homogeneous", "human-resource", "hybrid", "impactful", "incremental", "intangible", "interactive", "intermediate", "leading edge", "local", "logistical", "maximized", "methodical", "mission-critical", "mobile", "modular", "motivating", "multimedia", "multi-state", "multi-tasking", "national", "needs-based", "neutral", "next generation", "non-volatile", "object-oriented", "optimal", "optimizing", "radical", "real-time", "reciprocal", "regional", "responsive", "scalable", "secondary", "solution-oriented", "stable", "static", "systematic", "systemic", "system-worthy", "tangible", "tertiary", "transitional", "uniform", "upward-trending", "user-facing", "value-added", "web-enabled", "well-modulated", "zero administration", "zero defect", "zero tolerance" ]; },{}],84:[function(require,module,exports){ var company = {}; module['exports'] = company; company.suffix = require("./suffix"); company.adjective = require("./adjective"); company.descriptor = require("./descriptor"); company.noun = require("./noun"); company.bs_verb = require("./bs_verb"); company.bs_adjective = require("./bs_adjective"); company.bs_noun = require("./bs_noun"); company.name = require("./name"); },{"./adjective":79,"./bs_adjective":80,"./bs_noun":81,"./bs_verb":82,"./descriptor":83,"./name":85,"./noun":86,"./suffix":87}],85:[function(require,module,exports){ module["exports"] = [ "#{Name.last_name} #{suffix}", "#{Name.last_name}-#{Name.last_name}", "#{Name.last_name}, #{Name.last_name} and #{Name.last_name}" ]; },{}],86:[function(require,module,exports){ module["exports"] = [ "ability", "access", "adapter", "algorithm", "alliance", "analyzer", "application", "approach", "architecture", "archive", "artificial intelligence", "array", "attitude", "benchmark", "budgetary management", "capability", "capacity", "challenge", "circuit", "collaboration", "complexity", "concept", "conglomeration", "contingency", "core", "customer loyalty", "database", "data-warehouse", "definition", "emulation", "encoding", "encryption", "extranet", "firmware", "flexibility", "focus group", "forecast", "frame", "framework", "function", "functionalities", "Graphic Interface", "groupware", "Graphical User Interface", "hardware", "help-desk", "hierarchy", "hub", "implementation", "info-mediaries", "infrastructure", "initiative", "installation", "instruction set", "interface", "internet solution", "intranet", "knowledge user", "knowledge base", "local area network", "leverage", "matrices", "matrix", "methodology", "middleware", "migration", "model", "moderator", "monitoring", "moratorium", "neural-net", "open architecture", "open system", "orchestration", "paradigm", "parallelism", "policy", "portal", "pricing structure", "process improvement", "product", "productivity", "project", "projection", "protocol", "secured line", "service-desk", "software", "solution", "standardization", "strategy", "structure", "success", "superstructure", "support", "synergy", "system engine", "task-force", "throughput", "time-frame", "toolset", "utilisation", "website", "workforce" ]; },{}],87:[function(require,module,exports){ module["exports"] = [ "Inc", "and Sons", "LLC", "Group" ]; },{}],88:[function(require,module,exports){ module["exports"] = [ "/34##-######-####L/", "/37##-######-####L/" ]; },{}],89:[function(require,module,exports){ module["exports"] = [ "/30[0-5]#-######-###L/", "/368#-######-###L/" ]; },{}],90:[function(require,module,exports){ module["exports"] = [ "/6011-####-####-###L/", "/65##-####-####-###L/", "/64[4-9]#-####-####-###L/", "/6011-62##-####-####-###L/", "/65##-62##-####-####-###L/", "/64[4-9]#-62##-####-####-###L/" ]; },{}],91:[function(require,module,exports){ var credit_card = {}; module['exports'] = credit_card; credit_card.visa = require("./visa"); credit_card.mastercard = require("./mastercard"); credit_card.discover = require("./discover"); credit_card.american_express = require("./american_express"); credit_card.diners_club = require("./diners_club"); credit_card.jcb = require("./jcb"); credit_card.switch = require("./switch"); credit_card.solo = require("./solo"); credit_card.maestro = require("./maestro"); credit_card.laser = require("./laser"); },{"./american_express":88,"./diners_club":89,"./discover":90,"./jcb":92,"./laser":93,"./maestro":94,"./mastercard":95,"./solo":96,"./switch":97,"./visa":98}],92:[function(require,module,exports){ module["exports"] = [ "/3528-####-####-###L/", "/3529-####-####-###L/", "/35[3-8]#-####-####-###L/" ]; },{}],93:[function(require,module,exports){ module["exports"] = [ "/6304###########L/", "/6706###########L/", "/6771###########L/", "/6709###########L/", "/6304#########{5,6}L/", "/6706#########{5,6}L/", "/6771#########{5,6}L/", "/6709#########{5,6}L/" ]; },{}],94:[function(require,module,exports){ module["exports"] = [ "/50#{9,16}L/", "/5[6-8]#{9,16}L/", "/56##{9,16}L/" ]; },{}],95:[function(require,module,exports){ module["exports"] = [ "/5[1-5]##-####-####-###L/", "/6771-89##-####-###L/" ]; },{}],96:[function(require,module,exports){ module["exports"] = [ "/6767-####-####-###L/", "/6767-####-####-####-#L/", "/6767-####-####-####-##L/" ]; },{}],97:[function(require,module,exports){ module["exports"] = [ "/6759-####-####-###L/", "/6759-####-####-####-#L/", "/6759-####-####-####-##L/" ]; },{}],98:[function(require,module,exports){ module["exports"] = [ "/4###########L/", "/4###-####-####-###L/" ]; },{}],99:[function(require,module,exports){ var date = {}; module["exports"] = date; date.month = require("./month"); date.weekday = require("./weekday"); },{"./month":100,"./weekday":101}],100:[function(require,module,exports){ // Source: http://unicode.org/cldr/trac/browser/tags/release-27/common/main/en.xml#L1799 module["exports"] = { wide: [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ], // Property "wide_context" is optional, if not set then "wide" will be used instead // It is used to specify a word in context, which may differ from a stand-alone word wide_context: [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ], abbr: [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ], // Property "abbr_context" is optional, if not set then "abbr" will be used instead // It is used to specify a word in context, which may differ from a stand-alone word abbr_context: [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ] }; },{}],101:[function(require,module,exports){ // Source: http://unicode.org/cldr/trac/browser/tags/release-27/common/main/en.xml#L1847 module["exports"] = { wide: [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ], // Property "wide_context" is optional, if not set then "wide" will be used instead // It is used to specify a word in context, which may differ from a stand-alone word wide_context: [ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ], abbr: [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ], // Property "abbr_context" is optional, if not set then "abbr" will be used instead // It is used to specify a word in context, which may differ from a stand-alone word abbr_context: [ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ] }; },{}],102:[function(require,module,exports){ module["exports"] = [ "Checking", "Savings", "Money Market", "Investment", "Home Loan", "Credit Card", "Auto Loan", "Personal Loan" ]; },{}],103:[function(require,module,exports){ module["exports"] = { "UAE Dirham": { "code": "AED", "symbol": "" }, "Afghani": { "code": "AFN", "symbol": "؋" }, "Lek": { "code": "ALL", "symbol": "Lek" }, "Armenian Dram": { "code": "AMD", "symbol": "" }, "Netherlands Antillian Guilder": { "code": "ANG", "symbol": "ƒ" }, "Kwanza": { "code": "AOA", "symbol": "" }, "Argentine Peso": { "code": "ARS", "symbol": "$" }, "Australian Dollar": { "code": "AUD", "symbol": "$" }, "Aruban Guilder": { "code": "AWG", "symbol": "ƒ" }, "Azerbaijanian Manat": { "code": "AZN", "symbol": "ман" }, "Convertible Marks": { "code": "BAM", "symbol": "KM" }, "Barbados Dollar": { "code": "BBD", "symbol": "$" }, "Taka": { "code": "BDT", "symbol": "" }, "Bulgarian Lev": { "code": "BGN", "symbol": "лв" }, "Bahraini Dinar": { "code": "BHD", "symbol": "" }, "Burundi Franc": { "code": "BIF", "symbol": "" }, "Bermudian Dollar (customarily known as Bermuda Dollar)": { "code": "BMD", "symbol": "$" }, "Brunei Dollar": { "code": "BND", "symbol": "$" }, "Boliviano Mvdol": { "code": "BOB BOV", "symbol": "$b" }, "Brazilian Real": { "code": "BRL", "symbol": "R$" }, "Bahamian Dollar": { "code": "BSD", "symbol": "$" }, "Pula": { "code": "BWP", "symbol": "P" }, "Belarussian Ruble": { "code": "BYR", "symbol": "p." }, "Belize Dollar": { "code": "BZD", "symbol": "BZ$" }, "Canadian Dollar": { "code": "CAD", "symbol": "$" }, "Congolese Franc": { "code": "CDF", "symbol": "" }, "Swiss Franc": { "code": "CHF", "symbol": "CHF" }, "Chilean Peso Unidades de fomento": { "code": "CLP CLF", "symbol": "$" }, "Yuan Renminbi": { "code": "CNY", "symbol": "¥" }, "Colombian Peso Unidad de Valor Real": { "code": "COP COU", "symbol": "$" }, "Costa Rican Colon": { "code": "CRC", "symbol": "₡" }, "Cuban Peso Peso Convertible": { "code": "CUP CUC", "symbol": "₱" }, "Cape Verde Escudo": { "code": "CVE", "symbol": "" }, "Czech Koruna": { "code": "CZK", "symbol": "Kč" }, "Djibouti Franc": { "code": "DJF", "symbol": "" }, "Danish Krone": { "code": "DKK", "symbol": "kr" }, "Dominican Peso": { "code": "DOP", "symbol": "RD$" }, "Algerian Dinar": { "code": "DZD", "symbol": "" }, "Kroon": { "code": "EEK", "symbol": "" }, "Egyptian Pound": { "code": "EGP", "symbol": "£" }, "Nakfa": { "code": "ERN", "symbol": "" }, "Ethiopian Birr": { "code": "ETB", "symbol": "" }, "Euro": { "code": "EUR", "symbol": "€" }, "Fiji Dollar": { "code": "FJD", "symbol": "$" }, "Falkland Islands Pound": { "code": "FKP", "symbol": "£" }, "Pound Sterling": { "code": "GBP", "symbol": "£" }, "Lari": { "code": "GEL", "symbol": "" }, "Cedi": { "code": "GHS", "symbol": "" }, "Gibraltar Pound": { "code": "GIP", "symbol": "£" }, "Dalasi": { "code": "GMD", "symbol": "" }, "Guinea Franc": { "code": "GNF", "symbol": "" }, "Quetzal": { "code": "GTQ", "symbol": "Q" }, "Guyana Dollar": { "code": "GYD", "symbol": "$" }, "Hong Kong Dollar": { "code": "HKD", "symbol": "$" }, "Lempira": { "code": "HNL", "symbol": "L" }, "Croatian Kuna": { "code": "HRK", "symbol": "kn" }, "Gourde US Dollar": { "code": "HTG USD", "symbol": "" }, "Forint": { "code": "HUF", "symbol": "Ft" }, "Rupiah": { "code": "IDR", "symbol": "Rp" }, "New Israeli Sheqel": { "code": "ILS", "symbol": "₪" }, "Indian Rupee": { "code": "INR", "symbol": "" }, "Indian Rupee Ngultrum": { "code": "INR BTN", "symbol": "" }, "Iraqi Dinar": { "code": "IQD", "symbol": "" }, "Iranian Rial": { "code": "IRR", "symbol": "﷼" }, "Iceland Krona": { "code": "ISK", "symbol": "kr" }, "Jamaican Dollar": { "code": "JMD", "symbol": "J$" }, "Jordanian Dinar": { "code": "JOD", "symbol": "" }, "Yen": { "code": "JPY", "symbol": "¥" }, "Kenyan Shilling": { "code": "KES", "symbol": "" }, "Som": { "code": "KGS", "symbol": "лв" }, "Riel": { "code": "KHR", "symbol": "៛" }, "Comoro Franc": { "code": "KMF", "symbol": "" }, "North Korean Won": { "code": "KPW", "symbol": "₩" }, "Won": { "code": "KRW", "symbol": "₩" }, "Kuwaiti Dinar": { "code": "KWD", "symbol": "" }, "Cayman Islands Dollar": { "code": "KYD", "symbol": "$" }, "Tenge": { "code": "KZT", "symbol": "лв" }, "Kip": { "code": "LAK", "symbol": "₭" }, "Lebanese Pound": { "code": "LBP", "symbol": "£" }, "Sri Lanka Rupee": { "code": "LKR", "symbol": "₨" }, "Liberian Dollar": { "code": "LRD", "symbol": "$" }, "Lithuanian Litas": { "code": "LTL", "symbol": "Lt" }, "Latvian Lats": { "code": "LVL", "symbol": "Ls" }, "Libyan Dinar": { "code": "LYD", "symbol": "" }, "Moroccan Dirham": { "code": "MAD", "symbol": "" }, "Moldovan Leu": { "code": "MDL", "symbol": "" }, "Malagasy Ariary": { "code": "MGA", "symbol": "" }, "Denar": { "code": "MKD", "symbol": "ден" }, "Kyat": { "code": "MMK", "symbol": "" }, "Tugrik": { "code": "MNT", "symbol": "₮" }, "Pataca": { "code": "MOP", "symbol": "" }, "Ouguiya": { "code": "MRO", "symbol": "" }, "Mauritius Rupee": { "code": "MUR", "symbol": "₨" }, "Rufiyaa": { "code": "MVR", "symbol": "" }, "Kwacha": { "code": "MWK", "symbol": "" }, "Mexican Peso Mexican Unidad de Inversion (UDI)": { "code": "MXN MXV", "symbol": "$" }, "Malaysian Ringgit": { "code": "MYR", "symbol": "RM" }, "Metical": { "code": "MZN", "symbol": "MT" }, "Naira": { "code": "NGN", "symbol": "₦" }, "Cordoba Oro": { "code": "NIO", "symbol": "C$" }, "Norwegian Krone": { "code": "NOK", "symbol": "kr" }, "Nepalese Rupee": { "code": "NPR", "symbol": "₨" }, "New Zealand Dollar": { "code": "NZD", "symbol": "$" }, "Rial Omani": { "code": "OMR", "symbol": "﷼" }, "Balboa US Dollar": { "code": "PAB USD", "symbol": "B/." }, "Nuevo Sol": { "code": "PEN", "symbol": "S/." }, "Kina": { "code": "PGK", "symbol": "" }, "Philippine Peso": { "code": "PHP", "symbol": "Php" }, "Pakistan Rupee": { "code": "PKR", "symbol": "₨" }, "Zloty": { "code": "PLN", "symbol": "zł" }, "Guarani": { "code": "PYG", "symbol": "Gs" }, "Qatari Rial": { "code": "QAR", "symbol": "﷼" }, "New Leu": { "code": "RON", "symbol": "lei" }, "Serbian Dinar": { "code": "RSD", "symbol": "Дин." }, "Russian Ruble": { "code": "RUB", "symbol": "руб" }, "Rwanda Franc": { "code": "RWF", "symbol": "" }, "Saudi Riyal": { "code": "SAR", "symbol": "﷼" }, "Solomon Islands Dollar": { "code": "SBD", "symbol": "$" }, "Seychelles Rupee": { "code": "SCR", "symbol": "₨" }, "Sudanese Pound": { "code": "SDG", "symbol": "" }, "Swedish Krona": { "code": "SEK", "symbol": "kr" }, "Singapore Dollar": { "code": "SGD", "symbol": "$" }, "Saint Helena Pound": { "code": "SHP", "symbol": "£" }, "Leone": { "code": "SLL", "symbol": "" }, "Somali Shilling": { "code": "SOS", "symbol": "S" }, "Surinam Dollar": { "code": "SRD", "symbol": "$" }, "Dobra": { "code": "STD", "symbol": "" }, "El Salvador Colon US Dollar": { "code": "SVC USD", "symbol": "$" }, "Syrian Pound": { "code": "SYP", "symbol": "£" }, "Lilangeni": { "code": "SZL", "symbol": "" }, "Baht": { "code": "THB", "symbol": "฿" }, "Somoni": { "code": "TJS", "symbol": "" }, "Manat": { "code": "TMT", "symbol": "" }, "Tunisian Dinar": { "code": "TND", "symbol": "" }, "Pa'anga": { "code": "TOP", "symbol": "" }, "Turkish Lira": { "code": "TRY", "symbol": "TL" }, "Trinidad and Tobago Dollar": { "code": "TTD", "symbol": "TT$" }, "New Taiwan Dollar": { "code": "TWD", "symbol": "NT$" }, "Tanzanian Shilling": { "code": "TZS", "symbol": "" }, "Hryvnia": { "code": "UAH", "symbol": "₴" }, "Uganda Shilling": { "code": "UGX", "symbol": "" }, "US Dollar": { "code": "USD", "symbol": "$" }, "Peso Uruguayo Uruguay Peso en Unidades Indexadas": { "code": "UYU UYI", "symbol": "$U" }, "Uzbekistan Sum": { "code": "UZS", "symbol": "лв" }, "Bolivar Fuerte": { "code": "VEF", "symbol": "Bs" }, "Dong": { "code": "VND", "symbol": "₫" }, "Vatu": { "code": "VUV", "symbol": "" }, "Tala": { "code": "WST", "symbol": "" }, "CFA Franc BEAC": { "code": "XAF", "symbol": "" }, "Silver": { "code": "XAG", "symbol": "" }, "Gold": { "code": "XAU", "symbol": "" }, "Bond Markets Units European Composite Unit (EURCO)": { "code": "XBA", "symbol": "" }, "European Monetary Unit (E.M.U.-6)": { "code": "XBB", "symbol": "" }, "European Unit of Account 9(E.U.A.-9)": { "code": "XBC", "symbol": "" }, "European Unit of Account 17(E.U.A.-17)": { "code": "XBD", "symbol": "" }, "East Caribbean Dollar": { "code": "XCD", "symbol": "$" }, "SDR": { "code": "XDR", "symbol": "" }, "UIC-Franc": { "code": "XFU", "symbol": "" }, "CFA Franc BCEAO": { "code": "XOF", "symbol": "" }, "Palladium": { "code": "XPD", "symbol": "" }, "CFP Franc": { "code": "XPF", "symbol": "" }, "Platinum": { "code": "XPT", "symbol": "" }, "Codes specifically reserved for testing purposes": { "code": "XTS", "symbol": "" }, "Yemeni Rial": { "code": "YER", "symbol": "﷼" }, "Rand": { "code": "ZAR", "symbol": "R" }, "Rand Loti": { "code": "ZAR LSL", "symbol": "" }, "Rand Namibia Dollar": { "code": "ZAR NAD", "symbol": "" }, "Zambian Kwacha": { "code": "ZMK", "symbol": "" }, "Zimbabwe Dollar": { "code": "ZWL", "symbol": "" } }; },{}],104:[function(require,module,exports){ var finance = {}; module['exports'] = finance; finance.account_type = require("./account_type"); finance.transaction_type = require("./transaction_type"); finance.currency = require("./currency"); },{"./account_type":102,"./currency":103,"./transaction_type":105}],105:[function(require,module,exports){ module["exports"] = [ "deposit", "withdrawal", "payment", "invoice" ]; },{}],106:[function(require,module,exports){ module["exports"] = [ "TCP", "HTTP", "SDD", "RAM", "GB", "CSS", "SSL", "AGP", "SQL", "FTP", "PCI", "AI", "ADP", "RSS", "XML", "EXE", "COM", "HDD", "THX", "SMTP", "SMS", "USB", "PNG", "SAS", "IB", "SCSI", "JSON", "XSS", "JBOD" ]; },{}],107:[function(require,module,exports){ module["exports"] = [ "auxiliary", "primary", "back-end", "digital", "open-source", "virtual", "cross-platform", "redundant", "online", "haptic", "multi-byte", "bluetooth", "wireless", "1080p", "neural", "optical", "solid state", "mobile" ]; },{}],108:[function(require,module,exports){ var hacker = {}; module['exports'] = hacker; hacker.abbreviation = require("./abbreviation"); hacker.adjective = require("./adjective"); hacker.noun = require("./noun"); hacker.verb = require("./verb"); hacker.ingverb = require("./ingverb"); },{"./abbreviation":106,"./adjective":107,"./ingverb":109,"./noun":110,"./verb":111}],109:[function(require,module,exports){ module["exports"] = [ "backing up", "bypassing", "hacking", "overriding", "compressing", "copying", "navigating", "indexing", "connecting", "generating", "quantifying", "calculating", "synthesizing", "transmitting", "programming", "parsing" ]; },{}],110:[function(require,module,exports){ module["exports"] = [ "driver", "protocol", "bandwidth", "panel", "microchip", "program", "port", "card", "array", "interface", "system", "sensor", "firewall", "hard drive", "pixel", "alarm", "feed", "monitor", "application", "transmitter", "bus", "circuit", "capacitor", "matrix" ]; },{}],111:[function(require,module,exports){ module["exports"] = [ "back up", "bypass", "hack", "override", "compress", "copy", "navigate", "index", "connect", "generate", "quantify", "calculate", "synthesize", "input", "transmit", "program", "reboot", "parse" ]; },{}],112:[function(require,module,exports){ var en = {}; module['exports'] = en; en.title = "English"; en.separator = " & "; en.address = require("./address"); en.credit_card = require("./credit_card"); en.company = require("./company"); en.internet = require("./internet"); en.lorem = require("./lorem"); en.name = require("./name"); en.phone_number = require("./phone_number"); en.cell_phone = require("./cell_phone"); en.business = require("./business"); en.commerce = require("./commerce"); en.team = require("./team"); en.hacker = require("./hacker"); en.app = require("./app"); en.finance = require("./finance"); en.date = require("./date"); en.system = require("./system"); },{"./address":55,"./app":66,"./business":72,"./cell_phone":74,"./commerce":77,"./company":84,"./credit_card":91,"./date":99,"./finance":104,"./hacker":108,"./internet":117,"./lorem":118,"./name":122,"./phone_number":129,"./system":130,"./team":133}],113:[function(require,module,exports){ module["exports"] = [ "https://s3.amazonaws.com/uifaces/faces/twitter/jarjan/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mahdif/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/sprayaga/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ruzinav/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/Skyhartman/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/moscoz/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kurafire/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/91bilal/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/igorgarybaldi/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/calebogden/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/malykhinv/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/joelhelin/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kushsolitary/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/coreyweb/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/snowshade/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/areus/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/holdenweb/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/heyimjuani/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/envex/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/unterdreht/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/collegeman/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/peejfancher/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/andyisonline/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ultragex/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/fuck_you_two/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/adellecharles/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ateneupopular/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ahmetalpbalkan/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/Stievius/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kerem/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/osvaldas/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/angelceballos/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/thierrykoblentz/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/peterlandt/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/catarino/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/wr/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/weglov/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/brandclay/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/flame_kaizar/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ahmetsulek/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/nicolasfolliot/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jayrobinson/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/victorerixon/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kolage/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/michzen/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/markjenkins/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/nicolai_larsen/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/gt/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/noxdzine/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/alagoon/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/idiot/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mizko/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/chadengle/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mutlu82/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/simobenso/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/vocino/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/guiiipontes/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/soyjavi/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/joshaustin/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/tomaslau/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/VinThomas/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ManikRathee/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/langate/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/cemshid/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/leemunroe/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/_shahedk/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/enda/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/BillSKenney/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/divya/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/joshhemsley/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/sindresorhus/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/soffes/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/9lessons/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/linux29/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/Chakintosh/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/anaami/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/joreira/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/shadeed9/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/scottkclark/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jedbridges/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/salleedesign/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/marakasina/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ariil/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/BrianPurkiss/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/michaelmartinho/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/bublienko/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/devankoshal/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ZacharyZorbas/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/timmillwood/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/joshuasortino/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/damenleeturks/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/tomas_janousek/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/herrhaase/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/RussellBishop/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/brajeshwar/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/nachtmeister/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/cbracco/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/bermonpainter/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/abdullindenis/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/isacosta/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/suprb/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/yalozhkin/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/chandlervdw/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/iamgarth/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/_victa/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/commadelimited/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/roybarberuk/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/axel/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/vladarbatov/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ffbel/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/syropian/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ankitind/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/traneblow/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/flashmurphy/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ChrisFarina78/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/baliomega/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/saschamt/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jm_denis/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/anoff/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kennyadr/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/chatyrko/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/dingyi/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mds/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/terryxlife/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/aaroni/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kinday/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/prrstn/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/eduardostuart/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/dhilipsiva/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/GavicoInd/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/baires/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/rohixx/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/bigmancho/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/blakesimkins/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/leeiio/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/tjrus/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/uberschizo/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kylefoundry/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/claudioguglieri/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ripplemdk/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/exentrich/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jakemoore/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/joaoedumedeiros/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/poormini/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/tereshenkov/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/keryilmaz/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/haydn_woods/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/rude/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/llun/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/sgaurav_baghel/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jamiebrittain/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/badlittleduck/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/pifagor/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/agromov/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/benefritz/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/erwanhesry/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/diesellaws/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jeremiaha/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/koridhandy/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/chaensel/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/andrewcohen/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/smaczny/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/gonzalorobaina/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/nandini_m/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/sydlawrence/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/cdharrison/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/tgerken/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/lewisainslie/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/charliecwaite/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/robbschiller/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/flexrs/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mattdetails/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/raquelwilson/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/karsh/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mrmartineau/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/opnsrce/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/hgharrygo/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/maximseshuk/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/uxalex/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/samihah/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/chanpory/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/sharvin/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/josemarques/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jefffis/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/krystalfister/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/lokesh_coder/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/thedamianhdez/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/dpmachado/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/funwatercat/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/timothycd/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ivanfilipovbg/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/picard102/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/marcobarbosa/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/krasnoukhov/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/g3d/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ademilter/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/rickdt/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/operatino/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/bungiwan/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/hugomano/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/logorado/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/dc_user/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/horaciobella/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/SlaapMe/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/teeragit/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/iqonicd/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ilya_pestov/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/andrewarrow/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ssiskind/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/stan/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/HenryHoffman/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/rdsaunders/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/adamsxu/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/curiousoffice/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/themadray/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/michigangraham/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kohette/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/nickfratter/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/runningskull/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/madysondesigns/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/brenton_clarke/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jennyshen/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/bradenhamm/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kurtinc/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/amanruzaini/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/coreyhaggard/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/Karimmove/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/aaronalfred/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/wtrsld/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jitachi/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/therealmarvin/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/pmeissner/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ooomz/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/chacky14/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jesseddy/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/thinmatt/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/shanehudson/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/akmur/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/IsaryAmairani/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/arthurholcombe1/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/andychipster/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/boxmodel/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ehsandiary/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/LucasPerdidao/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/shalt0ni/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/swaplord/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kaelifa/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/plbabin/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/guillemboti/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/arindam_/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/renbyrd/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/thiagovernetti/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jmillspaysbills/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mikemai2awesome/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jervo/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mekal/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/sta1ex/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/robergd/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/felipecsl/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/andrea211087/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/garand/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/dhooyenga/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/abovefunction/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/pcridesagain/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/randomlies/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/BryanHorsey/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/heykenneth/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/dahparra/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/allthingssmitty/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/danvernon/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/beweinreich/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/increase/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/falvarad/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/alxndrustinov/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/souuf/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/orkuncaylar/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/AM_Kn2/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/gearpixels/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/bassamology/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/vimarethomas/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kosmar/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/SULiik/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mrjamesnoble/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/silvanmuhlemann/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/shaneIxD/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/nacho/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/yigitpinarbasi/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/buzzusborne/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/aaronkwhite/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/rmlewisuk/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/giancarlon/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/nbirckel/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/d_nny_m_cher/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/sdidonato/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/atariboy/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/abotap/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/karalek/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/psdesignuk/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ludwiczakpawel/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/nemanjaivanovic/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/baluli/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ahmadajmi/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/vovkasolovev/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/samgrover/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/derienzo777/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jonathansimmons/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/nelsonjoyce/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/S0ufi4n3/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/xtopherpaul/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/oaktreemedia/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/nateschulte/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/findingjenny/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/namankreative/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/antonyzotov/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/we_social/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/leehambley/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/solid_color/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/abelcabans/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mbilderbach/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kkusaa/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jordyvdboom/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/carlosgavina/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/pechkinator/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/vc27/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/rdbannon/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/croakx/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/suribbles/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kerihenare/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/catadeleon/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/gcmorley/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/duivvv/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/saschadroste/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/victorDubugras/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/wintopia/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mattbilotti/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/taylorling/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/megdraws/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/meln1ks/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mahmoudmetwally/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/Silveredge9/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/derekebradley/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/happypeter1983/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/travis_arnold/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/artem_kostenko/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/adobi/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/daykiine/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/alek_djuric/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/scips/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/miguelmendes/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/justinrhee/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/alsobrooks/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/fronx/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mcflydesign/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/santi_urso/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/allfordesign/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/stayuber/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/bertboerland/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/marosholly/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/adamnac/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/cynthiasavard/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/muringa/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/danro/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/hiemil/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jackiesaik/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/zacsnider/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/iduuck/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/antjanus/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/aroon_sharma/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/dshster/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/thehacker/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/michaelbrooksjr/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ryanmclaughlin/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/clubb3rry/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/taybenlor/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/xripunov/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/myastro/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/adityasutomo/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/digitalmaverick/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/hjartstrorn/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/itolmach/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/vaughanmoffitt/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/abdots/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/isnifer/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/sergeysafonov/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/maz/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/scrapdnb/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/chrismj83/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/vitorleal/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/sokaniwaal/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/zaki3d/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/illyzoren/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mocabyte/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/osmanince/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/djsherman/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/davidhemphill/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/waghner/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/necodymiconer/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/praveen_vijaya/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/fabbrucci/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/cliffseal/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/travishines/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kuldarkalvik/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/Elt_n/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/phillapier/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/okseanjay/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/id835559/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kudretkeskin/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/anjhero/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/duck4fuck/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/scott_riley/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/noufalibrahim/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/h1brd/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/borges_marcos/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/devinhalladay/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ciaranr/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/stefooo/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mikebeecham/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/tonymillion/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/joshuaraichur/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/irae/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/petrangr/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/dmitriychuta/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/charliegann/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/arashmanteghi/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/adhamdannaway/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ainsleywagon/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/svenlen/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/faisalabid/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/beshur/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/carlyson/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/dutchnadia/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/teddyzetterlund/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/samuelkraft/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/aoimedia/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/toddrew/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/codepoet_ru/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/artvavs/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/benoitboucart/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jomarmen/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kolmarlopez/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/creartinc/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/homka/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/gaborenton/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/robinclediere/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/maximsorokin/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/plasticine/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/j2deme/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/peachananr/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kapaluccio/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/de_ascanio/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/rikas/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/dawidwu/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/marcoramires/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/angelcreative/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/rpatey/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/popey/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/rehatkathuria/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/the_purplebunny/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/1markiz/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ajaxy_ru/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/brenmurrell/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/dudestein/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/oskarlevinson/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/victorstuber/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/nehfy/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/vicivadeline/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/leandrovaranda/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/scottgallant/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/victor_haydin/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/sawrb/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ryhanhassan/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/amayvs/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/a_brixen/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/karolkrakowiak_/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/herkulano/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/geran7/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/cggaurav/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/chris_witko/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/lososina/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/polarity/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mattlat/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/brandonburke/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/constantx/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/teylorfeliz/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/craigelimeliah/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/rachelreveley/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/reabo101/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/rahmeen/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ky/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/rickyyean/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/j04ntoh/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/spbroma/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/sebashton/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jpenico/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/francis_vega/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/oktayelipek/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kikillo/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/fabbianz/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/larrygerard/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/BroumiYoussef/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/0therplanet/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mbilalsiddique1/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ionuss/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/grrr_nl/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/liminha/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/rawdiggie/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ryandownie/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/sethlouey/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/pixage/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/arpitnj/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/switmer777/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/josevnclch/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kanickairaj/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/puzik/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/tbakdesigns/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/besbujupi/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/supjoey/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/lowie/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/linkibol/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/balintorosz/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/imcoding/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/agustincruiz/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/gusoto/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/thomasschrijer/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/superoutman/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kalmerrautam/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/gabrielizalo/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/gojeanyn/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/davidbaldie/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/_vojto/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/laurengray/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jydesign/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mymyboy/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/nellleo/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/marciotoledo/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ninjad3m0/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/to_soham/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/hasslunsford/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/muridrahhal/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/levisan/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/grahamkennery/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/lepetitogre/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/antongenkin/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/nessoila/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/amandabuzard/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/safrankov/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/cocolero/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/dss49/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/matt3224/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/bluesix/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/quailandquasar/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/AlbertoCococi/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/lepinski/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/sementiy/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mhudobivnik/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/thibaut_re/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/olgary/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/shojberg/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mtolokonnikov/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/bereto/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/naupintos/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/wegotvices/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/xadhix/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/macxim/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/rodnylobos/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/madcampos/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/madebyvadim/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/bartoszdawydzik/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/supervova/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/markretzloff/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/vonachoo/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/darylws/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/stevedesigner/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mylesb/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/herbigt/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/depaulawagner/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/geshan/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/gizmeedevil1991/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/_scottburgess/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/lisovsky/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/davidsasda/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/artd_sign/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/YoungCutlass/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mgonto/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/itstotallyamy/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/victorquinn/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/osmond/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/oksanafrewer/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/zauerkraut/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/iamkeithmason/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/nitinhayaran/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/lmjabreu/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mandalareopens/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/thinkleft/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ponchomendivil/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/juamperro/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/brunodesign1206/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/caseycavanagh/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/luxe/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/dotgridline/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/spedwig/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/madewulf/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mattsapii/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/helderleal/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/chrisstumph/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jayphen/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/nsamoylov/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/chrisvanderkooi/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/justme_timothyg/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/otozk/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/prinzadi/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/gu5taf/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/cyril_gaillard/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/d_kobelyatsky/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/daniloc/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/nwdsha/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/romanbulah/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/skkirilov/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/dvdwinden/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/dannol/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/thekevinjones/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jwalter14/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/timgthomas/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/buddhasource/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/uxpiper/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/thatonetommy/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/diansigitp/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/adrienths/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/klimmka/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/gkaam/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/derekcramer/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jennyyo/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/nerrsoft/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/xalionmalik/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/edhenderson/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/keyuri85/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/roxanejammet/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kimcool/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/edkf/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/matkins/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/alessandroribe/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jacksonlatka/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/lebronjennan/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kostaspt/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/karlkanall/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/moynihan/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/danpliego/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/saulihirvi/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/wesleytrankin/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/fjaguero/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/bowbrick/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mashaaaaal/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/yassiryahya/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/dparrelli/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/fotomagin/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/aka_james/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/denisepires/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/iqbalperkasa/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/martinansty/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jarsen/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/r_oy/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/justinrob/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/gabrielrosser/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/malgordon/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/carlfairclough/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/michaelabehsera/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/pierrestoffe/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/enjoythetau/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/loganjlambert/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/rpeezy/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/coreyginnivan/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/michalhron/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/msveet/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/lingeswaran/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kolsvein/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/peter576/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/reideiredale/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/joeymurdah/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/raphaelnikson/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mvdheuvel/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/maxlinderman/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jimmuirhead/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/begreative/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/frankiefreesbie/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/robturlinckx/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/Talbi_ConSept/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/longlivemyword/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/vanchesz/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/maiklam/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/hermanobrother/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/rez___a/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/gregsqueeb/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/greenbes/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/_ragzor/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/anthonysukow/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/fluidbrush/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/dactrtr/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jehnglynn/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/bergmartin/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/hugocornejo/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/_kkga/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/dzantievm/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/sawalazar/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/sovesove/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jonsgotwood/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/byryan/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/vytautas_a/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mizhgan/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/cicerobr/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/nilshelmersson/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/d33pthought/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/davecraige/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/nckjrvs/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/alexandermayes/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jcubic/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/craigrcoles/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/bagawarman/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/rob_thomas10/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/cofla/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/maikelk/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/rtgibbons/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/russell_baylis/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mhesslow/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/codysanfilippo/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/webtanya/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/madebybrenton/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/dcalonaci/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/perfectflow/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jjsiii/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/saarabpreet/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kumarrajan12123/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/iamsteffen/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/themikenagle/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ceekaytweet/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/larrybolt/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/conspirator/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/dallasbpeters/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/n3dmax/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/terpimost/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kirillz/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/byrnecore/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/j_drake_/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/calebjoyce/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/russoedu/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/hoangloi/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/tobysaxon/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/gofrasdesign/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/dimaposnyy/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/tjisousa/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/okandungel/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/billyroshan/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/oskamaya/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/motionthinks/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/knilob/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ashocka18/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/marrimo/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/bartjo/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/omnizya/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ernestsemerda/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/andreas_pr/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/edgarchris99/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/thomasgeisen/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/gseguin/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/joannefournier/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/demersdesigns/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/adammarsbar/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/nasirwd/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/n_tassone/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/javorszky/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/themrdave/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/yecidsm/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/nicollerich/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/canapud/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/nicoleglynn/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/judzhin_miles/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/designervzm/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kianoshp/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/evandrix/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/alterchuca/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/dhrubo/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ma_tiax/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ssbb_me/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/dorphern/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mauriolg/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/bruno_mart/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mactopus/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/the_winslet/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/joemdesign/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/Shriiiiimp/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jacobbennett/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/nfedoroff/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/iamglimy/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/allagringaus/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/aiiaiiaii/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/olaolusoga/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/buryaknick/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/wim1k/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/nicklacke/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/a1chapone/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/steynviljoen/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/strikewan/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ryankirkman/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/andrewabogado/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/doooon/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jagan123/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ariffsetiawan/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/elenadissi/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mwarkentin/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/thierrymeier_/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/r_garcia/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/dmackerman/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/borantula/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/konus/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/spacewood_/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ryuchi311/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/evanshajed/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/tristanlegros/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/shoaib253/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/aislinnkelly/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/okcoker/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/timpetricola/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/sunshinedgirl/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/chadami/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/aleclarsoniv/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/nomidesigns/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/petebernardo/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/scottiedude/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/millinet/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/imsoper/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/imammuht/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/benjamin_knight/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/nepdud/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/joki4/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/lanceguyatt/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/bboy1895/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/amywebbb/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/rweve/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/haruintesettden/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ricburton/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/nelshd/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/batsirai/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/primozcigler/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jffgrdnr/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/8d3k/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/geneseleznev/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/al_li/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/souperphly/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mslarkina/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/2fockus/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/cdavis565/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/xiel/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/turkutuuli/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/uxward/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/lebinoclard/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/gauravjassal/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/davidmerrique/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mdsisto/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/andrewofficer/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kojourin/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/dnirmal/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kevka/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mr_shiznit/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/aluisio_azevedo/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/cloudstudio/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/danvierich/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/alexivanichkin/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/fran_mchamy/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/perretmagali/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/betraydan/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/cadikkara/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/matbeedotcom/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jeremyworboys/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/bpartridge/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/michaelkoper/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/silv3rgvn/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/alevizio/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/johnsmithagency/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/lawlbwoy/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/vitor376/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/desastrozo/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/thimo_cz/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jasonmarkjones/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/lhausermann/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/xravil/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/guischmitt/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/vigobronx/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/panghal0/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/miguelkooreman/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/surgeonist/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/christianoliff/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/caspergrl/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/iamkarna/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ipavelek/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/pierre_nel/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/y2graphic/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/sterlingrules/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/elbuscainfo/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/bennyjien/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/stushona/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/estebanuribe/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/embrcecreations/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/danillos/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/elliotlewis/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/charlesrpratt/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/vladyn/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/emmeffess/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/carlosblanco_eu/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/leonfedotov/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/rangafangs/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/chris_frees/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/tgormtx/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/bryan_topham/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jpscribbles/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mighty55/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/carbontwelve/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/isaacfifth/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/iamjdeleon/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/snowwrite/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/barputro/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/drewbyreese/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/sachacorazzi/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/bistrianiosip/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/magoo04/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/pehamondello/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/yayteejay/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/a_harris88/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/algunsanabria/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/zforrester/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ovall/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/carlosjgsousa/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/geobikas/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ah_lice/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/looneydoodle/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/nerdgr8/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ddggccaa/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/zackeeler/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/normanbox/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/el_fuertisimo/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ismail_biltagi/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/juangomezw/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jnmnrd/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/patrickcoombe/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ryanjohnson_me/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/markolschesky/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jeffgolenski/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kvasnic/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/lindseyzilla/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/gauchomatt/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/afusinatto/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kevinoh/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/okansurreel/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/adamawesomeface/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/emileboudeling/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/arishi_/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/juanmamartinez/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/wikiziner/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/danthms/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mkginfo/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/terrorpixel/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/curiousonaut/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/prheemo/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/michaelcolenso/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/foczzi/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/martip07/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/thaodang17/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/johncafazza/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/robinlayfield/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/franciscoamk/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/abdulhyeuk/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/marklamb/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/edobene/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/andresenfredrik/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mikaeljorhult/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/chrisslowik/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/vinciarts/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/meelford/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/elliotnolten/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/yehudab/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/vijaykarthik/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/bfrohs/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/josep_martins/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/attacks/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/sur4dye/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/tumski/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/instalox/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mangosango/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/paulfarino/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kazaky999/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kiwiupover/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/nvkznemo/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/tom_even/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ratbus/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/woodsman001/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/joshmedeski/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/thewillbeard/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/psaikali/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/joe_black/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/aleinadsays/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/marcusgorillius/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/hota_v/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jghyllebert/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/shinze/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/janpalounek/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jeremiespoken/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/her_ruu/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/dansowter/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/felipeapiress/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/magugzbrand2d/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/posterjob/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/nathalie_fs/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/bobbytwoshoes/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/dreizle/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jeremymouton/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/elisabethkjaer/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/notbadart/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mohanrohith/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jlsolerdeltoro/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/itskawsar/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/slowspock/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/zvchkelly/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/wiljanslofstra/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/craighenneberry/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/trubeatto/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/juaumlol/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/samscouto/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/BenouarradeM/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/gipsy_raf/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/netonet_il/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/arkokoley/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/itsajimithing/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/smalonso/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/victordeanda/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/_dwite_/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/richardgarretts/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/gregrwilkinson/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/anatolinicolae/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/lu4sh1i/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/stefanotirloni/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ostirbu/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/darcystonge/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/naitanamoreno/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/michaelcomiskey/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/adhiardana/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/marcomano_/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/davidcazalis/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/falconerie/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/gregkilian/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/bcrad/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/bolzanmarco/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/low_res/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/vlajki/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/petar_prog/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jonkspr/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/akmalfikri/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mfacchinello/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/atanism/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/harry_sistalam/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/murrayswift/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/bobwassermann/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/gavr1l0/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/madshensel/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mr_subtle/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/deviljho_/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/salimianoff/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/joetruesdell/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/twittypork/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/airskylar/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/dnezkumar/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/dgajjar/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/cherif_b/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/salvafc/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/louis_currie/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/deeenright/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/cybind/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/eyronn/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/vickyshits/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/sweetdelisa/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/cboller1/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/andresdjasso/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/melvindidit/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/andysolomon/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/thaisselenator_/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/lvovenok/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/giuliusa/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/belyaev_rs/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/overcloacked/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kamal_chaneman/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/incubo82/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/hellofeverrrr/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mhaligowski/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/sunlandictwin/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/bu7921/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/andytlaw/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jeremery/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/finchjke/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/manigm/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/umurgdk/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/scottfeltham/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ganserene/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mutu_krish/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jodytaggart/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ntfblog/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/tanveerrao/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/hfalucas/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/alxleroydeval/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kucingbelang4/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/bargaorobalo/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/colgruv/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/stalewine/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kylefrost/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/baumannzone/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/angelcolberg/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/sachingawas/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jjshaw14/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ramanathan_pdy/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/johndezember/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/nilshoenson/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/brandonmorreale/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/nutzumi/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/brandonflatsoda/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/sergeyalmone/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/klefue/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kirangopal/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/baumann_alex/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/matthewkay_/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jay_wilburn/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/shesgared/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/apriendeau/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/johnriordan/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/wake_gs/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/aleksitappura/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/emsgulam/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/xilantra/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/imomenui/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/sircalebgrove/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/newbrushes/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/hsinyo23/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/m4rio/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/katiemdaly/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/s4f1/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ecommerceil/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/marlinjayakody/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/swooshycueb/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/sangdth/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/coderdiaz/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/bluefx_/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/vivekprvr/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/sasha_shestakov/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/eugeneeweb/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/dgclegg/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/n1ght_coder/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/dixchen/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/blakehawksworth/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/trueblood_33/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/hai_ninh_nguyen/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/marclgonzales/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/yesmeck/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/stephcoue/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/doronmalki/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ruehldesign/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/anasnakawa/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kijanmaharjan/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/wearesavas/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/stefvdham/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/tweetubhai/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/alecarpentier/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/fiterik/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/antonyryndya/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/d00maz/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/theonlyzeke/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/missaaamy/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/carlosm/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/manekenthe/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/reetajayendra/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jeremyshimko/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/justinrgraham/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/stefanozoffoli/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/overra/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mrebay007/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/shvelo96/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/pyronite/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/thedjpetersen/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/rtyukmaev/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/_williamguerra/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/albertaugustin/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/vikashpathak18/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kevinjohndayy/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/vj_demien/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/colirpixoil/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/goddardlewis/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/laasli/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jqiuss/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/heycamtaylor/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/nastya_mane/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mastermindesign/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ccinojasso1/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/nyancecom/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/sandywoodruff/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/bighanddesign/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/sbtransparent/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/aviddayentonbay/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/richwild/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kaysix_dizzy/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/tur8le/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/seyedhossein1/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/privetwagner/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/emmandenn/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/dev_essentials/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jmfsocial/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/_yardenoon/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mateaodviteza/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/weavermedia/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mufaddal_mw/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/hafeeskhan/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ashernatali/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/sulaqo/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/eddiechen/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/josecarlospsh/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/vm_f/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/enricocicconi/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/danmartin70/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/gmourier/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/donjain/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mrxloka/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/_pedropinho/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/eitarafa/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/oscarowusu/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ralph_lam/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/panchajanyag/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/woodydotmx/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/jerrybai1907/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/marshallchen_/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/xamorep/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/aio___/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/chaabane_wail/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/txcx/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/akashsharma39/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/falling_soul/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/sainraja/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mugukamil/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/johannesneu/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/markwienands/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/karthipanraj/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/balakayuriy/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/alan_zhang_/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/layerssss/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/kaspernordkvist/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/mirfanqureshi/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/hanna_smi/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/VMilescu/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/aeon56/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/m_kalibry/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/sreejithexp/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/dicesales/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/dhoot_amit/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/smenov/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/lonesomelemon/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/vladimirdevic/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/joelcipriano/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/haligaliharun/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/buleswapnil/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/serefka/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/ifarafonow/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/vikasvinfotech/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/urrutimeoli/128.jpg", "https://s3.amazonaws.com/uifaces/faces/twitter/areandacom/128.jpg" ]; },{}],114:[function(require,module,exports){ module["exports"] = [ "com", "biz", "info", "name", "net", "org" ]; },{}],115:[function(require,module,exports){ module["exports"] = [ "example.org", "example.com", "example.net" ]; },{}],116:[function(require,module,exports){ module["exports"] = [ "gmail.com", "yahoo.com", "hotmail.com" ]; },{}],117:[function(require,module,exports){ var internet = {}; module['exports'] = internet; internet.free_email = require("./free_email"); internet.example_email = require("./example_email"); internet.domain_suffix = require("./domain_suffix"); internet.avatar_uri = require("./avatar_uri"); },{"./avatar_uri":113,"./domain_suffix":114,"./example_email":115,"./free_email":116}],118:[function(require,module,exports){ var lorem = {}; module['exports'] = lorem; lorem.words = require("./words"); lorem.supplemental = require("./supplemental"); },{"./supplemental":119,"./words":120}],119:[function(require,module,exports){ module["exports"] = [ "abbas", "abduco", "abeo", "abscido", "absconditus", "absens", "absorbeo", "absque", "abstergo", "absum", "abundans", "abutor", "accedo", "accendo", "acceptus", "accipio", "accommodo", "accusator", "acer", "acerbitas", "acervus", "acidus", "acies", "acquiro", "acsi", "adamo", "adaugeo", "addo", "adduco", "ademptio", "adeo", "adeptio", "adfectus", "adfero", "adficio", "adflicto", "adhaero", "adhuc", "adicio", "adimpleo", "adinventitias", "adipiscor", "adiuvo", "administratio", "admiratio", "admitto", "admoneo", "admoveo", "adnuo", "adopto", "adsidue", "adstringo", "adsuesco", "adsum", "adulatio", "adulescens", "adultus", "aduro", "advenio", "adversus", "advoco", "aedificium", "aeger", "aegre", "aegrotatio", "aegrus", "aeneus", "aequitas", "aequus", "aer", "aestas", "aestivus", "aestus", "aetas", "aeternus", "ager", "aggero", "aggredior", "agnitio", "agnosco", "ago", "ait", "aiunt", "alienus", "alii", "alioqui", "aliqua", "alius", "allatus", "alo", "alter", "altus", "alveus", "amaritudo", "ambitus", "ambulo", "amicitia", "amiculum", "amissio", "amita", "amitto", "amo", "amor", "amoveo", "amplexus", "amplitudo", "amplus", "ancilla", "angelus", "angulus", "angustus", "animadverto", "animi", "animus", "annus", "anser", "ante", "antea", "antepono", "antiquus", "aperio", "aperte", "apostolus", "apparatus", "appello", "appono", "appositus", "approbo", "apto", "aptus", "apud", "aqua", "ara", "aranea", "arbitro", "arbor", "arbustum", "arca", "arceo", "arcesso", "arcus", "argentum", "argumentum", "arguo", "arma", "armarium", "armo", "aro", "ars", "articulus", "artificiose", "arto", "arx", "ascisco", "ascit", "asper", "aspicio", "asporto", "assentator", "astrum", "atavus", "ater", "atqui", "atrocitas", "atrox", "attero", "attollo", "attonbitus", "auctor", "auctus", "audacia", "audax", "audentia", "audeo", "audio", "auditor", "aufero", "aureus", "auris", "aurum", "aut", "autem", "autus", "auxilium", "avaritia", "avarus", "aveho", "averto", "avoco", "baiulus", "balbus", "barba", "bardus", "basium", "beatus", "bellicus", "bellum", "bene", "beneficium", "benevolentia", "benigne", "bestia", "bibo", "bis", "blandior", "bonus", "bos", "brevis", "cado", "caecus", "caelestis", "caelum", "calamitas", "calcar", "calco", "calculus", "callide", "campana", "candidus", "canis", "canonicus", "canto", "capillus", "capio", "capitulus", "capto", "caput", "carbo", "carcer", "careo", "caries", "cariosus", "caritas", "carmen", "carpo", "carus", "casso", "caste", "casus", "catena", "caterva", "cattus", "cauda", "causa", "caute", "caveo", "cavus", "cedo", "celebrer", "celer", "celo", "cena", "cenaculum", "ceno", "censura", "centum", "cerno", "cernuus", "certe", "certo", "certus", "cervus", "cetera", "charisma", "chirographum", "cibo", "cibus", "cicuta", "cilicium", "cimentarius", "ciminatio", "cinis", "circumvenio", "cito", "civis", "civitas", "clam", "clamo", "claro", "clarus", "claudeo", "claustrum", "clementia", "clibanus", "coadunatio", "coaegresco", "coepi", "coerceo", "cogito", "cognatus", "cognomen", "cogo", "cohaero", "cohibeo", "cohors", "colligo", "colloco", "collum", "colo", "color", "coma", "combibo", "comburo", "comedo", "comes", "cometes", "comis", "comitatus", "commemoro", "comminor", "commodo", "communis", "comparo", "compello", "complectus", "compono", "comprehendo", "comptus", "conatus", "concedo", "concido", "conculco", "condico", "conduco", "confero", "confido", "conforto", "confugo", "congregatio", "conicio", "coniecto", "conitor", "coniuratio", "conor", "conqueror", "conscendo", "conservo", "considero", "conspergo", "constans", "consuasor", "contabesco", "contego", "contigo", "contra", "conturbo", "conventus", "convoco", "copia", "copiose", "cornu", "corona", "corpus", "correptius", "corrigo", "corroboro", "corrumpo", "coruscus", "cotidie", "crapula", "cras", "crastinus", "creator", "creber", "crebro", "credo", "creo", "creptio", "crepusculum", "cresco", "creta", "cribro", "crinis", "cruciamentum", "crudelis", "cruentus", "crur", "crustulum", "crux", "cubicularis", "cubitum", "cubo", "cui", "cuius", "culpa", "culpo", "cultellus", "cultura", "cum", "cunabula", "cunae", "cunctatio", "cupiditas", "cupio", "cuppedia", "cupressus", "cur", "cura", "curatio", "curia", "curiositas", "curis", "curo", "curriculum", "currus", "cursim", "curso", "cursus", "curto", "curtus", "curvo", "curvus", "custodia", "damnatio", "damno", "dapifer", "debeo", "debilito", "decens", "decerno", "decet", "decimus", "decipio", "decor", "decretum", "decumbo", "dedecor", "dedico", "deduco", "defaeco", "defendo", "defero", "defessus", "defetiscor", "deficio", "defigo", "defleo", "defluo", "defungo", "degenero", "degero", "degusto", "deinde", "delectatio", "delego", "deleo", "delibero", "delicate", "delinquo", "deludo", "demens", "demergo", "demitto", "demo", "demonstro", "demoror", "demulceo", "demum", "denego", "denique", "dens", "denuncio", "denuo", "deorsum", "depereo", "depono", "depopulo", "deporto", "depraedor", "deprecator", "deprimo", "depromo", "depulso", "deputo", "derelinquo", "derideo", "deripio", "desidero", "desino", "desipio", "desolo", "desparatus", "despecto", "despirmatio", "infit", "inflammatio", "paens", "patior", "patria", "patrocinor", "patruus", "pauci", "paulatim", "pauper", "pax", "peccatus", "pecco", "pecto", "pectus", "pecunia", "pecus", "peior", "pel", "ocer", "socius", "sodalitas", "sol", "soleo", "solio", "solitudo", "solium", "sollers", "sollicito", "solum", "solus", "solutio", "solvo", "somniculosus", "somnus", "sonitus", "sono", "sophismata", "sopor", "sordeo", "sortitus", "spargo", "speciosus", "spectaculum", "speculum", "sperno", "spero", "spes", "spiculum", "spiritus", "spoliatio", "sponte", "stabilis", "statim", "statua", "stella", "stillicidium", "stipes", "stips", "sto", "strenuus", "strues", "studio", "stultus", "suadeo", "suasoria", "sub", "subito", "subiungo", "sublime", "subnecto", "subseco", "substantia", "subvenio", "succedo", "succurro", "sufficio", "suffoco", "suffragium", "suggero", "sui", "sulum", "sum", "summa", "summisse", "summopere", "sumo", "sumptus", "supellex", "super", "suppellex", "supplanto", "suppono", "supra", "surculus", "surgo", "sursum", "suscipio", "suspendo", "sustineo", "suus", "synagoga", "tabella", "tabernus", "tabesco", "tabgo", "tabula", "taceo", "tactus", "taedium", "talio", "talis", "talus", "tam", "tamdiu", "tamen", "tametsi", "tamisium", "tamquam", "tandem", "tantillus", "tantum", "tardus", "tego", "temeritas", "temperantia", "templum", "temptatio", "tempus", "tenax", "tendo", "teneo", "tener", "tenuis", "tenus", "tepesco", "tepidus", "ter", "terebro", "teres", "terga", "tergeo", "tergiversatio", "tergo", "tergum", "termes", "terminatio", "tero", "terra", "terreo", "territo", "terror", "tersus", "tertius", "testimonium", "texo", "textilis", "textor", "textus", "thalassinus", "theatrum", "theca", "thema", "theologus", "thermae", "thesaurus", "thesis", "thorax", "thymbra", "thymum", "tibi", "timidus", "timor", "titulus", "tolero", "tollo", "tondeo", "tonsor", "torqueo", "torrens", "tot", "totidem", "toties", "totus", "tracto", "trado", "traho", "trans", "tredecim", "tremo", "trepide", "tres", "tribuo", "tricesimus", "triduana", "triginta", "tripudio", "tristis", "triumphus", "trucido", "truculenter", "tubineus", "tui", "tum", "tumultus", "tunc", "turba", "turbo", "turpe", "turpis", "tutamen", "tutis", "tyrannus", "uberrime", "ubi", "ulciscor", "ullus", "ulterius", "ultio", "ultra", "umbra", "umerus", "umquam", "una", "unde", "undique", "universe", "unus", "urbanus", "urbs", "uredo", "usitas", "usque", "ustilo", "ustulo", "usus", "uter", "uterque", "utilis", "utique", "utor", "utpote", "utrimque", "utroque", "utrum", "uxor", "vaco", "vacuus", "vado", "vae", "valde", "valens", "valeo", "valetudo", "validus", "vallum", "vapulus", "varietas", "varius", "vehemens", "vel", "velociter", "velum", "velut", "venia", "venio", "ventito", "ventosus", "ventus", "venustas", "ver", "verbera", "verbum", "vere", "verecundia", "vereor", "vergo", "veritas", "vero", "versus", "verto", "verumtamen", "verus", "vesco", "vesica", "vesper", "vespillo", "vester", "vestigium", "vestrum", "vetus", "via", "vicinus", "vicissitudo", "victoria", "victus", "videlicet", "video", "viduata", "viduo", "vigilo", "vigor", "vilicus", "vilis", "vilitas", "villa", "vinco", "vinculum", "vindico", "vinitor", "vinum", "vir", "virga", "virgo", "viridis", "viriliter", "virtus", "vis", "viscus", "vita", "vitiosus", "vitium", "vito", "vivo", "vix", "vobis", "vociferor", "voco", "volaticus", "volo", "volubilis", "voluntarius", "volup", "volutabrum", "volva", "vomer", "vomica", "vomito", "vorago", "vorax", "voro", "vos", "votum", "voveo", "vox", "vulariter", "vulgaris", "vulgivagus", "vulgo", "vulgus", "vulnero", "vulnus", "vulpes", "vulticulus", "vultuosus", "xiphias" ]; },{}],120:[function(require,module,exports){ module["exports"] = [ "alias", "consequatur", "aut", "perferendis", "sit", "voluptatem", "accusantium", "doloremque", "aperiam", "eaque", "ipsa", "quae", "ab", "illo", "inventore", "veritatis", "et", "quasi", "architecto", "beatae", "vitae", "dicta", "sunt", "explicabo", "aspernatur", "aut", "odit", "aut", "fugit", "sed", "quia", "consequuntur", "magni", "dolores", "eos", "qui", "ratione", "voluptatem", "sequi", "nesciunt", "neque", "dolorem", "ipsum", "quia", "dolor", "sit", "amet", "consectetur", "adipisci", "velit", "sed", "quia", "non", "numquam", "eius", "modi", "tempora", "incidunt", "ut", "labore", "et", "dolore", "magnam", "aliquam", "quaerat", "voluptatem", "ut", "enim", "ad", "minima", "veniam", "quis", "nostrum", "exercitationem", "ullam", "corporis", "nemo", "enim", "ipsam", "voluptatem", "quia", "voluptas", "sit", "suscipit", "laboriosam", "nisi", "ut", "aliquid", "ex", "ea", "commodi", "consequatur", "quis", "autem", "vel", "eum", "iure", "reprehenderit", "qui", "in", "ea", "voluptate", "velit", "esse", "quam", "nihil", "molestiae", "et", "iusto", "odio", "dignissimos", "ducimus", "qui", "blanditiis", "praesentium", "laudantium", "totam", "rem", "voluptatum", "deleniti", "atque", "corrupti", "quos", "dolores", "et", "quas", "molestias", "excepturi", "sint", "occaecati", "cupiditate", "non", "provident", "sed", "ut", "perspiciatis", "unde", "omnis", "iste", "natus", "error", "similique", "sunt", "in", "culpa", "qui", "officia", "deserunt", "mollitia", "animi", "id", "est", "laborum", "et", "dolorum", "fuga", "et", "harum", "quidem", "rerum", "facilis", "est", "et", "expedita", "distinctio", "nam", "libero", "tempore", "cum", "soluta", "nobis", "est", "eligendi", "optio", "cumque", "nihil", "impedit", "quo", "porro", "quisquam", "est", "qui", "minus", "id", "quod", "maxime", "placeat", "facere", "possimus", "omnis", "voluptas", "assumenda", "est", "omnis", "dolor", "repellendus", "temporibus", "autem", "quibusdam", "et", "aut", "consequatur", "vel", "illum", "qui", "dolorem", "eum", "fugiat", "quo", "voluptas", "nulla", "pariatur", "at", "vero", "eos", "et", "accusamus", "officiis", "debitis", "aut", "rerum", "necessitatibus", "saepe", "eveniet", "ut", "et", "voluptates", "repudiandae", "sint", "et", "molestiae", "non", "recusandae", "itaque", "earum", "rerum", "hic", "tenetur", "a", "sapiente", "delectus", "ut", "aut", "reiciendis", "voluptatibus", "maiores", "doloribus", "asperiores", "repellat" ]; },{}],121:[function(require,module,exports){ module["exports"] = [ "Aaliyah", "Aaron", "Abagail", "Abbey", "Abbie", "Abbigail", "Abby", "Abdiel", "Abdul", "Abdullah", "Abe", "Abel", "Abelardo", "Abigail", "Abigale", "Abigayle", "Abner", "Abraham", "Ada", "Adah", "Adalberto", "Adaline", "Adam", "Adan", "Addie", "Addison", "Adela", "Adelbert", "Adele", "Adelia", "Adeline", "Adell", "Adella", "Adelle", "Aditya", "Adolf", "Adolfo", "Adolph", "Adolphus", "Adonis", "Adrain", "Adrian", "Adriana", "Adrianna", "Adriel", "Adrien", "Adrienne", "Afton", "Aglae", "Agnes", "Agustin", "Agustina", "Ahmad", "Ahmed", "Aida", "Aidan", "Aiden", "Aileen", "Aimee", "Aisha", "Aiyana", "Akeem", "Al", "Alaina", "Alan", "Alana", "Alanis", "Alanna", "Alayna", "Alba", "Albert", "Alberta", "Albertha", "Alberto", "Albin", "Albina", "Alda", "Alden", "Alec", "Aleen", "Alejandra", "Alejandrin", "Alek", "Alena", "Alene", "Alessandra", "Alessandro", "Alessia", "Aletha", "Alex", "Alexa", "Alexander", "Alexandra", "Alexandre", "Alexandrea", "Alexandria", "Alexandrine", "Alexandro", "Alexane", "Alexanne", "Alexie", "Alexis", "Alexys", "Alexzander", "Alf", "Alfonso", "Alfonzo", "Alford", "Alfred", "Alfreda", "Alfredo", "Ali", "Alia", "Alice", "Alicia", "Alisa", "Alisha", "Alison", "Alivia", "Aliya", "Aliyah", "Aliza", "Alize", "Allan", "Allen", "Allene", "Allie", "Allison", "Ally", "Alphonso", "Alta", "Althea", "Alva", "Alvah", "Alvena", "Alvera", "Alverta", "Alvina", "Alvis", "Alyce", "Alycia", "Alysa", "Alysha", "Alyson", "Alysson", "Amalia", "Amanda", "Amani", "Amara", "Amari", "Amaya", "Amber", "Ambrose", "Amelia", "Amelie", "Amely", "America", "Americo", "Amie", "Amina", "Amir", "Amira", "Amiya", "Amos", "Amparo", "Amy", "Amya", "Ana", "Anabel", "Anabelle", "Anahi", "Anais", "Anastacio", "Anastasia", "Anderson", "Andre", "Andreane", "Andreanne", "Andres", "Andrew", "Andy", "Angel", "Angela", "Angelica", "Angelina", "Angeline", "Angelita", "Angelo", "Angie", "Angus", "Anibal", "Anika", "Anissa", "Anita", "Aniya", "Aniyah", "Anjali", "Anna", "Annabel", "Annabell", "Annabelle", "Annalise", "Annamae", "Annamarie", "Anne", "Annetta", "Annette", "Annie", "Ansel", "Ansley", "Anthony", "Antoinette", "Antone", "Antonetta", "Antonette", "Antonia", "Antonietta", "Antonina", "Antonio", "Antwan", "Antwon", "Anya", "April", "Ara", "Araceli", "Aracely", "Arch", "Archibald", "Ardella", "Arden", "Ardith", "Arely", "Ari", "Ariane", "Arianna", "Aric", "Ariel", "Arielle", "Arjun", "Arlene", "Arlie", "Arlo", "Armand", "Armando", "Armani", "Arnaldo", "Arne", "Arno", "Arnold", "Arnoldo", "Arnulfo", "Aron", "Art", "Arthur", "Arturo", "Arvel", "Arvid", "Arvilla", "Aryanna", "Asa", "Asha", "Ashlee", "Ashleigh", "Ashley", "Ashly", "Ashlynn", "Ashton", "Ashtyn", "Asia", "Assunta", "Astrid", "Athena", "Aubree", "Aubrey", "Audie", "Audra", "Audreanne", "Audrey", "August", "Augusta", "Augustine", "Augustus", "Aurelia", "Aurelie", "Aurelio", "Aurore", "Austen", "Austin", "Austyn", "Autumn", "Ava", "Avery", "Avis", "Axel", "Ayana", "Ayden", "Ayla", "Aylin", "Baby", "Bailee", "Bailey", "Barbara", "Barney", "Baron", "Barrett", "Barry", "Bart", "Bartholome", "Barton", "Baylee", "Beatrice", "Beau", "Beaulah", "Bell", "Bella", "Belle", "Ben", "Benedict", "Benjamin", "Bennett", "Bennie", "Benny", "Benton", "Berenice", "Bernadette", "Bernadine", "Bernard", "Bernardo", "Berneice", "Bernhard", "Bernice", "Bernie", "Berniece", "Bernita", "Berry", "Bert", "Berta", "Bertha", "Bertram", "Bertrand", "Beryl", "Bessie", "Beth", "Bethany", "Bethel", "Betsy", "Bette", "Bettie", "Betty", "Bettye", "Beulah", "Beverly", "Bianka", "Bill", "Billie", "Billy", "Birdie", "Blair", "Blaise", "Blake", "Blanca", "Blanche", "Blaze", "Bo", "Bobbie", "Bobby", "Bonita", "Bonnie", "Boris", "Boyd", "Brad", "Braden", "Bradford", "Bradley", "Bradly", "Brady", "Braeden", "Brain", "Brandi", "Brando", "Brandon", "Brandt", "Brandy", "Brandyn", "Brannon", "Branson", "Brant", "Braulio", "Braxton", "Brayan", "Breana", "Breanna", "Breanne", "Brenda", "Brendan", "Brenden", "Brendon", "Brenna", "Brennan", "Brennon", "Brent", "Bret", "Brett", "Bria", "Brian", "Briana", "Brianne", "Brice", "Bridget", "Bridgette", "Bridie", "Brielle", "Brigitte", "Brionna", "Brisa", "Britney", "Brittany", "Brock", "Broderick", "Brody", "Brook", "Brooke", "Brooklyn", "Brooks", "Brown", "Bruce", "Bryana", "Bryce", "Brycen", "Bryon", "Buck", "Bud", "Buddy", "Buford", "Bulah", "Burdette", "Burley", "Burnice", "Buster", "Cade", "Caden", "Caesar", "Caitlyn", "Cale", "Caleb", "Caleigh", "Cali", "Calista", "Callie", "Camden", "Cameron", "Camila", "Camilla", "Camille", "Camren", "Camron", "Camryn", "Camylle", "Candace", "Candelario", "Candice", "Candida", "Candido", "Cara", "Carey", "Carissa", "Carlee", "Carleton", "Carley", "Carli", "Carlie", "Carlo", "Carlos", "Carlotta", "Carmel", "Carmela", "Carmella", "Carmelo", "Carmen", "Carmine", "Carol", "Carolanne", "Carole", "Carolina", "Caroline", "Carolyn", "Carolyne", "Carrie", "Carroll", "Carson", "Carter", "Cary", "Casandra", "Casey", "Casimer", "Casimir", "Casper", "Cassandra", "Cassandre", "Cassidy", "Cassie", "Catalina", "Caterina", "Catharine", "Catherine", "Cathrine", "Cathryn", "Cathy", "Cayla", "Ceasar", "Cecelia", "Cecil", "Cecile", "Cecilia", "Cedrick", "Celestine", "Celestino", "Celia", "Celine", "Cesar", "Chad", "Chadd", "Chadrick", "Chaim", "Chance", "Chandler", "Chanel", "Chanelle", "Charity", "Charlene", "Charles", "Charley", "Charlie", "Charlotte", "Chase", "Chasity", "Chauncey", "Chaya", "Chaz", "Chelsea", "Chelsey", "Chelsie", "Chesley", "Chester", "Chet", "Cheyanne", "Cheyenne", "Chloe", "Chris", "Christ", "Christa", "Christelle", "Christian", "Christiana", "Christina", "Christine", "Christop", "Christophe", "Christopher", "Christy", "Chyna", "Ciara", "Cicero", "Cielo", "Cierra", "Cindy", "Citlalli", "Clair", "Claire", "Clara", "Clarabelle", "Clare", "Clarissa", "Clark", "Claud", "Claude", "Claudia", "Claudie", "Claudine", "Clay", "Clemens", "Clement", "Clementina", "Clementine", "Clemmie", "Cleo", "Cleora", "Cleta", "Cletus", "Cleve", "Cleveland", "Clifford", "Clifton", "Clint", "Clinton", "Clotilde", "Clovis", "Cloyd", "Clyde", "Coby", "Cody", "Colby", "Cole", "Coleman", "Colin", "Colleen", "Collin", "Colt", "Colten", "Colton", "Columbus", "Concepcion", "Conner", "Connie", "Connor", "Conor", "Conrad", "Constance", "Constantin", "Consuelo", "Cooper", "Cora", "Coralie", "Corbin", "Cordelia", "Cordell", "Cordia", "Cordie", "Corene", "Corine", "Cornelius", "Cornell", "Corrine", "Cortez", "Cortney", "Cory", "Coty", "Courtney", "Coy", "Craig", "Crawford", "Creola", "Cristal", "Cristian", "Cristina", "Cristobal", "Cristopher", "Cruz", "Crystal", "Crystel", "Cullen", "Curt", "Curtis", "Cydney", "Cynthia", "Cyril", "Cyrus", "Dagmar", "Dahlia", "Daija", "Daisha", "Daisy", "Dakota", "Dale", "Dallas", "Dallin", "Dalton", "Damaris", "Dameon", "Damian", "Damien", "Damion", "Damon", "Dan", "Dana", "Dandre", "Dane", "D'angelo", "Dangelo", "Danial", "Daniela", "Daniella", "Danielle", "Danika", "Dannie", "Danny", "Dante", "Danyka", "Daphne", "Daphnee", "Daphney", "Darby", "Daren", "Darian", "Dariana", "Darien", "Dario", "Darion", "Darius", "Darlene", "Daron", "Darrel", "Darrell", "Darren", "Darrick", "Darrin", "Darrion", "Darron", "Darryl", "Darwin", "Daryl", "Dashawn", "Dasia", "Dave", "David", "Davin", "Davion", "Davon", "Davonte", "Dawn", "Dawson", "Dax", "Dayana", "Dayna", "Dayne", "Dayton", "Dean", "Deangelo", "Deanna", "Deborah", "Declan", "Dedric", "Dedrick", "Dee", "Deion", "Deja", "Dejah", "Dejon", "Dejuan", "Delaney", "Delbert", "Delfina", "Delia", "Delilah", "Dell", "Della", "Delmer", "Delores", "Delpha", "Delphia", "Delphine", "Delta", "Demarco", "Demarcus", "Demario", "Demetris", "Demetrius", "Demond", "Dena", "Denis", "Dennis", "Deon", "Deondre", "Deontae", "Deonte", "Dereck", "Derek", "Derick", "Deron", "Derrick", "Deshaun", "Deshawn", "Desiree", "Desmond", "Dessie", "Destany", "Destin", "Destinee", "Destiney", "Destini", "Destiny", "Devan", "Devante", "Deven", "Devin", "Devon", "Devonte", "Devyn", "Dewayne", "Dewitt", "Dexter", "Diamond", "Diana", "Dianna", "Diego", "Dillan", "Dillon", "Dimitri", "Dina", "Dino", "Dion", "Dixie", "Dock", "Dolly", "Dolores", "Domenic", "Domenica", "Domenick", "Domenico", "Domingo", "Dominic", "Dominique", "Don", "Donald", "Donato", "Donavon", "Donna", "Donnell", "Donnie", "Donny", "Dora", "Dorcas", "Dorian", "Doris", "Dorothea", "Dorothy", "Dorris", "Dortha", "Dorthy", "Doug", "Douglas", "Dovie", "Doyle", "Drake", "Drew", "Duane", "Dudley", "Dulce", "Duncan", "Durward", "Dustin", "Dusty", "Dwight", "Dylan", "Earl", "Earlene", "Earline", "Earnest", "Earnestine", "Easter", "Easton", "Ebba", "Ebony", "Ed", "Eda", "Edd", "Eddie", "Eden", "Edgar", "Edgardo", "Edison", "Edmond", "Edmund", "Edna", "Eduardo", "Edward", "Edwardo", "Edwin", "Edwina", "Edyth", "Edythe", "Effie", "Efrain", "Efren", "Eileen", "Einar", "Eino", "Eladio", "Elaina", "Elbert", "Elda", "Eldon", "Eldora", "Eldred", "Eldridge", "Eleanora", "Eleanore", "Eleazar", "Electa", "Elena", "Elenor", "Elenora", "Eleonore", "Elfrieda", "Eli", "Elian", "Eliane", "Elias", "Eliezer", "Elijah", "Elinor", "Elinore", "Elisa", "Elisabeth", "Elise", "Eliseo", "Elisha", "Elissa", "Eliza", "Elizabeth", "Ella", "Ellen", "Ellie", "Elliot", "Elliott", "Ellis", "Ellsworth", "Elmer", "Elmira", "Elmo", "Elmore", "Elna", "Elnora", "Elody", "Eloisa", "Eloise", "Elouise", "Eloy", "Elroy", "Elsa", "Else", "Elsie", "Elta", "Elton", "Elva", "Elvera", "Elvie", "Elvis", "Elwin", "Elwyn", "Elyse", "Elyssa", "Elza", "Emanuel", "Emelia", "Emelie", "Emely", "Emerald", "Emerson", "Emery", "Emie", "Emil", "Emile", "Emilia", "Emiliano", "Emilie", "Emilio", "Emily", "Emma", "Emmalee", "Emmanuel", "Emmanuelle", "Emmet", "Emmett", "Emmie", "Emmitt", "Emmy", "Emory", "Ena", "Enid", "Enoch", "Enola", "Enos", "Enrico", "Enrique", "Ephraim", "Era", "Eriberto", "Eric", "Erica", "Erich", "Erick", "Ericka", "Erik", "Erika", "Erin", "Erling", "Erna", "Ernest", "Ernestina", "Ernestine", "Ernesto", "Ernie", "Ervin", "Erwin", "Eryn", "Esmeralda", "Esperanza", "Esta", "Esteban", "Estefania", "Estel", "Estell", "Estella", "Estelle", "Estevan", "Esther", "Estrella", "Etha", "Ethan", "Ethel", "Ethelyn", "Ethyl", "Ettie", "Eudora", "Eugene", "Eugenia", "Eula", "Eulah", "Eulalia", "Euna", "Eunice", "Eusebio", "Eva", "Evalyn", "Evan", "Evangeline", "Evans", "Eve", "Eveline", "Evelyn", "Everardo", "Everett", "Everette", "Evert", "Evie", "Ewald", "Ewell", "Ezekiel", "Ezequiel", "Ezra", "Fabian", "Fabiola", "Fae", "Fannie", "Fanny", "Fatima", "Faustino", "Fausto", "Favian", "Fay", "Faye", "Federico", "Felicia", "Felicita", "Felicity", "Felipa", "Felipe", "Felix", "Felton", "Fermin", "Fern", "Fernando", "Ferne", "Fidel", "Filiberto", "Filomena", "Finn", "Fiona", "Flavie", "Flavio", "Fleta", "Fletcher", "Flo", "Florence", "Florencio", "Florian", "Florida", "Florine", "Flossie", "Floy", "Floyd", "Ford", "Forest", "Forrest", "Foster", "Frances", "Francesca", "Francesco", "Francis", "Francisca", "Francisco", "Franco", "Frank", "Frankie", "Franz", "Fred", "Freda", "Freddie", "Freddy", "Frederic", "Frederick", "Frederik", "Frederique", "Fredrick", "Fredy", "Freeda", "Freeman", "Freida", "Frida", "Frieda", "Friedrich", "Fritz", "Furman", "Gabe", "Gabriel", "Gabriella", "Gabrielle", "Gaetano", "Gage", "Gail", "Gardner", "Garett", "Garfield", "Garland", "Garnet", "Garnett", "Garret", "Garrett", "Garrick", "Garrison", "Garry", "Garth", "Gaston", "Gavin", "Gay", "Gayle", "Gaylord", "Gene", "General", "Genesis", "Genevieve", "Gennaro", "Genoveva", "Geo", "Geoffrey", "George", "Georgette", "Georgiana", "Georgianna", "Geovanni", "Geovanny", "Geovany", "Gerald", "Geraldine", "Gerard", "Gerardo", "Gerda", "Gerhard", "Germaine", "German", "Gerry", "Gerson", "Gertrude", "Gia", "Gianni", "Gideon", "Gilbert", "Gilberto", "Gilda", "Giles", "Gillian", "Gina", "Gino", "Giovani", "Giovanna", "Giovanni", "Giovanny", "Gisselle", "Giuseppe", "Gladyce", "Gladys", "Glen", "Glenda", "Glenna", "Glennie", "Gloria", "Godfrey", "Golda", "Golden", "Gonzalo", "Gordon", "Grace", "Gracie", "Graciela", "Grady", "Graham", "Grant", "Granville", "Grayce", "Grayson", "Green", "Greg", "Gregg", "Gregoria", "Gregorio", "Gregory", "Greta", "Gretchen", "Greyson", "Griffin", "Grover", "Guadalupe", "Gudrun", "Guido", "Guillermo", "Guiseppe", "Gunnar", "Gunner", "Gus", "Gussie", "Gust", "Gustave", "Guy", "Gwen", "Gwendolyn", "Hadley", "Hailee", "Hailey", "Hailie", "Hal", "Haleigh", "Haley", "Halie", "Halle", "Hallie", "Hank", "Hanna", "Hannah", "Hans", "Hardy", "Harley", "Harmon", "Harmony", "Harold", "Harrison", "Harry", "Harvey", "Haskell", "Hassan", "Hassie", "Hattie", "Haven", "Hayden", "Haylee", "Hayley", "Haylie", "Hazel", "Hazle", "Heath", "Heather", "Heaven", "Heber", "Hector", "Heidi", "Helen", "Helena", "Helene", "Helga", "Hellen", "Helmer", "Heloise", "Henderson", "Henri", "Henriette", "Henry", "Herbert", "Herman", "Hermann", "Hermina", "Herminia", "Herminio", "Hershel", "Herta", "Hertha", "Hester", "Hettie", "Hilario", "Hilbert", "Hilda", "Hildegard", "Hillard", "Hillary", "Hilma", "Hilton", "Hipolito", "Hiram", "Hobart", "Holden", "Hollie", "Hollis", "Holly", "Hope", "Horace", "Horacio", "Hortense", "Hosea", "Houston", "Howard", "Howell", "Hoyt", "Hubert", "Hudson", "Hugh", "Hulda", "Humberto", "Hunter", "Hyman", "Ian", "Ibrahim", "Icie", "Ida", "Idell", "Idella", "Ignacio", "Ignatius", "Ike", "Ila", "Ilene", "Iliana", "Ima", "Imani", "Imelda", "Immanuel", "Imogene", "Ines", "Irma", "Irving", "Irwin", "Isaac", "Isabel", "Isabell", "Isabella", "Isabelle", "Isac", "Isadore", "Isai", "Isaiah", "Isaias", "Isidro", "Ismael", "Isobel", "Isom", "Israel", "Issac", "Itzel", "Iva", "Ivah", "Ivory", "Ivy", "Izabella", "Izaiah", "Jabari", "Jace", "Jacey", "Jacinthe", "Jacinto", "Jack", "Jackeline", "Jackie", "Jacklyn", "Jackson", "Jacky", "Jaclyn", "Jacquelyn", "Jacques", "Jacynthe", "Jada", "Jade", "Jaden", "Jadon", "Jadyn", "Jaeden", "Jaida", "Jaiden", "Jailyn", "Jaime", "Jairo", "Jakayla", "Jake", "Jakob", "Jaleel", "Jalen", "Jalon", "Jalyn", "Jamaal", "Jamal", "Jamar", "Jamarcus", "Jamel", "Jameson", "Jamey", "Jamie", "Jamil", "Jamir", "Jamison", "Jammie", "Jan", "Jana", "Janae", "Jane", "Janelle", "Janessa", "Janet", "Janice", "Janick", "Janie", "Janis", "Janiya", "Jannie", "Jany", "Jaquan", "Jaquelin", "Jaqueline", "Jared", "Jaren", "Jarod", "Jaron", "Jarred", "Jarrell", "Jarret", "Jarrett", "Jarrod", "Jarvis", "Jasen", "Jasmin", "Jason", "Jasper", "Jaunita", "Javier", "Javon", "Javonte", "Jay", "Jayce", "Jaycee", "Jayda", "Jayde", "Jayden", "Jaydon", "Jaylan", "Jaylen", "Jaylin", "Jaylon", "Jayme", "Jayne", "Jayson", "Jazlyn", "Jazmin", "Jazmyn", "Jazmyne", "Jean", "Jeanette", "Jeanie", "Jeanne", "Jed", "Jedediah", "Jedidiah", "Jeff", "Jefferey", "Jeffery", "Jeffrey", "Jeffry", "Jena", "Jenifer", "Jennie", "Jennifer", "Jennings", "Jennyfer", "Jensen", "Jerad", "Jerald", "Jeramie", "Jeramy", "Jerel", "Jeremie", "Jeremy", "Jermain", "Jermaine", "Jermey", "Jerod", "Jerome", "Jeromy", "Jerrell", "Jerrod", "Jerrold", "Jerry", "Jess", "Jesse", "Jessica", "Jessie", "Jessika", "Jessy", "Jessyca", "Jesus", "Jett", "Jettie", "Jevon", "Jewel", "Jewell", "Jillian", "Jimmie", "Jimmy", "Jo", "Joan", "Joana", "Joanie", "Joanne", "Joannie", "Joanny", "Joany", "Joaquin", "Jocelyn", "Jodie", "Jody", "Joe", "Joel", "Joelle", "Joesph", "Joey", "Johan", "Johann", "Johanna", "Johathan", "John", "Johnathan", "Johnathon", "Johnnie", "Johnny", "Johnpaul", "Johnson", "Jolie", "Jon", "Jonas", "Jonatan", "Jonathan", "Jonathon", "Jordan", "Jordane", "Jordi", "Jordon", "Jordy", "Jordyn", "Jorge", "Jose", "Josefa", "Josefina", "Joseph", "Josephine", "Josh", "Joshua", "Joshuah", "Josiah", "Josiane", "Josianne", "Josie", "Josue", "Jovan", "Jovani", "Jovanny", "Jovany", "Joy", "Joyce", "Juana", "Juanita", "Judah", "Judd", "Jude", "Judge", "Judson", "Judy", "Jules", "Julia", "Julian", "Juliana", "Julianne", "Julie", "Julien", "Juliet", "Julio", "Julius", "June", "Junior", "Junius", "Justen", "Justice", "Justina", "Justine", "Juston", "Justus", "Justyn", "Juvenal", "Juwan", "Kacey", "Kaci", "Kacie", "Kade", "Kaden", "Kadin", "Kaela", "Kaelyn", "Kaia", "Kailee", "Kailey", "Kailyn", "Kaitlin", "Kaitlyn", "Kale", "Kaleb", "Kaleigh", "Kaley", "Kali", "Kallie", "Kameron", "Kamille", "Kamren", "Kamron", "Kamryn", "Kane", "Kara", "Kareem", "Karelle", "Karen", "Kari", "Kariane", "Karianne", "Karina", "Karine", "Karl", "Karlee", "Karley", "Karli", "Karlie", "Karolann", "Karson", "Kasandra", "Kasey", "Kassandra", "Katarina", "Katelin", "Katelyn", "Katelynn", "Katharina", "Katherine", "Katheryn", "Kathleen", "Kathlyn", "Kathryn", "Kathryne", "Katlyn", "Katlynn", "Katrina", "Katrine", "Kattie", "Kavon", "Kay", "Kaya", "Kaycee", "Kayden", "Kayla", "Kaylah", "Kaylee", "Kayleigh", "Kayley", "Kayli", "Kaylie", "Kaylin", "Keagan", "Keanu", "Keara", "Keaton", "Keegan", "Keeley", "Keely", "Keenan", "Keira", "Keith", "Kellen", "Kelley", "Kelli", "Kellie", "Kelly", "Kelsi", "Kelsie", "Kelton", "Kelvin", "Ken", "Kendall", "Kendra", "Kendrick", "Kenna", "Kennedi", "Kennedy", "Kenneth", "Kennith", "Kenny", "Kenton", "Kenya", "Kenyatta", "Kenyon", "Keon", "Keshaun", "Keshawn", "Keven", "Kevin", "Kevon", "Keyon", "Keyshawn", "Khalid", "Khalil", "Kian", "Kiana", "Kianna", "Kiara", "Kiarra", "Kiel", "Kiera", "Kieran", "Kiley", "Kim", "Kimberly", "King", "Kip", "Kira", "Kirk", "Kirsten", "Kirstin", "Kitty", "Kobe", "Koby", "Kody", "Kolby", "Kole", "Korbin", "Korey", "Kory", "Kraig", "Kris", "Krista", "Kristian", "Kristin", "Kristina", "Kristofer", "Kristoffer", "Kristopher", "Kristy", "Krystal", "Krystel", "Krystina", "Kurt", "Kurtis", "Kyla", "Kyle", "Kylee", "Kyleigh", "Kyler", "Kylie", "Kyra", "Lacey", "Lacy", "Ladarius", "Lafayette", "Laila", "Laisha", "Lamar", "Lambert", "Lamont", "Lance", "Landen", "Lane", "Laney", "Larissa", "Laron", "Larry", "Larue", "Laura", "Laurel", "Lauren", "Laurence", "Lauretta", "Lauriane", "Laurianne", "Laurie", "Laurine", "Laury", "Lauryn", "Lavada", "Lavern", "Laverna", "Laverne", "Lavina", "Lavinia", "Lavon", "Lavonne", "Lawrence", "Lawson", "Layla", "Layne", "Lazaro", "Lea", "Leann", "Leanna", "Leanne", "Leatha", "Leda", "Lee", "Leif", "Leila", "Leilani", "Lela", "Lelah", "Leland", "Lelia", "Lempi", "Lemuel", "Lenna", "Lennie", "Lenny", "Lenora", "Lenore", "Leo", "Leola", "Leon", "Leonard", "Leonardo", "Leone", "Leonel", "Leonie", "Leonor", "Leonora", "Leopold", "Leopoldo", "Leora", "Lera", "Lesley", "Leslie", "Lesly", "Lessie", "Lester", "Leta", "Letha", "Letitia", "Levi", "Lew", "Lewis", "Lexi", "Lexie", "Lexus", "Lia", "Liam", "Liana", "Libbie", "Libby", "Lila", "Lilian", "Liliana", "Liliane", "Lilla", "Lillian", "Lilliana", "Lillie", "Lilly", "Lily", "Lilyan", "Lina", "Lincoln", "Linda", "Lindsay", "Lindsey", "Linnea", "Linnie", "Linwood", "Lionel", "Lisa", "Lisandro", "Lisette", "Litzy", "Liza", "Lizeth", "Lizzie", "Llewellyn", "Lloyd", "Logan", "Lois", "Lola", "Lolita", "Loma", "Lon", "London", "Lonie", "Lonnie", "Lonny", "Lonzo", "Lora", "Loraine", "Loren", "Lorena", "Lorenz", "Lorenza", "Lorenzo", "Lori", "Lorine", "Lorna", "Lottie", "Lou", "Louie", "Louisa", "Lourdes", "Louvenia", "Lowell", "Loy", "Loyal", "Loyce", "Lucas", "Luciano", "Lucie", "Lucienne", "Lucile", "Lucinda", "Lucio", "Lucious", "Lucius", "Lucy", "Ludie", "Ludwig", "Lue", "Luella", "Luigi", "Luis", "Luisa", "Lukas", "Lula", "Lulu", "Luna", "Lupe", "Lura", "Lurline", "Luther", "Luz", "Lyda", "Lydia", "Lyla", "Lynn", "Lyric", "Lysanne", "Mabel", "Mabelle", "Mable", "Mac", "Macey", "Maci", "Macie", "Mack", "Mackenzie", "Macy", "Madaline", "Madalyn", "Maddison", "Madeline", "Madelyn", "Madelynn", "Madge", "Madie", "Madilyn", "Madisen", "Madison", "Madisyn", "Madonna", "Madyson", "Mae", "Maegan", "Maeve", "Mafalda", "Magali", "Magdalen", "Magdalena", "Maggie", "Magnolia", "Magnus", "Maia", "Maida", "Maiya", "Major", "Makayla", "Makenna", "Makenzie", "Malachi", "Malcolm", "Malika", "Malinda", "Mallie", "Mallory", "Malvina", "Mandy", "Manley", "Manuel", "Manuela", "Mara", "Marc", "Marcel", "Marcelina", "Marcelino", "Marcella", "Marcelle", "Marcellus", "Marcelo", "Marcia", "Marco", "Marcos", "Marcus", "Margaret", "Margarete", "Margarett", "Margaretta", "Margarette", "Margarita", "Marge", "Margie", "Margot", "Margret", "Marguerite", "Maria", "Mariah", "Mariam", "Marian", "Mariana", "Mariane", "Marianna", "Marianne", "Mariano", "Maribel", "Marie", "Mariela", "Marielle", "Marietta", "Marilie", "Marilou", "Marilyne", "Marina", "Mario", "Marion", "Marisa", "Marisol", "Maritza", "Marjolaine", "Marjorie", "Marjory", "Mark", "Markus", "Marlee", "Marlen", "Marlene", "Marley", "Marlin", "Marlon", "Marques", "Marquis", "Marquise", "Marshall", "Marta", "Martin", "Martina", "Martine", "Marty", "Marvin", "Mary", "Maryam", "Maryjane", "Maryse", "Mason", "Mateo", "Mathew", "Mathias", "Mathilde", "Matilda", "Matilde", "Matt", "Matteo", "Mattie", "Maud", "Maude", "Maudie", "Maureen", "Maurice", "Mauricio", "Maurine", "Maverick", "Mavis", "Max", "Maxie", "Maxime", "Maximilian", "Maximillia", "Maximillian", "Maximo", "Maximus", "Maxine", "Maxwell", "May", "Maya", "Maybell", "Maybelle", "Maye", "Maymie", "Maynard", "Mayra", "Mazie", "Mckayla", "Mckenna", "Mckenzie", "Meagan", "Meaghan", "Meda", "Megane", "Meggie", "Meghan", "Mekhi", "Melany", "Melba", "Melisa", "Melissa", "Mellie", "Melody", "Melvin", "Melvina", "Melyna", "Melyssa", "Mercedes", "Meredith", "Merl", "Merle", "Merlin", "Merritt", "Mertie", "Mervin", "Meta", "Mia", "Micaela", "Micah", "Michael", "Michaela", "Michale", "Micheal", "Michel", "Michele", "Michelle", "Miguel", "Mikayla", "Mike", "Mikel", "Milan", "Miles", "Milford", "Miller", "Millie", "Milo", "Milton", "Mina", "Minerva", "Minnie", "Miracle", "Mireille", "Mireya", "Misael", "Missouri", "Misty", "Mitchel", "Mitchell", "Mittie", "Modesta", "Modesto", "Mohamed", "Mohammad", "Mohammed", "Moises", "Mollie", "Molly", "Mona", "Monica", "Monique", "Monroe", "Monserrat", "Monserrate", "Montana", "Monte", "Monty", "Morgan", "Moriah", "Morris", "Mortimer", "Morton", "Mose", "Moses", "Moshe", "Mossie", "Mozell", "Mozelle", "Muhammad", "Muriel", "Murl", "Murphy", "Murray", "Mustafa", "Mya", "Myah", "Mylene", "Myles", "Myra", "Myriam", "Myrl", "Myrna", "Myron", "Myrtice", "Myrtie", "Myrtis", "Myrtle", "Nadia", "Nakia", "Name", "Nannie", "Naomi", "Naomie", "Napoleon", "Narciso", "Nash", "Nasir", "Nat", "Natalia", "Natalie", "Natasha", "Nathan", "Nathanael", "Nathanial", "Nathaniel", "Nathen", "Nayeli", "Neal", "Ned", "Nedra", "Neha", "Neil", "Nelda", "Nella", "Nelle", "Nellie", "Nels", "Nelson", "Neoma", "Nestor", "Nettie", "Neva", "Newell", "Newton", "Nia", "Nicholas", "Nicholaus", "Nichole", "Nick", "Nicklaus", "Nickolas", "Nico", "Nicola", "Nicolas", "Nicole", "Nicolette", "Nigel", "Nikita", "Nikki", "Nikko", "Niko", "Nikolas", "Nils", "Nina", "Noah", "Noble", "Noe", "Noel", "Noelia", "Noemi", "Noemie", "Noemy", "Nola", "Nolan", "Nona", "Nora", "Norbert", "Norberto", "Norene", "Norma", "Norris", "Norval", "Norwood", "Nova", "Novella", "Nya", "Nyah", "Nyasia", "Obie", "Oceane", "Ocie", "Octavia", "Oda", "Odell", "Odessa", "Odie", "Ofelia", "Okey", "Ola", "Olaf", "Ole", "Olen", "Oleta", "Olga", "Olin", "Oliver", "Ollie", "Oma", "Omari", "Omer", "Ona", "Onie", "Opal", "Ophelia", "Ora", "Oral", "Oran", "Oren", "Orie", "Orin", "Orion", "Orland", "Orlando", "Orlo", "Orpha", "Orrin", "Orval", "Orville", "Osbaldo", "Osborne", "Oscar", "Osvaldo", "Oswald", "Oswaldo", "Otha", "Otho", "Otilia", "Otis", "Ottilie", "Ottis", "Otto", "Ova", "Owen", "Ozella", "Pablo", "Paige", "Palma", "Pamela", "Pansy", "Paolo", "Paris", "Parker", "Pascale", "Pasquale", "Pat", "Patience", "Patricia", "Patrick", "Patsy", "Pattie", "Paul", "Paula", "Pauline", "Paxton", "Payton", "Pearl", "Pearlie", "Pearline", "Pedro", "Peggie", "Penelope", "Percival", "Percy", "Perry", "Pete", "Peter", "Petra", "Peyton", "Philip", "Phoebe", "Phyllis", "Pierce", "Pierre", "Pietro", "Pink", "Pinkie", "Piper", "Polly", "Porter", "Precious", "Presley", "Preston", "Price", "Prince", "Princess", "Priscilla", "Providenci", "Prudence", "Queen", "Queenie", "Quentin", "Quincy", "Quinn", "Quinten", "Quinton", "Rachael", "Rachel", "Rachelle", "Rae", "Raegan", "Rafael", "Rafaela", "Raheem", "Rahsaan", "Rahul", "Raina", "Raleigh", "Ralph", "Ramiro", "Ramon", "Ramona", "Randal", "Randall", "Randi", "Randy", "Ransom", "Raoul", "Raphael", "Raphaelle", "Raquel", "Rashad", "Rashawn", "Rasheed", "Raul", "Raven", "Ray", "Raymond", "Raymundo", "Reagan", "Reanna", "Reba", "Rebeca", "Rebecca", "Rebeka", "Rebekah", "Reece", "Reed", "Reese", "Regan", "Reggie", "Reginald", "Reid", "Reilly", "Reina", "Reinhold", "Remington", "Rene", "Renee", "Ressie", "Reta", "Retha", "Retta", "Reuben", "Reva", "Rex", "Rey", "Reyes", "Reymundo", "Reyna", "Reynold", "Rhea", "Rhett", "Rhianna", "Rhiannon", "Rhoda", "Ricardo", "Richard", "Richie", "Richmond", "Rick", "Rickey", "Rickie", "Ricky", "Rico", "Rigoberto", "Riley", "Rita", "River", "Robb", "Robbie", "Robert", "Roberta", "Roberto", "Robin", "Robyn", "Rocio", "Rocky", "Rod", "Roderick", "Rodger", "Rodolfo", "Rodrick", "Rodrigo", "Roel", "Rogelio", "Roger", "Rogers", "Rolando", "Rollin", "Roma", "Romaine", "Roman", "Ron", "Ronaldo", "Ronny", "Roosevelt", "Rory", "Rosa", "Rosalee", "Rosalia", "Rosalind", "Rosalinda", "Rosalyn", "Rosamond", "Rosanna", "Rosario", "Roscoe", "Rose", "Rosella", "Roselyn", "Rosemarie", "Rosemary", "Rosendo", "Rosetta", "Rosie", "Rosina", "Roslyn", "Ross", "Rossie", "Rowan", "Rowena", "Rowland", "Roxane", "Roxanne", "Roy", "Royal", "Royce", "Rozella", "Ruben", "Rubie", "Ruby", "Rubye", "Rudolph", "Rudy", "Rupert", "Russ", "Russel", "Russell", "Rusty", "Ruth", "Ruthe", "Ruthie", "Ryan", "Ryann", "Ryder", "Rylan", "Rylee", "Ryleigh", "Ryley", "Sabina", "Sabrina", "Sabryna", "Sadie", "Sadye", "Sage", "Saige", "Sallie", "Sally", "Salma", "Salvador", "Salvatore", "Sam", "Samanta", "Samantha", "Samara", "Samir", "Sammie", "Sammy", "Samson", "Sandra", "Sandrine", "Sandy", "Sanford", "Santa", "Santiago", "Santina", "Santino", "Santos", "Sarah", "Sarai", "Sarina", "Sasha", "Saul", "Savanah", "Savanna", "Savannah", "Savion", "Scarlett", "Schuyler", "Scot", "Scottie", "Scotty", "Seamus", "Sean", "Sebastian", "Sedrick", "Selena", "Selina", "Selmer", "Serena", "Serenity", "Seth", "Shad", "Shaina", "Shakira", "Shana", "Shane", "Shanel", "Shanelle", "Shania", "Shanie", "Shaniya", "Shanna", "Shannon", "Shanny", "Shanon", "Shany", "Sharon", "Shaun", "Shawn", "Shawna", "Shaylee", "Shayna", "Shayne", "Shea", "Sheila", "Sheldon", "Shemar", "Sheridan", "Sherman", "Sherwood", "Shirley", "Shyann", "Shyanne", "Sibyl", "Sid", "Sidney", "Sienna", "Sierra", "Sigmund", "Sigrid", "Sigurd", "Silas", "Sim", "Simeon", "Simone", "Sincere", "Sister", "Skye", "Skyla", "Skylar", "Sofia", "Soledad", "Solon", "Sonia", "Sonny", "Sonya", "Sophia", "Sophie", "Spencer", "Stacey", "Stacy", "Stan", "Stanford", "Stanley", "Stanton", "Stefan", "Stefanie", "Stella", "Stephan", "Stephania", "Stephanie", "Stephany", "Stephen", "Stephon", "Sterling", "Steve", "Stevie", "Stewart", "Stone", "Stuart", "Summer", "Sunny", "Susan", "Susana", "Susanna", "Susie", "Suzanne", "Sven", "Syble", "Sydnee", "Sydney", "Sydni", "Sydnie", "Sylvan", "Sylvester", "Sylvia", "Tabitha", "Tad", "Talia", "Talon", "Tamara", "Tamia", "Tania", "Tanner", "Tanya", "Tara", "Taryn", "Tate", "Tatum", "Tatyana", "Taurean", "Tavares", "Taya", "Taylor", "Teagan", "Ted", "Telly", "Terence", "Teresa", "Terrance", "Terrell", "Terrence", "Terrill", "Terry", "Tess", "Tessie", "Tevin", "Thad", "Thaddeus", "Thalia", "Thea", "Thelma", "Theo", "Theodora", "Theodore", "Theresa", "Therese", "Theresia", "Theron", "Thomas", "Thora", "Thurman", "Tia", "Tiana", "Tianna", "Tiara", "Tierra", "Tiffany", "Tillman", "Timmothy", "Timmy", "Timothy", "Tina", "Tito", "Titus", "Tobin", "Toby", "Tod", "Tom", "Tomas", "Tomasa", "Tommie", "Toney", "Toni", "Tony", "Torey", "Torrance", "Torrey", "Toy", "Trace", "Tracey", "Tracy", "Travis", "Travon", "Tre", "Tremaine", "Tremayne", "Trent", "Trenton", "Tressa", "Tressie", "Treva", "Trever", "Trevion", "Trevor", "Trey", "Trinity", "Trisha", "Tristian", "Tristin", "Triston", "Troy", "Trudie", "Trycia", "Trystan", "Turner", "Twila", "Tyler", "Tyra", "Tyree", "Tyreek", "Tyrel", "Tyrell", "Tyrese", "Tyrique", "Tyshawn", "Tyson", "Ubaldo", "Ulices", "Ulises", "Una", "Unique", "Urban", "Uriah", "Uriel", "Ursula", "Vada", "Valentin", "Valentina", "Valentine", "Valerie", "Vallie", "Van", "Vance", "Vanessa", "Vaughn", "Veda", "Velda", "Vella", "Velma", "Velva", "Vena", "Verda", "Verdie", "Vergie", "Verla", "Verlie", "Vern", "Verna", "Verner", "Vernice", "Vernie", "Vernon", "Verona", "Veronica", "Vesta", "Vicenta", "Vicente", "Vickie", "Vicky", "Victor", "Victoria", "Vida", "Vidal", "Vilma", "Vince", "Vincent", "Vincenza", "Vincenzo", "Vinnie", "Viola", "Violet", "Violette", "Virgie", "Virgil", "Virginia", "Virginie", "Vita", "Vito", "Viva", "Vivian", "Viviane", "Vivianne", "Vivien", "Vivienne", "Vladimir", "Wade", "Waino", "Waldo", "Walker", "Wallace", "Walter", "Walton", "Wanda", "Ward", "Warren", "Watson", "Wava", "Waylon", "Wayne", "Webster", "Weldon", "Wellington", "Wendell", "Wendy", "Werner", "Westley", "Weston", "Whitney", "Wilber", "Wilbert", "Wilburn", "Wiley", "Wilford", "Wilfred", "Wilfredo", "Wilfrid", "Wilhelm", "Wilhelmine", "Will", "Willa", "Willard", "William", "Willie", "Willis", "Willow", "Willy", "Wilma", "Wilmer", "Wilson", "Wilton", "Winfield", "Winifred", "Winnifred", "Winona", "Winston", "Woodrow", "Wyatt", "Wyman", "Xander", "Xavier", "Xzavier", "Yadira", "Yasmeen", "Yasmin", "Yasmine", "Yazmin", "Yesenia", "Yessenia", "Yolanda", "Yoshiko", "Yvette", "Yvonne", "Zachariah", "Zachary", "Zachery", "Zack", "Zackary", "Zackery", "Zakary", "Zander", "Zane", "Zaria", "Zechariah", "Zelda", "Zella", "Zelma", "Zena", "Zetta", "Zion", "Zita", "Zoe", "Zoey", "Zoie", "Zoila", "Zola", "Zora", "Zula" ]; },{}],122:[function(require,module,exports){ var name = {}; module['exports'] = name; name.first_name = require("./first_name"); name.last_name = require("./last_name"); name.prefix = require("./prefix"); name.suffix = require("./suffix"); name.title = require("./title"); name.name = require("./name"); },{"./first_name":121,"./last_name":123,"./name":124,"./prefix":125,"./suffix":126,"./title":127}],123:[function(require,module,exports){ module["exports"] = [ "Abbott", "Abernathy", "Abshire", "Adams", "Altenwerth", "Anderson", "Ankunding", "Armstrong", "Auer", "Aufderhar", "Bahringer", "Bailey", "Balistreri", "Barrows", "Bartell", "Bartoletti", "Barton", "Bashirian", "Batz", "Bauch", "Baumbach", "Bayer", "Beahan", "Beatty", "Bechtelar", "Becker", "Bednar", "Beer", "Beier", "Berge", "Bergnaum", "Bergstrom", "Bernhard", "Bernier", "Bins", "Blanda", "Blick", "Block", "Bode", "Boehm", "Bogan", "Bogisich", "Borer", "Bosco", "Botsford", "Boyer", "Boyle", "Bradtke", "Brakus", "Braun", "Breitenberg", "Brekke", "Brown", "Bruen", "Buckridge", "Carroll", "Carter", "Cartwright", "Casper", "Cassin", "Champlin", "Christiansen", "Cole", "Collier", "Collins", "Conn", "Connelly", "Conroy", "Considine", "Corkery", "Cormier", "Corwin", "Cremin", "Crist", "Crona", "Cronin", "Crooks", "Cruickshank", "Cummerata", "Cummings", "Dach", "D'Amore", "Daniel", "Dare", "Daugherty", "Davis", "Deckow", "Denesik", "Dibbert", "Dickens", "Dicki", "Dickinson", "Dietrich", "Donnelly", "Dooley", "Douglas", "Doyle", "DuBuque", "Durgan", "Ebert", "Effertz", "Eichmann", "Emard", "Emmerich", "Erdman", "Ernser", "Fadel", "Fahey", "Farrell", "Fay", "Feeney", "Feest", "Feil", "Ferry", "Fisher", "Flatley", "Frami", "Franecki", "Friesen", "Fritsch", "Funk", "Gaylord", "Gerhold", "Gerlach", "Gibson", "Gislason", "Gleason", "Gleichner", "Glover", "Goldner", "Goodwin", "Gorczany", "Gottlieb", "Goyette", "Grady", "Graham", "Grant", "Green", "Greenfelder", "Greenholt", "Grimes", "Gulgowski", "Gusikowski", "Gutkowski", "Gutmann", "Haag", "Hackett", "Hagenes", "Hahn", "Haley", "Halvorson", "Hamill", "Hammes", "Hand", "Hane", "Hansen", "Harber", "Harris", "Hartmann", "Harvey", "Hauck", "Hayes", "Heaney", "Heathcote", "Hegmann", "Heidenreich", "Heller", "Herman", "Hermann", "Hermiston", "Herzog", "Hessel", "Hettinger", "Hickle", "Hilll", "Hills", "Hilpert", "Hintz", "Hirthe", "Hodkiewicz", "Hoeger", "Homenick", "Hoppe", "Howe", "Howell", "Hudson", "Huel", "Huels", "Hyatt", "Jacobi", "Jacobs", "Jacobson", "Jakubowski", "Jaskolski", "Jast", "Jenkins", "Jerde", "Johns", "Johnson", "Johnston", "Jones", "Kassulke", "Kautzer", "Keebler", "Keeling", "Kemmer", "Kerluke", "Kertzmann", "Kessler", "Kiehn", "Kihn", "Kilback", "King", "Kirlin", "Klein", "Kling", "Klocko", "Koch", "Koelpin", "Koepp", "Kohler", "Konopelski", "Koss", "Kovacek", "Kozey", "Krajcik", "Kreiger", "Kris", "Kshlerin", "Kub", "Kuhic", "Kuhlman", "Kuhn", "Kulas", "Kunde", "Kunze", "Kuphal", "Kutch", "Kuvalis", "Labadie", "Lakin", "Lang", "Langosh", "Langworth", "Larkin", "Larson", "Leannon", "Lebsack", "Ledner", "Leffler", "Legros", "Lehner", "Lemke", "Lesch", "Leuschke", "Lind", "Lindgren", "Littel", "Little", "Lockman", "Lowe", "Lubowitz", "Lueilwitz", "Luettgen", "Lynch", "Macejkovic", "MacGyver", "Maggio", "Mann", "Mante", "Marks", "Marquardt", "Marvin", "Mayer", "Mayert", "McClure", "McCullough", "McDermott", "McGlynn", "McKenzie", "McLaughlin", "Medhurst", "Mertz", "Metz", "Miller", "Mills", "Mitchell", "Moen", "Mohr", "Monahan", "Moore", "Morar", "Morissette", "Mosciski", "Mraz", "Mueller", "Muller", "Murazik", "Murphy", "Murray", "Nader", "Nicolas", "Nienow", "Nikolaus", "Nitzsche", "Nolan", "Oberbrunner", "O'Connell", "O'Conner", "O'Hara", "O'Keefe", "O'Kon", "Okuneva", "Olson", "Ondricka", "O'Reilly", "Orn", "Ortiz", "Osinski", "Pacocha", "Padberg", "Pagac", "Parisian", "Parker", "Paucek", "Pfannerstill", "Pfeffer", "Pollich", "Pouros", "Powlowski", "Predovic", "Price", "Prohaska", "Prosacco", "Purdy", "Quigley", "Quitzon", "Rath", "Ratke", "Rau", "Raynor", "Reichel", "Reichert", "Reilly", "Reinger", "Rempel", "Renner", "Reynolds", "Rice", "Rippin", "Ritchie", "Robel", "Roberts", "Rodriguez", "Rogahn", "Rohan", "Rolfson", "Romaguera", "Roob", "Rosenbaum", "Rowe", "Ruecker", "Runolfsdottir", "Runolfsson", "Runte", "Russel", "Rutherford", "Ryan", "Sanford", "Satterfield", "Sauer", "Sawayn", "Schaden", "Schaefer", "Schamberger", "Schiller", "Schimmel", "Schinner", "Schmeler", "Schmidt", "Schmitt", "Schneider", "Schoen", "Schowalter", "Schroeder", "Schulist", "Schultz", "Schumm", "Schuppe", "Schuster", "Senger", "Shanahan", "Shields", "Simonis", "Sipes", "Skiles", "Smith", "Smitham", "Spencer", "Spinka", "Sporer", "Stamm", "Stanton", "Stark", "Stehr", "Steuber", "Stiedemann", "Stokes", "Stoltenberg", "Stracke", "Streich", "Stroman", "Strosin", "Swaniawski", "Swift", "Terry", "Thiel", "Thompson", "Tillman", "Torp", "Torphy", "Towne", "Toy", "Trantow", "Tremblay", "Treutel", "Tromp", "Turcotte", "Turner", "Ullrich", "Upton", "Vandervort", "Veum", "Volkman", "Von", "VonRueden", "Waelchi", "Walker", "Walsh", "Walter", "Ward", "Waters", "Watsica", "Weber", "Wehner", "Weimann", "Weissnat", "Welch", "West", "White", "Wiegand", "Wilderman", "Wilkinson", "Will", "Williamson", "Willms", "Windler", "Wintheiser", "Wisoky", "Wisozk", "Witting", "Wiza", "Wolf", "Wolff", "Wuckert", "Wunsch", "Wyman", "Yost", "Yundt", "Zboncak", "Zemlak", "Ziemann", "Zieme", "Zulauf" ]; },{}],124:[function(require,module,exports){ module["exports"] = [ "#{prefix} #{first_name} #{last_name}", "#{first_name} #{last_name} #{suffix}", "#{first_name} #{last_name}", "#{first_name} #{last_name}", "#{first_name} #{last_name}", "#{first_name} #{last_name}" ]; },{}],125:[function(require,module,exports){ module["exports"] = [ "Mr.", "Mrs.", "Ms.", "Miss", "Dr." ]; },{}],126:[function(require,module,exports){ module["exports"] = [ "Jr.", "Sr.", "I", "II", "III", "IV", "V", "MD", "DDS", "PhD", "DVM" ]; },{}],127:[function(require,module,exports){ module["exports"] = { "descriptor": [ "Lead", "Senior", "Direct", "Corporate", "Dynamic", "Future", "Product", "National", "Regional", "District", "Central", "Global", "Customer", "Investor", "Dynamic", "International", "Legacy", "Forward", "Internal", "Human", "Chief", "Principal" ], "level": [ "Solutions", "Program", "Brand", "Security", "Research", "Marketing", "Directives", "Implementation", "Integration", "Functionality", "Response", "Paradigm", "Tactics", "Identity", "Markets", "Group", "Division", "Applications", "Optimization", "Operations", "Infrastructure", "Intranet", "Communications", "Web", "Branding", "Quality", "Assurance", "Mobility", "Accounts", "Data", "Creative", "Configuration", "Accountability", "Interactions", "Factors", "Usability", "Metrics" ], "job": [ "Supervisor", "Associate", "Executive", "Liason", "Officer", "Manager", "Engineer", "Specialist", "Director", "Coordinator", "Administrator", "Architect", "Analyst", "Designer", "Planner", "Orchestrator", "Technician", "Developer", "Producer", "Consultant", "Assistant", "Facilitator", "Agent", "Representative", "Strategist" ] }; },{}],128:[function(require,module,exports){ module["exports"] = [ "###-###-####", "(###) ###-####", "1-###-###-####", "###.###.####", "###-###-####", "(###) ###-####", "1-###-###-####", "###.###.####", "###-###-#### x###", "(###) ###-#### x###", "1-###-###-#### x###", "###.###.#### x###", "###-###-#### x####", "(###) ###-#### x####", "1-###-###-#### x####", "###.###.#### x####", "###-###-#### x#####", "(###) ###-#### x#####", "1-###-###-#### x#####", "###.###.#### x#####" ]; },{}],129:[function(require,module,exports){ var phone_number = {}; module['exports'] = phone_number; phone_number.formats = require("./formats"); },{"./formats":128}],130:[function(require,module,exports){ var system = {}; module['exports'] = system; system.mimeTypes = require("./mimeTypes"); },{"./mimeTypes":131}],131:[function(require,module,exports){ /* The MIT License (MIT) Copyright (c) 2014 Jonathan Ong me@jongleberry.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Definitions from mime-db v1.21.0 For updates check: https://github.com/jshttp/mime-db/blob/master/db.json */ module['exports'] = { "application/1d-interleaved-parityfec": { "source": "iana" }, "application/3gpdash-qoe-report+xml": { "source": "iana" }, "application/3gpp-ims+xml": { "source": "iana" }, "application/a2l": { "source": "iana" }, "application/activemessage": { "source": "iana" }, "application/alto-costmap+json": { "source": "iana", "compressible": true }, "application/alto-costmapfilter+json": { "source": "iana", "compressible": true }, "application/alto-directory+json": { "source": "iana", "compressible": true }, "application/alto-endpointcost+json": { "source": "iana", "compressible": true }, "application/alto-endpointcostparams+json": { "source": "iana", "compressible": true }, "application/alto-endpointprop+json": { "source": "iana", "compressible": true }, "application/alto-endpointpropparams+json": { "source": "iana", "compressible": true }, "application/alto-error+json": { "source": "iana", "compressible": true }, "application/alto-networkmap+json": { "source": "iana", "compressible": true }, "application/alto-networkmapfilter+json": { "source": "iana", "compressible": true }, "application/aml": { "source": "iana" }, "application/andrew-inset": { "source": "iana", "extensions": ["ez"] }, "application/applefile": { "source": "iana" }, "application/applixware": { "source": "apache", "extensions": ["aw"] }, "application/atf": { "source": "iana" }, "application/atfx": { "source": "iana" }, "application/atom+xml": { "source": "iana", "compressible": true, "extensions": ["atom"] }, "application/atomcat+xml": { "source": "iana", "extensions": ["atomcat"] }, "application/atomdeleted+xml": { "source": "iana" }, "application/atomicmail": { "source": "iana" }, "application/atomsvc+xml": { "source": "iana", "extensions": ["atomsvc"] }, "application/atxml": { "source": "iana" }, "application/auth-policy+xml": { "source": "iana" }, "application/bacnet-xdd+zip": { "source": "iana" }, "application/batch-smtp": { "source": "iana" }, "application/bdoc": { "compressible": false, "extensions": ["bdoc"] }, "application/beep+xml": { "source": "iana" }, "application/calendar+json": { "source": "iana", "compressible": true }, "application/calendar+xml": { "source": "iana" }, "application/call-completion": { "source": "iana" }, "application/cals-1840": { "source": "iana" }, "application/cbor": { "source": "iana" }, "application/ccmp+xml": { "source": "iana" }, "application/ccxml+xml": { "source": "iana", "extensions": ["ccxml"] }, "application/cdfx+xml": { "source": "iana" }, "application/cdmi-capability": { "source": "iana", "extensions": ["cdmia"] }, "application/cdmi-container": { "source": "iana", "extensions": ["cdmic"] }, "application/cdmi-domain": { "source": "iana", "extensions": ["cdmid"] }, "application/cdmi-object": { "source": "iana", "extensions": ["cdmio"] }, "application/cdmi-queue": { "source": "iana", "extensions": ["cdmiq"] }, "application/cdni": { "source": "iana" }, "application/cea": { "source": "iana" }, "application/cea-2018+xml": { "source": "iana" }, "application/cellml+xml": { "source": "iana" }, "application/cfw": { "source": "iana" }, "application/cms": { "source": "iana" }, "application/cnrp+xml": { "source": "iana" }, "application/coap-group+json": { "source": "iana", "compressible": true }, "application/commonground": { "source": "iana" }, "application/conference-info+xml": { "source": "iana" }, "application/cpl+xml": { "source": "iana" }, "application/csrattrs": { "source": "iana" }, "application/csta+xml": { "source": "iana" }, "application/cstadata+xml": { "source": "iana" }, "application/csvm+json": { "source": "iana", "compressible": true }, "application/cu-seeme": { "source": "apache", "extensions": ["cu"] }, "application/cybercash": { "source": "iana" }, "application/dart": { "compressible": true }, "application/dash+xml": { "source": "iana", "extensions": ["mdp"] }, "application/dashdelta": { "source": "iana" }, "application/davmount+xml": { "source": "iana", "extensions": ["davmount"] }, "application/dca-rft": { "source": "iana" }, "application/dcd": { "source": "iana" }, "application/dec-dx": { "source": "iana" }, "application/dialog-info+xml": { "source": "iana" }, "application/dicom": { "source": "iana" }, "application/dii": { "source": "iana" }, "application/dit": { "source": "iana" }, "application/dns": { "source": "iana" }, "application/docbook+xml": { "source": "apache", "extensions": ["dbk"] }, "application/dskpp+xml": { "source": "iana" }, "application/dssc+der": { "source": "iana", "extensions": ["dssc"] }, "application/dssc+xml": { "source": "iana", "extensions": ["xdssc"] }, "application/dvcs": { "source": "iana" }, "application/ecmascript": { "source": "iana", "compressible": true, "extensions": ["ecma"] }, "application/edi-consent": { "source": "iana" }, "application/edi-x12": { "source": "iana", "compressible": false }, "application/edifact": { "source": "iana", "compressible": false }, "application/emergencycalldata.comment+xml": { "source": "iana" }, "application/emergencycalldata.deviceinfo+xml": { "source": "iana" }, "application/emergencycalldata.providerinfo+xml": { "source": "iana" }, "application/emergencycalldata.serviceinfo+xml": { "source": "iana" }, "application/emergencycalldata.subscriberinfo+xml": { "source": "iana" }, "application/emma+xml": { "source": "iana", "extensions": ["emma"] }, "application/emotionml+xml": { "source": "iana" }, "application/encaprtp": { "source": "iana" }, "application/epp+xml": { "source": "iana" }, "application/epub+zip": { "source": "iana", "extensions": ["epub"] }, "application/eshop": { "source": "iana" }, "application/exi": { "source": "iana", "extensions": ["exi"] }, "application/fastinfoset": { "source": "iana" }, "application/fastsoap": { "source": "iana" }, "application/fdt+xml": { "source": "iana" }, "application/fits": { "source": "iana" }, "application/font-sfnt": { "source": "iana" }, "application/font-tdpfr": { "source": "iana", "extensions": ["pfr"] }, "application/font-woff": { "source": "iana", "compressible": false, "extensions": ["woff"] }, "application/font-woff2": { "compressible": false, "extensions": ["woff2"] }, "application/framework-attributes+xml": { "source": "iana" }, "application/gml+xml": { "source": "apache", "extensions": ["gml"] }, "application/gpx+xml": { "source": "apache", "extensions": ["gpx"] }, "application/gxf": { "source": "apache", "extensions": ["gxf"] }, "application/gzip": { "source": "iana", "compressible": false }, "application/h224": { "source": "iana" }, "application/held+xml": { "source": "iana" }, "application/http": { "source": "iana" }, "application/hyperstudio": { "source": "iana", "extensions": ["stk"] }, "application/ibe-key-request+xml": { "source": "iana" }, "application/ibe-pkg-reply+xml": { "source": "iana" }, "application/ibe-pp-data": { "source": "iana" }, "application/iges": { "source": "iana" }, "application/im-iscomposing+xml": { "source": "iana" }, "application/index": { "source": "iana" }, "application/index.cmd": { "source": "iana" }, "application/index.obj": { "source": "iana" }, "application/index.response": { "source": "iana" }, "application/index.vnd": { "source": "iana" }, "application/inkml+xml": { "source": "iana", "extensions": ["ink","inkml"] }, "application/iotp": { "source": "iana" }, "application/ipfix": { "source": "iana", "extensions": ["ipfix"] }, "application/ipp": { "source": "iana" }, "application/isup": { "source": "iana" }, "application/its+xml": { "source": "iana" }, "application/java-archive": { "source": "apache", "compressible": false, "extensions": ["jar","war","ear"] }, "application/java-serialized-object": { "source": "apache", "compressible": false, "extensions": ["ser"] }, "application/java-vm": { "source": "apache", "compressible": false, "extensions": ["class"] }, "application/javascript": { "source": "iana", "charset": "UTF-8", "compressible": true, "extensions": ["js"] }, "application/jose": { "source": "iana" }, "application/jose+json": { "source": "iana", "compressible": true }, "application/jrd+json": { "source": "iana", "compressible": true }, "application/json": { "source": "iana", "charset": "UTF-8", "compressible": true, "extensions": ["json","map"] }, "application/json-patch+json": { "source": "iana", "compressible": true }, "application/json-seq": { "source": "iana" }, "application/json5": { "extensions": ["json5"] }, "application/jsonml+json": { "source": "apache", "compressible": true, "extensions": ["jsonml"] }, "application/jwk+json": { "source": "iana", "compressible": true }, "application/jwk-set+json": { "source": "iana", "compressible": true }, "application/jwt": { "source": "iana" }, "application/kpml-request+xml": { "source": "iana" }, "application/kpml-response+xml": { "source": "iana" }, "application/ld+json": { "source": "iana", "compressible": true, "extensions": ["jsonld"] }, "application/link-format": { "source": "iana" }, "application/load-control+xml": { "source": "iana" }, "application/lost+xml": { "source": "iana", "extensions": ["lostxml"] }, "application/lostsync+xml": { "source": "iana" }, "application/lxf": { "source": "iana" }, "application/mac-binhex40": { "source": "iana", "extensions": ["hqx"] }, "application/mac-compactpro": { "source": "apache", "extensions": ["cpt"] }, "application/macwriteii": { "source": "iana" }, "application/mads+xml": { "source": "iana", "extensions": ["mads"] }, "application/manifest+json": { "charset": "UTF-8", "compressible": true, "extensions": ["webmanifest"] }, "application/marc": { "source": "iana", "extensions": ["mrc"] }, "application/marcxml+xml": { "source": "iana", "extensions": ["mrcx"] }, "application/mathematica": { "source": "iana", "extensions": ["ma","nb","mb"] }, "application/mathml+xml": { "source": "iana", "extensions": ["mathml"] }, "application/mathml-content+xml": { "source": "iana" }, "application/mathml-presentation+xml": { "source": "iana" }, "application/mbms-associated-procedure-description+xml": { "source": "iana" }, "application/mbms-deregister+xml": { "source": "iana" }, "application/mbms-envelope+xml": { "source": "iana" }, "application/mbms-msk+xml": { "source": "iana" }, "application/mbms-msk-response+xml": { "source": "iana" }, "application/mbms-protection-description+xml": { "source": "iana" }, "application/mbms-reception-report+xml": { "source": "iana" }, "application/mbms-register+xml": { "source": "iana" }, "application/mbms-register-response+xml": { "source": "iana" }, "application/mbms-schedule+xml": { "source": "iana" }, "application/mbms-user-service-description+xml": { "source": "iana" }, "application/mbox": { "source": "iana", "extensions": ["mbox"] }, "application/media-policy-dataset+xml": { "source": "iana" }, "application/media_control+xml": { "source": "iana" }, "application/mediaservercontrol+xml": { "source": "iana", "extensions": ["mscml"] }, "application/merge-patch+json": { "source": "iana", "compressible": true }, "application/metalink+xml": { "source": "apache", "extensions": ["metalink"] }, "application/metalink4+xml": { "source": "iana", "extensions": ["meta4"] }, "application/mets+xml": { "source": "iana", "extensions": ["mets"] }, "application/mf4": { "source": "iana" }, "application/mikey": { "source": "iana" }, "application/mods+xml": { "source": "iana", "extensions": ["mods"] }, "application/moss-keys": { "source": "iana" }, "application/moss-signature": { "source": "iana" }, "application/mosskey-data": { "source": "iana" }, "application/mosskey-request": { "source": "iana" }, "application/mp21": { "source": "iana", "extensions": ["m21","mp21"] }, "application/mp4": { "source": "iana", "extensions": ["mp4s","m4p"] }, "application/mpeg4-generic": { "source": "iana" }, "application/mpeg4-iod": { "source": "iana" }, "application/mpeg4-iod-xmt": { "source": "iana" }, "application/mrb-consumer+xml": { "source": "iana" }, "application/mrb-publish+xml": { "source": "iana" }, "application/msc-ivr+xml": { "source": "iana" }, "application/msc-mixer+xml": { "source": "iana" }, "application/msword": { "source": "iana", "compressible": false, "extensions": ["doc","dot"] }, "application/mxf": { "source": "iana", "extensions": ["mxf"] }, "application/nasdata": { "source": "iana" }, "application/news-checkgroups": { "source": "iana" }, "application/news-groupinfo": { "source": "iana" }, "application/news-transmission": { "source": "iana" }, "application/nlsml+xml": { "source": "iana" }, "application/nss": { "source": "iana" }, "application/ocsp-request": { "source": "iana" }, "application/ocsp-response": { "source": "iana" }, "application/octet-stream": { "source": "iana", "compressible": false, "extensions": ["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"] }, "application/oda": { "source": "iana", "extensions": ["oda"] }, "application/odx": { "source": "iana" }, "application/oebps-package+xml": { "source": "iana", "extensions": ["opf"] }, "application/ogg": { "source": "iana", "compressible": false, "extensions": ["ogx"] }, "application/omdoc+xml": { "source": "apache", "extensions": ["omdoc"] }, "application/onenote": { "source": "apache", "extensions": ["onetoc","onetoc2","onetmp","onepkg"] }, "application/oxps": { "source": "iana", "extensions": ["oxps"] }, "application/p2p-overlay+xml": { "source": "iana" }, "application/parityfec": { "source": "iana" }, "application/patch-ops-error+xml": { "source": "iana", "extensions": ["xer"] }, "application/pdf": { "source": "iana", "compressible": false, "extensions": ["pdf"] }, "application/pdx": { "source": "iana" }, "application/pgp-encrypted": { "source": "iana", "compressible": false, "extensions": ["pgp"] }, "application/pgp-keys": { "source": "iana" }, "application/pgp-signature": { "source": "iana", "extensions": ["asc","sig"] }, "application/pics-rules": { "source": "apache", "extensions": ["prf"] }, "application/pidf+xml": { "source": "iana" }, "application/pidf-diff+xml": { "source": "iana" }, "application/pkcs10": { "source": "iana", "extensions": ["p10"] }, "application/pkcs12": { "source": "iana" }, "application/pkcs7-mime": { "source": "iana", "extensions": ["p7m","p7c"] }, "application/pkcs7-signature": { "source": "iana", "extensions": ["p7s"] }, "application/pkcs8": { "source": "iana", "extensions": ["p8"] }, "application/pkix-attr-cert": { "source": "iana", "extensions": ["ac"] }, "application/pkix-cert": { "source": "iana", "extensions": ["cer"] }, "application/pkix-crl": { "source": "iana", "extensions": ["crl"] }, "application/pkix-pkipath": { "source": "iana", "extensions": ["pkipath"] }, "application/pkixcmp": { "source": "iana", "extensions": ["pki"] }, "application/pls+xml": { "source": "iana", "extensions": ["pls"] }, "application/poc-settings+xml": { "source": "iana" }, "application/postscript": { "source": "iana", "compressible": true, "extensions": ["ai","eps","ps"] }, "application/provenance+xml": { "source": "iana" }, "application/prs.alvestrand.titrax-sheet": { "source": "iana" }, "application/prs.cww": { "source": "iana", "extensions": ["cww"] }, "application/prs.hpub+zip": { "source": "iana" }, "application/prs.nprend": { "source": "iana" }, "application/prs.plucker": { "source": "iana" }, "application/prs.rdf-xml-crypt": { "source": "iana" }, "application/prs.xsf+xml": { "source": "iana" }, "application/pskc+xml": { "source": "iana", "extensions": ["pskcxml"] }, "application/qsig": { "source": "iana" }, "application/raptorfec": { "source": "iana" }, "application/rdap+json": { "source": "iana", "compressible": true }, "application/rdf+xml": { "source": "iana", "compressible": true, "extensions": ["rdf"] }, "application/reginfo+xml": { "source": "iana", "extensions": ["rif"] }, "application/relax-ng-compact-syntax": { "source": "iana", "extensions": ["rnc"] }, "application/remote-printing": { "source": "iana" }, "application/reputon+json": { "source": "iana", "compressible": true }, "application/resource-lists+xml": { "source": "iana", "extensions": ["rl"] }, "application/resource-lists-diff+xml": { "source": "iana", "extensions": ["rld"] }, "application/rfc+xml": { "source": "iana" }, "application/riscos": { "source": "iana" }, "application/rlmi+xml": { "source": "iana" }, "application/rls-services+xml": { "source": "iana", "extensions": ["rs"] }, "application/rpki-ghostbusters": { "source": "iana", "extensions": ["gbr"] }, "application/rpki-manifest": { "source": "iana", "extensions": ["mft"] }, "application/rpki-roa": { "source": "iana", "extensions": ["roa"] }, "application/rpki-updown": { "source": "iana" }, "application/rsd+xml": { "source": "apache", "extensions": ["rsd"] }, "application/rss+xml": { "source": "apache", "compressible": true, "extensions": ["rss"] }, "application/rtf": { "source": "iana", "compressible": true, "extensions": ["rtf"] }, "application/rtploopback": { "source": "iana" }, "application/rtx": { "source": "iana" }, "application/samlassertion+xml": { "source": "iana" }, "application/samlmetadata+xml": { "source": "iana" }, "application/sbml+xml": { "source": "iana", "extensions": ["sbml"] }, "application/scaip+xml": { "source": "iana" }, "application/scim+json": { "source": "iana", "compressible": true }, "application/scvp-cv-request": { "source": "iana", "extensions": ["scq"] }, "application/scvp-cv-response": { "source": "iana", "extensions": ["scs"] }, "application/scvp-vp-request": { "source": "iana", "extensions": ["spq"] }, "application/scvp-vp-response": { "source": "iana", "extensions": ["spp"] }, "application/sdp": { "source": "iana", "extensions": ["sdp"] }, "application/sep+xml": { "source": "iana" }, "application/sep-exi": { "source": "iana" }, "application/session-info": { "source": "iana" }, "application/set-payment": { "source": "iana" }, "application/set-payment-initiation": { "source": "iana", "extensions": ["setpay"] }, "application/set-registration": { "source": "iana" }, "application/set-registration-initiation": { "source": "iana", "extensions": ["setreg"] }, "application/sgml": { "source": "iana" }, "application/sgml-open-catalog": { "source": "iana" }, "application/shf+xml": { "source": "iana", "extensions": ["shf"] }, "application/sieve": { "source": "iana" }, "application/simple-filter+xml": { "source": "iana" }, "application/simple-message-summary": { "source": "iana" }, "application/simplesymbolcontainer": { "source": "iana" }, "application/slate": { "source": "iana" }, "application/smil": { "source": "iana" }, "application/smil+xml": { "source": "iana", "extensions": ["smi","smil"] }, "application/smpte336m": { "source": "iana" }, "application/soap+fastinfoset": { "source": "iana" }, "application/soap+xml": { "source": "iana", "compressible": true }, "application/sparql-query": { "source": "iana", "extensions": ["rq"] }, "application/sparql-results+xml": { "source": "iana", "extensions": ["srx"] }, "application/spirits-event+xml": { "source": "iana" }, "application/sql": { "source": "iana" }, "application/srgs": { "source": "iana", "extensions": ["gram"] }, "application/srgs+xml": { "source": "iana", "extensions": ["grxml"] }, "application/sru+xml": { "source": "iana", "extensions": ["sru"] }, "application/ssdl+xml": { "source": "apache", "extensions": ["ssdl"] }, "application/ssml+xml": { "source": "iana", "extensions": ["ssml"] }, "application/tamp-apex-update": { "source": "iana" }, "application/tamp-apex-update-confirm": { "source": "iana" }, "application/tamp-community-update": { "source": "iana" }, "application/tamp-community-update-confirm": { "source": "iana" }, "application/tamp-error": { "source": "iana" }, "application/tamp-sequence-adjust": { "source": "iana" }, "application/tamp-sequence-adjust-confirm": { "source": "iana" }, "application/tamp-status-query": { "source": "iana" }, "application/tamp-status-response": { "source": "iana" }, "application/tamp-update": { "source": "iana" }, "application/tamp-update-confirm": { "source": "iana" }, "application/tar": { "compressible": true }, "application/tei+xml": { "source": "iana", "extensions": ["tei","teicorpus"] }, "application/thraud+xml": { "source": "iana", "extensions": ["tfi"] }, "application/timestamp-query": { "source": "iana" }, "application/timestamp-reply": { "source": "iana" }, "application/timestamped-data": { "source": "iana", "extensions": ["tsd"] }, "application/ttml+xml": { "source": "iana" }, "application/tve-trigger": { "source": "iana" }, "application/ulpfec": { "source": "iana" }, "application/urc-grpsheet+xml": { "source": "iana" }, "application/urc-ressheet+xml": { "source": "iana" }, "application/urc-targetdesc+xml": { "source": "iana" }, "application/urc-uisocketdesc+xml": { "source": "iana" }, "application/vcard+json": { "source": "iana", "compressible": true }, "application/vcard+xml": { "source": "iana" }, "application/vemmi": { "source": "iana" }, "application/vividence.scriptfile": { "source": "apache" }, "application/vnd.3gpp-prose+xml": { "source": "iana" }, "application/vnd.3gpp-prose-pc3ch+xml": { "source": "iana" }, "application/vnd.3gpp.access-transfer-events+xml": { "source": "iana" }, "application/vnd.3gpp.bsf+xml": { "source": "iana" }, "application/vnd.3gpp.mid-call+xml": { "source": "iana" }, "application/vnd.3gpp.pic-bw-large": { "source": "iana", "extensions": ["plb"] }, "application/vnd.3gpp.pic-bw-small": { "source": "iana", "extensions": ["psb"] }, "application/vnd.3gpp.pic-bw-var": { "source": "iana", "extensions": ["pvb"] }, "application/vnd.3gpp.sms": { "source": "iana" }, "application/vnd.3gpp.srvcc-ext+xml": { "source": "iana" }, "application/vnd.3gpp.srvcc-info+xml": { "source": "iana" }, "application/vnd.3gpp.state-and-event-info+xml": { "source": "iana" }, "application/vnd.3gpp.ussd+xml": { "source": "iana" }, "application/vnd.3gpp2.bcmcsinfo+xml": { "source": "iana" }, "application/vnd.3gpp2.sms": { "source": "iana" }, "application/vnd.3gpp2.tcap": { "source": "iana", "extensions": ["tcap"] }, "application/vnd.3m.post-it-notes": { "source": "iana", "extensions": ["pwn"] }, "application/vnd.accpac.simply.aso": { "source": "iana", "extensions": ["aso"] }, "application/vnd.accpac.simply.imp": { "source": "iana", "extensions": ["imp"] }, "application/vnd.acucobol": { "source": "iana", "extensions": ["acu"] }, "application/vnd.acucorp": { "source": "iana", "extensions": ["atc","acutc"] }, "application/vnd.adobe.air-application-installer-package+zip": { "source": "apache", "extensions": ["air"] }, "application/vnd.adobe.flash.movie": { "source": "iana" }, "application/vnd.adobe.formscentral.fcdt": { "source": "iana", "extensions": ["fcdt"] }, "application/vnd.adobe.fxp": { "source": "iana", "extensions": ["fxp","fxpl"] }, "application/vnd.adobe.partial-upload": { "source": "iana" }, "application/vnd.adobe.xdp+xml": { "source": "iana", "extensions": ["xdp"] }, "application/vnd.adobe.xfdf": { "source": "iana", "extensions": ["xfdf"] }, "application/vnd.aether.imp": { "source": "iana" }, "application/vnd.ah-barcode": { "source": "iana" }, "application/vnd.ahead.space": { "source": "iana", "extensions": ["ahead"] }, "application/vnd.airzip.filesecure.azf": { "source": "iana", "extensions": ["azf"] }, "application/vnd.airzip.filesecure.azs": { "source": "iana", "extensions": ["azs"] }, "application/vnd.amazon.ebook": { "source": "apache", "extensions": ["azw"] }, "application/vnd.americandynamics.acc": { "source": "iana", "extensions": ["acc"] }, "application/vnd.amiga.ami": { "source": "iana", "extensions": ["ami"] }, "application/vnd.amundsen.maze+xml": { "source": "iana" }, "application/vnd.android.package-archive": { "source": "apache", "compressible": false, "extensions": ["apk"] }, "application/vnd.anki": { "source": "iana" }, "application/vnd.anser-web-certificate-issue-initiation": { "source": "iana", "extensions": ["cii"] }, "application/vnd.anser-web-funds-transfer-initiation": { "source": "apache", "extensions": ["fti"] }, "application/vnd.antix.game-component": { "source": "iana", "extensions": ["atx"] }, "application/vnd.apache.thrift.binary": { "source": "iana" }, "application/vnd.apache.thrift.compact": { "source": "iana" }, "application/vnd.apache.thrift.json": { "source": "iana" }, "application/vnd.api+json": { "source": "iana", "compressible": true }, "application/vnd.apple.installer+xml": { "source": "iana", "extensions": ["mpkg"] }, "application/vnd.apple.mpegurl": { "source": "iana", "extensions": ["m3u8"] }, "application/vnd.apple.pkpass": { "compressible": false, "extensions": ["pkpass"] }, "application/vnd.arastra.swi": { "source": "iana" }, "application/vnd.aristanetworks.swi": { "source": "iana", "extensions": ["swi"] }, "application/vnd.artsquare": { "source": "iana" }, "application/vnd.astraea-software.iota": { "source": "iana", "extensions": ["iota"] }, "application/vnd.audiograph": { "source": "iana", "extensions": ["aep"] }, "application/vnd.autopackage": { "source": "iana" }, "application/vnd.avistar+xml": { "source": "iana" }, "application/vnd.balsamiq.bmml+xml": { "source": "iana" }, "application/vnd.balsamiq.bmpr": { "source": "iana" }, "application/vnd.bekitzur-stech+json": { "source": "iana", "compressible": true }, "application/vnd.biopax.rdf+xml": { "source": "iana" }, "application/vnd.blueice.multipass": { "source": "iana", "extensions": ["mpm"] }, "application/vnd.bluetooth.ep.oob": { "source": "iana" }, "application/vnd.bluetooth.le.oob": { "source": "iana" }, "application/vnd.bmi": { "source": "iana", "extensions": ["bmi"] }, "application/vnd.businessobjects": { "source": "iana", "extensions": ["rep"] }, "application/vnd.cab-jscript": { "source": "iana" }, "application/vnd.canon-cpdl": { "source": "iana" }, "application/vnd.canon-lips": { "source": "iana" }, "application/vnd.cendio.thinlinc.clientconf": { "source": "iana" }, "application/vnd.century-systems.tcp_stream": { "source": "iana" }, "application/vnd.chemdraw+xml": { "source": "iana", "extensions": ["cdxml"] }, "application/vnd.chipnuts.karaoke-mmd": { "source": "iana", "extensions": ["mmd"] }, "application/vnd.cinderella": { "source": "iana", "extensions": ["cdy"] }, "application/vnd.cirpack.isdn-ext": { "source": "iana" }, "application/vnd.citationstyles.style+xml": { "source": "iana" }, "application/vnd.claymore": { "source": "iana", "extensions": ["cla"] }, "application/vnd.cloanto.rp9": { "source": "iana", "extensions": ["rp9"] }, "application/vnd.clonk.c4group": { "source": "iana", "extensions": ["c4g","c4d","c4f","c4p","c4u"] }, "application/vnd.cluetrust.cartomobile-config": { "source": "iana", "extensions": ["c11amc"] }, "application/vnd.cluetrust.cartomobile-config-pkg": { "source": "iana", "extensions": ["c11amz"] }, "application/vnd.coffeescript": { "source": "iana" }, "application/vnd.collection+json": { "source": "iana", "compressible": true }, "application/vnd.collection.doc+json": { "source": "iana", "compressible": true }, "application/vnd.collection.next+json": { "source": "iana", "compressible": true }, "application/vnd.commerce-battelle": { "source": "iana" }, "application/vnd.commonspace": { "source": "iana", "extensions": ["csp"] }, "application/vnd.contact.cmsg": { "source": "iana", "extensions": ["cdbcmsg"] }, "application/vnd.cosmocaller": { "source": "iana", "extensions": ["cmc"] }, "application/vnd.crick.clicker": { "source": "iana", "extensions": ["clkx"] }, "application/vnd.crick.clicker.keyboard": { "source": "iana", "extensions": ["clkk"] }, "application/vnd.crick.clicker.palette": { "source": "iana", "extensions": ["clkp"] }, "application/vnd.crick.clicker.template": { "source": "iana", "extensions": ["clkt"] }, "application/vnd.crick.clicker.wordbank": { "source": "iana", "extensions": ["clkw"] }, "application/vnd.criticaltools.wbs+xml": { "source": "iana", "extensions": ["wbs"] }, "application/vnd.ctc-posml": { "source": "iana", "extensions": ["pml"] }, "application/vnd.ctct.ws+xml": { "source": "iana" }, "application/vnd.cups-pdf": { "source": "iana" }, "application/vnd.cups-postscript": { "source": "iana" }, "application/vnd.cups-ppd": { "source": "iana", "extensions": ["ppd"] }, "application/vnd.cups-raster": { "source": "iana" }, "application/vnd.cups-raw": { "source": "iana" }, "application/vnd.curl": { "source": "iana" }, "application/vnd.curl.car": { "source": "apache", "extensions": ["car"] }, "application/vnd.curl.pcurl": { "source": "apache", "extensions": ["pcurl"] }, "application/vnd.cyan.dean.root+xml": { "source": "iana" }, "application/vnd.cybank": { "source": "iana" }, "application/vnd.dart": { "source": "iana", "compressible": true, "extensions": ["dart"] }, "application/vnd.data-vision.rdz": { "source": "iana", "extensions": ["rdz"] }, "application/vnd.debian.binary-package": { "source": "iana" }, "application/vnd.dece.data": { "source": "iana", "extensions": ["uvf","uvvf","uvd","uvvd"] }, "application/vnd.dece.ttml+xml": { "source": "iana", "extensions": ["uvt","uvvt"] }, "application/vnd.dece.unspecified": { "source": "iana", "extensions": ["uvx","uvvx"] }, "application/vnd.dece.zip": { "source": "iana", "extensions": ["uvz","uvvz"] }, "application/vnd.denovo.fcselayout-link": { "source": "iana", "extensions": ["fe_launch"] }, "application/vnd.desmume-movie": { "source": "iana" }, "application/vnd.dir-bi.plate-dl-nosuffix": { "source": "iana" }, "application/vnd.dm.delegation+xml": { "source": "iana" }, "application/vnd.dna": { "source": "iana", "extensions": ["dna"] }, "application/vnd.document+json": { "source": "iana", "compressible": true }, "application/vnd.dolby.mlp": { "source": "apache", "extensions": ["mlp"] }, "application/vnd.dolby.mobile.1": { "source": "iana" }, "application/vnd.dolby.mobile.2": { "source": "iana" }, "application/vnd.doremir.scorecloud-binary-document": { "source": "iana" }, "application/vnd.dpgraph": { "source": "iana", "extensions": ["dpg"] }, "application/vnd.dreamfactory": { "source": "iana", "extensions": ["dfac"] }, "application/vnd.drive+json": { "source": "iana", "compressible": true }, "application/vnd.ds-keypoint": { "source": "apache", "extensions": ["kpxx"] }, "application/vnd.dtg.local": { "source": "iana" }, "application/vnd.dtg.local.flash": { "source": "iana" }, "application/vnd.dtg.local.html": { "source": "iana" }, "application/vnd.dvb.ait": { "source": "iana", "extensions": ["ait"] }, "application/vnd.dvb.dvbj": { "source": "iana" }, "application/vnd.dvb.esgcontainer": { "source": "iana" }, "application/vnd.dvb.ipdcdftnotifaccess": { "source": "iana" }, "application/vnd.dvb.ipdcesgaccess": { "source": "iana" }, "application/vnd.dvb.ipdcesgaccess2": { "source": "iana" }, "application/vnd.dvb.ipdcesgpdd": { "source": "iana" }, "application/vnd.dvb.ipdcroaming": { "source": "iana" }, "application/vnd.dvb.iptv.alfec-base": { "source": "iana" }, "application/vnd.dvb.iptv.alfec-enhancement": { "source": "iana" }, "application/vnd.dvb.notif-aggregate-root+xml": { "source": "iana" }, "application/vnd.dvb.notif-container+xml": { "source": "iana" }, "application/vnd.dvb.notif-generic+xml": { "source": "iana" }, "application/vnd.dvb.notif-ia-msglist+xml": { "source": "iana" }, "application/vnd.dvb.notif-ia-registration-request+xml": { "source": "iana" }, "application/vnd.dvb.notif-ia-registration-response+xml": { "source": "iana" }, "application/vnd.dvb.notif-init+xml": { "source": "iana" }, "application/vnd.dvb.pfr": { "source": "iana" }, "application/vnd.dvb.service": { "source": "iana", "extensions": ["svc"] }, "application/vnd.dxr": { "source": "iana" }, "application/vnd.dynageo": { "source": "iana", "extensions": ["geo"] }, "application/vnd.dzr": { "source": "iana" }, "application/vnd.easykaraoke.cdgdownload": { "source": "iana" }, "application/vnd.ecdis-update": { "source": "iana" }, "application/vnd.ecowin.chart": { "source": "iana", "extensions": ["mag"] }, "application/vnd.ecowin.filerequest": { "source": "iana" }, "application/vnd.ecowin.fileupdate": { "source": "iana" }, "application/vnd.ecowin.series": { "source": "iana" }, "application/vnd.ecowin.seriesrequest": { "source": "iana" }, "application/vnd.ecowin.seriesupdate": { "source": "iana" }, "application/vnd.emclient.accessrequest+xml": { "source": "iana" }, "application/vnd.enliven": { "source": "iana", "extensions": ["nml"] }, "application/vnd.enphase.envoy": { "source": "iana" }, "application/vnd.eprints.data+xml": { "source": "iana" }, "application/vnd.epson.esf": { "source": "iana", "extensions": ["esf"] }, "application/vnd.epson.msf": { "source": "iana", "extensions": ["msf"] }, "application/vnd.epson.quickanime": { "source": "iana", "extensions": ["qam"] }, "application/vnd.epson.salt": { "source": "iana", "extensions": ["slt"] }, "application/vnd.epson.ssf": { "source": "iana", "extensions": ["ssf"] }, "application/vnd.ericsson.quickcall": { "source": "iana" }, "application/vnd.eszigno3+xml": { "source": "iana", "extensions": ["es3","et3"] }, "application/vnd.etsi.aoc+xml": { "source": "iana" }, "application/vnd.etsi.asic-e+zip": { "source": "iana" }, "application/vnd.etsi.asic-s+zip": { "source": "iana" }, "application/vnd.etsi.cug+xml": { "source": "iana" }, "application/vnd.etsi.iptvcommand+xml": { "source": "iana" }, "application/vnd.etsi.iptvdiscovery+xml": { "source": "iana" }, "application/vnd.etsi.iptvprofile+xml": { "source": "iana" }, "application/vnd.etsi.iptvsad-bc+xml": { "source": "iana" }, "application/vnd.etsi.iptvsad-cod+xml": { "source": "iana" }, "application/vnd.etsi.iptvsad-npvr+xml": { "source": "iana" }, "application/vnd.etsi.iptvservice+xml": { "source": "iana" }, "application/vnd.etsi.iptvsync+xml": { "source": "iana" }, "application/vnd.etsi.iptvueprofile+xml": { "source": "iana" }, "application/vnd.etsi.mcid+xml": { "source": "iana" }, "application/vnd.etsi.mheg5": { "source": "iana" }, "application/vnd.etsi.overload-control-policy-dataset+xml": { "source": "iana" }, "application/vnd.etsi.pstn+xml": { "source": "iana" }, "application/vnd.etsi.sci+xml": { "source": "iana" }, "application/vnd.etsi.simservs+xml": { "source": "iana" }, "application/vnd.etsi.timestamp-token": { "source": "iana" }, "application/vnd.etsi.tsl+xml": { "source": "iana" }, "application/vnd.etsi.tsl.der": { "source": "iana" }, "application/vnd.eudora.data": { "source": "iana" }, "application/vnd.ezpix-album": { "source": "iana", "extensions": ["ez2"] }, "application/vnd.ezpix-package": { "source": "iana", "extensions": ["ez3"] }, "application/vnd.f-secure.mobile": { "source": "iana" }, "application/vnd.fastcopy-disk-image": { "source": "iana" }, "application/vnd.fdf": { "source": "iana", "extensions": ["fdf"] }, "application/vnd.fdsn.mseed": { "source": "iana", "extensions": ["mseed"] }, "application/vnd.fdsn.seed": { "source": "iana", "extensions": ["seed","dataless"] }, "application/vnd.ffsns": { "source": "iana" }, "application/vnd.filmit.zfc": { "source": "iana" }, "application/vnd.fints": { "source": "iana" }, "application/vnd.firemonkeys.cloudcell": { "source": "iana" }, "application/vnd.flographit": { "source": "iana", "extensions": ["gph"] }, "application/vnd.fluxtime.clip": { "source": "iana", "extensions": ["ftc"] }, "application/vnd.font-fontforge-sfd": { "source": "iana" }, "application/vnd.framemaker": { "source": "iana", "extensions": ["fm","frame","maker","book"] }, "application/vnd.frogans.fnc": { "source": "iana", "extensions": ["fnc"] }, "application/vnd.frogans.ltf": { "source": "iana", "extensions": ["ltf"] }, "application/vnd.fsc.weblaunch": { "source": "iana", "extensions": ["fsc"] }, "application/vnd.fujitsu.oasys": { "source": "iana", "extensions": ["oas"] }, "application/vnd.fujitsu.oasys2": { "source": "iana", "extensions": ["oa2"] }, "application/vnd.fujitsu.oasys3": { "source": "iana", "extensions": ["oa3"] }, "application/vnd.fujitsu.oasysgp": { "source": "iana", "extensions": ["fg5"] }, "application/vnd.fujitsu.oasysprs": { "source": "iana", "extensions": ["bh2"] }, "application/vnd.fujixerox.art-ex": { "source": "iana" }, "application/vnd.fujixerox.art4": { "source": "iana" }, "application/vnd.fujixerox.ddd": { "source": "iana", "extensions": ["ddd"] }, "application/vnd.fujixerox.docuworks": { "source": "iana", "extensions": ["xdw"] }, "application/vnd.fujixerox.docuworks.binder": { "source": "iana", "extensions": ["xbd"] }, "application/vnd.fujixerox.docuworks.container": { "source": "iana" }, "application/vnd.fujixerox.hbpl": { "source": "iana" }, "application/vnd.fut-misnet": { "source": "iana" }, "application/vnd.fuzzysheet": { "source": "iana", "extensions": ["fzs"] }, "application/vnd.genomatix.tuxedo": { "source": "iana", "extensions": ["txd"] }, "application/vnd.geo+json": { "source": "iana", "compressible": true }, "application/vnd.geocube+xml": { "source": "iana" }, "application/vnd.geogebra.file": { "source": "iana", "extensions": ["ggb"] }, "application/vnd.geogebra.tool": { "source": "iana", "extensions": ["ggt"] }, "application/vnd.geometry-explorer": { "source": "iana", "extensions": ["gex","gre"] }, "application/vnd.geonext": { "source": "iana", "extensions": ["gxt"] }, "application/vnd.geoplan": { "source": "iana", "extensions": ["g2w"] }, "application/vnd.geospace": { "source": "iana", "extensions": ["g3w"] }, "application/vnd.gerber": { "source": "iana" }, "application/vnd.globalplatform.card-content-mgt": { "source": "iana" }, "application/vnd.globalplatform.card-content-mgt-response": { "source": "iana" }, "application/vnd.gmx": { "source": "iana", "extensions": ["gmx"] }, "application/vnd.google-apps.document": { "compressible": false, "extensions": ["gdoc"] }, "application/vnd.google-apps.presentation": { "compressible": false, "extensions": ["gslides"] }, "application/vnd.google-apps.spreadsheet": { "compressible": false, "extensions": ["gsheet"] }, "application/vnd.google-earth.kml+xml": { "source": "iana", "compressible": true, "extensions": ["kml"] }, "application/vnd.google-earth.kmz": { "source": "iana", "compressible": false, "extensions": ["kmz"] }, "application/vnd.gov.sk.e-form+xml": { "source": "iana" }, "application/vnd.gov.sk.e-form+zip": { "source": "iana" }, "application/vnd.gov.sk.xmldatacontainer+xml": { "source": "iana" }, "application/vnd.grafeq": { "source": "iana", "extensions": ["gqf","gqs"] }, "application/vnd.gridmp": { "source": "iana" }, "application/vnd.groove-account": { "source": "iana", "extensions": ["gac"] }, "application/vnd.groove-help": { "source": "iana", "extensions": ["ghf"] }, "application/vnd.groove-identity-message": { "source": "iana", "extensions": ["gim"] }, "application/vnd.groove-injector": { "source": "iana", "extensions": ["grv"] }, "application/vnd.groove-tool-message": { "source": "iana", "extensions": ["gtm"] }, "application/vnd.groove-tool-template": { "source": "iana", "extensions": ["tpl"] }, "application/vnd.groove-vcard": { "source": "iana", "extensions": ["vcg"] }, "application/vnd.hal+json": { "source": "iana", "compressible": true }, "application/vnd.hal+xml": { "source": "iana", "extensions": ["hal"] }, "application/vnd.handheld-entertainment+xml": { "source": "iana", "extensions": ["zmm"] }, "application/vnd.hbci": { "source": "iana", "extensions": ["hbci"] }, "application/vnd.hcl-bireports": { "source": "iana" }, "application/vnd.heroku+json": { "source": "iana", "compressible": true }, "application/vnd.hhe.lesson-player": { "source": "iana", "extensions": ["les"] }, "application/vnd.hp-hpgl": { "source": "iana", "extensions": ["hpgl"] }, "application/vnd.hp-hpid": { "source": "iana", "extensions": ["hpid"] }, "application/vnd.hp-hps": { "source": "iana", "extensions": ["hps"] }, "application/vnd.hp-jlyt": { "source": "iana", "extensions": ["jlt"] }, "application/vnd.hp-pcl": { "source": "iana", "extensions": ["pcl"] }, "application/vnd.hp-pclxl": { "source": "iana", "extensions": ["pclxl"] }, "application/vnd.httphone": { "source": "iana" }, "application/vnd.hydrostatix.sof-data": { "source": "iana", "extensions": ["sfd-hdstx"] }, "application/vnd.hyperdrive+json": { "source": "iana", "compressible": true }, "application/vnd.hzn-3d-crossword": { "source": "iana" }, "application/vnd.ibm.afplinedata": { "source": "iana" }, "application/vnd.ibm.electronic-media": { "source": "iana" }, "application/vnd.ibm.minipay": { "source": "iana", "extensions": ["mpy"] }, "application/vnd.ibm.modcap": { "source": "iana", "extensions": ["afp","listafp","list3820"] }, "application/vnd.ibm.rights-management": { "source": "iana", "extensions": ["irm"] }, "application/vnd.ibm.secure-container": { "source": "iana", "extensions": ["sc"] }, "application/vnd.iccprofile": { "source": "iana", "extensions": ["icc","icm"] }, "application/vnd.ieee.1905": { "source": "iana" }, "application/vnd.igloader": { "source": "iana", "extensions": ["igl"] }, "application/vnd.immervision-ivp": { "source": "iana", "extensions": ["ivp"] }, "application/vnd.immervision-ivu": { "source": "iana", "extensions": ["ivu"] }, "application/vnd.ims.imsccv1p1": { "source": "iana" }, "application/vnd.ims.imsccv1p2": { "source": "iana" }, "application/vnd.ims.imsccv1p3": { "source": "iana" }, "application/vnd.ims.lis.v2.result+json": { "source": "iana", "compressible": true }, "application/vnd.ims.lti.v2.toolconsumerprofile+json": { "source": "iana", "compressible": true }, "application/vnd.ims.lti.v2.toolproxy+json": { "source": "iana", "compressible": true }, "application/vnd.ims.lti.v2.toolproxy.id+json": { "source": "iana", "compressible": true }, "application/vnd.ims.lti.v2.toolsettings+json": { "source": "iana", "compressible": true }, "application/vnd.ims.lti.v2.toolsettings.simple+json": { "source": "iana", "compressible": true }, "application/vnd.informedcontrol.rms+xml": { "source": "iana" }, "application/vnd.informix-visionary": { "source": "iana" }, "application/vnd.infotech.project": { "source": "iana" }, "application/vnd.infotech.project+xml": { "source": "iana" }, "application/vnd.innopath.wamp.notification": { "source": "iana" }, "application/vnd.insors.igm": { "source": "iana", "extensions": ["igm"] }, "application/vnd.intercon.formnet": { "source": "iana", "extensions": ["xpw","xpx"] }, "application/vnd.intergeo": { "source": "iana", "extensions": ["i2g"] }, "application/vnd.intertrust.digibox": { "source": "iana" }, "application/vnd.intertrust.nncp": { "source": "iana" }, "application/vnd.intu.qbo": { "source": "iana", "extensions": ["qbo"] }, "application/vnd.intu.qfx": { "source": "iana", "extensions": ["qfx"] }, "application/vnd.iptc.g2.catalogitem+xml": { "source": "iana" }, "application/vnd.iptc.g2.conceptitem+xml": { "source": "iana" }, "application/vnd.iptc.g2.knowledgeitem+xml": { "source": "iana" }, "application/vnd.iptc.g2.newsitem+xml": { "source": "iana" }, "application/vnd.iptc.g2.newsmessage+xml": { "source": "iana" }, "application/vnd.iptc.g2.packageitem+xml": { "source": "iana" }, "application/vnd.iptc.g2.planningitem+xml": { "source": "iana" }, "application/vnd.ipunplugged.rcprofile": { "source": "iana", "extensions": ["rcprofile"] }, "application/vnd.irepository.package+xml": { "source": "iana", "extensions": ["irp"] }, "application/vnd.is-xpr": { "source": "iana", "extensions": ["xpr"] }, "application/vnd.isac.fcs": { "source": "iana", "extensions": ["fcs"] }, "application/vnd.jam": { "source": "iana", "extensions": ["jam"] }, "application/vnd.japannet-directory-service": { "source": "iana" }, "application/vnd.japannet-jpnstore-wakeup": { "source": "iana" }, "application/vnd.japannet-payment-wakeup": { "source": "iana" }, "application/vnd.japannet-registration": { "source": "iana" }, "application/vnd.japannet-registration-wakeup": { "source": "iana" }, "application/vnd.japannet-setstore-wakeup": { "source": "iana" }, "application/vnd.japannet-verification": { "source": "iana" }, "application/vnd.japannet-verification-wakeup": { "source": "iana" }, "application/vnd.jcp.javame.midlet-rms": { "source": "iana", "extensions": ["rms"] }, "application/vnd.jisp": { "source": "iana", "extensions": ["jisp"] }, "application/vnd.joost.joda-archive": { "source": "iana", "extensions": ["joda"] }, "application/vnd.jsk.isdn-ngn": { "source": "iana" }, "application/vnd.kahootz": { "source": "iana", "extensions": ["ktz","ktr"] }, "application/vnd.kde.karbon": { "source": "iana", "extensions": ["karbon"] }, "application/vnd.kde.kchart": { "source": "iana", "extensions": ["chrt"] }, "application/vnd.kde.kformula": { "source": "iana", "extensions": ["kfo"] }, "application/vnd.kde.kivio": { "source": "iana", "extensions": ["flw"] }, "application/vnd.kde.kontour": { "source": "iana", "extensions": ["kon"] }, "application/vnd.kde.kpresenter": { "source": "iana", "extensions": ["kpr","kpt"] }, "application/vnd.kde.kspread": { "source": "iana", "extensions": ["ksp"] }, "application/vnd.kde.kword": { "source": "iana", "extensions": ["kwd","kwt"] }, "application/vnd.kenameaapp": { "source": "iana", "extensions": ["htke"] }, "application/vnd.kidspiration": { "source": "iana", "extensions": ["kia"] }, "application/vnd.kinar": { "source": "iana", "extensions": ["kne","knp"] }, "application/vnd.koan": { "source": "iana", "extensions": ["skp","skd","skt","skm"] }, "application/vnd.kodak-descriptor": { "source": "iana", "extensions": ["sse"] }, "application/vnd.las.las+xml": { "source": "iana", "extensions": ["lasxml"] }, "application/vnd.liberty-request+xml": { "source": "iana" }, "application/vnd.llamagraphics.life-balance.desktop": { "source": "iana", "extensions": ["lbd"] }, "application/vnd.llamagraphics.life-balance.exchange+xml": { "source": "iana", "extensions": ["lbe"] }, "application/vnd.lotus-1-2-3": { "source": "iana", "extensions": ["123"] }, "application/vnd.lotus-approach": { "source": "iana", "extensions": ["apr"] }, "application/vnd.lotus-freelance": { "source": "iana", "extensions": ["pre"] }, "application/vnd.lotus-notes": { "source": "iana", "extensions": ["nsf"] }, "application/vnd.lotus-organizer": { "source": "iana", "extensions": ["org"] }, "application/vnd.lotus-screencam": { "source": "iana", "extensions": ["scm"] }, "application/vnd.lotus-wordpro": { "source": "iana", "extensions": ["lwp"] }, "application/vnd.macports.portpkg": { "source": "iana", "extensions": ["portpkg"] }, "application/vnd.mapbox-vector-tile": { "source": "iana" }, "application/vnd.marlin.drm.actiontoken+xml": { "source": "iana" }, "application/vnd.marlin.drm.conftoken+xml": { "source": "iana" }, "application/vnd.marlin.drm.license+xml": { "source": "iana" }, "application/vnd.marlin.drm.mdcf": { "source": "iana" }, "application/vnd.mason+json": { "source": "iana", "compressible": true }, "application/vnd.maxmind.maxmind-db": { "source": "iana" }, "application/vnd.mcd": { "source": "iana", "extensions": ["mcd"] }, "application/vnd.medcalcdata": { "source": "iana", "extensions": ["mc1"] }, "application/vnd.mediastation.cdkey": { "source": "iana", "extensions": ["cdkey"] }, "application/vnd.meridian-slingshot": { "source": "iana" }, "application/vnd.mfer": { "source": "iana", "extensions": ["mwf"] }, "application/vnd.mfmp": { "source": "iana", "extensions": ["mfm"] }, "application/vnd.micro+json": { "source": "iana", "compressible": true }, "application/vnd.micrografx.flo": { "source": "iana", "extensions": ["flo"] }, "application/vnd.micrografx.igx": { "source": "iana", "extensions": ["igx"] }, "application/vnd.microsoft.portable-executable": { "source": "iana" }, "application/vnd.miele+json": { "source": "iana", "compressible": true }, "application/vnd.mif": { "source": "iana", "extensions": ["mif"] }, "application/vnd.minisoft-hp3000-save": { "source": "iana" }, "application/vnd.mitsubishi.misty-guard.trustweb": { "source": "iana" }, "application/vnd.mobius.daf": { "source": "iana", "extensions": ["daf"] }, "application/vnd.mobius.dis": { "source": "iana", "extensions": ["dis"] }, "application/vnd.mobius.mbk": { "source": "iana", "extensions": ["mbk"] }, "application/vnd.mobius.mqy": { "source": "iana", "extensions": ["mqy"] }, "application/vnd.mobius.msl": { "source": "iana", "extensions": ["msl"] }, "application/vnd.mobius.plc": { "source": "iana", "extensions": ["plc"] }, "application/vnd.mobius.txf": { "source": "iana", "extensions": ["txf"] }, "application/vnd.mophun.application": { "source": "iana", "extensions": ["mpn"] }, "application/vnd.mophun.certificate": { "source": "iana", "extensions": ["mpc"] }, "application/vnd.motorola.flexsuite": { "source": "iana" }, "application/vnd.motorola.flexsuite.adsi": { "source": "iana" }, "application/vnd.motorola.flexsuite.fis": { "source": "iana" }, "application/vnd.motorola.flexsuite.gotap": { "source": "iana" }, "application/vnd.motorola.flexsuite.kmr": { "source": "iana" }, "application/vnd.motorola.flexsuite.ttc": { "source": "iana" }, "application/vnd.motorola.flexsuite.wem": { "source": "iana" }, "application/vnd.motorola.iprm": { "source": "iana" }, "application/vnd.mozilla.xul+xml": { "source": "iana", "compressible": true, "extensions": ["xul"] }, "application/vnd.ms-3mfdocument": { "source": "iana" }, "application/vnd.ms-artgalry": { "source": "iana", "extensions": ["cil"] }, "application/vnd.ms-asf": { "source": "iana" }, "application/vnd.ms-cab-compressed": { "source": "iana", "extensions": ["cab"] }, "application/vnd.ms-color.iccprofile": { "source": "apache" }, "application/vnd.ms-excel": { "source": "iana", "compressible": false, "extensions": ["xls","xlm","xla","xlc","xlt","xlw"] }, "application/vnd.ms-excel.addin.macroenabled.12": { "source": "iana", "extensions": ["xlam"] }, "application/vnd.ms-excel.sheet.binary.macroenabled.12": { "source": "iana", "extensions": ["xlsb"] }, "application/vnd.ms-excel.sheet.macroenabled.12": { "source": "iana", "extensions": ["xlsm"] }, "application/vnd.ms-excel.template.macroenabled.12": { "source": "iana", "extensions": ["xltm"] }, "application/vnd.ms-fontobject": { "source": "iana", "compressible": true, "extensions": ["eot"] }, "application/vnd.ms-htmlhelp": { "source": "iana", "extensions": ["chm"] }, "application/vnd.ms-ims": { "source": "iana", "extensions": ["ims"] }, "application/vnd.ms-lrm": { "source": "iana", "extensions": ["lrm"] }, "application/vnd.ms-office.activex+xml": { "source": "iana" }, "application/vnd.ms-officetheme": { "source": "iana", "extensions": ["thmx"] }, "application/vnd.ms-opentype": { "source": "apache", "compressible": true }, "application/vnd.ms-package.obfuscated-opentype": { "source": "apache" }, "application/vnd.ms-pki.seccat": { "source": "apache", "extensions": ["cat"] }, "application/vnd.ms-pki.stl": { "source": "apache", "extensions": ["stl"] }, "application/vnd.ms-playready.initiator+xml": { "source": "iana" }, "application/vnd.ms-powerpoint": { "source": "iana", "compressible": false, "extensions": ["ppt","pps","pot"] }, "application/vnd.ms-powerpoint.addin.macroenabled.12": { "source": "iana", "extensions": ["ppam"] }, "application/vnd.ms-powerpoint.presentation.macroenabled.12": { "source": "iana", "extensions": ["pptm"] }, "application/vnd.ms-powerpoint.slide.macroenabled.12": { "source": "iana", "extensions": ["sldm"] }, "application/vnd.ms-powerpoint.slideshow.macroenabled.12": { "source": "iana", "extensions": ["ppsm"] }, "application/vnd.ms-powerpoint.template.macroenabled.12": { "source": "iana", "extensions": ["potm"] }, "application/vnd.ms-printdevicecapabilities+xml": { "source": "iana" }, "application/vnd.ms-printing.printticket+xml": { "source": "apache" }, "application/vnd.ms-project": { "source": "iana", "extensions": ["mpp","mpt"] }, "application/vnd.ms-tnef": { "source": "iana" }, "application/vnd.ms-windows.devicepairing": { "source": "iana" }, "application/vnd.ms-windows.nwprinting.oob": { "source": "iana" }, "application/vnd.ms-windows.printerpairing": { "source": "iana" }, "application/vnd.ms-windows.wsd.oob": { "source": "iana" }, "application/vnd.ms-wmdrm.lic-chlg-req": { "source": "iana" }, "application/vnd.ms-wmdrm.lic-resp": { "source": "iana" }, "application/vnd.ms-wmdrm.meter-chlg-req": { "source": "iana" }, "application/vnd.ms-wmdrm.meter-resp": { "source": "iana" }, "application/vnd.ms-word.document.macroenabled.12": { "source": "iana", "extensions": ["docm"] }, "application/vnd.ms-word.template.macroenabled.12": { "source": "iana", "extensions": ["dotm"] }, "application/vnd.ms-works": { "source": "iana", "extensions": ["wps","wks","wcm","wdb"] }, "application/vnd.ms-wpl": { "source": "iana", "extensions": ["wpl"] }, "application/vnd.ms-xpsdocument": { "source": "iana", "compressible": false, "extensions": ["xps"] }, "application/vnd.msa-disk-image": { "source": "iana" }, "application/vnd.mseq": { "source": "iana", "extensions": ["mseq"] }, "application/vnd.msign": { "source": "iana" }, "application/vnd.multiad.creator": { "source": "iana" }, "application/vnd.multiad.creator.cif": { "source": "iana" }, "application/vnd.music-niff": { "source": "iana" }, "application/vnd.musician": { "source": "iana", "extensions": ["mus"] }, "application/vnd.muvee.style": { "source": "iana", "extensions": ["msty"] }, "application/vnd.mynfc": { "source": "iana", "extensions": ["taglet"] }, "application/vnd.ncd.control": { "source": "iana" }, "application/vnd.ncd.reference": { "source": "iana" }, "application/vnd.nervana": { "source": "iana" }, "application/vnd.netfpx": { "source": "iana" }, "application/vnd.neurolanguage.nlu": { "source": "iana", "extensions": ["nlu"] }, "application/vnd.nintendo.nitro.rom": { "source": "iana" }, "application/vnd.nintendo.snes.rom": { "source": "iana" }, "application/vnd.nitf": { "source": "iana", "extensions": ["ntf","nitf"] }, "application/vnd.noblenet-directory": { "source": "iana", "extensions": ["nnd"] }, "application/vnd.noblenet-sealer": { "source": "iana", "extensions": ["nns"] }, "application/vnd.noblenet-web": { "source": "iana", "extensions": ["nnw"] }, "application/vnd.nokia.catalogs": { "source": "iana" }, "application/vnd.nokia.conml+wbxml": { "source": "iana" }, "application/vnd.nokia.conml+xml": { "source": "iana" }, "application/vnd.nokia.iptv.config+xml": { "source": "iana" }, "application/vnd.nokia.isds-radio-presets": { "source": "iana" }, "application/vnd.nokia.landmark+wbxml": { "source": "iana" }, "application/vnd.nokia.landmark+xml": { "source": "iana" }, "application/vnd.nokia.landmarkcollection+xml": { "source": "iana" }, "application/vnd.nokia.n-gage.ac+xml": { "source": "iana" }, "application/vnd.nokia.n-gage.data": { "source": "iana", "extensions": ["ngdat"] }, "application/vnd.nokia.n-gage.symbian.install": { "source": "iana", "extensions": ["n-gage"] }, "application/vnd.nokia.ncd": { "source": "iana" }, "application/vnd.nokia.pcd+wbxml": { "source": "iana" }, "application/vnd.nokia.pcd+xml": { "source": "iana" }, "application/vnd.nokia.radio-preset": { "source": "iana", "extensions": ["rpst"] }, "application/vnd.nokia.radio-presets": { "source": "iana", "extensions": ["rpss"] }, "application/vnd.novadigm.edm": { "source": "iana", "extensions": ["edm"] }, "application/vnd.novadigm.edx": { "source": "iana", "extensions": ["edx"] }, "application/vnd.novadigm.ext": { "source": "iana", "extensions": ["ext"] }, "application/vnd.ntt-local.content-share": { "source": "iana" }, "application/vnd.ntt-local.file-transfer": { "source": "iana" }, "application/vnd.ntt-local.ogw_remote-access": { "source": "iana" }, "application/vnd.ntt-local.sip-ta_remote": { "source": "iana" }, "application/vnd.ntt-local.sip-ta_tcp_stream": { "source": "iana" }, "application/vnd.oasis.opendocument.chart": { "source": "iana", "extensions": ["odc"] }, "application/vnd.oasis.opendocument.chart-template": { "source": "iana", "extensions": ["otc"] }, "application/vnd.oasis.opendocument.database": { "source": "iana", "extensions": ["odb"] }, "application/vnd.oasis.opendocument.formula": { "source": "iana", "extensions": ["odf"] }, "application/vnd.oasis.opendocument.formula-template": { "source": "iana", "extensions": ["odft"] }, "application/vnd.oasis.opendocument.graphics": { "source": "iana", "compressible": false, "extensions": ["odg"] }, "application/vnd.oasis.opendocument.graphics-template": { "source": "iana", "extensions": ["otg"] }, "application/vnd.oasis.opendocument.image": { "source": "iana", "extensions": ["odi"] }, "application/vnd.oasis.opendocument.image-template": { "source": "iana", "extensions": ["oti"] }, "application/vnd.oasis.opendocument.presentation": { "source": "iana", "compressible": false, "extensions": ["odp"] }, "application/vnd.oasis.opendocument.presentation-template": { "source": "iana", "extensions": ["otp"] }, "application/vnd.oasis.opendocument.spreadsheet": { "source": "iana", "compressible": false, "extensions": ["ods"] }, "application/vnd.oasis.opendocument.spreadsheet-template": { "source": "iana", "extensions": ["ots"] }, "application/vnd.oasis.opendocument.text": { "source": "iana", "compressible": false, "extensions": ["odt"] }, "application/vnd.oasis.opendocument.text-master": { "source": "iana", "extensions": ["odm"] }, "application/vnd.oasis.opendocument.text-template": { "source": "iana", "extensions": ["ott"] }, "application/vnd.oasis.opendocument.text-web": { "source": "iana", "extensions": ["oth"] }, "application/vnd.obn": { "source": "iana" }, "application/vnd.oftn.l10n+json": { "source": "iana", "compressible": true }, "application/vnd.oipf.contentaccessdownload+xml": { "source": "iana" }, "application/vnd.oipf.contentaccessstreaming+xml": { "source": "iana" }, "application/vnd.oipf.cspg-hexbinary": { "source": "iana" }, "application/vnd.oipf.dae.svg+xml": { "source": "iana" }, "application/vnd.oipf.dae.xhtml+xml": { "source": "iana" }, "application/vnd.oipf.mippvcontrolmessage+xml": { "source": "iana" }, "application/vnd.oipf.pae.gem": { "source": "iana" }, "application/vnd.oipf.spdiscovery+xml": { "source": "iana" }, "application/vnd.oipf.spdlist+xml": { "source": "iana" }, "application/vnd.oipf.ueprofile+xml": { "source": "iana" }, "application/vnd.oipf.userprofile+xml": { "source": "iana" }, "application/vnd.olpc-sugar": { "source": "iana", "extensions": ["xo"] }, "application/vnd.oma-scws-config": { "source": "iana" }, "application/vnd.oma-scws-http-request": { "source": "iana" }, "application/vnd.oma-scws-http-response": { "source": "iana" }, "application/vnd.oma.bcast.associated-procedure-parameter+xml": { "source": "iana" }, "application/vnd.oma.bcast.drm-trigger+xml": { "source": "iana" }, "application/vnd.oma.bcast.imd+xml": { "source": "iana" }, "application/vnd.oma.bcast.ltkm": { "source": "iana" }, "application/vnd.oma.bcast.notification+xml": { "source": "iana" }, "application/vnd.oma.bcast.provisioningtrigger": { "source": "iana" }, "application/vnd.oma.bcast.sgboot": { "source": "iana" }, "application/vnd.oma.bcast.sgdd+xml": { "source": "iana" }, "application/vnd.oma.bcast.sgdu": { "source": "iana" }, "application/vnd.oma.bcast.simple-symbol-container": { "source": "iana" }, "application/vnd.oma.bcast.smartcard-trigger+xml": { "source": "iana" }, "application/vnd.oma.bcast.sprov+xml": { "source": "iana" }, "application/vnd.oma.bcast.stkm": { "source": "iana" }, "application/vnd.oma.cab-address-book+xml": { "source": "iana" }, "application/vnd.oma.cab-feature-handler+xml": { "source": "iana" }, "application/vnd.oma.cab-pcc+xml": { "source": "iana" }, "application/vnd.oma.cab-subs-invite+xml": { "source": "iana" }, "application/vnd.oma.cab-user-prefs+xml": { "source": "iana" }, "application/vnd.oma.dcd": { "source": "iana" }, "application/vnd.oma.dcdc": { "source": "iana" }, "application/vnd.oma.dd2+xml": { "source": "iana", "extensions": ["dd2"] }, "application/vnd.oma.drm.risd+xml": { "source": "iana" }, "application/vnd.oma.group-usage-list+xml": { "source": "iana" }, "application/vnd.oma.pal+xml": { "source": "iana" }, "application/vnd.oma.poc.detailed-progress-report+xml": { "source": "iana" }, "application/vnd.oma.poc.final-report+xml": { "source": "iana" }, "application/vnd.oma.poc.groups+xml": { "source": "iana" }, "application/vnd.oma.poc.invocation-descriptor+xml": { "source": "iana" }, "application/vnd.oma.poc.optimized-progress-report+xml": { "source": "iana" }, "application/vnd.oma.push": { "source": "iana" }, "application/vnd.oma.scidm.messages+xml": { "source": "iana" }, "application/vnd.oma.xcap-directory+xml": { "source": "iana" }, "application/vnd.omads-email+xml": { "source": "iana" }, "application/vnd.omads-file+xml": { "source": "iana" }, "application/vnd.omads-folder+xml": { "source": "iana" }, "application/vnd.omaloc-supl-init": { "source": "iana" }, "application/vnd.openblox.game+xml": { "source": "iana" }, "application/vnd.openblox.game-binary": { "source": "iana" }, "application/vnd.openeye.oeb": { "source": "iana" }, "application/vnd.openofficeorg.extension": { "source": "apache", "extensions": ["oxt"] }, "application/vnd.openxmlformats-officedocument.custom-properties+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.customxmlproperties+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.drawing+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.drawingml.chart+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.extended-properties+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.presentationml-template": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.presentationml.comments+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.presentationml.presentation": { "source": "iana", "compressible": false, "extensions": ["pptx"] }, "application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.presentationml.presprops+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.presentationml.slide": { "source": "iana", "extensions": ["sldx"] }, "application/vnd.openxmlformats-officedocument.presentationml.slide+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.presentationml.slideshow": { "source": "iana", "extensions": ["ppsx"] }, "application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.presentationml.tags+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.presentationml.template": { "source": "apache", "extensions": ["potx"] }, "application/vnd.openxmlformats-officedocument.presentationml.template.main+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.spreadsheetml-template": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": { "source": "iana", "compressible": false, "extensions": ["xlsx"] }, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.spreadsheetml.template": { "source": "apache", "extensions": ["xltx"] }, "application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.theme+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.themeoverride+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.vmldrawing": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.wordprocessingml-template": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.wordprocessingml.document": { "source": "iana", "compressible": false, "extensions": ["docx"] }, "application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.wordprocessingml.template": { "source": "apache", "extensions": ["dotx"] }, "application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml": { "source": "iana" }, "application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml": { "source": "iana" }, "application/vnd.openxmlformats-package.core-properties+xml": { "source": "iana" }, "application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml": { "source": "iana" }, "application/vnd.openxmlformats-package.relationships+xml": { "source": "iana" }, "application/vnd.oracle.resource+json": { "source": "iana", "compressible": true }, "application/vnd.orange.indata": { "source": "iana" }, "application/vnd.osa.netdeploy": { "source": "iana" }, "application/vnd.osgeo.mapguide.package": { "source": "iana", "extensions": ["mgp"] }, "application/vnd.osgi.bundle": { "source": "iana" }, "application/vnd.osgi.dp": { "source": "iana", "extensions": ["dp"] }, "application/vnd.osgi.subsystem": { "source": "iana", "extensions": ["esa"] }, "application/vnd.otps.ct-kip+xml": { "source": "iana" }, "application/vnd.oxli.countgraph": { "source": "iana" }, "application/vnd.pagerduty+json": { "source": "iana", "compressible": true }, "application/vnd.palm": { "source": "iana", "extensions": ["pdb","pqa","oprc"] }, "application/vnd.panoply": { "source": "iana" }, "application/vnd.paos+xml": { "source": "iana" }, "application/vnd.paos.xml": { "source": "apache" }, "application/vnd.pawaafile": { "source": "iana", "extensions": ["paw"] }, "application/vnd.pcos": { "source": "iana" }, "application/vnd.pg.format": { "source": "iana", "extensions": ["str"] }, "application/vnd.pg.osasli": { "source": "iana", "extensions": ["ei6"] }, "application/vnd.piaccess.application-licence": { "source": "iana" }, "application/vnd.picsel": { "source": "iana", "extensions": ["efif"] }, "application/vnd.pmi.widget": { "source": "iana", "extensions": ["wg"] }, "application/vnd.poc.group-advertisement+xml": { "source": "iana" }, "application/vnd.pocketlearn": { "source": "iana", "extensions": ["plf"] }, "application/vnd.powerbuilder6": { "source": "iana", "extensions": ["pbd"] }, "application/vnd.powerbuilder6-s": { "source": "iana" }, "application/vnd.powerbuilder7": { "source": "iana" }, "application/vnd.powerbuilder7-s": { "source": "iana" }, "application/vnd.powerbuilder75": { "source": "iana" }, "application/vnd.powerbuilder75-s": { "source": "iana" }, "application/vnd.preminet": { "source": "iana" }, "application/vnd.previewsystems.box": { "source": "iana", "extensions": ["box"] }, "application/vnd.proteus.magazine": { "source": "iana", "extensions": ["mgz"] }, "application/vnd.publishare-delta-tree": { "source": "iana", "extensions": ["qps"] }, "application/vnd.pvi.ptid1": { "source": "iana", "extensions": ["ptid"] }, "application/vnd.pwg-multiplexed": { "source": "iana" }, "application/vnd.pwg-xhtml-print+xml": { "source": "iana" }, "application/vnd.qualcomm.brew-app-res": { "source": "iana" }, "application/vnd.quark.quarkxpress": { "source": "iana", "extensions": ["qxd","qxt","qwd","qwt","qxl","qxb"] }, "application/vnd.quobject-quoxdocument": { "source": "iana" }, "application/vnd.radisys.moml+xml": { "source": "iana" }, "application/vnd.radisys.msml+xml": { "source": "iana" }, "application/vnd.radisys.msml-audit+xml": { "source": "iana" }, "application/vnd.radisys.msml-audit-conf+xml": { "source": "iana" }, "application/vnd.radisys.msml-audit-conn+xml": { "source": "iana" }, "application/vnd.radisys.msml-audit-dialog+xml": { "source": "iana" }, "application/vnd.radisys.msml-audit-stream+xml": { "source": "iana" }, "application/vnd.radisys.msml-conf+xml": { "source": "iana" }, "application/vnd.radisys.msml-dialog+xml": { "source": "iana" }, "application/vnd.radisys.msml-dialog-base+xml": { "source": "iana" }, "application/vnd.radisys.msml-dialog-fax-detect+xml": { "source": "iana" }, "application/vnd.radisys.msml-dialog-fax-sendrecv+xml": { "source": "iana" }, "application/vnd.radisys.msml-dialog-group+xml": { "source": "iana" }, "application/vnd.radisys.msml-dialog-speech+xml": { "source": "iana" }, "application/vnd.radisys.msml-dialog-transform+xml": { "source": "iana" }, "application/vnd.rainstor.data": { "source": "iana" }, "application/vnd.rapid": { "source": "iana" }, "application/vnd.realvnc.bed": { "source": "iana", "extensions": ["bed"] }, "application/vnd.recordare.musicxml": { "source": "iana", "extensions": ["mxl"] }, "application/vnd.recordare.musicxml+xml": { "source": "iana", "extensions": ["musicxml"] }, "application/vnd.renlearn.rlprint": { "source": "iana" }, "application/vnd.rig.cryptonote": { "source": "iana", "extensions": ["cryptonote"] }, "application/vnd.rim.cod": { "source": "apache", "extensions": ["cod"] }, "application/vnd.rn-realmedia": { "source": "apache", "extensions": ["rm"] }, "application/vnd.rn-realmedia-vbr": { "source": "apache", "extensions": ["rmvb"] }, "application/vnd.route66.link66+xml": { "source": "iana", "extensions": ["link66"] }, "application/vnd.rs-274x": { "source": "iana" }, "application/vnd.ruckus.download": { "source": "iana" }, "application/vnd.s3sms": { "source": "iana" }, "application/vnd.sailingtracker.track": { "source": "iana", "extensions": ["st"] }, "application/vnd.sbm.cid": { "source": "iana" }, "application/vnd.sbm.mid2": { "source": "iana" }, "application/vnd.scribus": { "source": "iana" }, "application/vnd.sealed.3df": { "source": "iana" }, "application/vnd.sealed.csf": { "source": "iana" }, "application/vnd.sealed.doc": { "source": "iana" }, "application/vnd.sealed.eml": { "source": "iana" }, "application/vnd.sealed.mht": { "source": "iana" }, "application/vnd.sealed.net": { "source": "iana" }, "application/vnd.sealed.ppt": { "source": "iana" }, "application/vnd.sealed.tiff": { "source": "iana" }, "application/vnd.sealed.xls": { "source": "iana" }, "application/vnd.sealedmedia.softseal.html": { "source": "iana" }, "application/vnd.sealedmedia.softseal.pdf": { "source": "iana" }, "application/vnd.seemail": { "source": "iana", "extensions": ["see"] }, "application/vnd.sema": { "source": "iana", "extensions": ["sema"] }, "application/vnd.semd": { "source": "iana", "extensions": ["semd"] }, "application/vnd.semf": { "source": "iana", "extensions": ["semf"] }, "application/vnd.shana.informed.formdata": { "source": "iana", "extensions": ["ifm"] }, "application/vnd.shana.informed.formtemplate": { "source": "iana", "extensions": ["itp"] }, "application/vnd.shana.informed.interchange": { "source": "iana", "extensions": ["iif"] }, "application/vnd.shana.informed.package": { "source": "iana", "extensions": ["ipk"] }, "application/vnd.simtech-mindmapper": { "source": "iana", "extensions": ["twd","twds"] }, "application/vnd.siren+json": { "source": "iana", "compressible": true }, "application/vnd.smaf": { "source": "iana", "extensions": ["mmf"] }, "application/vnd.smart.notebook": { "source": "iana" }, "application/vnd.smart.teacher": { "source": "iana", "extensions": ["teacher"] }, "application/vnd.software602.filler.form+xml": { "source": "iana" }, "application/vnd.software602.filler.form-xml-zip": { "source": "iana" }, "application/vnd.solent.sdkm+xml": { "source": "iana", "extensions": ["sdkm","sdkd"] }, "application/vnd.spotfire.dxp": { "source": "iana", "extensions": ["dxp"] }, "application/vnd.spotfire.sfs": { "source": "iana", "extensions": ["sfs"] }, "application/vnd.sss-cod": { "source": "iana" }, "application/vnd.sss-dtf": { "source": "iana" }, "application/vnd.sss-ntf": { "source": "iana" }, "application/vnd.stardivision.calc": { "source": "apache", "extensions": ["sdc"] }, "application/vnd.stardivision.draw": { "source": "apache", "extensions": ["sda"] }, "application/vnd.stardivision.impress": { "source": "apache", "extensions": ["sdd"] }, "application/vnd.stardivision.math": { "source": "apache", "extensions": ["smf"] }, "application/vnd.stardivision.writer": { "source": "apache", "extensions": ["sdw","vor"] }, "application/vnd.stardivision.writer-global": { "source": "apache", "extensions": ["sgl"] }, "application/vnd.stepmania.package": { "source": "iana", "extensions": ["smzip"] }, "application/vnd.stepmania.stepchart": { "source": "iana", "extensions": ["sm"] }, "application/vnd.street-stream": { "source": "iana" }, "application/vnd.sun.wadl+xml": { "source": "iana" }, "application/vnd.sun.xml.calc": { "source": "apache", "extensions": ["sxc"] }, "application/vnd.sun.xml.calc.template": { "source": "apache", "extensions": ["stc"] }, "application/vnd.sun.xml.draw": { "source": "apache", "extensions": ["sxd"] }, "application/vnd.sun.xml.draw.template": { "source": "apache", "extensions": ["std"] }, "application/vnd.sun.xml.impress": { "source": "apache", "extensions": ["sxi"] }, "application/vnd.sun.xml.impress.template": { "source": "apache", "extensions": ["sti"] }, "application/vnd.sun.xml.math": { "source": "apache", "extensions": ["sxm"] }, "application/vnd.sun.xml.writer": { "source": "apache", "extensions": ["sxw"] }, "application/vnd.sun.xml.writer.global": { "source": "apache", "extensions": ["sxg"] }, "application/vnd.sun.xml.writer.template": { "source": "apache", "extensions": ["stw"] }, "application/vnd.sus-calendar": { "source": "iana", "extensions": ["sus","susp"] }, "application/vnd.svd": { "source": "iana", "extensions": ["svd"] }, "application/vnd.swiftview-ics": { "source": "iana" }, "application/vnd.symbian.install": { "source": "apache", "extensions": ["sis","sisx"] }, "application/vnd.syncml+xml": { "source": "iana", "extensions": ["xsm"] }, "application/vnd.syncml.dm+wbxml": { "source": "iana", "extensions": ["bdm"] }, "application/vnd.syncml.dm+xml": { "source": "iana", "extensions": ["xdm"] }, "application/vnd.syncml.dm.notification": { "source": "iana" }, "application/vnd.syncml.dmddf+wbxml": { "source": "iana" }, "application/vnd.syncml.dmddf+xml": { "source": "iana" }, "application/vnd.syncml.dmtnds+wbxml": { "source": "iana" }, "application/vnd.syncml.dmtnds+xml": { "source": "iana" }, "application/vnd.syncml.ds.notification": { "source": "iana" }, "application/vnd.tao.intent-module-archive": { "source": "iana", "extensions": ["tao"] }, "application/vnd.tcpdump.pcap": { "source": "iana", "extensions": ["pcap","cap","dmp"] }, "application/vnd.tmd.mediaflex.api+xml": { "source": "iana" }, "application/vnd.tml": { "source": "iana" }, "application/vnd.tmobile-livetv": { "source": "iana", "extensions": ["tmo"] }, "application/vnd.trid.tpt": { "source": "iana", "extensions": ["tpt"] }, "application/vnd.triscape.mxs": { "source": "iana", "extensions": ["mxs"] }, "application/vnd.trueapp": { "source": "iana", "extensions": ["tra"] }, "application/vnd.truedoc": { "source": "iana" }, "application/vnd.ubisoft.webplayer": { "source": "iana" }, "application/vnd.ufdl": { "source": "iana", "extensions": ["ufd","ufdl"] }, "application/vnd.uiq.theme": { "source": "iana", "extensions": ["utz"] }, "application/vnd.umajin": { "source": "iana", "extensions": ["umj"] }, "application/vnd.unity": { "source": "iana", "extensions": ["unityweb"] }, "application/vnd.uoml+xml": { "source": "iana", "extensions": ["uoml"] }, "application/vnd.uplanet.alert": { "source": "iana" }, "application/vnd.uplanet.alert-wbxml": { "source": "iana" }, "application/vnd.uplanet.bearer-choice": { "source": "iana" }, "application/vnd.uplanet.bearer-choice-wbxml": { "source": "iana" }, "application/vnd.uplanet.cacheop": { "source": "iana" }, "application/vnd.uplanet.cacheop-wbxml": { "source": "iana" }, "application/vnd.uplanet.channel": { "source": "iana" }, "application/vnd.uplanet.channel-wbxml": { "source": "iana" }, "application/vnd.uplanet.list": { "source": "iana" }, "application/vnd.uplanet.list-wbxml": { "source": "iana" }, "application/vnd.uplanet.listcmd": { "source": "iana" }, "application/vnd.uplanet.listcmd-wbxml": { "source": "iana" }, "application/vnd.uplanet.signal": { "source": "iana" }, "application/vnd.uri-map": { "source": "iana" }, "application/vnd.valve.source.material": { "source": "iana" }, "application/vnd.vcx": { "source": "iana", "extensions": ["vcx"] }, "application/vnd.vd-study": { "source": "iana" }, "application/vnd.vectorworks": { "source": "iana" }, "application/vnd.verimatrix.vcas": { "source": "iana" }, "application/vnd.vidsoft.vidconference": { "source": "iana" }, "application/vnd.visio": { "source": "iana", "extensions": ["vsd","vst","vss","vsw"] }, "application/vnd.visionary": { "source": "iana", "extensions": ["vis"] }, "application/vnd.vividence.scriptfile": { "source": "iana" }, "application/vnd.vsf": { "source": "iana", "extensions": ["vsf"] }, "application/vnd.wap.sic": { "source": "iana" }, "application/vnd.wap.slc": { "source": "iana" }, "application/vnd.wap.wbxml": { "source": "iana", "extensions": ["wbxml"] }, "application/vnd.wap.wmlc": { "source": "iana", "extensions": ["wmlc"] }, "application/vnd.wap.wmlscriptc": { "source": "iana", "extensions": ["wmlsc"] }, "application/vnd.webturbo": { "source": "iana", "extensions": ["wtb"] }, "application/vnd.wfa.p2p": { "source": "iana" }, "application/vnd.wfa.wsc": { "source": "iana" }, "application/vnd.windows.devicepairing": { "source": "iana" }, "application/vnd.wmc": { "source": "iana" }, "application/vnd.wmf.bootstrap": { "source": "iana" }, "application/vnd.wolfram.mathematica": { "source": "iana" }, "application/vnd.wolfram.mathematica.package": { "source": "iana" }, "application/vnd.wolfram.player": { "source": "iana", "extensions": ["nbp"] }, "application/vnd.wordperfect": { "source": "iana", "extensions": ["wpd"] }, "application/vnd.wqd": { "source": "iana", "extensions": ["wqd"] }, "application/vnd.wrq-hp3000-labelled": { "source": "iana" }, "application/vnd.wt.stf": { "source": "iana", "extensions": ["stf"] }, "application/vnd.wv.csp+wbxml": { "source": "iana" }, "application/vnd.wv.csp+xml": { "source": "iana" }, "application/vnd.wv.ssp+xml": { "source": "iana" }, "application/vnd.xacml+json": { "source": "iana", "compressible": true }, "application/vnd.xara": { "source": "iana", "extensions": ["xar"] }, "application/vnd.xfdl": { "source": "iana", "extensions": ["xfdl"] }, "application/vnd.xfdl.webform": { "source": "iana" }, "application/vnd.xmi+xml": { "source": "iana" }, "application/vnd.xmpie.cpkg": { "source": "iana" }, "application/vnd.xmpie.dpkg": { "source": "iana" }, "application/vnd.xmpie.plan": { "source": "iana" }, "application/vnd.xmpie.ppkg": { "source": "iana" }, "application/vnd.xmpie.xlim": { "source": "iana" }, "application/vnd.yamaha.hv-dic": { "source": "iana", "extensions": ["hvd"] }, "application/vnd.yamaha.hv-script": { "source": "iana", "extensions": ["hvs"] }, "application/vnd.yamaha.hv-voice": { "source": "iana", "extensions": ["hvp"] }, "application/vnd.yamaha.openscoreformat": { "source": "iana", "extensions": ["osf"] }, "application/vnd.yamaha.openscoreformat.osfpvg+xml": { "source": "iana", "extensions": ["osfpvg"] }, "application/vnd.yamaha.remote-setup": { "source": "iana" }, "application/vnd.yamaha.smaf-audio": { "source": "iana", "extensions": ["saf"] }, "application/vnd.yamaha.smaf-phrase": { "source": "iana", "extensions": ["spf"] }, "application/vnd.yamaha.through-ngn": { "source": "iana" }, "application/vnd.yamaha.tunnel-udpencap": { "source": "iana" }, "application/vnd.yaoweme": { "source": "iana" }, "application/vnd.yellowriver-custom-menu": { "source": "iana", "extensions": ["cmp"] }, "application/vnd.zul": { "source": "iana", "extensions": ["zir","zirz"] }, "application/vnd.zzazz.deck+xml": { "source": "iana", "extensions": ["zaz"] }, "application/voicexml+xml": { "source": "iana", "extensions": ["vxml"] }, "application/vq-rtcpxr": { "source": "iana" }, "application/watcherinfo+xml": { "source": "iana" }, "application/whoispp-query": { "source": "iana" }, "application/whoispp-response": { "source": "iana" }, "application/widget": { "source": "iana", "extensions": ["wgt"] }, "application/winhlp": { "source": "apache", "extensions": ["hlp"] }, "application/wita": { "source": "iana" }, "application/wordperfect5.1": { "source": "iana" }, "application/wsdl+xml": { "source": "iana", "extensions": ["wsdl"] }, "application/wspolicy+xml": { "source": "iana", "extensions": ["wspolicy"] }, "application/x-7z-compressed": { "source": "apache", "compressible": false, "extensions": ["7z"] }, "application/x-abiword": { "source": "apache", "extensions": ["abw"] }, "application/x-ace-compressed": { "source": "apache", "extensions": ["ace"] }, "application/x-amf": { "source": "apache" }, "application/x-apple-diskimage": { "source": "apache", "extensions": ["dmg"] }, "application/x-authorware-bin": { "source": "apache", "extensions": ["aab","x32","u32","vox"] }, "application/x-authorware-map": { "source": "apache", "extensions": ["aam"] }, "application/x-authorware-seg": { "source": "apache", "extensions": ["aas"] }, "application/x-bcpio": { "source": "apache", "extensions": ["bcpio"] }, "application/x-bdoc": { "compressible": false, "extensions": ["bdoc"] }, "application/x-bittorrent": { "source": "apache", "extensions": ["torrent"] }, "application/x-blorb": { "source": "apache", "extensions": ["blb","blorb"] }, "application/x-bzip": { "source": "apache", "compressible": false, "extensions": ["bz"] }, "application/x-bzip2": { "source": "apache", "compressible": false, "extensions": ["bz2","boz"] }, "application/x-cbr": { "source": "apache", "extensions": ["cbr","cba","cbt","cbz","cb7"] }, "application/x-cdlink": { "source": "apache", "extensions": ["vcd"] }, "application/x-cfs-compressed": { "source": "apache", "extensions": ["cfs"] }, "application/x-chat": { "source": "apache", "extensions": ["chat"] }, "application/x-chess-pgn": { "source": "apache", "extensions": ["pgn"] }, "application/x-chrome-extension": { "extensions": ["crx"] }, "application/x-cocoa": { "source": "nginx", "extensions": ["cco"] }, "application/x-compress": { "source": "apache" }, "application/x-conference": { "source": "apache", "extensions": ["nsc"] }, "application/x-cpio": { "source": "apache", "extensions": ["cpio"] }, "application/x-csh": { "source": "apache", "extensions": ["csh"] }, "application/x-deb": { "compressible": false }, "application/x-debian-package": { "source": "apache", "extensions": ["deb","udeb"] }, "application/x-dgc-compressed": { "source": "apache", "extensions": ["dgc"] }, "application/x-director": { "source": "apache", "extensions": ["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"] }, "application/x-doom": { "source": "apache", "extensions": ["wad"] }, "application/x-dtbncx+xml": { "source": "apache", "extensions": ["ncx"] }, "application/x-dtbook+xml": { "source": "apache", "extensions": ["dtb"] }, "application/x-dtbresource+xml": { "source": "apache", "extensions": ["res"] }, "application/x-dvi": { "source": "apache", "compressible": false, "extensions": ["dvi"] }, "application/x-envoy": { "source": "apache", "extensions": ["evy"] }, "application/x-eva": { "source": "apache", "extensions": ["eva"] }, "application/x-font-bdf": { "source": "apache", "extensions": ["bdf"] }, "application/x-font-dos": { "source": "apache" }, "application/x-font-framemaker": { "source": "apache" }, "application/x-font-ghostscript": { "source": "apache", "extensions": ["gsf"] }, "application/x-font-libgrx": { "source": "apache" }, "application/x-font-linux-psf": { "source": "apache", "extensions": ["psf"] }, "application/x-font-otf": { "source": "apache", "compressible": true, "extensions": ["otf"] }, "application/x-font-pcf": { "source": "apache", "extensions": ["pcf"] }, "application/x-font-snf": { "source": "apache", "extensions": ["snf"] }, "application/x-font-speedo": { "source": "apache" }, "application/x-font-sunos-news": { "source": "apache" }, "application/x-font-ttf": { "source": "apache", "compressible": true, "extensions": ["ttf","ttc"] }, "application/x-font-type1": { "source": "apache", "extensions": ["pfa","pfb","pfm","afm"] }, "application/x-font-vfont": { "source": "apache" }, "application/x-freearc": { "source": "apache", "extensions": ["arc"] }, "application/x-futuresplash": { "source": "apache", "extensions": ["spl"] }, "application/x-gca-compressed": { "source": "apache", "extensions": ["gca"] }, "application/x-glulx": { "source": "apache", "extensions": ["ulx"] }, "application/x-gnumeric": { "source": "apache", "extensions": ["gnumeric"] }, "application/x-gramps-xml": { "source": "apache", "extensions": ["gramps"] }, "application/x-gtar": { "source": "apache", "extensions": ["gtar"] }, "application/x-gzip": { "source": "apache" }, "application/x-hdf": { "source": "apache", "extensions": ["hdf"] }, "application/x-httpd-php": { "compressible": true, "extensions": ["php"] }, "application/x-install-instructions": { "source": "apache", "extensions": ["install"] }, "application/x-iso9660-image": { "source": "apache", "extensions": ["iso"] }, "application/x-java-archive-diff": { "source": "nginx", "extensions": ["jardiff"] }, "application/x-java-jnlp-file": { "source": "apache", "compressible": false, "extensions": ["jnlp"] }, "application/x-javascript": { "compressible": true }, "application/x-latex": { "source": "apache", "compressible": false, "extensions": ["latex"] }, "application/x-lua-bytecode": { "extensions": ["luac"] }, "application/x-lzh-compressed": { "source": "apache", "extensions": ["lzh","lha"] }, "application/x-makeself": { "source": "nginx", "extensions": ["run"] }, "application/x-mie": { "source": "apache", "extensions": ["mie"] }, "application/x-mobipocket-ebook": { "source": "apache", "extensions": ["prc","mobi"] }, "application/x-mpegurl": { "compressible": false }, "application/x-ms-application": { "source": "apache", "extensions": ["application"] }, "application/x-ms-shortcut": { "source": "apache", "extensions": ["lnk"] }, "application/x-ms-wmd": { "source": "apache", "extensions": ["wmd"] }, "application/x-ms-wmz": { "source": "apache", "extensions": ["wmz"] }, "application/x-ms-xbap": { "source": "apache", "extensions": ["xbap"] }, "application/x-msaccess": { "source": "apache", "extensions": ["mdb"] }, "application/x-msbinder": { "source": "apache", "extensions": ["obd"] }, "application/x-mscardfile": { "source": "apache", "extensions": ["crd"] }, "application/x-msclip": { "source": "apache", "extensions": ["clp"] }, "application/x-msdos-program": { "extensions": ["exe"] }, "application/x-msdownload": { "source": "apache", "extensions": ["exe","dll","com","bat","msi"] }, "application/x-msmediaview": { "source": "apache", "extensions": ["mvb","m13","m14"] }, "application/x-msmetafile": { "source": "apache", "extensions": ["wmf","wmz","emf","emz"] }, "application/x-msmoney": { "source": "apache", "extensions": ["mny"] }, "application/x-mspublisher": { "source": "apache", "extensions": ["pub"] }, "application/x-msschedule": { "source": "apache", "extensions": ["scd"] }, "application/x-msterminal": { "source": "apache", "extensions": ["trm"] }, "application/x-mswrite": { "source": "apache", "extensions": ["wri"] }, "application/x-netcdf": { "source": "apache", "extensions": ["nc","cdf"] }, "application/x-ns-proxy-autoconfig": { "compressible": true, "extensions": ["pac"] }, "application/x-nzb": { "source": "apache", "extensions": ["nzb"] }, "application/x-perl": { "source": "nginx", "extensions": ["pl","pm"] }, "application/x-pilot": { "source": "nginx", "extensions": ["prc","pdb"] }, "application/x-pkcs12": { "source": "apache", "compressible": false, "extensions": ["p12","pfx"] }, "application/x-pkcs7-certificates": { "source": "apache", "extensions": ["p7b","spc"] }, "application/x-pkcs7-certreqresp": { "source": "apache", "extensions": ["p7r"] }, "application/x-rar-compressed": { "source": "apache", "compressible": false, "extensions": ["rar"] }, "application/x-redhat-package-manager": { "source": "nginx", "extensions": ["rpm"] }, "application/x-research-info-systems": { "source": "apache", "extensions": ["ris"] }, "application/x-sea": { "source": "nginx", "extensions": ["sea"] }, "application/x-sh": { "source": "apache", "compressible": true, "extensions": ["sh"] }, "application/x-shar": { "source": "apache", "extensions": ["shar"] }, "application/x-shockwave-flash": { "source": "apache", "compressible": false, "extensions": ["swf"] }, "application/x-silverlight-app": { "source": "apache", "extensions": ["xap"] }, "application/x-sql": { "source": "apache", "extensions": ["sql"] }, "application/x-stuffit": { "source": "apache", "compressible": false, "extensions": ["sit"] }, "application/x-stuffitx": { "source": "apache", "extensions": ["sitx"] }, "application/x-subrip": { "source": "apache", "extensions": ["srt"] }, "application/x-sv4cpio": { "source": "apache", "extensions": ["sv4cpio"] }, "application/x-sv4crc": { "source": "apache", "extensions": ["sv4crc"] }, "application/x-t3vm-image": { "source": "apache", "extensions": ["t3"] }, "application/x-tads": { "source": "apache", "extensions": ["gam"] }, "application/x-tar": { "source": "apache", "compressible": true, "extensions": ["tar"] }, "application/x-tcl": { "source": "apache", "extensions": ["tcl","tk"] }, "application/x-tex": { "source": "apache", "extensions": ["tex"] }, "application/x-tex-tfm": { "source": "apache", "extensions": ["tfm"] }, "application/x-texinfo": { "source": "apache", "extensions": ["texinfo","texi"] }, "application/x-tgif": { "source": "apache", "extensions": ["obj"] }, "application/x-ustar": { "source": "apache", "extensions": ["ustar"] }, "application/x-wais-source": { "source": "apache", "extensions": ["src"] }, "application/x-web-app-manifest+json": { "compressible": true, "extensions": ["webapp"] }, "application/x-www-form-urlencoded": { "source": "iana", "compressible": true }, "application/x-x509-ca-cert": { "source": "apache", "extensions": ["der","crt","pem"] }, "application/x-xfig": { "source": "apache", "extensions": ["fig"] }, "application/x-xliff+xml": { "source": "apache", "extensions": ["xlf"] }, "application/x-xpinstall": { "source": "apache", "compressible": false, "extensions": ["xpi"] }, "application/x-xz": { "source": "apache", "extensions": ["xz"] }, "application/x-zmachine": { "source": "apache", "extensions": ["z1","z2","z3","z4","z5","z6","z7","z8"] }, "application/x400-bp": { "source": "iana" }, "application/xacml+xml": { "source": "iana" }, "application/xaml+xml": { "source": "apache", "extensions": ["xaml"] }, "application/xcap-att+xml": { "source": "iana" }, "application/xcap-caps+xml": { "source": "iana" }, "application/xcap-diff+xml": { "source": "iana", "extensions": ["xdf"] }, "application/xcap-el+xml": { "source": "iana" }, "application/xcap-error+xml": { "source": "iana" }, "application/xcap-ns+xml": { "source": "iana" }, "application/xcon-conference-info+xml": { "source": "iana" }, "application/xcon-conference-info-diff+xml": { "source": "iana" }, "application/xenc+xml": { "source": "iana", "extensions": ["xenc"] }, "application/xhtml+xml": { "source": "iana", "compressible": true, "extensions": ["xhtml","xht"] }, "application/xhtml-voice+xml": { "source": "apache" }, "application/xml": { "source": "iana", "compressible": true, "extensions": ["xml","xsl","xsd"] }, "application/xml-dtd": { "source": "iana", "compressible": true, "extensions": ["dtd"] }, "application/xml-external-parsed-entity": { "source": "iana" }, "application/xml-patch+xml": { "source": "iana" }, "application/xmpp+xml": { "source": "iana" }, "application/xop+xml": { "source": "iana", "compressible": true, "extensions": ["xop"] }, "application/xproc+xml": { "source": "apache", "extensions": ["xpl"] }, "application/xslt+xml": { "source": "iana", "extensions": ["xslt"] }, "application/xspf+xml": { "source": "apache", "extensions": ["xspf"] }, "application/xv+xml": { "source": "iana", "extensions": ["mxml","xhvml","xvml","xvm"] }, "application/yang": { "source": "iana", "extensions": ["yang"] }, "application/yin+xml": { "source": "iana", "extensions": ["yin"] }, "application/zip": { "source": "iana", "compressible": false, "extensions": ["zip"] }, "application/zlib": { "source": "iana" }, "audio/1d-interleaved-parityfec": { "source": "iana" }, "audio/32kadpcm": { "source": "iana" }, "audio/3gpp": { "source": "iana" }, "audio/3gpp2": { "source": "iana" }, "audio/ac3": { "source": "iana" }, "audio/adpcm": { "source": "apache", "extensions": ["adp"] }, "audio/amr": { "source": "iana" }, "audio/amr-wb": { "source": "iana" }, "audio/amr-wb+": { "source": "iana" }, "audio/aptx": { "source": "iana" }, "audio/asc": { "source": "iana" }, "audio/atrac-advanced-lossless": { "source": "iana" }, "audio/atrac-x": { "source": "iana" }, "audio/atrac3": { "source": "iana" }, "audio/basic": { "source": "iana", "compressible": false, "extensions": ["au","snd"] }, "audio/bv16": { "source": "iana" }, "audio/bv32": { "source": "iana" }, "audio/clearmode": { "source": "iana" }, "audio/cn": { "source": "iana" }, "audio/dat12": { "source": "iana" }, "audio/dls": { "source": "iana" }, "audio/dsr-es201108": { "source": "iana" }, "audio/dsr-es202050": { "source": "iana" }, "audio/dsr-es202211": { "source": "iana" }, "audio/dsr-es202212": { "source": "iana" }, "audio/dv": { "source": "iana" }, "audio/dvi4": { "source": "iana" }, "audio/eac3": { "source": "iana" }, "audio/encaprtp": { "source": "iana" }, "audio/evrc": { "source": "iana" }, "audio/evrc-qcp": { "source": "iana" }, "audio/evrc0": { "source": "iana" }, "audio/evrc1": { "source": "iana" }, "audio/evrcb": { "source": "iana" }, "audio/evrcb0": { "source": "iana" }, "audio/evrcb1": { "source": "iana" }, "audio/evrcnw": { "source": "iana" }, "audio/evrcnw0": { "source": "iana" }, "audio/evrcnw1": { "source": "iana" }, "audio/evrcwb": { "source": "iana" }, "audio/evrcwb0": { "source": "iana" }, "audio/evrcwb1": { "source": "iana" }, "audio/evs": { "source": "iana" }, "audio/fwdred": { "source": "iana" }, "audio/g711-0": { "source": "iana" }, "audio/g719": { "source": "iana" }, "audio/g722": { "source": "iana" }, "audio/g7221": { "source": "iana" }, "audio/g723": { "source": "iana" }, "audio/g726-16": { "source": "iana" }, "audio/g726-24": { "source": "iana" }, "audio/g726-32": { "source": "iana" }, "audio/g726-40": { "source": "iana" }, "audio/g728": { "source": "iana" }, "audio/g729": { "source": "iana" }, "audio/g7291": { "source": "iana" }, "audio/g729d": { "source": "iana" }, "audio/g729e": { "source": "iana" }, "audio/gsm": { "source": "iana" }, "audio/gsm-efr": { "source": "iana" }, "audio/gsm-hr-08": { "source": "iana" }, "audio/ilbc": { "source": "iana" }, "audio/ip-mr_v2.5": { "source": "iana" }, "audio/isac": { "source": "apache" }, "audio/l16": { "source": "iana" }, "audio/l20": { "source": "iana" }, "audio/l24": { "source": "iana", "compressible": false }, "audio/l8": { "source": "iana" }, "audio/lpc": { "source": "iana" }, "audio/midi": { "source": "apache", "extensions": ["mid","midi","kar","rmi"] }, "audio/mobile-xmf": { "source": "iana" }, "audio/mp4": { "source": "iana", "compressible": false, "extensions": ["mp4a","m4a"] }, "audio/mp4a-latm": { "source": "iana" }, "audio/mpa": { "source": "iana" }, "audio/mpa-robust": { "source": "iana" }, "audio/mpeg": { "source": "iana", "compressible": false, "extensions": ["mpga","mp2","mp2a","mp3","m2a","m3a"] }, "audio/mpeg4-generic": { "source": "iana" }, "audio/musepack": { "source": "apache" }, "audio/ogg": { "source": "iana", "compressible": false, "extensions": ["oga","ogg","spx"] }, "audio/opus": { "source": "iana" }, "audio/parityfec": { "source": "iana" }, "audio/pcma": { "source": "iana" }, "audio/pcma-wb": { "source": "iana" }, "audio/pcmu": { "source": "iana" }, "audio/pcmu-wb": { "source": "iana" }, "audio/prs.sid": { "source": "iana" }, "audio/qcelp": { "source": "iana" }, "audio/raptorfec": { "source": "iana" }, "audio/red": { "source": "iana" }, "audio/rtp-enc-aescm128": { "source": "iana" }, "audio/rtp-midi": { "source": "iana" }, "audio/rtploopback": { "source": "iana" }, "audio/rtx": { "source": "iana" }, "audio/s3m": { "source": "apache", "extensions": ["s3m"] }, "audio/silk": { "source": "apache", "extensions": ["sil"] }, "audio/smv": { "source": "iana" }, "audio/smv-qcp": { "source": "iana" }, "audio/smv0": { "source": "iana" }, "audio/sp-midi": { "source": "iana" }, "audio/speex": { "source": "iana" }, "audio/t140c": { "source": "iana" }, "audio/t38": { "source": "iana" }, "audio/telephone-event": { "source": "iana" }, "audio/tone": { "source": "iana" }, "audio/uemclip": { "source": "iana" }, "audio/ulpfec": { "source": "iana" }, "audio/vdvi": { "source": "iana" }, "audio/vmr-wb": { "source": "iana" }, "audio/vnd.3gpp.iufp": { "source": "iana" }, "audio/vnd.4sb": { "source": "iana" }, "audio/vnd.audiokoz": { "source": "iana" }, "audio/vnd.celp": { "source": "iana" }, "audio/vnd.cisco.nse": { "source": "iana" }, "audio/vnd.cmles.radio-events": { "source": "iana" }, "audio/vnd.cns.anp1": { "source": "iana" }, "audio/vnd.cns.inf1": { "source": "iana" }, "audio/vnd.dece.audio": { "source": "iana", "extensions": ["uva","uvva"] }, "audio/vnd.digital-winds": { "source": "iana", "extensions": ["eol"] }, "audio/vnd.dlna.adts": { "source": "iana" }, "audio/vnd.dolby.heaac.1": { "source": "iana" }, "audio/vnd.dolby.heaac.2": { "source": "iana" }, "audio/vnd.dolby.mlp": { "source": "iana" }, "audio/vnd.dolby.mps": { "source": "iana" }, "audio/vnd.dolby.pl2": { "source": "iana" }, "audio/vnd.dolby.pl2x": { "source": "iana" }, "audio/vnd.dolby.pl2z": { "source": "iana" }, "audio/vnd.dolby.pulse.1": { "source": "iana" }, "audio/vnd.dra": { "source": "iana", "extensions": ["dra"] }, "audio/vnd.dts": { "source": "iana", "extensions": ["dts"] }, "audio/vnd.dts.hd": { "source": "iana", "extensions": ["dtshd"] }, "audio/vnd.dvb.file": { "source": "iana" }, "audio/vnd.everad.plj": { "source": "iana" }, "audio/vnd.hns.audio": { "source": "iana" }, "audio/vnd.lucent.voice": { "source": "iana", "extensions": ["lvp"] }, "audio/vnd.ms-playready.media.pya": { "source": "iana", "extensions": ["pya"] }, "audio/vnd.nokia.mobile-xmf": { "source": "iana" }, "audio/vnd.nortel.vbk": { "source": "iana" }, "audio/vnd.nuera.ecelp4800": { "source": "iana", "extensions": ["ecelp4800"] }, "audio/vnd.nuera.ecelp7470": { "source": "iana", "extensions": ["ecelp7470"] }, "audio/vnd.nuera.ecelp9600": { "source": "iana", "extensions": ["ecelp9600"] }, "audio/vnd.octel.sbc": { "source": "iana" }, "audio/vnd.qcelp": { "source": "iana" }, "audio/vnd.rhetorex.32kadpcm": { "source": "iana" }, "audio/vnd.rip": { "source": "iana", "extensions": ["rip"] }, "audio/vnd.rn-realaudio": { "compressible": false }, "audio/vnd.sealedmedia.softseal.mpeg": { "source": "iana" }, "audio/vnd.vmx.cvsd": { "source": "iana" }, "audio/vnd.wave": { "compressible": false }, "audio/vorbis": { "source": "iana", "compressible": false }, "audio/vorbis-config": { "source": "iana" }, "audio/wav": { "compressible": false, "extensions": ["wav"] }, "audio/wave": { "compressible": false, "extensions": ["wav"] }, "audio/webm": { "source": "apache", "compressible": false, "extensions": ["weba"] }, "audio/x-aac": { "source": "apache", "compressible": false, "extensions": ["aac"] }, "audio/x-aiff": { "source": "apache", "extensions": ["aif","aiff","aifc"] }, "audio/x-caf": { "source": "apache", "compressible": false, "extensions": ["caf"] }, "audio/x-flac": { "source": "apache", "extensions": ["flac"] }, "audio/x-m4a": { "source": "nginx", "extensions": ["m4a"] }, "audio/x-matroska": { "source": "apache", "extensions": ["mka"] }, "audio/x-mpegurl": { "source": "apache", "extensions": ["m3u"] }, "audio/x-ms-wax": { "source": "apache", "extensions": ["wax"] }, "audio/x-ms-wma": { "source": "apache", "extensions": ["wma"] }, "audio/x-pn-realaudio": { "source": "apache", "extensions": ["ram","ra"] }, "audio/x-pn-realaudio-plugin": { "source": "apache", "extensions": ["rmp"] }, "audio/x-realaudio": { "source": "nginx", "extensions": ["ra"] }, "audio/x-tta": { "source": "apache" }, "audio/x-wav": { "source": "apache", "extensions": ["wav"] }, "audio/xm": { "source": "apache", "extensions": ["xm"] }, "chemical/x-cdx": { "source": "apache", "extensions": ["cdx"] }, "chemical/x-cif": { "source": "apache", "extensions": ["cif"] }, "chemical/x-cmdf": { "source": "apache", "extensions": ["cmdf"] }, "chemical/x-cml": { "source": "apache", "extensions": ["cml"] }, "chemical/x-csml": { "source": "apache", "extensions": ["csml"] }, "chemical/x-pdb": { "source": "apache" }, "chemical/x-xyz": { "source": "apache", "extensions": ["xyz"] }, "font/opentype": { "compressible": true, "extensions": ["otf"] }, "image/bmp": { "source": "apache", "compressible": true, "extensions": ["bmp"] }, "image/cgm": { "source": "iana", "extensions": ["cgm"] }, "image/fits": { "source": "iana" }, "image/g3fax": { "source": "iana", "extensions": ["g3"] }, "image/gif": { "source": "iana", "compressible": false, "extensions": ["gif"] }, "image/ief": { "source": "iana", "extensions": ["ief"] }, "image/jp2": { "source": "iana" }, "image/jpeg": { "source": "iana", "compressible": false, "extensions": ["jpeg","jpg","jpe"] }, "image/jpm": { "source": "iana" }, "image/jpx": { "source": "iana" }, "image/ktx": { "source": "iana", "extensions": ["ktx"] }, "image/naplps": { "source": "iana" }, "image/pjpeg": { "compressible": false }, "image/png": { "source": "iana", "compressible": false, "extensions": ["png"] }, "image/prs.btif": { "source": "iana", "extensions": ["btif"] }, "image/prs.pti": { "source": "iana" }, "image/pwg-raster": { "source": "iana" }, "image/sgi": { "source": "apache", "extensions": ["sgi"] }, "image/svg+xml": { "source": "iana", "compressible": true, "extensions": ["svg","svgz"] }, "image/t38": { "source": "iana" }, "image/tiff": { "source": "iana", "compressible": false, "extensions": ["tiff","tif"] }, "image/tiff-fx": { "source": "iana" }, "image/vnd.adobe.photoshop": { "source": "iana", "compressible": true, "extensions": ["psd"] }, "image/vnd.airzip.accelerator.azv": { "source": "iana" }, "image/vnd.cns.inf2": { "source": "iana" }, "image/vnd.dece.graphic": { "source": "iana", "extensions": ["uvi","uvvi","uvg","uvvg"] }, "image/vnd.djvu": { "source": "iana", "extensions": ["djvu","djv"] }, "image/vnd.dvb.subtitle": { "source": "iana", "extensions": ["sub"] }, "image/vnd.dwg": { "source": "iana", "extensions": ["dwg"] }, "image/vnd.dxf": { "source": "iana", "extensions": ["dxf"] }, "image/vnd.fastbidsheet": { "source": "iana", "extensions": ["fbs"] }, "image/vnd.fpx": { "source": "iana", "extensions": ["fpx"] }, "image/vnd.fst": { "source": "iana", "extensions": ["fst"] }, "image/vnd.fujixerox.edmics-mmr": { "source": "iana", "extensions": ["mmr"] }, "image/vnd.fujixerox.edmics-rlc": { "source": "iana", "extensions": ["rlc"] }, "image/vnd.globalgraphics.pgb": { "source": "iana" }, "image/vnd.microsoft.icon": { "source": "iana" }, "image/vnd.mix": { "source": "iana" }, "image/vnd.mozilla.apng": { "source": "iana" }, "image/vnd.ms-modi": { "source": "iana", "extensions": ["mdi"] }, "image/vnd.ms-photo": { "source": "apache", "extensions": ["wdp"] }, "image/vnd.net-fpx": { "source": "iana", "extensions": ["npx"] }, "image/vnd.radiance": { "source": "iana" }, "image/vnd.sealed.png": { "source": "iana" }, "image/vnd.sealedmedia.softseal.gif": { "source": "iana" }, "image/vnd.sealedmedia.softseal.jpg": { "source": "iana" }, "image/vnd.svf": { "source": "iana" }, "image/vnd.tencent.tap": { "source": "iana" }, "image/vnd.valve.source.texture": { "source": "iana" }, "image/vnd.wap.wbmp": { "source": "iana", "extensions": ["wbmp"] }, "image/vnd.xiff": { "source": "iana", "extensions": ["xif"] }, "image/vnd.zbrush.pcx": { "source": "iana" }, "image/webp": { "source": "apache", "extensions": ["webp"] }, "image/x-3ds": { "source": "apache", "extensions": ["3ds"] }, "image/x-cmu-raster": { "source": "apache", "extensions": ["ras"] }, "image/x-cmx": { "source": "apache", "extensions": ["cmx"] }, "image/x-freehand": { "source": "apache", "extensions": ["fh","fhc","fh4","fh5","fh7"] }, "image/x-icon": { "source": "apache", "compressible": true, "extensions": ["ico"] }, "image/x-jng": { "source": "nginx", "extensions": ["jng"] }, "image/x-mrsid-image": { "source": "apache", "extensions": ["sid"] }, "image/x-ms-bmp": { "source": "nginx", "compressible": true, "extensions": ["bmp"] }, "image/x-pcx": { "source": "apache", "extensions": ["pcx"] }, "image/x-pict": { "source": "apache", "extensions": ["pic","pct"] }, "image/x-portable-anymap": { "source": "apache", "extensions": ["pnm"] }, "image/x-portable-bitmap": { "source": "apache", "extensions": ["pbm"] }, "image/x-portable-graymap": { "source": "apache", "extensions": ["pgm"] }, "image/x-portable-pixmap": { "source": "apache", "extensions": ["ppm"] }, "image/x-rgb": { "source": "apache", "extensions": ["rgb"] }, "image/x-tga": { "source": "apache", "extensions": ["tga"] }, "image/x-xbitmap": { "source": "apache", "extensions": ["xbm"] }, "image/x-xcf": { "compressible": false }, "image/x-xpixmap": { "source": "apache", "extensions": ["xpm"] }, "image/x-xwindowdump": { "source": "apache", "extensions": ["xwd"] }, "message/cpim": { "source": "iana" }, "message/delivery-status": { "source": "iana" }, "message/disposition-notification": { "source": "iana" }, "message/external-body": { "source": "iana" }, "message/feedback-report": { "source": "iana" }, "message/global": { "source": "iana" }, "message/global-delivery-status": { "source": "iana" }, "message/global-disposition-notification": { "source": "iana" }, "message/global-headers": { "source": "iana" }, "message/http": { "source": "iana", "compressible": false }, "message/imdn+xml": { "source": "iana", "compressible": true }, "message/news": { "source": "iana" }, "message/partial": { "source": "iana", "compressible": false }, "message/rfc822": { "source": "iana", "compressible": true, "extensions": ["eml","mime"] }, "message/s-http": { "source": "iana" }, "message/sip": { "source": "iana" }, "message/sipfrag": { "source": "iana" }, "message/tracking-status": { "source": "iana" }, "message/vnd.si.simp": { "source": "iana" }, "message/vnd.wfa.wsc": { "source": "iana" }, "model/iges": { "source": "iana", "compressible": false, "extensions": ["igs","iges"] }, "model/mesh": { "source": "iana", "compressible": false, "extensions": ["msh","mesh","silo"] }, "model/vnd.collada+xml": { "source": "iana", "extensions": ["dae"] }, "model/vnd.dwf": { "source": "iana", "extensions": ["dwf"] }, "model/vnd.flatland.3dml": { "source": "iana" }, "model/vnd.gdl": { "source": "iana", "extensions": ["gdl"] }, "model/vnd.gs-gdl": { "source": "apache" }, "model/vnd.gs.gdl": { "source": "iana" }, "model/vnd.gtw": { "source": "iana", "extensions": ["gtw"] }, "model/vnd.moml+xml": { "source": "iana" }, "model/vnd.mts": { "source": "iana", "extensions": ["mts"] }, "model/vnd.opengex": { "source": "iana" }, "model/vnd.parasolid.transmit.binary": { "source": "iana" }, "model/vnd.parasolid.transmit.text": { "source": "iana" }, "model/vnd.valve.source.compiled-map": { "source": "iana" }, "model/vnd.vtu": { "source": "iana", "extensions": ["vtu"] }, "model/vrml": { "source": "iana", "compressible": false, "extensions": ["wrl","vrml"] }, "model/x3d+binary": { "source": "apache", "compressible": false, "extensions": ["x3db","x3dbz"] }, "model/x3d+fastinfoset": { "source": "iana" }, "model/x3d+vrml": { "source": "apache", "compressible": false, "extensions": ["x3dv","x3dvz"] }, "model/x3d+xml": { "source": "iana", "compressible": true, "extensions": ["x3d","x3dz"] }, "model/x3d-vrml": { "source": "iana" }, "multipart/alternative": { "source": "iana", "compressible": false }, "multipart/appledouble": { "source": "iana" }, "multipart/byteranges": { "source": "iana" }, "multipart/digest": { "source": "iana" }, "multipart/encrypted": { "source": "iana", "compressible": false }, "multipart/form-data": { "source": "iana", "compressible": false }, "multipart/header-set": { "source": "iana" }, "multipart/mixed": { "source": "iana", "compressible": false }, "multipart/parallel": { "source": "iana" }, "multipart/related": { "source": "iana", "compressible": false }, "multipart/report": { "source": "iana" }, "multipart/signed": { "source": "iana", "compressible": false }, "multipart/voice-message": { "source": "iana" }, "multipart/x-mixed-replace": { "source": "iana" }, "text/1d-interleaved-parityfec": { "source": "iana" }, "text/cache-manifest": { "source": "iana", "compressible": true, "extensions": ["appcache","manifest"] }, "text/calendar": { "source": "iana", "extensions": ["ics","ifb"] }, "text/calender": { "compressible": true }, "text/cmd": { "compressible": true }, "text/coffeescript": { "extensions": ["coffee","litcoffee"] }, "text/css": { "source": "iana", "compressible": true, "extensions": ["css"] }, "text/csv": { "source": "iana", "compressible": true, "extensions": ["csv"] }, "text/csv-schema": { "source": "iana" }, "text/directory": { "source": "iana" }, "text/dns": { "source": "iana" }, "text/ecmascript": { "source": "iana" }, "text/encaprtp": { "source": "iana" }, "text/enriched": { "source": "iana" }, "text/fwdred": { "source": "iana" }, "text/grammar-ref-list": { "source": "iana" }, "text/hjson": { "extensions": ["hjson"] }, "text/html": { "source": "iana", "compressible": true, "extensions": ["html","htm","shtml"] }, "text/jade": { "extensions": ["jade"] }, "text/javascript": { "source": "iana", "compressible": true }, "text/jcr-cnd": { "source": "iana" }, "text/jsx": { "compressible": true, "extensions": ["jsx"] }, "text/less": { "extensions": ["less"] }, "text/markdown": { "source": "iana" }, "text/mathml": { "source": "nginx", "extensions": ["mml"] }, "text/mizar": { "source": "iana" }, "text/n3": { "source": "iana", "compressible": true, "extensions": ["n3"] }, "text/parameters": { "source": "iana" }, "text/parityfec": { "source": "iana" }, "text/plain": { "source": "iana", "compressible": true, "extensions": ["txt","text","conf","def","list","log","in","ini"] }, "text/provenance-notation": { "source": "iana" }, "text/prs.fallenstein.rst": { "source": "iana" }, "text/prs.lines.tag": { "source": "iana", "extensions": ["dsc"] }, "text/raptorfec": { "source": "iana" }, "text/red": { "source": "iana" }, "text/rfc822-headers": { "source": "iana" }, "text/richtext": { "source": "iana", "compressible": true, "extensions": ["rtx"] }, "text/rtf": { "source": "iana", "compressible": true, "extensions": ["rtf"] }, "text/rtp-enc-aescm128": { "source": "iana" }, "text/rtploopback": { "source": "iana" }, "text/rtx": { "source": "iana" }, "text/sgml": { "source": "iana", "extensions": ["sgml","sgm"] }, "text/stylus": { "extensions": ["stylus","styl"] }, "text/t140": { "source": "iana" }, "text/tab-separated-values": { "source": "iana", "compressible": true, "extensions": ["tsv"] }, "text/troff": { "source": "iana", "extensions": ["t","tr","roff","man","me","ms"] }, "text/turtle": { "source": "iana", "extensions": ["ttl"] }, "text/ulpfec": { "source": "iana" }, "text/uri-list": { "source": "iana", "compressible": true, "extensions": ["uri","uris","urls"] }, "text/vcard": { "source": "iana", "compressible": true, "extensions": ["vcard"] }, "text/vnd.a": { "source": "iana" }, "text/vnd.abc": { "source": "iana" }, "text/vnd.curl": { "source": "iana", "extensions": ["curl"] }, "text/vnd.curl.dcurl": { "source": "apache", "extensions": ["dcurl"] }, "text/vnd.curl.mcurl": { "source": "apache", "extensions": ["mcurl"] }, "text/vnd.curl.scurl": { "source": "apache", "extensions": ["scurl"] }, "text/vnd.debian.copyright": { "source": "iana" }, "text/vnd.dmclientscript": { "source": "iana" }, "text/vnd.dvb.subtitle": { "source": "iana", "extensions": ["sub"] }, "text/vnd.esmertec.theme-descriptor": { "source": "iana" }, "text/vnd.fly": { "source": "iana", "extensions": ["fly"] }, "text/vnd.fmi.flexstor": { "source": "iana", "extensions": ["flx"] }, "text/vnd.graphviz": { "source": "iana", "extensions": ["gv"] }, "text/vnd.in3d.3dml": { "source": "iana", "extensions": ["3dml"] }, "text/vnd.in3d.spot": { "source": "iana", "extensions": ["spot"] }, "text/vnd.iptc.newsml": { "source": "iana" }, "text/vnd.iptc.nitf": { "source": "iana" }, "text/vnd.latex-z": { "source": "iana" }, "text/vnd.motorola.reflex": { "source": "iana" }, "text/vnd.ms-mediapackage": { "source": "iana" }, "text/vnd.net2phone.commcenter.command": { "source": "iana" }, "text/vnd.radisys.msml-basic-layout": { "source": "iana" }, "text/vnd.si.uricatalogue": { "source": "iana" }, "text/vnd.sun.j2me.app-descriptor": { "source": "iana", "extensions": ["jad"] }, "text/vnd.trolltech.linguist": { "source": "iana" }, "text/vnd.wap.si": { "source": "iana" }, "text/vnd.wap.sl": { "source": "iana" }, "text/vnd.wap.wml": { "source": "iana", "extensions": ["wml"] }, "text/vnd.wap.wmlscript": { "source": "iana", "extensions": ["wmls"] }, "text/vtt": { "charset": "UTF-8", "compressible": true, "extensions": ["vtt"] }, "text/x-asm": { "source": "apache", "extensions": ["s","asm"] }, "text/x-c": { "source": "apache", "extensions": ["c","cc","cxx","cpp","h","hh","dic"] }, "text/x-component": { "source": "nginx", "extensions": ["htc"] }, "text/x-fortran": { "source": "apache", "extensions": ["f","for","f77","f90"] }, "text/x-gwt-rpc": { "compressible": true }, "text/x-handlebars-template": { "extensions": ["hbs"] }, "text/x-java-source": { "source": "apache", "extensions": ["java"] }, "text/x-jquery-tmpl": { "compressible": true }, "text/x-lua": { "extensions": ["lua"] }, "text/x-markdown": { "compressible": true, "extensions": ["markdown","md","mkd"] }, "text/x-nfo": { "source": "apache", "extensions": ["nfo"] }, "text/x-opml": { "source": "apache", "extensions": ["opml"] }, "text/x-pascal": { "source": "apache", "extensions": ["p","pas"] }, "text/x-processing": { "compressible": true, "extensions": ["pde"] }, "text/x-sass": { "extensions": ["sass"] }, "text/x-scss": { "extensions": ["scss"] }, "text/x-setext": { "source": "apache", "extensions": ["etx"] }, "text/x-sfv": { "source": "apache", "extensions": ["sfv"] }, "text/x-suse-ymp": { "compressible": true, "extensions": ["ymp"] }, "text/x-uuencode": { "source": "apache", "extensions": ["uu"] }, "text/x-vcalendar": { "source": "apache", "extensions": ["vcs"] }, "text/x-vcard": { "source": "apache", "extensions": ["vcf"] }, "text/xml": { "source": "iana", "compressible": true, "extensions": ["xml"] }, "text/xml-external-parsed-entity": { "source": "iana" }, "text/yaml": { "extensions": ["yaml","yml"] }, "video/1d-interleaved-parityfec": { "source": "apache" }, "video/3gpp": { "source": "apache", "extensions": ["3gp","3gpp"] }, "video/3gpp-tt": { "source": "apache" }, "video/3gpp2": { "source": "apache", "extensions": ["3g2"] }, "video/bmpeg": { "source": "apache" }, "video/bt656": { "source": "apache" }, "video/celb": { "source": "apache" }, "video/dv": { "source": "apache" }, "video/h261": { "source": "apache", "extensions": ["h261"] }, "video/h263": { "source": "apache", "extensions": ["h263"] }, "video/h263-1998": { "source": "apache" }, "video/h263-2000": { "source": "apache" }, "video/h264": { "source": "apache", "extensions": ["h264"] }, "video/h264-rcdo": { "source": "apache" }, "video/h264-svc": { "source": "apache" }, "video/jpeg": { "source": "apache", "extensions": ["jpgv"] }, "video/jpeg2000": { "source": "apache" }, "video/jpm": { "source": "apache", "extensions": ["jpm","jpgm"] }, "video/mj2": { "source": "apache", "extensions": ["mj2","mjp2"] }, "video/mp1s": { "source": "apache" }, "video/mp2p": { "source": "apache" }, "video/mp2t": { "source": "apache", "extensions": ["ts"] }, "video/mp4": { "source": "apache", "compressible": false, "extensions": ["mp4","mp4v","mpg4"] }, "video/mp4v-es": { "source": "apache" }, "video/mpeg": { "source": "apache", "compressible": false, "extensions": ["mpeg","mpg","mpe","m1v","m2v"] }, "video/mpeg4-generic": { "source": "apache" }, "video/mpv": { "source": "apache" }, "video/nv": { "source": "apache" }, "video/ogg": { "source": "apache", "compressible": false, "extensions": ["ogv"] }, "video/parityfec": { "source": "apache" }, "video/pointer": { "source": "apache" }, "video/quicktime": { "source": "apache", "compressible": false, "extensions": ["qt","mov"] }, "video/raw": { "source": "apache" }, "video/rtp-enc-aescm128": { "source": "apache" }, "video/rtx": { "source": "apache" }, "video/smpte292m": { "source": "apache" }, "video/ulpfec": { "source": "apache" }, "video/vc1": { "source": "apache" }, "video/vnd.cctv": { "source": "apache" }, "video/vnd.dece.hd": { "source": "apache", "extensions": ["uvh","uvvh"] }, "video/vnd.dece.mobile": { "source": "apache", "extensions": ["uvm","uvvm"] }, "video/vnd.dece.mp4": { "source": "apache" }, "video/vnd.dece.pd": { "source": "apache", "extensions": ["uvp","uvvp"] }, "video/vnd.dece.sd": { "source": "apache", "extensions": ["uvs","uvvs"] }, "video/vnd.dece.video": { "source": "apache", "extensions": ["uvv","uvvv"] }, "video/vnd.directv.mpeg": { "source": "apache" }, "video/vnd.directv.mpeg-tts": { "source": "apache" }, "video/vnd.dlna.mpeg-tts": { "source": "apache" }, "video/vnd.dvb.file": { "source": "apache", "extensions": ["dvb"] }, "video/vnd.fvt": { "source": "apache", "extensions": ["fvt"] }, "video/vnd.hns.video": { "source": "apache" }, "video/vnd.iptvforum.1dparityfec-1010": { "source": "apache" }, "video/vnd.iptvforum.1dparityfec-2005": { "source": "apache" }, "video/vnd.iptvforum.2dparityfec-1010": { "source": "apache" }, "video/vnd.iptvforum.2dparityfec-2005": { "source": "apache" }, "video/vnd.iptvforum.ttsavc": { "source": "apache" }, "video/vnd.iptvforum.ttsmpeg2": { "source": "apache" }, "video/vnd.motorola.video": { "source": "apache" }, "video/vnd.motorola.videop": { "source": "apache" }, "video/vnd.mpegurl": { "source": "apache", "extensions": ["mxu","m4u"] }, "video/vnd.ms-playready.media.pyv": { "source": "apache", "extensions": ["pyv"] }, "video/vnd.nokia.interleaved-multimedia": { "source": "apache" }, "video/vnd.nokia.videovoip": { "source": "apache" }, "video/vnd.objectvideo": { "source": "apache" }, "video/vnd.sealed.mpeg1": { "source": "apache" }, "video/vnd.sealed.mpeg4": { "source": "apache" }, "video/vnd.sealed.swf": { "source": "apache" }, "video/vnd.sealedmedia.softseal.mov": { "source": "apache" }, "video/vnd.uvvu.mp4": { "source": "apache", "extensions": ["uvu","uvvu"] }, "video/vnd.vivo": { "source": "apache", "extensions": ["viv"] }, "video/webm": { "source": "apache", "compressible": false, "extensions": ["webm"] }, "video/x-f4v": { "source": "apache", "extensions": ["f4v"] }, "video/x-fli": { "source": "apache", "extensions": ["fli"] }, "video/x-flv": { "source": "apache", "compressible": false, "extensions": ["flv"] }, "video/x-m4v": { "source": "apache", "extensions": ["m4v"] }, "video/x-matroska": { "source": "apache", "compressible": false, "extensions": ["mkv","mk3d","mks"] }, "video/x-mng": { "source": "apache", "extensions": ["mng"] }, "video/x-ms-asf": { "source": "apache", "extensions": ["asf","asx"] }, "video/x-ms-vob": { "source": "apache", "extensions": ["vob"] }, "video/x-ms-wm": { "source": "apache", "extensions": ["wm"] }, "video/x-ms-wmv": { "source": "apache", "compressible": false, "extensions": ["wmv"] }, "video/x-ms-wmx": { "source": "apache", "extensions": ["wmx"] }, "video/x-ms-wvx": { "source": "apache", "extensions": ["wvx"] }, "video/x-msvideo": { "source": "apache", "extensions": ["avi"] }, "video/x-sgi-movie": { "source": "apache", "extensions": ["movie"] }, "video/x-smv": { "source": "apache", "extensions": ["smv"] }, "x-conference/x-cooltalk": { "source": "apache", "extensions": ["ice"] }, "x-shader/x-fragment": { "compressible": true }, "x-shader/x-vertex": { "compressible": true } } },{}],132:[function(require,module,exports){ module["exports"] = [ "ants", "bats", "bears", "bees", "birds", "buffalo", "cats", "chickens", "cattle", "dogs", "dolphins", "ducks", "elephants", "fishes", "foxes", "frogs", "geese", "goats", "horses", "kangaroos", "lions", "monkeys", "owls", "oxen", "penguins", "people", "pigs", "rabbits", "sheep", "tigers", "whales", "wolves", "zebras", "banshees", "crows", "black cats", "chimeras", "ghosts", "conspirators", "dragons", "dwarves", "elves", "enchanters", "exorcists", "sons", "foes", "giants", "gnomes", "goblins", "gooses", "griffins", "lycanthropes", "nemesis", "ogres", "oracles", "prophets", "sorcerors", "spiders", "spirits", "vampires", "warlocks", "vixens", "werewolves", "witches", "worshipers", "zombies", "druids" ]; },{}],133:[function(require,module,exports){ var team = {}; module['exports'] = team; team.creature = require("./creature"); team.name = require("./name"); },{"./creature":132,"./name":134}],134:[function(require,module,exports){ module["exports"] = [ "#{Address.state} #{creature}" ]; },{}],135:[function(require,module,exports){ module["exports"] = [ "#", "##", "###", "###a", "###b", "###c", "### I", "### II", "### III" ]; },{}],136:[function(require,module,exports){ module["exports"] = [ "#{Name.first_name}#{city_suffix}", "#{Name.last_name}#{city_suffix}", "#{city_prefix} #{Name.first_name}#{city_suffix}", "#{city_prefix} #{Name.last_name}#{city_suffix}" ]; },{}],137:[function(require,module,exports){ module["exports"] = [ "Noord", "Oost", "West", "Zuid", "Nieuw", "Oud" ]; },{}],138:[function(require,module,exports){ module["exports"] = [ "dam", "berg", " aan de Rijn", " aan de IJssel", "swaerd", "endrecht", "recht", "ambacht", "enmaes", "wijk", "sland", "stroom", "sluus", "dijk", "dorp", "burg", "veld", "sluis", "koop", "lek", "hout", "geest", "kerk", "woude", "hoven", "hoten", "ingen", "plas", "meer" ]; },{}],139:[function(require,module,exports){ module["exports"] = [ "Afghanistan", "Akrotiri", "Albanië", "Algerije", "Amerikaanse Maagdeneilanden", "Amerikaans-Samoa", "Andorra", "Angola", "Anguilla", "Antarctica", "Antigua en Barbuda", "Arctic Ocean", "Argentinië", "Armenië", "Aruba", "Ashmore and Cartier Islands", "Atlantic Ocean", "Australië", "Azerbeidzjan", "Bahama's", "Bahrein", "Bangladesh", "Barbados", "Belarus", "België", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivië", "Bosnië-Herzegovina", "Botswana", "Bouvet Island", "Brazilië", "British Indian Ocean Territory", "Britse Maagdeneilanden", "Brunei", "Bulgarije", "Burkina Faso", "Burundi", "Cambodja", "Canada", "Caymaneilanden", "Centraal-Afrikaanse Republiek", "Chili", "China", "Christmas Island", "Clipperton Island", "Cocos (Keeling) Islands", "Colombia", "Comoren (Unie)", "Congo (Democratische Republiek)", "Congo (Volksrepubliek)", "Cook", "Coral Sea Islands", "Costa Rica", "Cuba", "Cyprus", "Denemarken", "Dhekelia", "Djibouti", "Dominica", "Dominicaanse Republiek", "Duitsland", "Ecuador", "Egypte", "El Salvador", "Equatoriaal-Guinea", "Eritrea", "Estland", "Ethiopië", "European Union", "Falkland", "Faroe Islands", "Fiji", "Filipijnen", "Finland", "Frankrijk", "Frans-Polynesië", "French Southern and Antarctic Lands", "Gabon", "Gambia", "Gaza Strip", "Georgië", "Ghana", "Gibraltar", "Grenada", "Griekenland", "Groenland", "Guam", "Guatemala", "Guernsey", "Guinea", "Guinee-Bissau", "Guyana", "Haïti", "Heard Island and McDonald Islands", "Heilige Stoel", "Honduras", "Hongarije", "Hongkong", "Ierland", "IJsland", "India", "Indian Ocean", "Indonesië", "Irak", "Iran", "Isle of Man", "Israël", "Italië", "Ivoorkust", "Jamaica", "Jan Mayen", "Japan", "Jemen", "Jersey", "Jordanië", "Kaapverdië", "Kameroen", "Kazachstan", "Kenia", "Kirgizstan", "Kiribati", "Koeweit", "Kroatië", "Laos", "Lesotho", "Letland", "Libanon", "Liberia", "Libië", "Liechtenstein", "Litouwen", "Luxemburg", "Macao", "Macedonië", "Madagaskar", "Malawi", "Maldiven", "Maleisië", "Mali", "Malta", "Marokko", "Marshall Islands", "Mauritanië", "Mauritius", "Mayotte", "Mexico", "Micronesia, Federated States of", "Moldavië", "Monaco", "Mongolië", "Montenegro", "Montserrat", "Mozambique", "Myanmar", "Namibië", "Nauru", "Navassa Island", "Nederland", "Nederlandse Antillen", "Nepal", "Ngwane", "Nicaragua", "Nieuw-Caledonië", "Nieuw-Zeeland", "Niger", "Nigeria", "Niue", "Noordelijke Marianen", "Noord-Korea", "Noorwegen", "Norfolk Island", "Oekraïne", "Oezbekistan", "Oman", "Oostenrijk", "Pacific Ocean", "Pakistan", "Palau", "Panama", "Papoea-Nieuw-Guinea", "Paracel Islands", "Paraguay", "Peru", "Pitcairn", "Polen", "Portugal", "Puerto Rico", "Qatar", "Roemenië", "Rusland", "Rwanda", "Saint Helena", "Saint Lucia", "Saint Vincent en de Grenadines", "Saint-Pierre en Miquelon", "Salomon", "Samoa", "San Marino", "São Tomé en Principe", "Saudi-Arabië", "Senegal", "Servië", "Seychellen", "Sierra Leone", "Singapore", "Sint-Kitts en Nevis", "Slovenië", "Slowakije", "Soedan", "Somalië", "South Georgia and the South Sandwich Islands", "Southern Ocean", "Spanje", "Spratly Islands", "Sri Lanka", "Suriname", "Svalbard", "Syrië", "Tadzjikistan", "Taiwan", "Tanzania", "Thailand", "Timor Leste", "Togo", "Tokelau", "Tonga", "Trinidad en Tobago", "Tsjaad", "Tsjechië", "Tunesië", "Turkije", "Turkmenistan", "Turks-en Caicoseilanden", "Tuvalu", "Uganda", "Uruguay", "Vanuatu", "Venezuela", "Verenigd Koninkrijk", "Verenigde Arabische Emiraten", "Verenigde Staten van Amerika", "Vietnam", "Wake Island", "Wallis en Futuna", "Wereld", "West Bank", "Westelijke Sahara", "Zambia", "Zimbabwe", "Zuid-Afrika", "Zuid-Korea", "Zweden", "Zwitserland" ]; },{}],140:[function(require,module,exports){ module["exports"] = [ "Nederland" ]; },{}],141:[function(require,module,exports){ var address = {}; module['exports'] = address; address.city_prefix = require("./city_prefix"); address.city_suffix = require("./city_suffix"); address.city = require("./city"); address.country = require("./country"); address.building_number = require("./building_number"); address.street_suffix = require("./street_suffix"); address.secondary_address = require("./secondary_address"); address.street_name = require("./street_name"); address.street_address = require("./street_address"); address.postcode = require("./postcode"); address.state = require("./state"); address.default_country = require("./default_country"); },{"./building_number":135,"./city":136,"./city_prefix":137,"./city_suffix":138,"./country":139,"./default_country":140,"./postcode":142,"./secondary_address":143,"./state":144,"./street_address":145,"./street_name":146,"./street_suffix":147}],142:[function(require,module,exports){ module["exports"] = [ "#### ??" ]; },{}],143:[function(require,module,exports){ module["exports"] = [ "1 hoog", "2 hoog", "3 hoog" ]; },{}],144:[function(require,module,exports){ module["exports"] = [ "Noord-Holland", "Zuid-Holland", "Utrecht", "Zeeland", "Overijssel", "Gelderland", "Drenthe", "Friesland", "Groningen", "Noord-Brabant", "Limburg", "Flevoland" ]; },{}],145:[function(require,module,exports){ module["exports"] = [ "#{street_name} #{building_number}" ]; },{}],146:[function(require,module,exports){ module["exports"] = [ "#{Name.first_name}#{street_suffix}", "#{Name.last_name}#{street_suffix}" ]; },{}],147:[function(require,module,exports){ module["exports"] = [ "straat", "laan", "weg", "plantsoen", "park" ]; },{}],148:[function(require,module,exports){ var company = {}; module['exports'] = company; company.suffix = require("./suffix"); },{"./suffix":149}],149:[function(require,module,exports){ module["exports"] = [ "BV", "V.O.F.", "Group", "en Zonen" ]; },{}],150:[function(require,module,exports){ var nl = {}; module['exports'] = nl; nl.title = "Dutch"; nl.address = require("./address"); nl.company = require("./company"); nl.internet = require("./internet"); nl.lorem = require("./lorem"); nl.name = require("./name"); nl.phone_number = require("./phone_number"); },{"./address":141,"./company":148,"./internet":153,"./lorem":154,"./name":158,"./phone_number":165}],151:[function(require,module,exports){ module["exports"] = [ "nl", "com", "net", "org" ]; },{}],152:[function(require,module,exports){ arguments[4][116][0].apply(exports,arguments) },{"dup":116}],153:[function(require,module,exports){ var internet = {}; module['exports'] = internet; internet.free_email = require("./free_email"); internet.domain_suffix = require("./domain_suffix"); },{"./domain_suffix":151,"./free_email":152}],154:[function(require,module,exports){ arguments[4][118][0].apply(exports,arguments) },{"./supplemental":155,"./words":156,"dup":118}],155:[function(require,module,exports){ arguments[4][119][0].apply(exports,arguments) },{"dup":119}],156:[function(require,module,exports){ arguments[4][120][0].apply(exports,arguments) },{"dup":120}],157:[function(require,module,exports){ module["exports"] = [ "Amber", "Anna", "Anne", "Anouk", "Bas", "Bram", "Britt", "Daan", "Emma", "Eva", "Femke", "Finn", "Fleur", "Iris", "Isa", "Jan", "Jasper", "Jayden", "Jesse", "Johannes", "Julia", "Julian", "Kevin", "Lars", "Lieke", "Lisa", "Lotte", "Lucas", "Luuk", "Maud", "Max", "Mike", "Milan", "Nick", "Niels", "Noa", "Rick", "Roos", "Ruben", "Sander", "Sanne", "Sem", "Sophie", "Stijn", "Sven", "Thijs", "Thijs", "Thomas", "Tim", "Tom" ]; },{}],158:[function(require,module,exports){ var name = {}; module['exports'] = name; name.first_name = require("./first_name"); name.tussenvoegsel = require("./tussenvoegsel"); name.last_name = require("./last_name"); name.prefix = require("./prefix"); name.suffix = require("./suffix"); name.name = require("./name"); },{"./first_name":157,"./last_name":159,"./name":160,"./prefix":161,"./suffix":162,"./tussenvoegsel":163}],159:[function(require,module,exports){ module["exports"] = [ "Bakker", "Beek", "Berg", "Boer", "Bos", "Bosch", "Brink", "Broek", "Brouwer", "Bruin", "Dam", "Dekker", "Dijk", "Dijkstra", "Graaf", "Groot", "Haan", "Hendriks", "Heuvel", "Hoek", "Jacobs", "Jansen", "Janssen", "Jong", "Klein", "Kok", "Koning", "Koster", "Leeuwen", "Linden", "Maas", "Meer", "Meijer", "Mulder", "Peters", "Ruiter", "Schouten", "Smit", "Smits", "Stichting", "Veen", "Ven", "Vermeulen", "Visser", "Vliet", "Vos", "Vries", "Wal", "Willems", "Wit" ]; },{}],160:[function(require,module,exports){ module["exports"] = [ "#{prefix} #{first_name} #{last_name}", "#{first_name} #{last_name} #{suffix}", "#{first_name} #{last_name}", "#{first_name} #{last_name}", "#{first_name} #{tussenvoegsel} #{last_name}", "#{first_name} #{tussenvoegsel} #{last_name}" ]; },{}],161:[function(require,module,exports){ module["exports"] = [ "Dhr.", "Mevr. Dr.", "Bsc", "Msc", "Prof." ]; },{}],162:[function(require,module,exports){ module["exports"] = [ "Jr.", "Sr.", "I", "II", "III", "IV", "V" ]; },{}],163:[function(require,module,exports){ module["exports"] = [ "van", "van de", "van den", "van 't", "van het", "de", "den" ]; },{}],164:[function(require,module,exports){ module["exports"] = [ "(####) ######", "##########", "06########", "06 #### ####" ]; },{}],165:[function(require,module,exports){ arguments[4][129][0].apply(exports,arguments) },{"./formats":164,"dup":129}],166:[function(require,module,exports){ /** * * @namespace faker.lorem */ var Lorem = function (faker) { var self = this; var Helpers = faker.helpers; /** * word * * @method faker.lorem.word * @param {number} num */ self.word = function (num) { return faker.random.arrayElement(faker.definitions.lorem.words); }; /** * generates a space separated list of words * * @method faker.lorem.words * @param {number} num number of words, defaults to 3 */ self.words = function (num) { if (typeof num == 'undefined') { num = 3; } var words = []; for (var i = 0; i < num; i++) { words.push(faker.lorem.word()); } return words.join(' '); }; /** * sentence * * @method faker.lorem.sentence * @param {number} wordCount defaults to a random number between 3 and 10 * @param {number} range */ self.sentence = function (wordCount, range) { if (typeof wordCount == 'undefined') { wordCount = faker.random.number({ min: 3, max: 10 }); } // if (typeof range == 'undefined') { range = 7; } // strange issue with the node_min_test failing for captialize, please fix and add faker.lorem.back //return faker.lorem.words(wordCount + Helpers.randomNumber(range)).join(' ').capitalize(); var sentence = faker.lorem.words(wordCount); return sentence.charAt(0).toUpperCase() + sentence.slice(1) + '.'; }; /** * sentences * * @method faker.lorem.sentences * @param {number} sentenceCount defautls to a random number between 2 and 6 * @param {string} separator defaults to `' '` */ self.sentences = function (sentenceCount, separator) { if (typeof sentenceCount === 'undefined') { sentenceCount = faker.random.number({ min: 2, max: 6 });} if (typeof separator == 'undefined') { separator = " "; } var sentences = []; for (sentenceCount; sentenceCount > 0; sentenceCount--) { sentences.push(faker.lorem.sentence()); } return sentences.join(separator); }; /** * paragraph * * @method faker.lorem.paragraph * @param {number} sentenceCount defaults to 3 */ self.paragraph = function (sentenceCount) { if (typeof sentenceCount == 'undefined') { sentenceCount = 3; } return faker.lorem.sentences(sentenceCount + faker.random.number(3)); }; /** * paragraphs * * @method faker.lorem.paragraphs * @param {number} paragraphCount defaults to 3 * @param {string} separatora defaults to `'\n \r'` */ self.paragraphs = function (paragraphCount, separator) { if (typeof separator === "undefined") { separator = "\n \r"; } if (typeof paragraphCount == 'undefined') { paragraphCount = 3; } var paragraphs = []; for (paragraphCount; paragraphCount > 0; paragraphCount--) { paragraphs.push(faker.lorem.paragraph()); } return paragraphs.join(separator); } /** * returns random text based on a random lorem method * * @method faker.lorem.text * @param {number} times */ self.text = function loremText (times) { var loremMethods = ['lorem.word', 'lorem.words', 'lorem.sentence', 'lorem.sentences', 'lorem.paragraph', 'lorem.paragraphs', 'lorem.lines']; var randomLoremMethod = faker.random.arrayElement(loremMethods); return faker.fake('{{' + randomLoremMethod + '}}'); }; /** * returns lines of lorem separated by `'\n'` * * @method faker.lorem.lines * @param {number} lineCount defaults to a random number between 1 and 5 */ self.lines = function lines (lineCount) { if (typeof lineCount === 'undefined') { lineCount = faker.random.number({ min: 1, max: 5 });} return faker.lorem.sentences(lineCount, '\n') }; return self; }; module["exports"] = Lorem; },{}],167:[function(require,module,exports){ /** * * @namespace faker.name */ function Name (faker) { /** * firstName * * @method firstName * @param {mixed} gender * @memberof faker.name */ this.firstName = function (gender) { if (typeof faker.definitions.name.male_first_name !== "undefined" && typeof faker.definitions.name.female_first_name !== "undefined") { // some locale datasets ( like ru ) have first_name split by gender. since the name.first_name field does not exist in these datasets, // we must randomly pick a name from either gender array so faker.name.firstName will return the correct locale data ( and not fallback ) if (typeof gender !== 'number') { gender = faker.random.number(1); } if (gender === 0) { return faker.random.arrayElement(faker.locales[faker.locale].name.male_first_name) } else { return faker.random.arrayElement(faker.locales[faker.locale].name.female_first_name); } } return faker.random.arrayElement(faker.definitions.name.first_name); }; /** * lastName * * @method lastName * @param {mixed} gender * @memberof faker.name */ this.lastName = function (gender) { if (typeof faker.definitions.name.male_last_name !== "undefined" && typeof faker.definitions.name.female_last_name !== "undefined") { // some locale datasets ( like ru ) have last_name split by gender. i have no idea how last names can have genders, but also i do not speak russian // see above comment of firstName method if (typeof gender !== 'number') { gender = faker.random.number(1); } if (gender === 0) { return faker.random.arrayElement(faker.locales[faker.locale].name.male_last_name); } else { return faker.random.arrayElement(faker.locales[faker.locale].name.female_last_name); } } return faker.random.arrayElement(faker.definitions.name.last_name); }; /** * findName * * @method findName * @param {string} firstName * @param {string} lastName * @param {mixed} gender * @memberof faker.name */ this.findName = function (firstName, lastName, gender) { var r = faker.random.number(8); var prefix, suffix; // in particular locales first and last names split by gender, // thus we keep consistency by passing 0 as male and 1 as female if (typeof gender !== 'number') { gender = faker.random.number(1); } firstName = firstName || faker.name.firstName(gender); lastName = lastName || faker.name.lastName(gender); switch (r) { case 0: prefix = faker.name.prefix(gender); if (prefix) { return prefix + " " + firstName + " " + lastName; } case 1: suffix = faker.name.suffix(gender); if (suffix) { return firstName + " " + lastName + " " + suffix; } } return firstName + " " + lastName; }; /** * jobTitle * * @method jobTitle * @memberof faker.name */ this.jobTitle = function () { return faker.name.jobDescriptor() + " " + faker.name.jobArea() + " " + faker.name.jobType(); }; /** * prefix * * @method prefix * @param {mixed} gender * @memberof faker.name */ this.prefix = function (gender) { if (typeof faker.definitions.name.male_prefix !== "undefined" && typeof faker.definitions.name.female_prefix !== "undefined") { if (typeof gender !== 'number') { gender = faker.random.number(1); } if (gender === 0) { return faker.random.arrayElement(faker.locales[faker.locale].name.male_prefix); } else { return faker.random.arrayElement(faker.locales[faker.locale].name.female_prefix); } } return faker.random.arrayElement(faker.definitions.name.prefix); }; /** * suffix * * @method suffix * @memberof faker.name */ this.suffix = function () { return faker.random.arrayElement(faker.definitions.name.suffix); }; /** * title * * @method title * @memberof faker.name */ this.title = function() { var descriptor = faker.random.arrayElement(faker.definitions.name.title.descriptor), level = faker.random.arrayElement(faker.definitions.name.title.level), job = faker.random.arrayElement(faker.definitions.name.title.job); return descriptor + " " + level + " " + job; }; /** * jobDescriptor * * @method jobDescriptor * @memberof faker.name */ this.jobDescriptor = function () { return faker.random.arrayElement(faker.definitions.name.title.descriptor); }; /** * jobArea * * @method jobArea * @memberof faker.name */ this.jobArea = function () { return faker.random.arrayElement(faker.definitions.name.title.level); }; /** * jobType * * @method jobType * @memberof faker.name */ this.jobType = function () { return faker.random.arrayElement(faker.definitions.name.title.job); }; } module['exports'] = Name; },{}],168:[function(require,module,exports){ /** * * @namespace faker.phone */ var Phone = function (faker) { var self = this; /** * phoneNumber * * @method faker.phone.phoneNumber * @param {string} format */ self.phoneNumber = function (format) { format = format || faker.phone.phoneFormats(); return faker.helpers.replaceSymbolWithNumber(format); }; // FIXME: this is strange passing in an array index. /** * phoneNumberFormat * * @method faker.phone.phoneFormatsArrayIndex * @param phoneFormatsArrayIndex */ self.phoneNumberFormat = function (phoneFormatsArrayIndex) { phoneFormatsArrayIndex = phoneFormatsArrayIndex || 0; return faker.helpers.replaceSymbolWithNumber(faker.definitions.phone_number.formats[phoneFormatsArrayIndex]); }; /** * phoneFormats * * @method faker.phone.phoneFormats */ self.phoneFormats = function () { return faker.random.arrayElement(faker.definitions.phone_number.formats); }; return self; }; module['exports'] = Phone; },{}],169:[function(require,module,exports){ var mersenne = require('../vendor/mersenne'); /** * * @namespace faker.random */ function Random (faker, seed) { // Use a user provided seed if it exists if (seed) { if (Array.isArray(seed) && seed.length) { mersenne.seed_array(seed); } else { mersenne.seed(seed); } } /** * returns a single random number based on a max number or range * * @method faker.random.number * @param {mixed} options */ this.number = function (options) { if (typeof options === "number") { options = { max: options }; } options = options || {}; if (typeof options.min === "undefined") { options.min = 0; } if (typeof options.max === "undefined") { options.max = 99999; } if (typeof options.precision === "undefined") { options.precision = 1; } // Make the range inclusive of the max value var max = options.max; if (max >= 0) { max += options.precision; } var randomNumber = options.precision * Math.floor( mersenne.rand(max / options.precision, options.min / options.precision)); return randomNumber; } /** * takes an array and returns a random element of the array * * @method faker.random.arrayElement * @param {array} array */ this.arrayElement = function (array) { array = array || ["a", "b", "c"]; var r = faker.random.number({ max: array.length - 1 }); return array[r]; } /** * takes an object and returns the randomly key or value * * @method faker.random.objectElement * @param {object} object * @param {mixed} field */ this.objectElement = function (object, field) { object = object || { "foo": "bar", "too": "car" }; var array = Object.keys(object); var key = faker.random.arrayElement(array); return field === "key" ? key : object[key]; } /** * uuid * * @method faker.random.uuid */ this.uuid = function () { var self = this; var RFC4122_TEMPLATE = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'; var replacePlaceholders = function (placeholder) { var random = self.number({ min: 0, max: 15 }); var value = placeholder == 'x' ? random : (random &0x3 | 0x8); return value.toString(16); }; return RFC4122_TEMPLATE.replace(/[xy]/g, replacePlaceholders); } /** * boolean * * @method faker.random.boolean */ this.boolean = function () { return !!faker.random.number(1) } // TODO: have ability to return specific type of word? As in: noun, adjective, verb, etc /** * word * * @method faker.random.word * @param {string} type */ this.word = function randomWord (type) { var wordMethods = [ 'commerce.department', 'commerce.productName', 'commerce.productAdjective', 'commerce.productMaterial', 'commerce.product', 'commerce.color', 'company.catchPhraseAdjective', 'company.catchPhraseDescriptor', 'company.catchPhraseNoun', 'company.bsAdjective', 'company.bsBuzz', 'company.bsNoun', 'address.streetSuffix', 'address.county', 'address.country', 'address.state', 'finance.accountName', 'finance.transactionType', 'finance.currencyName', 'hacker.noun', 'hacker.verb', 'hacker.adjective', 'hacker.ingverb', 'hacker.abbreviation', 'name.jobDescriptor', 'name.jobArea', 'name.jobType']; // randomly pick from the many faker methods that can generate words var randomWordMethod = faker.random.arrayElement(wordMethods); return faker.fake('{{' + randomWordMethod + '}}'); } /** * randomWords * * @method faker.random.words * @param {number} count defaults to a random value between 1 and 3 */ this.words = function randomWords (count) { var words = []; if (typeof count === "undefined") { count = faker.random.number({min:1, max: 3}); } for (var i = 0; i<count; i++) { words.push(faker.random.word()); } return words.join(' '); } /** * locale * * @method faker.random.image */ this.image = function randomImage () { return faker.image.image(); } /** * locale * * @method faker.random.locale */ this.locale = function randomLocale () { return faker.random.arrayElement(Object.keys(faker.locales)); }; /** * alphaNumeric * * @method faker.random.alphaNumeric */ this.alphaNumeric = function alphaNumeric() { return faker.random.arrayElement(["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"]); } return this; } module['exports'] = Random; },{"../vendor/mersenne":172}],170:[function(require,module,exports){ // generates fake data for many computer systems properties /** * * @namespace faker.system */ function System (faker) { /** * generates a file name with extension or optional type * * @method faker.system.fileName * @param {string} ext * @param {string} type */ this.fileName = function (ext, type) { var str = faker.fake("{{random.words}}.{{system.fileExt}}"); str = str.replace(/ /g, '_'); str = str.replace(/\,/g, '_'); str = str.replace(/\-/g, '_'); str = str.replace(/\\/g, '_'); str = str.toLowerCase(); return str; }; /** * commonFileName * * @method faker.system.commonFileName * @param {string} ext * @param {string} type */ this.commonFileName = function (ext, type) { var str = faker.random.words() + "." + (ext || faker.system.commonFileExt()); str = str.replace(/ /g, '_'); str = str.replace(/\,/g, '_'); str = str.replace(/\-/g, '_'); str = str.replace(/\\/g, '_'); str = str.toLowerCase(); return str; }; /** * mimeType * * @method faker.system.mimeType */ this.mimeType = function () { return faker.random.arrayElement(Object.keys(faker.definitions.system.mimeTypes)); }; /** * returns a commonly used file type * * @method faker.system.commonFileType */ this.commonFileType = function () { var types = ['video', 'audio', 'image', 'text', 'application']; return faker.random.arrayElement(types) }; /** * returns a commonly used file extension based on optional type * * @method faker.system.commonFileExt * @param {string} type */ this.commonFileExt = function (type) { var types = [ 'application/pdf', 'audio/mpeg', 'audio/wav', 'image/png', 'image/jpeg', 'image/gif', 'video/mp4', 'video/mpeg', 'text/html' ]; return faker.system.fileExt(faker.random.arrayElement(types)); }; /** * returns any file type available as mime-type * * @method faker.system.fileType */ this.fileType = function () { var types = []; var mimes = faker.definitions.system.mimeTypes; Object.keys(mimes).forEach(function(m){ var parts = m.split('/'); if (types.indexOf(parts[0]) === -1) { types.push(parts[0]); } }); return faker.random.arrayElement(types); }; /** * fileExt * * @method faker.system.fileExt * @param {string} mimeType */ this.fileExt = function (mimeType) { var exts = []; var mimes = faker.definitions.system.mimeTypes; // get specific ext by mime-type if (typeof mimes[mimeType] === "object") { return faker.random.arrayElement(mimes[mimeType].extensions); } // reduce mime-types to those with file-extensions Object.keys(mimes).forEach(function(m){ if (mimes[m].extensions instanceof Array) { mimes[m].extensions.forEach(function(ext){ exts.push(ext) }); } }); return faker.random.arrayElement(exts); }; /** * not yet implemented * * @method faker.system.directoryPath */ this.directoryPath = function () { // TODO }; /** * not yet implemented * * @method faker.system.filePath */ this.filePath = function () { // TODO }; /** * semver * * @method faker.system.semver */ this.semver = function () { return [faker.random.number(9), faker.random.number(9), faker.random.number(9)].join('.'); } } module['exports'] = System; },{}],171:[function(require,module,exports){ var Faker = require('../lib'); var faker = new Faker({ locale: 'nl', localeFallback: 'en' }); faker.locales['nl'] = require('../lib/locales/nl'); faker.locales['en'] = require('../lib/locales/en'); module['exports'] = faker; },{"../lib":45,"../lib/locales/en":112,"../lib/locales/nl":150}],172:[function(require,module,exports){ // this program is a JavaScript version of Mersenne Twister, with concealment and encapsulation in class, // an almost straight conversion from the original program, mt19937ar.c, // translated by y. okada on July 17, 2006. // and modified a little at july 20, 2006, but there are not any substantial differences. // in this program, procedure descriptions and comments of original source code were not removed. // lines commented with //c// were originally descriptions of c procedure. and a few following lines are appropriate JavaScript descriptions. // lines commented with /* and */ are original comments. // lines commented with // are additional comments in this JavaScript version. // before using this version, create at least one instance of MersenneTwister19937 class, and initialize the each state, given below in c comments, of all the instances. /* A C-program for MT19937, with initialization improved 2002/1/26. Coded by Takuji Nishimura and Makoto Matsumoto. Before using, initialize the state by using init_genrand(seed) or init_by_array(init_key, key_length). Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura, All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. The names of its contributors may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Any feedback is very welcome. http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html email: m-mat @ math.sci.hiroshima-u.ac.jp (remove space) */ function MersenneTwister19937() { /* constants should be scoped inside the class */ var N, M, MATRIX_A, UPPER_MASK, LOWER_MASK; /* Period parameters */ //c//#define N 624 //c//#define M 397 //c//#define MATRIX_A 0x9908b0dfUL /* constant vector a */ //c//#define UPPER_MASK 0x80000000UL /* most significant w-r bits */ //c//#define LOWER_MASK 0x7fffffffUL /* least significant r bits */ N = 624; M = 397; MATRIX_A = 0x9908b0df; /* constant vector a */ UPPER_MASK = 0x80000000; /* most significant w-r bits */ LOWER_MASK = 0x7fffffff; /* least significant r bits */ //c//static unsigned long mt[N]; /* the array for the state vector */ //c//static int mti=N+1; /* mti==N+1 means mt[N] is not initialized */ var mt = new Array(N); /* the array for the state vector */ var mti = N+1; /* mti==N+1 means mt[N] is not initialized */ function unsigned32 (n1) // returns a 32-bits unsiged integer from an operand to which applied a bit operator. { return n1 < 0 ? (n1 ^ UPPER_MASK) + UPPER_MASK : n1; } function subtraction32 (n1, n2) // emulates lowerflow of a c 32-bits unsiged integer variable, instead of the operator -. these both arguments must be non-negative integers expressible using unsigned 32 bits. { return n1 < n2 ? unsigned32((0x100000000 - (n2 - n1)) & 0xffffffff) : n1 - n2; } function addition32 (n1, n2) // emulates overflow of a c 32-bits unsiged integer variable, instead of the operator +. these both arguments must be non-negative integers expressible using unsigned 32 bits. { return unsigned32((n1 + n2) & 0xffffffff) } function multiplication32 (n1, n2) // emulates overflow of a c 32-bits unsiged integer variable, instead of the operator *. these both arguments must be non-negative integers expressible using unsigned 32 bits. { var sum = 0; for (var i = 0; i < 32; ++i){ if ((n1 >>> i) & 0x1){ sum = addition32(sum, unsigned32(n2 << i)); } } return sum; } /* initializes mt[N] with a seed */ //c//void init_genrand(unsigned long s) this.init_genrand = function (s) { //c//mt[0]= s & 0xffffffff; mt[0]= unsigned32(s & 0xffffffff); for (mti=1; mti<N; mti++) { mt[mti] = //c//(1812433253 * (mt[mti-1] ^ (mt[mti-1] >> 30)) + mti); addition32(multiplication32(1812433253, unsigned32(mt[mti-1] ^ (mt[mti-1] >>> 30))), mti); /* See Knuth TAOCP Vol2. 3rd Ed. P.106 for multiplier. */ /* In the previous versions, MSBs of the seed affect */ /* only MSBs of the array mt[]. */ /* 2002/01/09 modified by Makoto Matsumoto */ //c//mt[mti] &= 0xffffffff; mt[mti] = unsigned32(mt[mti] & 0xffffffff); /* for >32 bit machines */ } } /* initialize by an array with array-length */ /* init_key is the array for initializing keys */ /* key_length is its length */ /* slight change for C++, 2004/2/26 */ //c//void init_by_array(unsigned long init_key[], int key_length) this.init_by_array = function (init_key, key_length) { //c//int i, j, k; var i, j, k; //c//init_genrand(19650218); this.init_genrand(19650218); i=1; j=0; k = (N>key_length ? N : key_length); for (; k; k--) { //c//mt[i] = (mt[i] ^ ((mt[i-1] ^ (mt[i-1] >> 30)) * 1664525)) //c// + init_key[j] + j; /* non linear */ mt[i] = addition32(addition32(unsigned32(mt[i] ^ multiplication32(unsigned32(mt[i-1] ^ (mt[i-1] >>> 30)), 1664525)), init_key[j]), j); mt[i] = //c//mt[i] &= 0xffffffff; /* for WORDSIZE > 32 machines */ unsigned32(mt[i] & 0xffffffff); i++; j++; if (i>=N) { mt[0] = mt[N-1]; i=1; } if (j>=key_length) j=0; } for (k=N-1; k; k--) { //c//mt[i] = (mt[i] ^ ((mt[i-1] ^ (mt[i-1] >> 30)) * 1566083941)) //c//- i; /* non linear */ mt[i] = subtraction32(unsigned32((dbg=mt[i]) ^ multiplication32(unsigned32(mt[i-1] ^ (mt[i-1] >>> 30)), 1566083941)), i); //c//mt[i] &= 0xffffffff; /* for WORDSIZE > 32 machines */ mt[i] = unsigned32(mt[i] & 0xffffffff); i++; if (i>=N) { mt[0] = mt[N-1]; i=1; } } mt[0] = 0x80000000; /* MSB is 1; assuring non-zero initial array */ } /* moved outside of genrand_int32() by jwatte 2010-11-17; generate less garbage */ var mag01 = [0x0, MATRIX_A]; /* generates a random number on [0,0xffffffff]-interval */ //c//unsigned long genrand_int32(void) this.genrand_int32 = function () { //c//unsigned long y; //c//static unsigned long mag01[2]={0x0UL, MATRIX_A}; var y; /* mag01[x] = x * MATRIX_A for x=0,1 */ if (mti >= N) { /* generate N words at one time */ //c//int kk; var kk; if (mti == N+1) /* if init_genrand() has not been called, */ //c//init_genrand(5489); /* a default initial seed is used */ this.init_genrand(5489); /* a default initial seed is used */ for (kk=0;kk<N-M;kk++) { //c//y = (mt[kk]&UPPER_MASK)|(mt[kk+1]&LOWER_MASK); //c//mt[kk] = mt[kk+M] ^ (y >> 1) ^ mag01[y & 0x1]; y = unsigned32((mt[kk]&UPPER_MASK)|(mt[kk+1]&LOWER_MASK)); mt[kk] = unsigned32(mt[kk+M] ^ (y >>> 1) ^ mag01[y & 0x1]); } for (;kk<N-1;kk++) { //c//y = (mt[kk]&UPPER_MASK)|(mt[kk+1]&LOWER_MASK); //c//mt[kk] = mt[kk+(M-N)] ^ (y >> 1) ^ mag01[y & 0x1]; y = unsigned32((mt[kk]&UPPER_MASK)|(mt[kk+1]&LOWER_MASK)); mt[kk] = unsigned32(mt[kk+(M-N)] ^ (y >>> 1) ^ mag01[y & 0x1]); } //c//y = (mt[N-1]&UPPER_MASK)|(mt[0]&LOWER_MASK); //c//mt[N-1] = mt[M-1] ^ (y >> 1) ^ mag01[y & 0x1]; y = unsigned32((mt[N-1]&UPPER_MASK)|(mt[0]&LOWER_MASK)); mt[N-1] = unsigned32(mt[M-1] ^ (y >>> 1) ^ mag01[y & 0x1]); mti = 0; } y = mt[mti++]; /* Tempering */ //c//y ^= (y >> 11); //c//y ^= (y << 7) & 0x9d2c5680; //c//y ^= (y << 15) & 0xefc60000; //c//y ^= (y >> 18); y = unsigned32(y ^ (y >>> 11)); y = unsigned32(y ^ ((y << 7) & 0x9d2c5680)); y = unsigned32(y ^ ((y << 15) & 0xefc60000)); y = unsigned32(y ^ (y >>> 18)); return y; } /* generates a random number on [0,0x7fffffff]-interval */ //c//long genrand_int31(void) this.genrand_int31 = function () { //c//return (genrand_int32()>>1); return (this.genrand_int32()>>>1); } /* generates a random number on [0,1]-real-interval */ //c//double genrand_real1(void) this.genrand_real1 = function () { //c//return genrand_int32()*(1.0/4294967295.0); return this.genrand_int32()*(1.0/4294967295.0); /* divided by 2^32-1 */ } /* generates a random number on [0,1)-real-interval */ //c//double genrand_real2(void) this.genrand_real2 = function () { //c//return genrand_int32()*(1.0/4294967296.0); return this.genrand_int32()*(1.0/4294967296.0); /* divided by 2^32 */ } /* generates a random number on (0,1)-real-interval */ //c//double genrand_real3(void) this.genrand_real3 = function () { //c//return ((genrand_int32()) + 0.5)*(1.0/4294967296.0); return ((this.genrand_int32()) + 0.5)*(1.0/4294967296.0); /* divided by 2^32 */ } /* generates a random number on [0,1) with 53-bit resolution*/ //c//double genrand_res53(void) this.genrand_res53 = function () { //c//unsigned long a=genrand_int32()>>5, b=genrand_int32()>>6; var a=this.genrand_int32()>>>5, b=this.genrand_int32()>>>6; return(a*67108864.0+b)*(1.0/9007199254740992.0); } /* These real versions are due to Isaku Wada, 2002/01/09 added */ } // Exports: Public API // Export the twister class exports.MersenneTwister19937 = MersenneTwister19937; // Export a simplified function to generate random numbers var gen = new MersenneTwister19937; gen.init_genrand((new Date).getTime() % 1000000000); // Added max, min range functionality, Marak Squires Sept 11 2014 exports.rand = function(max, min) { if (max === undefined) { min = 0; max = 32768; } return Math.floor(gen.genrand_real2() * (max - min) + min); } exports.seed = function(S) { if (typeof(S) != 'number') { throw new Error("seed(S) must take numeric argument; is " + typeof(S)); } gen.init_genrand(S); } exports.seed_array = function(A) { if (typeof(A) != 'object') { throw new Error("seed_array(A) must take array of numbers; is " + typeof(A)); } gen.init_by_array(A); } },{}],173:[function(require,module,exports){ /* * password-generator * Copyright(c) 2011-2013 Bermi Ferrer <bermi@bermilabs.com> * MIT Licensed */ (function (root) { var localName, consonant, letter, password, vowel; letter = /[a-zA-Z]$/; vowel = /[aeiouAEIOU]$/; consonant = /[bcdfghjklmnpqrstvwxyzBCDFGHJKLMNPQRSTVWXYZ]$/; // Defines the name of the local variable the passwordGenerator library will use // this is specially useful if window.passwordGenerator is already being used // by your application and you want a different name. For example: // // Declare before including the passwordGenerator library // var localPasswordGeneratorLibraryName = 'pass'; localName = root.localPasswordGeneratorLibraryName || "generatePassword", password = function (length, memorable, pattern, prefix) { var char, n; if (length == null) { length = 10; } if (memorable == null) { memorable = true; } if (pattern == null) { pattern = /\w/; } if (prefix == null) { prefix = ''; } if (prefix.length >= length) { return prefix; } if (memorable) { if (prefix.match(consonant)) { pattern = vowel; } else { pattern = consonant; } } n = Math.floor(Math.random() * 94) + 33; char = String.fromCharCode(n); if (memorable) { char = char.toLowerCase(); } if (!char.match(pattern)) { return password(length, memorable, pattern, prefix); } return password(length, memorable, pattern, "" + prefix + char); }; ((typeof exports !== 'undefined') ? exports : root)[localName] = password; if (typeof exports !== 'undefined') { if (typeof module !== 'undefined' && module.exports) { module.exports = password; } } // Establish the root object, `window` in the browser, or `global` on the server. }(this)); },{}],174:[function(require,module,exports){ /* Copyright (c) 2012-2014 Jeffrey Mealo Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ------------------------------------------------------------------------------------------------------------------------ Based loosely on Luka Pusic's PHP Script: http://360percents.com/posts/php-random-user-agent-generator/ The license for that script is as follows: "THE BEER-WARE LICENSE" (Revision 42): <pusic93@gmail.com> wrote this file. As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return. Luka Pusic */ function rnd(a, b) { //calling rnd() with no arguments is identical to rnd(0, 100) a = a || 0; b = b || 100; if (typeof b === 'number' && typeof a === 'number') { //rnd(int min, int max) returns integer between min, max return (function (min, max) { if (min > max) { throw new RangeError('expected min <= max; got min = ' + min + ', max = ' + max); } return Math.floor(Math.random() * (max - min + 1)) + min; }(a, b)); } if (Object.prototype.toString.call(a) === "[object Array]") { //returns a random element from array (a), even weighting return a[Math.floor(Math.random() * a.length)]; } if (a && typeof a === 'object') { //returns a random key from the passed object; keys are weighted by the decimal probability in their value return (function (obj) { var rand = rnd(0, 100) / 100, min = 0, max = 0, key, return_val; for (key in obj) { if (obj.hasOwnProperty(key)) { max = obj[key] + min; return_val = key; if (rand >= min && rand <= max) { break; } min = min + obj[key]; } } return return_val; }(a)); } throw new TypeError('Invalid arguments passed to rnd. (' + (b ? a + ', ' + b : a) + ')'); } function randomLang() { return rnd(['AB', 'AF', 'AN', 'AR', 'AS', 'AZ', 'BE', 'BG', 'BN', 'BO', 'BR', 'BS', 'CA', 'CE', 'CO', 'CS', 'CU', 'CY', 'DA', 'DE', 'EL', 'EN', 'EO', 'ES', 'ET', 'EU', 'FA', 'FI', 'FJ', 'FO', 'FR', 'FY', 'GA', 'GD', 'GL', 'GV', 'HE', 'HI', 'HR', 'HT', 'HU', 'HY', 'ID', 'IS', 'IT', 'JA', 'JV', 'KA', 'KG', 'KO', 'KU', 'KW', 'KY', 'LA', 'LB', 'LI', 'LN', 'LT', 'LV', 'MG', 'MK', 'MN', 'MO', 'MS', 'MT', 'MY', 'NB', 'NE', 'NL', 'NN', 'NO', 'OC', 'PL', 'PT', 'RM', 'RO', 'RU', 'SC', 'SE', 'SK', 'SL', 'SO', 'SQ', 'SR', 'SV', 'SW', 'TK', 'TR', 'TY', 'UK', 'UR', 'UZ', 'VI', 'VO', 'YI', 'ZH']); } function randomBrowserAndOS() { var browser = rnd({ chrome: .45132810566, iexplorer: .27477061836, firefox: .19384170608, safari: .06186781118, opera: .01574236955 }), os = { chrome: {win: .89, mac: .09 , lin: .02}, firefox: {win: .83, mac: .16, lin: .01}, opera: {win: .91, mac: .03 , lin: .06}, safari: {win: .04 , mac: .96 }, iexplorer: ['win'] }; return [browser, rnd(os[browser])]; } function randomProc(arch) { var procs = { lin:['i686', 'x86_64'], mac: {'Intel' : .48, 'PPC': .01, 'U; Intel':.48, 'U; PPC' :.01}, win:['', 'WOW64', 'Win64; x64'] }; return rnd(procs[arch]); } function randomRevision(dots) { var return_val = ''; //generate a random revision //dots = 2 returns .x.y where x & y are between 0 and 9 for (var x = 0; x < dots; x++) { return_val += '.' + rnd(0, 9); } return return_val; } var version_string = { net: function () { return [rnd(1, 4), rnd(0, 9), rnd(10000, 99999), rnd(0, 9)].join('.'); }, nt: function () { return rnd(5, 6) + '.' + rnd(0, 3); }, ie: function () { return rnd(7, 11); }, trident: function () { return rnd(3, 7) + '.' + rnd(0, 1); }, osx: function (delim) { return [10, rnd(5, 10), rnd(0, 9)].join(delim || '.'); }, chrome: function () { return [rnd(13, 39), 0, rnd(800, 899), 0].join('.'); }, presto: function () { return '2.9.' + rnd(160, 190); }, presto2: function () { return rnd(10, 12) + '.00'; }, safari: function () { return rnd(531, 538) + '.' + rnd(0, 2) + '.' + rnd(0,2); } }; var browser = { firefox: function firefox(arch) { //https://developer.mozilla.org/en-US/docs/Gecko_user_agent_string_reference var firefox_ver = rnd(5, 15) + randomRevision(2), gecko_ver = 'Gecko/20100101 Firefox/' + firefox_ver, proc = randomProc(arch), os_ver = (arch === 'win') ? '(Windows NT ' + version_string.nt() + ((proc) ? '; ' + proc : '') : (arch === 'mac') ? '(Macintosh; ' + proc + ' Mac OS X ' + version_string.osx() : '(X11; Linux ' + proc; return 'Mozilla/5.0 ' + os_ver + '; rv:' + firefox_ver.slice(0, -2) + ') ' + gecko_ver; }, iexplorer: function iexplorer() { var ver = version_string.ie(); if (ver >= 11) { //http://msdn.microsoft.com/en-us/library/ie/hh869301(v=vs.85).aspx return 'Mozilla/5.0 (Windows NT 6.' + rnd(1,3) + '; Trident/7.0; ' + rnd(['Touch; ', '']) + 'rv:11.0) like Gecko'; } //http://msdn.microsoft.com/en-us/library/ie/ms537503(v=vs.85).aspx return 'Mozilla/5.0 (compatible; MSIE ' + ver + '.0; Windows NT ' + version_string.nt() + '; Trident/' + version_string.trident() + ((rnd(0, 1) === 1) ? '; .NET CLR ' + version_string.net() : '') + ')'; }, opera: function opera(arch) { //http://www.opera.com/docs/history/ var presto_ver = ' Presto/' + version_string.presto() + ' Version/' + version_string.presto2() + ')', os_ver = (arch === 'win') ? '(Windows NT ' + version_string.nt() + '; U; ' + randomLang() + presto_ver : (arch === 'lin') ? '(X11; Linux ' + randomProc(arch) + '; U; ' + randomLang() + presto_ver : '(Macintosh; Intel Mac OS X ' + version_string.osx() + ' U; ' + randomLang() + ' Presto/' + version_string.presto() + ' Version/' + version_string.presto2() + ')'; return 'Opera/' + rnd(9, 14) + '.' + rnd(0, 99) + ' ' + os_ver; }, safari: function safari(arch) { var safari = version_string.safari(), ver = rnd(4, 7) + '.' + rnd(0,1) + '.' + rnd(0,10), os_ver = (arch === 'mac') ? '(Macintosh; ' + randomProc('mac') + ' Mac OS X '+ version_string.osx('_') + ' rv:' + rnd(2, 6) + '.0; '+ randomLang() + ') ' : '(Windows; U; Windows NT ' + version_string.nt() + ')'; return 'Mozilla/5.0 ' + os_ver + 'AppleWebKit/' + safari + ' (KHTML, like Gecko) Version/' + ver + ' Safari/' + safari; }, chrome: function chrome(arch) { var safari = version_string.safari(), os_ver = (arch === 'mac') ? '(Macintosh; ' + randomProc('mac') + ' Mac OS X ' + version_string.osx('_') + ') ' : (arch === 'win') ? '(Windows; U; Windows NT ' + version_string.nt() + ')' : '(X11; Linux ' + randomProc(arch); return 'Mozilla/5.0 ' + os_ver + ' AppleWebKit/' + safari + ' (KHTML, like Gecko) Chrome/' + version_string.chrome() + ' Safari/' + safari; } }; exports.generate = function generate() { var random = randomBrowserAndOS(); return browser[random[0]](random[1]); }; },{}],175:[function(require,module,exports){ var ret = require('ret'); var DRange = require('discontinuous-range'); var types = ret.types; /** * If code is alphabetic, converts to other case. * If not alphabetic, returns back code. * * @param {Number} code * @return {Number} */ function toOtherCase(code) { return code + (97 <= code && code <= 122 ? -32 : 65 <= code && code <= 90 ? 32 : 0); } /** * Randomly returns a true or false value. * * @return {Boolean} */ function randBool() { return !this.randInt(0, 1); } /** * Randomly selects and returns a value from the array. * * @param {Array.<Object>} arr * @return {Object} */ function randSelect(arr) { if (arr instanceof DRange) { return arr.index(this.randInt(0, arr.length - 1)); } return arr[this.randInt(0, arr.length - 1)]; } /** * expands a token to a DiscontinuousRange of characters which has a * length and an index function (for random selecting) * * @param {Object} token * @return {DiscontinuousRange} */ function expand(token) { if (token.type === ret.types.CHAR) return new DRange(token.value); if (token.type === ret.types.RANGE) return new DRange(token.from, token.to); if (token.type === ret.types.SET) { var drange = new DRange(); for (var i = 0; i < token.set.length; i++) { var subrange = expand.call(this, token.set[i]); drange.add(subrange); if (this.ignoreCase) { for (var j = 0; j < subrange.length; j++) { var code = subrange.index(j); var otherCaseCode = toOtherCase(code); if (code !== otherCaseCode) { drange.add(otherCaseCode); } } } } if (token.not) { return this.defaultRange.clone().subtract(drange); } else { return drange; } } throw new Error('unexpandable token type: ' + token.type); } /** * @constructor * @param {RegExp|String} regexp * @param {String} m */ var RandExp = module.exports = function(regexp, m) { this.defaultRange = this.defaultRange.clone(); if (regexp instanceof RegExp) { this.ignoreCase = regexp.ignoreCase; this.multiline = regexp.multiline; if (typeof regexp.max === 'number') { this.max = regexp.max; } regexp = regexp.source; } else if (typeof regexp === 'string') { this.ignoreCase = m && m.indexOf('i') !== -1; this.multiline = m && m.indexOf('m') !== -1; } else { throw new Error('Expected a regexp or string'); } this.tokens = ret(regexp); }; // When a repetitional token has its max set to Infinite, // randexp won't actually generate a random amount between min and Infinite // instead it will see Infinite as min + 100. RandExp.prototype.max = 100; // Generates the random string. RandExp.prototype.gen = function() { return gen.call(this, this.tokens, []); }; // Enables use of randexp with a shorter call. RandExp.randexp = function(regexp, m) { var randexp; if (regexp._randexp === undefined) { randexp = new RandExp(regexp, m); regexp._randexp = randexp; } else { randexp = regexp._randexp; if (typeof regexp.max === 'number') { randexp.max = regexp.max; } if (regexp.defaultRange instanceof DRange) { randexp.defaultRange = regexp.defaultRange; } if (typeof regexp.randInt === 'function') { randexp.randInt = regexp.randInt; } } return randexp.gen(); }; // This enables sugary /regexp/.gen syntax. RandExp.sugar = function() { /* jshint freeze:false */ RegExp.prototype.gen = function() { return RandExp.randexp(this); }; }; // This allows expanding to include additional characters // for instance: RandExp.defaultRange.add(0, 65535); RandExp.prototype.defaultRange = new DRange(32, 126); /** * Randomly generates and returns a number between a and b (inclusive). * * @param {Number} a * @param {Number} b * @return {Number} */ RandExp.prototype.randInt = function(a, b) { return a + Math.floor(Math.random() * (1 + b - a)); }; /** * Generate random string modeled after given tokens. * * @param {Object} token * @param {Array.<String>} groups * @return {String} */ function gen(token, groups) { var stack, str, n, i, l; switch (token.type) { case types.ROOT: case types.GROUP: if (token.notFollowedBy) { return ''; } // Insert placeholder until group string is generated. if (token.remember && token.groupNumber === undefined) { token.groupNumber = groups.push(null) - 1; } stack = token.options ? randSelect.call(this, token.options) : token.stack; str = ''; for (i = 0, l = stack.length; i < l; i++) { str += gen.call(this, stack[i], groups); } if (token.remember) { groups[token.groupNumber] = str; } return str; case types.POSITION: // Do nothing for now. return ''; case types.SET: var expanded_set = expand.call(this, token); if (!expanded_set.length) return ''; return String.fromCharCode(randSelect.call(this, expanded_set)); case types.REPETITION: // Randomly generate number between min and max. n = this.randInt(token.min, token.max === Infinity ? token.min + this.max : token.max); str = ''; for (i = 0; i < n; i++) { str += gen.call(this, token.value, groups); } return str; case types.REFERENCE: return groups[token.value - 1] || ''; case types.CHAR: var code = this.ignoreCase && randBool.call(this) ? toOtherCase(token.value) : token.value; return String.fromCharCode(code); } } },{"discontinuous-range":176,"ret":177}],176:[function(require,module,exports){ //protected helper class function _SubRange(low, high) { this.low = low; this.high = high; this.length = 1 + high - low; } _SubRange.prototype.overlaps = function (range) { return !(this.high < range.low || this.low > range.high); }; _SubRange.prototype.touches = function (range) { return !(this.high + 1 < range.low || this.low - 1 > range.high); }; //returns inclusive combination of _SubRanges as a _SubRange _SubRange.prototype.add = function (range) { return this.touches(range) && new _SubRange(Math.min(this.low, range.low), Math.max(this.high, range.high)); }; //returns subtraction of _SubRanges as an array of _SubRanges (there's a case where subtraction divides it in 2) _SubRange.prototype.subtract = function (range) { if (!this.overlaps(range)) return false; if (range.low <= this.low && range.high >= this.high) return []; if (range.low > this.low && range.high < this.high) return [new _SubRange(this.low, range.low - 1), new _SubRange(range.high + 1, this.high)]; if (range.low <= this.low) return [new _SubRange(range.high + 1, this.high)]; return [new _SubRange(this.low, range.low - 1)]; }; _SubRange.prototype.toString = function () { if (this.low == this.high) return this.low.toString(); return this.low + '-' + this.high; }; _SubRange.prototype.clone = function () { return new _SubRange(this.low, this.high); }; function DiscontinuousRange(a, b) { if (this instanceof DiscontinuousRange) { this.ranges = []; this.length = 0; if (a !== undefined) this.add(a, b); } else { return new DiscontinuousRange(a, b); } } function _update_length(self) { self.length = self.ranges.reduce(function (previous, range) {return previous + range.length}, 0); } DiscontinuousRange.prototype.add = function (a, b) { var self = this; function _add(subrange) { var new_ranges = []; var i = 0; while (i < self.ranges.length && !subrange.touches(self.ranges[i])) { new_ranges.push(self.ranges[i].clone()); i++; } while (i < self.ranges.length && subrange.touches(self.ranges[i])) { subrange = subrange.add(self.ranges[i]); i++; } new_ranges.push(subrange); while (i < self.ranges.length) { new_ranges.push(self.ranges[i].clone()); i++; } self.ranges = new_ranges; _update_length(self); } if (a instanceof DiscontinuousRange) { a.ranges.forEach(_add); } else { if (a instanceof _SubRange) { _add(a); } else { if (b === undefined) b = a; _add(new _SubRange(a, b)); } } return this; }; DiscontinuousRange.prototype.subtract = function (a, b) { var self = this; function _subtract(subrange) { var new_ranges = []; var i = 0; while (i < self.ranges.length && !subrange.overlaps(self.ranges[i])) { new_ranges.push(self.ranges[i].clone()); i++; } while (i < self.ranges.length && subrange.overlaps(self.ranges[i])) { new_ranges = new_ranges.concat(self.ranges[i].subtract(subrange)); i++; } while (i < self.ranges.length) { new_ranges.push(self.ranges[i].clone()); i++; } self.ranges = new_ranges; _update_length(self); } if (a instanceof DiscontinuousRange) { a.ranges.forEach(_subtract); } else { if (a instanceof _SubRange) { _subtract(a); } else { if (b === undefined) b = a; _subtract(new _SubRange(a, b)); } } return this; }; DiscontinuousRange.prototype.index = function (index) { var i = 0; while (i < this.ranges.length && this.ranges[i].length <= index) { index -= this.ranges[i].length; i++; } if (i >= this.ranges.length) return null; return this.ranges[i].low + index; }; DiscontinuousRange.prototype.toString = function () { return '[ ' + this.ranges.join(', ') + ' ]' }; DiscontinuousRange.prototype.clone = function () { return new DiscontinuousRange(this); }; module.exports = DiscontinuousRange; },{}],177:[function(require,module,exports){ var util = require('./util'); var types = require('./types'); var sets = require('./sets'); var positions = require('./positions'); module.exports = function(regexpStr) { var i = 0, l, c, start = { type: types.ROOT, stack: []}, // Keep track of last clause/group and stack. lastGroup = start, last = start.stack, groupStack = []; var repeatErr = function(i) { util.error(regexpStr, 'Nothing to repeat at column ' + (i - 1)); }; // Decode a few escaped characters. var str = util.strToChars(regexpStr); l = str.length; // Iterate through each character in string. while (i < l) { c = str[i++]; switch (c) { // Handle escaped characters, inclues a few sets. case '\\': c = str[i++]; switch (c) { case 'b': last.push(positions.wordBoundary()); break; case 'B': last.push(positions.nonWordBoundary()); break; case 'w': last.push(sets.words()); break; case 'W': last.push(sets.notWords()); break; case 'd': last.push(sets.ints()); break; case 'D': last.push(sets.notInts()); break; case 's': last.push(sets.whitespace()); break; case 'S': last.push(sets.notWhitespace()); break; default: // Check if c is integer. // In which case it's a reference. if (/\d/.test(c)) { last.push({ type: types.REFERENCE, value: parseInt(c, 10) }); // Escaped character. } else { last.push({ type: types.CHAR, value: c.charCodeAt(0) }); } } break; // Positionals. case '^': last.push(positions.begin()); break; case '$': last.push(positions.end()); break; // Handle custom sets. case '[': // Check if this class is 'anti' i.e. [^abc]. var not; if (str[i] === '^') { not = true; i++; } else { not = false; } // Get all the characters in class. var classTokens = util.tokenizeClass(str.slice(i), regexpStr); // Increase index by length of class. i += classTokens[1]; last.push({ type: types.SET , set: classTokens[0] , not: not }); break; // Class of any character except \n. case '.': last.push(sets.anyChar()); break; // Push group onto stack. case '(': // Create group. var group = { type: types.GROUP , stack: [] , remember: true }; c = str[i]; // if if this is a special kind of group. if (c === '?') { c = str[i + 1]; i += 2; // Match if followed by. if (c === '=') { group.followedBy = true; // Match if not followed by. } else if (c === '!') { group.notFollowedBy = true; } else if (c !== ':') { util.error(regexpStr, 'Invalid group, character \'' + c + '\' after \'?\' at column ' + (i - 1)); } group.remember = false; } // Insert subgroup into current group stack. last.push(group); // Remember the current group for when the group closes. groupStack.push(lastGroup); // Make this new group the current group. lastGroup = group; last = group.stack; break; // Pop group out of stack. case ')': if (groupStack.length === 0) { util.error(regexpStr, 'Unmatched ) at column ' + (i - 1)); } lastGroup = groupStack.pop(); // Check if this group has a PIPE. // To get back the correct last stack. last = lastGroup.options ? lastGroup.options[lastGroup.options.length - 1] : lastGroup.stack; break; // Use pipe character to give more choices. case '|': // Create array where options are if this is the first PIPE // in this clause. if (!lastGroup.options) { lastGroup.options = [lastGroup.stack]; delete lastGroup.stack; } // Create a new stack and add to options for rest of clause. var stack = []; lastGroup.options.push(stack); last = stack; break; // Repetition. // For every repetition, remove last element from last stack // then insert back a RANGE object. // This design is chosen because there could be more than // one repetition symbols in a regex i.e. `a?+{2,3}`. case '{': var rs = /^(\d+)(,(\d+)?)?\}/.exec(str.slice(i)), min, max; if (rs !== null) { min = parseInt(rs[1], 10); max = rs[2] ? rs[3] ? parseInt(rs[3], 10) : Infinity : min; i += rs[0].length; last.push({ type: types.REPETITION , min: min , max: max , value: last.pop() }); } else { last.push({ type: types.CHAR , value: 123 }); } break; case '?': if (last.length === 0) { repeatErr(i); } last.push({ type: types.REPETITION , min: 0 , max: 1 , value: last.pop() }); break; case '+': if (last.length === 0) { repeatErr(i); } last.push({ type: types.REPETITION , min: 1 , max: Infinity , value: last.pop() }); break; case '*': if (last.length === 0) { repeatErr(i); } last.push({ type: types.REPETITION , min: 0 , max: Infinity , value: last.pop() }); break; // Default is a character that is not `\[](){}?+*^$`. default: last.push({ type: types.CHAR , value: c.charCodeAt(0) }); } } // Check if any groups have not been closed. if (groupStack.length !== 0) { util.error(regexpStr, 'Unterminated group'); } return start; }; module.exports.types = types; },{"./positions":178,"./sets":179,"./types":180,"./util":181}],178:[function(require,module,exports){ var types = require('./types'); exports.wordBoundary = function() { return { type: types.POSITION, value: 'b' }; }; exports.nonWordBoundary = function() { return { type: types.POSITION, value: 'B' }; }; exports.begin = function() { return { type: types.POSITION, value: '^' }; }; exports.end = function() { return { type: types.POSITION, value: '$' }; }; },{"./types":180}],179:[function(require,module,exports){ var types = require('./types'); var INTS = function() { return [{ type: types.RANGE , from: 48, to: 57 }]; }; var WORDS = function() { return [ { type: types.CHAR, value: 95 } , { type: types.RANGE, from: 97, to: 122 } , { type: types.RANGE, from: 65, to: 90 } ].concat(INTS()); }; var WHITESPACE = function() { return [ { type: types.CHAR, value: 9 } , { type: types.CHAR, value: 10 } , { type: types.CHAR, value: 11 } , { type: types.CHAR, value: 12 } , { type: types.CHAR, value: 13 } , { type: types.CHAR, value: 32 } , { type: types.CHAR, value: 160 } , { type: types.CHAR, value: 5760 } , { type: types.CHAR, value: 6158 } , { type: types.CHAR, value: 8192 } , { type: types.CHAR, value: 8193 } , { type: types.CHAR, value: 8194 } , { type: types.CHAR, value: 8195 } , { type: types.CHAR, value: 8196 } , { type: types.CHAR, value: 8197 } , { type: types.CHAR, value: 8198 } , { type: types.CHAR, value: 8199 } , { type: types.CHAR, value: 8200 } , { type: types.CHAR, value: 8201 } , { type: types.CHAR, value: 8202 } , { type: types.CHAR, value: 8232 } , { type: types.CHAR, value: 8233 } , { type: types.CHAR, value: 8239 } , { type: types.CHAR, value: 8287 } , { type: types.CHAR, value: 12288 } , { type: types.CHAR, value: 65279 } ]; }; var NOTANYCHAR = function() { return [ { type: types.CHAR, value: 10 } , { type: types.CHAR, value: 13 } , { type: types.CHAR, value: 8232 } , { type: types.CHAR, value: 8233 } ]; }; // predefined class objects exports.words = function() { return { type: types.SET, set: WORDS(), not: false }; }; exports.notWords = function() { return { type: types.SET, set: WORDS(), not: true }; }; exports.ints = function() { return { type: types.SET, set: INTS(), not: false }; }; exports.notInts = function() { return { type: types.SET, set: INTS(), not: true }; }; exports.whitespace = function() { return { type: types.SET, set: WHITESPACE(), not: false }; }; exports.notWhitespace = function() { return { type: types.SET, set: WHITESPACE(), not: true }; }; exports.anyChar = function() { return { type: types.SET, set: NOTANYCHAR(), not: true }; }; },{"./types":180}],180:[function(require,module,exports){ module.exports = { ROOT : 0 , GROUP : 1 , POSITION : 2 , SET : 3 , RANGE : 4 , REPETITION : 5 , REFERENCE : 6 , CHAR : 7 }; },{}],181:[function(require,module,exports){ var types = require('./types'); var sets = require('./sets'); // All of these are private and only used by randexp. // It's assumed that they will always be called with the correct input. var CTRL = '@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?'; var SLSH = { '0': 0, 't': 9, 'n': 10, 'v': 11, 'f': 12, 'r': 13 }; /** * Finds character representations in str and convert all to * their respective characters * * @param {String} str * @return {String} */ exports.strToChars = function(str) { var chars_regex = /(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z\[\\\]\^?])|([0tnvfr]))/g; str = str.replace(chars_regex, function(s, b, lbs, a16, b16, c8, dctrl, eslsh) { if (lbs) { return s; } var code = b ? 8 : a16 ? parseInt(a16, 16) : b16 ? parseInt(b16, 16) : c8 ? parseInt(c8, 8) : dctrl ? CTRL.indexOf(dctrl) : eslsh ? SLSH[eslsh] : undefined; var c = String.fromCharCode(code); // Escape special regex characters. if (/[\[\]{}\^$.|?*+()]/.test(c)) { c = '\\' + c; } return c; }); return str; }; /** * turns class into tokens * reads str until it encounters a ] not preceeded by a \ * * @param {String} str * @param {String} regexpStr * @return {Array.<Array.<Object>, Number>} */ exports.tokenizeClass = function(str, regexpStr) { var tokens = [] , regexp = /\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?(.)/g , rs, c ; while ((rs = regexp.exec(str)) != null) { if (rs[1]) { tokens.push(sets.words()); } else if (rs[2]) { tokens.push(sets.ints()); } else if (rs[3]) { tokens.push(sets.whitespace()); } else if (rs[4]) { tokens.push(sets.notWords()); } else if (rs[5]) { tokens.push(sets.notInts()); } else if (rs[6]) { tokens.push(sets.notWhitespace()); } else if (rs[7]) { tokens.push({ type: types.RANGE , from: (rs[8] || rs[9]).charCodeAt(0) , to: rs[10].charCodeAt(0) }); } else if (c = rs[12]) { tokens.push({ type: types.CHAR , value: c.charCodeAt(0) }); } else { return [tokens, regexp.lastIndex]; } } exports.error(regexpStr, 'Unterminated character class'); }; /** * Shortcut to throw errors. * * @param {String} regexp * @param {String} msg */ exports.error = function(regexp, msg) { throw new SyntaxError('Invalid regular expression: /' + regexp + '/: ' + msg); }; },{"./sets":179,"./types":180}],"json-schema-faker":[function(require,module,exports){ module.exports = require('../lib/') .extend('faker', function() { try { return require('faker/locale/nl'); } catch (e) { return null; } }); },{"../lib/":19,"faker/locale/nl":171}]},{},["json-schema-faker"])("json-schema-faker") });
(function() { var Bacon, BufferingSource, Bus, CompositeUnsubscribe, ConsumingSource, DepCache, Desc, Dispatcher, End, Error, Event, EventStream, Exception, Initial, Next, None, Observable, Property, PropertyDispatcher, Some, Source, UpdateBarrier, addPropertyInitValueToStream, assert, assertArray, assertEventStream, assertFunction, assertNoArguments, assertString, cloneArray, compositeUnsubscribe, containsDuplicateDeps, convertArgsToFunction, describe, end, eventIdCounter, findDeps, flatMap_, former, idCounter, initial, isArray, isFieldKey, isFunction, isObservable, latterF, liftCallback, makeFunction, makeFunctionArgs, makeFunction_, makeObservable, makeSpawner, next, nop, partiallyApplied, recursionDepth, registerObs, spys, toCombinator, toEvent, toFieldExtractor, toFieldKey, toOption, toSimpleExtractor, withDescription, withMethodCallSupport, _, _ref, __slice = [].slice, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; Bacon = { toString: function() { return "Bacon"; } }; Bacon.version = '0.7.23'; Exception = (typeof global !== "undefined" && global !== null ? global : this).Error; Bacon.fromBinder = function(binder, eventTransformer) { if (eventTransformer == null) { eventTransformer = _.id; } return new EventStream(describe(Bacon, "fromBinder", binder, eventTransformer), function(sink) { var unbind, unbinder, unbound; unbound = false; unbind = function() { if (typeof unbinder !== "undefined" && unbinder !== null) { if (!unbound) { unbinder(); } return unbound = true; } }; unbinder = binder(function() { var args, event, reply, value, _i, _len; args = 1 <= arguments.length ? __slice.call(arguments, 0) : []; value = eventTransformer.apply(null, args); if (!(isArray(value) && _.last(value) instanceof Event)) { value = [value]; } reply = Bacon.more; for (_i = 0, _len = value.length; _i < _len; _i++) { event = value[_i]; reply = sink(event = toEvent(event)); if (reply === Bacon.noMore || event.isEnd()) { if (unbinder != null) { unbind(); } else { Bacon.scheduler.setTimeout(unbind, 0); } return reply; } } return reply; }); return unbind; }); }; Bacon.$ = {}; Bacon.$.asEventStream = function(eventName, selector, eventTransformer) { var _ref; if (isFunction(selector)) { _ref = [selector, void 0], eventTransformer = _ref[0], selector = _ref[1]; } return withDescription(this.selector || this, "asEventStream", eventName, Bacon.fromBinder((function(_this) { return function(handler) { _this.on(eventName, selector, handler); return function() { return _this.off(eventName, selector, handler); }; }; })(this), eventTransformer)); }; if ((_ref = typeof jQuery !== "undefined" && jQuery !== null ? jQuery : typeof Zepto !== "undefined" && Zepto !== null ? Zepto : void 0) != null) { _ref.fn.asEventStream = Bacon.$.asEventStream; } Bacon.fromEventTarget = function(target, eventName, eventTransformer) { var sub, unsub, _ref1, _ref2, _ref3, _ref4; sub = (_ref1 = target.addEventListener) != null ? _ref1 : (_ref2 = target.addListener) != null ? _ref2 : target.bind; unsub = (_ref3 = target.removeEventListener) != null ? _ref3 : (_ref4 = target.removeListener) != null ? _ref4 : target.unbind; return withDescription(Bacon, "fromEventTarget", target, eventName, Bacon.fromBinder(function(handler) { sub.call(target, eventName, handler); return function() { return unsub.call(target, eventName, handler); }; }, eventTransformer)); }; Bacon.fromPromise = function(promise, abort) { return withDescription(Bacon, "fromPromise", promise, Bacon.fromBinder(function(handler) { promise.then(handler, function(e) { return handler(new Error(e)); }); return function() { if (abort) { return typeof promise.abort === "function" ? promise.abort() : void 0; } }; }, (function(value) { return [value, end()]; }))); }; Bacon.noMore = ["<no-more>"]; Bacon.more = ["<more>"]; Bacon.later = function(delay, value) { return withDescription(Bacon, "later", delay, value, Bacon.sequentially(delay, [value])); }; Bacon.sequentially = function(delay, values) { var index; index = 0; return withDescription(Bacon, "sequentially", delay, values, Bacon.fromPoll(delay, function() { var value; value = values[index++]; if (index < values.length) { return value; } else if (index === values.length) { return [value, end()]; } else { return end(); } })); }; Bacon.repeatedly = function(delay, values) { var index; index = 0; return withDescription(Bacon, "repeatedly", delay, values, Bacon.fromPoll(delay, function() { return values[index++ % values.length]; })); }; Bacon.spy = function(spy) { return spys.push(spy); }; spys = []; registerObs = function(obs) { var spy, _i, _len, _results; if (spys.length) { if (!registerObs.running) { try { registerObs.running = true; _results = []; for (_i = 0, _len = spys.length; _i < _len; _i++) { spy = spys[_i]; _results.push(spy(obs)); } return _results; } finally { delete registerObs.running; } } } }; withMethodCallSupport = function(wrapped) { return function() { var args, context, f, methodName; f = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : []; if (typeof f === "object" && args.length) { context = f; methodName = args[0]; f = function() { return context[methodName].apply(context, arguments); }; args = args.slice(1); } return wrapped.apply(null, [f].concat(__slice.call(args))); }; }; liftCallback = function(desc, wrapped) { return withMethodCallSupport(function() { var args, f, stream; f = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : []; stream = partiallyApplied(wrapped, [ function(values, callback) { return f.apply(null, __slice.call(values).concat([callback])); } ]); return withDescription.apply(null, [Bacon, desc, f].concat(__slice.call(args), [Bacon.combineAsArray(args).flatMap(stream)])); }); }; Bacon.fromCallback = liftCallback("fromCallback", function() { var args, f; f = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : []; return Bacon.fromBinder(function(handler) { makeFunction(f, args)(handler); return nop; }, (function(value) { return [value, end()]; })); }); Bacon.fromNodeCallback = liftCallback("fromNodeCallback", function() { var args, f; f = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : []; return Bacon.fromBinder(function(handler) { makeFunction(f, args)(handler); return nop; }, function(error, value) { if (error) { return [new Error(error), end()]; } return [value, end()]; }); }); Bacon.fromPoll = function(delay, poll) { return withDescription(Bacon, "fromPoll", delay, poll, Bacon.fromBinder((function(handler) { var id; id = Bacon.scheduler.setInterval(handler, delay); return function() { return Bacon.scheduler.clearInterval(id); }; }), poll)); }; Bacon.interval = function(delay, value) { if (value == null) { value = {}; } return withDescription(Bacon, "interval", delay, value, Bacon.fromPoll(delay, function() { return next(value); })); }; Bacon.constant = function(value) { return new Property(describe(Bacon, "constant", value), function(sink) { sink(initial(value)); sink(end()); return nop; }); }; Bacon.never = function() { return withDescription(Bacon, "never", Bacon.fromArray([])); }; Bacon.once = function(value) { return withDescription(Bacon, "once", value, Bacon.fromArray([value])); }; Bacon.fromArray = function(values) { var i; assertArray(values); values = cloneArray(values); i = 0; return new EventStream(describe(Bacon, "fromArray", values), function(sink) { var reply, unsubd, value; unsubd = false; reply = Bacon.more; while ((reply !== Bacon.noMore) && !unsubd) { if (i >= values.length) { sink(end()); reply = Bacon.noMore; } else { value = values[i++]; reply = sink(toEvent(value)); } } return function() { return unsubd = true; }; }); }; Bacon.mergeAll = function() { var streams; streams = 1 <= arguments.length ? __slice.call(arguments, 0) : []; if (isArray(streams[0])) { streams = streams[0]; } if (streams.length) { return new EventStream(describe.apply(null, [Bacon, "mergeAll"].concat(__slice.call(streams))), function(sink) { var ends, sinks, smartSink; ends = 0; smartSink = function(obs) { return function(unsubBoth) { return obs.subscribeInternal(function(event) { var reply; if (event.isEnd()) { ends++; if (ends === streams.length) { return sink(end()); } else { return Bacon.more; } } else { reply = sink(event); if (reply === Bacon.noMore) { unsubBoth(); } return reply; } }); }; }; sinks = _.map(smartSink, streams); return compositeUnsubscribe.apply(null, sinks); }); } else { return Bacon.never(); } }; Bacon.zipAsArray = function() { var streams; streams = 1 <= arguments.length ? __slice.call(arguments, 0) : []; if (isArray(streams[0])) { streams = streams[0]; } return withDescription.apply(null, [Bacon, "zipAsArray"].concat(__slice.call(streams), [Bacon.zipWith(streams, function() { var xs; xs = 1 <= arguments.length ? __slice.call(arguments, 0) : []; return xs; })])); }; Bacon.zipWith = function() { var f, streams, _ref1; f = arguments[0], streams = 2 <= arguments.length ? __slice.call(arguments, 1) : []; if (!isFunction(f)) { _ref1 = [f, streams[0]], streams = _ref1[0], f = _ref1[1]; } streams = _.map((function(s) { return s.toEventStream(); }), streams); return withDescription.apply(null, [Bacon, "zipWith", f].concat(__slice.call(streams), [Bacon.when(streams, f)])); }; Bacon.groupSimultaneous = function() { var s, sources, streams; streams = 1 <= arguments.length ? __slice.call(arguments, 0) : []; if (streams.length === 1 && isArray(streams[0])) { streams = streams[0]; } sources = (function() { var _i, _len, _results; _results = []; for (_i = 0, _len = streams.length; _i < _len; _i++) { s = streams[_i]; _results.push(new BufferingSource(s)); } return _results; })(); return withDescription.apply(null, [Bacon, "groupSimultaneous"].concat(__slice.call(streams), [Bacon.when(sources, (function() { var xs; xs = 1 <= arguments.length ? __slice.call(arguments, 0) : []; return xs; }))])); }; Bacon.combineAsArray = function() { var index, s, sources, stream, streams, _i, _len; streams = 1 <= arguments.length ? __slice.call(arguments, 0) : []; if (streams.length === 1 && isArray(streams[0])) { streams = streams[0]; } for (index = _i = 0, _len = streams.length; _i < _len; index = ++_i) { stream = streams[index]; if (!(isObservable(stream))) { streams[index] = Bacon.constant(stream); } } if (streams.length) { sources = (function() { var _j, _len1, _results; _results = []; for (_j = 0, _len1 = streams.length; _j < _len1; _j++) { s = streams[_j]; _results.push(new Source(s, true, s.subscribeInternal)); } return _results; })(); return withDescription.apply(null, [Bacon, "combineAsArray"].concat(__slice.call(streams), [Bacon.when(sources, (function() { var xs; xs = 1 <= arguments.length ? __slice.call(arguments, 0) : []; return xs; })).toProperty()])); } else { return Bacon.constant([]); } }; Bacon.onValues = function() { var f, streams, _i; streams = 2 <= arguments.length ? __slice.call(arguments, 0, _i = arguments.length - 1) : (_i = 0, []), f = arguments[_i++]; return Bacon.combineAsArray(streams).onValues(f); }; Bacon.combineWith = function() { var f, streams; f = arguments[0], streams = 2 <= arguments.length ? __slice.call(arguments, 1) : []; return withDescription.apply(null, [Bacon, "combineWith", f].concat(__slice.call(streams), [Bacon.combineAsArray(streams).map(function(values) { return f.apply(null, values); })])); }; Bacon.combineTemplate = function(template) { var applyStreamValue, combinator, compile, compileTemplate, constantValue, current, funcs, mkContext, setValue, streams; funcs = []; streams = []; current = function(ctxStack) { return ctxStack[ctxStack.length - 1]; }; setValue = function(ctxStack, key, value) { return current(ctxStack)[key] = value; }; applyStreamValue = function(key, index) { return function(ctxStack, values) { return setValue(ctxStack, key, values[index]); }; }; constantValue = function(key, value) { return function(ctxStack) { return setValue(ctxStack, key, value); }; }; mkContext = function(template) { if (isArray(template)) { return []; } else { return {}; } }; compile = function(key, value) { var popContext, pushContext; if (isObservable(value)) { streams.push(value); return funcs.push(applyStreamValue(key, streams.length - 1)); } else if (value === Object(value) && typeof value !== "function" && !(value instanceof RegExp) && !(value instanceof Date)) { pushContext = function(key) { return function(ctxStack) { var newContext; newContext = mkContext(value); setValue(ctxStack, key, newContext); return ctxStack.push(newContext); }; }; popContext = function(ctxStack) { return ctxStack.pop(); }; funcs.push(pushContext(key)); compileTemplate(value); return funcs.push(popContext); } else { return funcs.push(constantValue(key, value)); } }; compileTemplate = function(template) { return _.each(template, compile); }; compileTemplate(template); combinator = function(values) { var ctxStack, f, rootContext, _i, _len; rootContext = mkContext(template); ctxStack = [rootContext]; for (_i = 0, _len = funcs.length; _i < _len; _i++) { f = funcs[_i]; f(ctxStack, values); } return rootContext; }; return withDescription(Bacon, "combineTemplate", template, Bacon.combineAsArray(streams).map(combinator)); }; Bacon.retry = function(options) { var delay, isRetryable, maxRetries, retries, retry, source; if (!isFunction(options.source)) { throw new Exception("'source' option has to be a function"); } source = options.source; retries = options.retries || 0; maxRetries = options.maxRetries || retries; delay = options.delay || function() { return 0; }; isRetryable = options.isRetryable || function() { return true; }; retry = function(context) { var delayedRetry, nextAttemptOptions; nextAttemptOptions = { source: source, retries: retries - 1, maxRetries: maxRetries, delay: delay, isRetryable: isRetryable }; delayedRetry = function() { return Bacon.retry(nextAttemptOptions); }; return Bacon.later(delay(context)).filter(false).concat(Bacon.once().flatMap(delayedRetry)); }; return withDescription(Bacon, "retry", options, source().flatMapError(function(e) { if (isRetryable(e) && retries > 0) { return retry({ error: e, retriesDone: maxRetries - retries }); } else { return Bacon.once(new Error(e)); } })); }; eventIdCounter = 0; Event = (function() { function Event() { this.id = ++eventIdCounter; } Event.prototype.isEvent = function() { return true; }; Event.prototype.isEnd = function() { return false; }; Event.prototype.isInitial = function() { return false; }; Event.prototype.isNext = function() { return false; }; Event.prototype.isError = function() { return false; }; Event.prototype.hasValue = function() { return false; }; Event.prototype.filter = function() { return true; }; Event.prototype.inspect = function() { return this.toString(); }; Event.prototype.log = function() { return this.toString(); }; return Event; })(); Next = (function(_super) { __extends(Next, _super); function Next(valueF) { Next.__super__.constructor.call(this); if (isFunction(valueF)) { this.value = _.cached(valueF); } else { this.value = _.always(valueF); } } Next.prototype.isNext = function() { return true; }; Next.prototype.hasValue = function() { return true; }; Next.prototype.fmap = function(f) { var value; value = this.value; return this.apply(function() { return f(value()); }); }; Next.prototype.apply = function(value) { return new Next(value); }; Next.prototype.filter = function(f) { return f(this.value()); }; Next.prototype.toString = function() { return _.toString(this.value()); }; Next.prototype.log = function() { return this.value(); }; return Next; })(Event); Initial = (function(_super) { __extends(Initial, _super); function Initial() { return Initial.__super__.constructor.apply(this, arguments); } Initial.prototype.isInitial = function() { return true; }; Initial.prototype.isNext = function() { return false; }; Initial.prototype.apply = function(value) { return new Initial(value); }; Initial.prototype.toNext = function() { return new Next(this.value); }; return Initial; })(Next); End = (function(_super) { __extends(End, _super); function End() { return End.__super__.constructor.apply(this, arguments); } End.prototype.isEnd = function() { return true; }; End.prototype.fmap = function() { return this; }; End.prototype.apply = function() { return this; }; End.prototype.toString = function() { return "<end>"; }; return End; })(Event); Error = (function(_super) { __extends(Error, _super); function Error(error) { this.error = error; } Error.prototype.isError = function() { return true; }; Error.prototype.fmap = function() { return this; }; Error.prototype.apply = function() { return this; }; Error.prototype.toString = function() { return "<error> " + _.toString(this.error); }; return Error; })(Event); idCounter = 0; Observable = (function() { function Observable(desc) { this.flatMapError = __bind(this.flatMapError, this); this.id = ++idCounter; withDescription(desc, this); this.initialDesc = this.desc; } Observable.prototype.onValue = function() { var f; f = makeFunctionArgs(arguments); return this.subscribe(function(event) { if (event.hasValue()) { return f(event.value()); } }); }; Observable.prototype.onValues = function(f) { return this.onValue(function(args) { return f.apply(null, args); }); }; Observable.prototype.onError = function() { var f; f = makeFunctionArgs(arguments); return this.subscribe(function(event) { if (event.isError()) { return f(event.error); } }); }; Observable.prototype.onEnd = function() { var f; f = makeFunctionArgs(arguments); return this.subscribe(function(event) { if (event.isEnd()) { return f(); } }); }; Observable.prototype.errors = function() { return withDescription(this, "errors", this.filter(function() { return false; })); }; Observable.prototype.filter = function() { var args, f; f = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : []; return convertArgsToFunction(this, f, args, function(f) { return withDescription(this, "filter", f, this.withHandler(function(event) { if (event.filter(f)) { return this.push(event); } else { return Bacon.more; } })); }); }; Observable.prototype.takeWhile = function() { var args, f; f = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : []; return convertArgsToFunction(this, f, args, function(f) { return withDescription(this, "takeWhile", f, this.withHandler(function(event) { if (event.filter(f)) { return this.push(event); } else { this.push(end()); return Bacon.noMore; } })); }); }; Observable.prototype.endOnError = function() { var args, f; f = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : []; if (f == null) { f = true; } return convertArgsToFunction(this, f, args, function(f) { return withDescription(this, "endOnError", this.withHandler(function(event) { if (event.isError() && f(event.error)) { this.push(event); return this.push(end()); } else { return this.push(event); } })); }); }; Observable.prototype.take = function(count) { if (count <= 0) { return Bacon.never(); } return withDescription(this, "take", count, this.withHandler(function(event) { if (!event.hasValue()) { return this.push(event); } else { count--; if (count > 0) { return this.push(event); } else { if (count === 0) { this.push(event); } this.push(end()); return Bacon.noMore; } } })); }; Observable.prototype.map = function() { var args, p; p = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : []; if (p instanceof Property) { return p.sampledBy(this, former); } else { return convertArgsToFunction(this, p, args, function(f) { return withDescription(this, "map", f, this.withHandler(function(event) { return this.push(event.fmap(f)); })); }); } }; Observable.prototype.mapError = function() { var f; f = makeFunctionArgs(arguments); return withDescription(this, "mapError", f, this.withHandler(function(event) { if (event.isError()) { return this.push(next(f(event.error))); } else { return this.push(event); } })); }; Observable.prototype.mapEnd = function() { var f; f = makeFunctionArgs(arguments); return withDescription(this, "mapEnd", f, this.withHandler(function(event) { if (event.isEnd()) { this.push(next(f(event))); this.push(end()); return Bacon.noMore; } else { return this.push(event); } })); }; Observable.prototype.doAction = function() { var f; f = makeFunctionArgs(arguments); return withDescription(this, "doAction", f, this.withHandler(function(event) { if (event.hasValue()) { f(event.value()); } return this.push(event); })); }; Observable.prototype.skip = function(count) { return withDescription(this, "skip", count, this.withHandler(function(event) { if (!event.hasValue()) { return this.push(event); } else if (count > 0) { count--; return Bacon.more; } else { return this.push(event); } })); }; Observable.prototype.skipDuplicates = function(isEqual) { if (isEqual == null) { isEqual = function(a, b) { return a === b; }; } return withDescription(this, "skipDuplicates", this.withStateMachine(None, function(prev, event) { if (!event.hasValue()) { return [prev, [event]]; } else if (event.isInitial() || prev === None || !isEqual(prev.get(), event.value())) { return [new Some(event.value()), [event]]; } else { return [prev, []]; } })); }; Observable.prototype.skipErrors = function() { return withDescription(this, "skipErrors", this.withHandler(function(event) { if (event.isError()) { return Bacon.more; } else { return this.push(event); } })); }; Observable.prototype.withStateMachine = function(initState, f) { var state; state = initState; return withDescription(this, "withStateMachine", initState, f, this.withHandler(function(event) { var fromF, newState, output, outputs, reply, _i, _len; fromF = f(state, event); newState = fromF[0], outputs = fromF[1]; state = newState; reply = Bacon.more; for (_i = 0, _len = outputs.length; _i < _len; _i++) { output = outputs[_i]; reply = this.push(output); if (reply === Bacon.noMore) { return reply; } } return reply; })); }; Observable.prototype.scan = function(seed, f, options) { var acc, f_, resultProperty, subscribe; if (options == null) { options = {}; } f_ = toCombinator(f); f = options.lazyF ? f_ : function(x, y) { return f_(x(), y()); }; acc = toOption(seed).map(function(x) { return _.always(x); }); subscribe = (function(_this) { return function(sink) { var initSent, reply, sendInit, unsub; initSent = false; unsub = nop; reply = Bacon.more; sendInit = function() { if (!initSent) { return acc.forEach(function(valueF) { initSent = true; reply = sink(new Initial(valueF)); if (reply === Bacon.noMore) { unsub(); return unsub = nop; } }); } }; unsub = _this.subscribeInternal(function(event) { var next, prev; if (event.hasValue()) { if (initSent && event.isInitial()) { return Bacon.more; } else { if (!event.isInitial()) { sendInit(); } initSent = true; prev = acc.getOrElse(function() { return void 0; }); next = _.cached(function() { return f(prev, event.value); }); acc = new Some(next); if (options.eager) { next(); } return sink(event.apply(next)); } } else { if (event.isEnd()) { reply = sendInit(); } if (reply !== Bacon.noMore) { return sink(event); } } }); UpdateBarrier.whenDoneWith(resultProperty, sendInit); return unsub; }; })(this); return resultProperty = new Property(describe(this, "scan", seed, f), subscribe); }; Observable.prototype.fold = function(seed, f, options) { return withDescription(this, "fold", seed, f, this.scan(seed, f, options).sampledBy(this.filter(false).mapEnd().toProperty())); }; Observable.prototype.zip = function(other, f) { if (f == null) { f = Array; } return withDescription(this, "zip", other, Bacon.zipWith([this, other], f)); }; Observable.prototype.diff = function(start, f) { f = toCombinator(f); return withDescription(this, "diff", start, f, this.scan([start], function(prevTuple, next) { return [next, f(prevTuple[0], next)]; }).filter(function(tuple) { return tuple.length === 2; }).map(function(tuple) { return tuple[1]; })); }; Observable.prototype.flatMap = function() { return flatMap_(this, makeSpawner(arguments)); }; Observable.prototype.flatMapFirst = function() { return flatMap_(this, makeSpawner(arguments), true); }; Observable.prototype.flatMapWithConcurrencyLimit = function() { var args, limit; limit = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : []; return withDescription.apply(null, [this, "flatMapWithConcurrencyLimit", limit].concat(__slice.call(args), [flatMap_(this, makeSpawner(args), false, limit)])); }; Observable.prototype.flatMapLatest = function() { var f, stream; f = makeSpawner(arguments); stream = this.toEventStream(); return withDescription(this, "flatMapLatest", f, stream.flatMap(function(value) { return makeObservable(f(value)).takeUntil(stream); })); }; Observable.prototype.flatMapError = function(fn) { return withDescription(this, "flatMapError", fn, this.mapError(function(err) { return new Error(err); }).flatMap(function(x) { if (x instanceof Error) { return fn(x.error); } else { return Bacon.once(x); } })); }; Observable.prototype.flatMapConcat = function() { return withDescription.apply(null, [this, "flatMapConcat"].concat(__slice.call(arguments), [this.flatMapWithConcurrencyLimit.apply(this, [1].concat(__slice.call(arguments)))])); }; Observable.prototype.bufferingThrottle = function(minimumInterval) { return withDescription(this, "bufferingThrottle", minimumInterval, this.flatMapConcat(function(x) { return Bacon.once(x).concat(Bacon.later(minimumInterval).filter(false)); })); }; Observable.prototype.not = function() { return withDescription(this, "not", this.map(function(x) { return !x; })); }; Observable.prototype.log = function() { var args; args = 1 <= arguments.length ? __slice.call(arguments, 0) : []; this.subscribe(function(event) { return typeof console !== "undefined" && console !== null ? typeof console.log === "function" ? console.log.apply(console, __slice.call(args).concat([event.log()])) : void 0 : void 0; }); return this; }; Observable.prototype.slidingWindow = function(n, minValues) { if (minValues == null) { minValues = 0; } return withDescription(this, "slidingWindow", n, minValues, this.scan([], (function(window, value) { return window.concat([value]).slice(-n); })).filter((function(values) { return values.length >= minValues; }))); }; Observable.prototype.combine = function(other, f) { var combinator; combinator = toCombinator(f); return withDescription(this, "combine", other, f, Bacon.combineAsArray(this, other).map(function(values) { return combinator(values[0], values[1]); })); }; Observable.prototype.decode = function(cases) { return withDescription(this, "decode", cases, this.combine(Bacon.combineTemplate(cases), function(key, values) { return values[key]; })); }; Observable.prototype.awaiting = function(other) { return withDescription(this, "awaiting", other, Bacon.groupSimultaneous(this, other).map(function(_arg) { var myValues, otherValues; myValues = _arg[0], otherValues = _arg[1]; return otherValues.length === 0; }).toProperty(false).skipDuplicates()); }; Observable.prototype.name = function(name) { this._name = name; return this; }; Observable.prototype.withDescription = function() { return describe.apply(null, arguments).apply(this); }; Observable.prototype.dependsOn = function(observable) { return DepCache.dependsOn(this, observable); }; Observable.prototype.toString = function() { if (this._name) { return this._name; } else { return this.desc.toString(); } }; Observable.prototype.internalDeps = function() { return this.initialDesc.deps(); }; return Observable; })(); Observable.prototype.reduce = Observable.prototype.fold; Observable.prototype.assign = Observable.prototype.onValue; Observable.prototype.inspect = Observable.prototype.toString; flatMap_ = function(root, f, firstOnly, limit) { var deps, result; deps = [root]; result = new EventStream(describe(root, "flatMap" + (firstOnly ? "First" : ""), f), function(sink) { var checkEnd, checkQueue, composite, queue, spawn; composite = new CompositeUnsubscribe(); queue = []; spawn = function(event) { var child; child = makeObservable(f(event.value())); deps.push(child); DepCache.invalidate(); return composite.add(function(unsubAll, unsubMe) { return child.subscribeInternal(function(event) { var reply; if (event.isEnd()) { _.remove(child, deps); DepCache.invalidate(); checkQueue(); checkEnd(unsubMe); return Bacon.noMore; } else { if (event instanceof Initial) { event = event.toNext(); } reply = sink(event); if (reply === Bacon.noMore) { unsubAll(); } return reply; } }); }); }; checkQueue = function() { var event; event = queue.shift(); if (event) { return spawn(event); } }; checkEnd = function(unsub) { unsub(); if (composite.empty()) { return sink(end()); } }; composite.add(function(__, unsubRoot) { return root.subscribeInternal(function(event) { if (event.isEnd()) { return checkEnd(unsubRoot); } else if (event.isError()) { return sink(event); } else if (firstOnly && composite.count() > 1) { return Bacon.more; } else { if (composite.unsubscribed) { return Bacon.noMore; } if (limit && composite.count() > limit) { return queue.push(event); } else { return spawn(event); } } }); }); return composite.unsubscribe; }); result.internalDeps = function() { return deps; }; return result; }; EventStream = (function(_super) { __extends(EventStream, _super); function EventStream(desc, subscribe) { var dispatcher; if (isFunction(desc)) { subscribe = desc; desc = []; } EventStream.__super__.constructor.call(this, desc); assertFunction(subscribe); dispatcher = new Dispatcher(subscribe); this.subscribeInternal = dispatcher.subscribe; this.subscribe = UpdateBarrier.wrappedSubscribe(this); this.hasSubscribers = dispatcher.hasSubscribers; registerObs(this); } EventStream.prototype.delay = function(delay) { return withDescription(this, "delay", delay, this.flatMap(function(value) { return Bacon.later(delay, value); })); }; EventStream.prototype.debounce = function(delay) { return withDescription(this, "debounce", delay, this.flatMapLatest(function(value) { return Bacon.later(delay, value); })); }; EventStream.prototype.debounceImmediate = function(delay) { return withDescription(this, "debounceImmediate", delay, this.flatMapFirst(function(value) { return Bacon.once(value).concat(Bacon.later(delay).filter(false)); })); }; EventStream.prototype.throttle = function(delay) { return withDescription(this, "throttle", delay, this.bufferWithTime(delay).map(function(values) { return values[values.length - 1]; })); }; EventStream.prototype.bufferWithTime = function(delay) { return withDescription(this, "bufferWithTime", delay, this.bufferWithTimeOrCount(delay, Number.MAX_VALUE)); }; EventStream.prototype.bufferWithCount = function(count) { return withDescription(this, "bufferWithCount", count, this.bufferWithTimeOrCount(void 0, count)); }; EventStream.prototype.bufferWithTimeOrCount = function(delay, count) { var flushOrSchedule; flushOrSchedule = function(buffer) { if (buffer.values.length === count) { return buffer.flush(); } else if (delay !== void 0) { return buffer.schedule(); } }; return withDescription(this, "bufferWithTimeOrCount", delay, count, this.buffer(delay, flushOrSchedule, flushOrSchedule)); }; EventStream.prototype.buffer = function(delay, onInput, onFlush) { var buffer, delayMs, reply; if (onInput == null) { onInput = nop; } if (onFlush == null) { onFlush = nop; } buffer = { scheduled: false, end: void 0, values: [], flush: function() { var reply; this.scheduled = false; if (this.values.length > 0) { reply = this.push(next(this.values)); this.values = []; if (this.end != null) { return this.push(this.end); } else if (reply !== Bacon.noMore) { return onFlush(this); } } else { if (this.end != null) { return this.push(this.end); } } }, schedule: function() { if (!this.scheduled) { this.scheduled = true; return delay((function(_this) { return function() { return _this.flush(); }; })(this)); } } }; reply = Bacon.more; if (!isFunction(delay)) { delayMs = delay; delay = function(f) { return Bacon.scheduler.setTimeout(f, delayMs); }; } return withDescription(this, "buffer", this.withHandler(function(event) { buffer.push = this.push; if (event.isError()) { reply = this.push(event); } else if (event.isEnd()) { buffer.end = event; if (!buffer.scheduled) { buffer.flush(); } } else { buffer.values.push(event.value()); onInput(buffer); } return reply; })); }; EventStream.prototype.merge = function(right) { var left; assertEventStream(right); left = this; return withDescription(left, "merge", right, Bacon.mergeAll(this, right)); }; EventStream.prototype.toProperty = function(initValue) { if (arguments.length === 0) { initValue = None; } return withDescription(this, "toProperty", initValue, this.scan(initValue, latterF, { lazyF: true })); }; EventStream.prototype.toEventStream = function() { return this; }; EventStream.prototype.sampledBy = function(sampler, combinator) { return withDescription(this, "sampledBy", sampler, combinator, this.toProperty().sampledBy(sampler, combinator)); }; EventStream.prototype.concat = function(right) { var left; left = this; return new EventStream(describe(left, "concat", right), function(sink) { var unsubLeft, unsubRight; unsubRight = nop; unsubLeft = left.subscribeInternal(function(e) { if (e.isEnd()) { return unsubRight = right.subscribeInternal(sink); } else { return sink(e); } }); return function() { unsubLeft(); return unsubRight(); }; }); }; EventStream.prototype.takeUntil = function(stopper) { var endMarker; endMarker = {}; return withDescription(this, "takeUntil", stopper, Bacon.groupSimultaneous(this.mapEnd(endMarker), stopper.skipErrors()).withHandler(function(event) { var data, reply, value, _i, _len, _ref1; if (!event.hasValue()) { return this.push(event); } else { _ref1 = event.value(), data = _ref1[0], stopper = _ref1[1]; if (stopper.length) { return this.push(end()); } else { reply = Bacon.more; for (_i = 0, _len = data.length; _i < _len; _i++) { value = data[_i]; if (value === endMarker) { reply = this.push(end()); } else { reply = this.push(next(value)); } } return reply; } } })); }; EventStream.prototype.skipUntil = function(starter) { var started; started = starter.take(1).map(true).toProperty(false); return withDescription(this, "skipUntil", starter, this.filter(started)); }; EventStream.prototype.skipWhile = function() { var args, f, ok; f = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : []; ok = false; return convertArgsToFunction(this, f, args, function(f) { return withDescription(this, "skipWhile", f, this.withHandler(function(event) { if (ok || !event.hasValue() || !f(event.value())) { if (event.hasValue()) { ok = true; } return this.push(event); } else { return Bacon.more; } })); }); }; EventStream.prototype.holdWhen = function(valve) { var putToHold, releaseHold, valve_; valve_ = valve.startWith(false); releaseHold = valve_.filter(function(x) { return !x; }); putToHold = valve_.filter(_.id); return withDescription(this, "holdWhen", valve, this.filter(false).merge(valve_.flatMapConcat((function(_this) { return function(shouldHold) { if (!shouldHold) { return _this.takeUntil(putToHold); } else { return _this.scan([], (function(xs, x) { return xs.concat(x); }), { eager: true }).sampledBy(releaseHold).take(1).flatMap(Bacon.fromArray); } }; })(this)))); }; EventStream.prototype.startWith = function(seed) { return withDescription(this, "startWith", seed, Bacon.once(seed).concat(this)); }; EventStream.prototype.withHandler = function(handler) { var dispatcher; dispatcher = new Dispatcher(this.subscribeInternal, handler); return new EventStream(describe(this, "withHandler", handler), dispatcher.subscribe); }; return EventStream; })(Observable); Property = (function(_super) { __extends(Property, _super); function Property(desc, subscribe, handler) { if (isFunction(desc)) { handler = subscribe; subscribe = desc; desc = []; } Property.__super__.constructor.call(this, desc); assertFunction(subscribe); if (handler === true) { this.subscribeInternal = subscribe; } else { this.subscribeInternal = new PropertyDispatcher(this, subscribe, handler).subscribe; } this.subscribe = UpdateBarrier.wrappedSubscribe(this); registerObs(this); } Property.prototype.sampledBy = function(sampler, combinator) { var lazy, result, samplerSource, stream, thisSource; if (combinator != null) { combinator = toCombinator(combinator); } else { lazy = true; combinator = function(f) { return f(); }; } thisSource = new Source(this, false, this.subscribeInternal, lazy); samplerSource = new Source(sampler, true, sampler.subscribeInternal, lazy); stream = Bacon.when([thisSource, samplerSource], combinator); result = sampler instanceof Property ? stream.toProperty() : stream; return withDescription(this, "sampledBy", sampler, combinator, result); }; Property.prototype.sample = function(interval) { return withDescription(this, "sample", interval, this.sampledBy(Bacon.interval(interval, {}))); }; Property.prototype.changes = function() { return new EventStream(describe(this, "changes"), (function(_this) { return function(sink) { return _this.subscribeInternal(function(event) { if (!event.isInitial()) { return sink(event); } }); }; })(this)); }; Property.prototype.withHandler = function(handler) { return new Property(describe(this, "withHandler", handler), this.subscribeInternal, handler); }; Property.prototype.toProperty = function() { assertNoArguments(arguments); return this; }; Property.prototype.toEventStream = function() { return new EventStream(describe(this, "toEventStream"), (function(_this) { return function(sink) { return _this.subscribeInternal(function(event) { if (event.isInitial()) { event = event.toNext(); } return sink(event); }); }; })(this)); }; Property.prototype.and = function(other) { return withDescription(this, "and", other, this.combine(other, function(x, y) { return x && y; })); }; Property.prototype.or = function(other) { return withDescription(this, "or", other, this.combine(other, function(x, y) { return x || y; })); }; Property.prototype.delay = function(delay) { return this.delayChanges("delay", delay, function(changes) { return changes.delay(delay); }); }; Property.prototype.debounce = function(delay) { return this.delayChanges("debounce", delay, function(changes) { return changes.debounce(delay); }); }; Property.prototype.throttle = function(delay) { return this.delayChanges("throttle", delay, function(changes) { return changes.throttle(delay); }); }; Property.prototype.delayChanges = function() { var desc, f, _i; desc = 2 <= arguments.length ? __slice.call(arguments, 0, _i = arguments.length - 1) : (_i = 0, []), f = arguments[_i++]; return withDescription.apply(null, [this].concat(__slice.call(desc), [addPropertyInitValueToStream(this, f(this.changes()))])); }; Property.prototype.takeUntil = function(stopper) { var changes; changes = this.changes().takeUntil(stopper); return withDescription(this, "takeUntil", stopper, addPropertyInitValueToStream(this, changes)); }; Property.prototype.startWith = function(value) { return withDescription(this, "startWith", value, this.scan(value, function(prev, next) { return next; })); }; Property.prototype.bufferingThrottle = function() { var _ref1; return (_ref1 = Property.__super__.bufferingThrottle.apply(this, arguments)).bufferingThrottle.apply(_ref1, arguments).toProperty(); }; return Property; })(Observable); convertArgsToFunction = function(obs, f, args, method) { var sampled; if (f instanceof Property) { sampled = f.sampledBy(obs, function(p, s) { return [p, s]; }); return method.apply(sampled, [ function(_arg) { var p, s; p = _arg[0], s = _arg[1]; return p; } ]).map(function(_arg) { var p, s; p = _arg[0], s = _arg[1]; return s; }); } else { f = makeFunction(f, args); return method.apply(obs, [f]); } }; addPropertyInitValueToStream = function(property, stream) { var justInitValue; justInitValue = new EventStream(describe(property, "justInitValue"), function(sink) { var unsub, value; value = void 0; unsub = property.subscribeInternal(function(event) { if (event.hasValue()) { value = event; } return Bacon.noMore; }); UpdateBarrier.whenDoneWith(justInitValue, function() { if (value != null) { sink(value); } return sink(end()); }); return unsub; }); return justInitValue.concat(stream).toProperty(); }; Dispatcher = (function() { function Dispatcher(subscribe, handleEvent) { var ended, prevError, pushIt, pushing, queue, removeSub, subscriptions, unsubscribeFromSource; if (subscribe == null) { subscribe = function() { return nop; }; } subscriptions = []; queue = []; pushing = false; ended = false; this.hasSubscribers = function() { return subscriptions.length > 0; }; prevError = void 0; unsubscribeFromSource = nop; removeSub = function(subscription) { return subscriptions = _.without(subscription, subscriptions); }; pushIt = function(event) { var reply, sub, success, tmp, _i, _len; if (!pushing) { if (event === prevError) { return; } if (event.isError()) { prevError = event; } success = false; try { pushing = true; tmp = subscriptions; for (_i = 0, _len = tmp.length; _i < _len; _i++) { sub = tmp[_i]; reply = sub.sink(event); if (reply === Bacon.noMore || event.isEnd()) { removeSub(sub); } } success = true; } finally { pushing = false; if (!success) { queue = []; } } success = true; while (queue.length) { event = queue.shift(); this.push(event); } if (this.hasSubscribers()) { return Bacon.more; } else { unsubscribeFromSource(); return Bacon.noMore; } } else { queue.push(event); return Bacon.more; } }; this.push = (function(_this) { return function(event) { return UpdateBarrier.inTransaction(event, _this, pushIt, [event]); }; })(this); if (handleEvent == null) { handleEvent = function(event) { return this.push(event); }; } this.handleEvent = (function(_this) { return function(event) { if (event.isEnd()) { ended = true; } return handleEvent.apply(_this, [event]); }; })(this); this.subscribe = (function(_this) { return function(sink) { var subscription, unsubSrc; if (ended) { sink(end()); return nop; } else { assertFunction(sink); subscription = { sink: sink }; subscriptions.push(subscription); if (subscriptions.length === 1) { unsubSrc = subscribe(_this.handleEvent); unsubscribeFromSource = function() { unsubSrc(); return unsubscribeFromSource = nop; }; } assertFunction(unsubscribeFromSource); return function() { removeSub(subscription); if (!_this.hasSubscribers()) { return unsubscribeFromSource(); } }; } }; })(this); } return Dispatcher; })(); PropertyDispatcher = (function(_super) { __extends(PropertyDispatcher, _super); function PropertyDispatcher(p, subscribe, handleEvent) { var current, currentValueRootId, ended, push; PropertyDispatcher.__super__.constructor.call(this, subscribe, handleEvent); current = None; currentValueRootId = void 0; push = this.push; subscribe = this.subscribe; ended = false; this.push = (function(_this) { return function(event) { if (event.isEnd()) { ended = true; } if (event.hasValue()) { current = new Some(event); currentValueRootId = UpdateBarrier.currentEventId(); } return push.apply(_this, [event]); }; })(this); this.subscribe = (function(_this) { return function(sink) { var dispatchingId, initSent, maybeSubSource, reply, valId; initSent = false; reply = Bacon.more; maybeSubSource = function() { if (reply === Bacon.noMore) { return nop; } else if (ended) { sink(end()); return nop; } else { return subscribe.apply(this, [sink]); } }; if (current.isDefined && (_this.hasSubscribers() || ended)) { dispatchingId = UpdateBarrier.currentEventId(); valId = currentValueRootId; if (!ended && valId && dispatchingId && dispatchingId !== valId) { UpdateBarrier.whenDoneWith(p, function() { if (currentValueRootId === valId) { return sink(initial(current.get().value())); } }); return maybeSubSource(); } else { UpdateBarrier.inTransaction(void 0, _this, (function() { return reply = sink(initial(current.get().value())); }), []); return maybeSubSource(); } } else { return maybeSubSource(); } }; })(this); } return PropertyDispatcher; })(Dispatcher); Bus = (function(_super) { __extends(Bus, _super); function Bus() { var ended, guardedSink, sink, subscribeAll, subscribeInput, subscriptions, unsubAll, unsubscribeInput; sink = void 0; subscriptions = []; ended = false; guardedSink = function(input) { return function(event) { if (event.isEnd()) { unsubscribeInput(input); return Bacon.noMore; } else { return sink(event); } }; }; unsubAll = function() { var sub, _i, _len, _results; _results = []; for (_i = 0, _len = subscriptions.length; _i < _len; _i++) { sub = subscriptions[_i]; _results.push(typeof sub.unsub === "function" ? sub.unsub() : void 0); } return _results; }; subscribeInput = function(subscription) { return subscription.unsub = subscription.input.subscribeInternal(guardedSink(subscription.input)); }; unsubscribeInput = function(input) { var i, sub, _i, _len; for (i = _i = 0, _len = subscriptions.length; _i < _len; i = ++_i) { sub = subscriptions[i]; if (sub.input === input) { if (typeof sub.unsub === "function") { sub.unsub(); } subscriptions.splice(i, 1); return; } } }; subscribeAll = function(newSink) { var subscription, _i, _len, _ref1; sink = newSink; _ref1 = cloneArray(subscriptions); for (_i = 0, _len = _ref1.length; _i < _len; _i++) { subscription = _ref1[_i]; subscribeInput(subscription); } return unsubAll; }; Bus.__super__.constructor.call(this, describe(Bacon, "Bus"), subscribeAll); this.plug = function(input) { var sub; if (ended) { return; } sub = { input: input }; subscriptions.push(sub); if ((sink != null)) { subscribeInput(sub); } return function() { return unsubscribeInput(input); }; }; this.push = function(value) { return typeof sink === "function" ? sink(next(value)) : void 0; }; this.error = function(error) { return typeof sink === "function" ? sink(new Error(error)) : void 0; }; this.end = function() { ended = true; unsubAll(); return typeof sink === "function" ? sink(end()) : void 0; }; } return Bus; })(EventStream); Source = (function() { function Source(obs, sync, subscribe, lazy) { this.obs = obs; this.sync = sync; this.subscribe = subscribe; this.lazy = lazy != null ? lazy : false; this.queue = []; if (this.subscribe == null) { this.subscribe = this.obs.subscribeInternal; } } Source.prototype.toString = function() { return this.obs.toString.call(this); }; Source.prototype.markEnded = function() { return this.ended = true; }; Source.prototype.consume = function() { if (this.lazy) { return _.always(this.queue[0]); } else { return this.queue[0]; } }; Source.prototype.push = function(x) { return this.queue = [x]; }; Source.prototype.mayHave = function() { return true; }; Source.prototype.hasAtLeast = function() { return this.queue.length; }; Source.prototype.flatten = true; return Source; })(); ConsumingSource = (function(_super) { __extends(ConsumingSource, _super); function ConsumingSource() { return ConsumingSource.__super__.constructor.apply(this, arguments); } ConsumingSource.prototype.consume = function() { return this.queue.shift(); }; ConsumingSource.prototype.push = function(x) { return this.queue.push(x); }; ConsumingSource.prototype.mayHave = function(c) { return !this.ended || this.queue.length >= c; }; ConsumingSource.prototype.hasAtLeast = function(c) { return this.queue.length >= c; }; ConsumingSource.prototype.flatten = false; return ConsumingSource; })(Source); BufferingSource = (function(_super) { __extends(BufferingSource, _super); function BufferingSource(obs) { this.obs = obs; BufferingSource.__super__.constructor.call(this, this.obs, true, this.obs.subscribeInternal); } BufferingSource.prototype.consume = function() { var values; values = this.queue; this.queue = []; return function() { return values; }; }; BufferingSource.prototype.push = function(x) { return this.queue.push(x()); }; BufferingSource.prototype.hasAtLeast = function() { return true; }; return BufferingSource; })(Source); Source.isTrigger = function(s) { if (s instanceof Source) { return s.sync; } else { return s instanceof EventStream; } }; Source.fromObservable = function(s) { if (s instanceof Source) { return s; } else if (s instanceof Property) { return new Source(s, false); } else { return new ConsumingSource(s, true); } }; describe = function() { var args, context, method; context = arguments[0], method = arguments[1], args = 3 <= arguments.length ? __slice.call(arguments, 2) : []; if ((context || method) instanceof Desc) { return context || method; } else { return new Desc(context, method, args); } }; findDeps = function(x) { if (isArray(x)) { return _.flatMap(findDeps, x); } else if (isObservable(x)) { return [x]; } else if (x instanceof Source) { return [x.obs]; } else { return []; } }; Desc = (function() { function Desc(context, method, args) { this.context = context; this.method = method; this.args = args; this.cached = void 0; } Desc.prototype.deps = function() { return this.cached || (this.cached = findDeps([this.context].concat(this.args))); }; Desc.prototype.apply = function(obs) { obs.desc = this; return obs; }; Desc.prototype.toString = function() { return _.toString(this.context) + "." + _.toString(this.method) + "(" + _.map(_.toString, this.args) + ")"; }; return Desc; })(); withDescription = function() { var desc, obs, _i; desc = 2 <= arguments.length ? __slice.call(arguments, 0, _i = arguments.length - 1) : (_i = 0, []), obs = arguments[_i++]; return describe.apply(null, desc).apply(obs); }; Bacon.when = function() { var f, i, index, ix, len, needsBarrier, pat, patSources, pats, patterns, resultStream, s, sources, triggerFound, usage, _i, _j, _len, _len1, _ref1; patterns = 1 <= arguments.length ? __slice.call(arguments, 0) : []; if (patterns.length === 0) { return Bacon.never(); } len = patterns.length; usage = "when: expecting arguments in the form (Observable+,function)+"; assert(usage, len % 2 === 0); sources = []; pats = []; i = 0; while (i < len) { patSources = _.toArray(patterns[i]); f = patterns[i + 1]; pat = { f: (isFunction(f) ? f : (function() { return f; })), ixs: [] }; triggerFound = false; for (_i = 0, _len = patSources.length; _i < _len; _i++) { s = patSources[_i]; index = _.indexOf(sources, s); if (!triggerFound) { triggerFound = Source.isTrigger(s); } if (index < 0) { sources.push(s); index = sources.length - 1; } _ref1 = pat.ixs; for (_j = 0, _len1 = _ref1.length; _j < _len1; _j++) { ix = _ref1[_j]; if (ix.index === index) { ix.count++; } } pat.ixs.push({ index: index, count: 1 }); } assert("At least one EventStream required", triggerFound || (!patSources.length)); if (patSources.length > 0) { pats.push(pat); } i = i + 2; } if (!sources.length) { return Bacon.never(); } sources = _.map(Source.fromObservable, sources); needsBarrier = (_.any(sources, function(s) { return s.flatten; })) && (containsDuplicateDeps(_.map((function(s) { return s.obs; }), sources))); return resultStream = new EventStream(describe.apply(null, [Bacon, "when"].concat(__slice.call(patterns))), function(sink) { var cannotMatch, cannotSync, ends, match, nonFlattened, part, triggers; triggers = []; ends = false; match = function(p) { var _k, _len2, _ref2; _ref2 = p.ixs; for (_k = 0, _len2 = _ref2.length; _k < _len2; _k++) { i = _ref2[_k]; if (!sources[i.index].hasAtLeast(i.count)) { return false; } } return true; }; cannotSync = function(source) { return !source.sync || source.ended; }; cannotMatch = function(p) { var _k, _len2, _ref2; _ref2 = p.ixs; for (_k = 0, _len2 = _ref2.length; _k < _len2; _k++) { i = _ref2[_k]; if (!sources[i.index].mayHave(i.count)) { return true; } } }; nonFlattened = function(trigger) { return !trigger.source.flatten; }; part = function(source) { return function(unsubAll) { var flush, flushLater, flushWhileTriggers; flushLater = function() { return UpdateBarrier.whenDoneWith(resultStream, flush); }; flushWhileTriggers = function() { var functions, p, reply, trigger, _k, _len2; if (triggers.length > 0) { reply = Bacon.more; trigger = triggers.pop(); for (_k = 0, _len2 = pats.length; _k < _len2; _k++) { p = pats[_k]; if (match(p)) { functions = (function() { var _l, _len3, _ref2, _results; _ref2 = p.ixs; _results = []; for (_l = 0, _len3 = _ref2.length; _l < _len3; _l++) { i = _ref2[_l]; _results.push(sources[i.index].consume()); } return _results; })(); reply = sink(trigger.e.apply(function() { var fun, values; values = (function() { var _l, _len3, _results; _results = []; for (_l = 0, _len3 = functions.length; _l < _len3; _l++) { fun = functions[_l]; _results.push(fun()); } return _results; })(); return p.f.apply(p, values); })); if (triggers.length) { triggers = _.filter(nonFlattened, triggers); } if (reply === Bacon.noMore) { return reply; } else { return flushWhileTriggers(); } } } } else { return Bacon.more; } }; flush = function() { var reply; reply = flushWhileTriggers(); if (ends) { ends = false; if (_.all(sources, cannotSync) || _.all(pats, cannotMatch)) { reply = Bacon.noMore; sink(end()); } } if (reply === Bacon.noMore) { unsubAll(); } return reply; }; return source.subscribe(function(e) { var reply; if (e.isEnd()) { ends = true; source.markEnded(); flushLater(); } else if (e.isError()) { reply = sink(e); } else { source.push(e.value); if (source.sync) { triggers.push({ source: source, e: e }); if (needsBarrier || UpdateBarrier.hasWaiters()) { flushLater(); } else { flush(); } } } if (reply === Bacon.noMore) { unsubAll(); } return reply || Bacon.more; }); }; }; return compositeUnsubscribe.apply(null, (function() { var _k, _len2, _results; _results = []; for (_k = 0, _len2 = sources.length; _k < _len2; _k++) { s = sources[_k]; _results.push(part(s)); } return _results; })()); }); }; containsDuplicateDeps = function(observables, state) { var checkObservable; if (state == null) { state = []; } checkObservable = function(obs) { var deps; if (_.contains(state, obs)) { return true; } else { deps = obs.internalDeps(); if (deps.length) { state.push(obs); return _.any(deps, checkObservable); } else { state.push(obs); return false; } } }; return _.any(observables, checkObservable); }; Bacon.update = function() { var i, initial, lateBindFirst, patterns; initial = arguments[0], patterns = 2 <= arguments.length ? __slice.call(arguments, 1) : []; lateBindFirst = function(f) { return function() { var args; args = 1 <= arguments.length ? __slice.call(arguments, 0) : []; return function(i) { return f.apply(null, [i].concat(args)); }; }; }; i = patterns.length - 1; while (i > 0) { if (!(patterns[i] instanceof Function)) { patterns[i] = (function(x) { return function() { return x; }; })(patterns[i]); } patterns[i] = lateBindFirst(patterns[i]); i = i - 2; } return withDescription.apply(null, [Bacon, "update", initial].concat(__slice.call(patterns), [Bacon.when.apply(Bacon, patterns).scan(initial, (function(x, f) { return f(x); }))])); }; compositeUnsubscribe = function() { var ss; ss = 1 <= arguments.length ? __slice.call(arguments, 0) : []; return new CompositeUnsubscribe(ss).unsubscribe; }; CompositeUnsubscribe = (function() { function CompositeUnsubscribe(ss) { var s, _i, _len; if (ss == null) { ss = []; } this.unsubscribe = __bind(this.unsubscribe, this); this.unsubscribed = false; this.subscriptions = []; this.starting = []; for (_i = 0, _len = ss.length; _i < _len; _i++) { s = ss[_i]; this.add(s); } } CompositeUnsubscribe.prototype.add = function(subscription) { var ended, unsub, unsubMe; if (this.unsubscribed) { return; } ended = false; unsub = nop; this.starting.push(subscription); unsubMe = (function(_this) { return function() { if (_this.unsubscribed) { return; } ended = true; _this.remove(unsub); return _.remove(subscription, _this.starting); }; })(this); unsub = subscription(this.unsubscribe, unsubMe); if (!(this.unsubscribed || ended)) { this.subscriptions.push(unsub); } _.remove(subscription, this.starting); return unsub; }; CompositeUnsubscribe.prototype.remove = function(unsub) { if (this.unsubscribed) { return; } if ((_.remove(unsub, this.subscriptions)) !== void 0) { return unsub(); } }; CompositeUnsubscribe.prototype.unsubscribe = function() { var s, _i, _len, _ref1; if (this.unsubscribed) { return; } this.unsubscribed = true; _ref1 = this.subscriptions; for (_i = 0, _len = _ref1.length; _i < _len; _i++) { s = _ref1[_i]; s(); } this.subscriptions = []; return this.starting = []; }; CompositeUnsubscribe.prototype.count = function() { if (this.unsubscribed) { return 0; } return this.subscriptions.length + this.starting.length; }; CompositeUnsubscribe.prototype.empty = function() { return this.count() === 0; }; return CompositeUnsubscribe; })(); Bacon.CompositeUnsubscribe = CompositeUnsubscribe; Some = (function() { function Some(value) { this.value = value; } Some.prototype.getOrElse = function() { return this.value; }; Some.prototype.get = function() { return this.value; }; Some.prototype.filter = function(f) { if (f(this.value)) { return new Some(this.value); } else { return None; } }; Some.prototype.map = function(f) { return new Some(f(this.value)); }; Some.prototype.forEach = function(f) { return f(this.value); }; Some.prototype.isDefined = true; Some.prototype.toArray = function() { return [this.value]; }; Some.prototype.inspect = function() { return "Some(" + this.value + ")"; }; Some.prototype.toString = function() { return this.inspect(); }; return Some; })(); None = { getOrElse: function(value) { return value; }, filter: function() { return None; }, map: function() { return None; }, forEach: function() {}, isDefined: false, toArray: function() { return []; }, inspect: function() { return "None"; }, toString: function() { return this.inspect(); } }; DepCache = (function() { var collectDeps, dependsOn, flatDeps, invalidate; flatDeps = {}; dependsOn = function(orig, o) { var myDeps; myDeps = flatDeps[orig.id]; if (!myDeps) { myDeps = flatDeps[orig.id] = {}; collectDeps(orig, orig); } return myDeps[o.id]; }; collectDeps = function(orig, o) { var dep, _i, _len, _ref1, _results; _ref1 = o.internalDeps(); _results = []; for (_i = 0, _len = _ref1.length; _i < _len; _i++) { dep = _ref1[_i]; flatDeps[orig.id][dep.id] = true; _results.push(collectDeps(orig, dep)); } return _results; }; invalidate = function() { return flatDeps = {}; }; return { invalidate: invalidate, dependsOn: dependsOn }; })(); UpdateBarrier = (function() { var afterTransaction, afters, currentEventId, findIndependent, flush, hasWaiters, inTransaction, independent, invalidateDeps, rootEvent, waiters, whenDoneWith, wrappedSubscribe; rootEvent = void 0; waiters = []; afters = []; afterTransaction = function(f) { if (rootEvent) { return afters.push(f); } else { return f(); } }; independent = function(waiter) { return !_.any(waiters, (function(other) { return DepCache.dependsOn(waiter.obs, other.obs); })); }; whenDoneWith = function(obs, f) { if (rootEvent) { return waiters.push({ obs: obs, f: f }); } else { return f(); } }; findIndependent = function() { while (!independent(waiters[0])) { waiters.push(waiters.shift()); } return waiters.shift(); }; flush = function() { var _results; _results = []; while (waiters.length) { _results.push(findIndependent().f()); } return _results; }; invalidateDeps = DepCache.invalidate; inTransaction = function(event, context, f, args) { var result, theseAfters, _i, _len; if (rootEvent) { return f.apply(context, args); } else { rootEvent = event; try { result = f.apply(context, args); flush(); } finally { rootEvent = void 0; while (afters.length) { theseAfters = afters; afters = []; for (_i = 0, _len = theseAfters.length; _i < _len; _i++) { f = theseAfters[_i]; f(); } } invalidateDeps(); } return result; } }; currentEventId = function() { if (rootEvent) { return rootEvent.id; } else { return void 0; } }; wrappedSubscribe = function(obs) { return function(sink) { var doUnsub, unsub, unsubd; unsubd = false; doUnsub = function() {}; unsub = function() { unsubd = true; return doUnsub(); }; doUnsub = obs.subscribeInternal(function(event) { return afterTransaction(function() { var reply; if (!unsubd) { reply = sink(event); if (reply === Bacon.noMore) { return unsub(); } } }); }); return unsub; }; }; hasWaiters = function() { return waiters.length > 0; }; return { whenDoneWith: whenDoneWith, hasWaiters: hasWaiters, inTransaction: inTransaction, currentEventId: currentEventId, wrappedSubscribe: wrappedSubscribe }; })(); Bacon.EventStream = EventStream; Bacon.Property = Property; Bacon.Observable = Observable; Bacon.Bus = Bus; Bacon.Initial = Initial; Bacon.Next = Next; Bacon.End = End; Bacon.Error = Error; nop = function() {}; latterF = function(_, x) { return x(); }; former = function(x, _) { return x; }; initial = function(value) { return new Initial(_.always(value)); }; next = function(value) { return new Next(_.always(value)); }; end = function() { return new End(); }; toEvent = function(x) { if (x instanceof Event) { return x; } else { return next(x); } }; cloneArray = function(xs) { return xs.slice(0); }; assert = function(message, condition) { if (!condition) { throw new Exception(message); } }; assertEventStream = function(event) { if (!(event instanceof EventStream)) { throw new Exception("not an EventStream : " + event); } }; assertFunction = function(f) { return assert("not a function : " + f, isFunction(f)); }; isFunction = function(f) { return typeof f === "function"; }; isArray = function(xs) { return xs instanceof Array; }; isObservable = function(x) { return x instanceof Observable; }; assertArray = function(xs) { if (!isArray(xs)) { throw new Exception("not an array : " + xs); } }; assertNoArguments = function(args) { return assert("no arguments supported", args.length === 0); }; assertString = function(x) { if (typeof x !== "string") { throw new Exception("not a string : " + x); } }; partiallyApplied = function(f, applied) { return function() { var args; args = 1 <= arguments.length ? __slice.call(arguments, 0) : []; return f.apply(null, applied.concat(args)); }; }; makeSpawner = function(args) { if (args.length === 1 && isObservable(args[0])) { return _.always(args[0]); } else { return makeFunctionArgs(args); } }; makeFunctionArgs = function(args) { args = Array.prototype.slice.call(args); return makeFunction_.apply(null, args); }; makeFunction_ = withMethodCallSupport(function() { var args, f; f = arguments[0], args = 2 <= arguments.length ? __slice.call(arguments, 1) : []; if (isFunction(f)) { if (args.length) { return partiallyApplied(f, args); } else { return f; } } else if (isFieldKey(f)) { return toFieldExtractor(f, args); } else { return _.always(f); } }); makeFunction = function(f, args) { return makeFunction_.apply(null, [f].concat(__slice.call(args))); }; makeObservable = function(x) { if (isObservable(x)) { return x; } else { return Bacon.once(x); } }; isFieldKey = function(f) { return (typeof f === "string") && f.length > 1 && f.charAt(0) === "."; }; Bacon.isFieldKey = isFieldKey; toFieldExtractor = function(f, args) { var partFuncs, parts; parts = f.slice(1).split("."); partFuncs = _.map(toSimpleExtractor(args), parts); return function(value) { var _i, _len; for (_i = 0, _len = partFuncs.length; _i < _len; _i++) { f = partFuncs[_i]; value = f(value); } return value; }; }; toSimpleExtractor = function(args) { return function(key) { return function(value) { var fieldValue; if (value == null) { return void 0; } else { fieldValue = value[key]; if (isFunction(fieldValue)) { return fieldValue.apply(value, args); } else { return fieldValue; } } }; }; }; toFieldKey = function(f) { return f.slice(1); }; toCombinator = function(f) { var key; if (isFunction(f)) { return f; } else if (isFieldKey(f)) { key = toFieldKey(f); return function(left, right) { return left[key](right); }; } else { return assert("not a function or a field key: " + f, false); } }; toOption = function(v) { if (v instanceof Some || v === None) { return v; } else { return new Some(v); } }; _ = { indexOf: Array.prototype.indexOf ? function(xs, x) { return xs.indexOf(x); } : function(xs, x) { var i, y, _i, _len; for (i = _i = 0, _len = xs.length; _i < _len; i = ++_i) { y = xs[i]; if (x === y) { return i; } } return -1; }, indexWhere: function(xs, f) { var i, y, _i, _len; for (i = _i = 0, _len = xs.length; _i < _len; i = ++_i) { y = xs[i]; if (f(y)) { return i; } } return -1; }, head: function(xs) { return xs[0]; }, always: function(x) { return function() { return x; }; }, negate: function(f) { return function(x) { return !f(x); }; }, empty: function(xs) { return xs.length === 0; }, tail: function(xs) { return xs.slice(1, xs.length); }, filter: function(f, xs) { var filtered, x, _i, _len; filtered = []; for (_i = 0, _len = xs.length; _i < _len; _i++) { x = xs[_i]; if (f(x)) { filtered.push(x); } } return filtered; }, map: function(f, xs) { var x, _i, _len, _results; _results = []; for (_i = 0, _len = xs.length; _i < _len; _i++) { x = xs[_i]; _results.push(f(x)); } return _results; }, each: function(xs, f) { var key, value, _results; _results = []; for (key in xs) { value = xs[key]; _results.push(f(key, value)); } return _results; }, toArray: function(xs) { if (isArray(xs)) { return xs; } else { return [xs]; } }, contains: function(xs, x) { return _.indexOf(xs, x) !== -1; }, id: function(x) { return x; }, last: function(xs) { return xs[xs.length - 1]; }, all: function(xs, f) { var x, _i, _len; if (f == null) { f = _.id; } for (_i = 0, _len = xs.length; _i < _len; _i++) { x = xs[_i]; if (!f(x)) { return false; } } return true; }, any: function(xs, f) { var x, _i, _len; if (f == null) { f = _.id; } for (_i = 0, _len = xs.length; _i < _len; _i++) { x = xs[_i]; if (f(x)) { return true; } } return false; }, without: function(x, xs) { return _.filter((function(y) { return y !== x; }), xs); }, remove: function(x, xs) { var i; i = _.indexOf(xs, x); if (i >= 0) { return xs.splice(i, 1); } }, fold: function(xs, seed, f) { var x, _i, _len; for (_i = 0, _len = xs.length; _i < _len; _i++) { x = xs[_i]; seed = f(seed, x); } return seed; }, flatMap: function(f, xs) { return _.fold(xs, [], (function(ys, x) { return ys.concat(f(x)); })); }, cached: function(f) { var value; value = None; return function() { if (value === None) { value = f(); f = void 0; } return value; }; }, toString: function(obj) { var ex, internals, key, value; try { recursionDepth++; if (obj == null) { return "undefined"; } else if (isFunction(obj)) { return "function"; } else if (isArray(obj)) { if (recursionDepth > 5) { return "[..]"; } return "[" + _.map(_.toString, obj).toString() + "]"; } else if (((obj != null ? obj.toString : void 0) != null) && obj.toString !== Object.prototype.toString) { return obj.toString(); } else if (typeof obj === "object") { if (recursionDepth > 5) { return "{..}"; } internals = (function() { var _results; _results = []; for (key in obj) { if (!__hasProp.call(obj, key)) continue; value = (function() { try { return obj[key]; } catch (_error) { ex = _error; return ex; } })(); _results.push(_.toString(key) + ":" + _.toString(value)); } return _results; })(); return "{" + internals + "}"; } else { return obj; } } finally { recursionDepth--; } } }; recursionDepth = 0; Bacon._ = _; Bacon.scheduler = { setTimeout: function(f, d) { return setTimeout(f, d); }, setInterval: function(f, i) { return setInterval(f, i); }, clearInterval: function(id) { return clearInterval(id); }, now: function() { return new Date().getTime(); } }; if ((typeof define !== "undefined" && define !== null) && (define.amd != null)) { define([], function() { return Bacon; }); this.Bacon = Bacon; } else if (typeof module !== "undefined" && module !== null) { module.exports = Bacon; Bacon.Bacon = Bacon; } else { this.Bacon = Bacon; } }).call(this);
/*! * Qoopido.js library v3.3.9, 2014-6-3 * https://github.com/dlueth/qoopido.js * (c) 2014 Dirk Lueth * Dual licensed under MIT and GPL */ !function(e){window.qoopido.register("support/element/video/webm",e,["../../../support","../video"])}(function(e,o,t,i,n,r){"use strict";var d=e.support;return d.addTest("/element/video/webm",function(o){e["support/element/video"]().then(function(){var e=d.pool?d.pool.obtain("video"):r.createElement("video");e.canPlayType('video/webm; codecs="vp8, vorbis"')?o.resolve():o.reject(),e.dispose&&e.dispose()},function(){o.reject()}).done()})});
var ITERATOR = require('./_wks')('iterator'); var SAFE_CLOSING = false; try { var riter = [7][ITERATOR](); riter['return'] = function () { SAFE_CLOSING = true; }; // eslint-disable-next-line no-throw-literal Array.from(riter, function () { throw 2; }); } catch (e) { /* empty */ } module.exports = function (exec, skipClosing) { if (!skipClosing && !SAFE_CLOSING) return false; var safe = false; try { var arr = [7]; var iter = arr[ITERATOR](); iter.next = function () { return { done: safe = true }; }; arr[ITERATOR] = function () { return iter; }; exec(arr); } catch (e) { /* empty */ } return safe; };
process.on('message', function (msg) { process.send([ 'a'.localeCompare('a'), 'ä'.localeCompare('z', 'de'), 'ä'.localeCompare('a', 'sv', { sensitivity: 'base' }), ]); });
var SourceMapConsumer = require('source-map').SourceMapConsumer; var path = require('path'); var fs = require('fs'); // Only install once if called multiple times var errorFormatterInstalled = false; var uncaughtShimInstalled = false; // If true, the caches are reset before a stack trace formatting operation var emptyCacheBetweenOperations = false; // Supports {browser, node, auto} var environment = "auto"; // Maps a file path to a string containing the file contents var fileContentsCache = {}; // Maps a file path to a source map for that file var sourceMapCache = {}; // Regex for detecting source maps var reSourceMap = /^data:application\/json[^,]+base64,/; // Priority list of retrieve handlers var retrieveFileHandlers = []; var retrieveMapHandlers = []; function isInBrowser() { if (environment === "browser") return true; if (environment === "node") return false; return ((typeof window !== 'undefined') && (typeof XMLHttpRequest === 'function') && !(window.require && window.module && window.process && window.process.type === "renderer")); } function hasGlobalProcessEventEmitter() { return ((typeof process === 'object') && (process !== null) && (typeof process.on === 'function')); } function handlerExec(list) { return function(arg) { for (var i = 0; i < list.length; i++) { var ret = list[i](arg); if (ret) { return ret; } } return null; }; } var retrieveFile = handlerExec(retrieveFileHandlers); retrieveFileHandlers.push(function(path) { // Trim the path to make sure there is no extra whitespace. path = path.trim(); if (path in fileContentsCache) { return fileContentsCache[path]; } try { // Use SJAX if we are in the browser if (isInBrowser()) { var xhr = new XMLHttpRequest(); xhr.open('GET', path, false); xhr.send(null); var contents = null if (xhr.readyState === 4 && xhr.status === 200) { contents = xhr.responseText } } // Otherwise, use the filesystem else { var contents = fs.readFileSync(path, 'utf8'); } } catch (e) { var contents = null; } return fileContentsCache[path] = contents; }); // Support URLs relative to a directory, but be careful about a protocol prefix // in case we are in the browser (i.e. directories may start with "http://") function supportRelativeURL(file, url) { if (!file) return url; var dir = path.dirname(file); var match = /^\w+:\/\/[^\/]*/.exec(dir); var protocol = match ? match[0] : ''; return protocol + path.resolve(dir.slice(protocol.length), url); } function retrieveSourceMapURL(source) { var fileData; if (isInBrowser()) { var xhr = new XMLHttpRequest(); xhr.open('GET', source, false); xhr.send(null); fileData = xhr.readyState === 4 ? xhr.responseText : null; // Support providing a sourceMappingURL via the SourceMap header var sourceMapHeader = xhr.getResponseHeader("SourceMap") || xhr.getResponseHeader("X-SourceMap"); if (sourceMapHeader) { return sourceMapHeader; } } // Get the URL of the source map fileData = retrieveFile(source); // //# sourceMappingURL=foo.js.map /*# sourceMappingURL=foo.js.map */ var re = /(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^\*]+?)[ \t]*(?:\*\/)[ \t]*$)/mg; // Keep executing the search to find the *last* sourceMappingURL to avoid // picking up sourceMappingURLs from comments, strings, etc. var lastMatch, match; while (match = re.exec(fileData)) lastMatch = match; if (!lastMatch) return null; return lastMatch[1]; }; // Can be overridden by the retrieveSourceMap option to install. Takes a // generated source filename; returns a {map, optional url} object, or null if // there is no source map. The map field may be either a string or the parsed // JSON object (ie, it must be a valid argument to the SourceMapConsumer // constructor). var retrieveSourceMap = handlerExec(retrieveMapHandlers); retrieveMapHandlers.push(function(source) { var sourceMappingURL = retrieveSourceMapURL(source); if (!sourceMappingURL) return null; // Read the contents of the source map var sourceMapData; if (reSourceMap.test(sourceMappingURL)) { // Support source map URL as a data url var rawData = sourceMappingURL.slice(sourceMappingURL.indexOf(',') + 1); sourceMapData = new Buffer(rawData, "base64").toString(); sourceMappingURL = source; } else { // Support source map URLs relative to the source URL sourceMappingURL = supportRelativeURL(source, sourceMappingURL); sourceMapData = retrieveFile(sourceMappingURL); } if (!sourceMapData) { return null; } return { url: sourceMappingURL, map: sourceMapData }; }); function mapSourcePosition(position) { var sourceMap = sourceMapCache[position.source]; if (!sourceMap) { // Call the (overrideable) retrieveSourceMap function to get the source map. var urlAndMap = retrieveSourceMap(position.source); if (urlAndMap) { sourceMap = sourceMapCache[position.source] = { url: urlAndMap.url, map: new SourceMapConsumer(urlAndMap.map) }; // Load all sources stored inline with the source map into the file cache // to pretend like they are already loaded. They may not exist on disk. if (sourceMap.map.sourcesContent) { sourceMap.map.sources.forEach(function(source, i) { var contents = sourceMap.map.sourcesContent[i]; if (contents) { var url = supportRelativeURL(sourceMap.url, source); fileContentsCache[url] = contents; } }); } } else { sourceMap = sourceMapCache[position.source] = { url: null, map: null }; } } // Resolve the source URL relative to the URL of the source map if (sourceMap && sourceMap.map) { var originalPosition = sourceMap.map.originalPositionFor(position); // Only return the original position if a matching line was found. If no // matching line is found then we return position instead, which will cause // the stack trace to print the path and line for the compiled file. It is // better to give a precise location in the compiled file than a vague // location in the original file. if (originalPosition.source !== null) { originalPosition.source = supportRelativeURL( sourceMap.url, originalPosition.source); return originalPosition; } } return position; } // Parses code generated by FormatEvalOrigin(), a function inside V8: // https://code.google.com/p/v8/source/browse/trunk/src/messages.js function mapEvalOrigin(origin) { // Most eval() calls are in this format var match = /^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(origin); if (match) { var position = mapSourcePosition({ source: match[2], line: +match[3], column: match[4] - 1 }); return 'eval at ' + match[1] + ' (' + position.source + ':' + position.line + ':' + (position.column + 1) + ')'; } // Parse nested eval() calls using recursion match = /^eval at ([^(]+) \((.+)\)$/.exec(origin); if (match) { return 'eval at ' + match[1] + ' (' + mapEvalOrigin(match[2]) + ')'; } // Make sure we still return useful information if we didn't find anything return origin; } // This is copied almost verbatim from the V8 source code at // https://code.google.com/p/v8/source/browse/trunk/src/messages.js. The // implementation of wrapCallSite() used to just forward to the actual source // code of CallSite.prototype.toString but unfortunately a new release of V8 // did something to the prototype chain and broke the shim. The only fix I // could find was copy/paste. function CallSiteToString() { var fileName; var fileLocation = ""; if (this.isNative()) { fileLocation = "native"; } else { fileName = this.getScriptNameOrSourceURL(); if (!fileName && this.isEval()) { fileLocation = this.getEvalOrigin(); fileLocation += ", "; // Expecting source position to follow. } if (fileName) { fileLocation += fileName; } else { // Source code does not originate from a file and is not native, but we // can still get the source position inside the source string, e.g. in // an eval string. fileLocation += "<anonymous>"; } var lineNumber = this.getLineNumber(); if (lineNumber != null) { fileLocation += ":" + lineNumber; var columnNumber = this.getColumnNumber(); if (columnNumber) { fileLocation += ":" + columnNumber; } } } var line = ""; var functionName = this.getFunctionName(); var addSuffix = true; var isConstructor = this.isConstructor(); var isMethodCall = !(this.isToplevel() || isConstructor); if (isMethodCall) { var typeName = this.getTypeName(); // Fixes shim to be backward compatable with Node v0 to v4 if (typeName === "[object Object]") { typeName = "null"; } var methodName = this.getMethodName(); if (functionName) { if (typeName && functionName.indexOf(typeName) != 0) { line += typeName + "."; } line += functionName; if (methodName && functionName.indexOf("." + methodName) != functionName.length - methodName.length - 1) { line += " [as " + methodName + "]"; } } else { line += typeName + "." + (methodName || "<anonymous>"); } } else if (isConstructor) { line += "new " + (functionName || "<anonymous>"); } else if (functionName) { line += functionName; } else { line += fileLocation; addSuffix = false; } if (addSuffix) { line += " (" + fileLocation + ")"; } return line; } function cloneCallSite(frame) { var object = {}; Object.getOwnPropertyNames(Object.getPrototypeOf(frame)).forEach(function(name) { object[name] = /^(?:is|get)/.test(name) ? function() { return frame[name].call(frame); } : frame[name]; }); object.toString = CallSiteToString; return object; } function wrapCallSite(frame) { if(frame.isNative()) { return frame; } // Most call sites will return the source file from getFileName(), but code // passed to eval() ending in "//# sourceURL=..." will return the source file // from getScriptNameOrSourceURL() instead var source = frame.getFileName() || frame.getScriptNameOrSourceURL(); if (source) { var line = frame.getLineNumber(); var column = frame.getColumnNumber() - 1; // Fix position in Node where some (internal) code is prepended. // See https://github.com/evanw/node-source-map-support/issues/36 if (line === 1 && !isInBrowser() && !frame.isEval()) { column -= 62; } var position = mapSourcePosition({ source: source, line: line, column: column }); frame = cloneCallSite(frame); frame.getFileName = function() { return position.source; }; frame.getLineNumber = function() { return position.line; }; frame.getColumnNumber = function() { return position.column + 1; }; frame.getScriptNameOrSourceURL = function() { return position.source; }; return frame; } // Code called using eval() needs special handling var origin = frame.isEval() && frame.getEvalOrigin(); if (origin) { origin = mapEvalOrigin(origin); frame = cloneCallSite(frame); frame.getEvalOrigin = function() { return origin; }; return frame; } // If we get here then we were unable to change the source position return frame; } // This function is part of the V8 stack trace API, for more info see: // http://code.google.com/p/v8/wiki/JavaScriptStackTraceApi function prepareStackTrace(error, stack) { if (emptyCacheBetweenOperations) { fileContentsCache = {}; sourceMapCache = {}; } return error + stack.map(function(frame) { return '\n at ' + wrapCallSite(frame); }).join(''); } // Generate position and snippet of original source with pointer function getErrorSource(error) { var match = /\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(error.stack); if (match) { var source = match[1]; var line = +match[2]; var column = +match[3]; // Support the inline sourceContents inside the source map var contents = fileContentsCache[source]; // Support files on disk if (!contents && fs.existsSync(source)) { contents = fs.readFileSync(source, 'utf8'); } // Format the line from the original source code like node does if (contents) { var code = contents.split(/(?:\r\n|\r|\n)/)[line - 1]; if (code) { return source + ':' + line + '\n' + code + '\n' + new Array(column).join(' ') + '^'; } } } return null; } function printErrorAndExit (error) { var source = getErrorSource(error); if (source) { console.error(); console.error(source); } console.error(error.stack); process.exit(1); } function shimEmitUncaughtException () { var origEmit = process.emit; process.emit = function (type) { if (type === 'uncaughtException') { var hasStack = (arguments[1] && arguments[1].stack); var hasListeners = (this.listeners(type).length > 0); if (hasStack && !hasListeners) { return printErrorAndExit(arguments[1]); } } return origEmit.apply(this, arguments); }; } exports.wrapCallSite = wrapCallSite; exports.getErrorSource = getErrorSource; exports.mapSourcePosition = mapSourcePosition; exports.retrieveSourceMap = retrieveSourceMap; exports.install = function(options) { options = options || {}; if (options.environment) { environment = options.environment; if (["node", "browser", "auto"].indexOf(environment) === -1) { throw new Error("environment " + environment + " was unknown. Available options are {auto, browser, node}") } } // Allow sources to be found by methods other than reading the files // directly from disk. if (options.retrieveFile) { if (options.overrideRetrieveFile) { retrieveFileHandlers.length = 0; } retrieveFileHandlers.unshift(options.retrieveFile); } // Allow source maps to be found by methods other than reading the files // directly from disk. if (options.retrieveSourceMap) { if (options.overrideRetrieveSourceMap) { retrieveMapHandlers.length = 0; } retrieveMapHandlers.unshift(options.retrieveSourceMap); } // Support runtime transpilers that include inline source maps if (options.hookRequire && !isInBrowser()) { var Module = require('module'); var $compile = Module.prototype._compile; if (!$compile.__sourceMapSupport) { Module.prototype._compile = function(content, filename) { fileContentsCache[filename] = content; sourceMapCache[filename] = undefined; return $compile.call(this, content, filename); }; Module.prototype._compile.__sourceMapSupport = true; } } // Configure options if (!emptyCacheBetweenOperations) { emptyCacheBetweenOperations = 'emptyCacheBetweenOperations' in options ? options.emptyCacheBetweenOperations : false; } // Install the error reformatter if (!errorFormatterInstalled) { errorFormatterInstalled = true; Error.prepareStackTrace = prepareStackTrace; } if (!uncaughtShimInstalled) { var installHandler = 'handleUncaughtExceptions' in options ? options.handleUncaughtExceptions : true; // Provide the option to not install the uncaught exception handler. This is // to support other uncaught exception handlers (in test frameworks, for // example). If this handler is not installed and there are no other uncaught // exception handlers, uncaught exceptions will be caught by node's built-in // exception handler and the process will still be terminated. However, the // generated JavaScript code will be shown above the stack trace instead of // the original source code. if (installHandler && hasGlobalProcessEventEmitter()) { uncaughtShimInstalled = true; shimEmitUncaughtException(); } } };
(function(global) { var define = global.define; var require = global.require; var Ember = global.Ember; if (typeof Ember === 'undefined' && typeof require !== 'undefined') { Ember = require('ember'); } Ember.libraries.register('Ember Simple Auth OAuth 2.0', '0.8.0-beta.3'); define("simple-auth-oauth2/authenticators/oauth2", ["simple-auth/authenticators/base","./../configuration","exports"], function(__dependency1__, __dependency2__, __exports__) { "use strict"; var Base = __dependency1__["default"]; var Configuration = __dependency2__["default"]; /** Authenticator that conforms to OAuth 2 ([RFC 6749](http://tools.ietf.org/html/rfc6749)), specifically the _"Resource Owner Password Credentials Grant Type"_. This authenticator supports access token refresh (see [RFC 6740, section 6](http://tools.ietf.org/html/rfc6749#section-6)). _The factory for this authenticator is registered as `'simple-auth-authenticator:oauth2-password-grant'` in Ember's container._ @class OAuth2 @namespace SimpleAuth.Authenticators @module simple-auth-oauth2/authenticators/oauth2 @extends Base */ __exports__["default"] = Base.extend({ /** Triggered when the authenticator refreshes the access token (see [RFC 6740, section 6](http://tools.ietf.org/html/rfc6749#section-6)). @event sessionDataUpdated @param {Object} data The updated session data */ /** The endpoint on the server the authenticator acquires the access token from. This value can be configured via [`SimpleAuth.Configuration.OAuth2#serverTokenEndpoint`](#SimpleAuth-Configuration-OAuth2-serverTokenEndpoint). @property serverTokenEndpoint @type String @default '/token' */ serverTokenEndpoint: '/token', /** The endpoint on the server the authenticator uses to revoke tokens. Only set this if the server actually supports token revokation. This value can be configured via [`SimpleAuth.Configuration.OAuth2#serverTokenRevocationEndpoint`](#SimpleAuth-Configuration-OAuth2-serverTokenRevocationEndpoint). @property serverTokenRevocationEndpoint @type String @default null */ serverTokenRevocationEndpoint: null, /** Sets whether the authenticator automatically refreshes access tokens. This value can be configured via [`SimpleAuth.Configuration.OAuth2#refreshAccessTokens`](#SimpleAuth-Configuration-OAuth2-refreshAccessTokens). @property refreshAccessTokens @type Boolean @default true */ refreshAccessTokens: true, /** @property _refreshTokenTimeout @private */ _refreshTokenTimeout: null, /** @method init @private */ init: function() { this.serverTokenEndpoint = Configuration.serverTokenEndpoint; this.serverTokenRevocationEndpoint = Configuration.serverTokenRevocationEndpoint; this.refreshAccessTokens = Configuration.refreshAccessTokens; }, /** Restores the session from a set of session properties; __will return a resolving promise when there's a non-empty `access_token` in the `data`__ and a rejecting promise otherwise. This method also schedules automatic token refreshing when there are values for `refresh_token` and `expires_in` in the `data` and automatic token refreshing is not disabled (see [`Authenticators.OAuth2#refreshAccessTokens`](#SimpleAuth-Authenticators-OAuth2-refreshAccessTokens)). @method restore @param {Object} data The data to restore the session from @return {Ember.RSVP.Promise} A promise that when it resolves results in the session being authenticated */ restore: function(data) { var _this = this; return new Ember.RSVP.Promise(function(resolve, reject) { var now = (new Date()).getTime(); if (!Ember.isEmpty(data.expires_at) && data.expires_at < now) { if (_this.refreshAccessTokens) { _this.refreshAccessToken(data.expires_in, data.refresh_token).then(function(data) { resolve(data); }, reject); } else { reject(); } } else { if (Ember.isEmpty(data.access_token)) { reject(); } else { _this.scheduleAccessTokenRefresh(data.expires_in, data.expires_at, data.refresh_token); resolve(data); } } }); }, /** Authenticates the session with the specified `options`; makes a `POST` request to the [`Authenticators.OAuth2#serverTokenEndpoint`](#SimpleAuth-Authenticators-OAuth2-serverTokenEndpoint) with the passed credentials and optional scope and receives the token in response (see http://tools.ietf.org/html/rfc6749#section-4.3). __If the credentials are valid (and the optionally requested scope is granted) and thus authentication succeeds, a promise that resolves with the server's response is returned__, otherwise a promise that rejects with the error is returned. This method also schedules automatic token refreshing when there are values for `refresh_token` and `expires_in` in the server response and automatic token refreshing is not disabled (see [`Authenticators.OAuth2#refreshAccessTokens`](#SimpleAuth-Authenticators-OAuth2-refreshAccessTokens)). @method authenticate @param {Object} options @param {String} options.identification The resource owner username @param {String} options.password The resource owner password @param {String|Array} [options.scope] The scope of the access request (see [RFC 6749, section 3.3](http://tools.ietf.org/html/rfc6749#section-3.3)) @return {Ember.RSVP.Promise} A promise that resolves when an access token is successfully acquired from the server and rejects otherwise */ authenticate: function(options) { var _this = this; return new Ember.RSVP.Promise(function(resolve, reject) { var data = { grant_type: 'password', username: options.identification, password: options.password }; if (!Ember.isEmpty(options.scope)) { var scopesString = Ember.makeArray(options.scope).join(' '); Ember.merge(data, { scope: scopesString }); } _this.makeRequest(_this.serverTokenEndpoint, data).then(function(response) { Ember.run(function() { var expiresAt = _this.absolutizeExpirationTime(response.expires_in); _this.scheduleAccessTokenRefresh(response.expires_in, expiresAt, response.refresh_token); if (!Ember.isEmpty(expiresAt)) { response = Ember.merge(response, { expires_at: expiresAt }); } resolve(response); }); }, function(xhr, status, error) { Ember.run(function() { reject(xhr.responseJSON || xhr.responseText); }); }); }); }, /** Cancels any outstanding automatic token refreshes and returns a resolving promise. @method invalidate @param {Object} data The data of the session to be invalidated @return {Ember.RSVP.Promise} A resolving promise */ invalidate: function(data) { var _this = this; function success(resolve) { Ember.run.cancel(_this._refreshTokenTimeout); delete _this._refreshTokenTimeout; resolve(); } return new Ember.RSVP.Promise(function(resolve, reject) { if (Ember.isEmpty(_this.serverTokenRevocationEndpoint)) { success(resolve); } else { var requests = []; Ember.A(['access_token', 'refresh_token']).forEach(function(tokenType) { var token = data[tokenType]; if (!Ember.isEmpty(token)) { requests.push(_this.makeRequest(_this.serverTokenRevocationEndpoint, { token_type_hint: tokenType, token: token })); } }); Ember.$.when.apply(Ember.$, requests).always(function(responses) { success(resolve); }); } }); }, /** Sends an `AJAX` request to the `url`. This will always be a _"POST"_ request with content type _"application/x-www-form-urlencoded"_ as specified in [RFC 6749](http://tools.ietf.org/html/rfc6749). This method is not meant to be used directly but serves as an extension point to e.g. add _"Client Credentials"_ (see [RFC 6749, section 2.3](http://tools.ietf.org/html/rfc6749#section-2.3)). @method makeRequest @param {Object} url The url to send the request to @param {Object} data The data to send with the request, e.g. username and password or the refresh token @return {Deferred object} A Deferred object (see [the jQuery docs](http://api.jquery.com/category/deferred-object/)) that is compatible to Ember.RSVP.Promise; will resolve if the request succeeds, reject otherwise @protected */ makeRequest: function(url, data) { return Ember.$.ajax({ url: url, type: 'POST', data: data, dataType: 'json', contentType: 'application/x-www-form-urlencoded' }); }, /** @method scheduleAccessTokenRefresh @private */ scheduleAccessTokenRefresh: function(expiresIn, expiresAt, refreshToken) { var _this = this; if (this.refreshAccessTokens) { var now = (new Date()).getTime(); if (Ember.isEmpty(expiresAt) && !Ember.isEmpty(expiresIn)) { expiresAt = new Date(now + expiresIn * 1000).getTime(); } var offset = (Math.floor(Math.random() * 5) + 5) * 1000; if (!Ember.isEmpty(refreshToken) && !Ember.isEmpty(expiresAt) && expiresAt > now - offset) { Ember.run.cancel(this._refreshTokenTimeout); delete this._refreshTokenTimeout; if (!Ember.testing) { this._refreshTokenTimeout = Ember.run.later(this, this.refreshAccessToken, expiresIn, refreshToken, expiresAt - now - offset); } } } }, /** @method refreshAccessToken @private */ refreshAccessToken: function(expiresIn, refreshToken) { var _this = this; var data = { grant_type: 'refresh_token', refresh_token: refreshToken }; return new Ember.RSVP.Promise(function(resolve, reject) { _this.makeRequest(_this.serverTokenEndpoint, data).then(function(response) { Ember.run(function() { expiresIn = response.expires_in || expiresIn; refreshToken = response.refresh_token || refreshToken; var expiresAt = _this.absolutizeExpirationTime(expiresIn); var data = Ember.merge(response, { expires_in: expiresIn, expires_at: expiresAt, refresh_token: refreshToken }); _this.scheduleAccessTokenRefresh(expiresIn, null, refreshToken); _this.trigger('sessionDataUpdated', data); resolve(data); }); }, function(xhr, status, error) { Ember.Logger.warn('Access token could not be refreshed - server responded with ' + error + '.'); reject(); }); }); }, /** @method absolutizeExpirationTime @private */ absolutizeExpirationTime: function(expiresIn) { if (!Ember.isEmpty(expiresIn)) { return new Date((new Date().getTime()) + expiresIn * 1000).getTime(); } } }); }); define("simple-auth-oauth2/authorizers/oauth2", ["simple-auth/authorizers/base","exports"], function(__dependency1__, __exports__) { "use strict"; var Base = __dependency1__["default"]; /** Authorizer that conforms to OAuth 2 ([RFC 6749](http://tools.ietf.org/html/rfc6749)) by sending a bearer token ([RFC 6749](http://tools.ietf.org/html/rfc6750)) in the request's `Authorization` header. _The factory for this authorizer is registered as `'simple-auth-authorizer:oauth2-bearer'` in Ember's container._ @class OAuth2 @namespace SimpleAuth.Authorizers @module simple-auth-oauth2/authorizers/oauth2 @extends Base */ __exports__["default"] = Base.extend({ /** Authorizes an XHR request by sending the `access_token` property from the session as a bearer token in the `Authorization` header: ``` Authorization: Bearer <access_token> ``` @method authorize @param {jqXHR} jqXHR The XHR request to authorize (see http://api.jquery.com/jQuery.ajax/#jqXHR) @param {Object} requestOptions The options as provided to the `$.ajax` method (see http://api.jquery.com/jQuery.ajaxPrefilter/) */ authorize: function(jqXHR, requestOptions) { var accessToken = this.get('session.secure.access_token'); if (this.get('session.isAuthenticated') && !Ember.isEmpty(accessToken)) { jqXHR.setRequestHeader('Authorization', 'Bearer ' + accessToken); } } }); }); define("simple-auth-oauth2/configuration", ["simple-auth/utils/load-config","exports"], function(__dependency1__, __exports__) { "use strict"; var loadConfig = __dependency1__["default"]; var defaults = { serverTokenEndpoint: '/token', serverTokenRevocationEndpoint: null, refreshAccessTokens: true }; /** Ember Simple Auth OAuth2's configuration object. To change any of these values, set them on the application's environment object: ```js ENV['simple-auth-oauth2'] = { serverTokenEndpoint: '/some/custom/endpoint' } ``` @class OAuth2 @namespace SimpleAuth.Configuration @module simple-auth/configuration */ __exports__["default"] = { /** The endpoint on the server the authenticator acquires the access token from. @property serverTokenEndpoint @readOnly @static @type String @default '/token' */ serverTokenEndpoint: defaults.serverTokenEndpoint, /** The endpoint on the server the authenticator uses to revoke tokens. Only set this if the server actually supports token revokation. @property serverTokenRevocationEndpoint @readOnly @static @type String @default null */ serverTokenRevocationEndpoint: defaults.serverTokenRevocationEndpoint, /** Sets whether the authenticator automatically refreshes access tokens. @property refreshAccessTokens @readOnly @static @type Boolean @default true */ refreshAccessTokens: defaults.refreshAccessTokens, /** @method load @private */ load: loadConfig(defaults) }; }); define("simple-auth-oauth2/ember", ["./initializer"], function(__dependency1__) { "use strict"; var initializer = __dependency1__["default"]; Ember.onLoad('Ember.Application', function(Application) { Application.initializer(initializer); }); }); define("simple-auth-oauth2/initializer", ["./configuration","simple-auth/utils/get-global-config","simple-auth-oauth2/authenticators/oauth2","simple-auth-oauth2/authorizers/oauth2","exports"], function(__dependency1__, __dependency2__, __dependency3__, __dependency4__, __exports__) { "use strict"; var Configuration = __dependency1__["default"]; var getGlobalConfig = __dependency2__["default"]; var Authenticator = __dependency3__["default"]; var Authorizer = __dependency4__["default"]; __exports__["default"] = { name: 'simple-auth-oauth2', before: 'simple-auth', initialize: function(container, application) { var config = getGlobalConfig('simple-auth-oauth2'); Configuration.load(container, config); application.register('simple-auth-authorizer:oauth2-bearer', Authorizer); application.register('simple-auth-authenticator:oauth2-password-grant', Authenticator); } }; }); })(this);
'use strict'; var mean = require('meanio'); module.exports = function(System){ return { render:function(req,res){ res.render('index',{ locals: { config: System.config.clean }}); }, aggregatedList:function(req,res) { res.send(res.locals.aggregatedassets); } }; };
(function(f){function A(b,a,c){var d;!a.rgba.length||!b.rgba.length?b=a.raw||"none":(b=b.rgba,a=a.rgba,d=a[3]!==1||b[3]!==1,b=(d?"rgba(":"rgb(")+Math.round(a[0]+(b[0]-a[0])*(1-c))+","+Math.round(a[1]+(b[1]-a[1])*(1-c))+","+Math.round(a[2]+(b[2]-a[2])*(1-c))+(d?","+(a[3]+(b[3]-a[3])*(1-c)):"")+")");return b}var t=function(){},q=f.getOptions(),h=f.each,l=f.extend,B=f.format,u=f.pick,r=f.wrap,m=f.Chart,p=f.seriesTypes,v=p.pie,n=p.column,w=f.Tick,x=HighchartsAdapter.fireEvent,y=HighchartsAdapter.inArray, z=1;h(["fill","stroke"],function(b){HighchartsAdapter.addAnimSetter(b,function(a){a.elem.attr(b,A(f.Color(a.start),f.Color(a.end),a.pos))})});l(q.lang,{drillUpText:"\u25c1 Back to {series.name}"});q.drilldown={activeAxisLabelStyle:{cursor:"pointer",color:"#0d233a",fontWeight:"bold",textDecoration:"underline"},activeDataLabelStyle:{cursor:"pointer",color:"#0d233a",fontWeight:"bold",textDecoration:"underline"},animation:{duration:500},drillUpButton:{position:{align:"right",x:-10,y:10}}};f.SVGRenderer.prototype.Element.prototype.fadeIn= function(b){this.attr({opacity:0.1,visibility:"inherit"}).animate({opacity:u(this.newOpacity,1)},b||{duration:250})};m.prototype.addSeriesAsDrilldown=function(b,a){this.addSingleSeriesAsDrilldown(b,a);this.applyDrilldown()};m.prototype.addSingleSeriesAsDrilldown=function(b,a){var c=b.series,d=c.xAxis,g=c.yAxis,e;e=b.color||c.color;var i,f=[],j=[],k,o;if(!this.drilldownLevels)this.drilldownLevels=[];k=c.options._levelNumber||0;(o=this.drilldownLevels[this.drilldownLevels.length-1])&&o.levelNumber!== k&&(o=void 0);a=l({color:e,_ddSeriesId:z++},a);i=y(b,c.points);h(c.chart.series,function(a){if(a.xAxis===d&&!a.isDrilling)a.options._ddSeriesId=a.options._ddSeriesId||z++,a.options._colorIndex=a.userOptions._colorIndex,a.options._levelNumber=a.options._levelNumber||k,o?(f=o.levelSeries,j=o.levelSeriesOptions):(f.push(a),j.push(a.options))});e={levelNumber:k,seriesOptions:c.options,levelSeriesOptions:j,levelSeries:f,shapeArgs:b.shapeArgs,bBox:b.graphic?b.graphic.getBBox():{},color:e,lowerSeriesOptions:a, pointOptions:c.options.data[i],pointIndex:i,oldExtremes:{xMin:d&&d.userMin,xMax:d&&d.userMax,yMin:g&&g.userMin,yMax:g&&g.userMax}};this.drilldownLevels.push(e);e=e.lowerSeries=this.addSeries(a,!1);e.options._levelNumber=k+1;if(d)d.oldPos=d.pos,d.userMin=d.userMax=null,g.userMin=g.userMax=null;if(c.type===e.type)e.animate=e.animateDrilldown||t,e.options.animation=!0};m.prototype.applyDrilldown=function(){var b=this.drilldownLevels,a;if(b&&b.length>0)a=b[b.length-1].levelNumber,h(this.drilldownLevels, function(b){b.levelNumber===a&&h(b.levelSeries,function(b){b.options&&b.options._levelNumber===a&&b.remove(!1)})});this.redraw();this.showDrillUpButton()};m.prototype.getDrilldownBackText=function(){var b=this.drilldownLevels;if(b&&b.length>0)return b=b[b.length-1],b.series=b.seriesOptions,B(this.options.lang.drillUpText,b)};m.prototype.showDrillUpButton=function(){var b=this,a=this.getDrilldownBackText(),c=b.options.drilldown.drillUpButton,d,g;this.drillUpButton?this.drillUpButton.attr({text:a}).align(): (g=(d=c.theme)&&d.states,this.drillUpButton=this.renderer.button(a,null,null,function(){b.drillUp()},d,g&&g.hover,g&&g.select).attr({align:c.position.align,zIndex:9}).add().align(c.position,!1,c.relativeTo||"plotBox"))};m.prototype.drillUp=function(){for(var b=this,a=b.drilldownLevels,c=a[a.length-1].levelNumber,d=a.length,g=b.series,e,i,f,j,k=function(a){var c;h(g,function(b){b.options._ddSeriesId===a._ddSeriesId&&(c=b)});c=c||b.addSeries(a,!1);if(c.type===f.type&&c.animateDrillupTo)c.animate=c.animateDrillupTo; a===i.seriesOptions&&(j=c)};d--;)if(i=a[d],i.levelNumber===c){a.pop();f=i.lowerSeries;if(!f.chart)for(e=g.length;e--;)if(g[e].options.id===i.lowerSeriesOptions.id&&g[e].options._levelNumber===c+1){f=g[e];break}f.xData=[];h(i.levelSeriesOptions,k);x(b,"drillup",{seriesOptions:i.seriesOptions});if(j.type===f.type)j.drilldownLevel=i,j.options.animation=b.options.drilldown.animation,f.animateDrillupFrom&&f.chart&&f.animateDrillupFrom(i);j.options._levelNumber=c;f.remove(!1);if(j.xAxis)e=i.oldExtremes, j.xAxis.setExtremes(e.xMin,e.xMax,!1),j.yAxis.setExtremes(e.yMin,e.yMax,!1)}this.redraw();this.drilldownLevels.length===0?this.drillUpButton=this.drillUpButton.destroy():this.drillUpButton.attr({text:this.getDrilldownBackText()}).align();this.ddDupes.length=[]};n.prototype.supportsDrilldown=!0;n.prototype.animateDrillupTo=function(b){if(!b){var a=this,c=a.drilldownLevel;h(this.points,function(a){a.graphic&&a.graphic.hide();a.dataLabel&&a.dataLabel.hide();a.connector&&a.connector.hide()});setTimeout(function(){a.points&& h(a.points,function(a,b){var e=b===(c&&c.pointIndex)?"show":"fadeIn",f=e==="show"?!0:void 0;if(a.graphic)a.graphic[e](f);if(a.dataLabel)a.dataLabel[e](f);if(a.connector)a.connector[e](f)})},Math.max(this.chart.options.drilldown.animation.duration-50,0));this.animate=t}};n.prototype.animateDrilldown=function(b){var a=this,c=this.chart.drilldownLevels,d,g=this.chart.options.drilldown.animation,e=this.xAxis;if(!b)h(c,function(b){if(a.options._ddSeriesId===b.lowerSeriesOptions._ddSeriesId)d=b.shapeArgs, d.fill=b.color}),d.x+=u(e.oldPos,e.pos)-e.pos,h(this.points,function(a){a.graphic&&a.graphic.attr(d).animate(l(a.shapeArgs,{fill:a.color}),g);a.dataLabel&&a.dataLabel.fadeIn(g)}),this.animate=null};n.prototype.animateDrillupFrom=function(b){var a=this.chart.options.drilldown.animation,c=this.group,d=this;h(d.trackerGroups,function(a){if(d[a])d[a].on("mouseover")});delete this.group;h(this.points,function(d){var e=d.graphic,i=function(){e.destroy();c&&(c=c.destroy())};e&&(delete d.graphic,a?e.animate(l(b.shapeArgs, {fill:b.color}),f.merge(a,{complete:i})):(e.attr(b.shapeArgs),i()))})};v&&l(v.prototype,{supportsDrilldown:!0,animateDrillupTo:n.prototype.animateDrillupTo,animateDrillupFrom:n.prototype.animateDrillupFrom,animateDrilldown:function(b){var a=this.chart.drilldownLevels[this.chart.drilldownLevels.length-1],c=this.chart.options.drilldown.animation,d=a.shapeArgs,g=d.start,e=(d.end-g)/this.points.length;if(!b)h(this.points,function(b,h){b.graphic.attr(f.merge(d,{start:g+h*e,end:g+(h+1)*e,fill:a.color}))[c? "animate":"attr"](l(b.shapeArgs,{fill:b.color}),c)}),this.animate=null}});f.Point.prototype.doDrilldown=function(b,a){var c=this.series.chart,d=c.options.drilldown,f=(d.series||[]).length,e;if(!c.ddDupes)c.ddDupes=[];for(;f--&&!e;)d.series[f].id===this.drilldown&&y(this.drilldown,c.ddDupes)===-1&&(e=d.series[f],c.ddDupes.push(this.drilldown));x(c,"drilldown",{point:this,seriesOptions:e,category:a,points:a!==void 0&&this.series.xAxis.ddPoints[a].slice(0)});e&&(b?c.addSingleSeriesAsDrilldown(this,e): c.addSeriesAsDrilldown(this,e))};f.Axis.prototype.drilldownCategory=function(b){var a,c,d=this.ddPoints[b];for(a in d)(c=d[a])&&c.series&&c.series.visible&&c.doDrilldown&&c.doDrilldown(!0,b);this.chart.applyDrilldown()};f.Axis.prototype.getDDPoints=function(b,a){var c=this.ddPoints;if(!c)this.ddPoints=c={};c[b]||(c[b]=[]);if(c[b].levelNumber!==a)c[b].length=0;return c[b]};w.prototype.drillable=function(){var b=this.pos,a=this.label,c=this.axis,d=c.ddPoints&&c.ddPoints[b];if(a&&d&&d.length){if(!a.basicStyles)a.basicStyles= f.merge(a.styles);a.addClass("highcharts-drilldown-axis-label").css(c.chart.options.drilldown.activeAxisLabelStyle).on("click",function(){c.drilldownCategory(b)})}else if(a&&a.basicStyles)a.styles={},a.css(a.basicStyles),a.on("click",null)};r(w.prototype,"addLabel",function(b){b.call(this);this.drillable()});r(f.Point.prototype,"init",function(b,a,c,d){var g=b.call(this,a,c,d),b=(c=a.xAxis)&&c.ticks[d],c=c&&c.getDDPoints(d,a.options._levelNumber);if(g.drilldown&&(f.addEvent(g,"click",function(){a.xAxis&& a.chart.options.drilldown.allowPointDrilldown===!1?a.xAxis.drilldownCategory(d):g.doDrilldown()}),c))c.push(g),c.levelNumber=a.options._levelNumber;b&&b.drillable();return g});r(f.Series.prototype,"drawDataLabels",function(b){var a=this.chart.options.drilldown.activeDataLabelStyle;b.call(this);h(this.points,function(b){b.drilldown&&b.dataLabel&&b.dataLabel.attr({"class":"highcharts-drilldown-data-label"}).css(a)})});var s,q=function(b){b.call(this);h(this.points,function(a){a.drilldown&&a.graphic&& a.graphic.attr({"class":"highcharts-drilldown-point"}).css({cursor:"pointer"})})};for(s in p)p[s].prototype.supportsDrilldown&&r(p[s].prototype,"drawTracker",q)})(Highcharts);
/* * /MathJax/localization/fi/HelpDialog.js * * Copyright (c) 2009-2013 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.Localization.addTranslation("fi","HelpDialog",{version:"2.3",isLoaded:true,strings:{}});MathJax.Ajax.loadComplete("[MathJax]/localization/fi/HelpDialog.js");
// Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The SFC licenses this file // to you 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. /** * @fileoverview Defines functions for configuring a webdriver proxy: * * var webdriver = require('selenium-webdriver'), * proxy = require('selenium-webdriver/proxy'); * * var driver = new webdriver.Builder() * .withCapabilities(webdriver.Capabilities.chrome()) * .setProxy(proxy.manual({http: 'host:1234'})) * .build(); */ 'use strict'; var util = require('util'); // PUBLIC API /** * Configures WebDriver to bypass all browser proxies. * @return {!webdriver.ProxyConfig} A new proxy configuration object. */ exports.direct = function() { return {proxyType: 'direct'}; }; /** * Manually configures the browser proxy. The following options are * supported: * * - `ftp`: Proxy host to use for FTP requests * - `http`: Proxy host to use for HTTP requests * - `https`: Proxy host to use for HTTPS requests * - `bypass`: A list of hosts requests should directly connect to, * bypassing any other proxies for that request. May be specified as a * comma separated string, or a list of strings. * * Behavior is undefined for FTP, HTTP, and HTTPS requests if the * corresponding key is omitted from the configuration options. * * @param {{ftp: (string|undefined), * http: (string|undefined), * https: (string|undefined), * bypass: (string|!Array.<string>|undefined)}} options Proxy * configuration options. * @return {!webdriver.ProxyConfig} A new proxy configuration object. */ exports.manual = function(options) { return { proxyType: 'manual', ftpProxy: options.ftp, httpProxy: options.http, sslProxy: options.https, noProxy: util.isArray(options.bypass) ? options.bypass.join(',') : options.bypass }; }; /** * Configures WebDriver to configure the browser proxy using the PAC file at * the given URL. * @param {string} url URL for the PAC proxy to use. * @return {!webdriver.ProxyConfig} A new proxy configuration object. */ exports.pac = function(url) { return { proxyType: 'pac', proxyAutoconfigUrl: url }; }; /** * Configures WebDriver to use the current system's proxy. * @return {!webdriver.ProxyConfig} A new proxy configuration object. */ exports.system = function() { return {proxyType: 'system'}; };
var global = require('./$.global') , macrotask = require('./$.task').set , Observer = global.MutationObserver || global.WebKitMutationObserver , process = global.process , isNode = require('./$.cof')(process) == 'process' , head, last, notify; var flush = function(){ var parent, domain; if(isNode && (parent = process.domain)){ process.domain = null; parent.exit(); } while(head){ domain = head.domain; if(domain)domain.enter(); head.fn.call(); // <- currently we use it only for Promise - try / catch not required if(domain)domain.exit(); head = head.next; } last = undefined; if(parent)parent.enter(); } // Node.js if(isNode){ notify = function(){ process.nextTick(flush); }; // browsers with MutationObserver } else if(Observer){ var toggle = 1 , node = document.createTextNode(''); new Observer(flush).observe(node, {characterData: true}); // eslint-disable-line no-new notify = function(){ node.data = toggle = -toggle; }; // for other environments - macrotask based on: // - setImmediate // - MessageChannel // - window.postMessag // - onreadystatechange // - setTimeout } else { notify = function(){ // strange IE + webpack dev server bug - use .call(global) macrotask.call(global, flush); }; } module.exports = function asap(fn){ var task = {fn: fn, next: undefined, domain: isNode && process.domain}; if(last)last.next = task; if(!head){ head = task; notify(); } last = task; };
'use strict'; function NoManagerError(managerName) { this.name = 'NoManagerError'; this.message = 'No manager with the name ' + managerName + ' found'; Error.captureStackTrace(this); } NoManagerError.prototype = Object.create(Error.prototype); NoManagerError.prototype.constructor = NoManagerError; function OutOfQuotaError(managerName) { this.name = 'OutOfQuotaError'; this.message = 'Ran out of quota for ' + managerName; Error.captureStackTrace(this); } OutOfQuotaError.prototype = Object.create(Error.prototype); OutOfQuotaError.prototype.constructor = OutOfQuotaError; module.exports = { NoManagerError: NoManagerError, OutOfQuotaError: OutOfQuotaError };
class Error_OmittedKeys extends Error_Base { constructor(parameters) { super(parameters); if (!parameters.omitted_keys) { if (parameters.keys) { Logger.error(` Error_OmittedKeys was passed a "keys" property; did you mean "omitted_keys"? `); } else { Logger.errorWithTrace(` Error_OmittedKeys created without an "omitted_keys" array `); } this.omitted_keys = [ ]; } else { if (!parameters.omitted_keys.length) { Logger.errorWithTrace(` Error_OmittedKeys created but "omitted_keys" array did not contain any keys `); } this.omitted_keys = parameters.omitted_keys; } } } ObjectHelper.extend(Error_OmittedKeys.prototype, { omitted_keys: null, error_type: Error_Enum_Types.OMITTED_FIELDS }); module.exports = Error_OmittedKeys;
'use strict' const path = require('path') const serve = require('serve-static') const stations = require('./lib/stations') const allStations = require('./lib/all-stations') const station = require('./lib/station') const lines = require('./lib/lines') const line = require('./lib/line') const shape = require('./lib/shape') const maps = require('./lib/maps') const logosDir = path.dirname(require.resolve('vbb-logos/package.json')) const attachMiddleware = (api) => { api.use('/logos', serve(logosDir, {index: false})) // for compatibility with old docs & other APIs // todo: remove api.get('/stops', stations) api.get('/stops/all', allStations) api.get('/stations', stations) api.get('/stations/all', allStations) api.get('/stations/:id', station) api.get('/lines', lines) api.get('/lines/:id', line) api.get('/shapes/:id', shape) api.get('/maps/:type', maps) } module.exports = attachMiddleware
// "Their rating settled on an exact 2.5 out of 5 stars, // and no one was sure whether or not to transact with them" class TTY_Router extends Client_Router { /** * @param {object} properties * @returns {void} */ init(properties) { if (properties.viewport) { this.setViewport(properties.viewport); } return super.init(properties); } /** * @returns {string} */ getCurrentUrl() { return this.current_url; } /** * @param {string} url * @returns {self} */ setCurrentUrl(url) { this.current_url = url; return this; } getSupportedPageTypes() { return [ Enum_PageTypes.CHARACTER_LIST, Enum_PageTypes.GENERIC_ERROR, Enum_PageTypes.LOG_IN, Enum_PageTypes.NOT_FOUND, Enum_PageTypes.PERMISSION_DENIED, Enum_PageTypes.REGISTER, Enum_PageTypes.ROOT, Enum_PageTypes.SPECTATE ]; } /** * @param {Enum_PageTypes.XXX} page_type * @returns {string} */ getPathForPageType(page_type) { if (!Enum_Page_Paths[page_type]) { throw new Error(` Invalid or unspecified page type: ${page_type} `); } var path = Enum_Page_Paths[page_type]; return _.base + path.replace('page', 'tty/page'); } /** * @param {Enum_PageTypes.XXX} page_type * @returns {object} */ getParametersForPageType(page_type) { return ObjectHelper.extend(super.getParametersForPageType(page_type), { screen: this.getViewport().getScreen() }); } /** * @param {TTY_Viewport} viewport * @returns {self} */ setViewport(viewport) { this.viewport = viewport; return this; } /** * @returns {TTY_Viewport} */ getViewport() { return this.viewport; } } ObjectHelper.extend(TTY_Router.prototype, { current_url: Enum_Page_Urls[Enum_PageTypes.ROOT], viewport: null }); module.exports = TTY_Router;
import React from 'react' import styles from './ScreenReaderContent.module.css' export default function ScreenReaderContent({ children }) { return <div className={styles.screenReaderContent}>{children}</div> }
const request = require('request-promise-cache') module.exports = { commands: { unicode: { aliases: ['char'], help: 'Returns a unicode character whose name or codepoint matches a regular expression', command: async function (bot, msg) { try { // Get data from Unicode, cached for ~1 month const response = await request({ url: 'https://unicode.org/Public/UNIDATA/UnicodeData.txt', cacheKey: 'https://unicode.org/Public/UNIDATA/UnicodeData.txt', cacheTTL: 3.0E9 }) const data = response.split('\n') var matches // If more than one character is given, search for a matching // character name or codepoint if (Array.from(msg.body).length > 1) { // Find matching characters const regex = new RegExp(msg.body, 'i') matches = data.filter(character => character.match(regex)) // If only one character is given, look up that character } else { const codepoint = msg.body.codePointAt(0).toString(16).toUpperCase() const paddedCodepoint = '0000'.slice(codepoint.length) + codepoint matches = data.filter(character => character.startsWith(paddedCodepoint + ';')) } if (matches.length) { // Choose a random match const thisMatch = matches[Math.floor(Math.random() * matches.length)].split(';') // Print it only if it is not a control character or a line/paragraph spacer (categories C, Zl, Zp) // Otherwise, only print its metadata let theChar = '' if (!thisMatch[2].match(/(C.|Z[lp])/)) { theChar = String.fromCodePoint('0x' + thisMatch[0]) + ' ' } return theChar + thisMatch[1] + ' U+' + thisMatch[0] } else { return 'No Unicode characters match /' + msg.body + '/' } } catch (e) { return 'err: ' + e } } } } }
// Weather.js var request = require('request'); module.exports = function(location) { return new Promise(function(resolve, reject) { var encodedLocation = encodeURIComponent(location); // Get the weather url from user input thats encoded var url = 'http://api.openweathermap.org/data/2.5/weather?q=' + encodedLocation + '&units=imperial'; if(!location) { return reject('No location provided.'); } request({ url: url, json: true }, function(error, response, body) { // Error if(error) { //console.log('Unable to fetch the weather.'); reject('Unable to fetch the weather.'); }else { // Log the weather console.log('Here is the current weather: '); resolve('It\'s ' + body.main.temp + ' in ' + body.name + ', City' + '.'); } }); }); };
import React from "react"; import ReactDom from "react-dom"; import ChallengeData from "./ChallengeData.js" import ChallengeApi from "./utils/ChallengeApi.js"; var RegexRocketsApp = require("./components/RegexRocketsApp.react"); ChallengeData.init(); ChallengeApi.getChallenges(); ReactDom.render( <RegexRocketsApp />, document.getElementById("app") );
var baseGet = require('../base/baseGet') var baseSlice = require('../base/baseSlice') var isArguments = require('../lang/isArguments') var isArray = require('../lang/isArray') var isIndex = require('../lang/isIndex') var isKey = require('../lang/isKey') var isLength = require('../lang/isLength') var last = require('../array/last') var toPath = require('../string/toPath') var hasOwn = require('./hasOwn') // Checks if `path` is a direct property. function has (object, path) { if (object == null) return false var result = hasOwn(object, path) if (!result && !isKey(path)) { path = toPath(path) object = path.length === 1 ? object : baseGet(object, baseSlice(path, 0, 1)) if (object == null) return false path = last(path) result = hasOwn(object, path) } return result || ( isLength(object.length) && isIndex(path, object.length) && (isArray(object) || isArguments(object)) ) } module.exports = has
"use strict"; var { multilineTilTag, multilineTilEmptyLineOrTag, booleanTag, singleParameterTag } = require('./consumers'); module.exports = { text: multilineTilTag, default: multilineTilTag, tags: { augments: singleParameterTag, author: multilineTilEmptyLineOrTag, borrows: multilineTilEmptyLineOrTag, class: multilineTilTag, constant: booleanTag, constructor: booleanTag, constructs: booleanTag, default: singleParameterTag, deprecated: multilineTilEmptyLineOrTag, desciption: multilineTilTag, event: booleanTag, example: multilineTilTag, extends: singleParameterTag, field: booleanTag, fileOverview: multilineTilTag, function: booleanTag, ignore: booleanTag, inner: booleanTag, lends: singleParameterTag, memberOf: singleParameterTag, name: booleanTag, namespace: booleanTag, param: multilineTilEmptyLineOrTag, private: booleanTag, property: multilineTilEmptyLineOrTag, public: booleanTag, requires: multilineTilEmptyLineOrTag, returns: multilineTilEmptyLineOrTag, see: singleParameterTag, since: singleParameterTag, static: booleanTag, throws: multilineTilEmptyLineOrTag, type: singleParameterTag, version: multilineTilEmptyLineOrTag } };
/** * **Percentage Points of the χ2 (Chi-Squared) Distribution** * * The [χ2 (Chi-Squared) Distribution](http://en.wikipedia.org/wiki/Chi-squared_distribution) is used in the common * chi-squared tests for goodness of fit of an observed distribution to a theoretical one, the independence of two * criteria of classification of qualitative data, and in confidence interval estimation for a population standard * deviation of a normal distribution from a sample standard deviation. * * Values from Appendix 1, Table III of William W. Hines & Douglas C. Montgomery, "Probability and Statistics in * Engineering and Management Science", Wiley (1980). */ const chiSquaredDistributionTable = { "1": { "0.995": 0, "0.99": 0, "0.975": 0, "0.95": 0, "0.9": 0.02, "0.5": 0.45, "0.1": 2.71, "0.05": 3.84, "0.025": 5.02, "0.01": 6.63, "0.005": 7.88 }, "2": { "0.995": 0.01, "0.99": 0.02, "0.975": 0.05, "0.95": 0.1, "0.9": 0.21, "0.5": 1.39, "0.1": 4.61, "0.05": 5.99, "0.025": 7.38, "0.01": 9.21, "0.005": 10.6 }, "3": { "0.995": 0.07, "0.99": 0.11, "0.975": 0.22, "0.95": 0.35, "0.9": 0.58, "0.5": 2.37, "0.1": 6.25, "0.05": 7.81, "0.025": 9.35, "0.01": 11.34, "0.005": 12.84 }, "4": { "0.995": 0.21, "0.99": 0.3, "0.975": 0.48, "0.95": 0.71, "0.9": 1.06, "0.5": 3.36, "0.1": 7.78, "0.05": 9.49, "0.025": 11.14, "0.01": 13.28, "0.005": 14.86 }, "5": { "0.995": 0.41, "0.99": 0.55, "0.975": 0.83, "0.95": 1.15, "0.9": 1.61, "0.5": 4.35, "0.1": 9.24, "0.05": 11.07, "0.025": 12.83, "0.01": 15.09, "0.005": 16.75 }, "6": { "0.995": 0.68, "0.99": 0.87, "0.975": 1.24, "0.95": 1.64, "0.9": 2.2, "0.5": 5.35, "0.1": 10.65, "0.05": 12.59, "0.025": 14.45, "0.01": 16.81, "0.005": 18.55 }, "7": { "0.995": 0.99, "0.99": 1.25, "0.975": 1.69, "0.95": 2.17, "0.9": 2.83, "0.5": 6.35, "0.1": 12.02, "0.05": 14.07, "0.025": 16.01, "0.01": 18.48, "0.005": 20.28 }, "8": { "0.995": 1.34, "0.99": 1.65, "0.975": 2.18, "0.95": 2.73, "0.9": 3.49, "0.5": 7.34, "0.1": 13.36, "0.05": 15.51, "0.025": 17.53, "0.01": 20.09, "0.005": 21.96 }, "9": { "0.995": 1.73, "0.99": 2.09, "0.975": 2.7, "0.95": 3.33, "0.9": 4.17, "0.5": 8.34, "0.1": 14.68, "0.05": 16.92, "0.025": 19.02, "0.01": 21.67, "0.005": 23.59 }, "10": { "0.995": 2.16, "0.99": 2.56, "0.975": 3.25, "0.95": 3.94, "0.9": 4.87, "0.5": 9.34, "0.1": 15.99, "0.05": 18.31, "0.025": 20.48, "0.01": 23.21, "0.005": 25.19 }, "11": { "0.995": 2.6, "0.99": 3.05, "0.975": 3.82, "0.95": 4.57, "0.9": 5.58, "0.5": 10.34, "0.1": 17.28, "0.05": 19.68, "0.025": 21.92, "0.01": 24.72, "0.005": 26.76 }, "12": { "0.995": 3.07, "0.99": 3.57, "0.975": 4.4, "0.95": 5.23, "0.9": 6.3, "0.5": 11.34, "0.1": 18.55, "0.05": 21.03, "0.025": 23.34, "0.01": 26.22, "0.005": 28.3 }, "13": { "0.995": 3.57, "0.99": 4.11, "0.975": 5.01, "0.95": 5.89, "0.9": 7.04, "0.5": 12.34, "0.1": 19.81, "0.05": 22.36, "0.025": 24.74, "0.01": 27.69, "0.005": 29.82 }, "14": { "0.995": 4.07, "0.99": 4.66, "0.975": 5.63, "0.95": 6.57, "0.9": 7.79, "0.5": 13.34, "0.1": 21.06, "0.05": 23.68, "0.025": 26.12, "0.01": 29.14, "0.005": 31.32 }, "15": { "0.995": 4.6, "0.99": 5.23, "0.975": 6.27, "0.95": 7.26, "0.9": 8.55, "0.5": 14.34, "0.1": 22.31, "0.05": 25, "0.025": 27.49, "0.01": 30.58, "0.005": 32.8 }, "16": { "0.995": 5.14, "0.99": 5.81, "0.975": 6.91, "0.95": 7.96, "0.9": 9.31, "0.5": 15.34, "0.1": 23.54, "0.05": 26.3, "0.025": 28.85, "0.01": 32, "0.005": 34.27 }, "17": { "0.995": 5.7, "0.99": 6.41, "0.975": 7.56, "0.95": 8.67, "0.9": 10.09, "0.5": 16.34, "0.1": 24.77, "0.05": 27.59, "0.025": 30.19, "0.01": 33.41, "0.005": 35.72 }, "18": { "0.995": 6.26, "0.99": 7.01, "0.975": 8.23, "0.95": 9.39, "0.9": 10.87, "0.5": 17.34, "0.1": 25.99, "0.05": 28.87, "0.025": 31.53, "0.01": 34.81, "0.005": 37.16 }, "19": { "0.995": 6.84, "0.99": 7.63, "0.975": 8.91, "0.95": 10.12, "0.9": 11.65, "0.5": 18.34, "0.1": 27.2, "0.05": 30.14, "0.025": 32.85, "0.01": 36.19, "0.005": 38.58 }, "20": { "0.995": 7.43, "0.99": 8.26, "0.975": 9.59, "0.95": 10.85, "0.9": 12.44, "0.5": 19.34, "0.1": 28.41, "0.05": 31.41, "0.025": 34.17, "0.01": 37.57, "0.005": 40 }, "21": { "0.995": 8.03, "0.99": 8.9, "0.975": 10.28, "0.95": 11.59, "0.9": 13.24, "0.5": 20.34, "0.1": 29.62, "0.05": 32.67, "0.025": 35.48, "0.01": 38.93, "0.005": 41.4 }, "22": { "0.995": 8.64, "0.99": 9.54, "0.975": 10.98, "0.95": 12.34, "0.9": 14.04, "0.5": 21.34, "0.1": 30.81, "0.05": 33.92, "0.025": 36.78, "0.01": 40.29, "0.005": 42.8 }, "23": { "0.995": 9.26, "0.99": 10.2, "0.975": 11.69, "0.95": 13.09, "0.9": 14.85, "0.5": 22.34, "0.1": 32.01, "0.05": 35.17, "0.025": 38.08, "0.01": 41.64, "0.005": 44.18 }, "24": { "0.995": 9.89, "0.99": 10.86, "0.975": 12.4, "0.95": 13.85, "0.9": 15.66, "0.5": 23.34, "0.1": 33.2, "0.05": 36.42, "0.025": 39.36, "0.01": 42.98, "0.005": 45.56 }, "25": { "0.995": 10.52, "0.99": 11.52, "0.975": 13.12, "0.95": 14.61, "0.9": 16.47, "0.5": 24.34, "0.1": 34.28, "0.05": 37.65, "0.025": 40.65, "0.01": 44.31, "0.005": 46.93 }, "26": { "0.995": 11.16, "0.99": 12.2, "0.975": 13.84, "0.95": 15.38, "0.9": 17.29, "0.5": 25.34, "0.1": 35.56, "0.05": 38.89, "0.025": 41.92, "0.01": 45.64, "0.005": 48.29 }, "27": { "0.995": 11.81, "0.99": 12.88, "0.975": 14.57, "0.95": 16.15, "0.9": 18.11, "0.5": 26.34, "0.1": 36.74, "0.05": 40.11, "0.025": 43.19, "0.01": 46.96, "0.005": 49.65 }, "28": { "0.995": 12.46, "0.99": 13.57, "0.975": 15.31, "0.95": 16.93, "0.9": 18.94, "0.5": 27.34, "0.1": 37.92, "0.05": 41.34, "0.025": 44.46, "0.01": 48.28, "0.005": 50.99 }, "29": { "0.995": 13.12, "0.99": 14.26, "0.975": 16.05, "0.95": 17.71, "0.9": 19.77, "0.5": 28.34, "0.1": 39.09, "0.05": 42.56, "0.025": 45.72, "0.01": 49.59, "0.005": 52.34 }, "30": { "0.995": 13.79, "0.99": 14.95, "0.975": 16.79, "0.95": 18.49, "0.9": 20.6, "0.5": 29.34, "0.1": 40.26, "0.05": 43.77, "0.025": 46.98, "0.01": 50.89, "0.005": 53.67 }, "40": { "0.995": 20.71, "0.99": 22.16, "0.975": 24.43, "0.95": 26.51, "0.9": 29.05, "0.5": 39.34, "0.1": 51.81, "0.05": 55.76, "0.025": 59.34, "0.01": 63.69, "0.005": 66.77 }, "50": { "0.995": 27.99, "0.99": 29.71, "0.975": 32.36, "0.95": 34.76, "0.9": 37.69, "0.5": 49.33, "0.1": 63.17, "0.05": 67.5, "0.025": 71.42, "0.01": 76.15, "0.005": 79.49 }, "60": { "0.995": 35.53, "0.99": 37.48, "0.975": 40.48, "0.95": 43.19, "0.9": 46.46, "0.5": 59.33, "0.1": 74.4, "0.05": 79.08, "0.025": 83.3, "0.01": 88.38, "0.005": 91.95 }, "70": { "0.995": 43.28, "0.99": 45.44, "0.975": 48.76, "0.95": 51.74, "0.9": 55.33, "0.5": 69.33, "0.1": 85.53, "0.05": 90.53, "0.025": 95.02, "0.01": 100.42, "0.005": 104.22 }, "80": { "0.995": 51.17, "0.99": 53.54, "0.975": 57.15, "0.95": 60.39, "0.9": 64.28, "0.5": 79.33, "0.1": 96.58, "0.05": 101.88, "0.025": 106.63, "0.01": 112.33, "0.005": 116.32 }, "90": { "0.995": 59.2, "0.99": 61.75, "0.975": 65.65, "0.95": 69.13, "0.9": 73.29, "0.5": 89.33, "0.1": 107.57, "0.05": 113.14, "0.025": 118.14, "0.01": 124.12, "0.005": 128.3 }, "100": { "0.995": 67.33, "0.99": 70.06, "0.975": 74.22, "0.95": 77.93, "0.9": 82.36, "0.5": 99.33, "0.1": 118.5, "0.05": 124.34, "0.025": 129.56, "0.01": 135.81, "0.005": 140.17 } }; export default chiSquaredDistributionTable;
#!/usr/bin/env node var program = require('commander'); var packageJson = require('./package.json'); function get_params(cmd){ var res={}; var params=cmd._events||{}; for(var k in params){ res[k]=cmd[k]; } //console.log('get params:',res); // return res; } program .version(packageJson.version) /*.option('-m, --mp <multi>', 'Multi-process,1|0,default "0"') .option('-c, --rc <count>', 'Request-count,default "1"') //.option('-v, --nv <version>', 'Node-version') .option('-s, --rs <size>', 'Response-size,default "helloword"') .option('-w, --rw <way>', 'Request-way,default "http"');*/ program.command('init') .description('nt-test init ') .action(function(cmd){ var cp=require('child_process'); var fs=require('fs'); var spawn=cp.spawn; var cwd=process.cwd(); var datas=__dirname+'/data'; var logs=cwd+'/log'; cp.exec('cp -rf '+datas+' '+cwd,function(err, stdout, stderr){ if(err){ // console.log('init response data files error:',err); }else{ // console.log('init reponse data files ok'); } }); if(fs.existsSync(logs)){ // console.log('init log directory ok'); // return console.log(logs+' is already existed'); } cp.exec('mkdir log',function(err, stdout, stderr){ if(err){ // console.log('init log directory error:',err); }else{ // console.log('init log directory ok'); } }); }); //request program.command('req') .description('request ') .option('-h, --host <host>', 'Server host,default "127.0.0.1"') .option('-p, --port <port>', 'Server port,default 3030') .option('-m, --method <method>', 'Request-method,default "get"') .option('-c, --count <count>', 'Request-count,default "1"') .option('-w, --way <way>', 'Request-way,default "http"') .option('-s, --space <space>', 'Request-space,default "100ms"') .option('-l, --log <log>', 'Custom log name.') .action(function(cmd){ var cp=require('child_process'); var spawn=cp.spawn; var fileName=__dirname+'/request.js'; var child=cp.fork(fileName); var r=spawn('node',[fileName]); child.on('message',function(m){ // console.log('request message:',m.result); }); var cmds=get_params(cmd); child.send(cmds); }); //response program.command('res') .description('response data size') .option('-p, --port <port>', 'Server port,default 3030') .option('-m, --multi <multi>', 'Multi-process,1|0,default "0"') .option('-s, --size <size>', 'Response-size,default "helloword"') .action(function(cmd){ var cp=require('child_process'); var spawn=cp.spawn; var fileName=__dirname+'/response.js'; var child=cp.fork(fileName); var r=spawn('node',[fileName]); child.on('message',function(m){ // console.log('response message:',m.result); }); var cmds=get_params(cmd); child.send(cmds); }); //clear program.command('clear') .description('clear log file') .action(function(){ var cp=require('child_process'); var spawn=cp.spawn; var cwd=process.cwd(); var logs=cwd+'/log/*'; // cp.exec('rm -rf '+logs,function(err, stdout, stderr){ if(err){ // console.log('clear log files error:',err); }else{ // console.log('clear all log files'); } }); }); //data program.command('data') .description('create response test data') .option('-s, --size <size>', 'Create response data size,size * 1k') .action(function(cmd){ var size=parseFloat(cmd.size,10)||0; if(!size){ return console.log('should input a size number'); } var cp=require('child_process'); var fs=require('fs'); var spawn=cp.spawn; var cwd=process.cwd(); var dataFile=cwd+'/data/'+size+'.data'; if(fs.existsSync(dataFile)){ return console.log(dataFile+' is already existed'); } var baseFile=cwd+'/data/1.data'; if(size < 1){ baseFile=cwd+'/data/0.data'; size=size*100; } var data=fs.readFileSync(baseFile,"utf-8"); var str=[]; // for(var i=0;i<size;i++){ str.push(data); } // fs.appendFile(dataFile, str.join(''), function(err){ if(err){ // console.log("input file fail " + err); }else{ // console.log('input '+dataFile+' ok'); } }); }); program.parse(process.argv); var onExit = function () { console.log('command exited.'); process.exit(-1); }; // process.on('SIGINT', onExit); process.on('SIGTERM', onExit);
/* * grunt-reloadlet * https://github.com/mosborn/grunt-reloadlet * * Copyright (c) 2014 Matt Osborn * Licensed under the MIT license. */ 'use strict'; module.exports = function(grunt) { var http = require('http'), fs = require('fs'), spawn = require('win-spawn'); grunt.registerMultiTask('reloadlet', 'simple live reloader', function() { this.async(); var assets = this.data.assets, sassOpts = this.data.sass, options = this.options({ port: 8005, }) var server = http.createServer(function(request, response) { response.writeHead(200, { "Content-Type": "application/json", "Access-Control-Allow-Origin": "*" }); var json_response = {}; assets.forEach(function(a) { json_response[a.remote] = fs.statSync(a.local).mtime; }); response.write(JSON.stringify(json_response)); response.end(); }); server.listen(options.port); console.log("Server is listening on port " + options.port); var bin = 'sass', args = ['--watch', sassOpts.src + ':' + sassOpts.dest] var cp = spawn(bin, args, { stdio: 'inherit' }); cp.on('error', function(err) { grunt.warn(err); }); cp.on('close', function(code) { if (code > 0) { return grunt.warn('Exited with error code ' + code); } }); }); };
version https://git-lfs.github.com/spec/v1 oid sha256:18caaa6da6253aedbf7b0f2c791cb2139ee2a5b6799cd3a40263e92b4019fb32 size 624
const fs = require('fs') const Sequelize = require('sequelize') const config = require('../config/config') const path = require('path') const db = {} const sequelize = new Sequelize( config.db.database, config.db.user, config.db.password, config.db.options ) fs .readdirSync(__dirname) .filter((file) => file !== 'index.js' ) .forEach((file) => { const model = sequelize.import(path.join(__dirname, file)) db[model.name] = model }) db.sequelize = sequelize db.Sequelize = Sequelize module.exports = db
import React from 'react'; import validate from 'validate.js'; import { isAReactEl, isAFormEl, isAFormGroup } from './formUtils'; import { ERROR_INPUT_CLASS_NAME, HAS_VALUE_CLASS_NAME } from './formConstants'; import { getFormElementRefName } from './formElement/formElementUtils'; import formElementFromState from './formElement/formElementFromState'; import formElementFromEvt from './formElement/formElementFromEvt'; function isLikeStringOrNum(element) { return !isAReactEl(element); } function isAnErrorEl({ type }) { return type.displayName === 'FormError'; } function isAFormErrorElClass({ props }) { return !!props['data-form-error'] || !!props.htmlFor; } function getErrorMsg(name, errors) { return (errors[name] || [])[0]; } function getErrorElProps(element, { errors }) { const { forInput } = element.props; return { ...element.props, msg: getErrorMsg(forInput, errors) }; } function getErrorClassElProps(element, { errors }) { const inputName = element.props['data-form-error'] || element.props.htmlFor; const errorClassName = getErrorMsg(inputName, errors) ? ERROR_INPUT_CLASS_NAME : ''; return { ...element.props, className: `${element.props.className} ${errorClassName}` }; } function mergeCallbacks(...args) { return (e) => { args.filter(arg => validate.isFunction(arg)) .forEach(cb => cb(e)); }; } function getHasValueClassName(formElementValue) { const element = formElementValue || {}; return validate.isEmpty(element.value) ? '' : HAS_VALUE_CLASS_NAME; } function getErrorInputClassName(name, errors) { const hasErrors = !!getErrorMsg(name, errors); return hasErrors ? ERROR_INPUT_CLASS_NAME : ''; } function getValidateEvents(eventType, formGroupProps) { const { onValidate, onInvalidate, invalidateEvent, validateEvent } = formGroupProps; if ( invalidateEvent === eventType && validateEvent === eventType ) { return (...args) => { onInvalidate(...args); onValidate(...args); }; } if (invalidateEvent === eventType) { return onInvalidate; } if (validateEvent === eventType) { return onValidate; } return null; } let lastFocusValue = null; function getLastFocusValue(e) { lastFocusValue = formElementFromEvt(e).getVal(); } function getFormElProps(element, formGroupProps) { const { name, onChange, onBlur: onBlurProp, onFocus, className } = element.props; const { errors, values, onValueChange, stringRefs } = formGroupProps; const formElementValue = formElementFromState(element, values).getKeyVal(); if ( stringRefs && element.props && element.props.value && formElementValue != null && stringRefs[`${getFormElementRefName(element)}-value`] && element.props.value !== stringRefs[`${getFormElementRefName(element)}-value`] && element.props.value !== formElementValue.value ) { console.warn(`You are trying to change the value prop of "${name}" but the Redux state for this element is already set. React Props: "${element.props.value}" Redux State: "${formElementValue && formElementValue.value}" In this case, Redux is believed as the source of truth. See the docs if you are having issues changing the value of "${name}". https://github.com/ikanedo/react-redux-simple-validate/blob/master/docs/faq.md#why-is-my-input-value-not-changing `); } if (validate.isEmpty(name)) { throw new Error(`${element.type} element is missing a name attribute!`, element); } const onChangeEvents = mergeCallbacks(onValueChange, onChange, getValidateEvents('onChange', formGroupProps)); const onFocusEvents = mergeCallbacks(onFocus, getLastFocusValue, getValidateEvents('onFocus', formGroupProps)); const onBlurEvents = mergeCallbacks(getValidateEvents('onBlur', formGroupProps)); return { ...element.props, key: name, ref(node) { stringRefs[getFormElementRefName(element)] = node; stringRefs[`${getFormElementRefName(element)}-value`] = element.props.value; }, onChange: onChangeEvents, onFocus: onFocusEvents, onBlur: (e) => { if (onBlurProp) { onBlurProp(e); } const hasTheValueChanged = formElementFromEvt(e).getVal() !== lastFocusValue; if (hasTheValueChanged) { onBlurEvents(e); } }, className: [ className, getErrorInputClassName(name, errors), getHasValueClassName(formElementValue) ].join(' '), ...formElementValue }; } function getElProps(element, args) { if (isAFormEl(element)) { return getFormElProps(element, args); } if (isAFormErrorElClass(element)) { return getErrorClassElProps(element, args); } if (isAnErrorEl(element)) { return getErrorElProps(element, args); } return element.props; } function getChildren(childrenProp, recurFormBuilder) { if (isAReactEl(childrenProp)) { return recurFormBuilder(); } return childrenProp; } export default function formBuilder(args) { return React.Children.map(args.children, (element) => { if (isLikeStringOrNum(element) || isAFormGroup(element)) { return element; } const { children } = element.props; const elementProps = getElProps(element, args); const elementChildren = getChildren( children, formBuilder.bind(null, { ...args, children }) ); return [React.cloneElement( element, elementProps, elementChildren )]; }); }
/* Copyright 2014, KISSY v1.49 MIT Licensed build time: May 22 12:17 */ /* Combined processedModules by KISSY Module Compiler: date/gregorian/const date/gregorian/utils date/gregorian */ KISSY.add("date/gregorian/const", [], function() { return{SUNDAY:0, MONDAY:1, TUESDAY:2, WEDNESDAY:3, THURSDAY:4, FRIDAY:5, SATURDAY:6, JANUARY:0, FEBRUARY:1, MARCH:2, APRIL:3, MAY:4, JUNE:5, JULY:6, AUGUST:7, SEPTEMBER:8, OCTOBER:9, NOVEMBER:10, DECEMBER:11} }); KISSY.add("date/gregorian/utils", ["./const"], function(S, require) { var Const = require("./const"); var ACCUMULATED_DAYS_IN_MONTH = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334], ACCUMULATED_DAYS_IN_MONTH_LEAP = [0, 31, 59 + 1, 90 + 1, 120 + 1, 151 + 1, 181 + 1, 212 + 1, 243 + 1, 273 + 1, 304 + 1, 334 + 1], DAYS_OF_YEAR = 365, DAYS_OF_4YEAR = 365 * 4 + 1, DAYS_OF_100YEAR = DAYS_OF_4YEAR * 25 - 1, DAYS_OF_400YEAR = DAYS_OF_100YEAR * 4 + 1, Utils = {}; function getDayOfYear(year, month, dayOfMonth) { return dayOfMonth + (isLeapYear(year) ? ACCUMULATED_DAYS_IN_MONTH_LEAP[month] : ACCUMULATED_DAYS_IN_MONTH[month]) } function getDayOfWeekFromFixedDate(fixedDate) { if(fixedDate >= 0) { return fixedDate % 7 } return mod(fixedDate, 7) } function getGregorianYearFromFixedDate(fixedDate) { var d0; var d1, d2, d3; var n400, n100, n4, n1; var year; d0 = fixedDate - 1; n400 = floorDivide(d0 / DAYS_OF_400YEAR); d1 = mod(d0, DAYS_OF_400YEAR); n100 = floorDivide(d1 / DAYS_OF_100YEAR); d2 = mod(d1, DAYS_OF_100YEAR); n4 = floorDivide(d2 / DAYS_OF_4YEAR); d3 = mod(d2, DAYS_OF_4YEAR); n1 = floorDivide(d3 / DAYS_OF_YEAR); year = 400 * n400 + 100 * n100 + 4 * n4 + n1; if(!(n100 === 4 || n1 === 4)) { ++year } return year } S.mix(Utils, {isLeapYear:function(year) { if((year & 3) !== 0) { return false } return year % 100 !== 0 || year % 400 === 0 }, mod:function(x, y) { return x - y * floorDivide(x / y) }, getFixedDate:function(year, month, dayOfMonth) { var prevYear = year - 1; return DAYS_OF_YEAR * prevYear + floorDivide(prevYear / 4) - floorDivide(prevYear / 100) + floorDivide(prevYear / 400) + getDayOfYear(year, month, dayOfMonth) }, getGregorianDateFromFixedDate:function(fixedDate) { var year = getGregorianYearFromFixedDate(fixedDate); var jan1 = Utils.getFixedDate(year, Const.JANUARY, 1); var isLeap = isLeapYear(year); var ACCUMULATED_DAYS = isLeap ? ACCUMULATED_DAYS_IN_MONTH_LEAP : ACCUMULATED_DAYS_IN_MONTH; var daysDiff = fixedDate - jan1; var month, i; for(i = 0;i < ACCUMULATED_DAYS.length;i++) { if(ACCUMULATED_DAYS[i] <= daysDiff) { month = i }else { break } } var dayOfMonth = fixedDate - jan1 - ACCUMULATED_DAYS[month] + 1; var dayOfWeek = getDayOfWeekFromFixedDate(fixedDate); return{year:year, month:month, dayOfMonth:dayOfMonth, dayOfWeek:dayOfWeek, isLeap:isLeap} }}); var floorDivide = Math.floor, isLeapYear = Utils.isLeapYear, mod = Utils.mod; return Utils }); KISSY.add("date/gregorian", ["./gregorian/utils", "i18n!date", "./gregorian/const"], function(S, require) { var toInt = parseInt; var Utils = require("./gregorian/utils"); var defaultLocale = require("i18n!date"); var Const = require("./gregorian/const"); function GregorianCalendar(timezoneOffset, locale) { var args = S.makeArray(arguments); if(S.isObject(timezoneOffset)) { locale = timezoneOffset; timezoneOffset = locale.timezoneOffset }else { if(args.length >= 3) { timezoneOffset = locale = null } } locale = locale || defaultLocale; this.locale = locale; this.fields = []; this.time = undefined; this.timezoneOffset = timezoneOffset || locale.timezoneOffset; this.firstDayOfWeek = locale.firstDayOfWeek; this.minimalDaysInFirstWeek = locale.minimalDaysInFirstWeek; this.fieldsComputed = false; if(arguments.length >= 3) { this.set.apply(this, args) } } S.mix(GregorianCalendar, Const); S.mix(GregorianCalendar, {Utils:Utils, isLeapYear:Utils.isLeapYear, YEAR:1, MONTH:2, DAY_OF_MONTH:3, HOUR_OF_DAY:4, MINUTES:5, SECONDS:6, MILLISECONDS:7, WEEK_OF_YEAR:8, WEEK_OF_MONTH:9, DAY_OF_YEAR:10, DAY_OF_WEEK:11, DAY_OF_WEEK_IN_MONTH:12, AM:0, PM:1}); var fields = ["", "Year", "Month", "DayOfMonth", "HourOfDay", "Minutes", "Seconds", "Milliseconds", "WeekOfYear", "WeekOfMonth", "DayOfYear", "DayOfWeek", "DayOfWeekInMonth"]; var YEAR = GregorianCalendar.YEAR; var MONTH = GregorianCalendar.MONTH; var DAY_OF_MONTH = GregorianCalendar.DAY_OF_MONTH; var HOUR_OF_DAY = GregorianCalendar.HOUR_OF_DAY; var MINUTE = GregorianCalendar.MINUTES; var SECONDS = GregorianCalendar.SECONDS; var MILLISECONDS = GregorianCalendar.MILLISECONDS; var DAY_OF_WEEK_IN_MONTH = GregorianCalendar.DAY_OF_WEEK_IN_MONTH; var DAY_OF_YEAR = GregorianCalendar.DAY_OF_YEAR; var DAY_OF_WEEK = GregorianCalendar.DAY_OF_WEEK; var WEEK_OF_MONTH = GregorianCalendar.WEEK_OF_MONTH; var WEEK_OF_YEAR = GregorianCalendar.WEEK_OF_YEAR; var MONTH_LENGTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; var LEAP_MONTH_LENGTH = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; var ONE_SECOND = 1E3; var ONE_MINUTE = 60 * ONE_SECOND; var ONE_HOUR = 60 * ONE_MINUTE; var ONE_DAY = 24 * ONE_HOUR; var ONE_WEEK = ONE_DAY * 7; var EPOCH_OFFSET = 719163; var mod = Utils.mod, isLeapYear = Utils.isLeapYear, floorDivide = Math.floor; var MIN_VALUES = [undefined, 1, GregorianCalendar.JANUARY, 1, 0, 0, 0, 0, 1, undefined, 1, GregorianCalendar.SUNDAY, 1]; var MAX_VALUES = [undefined, 292278994, GregorianCalendar.DECEMBER, undefined, 23, 59, 59, 999, undefined, undefined, undefined, GregorianCalendar.SATURDAY, undefined]; GregorianCalendar.prototype = {constructor:GregorianCalendar, isLeapYear:function() { return isLeapYear(this.getYear()) }, getLocale:function() { return this.locale }, getActualMinimum:function(field) { if(MIN_VALUES[field] !== undefined) { return MIN_VALUES[field] } var fields = this.fields; if(field === WEEK_OF_MONTH) { var cal = new GregorianCalendar(fields[YEAR], fields[MONTH], 1); return cal.get(WEEK_OF_MONTH) } throw new Error("minimum value not defined!"); }, getActualMaximum:function(field) { if(MAX_VALUES[field] !== undefined) { return MAX_VALUES[field] } var value, fields = this.fields; switch(field) { case DAY_OF_MONTH: value = getMonthLength(fields[YEAR], fields[MONTH]); break; case WEEK_OF_YEAR: var endOfYear = new GregorianCalendar(fields[YEAR], GregorianCalendar.DECEMBER, 31); value = endOfYear.get(WEEK_OF_YEAR); if(value === 1) { value = 52 } break; case WEEK_OF_MONTH: var endOfMonth = new GregorianCalendar(fields[YEAR], fields[MONTH], getMonthLength(fields[YEAR], fields[MONTH])); value = endOfMonth.get(WEEK_OF_MONTH); break; case DAY_OF_YEAR: value = getYearLength(fields[YEAR]); break; case DAY_OF_WEEK_IN_MONTH: value = toInt((getMonthLength(fields[YEAR], fields[MONTH]) - 1) / 7) + 1; break } if(value === undefined) { throw new Error("maximum value not defined!"); } return value }, isSet:function(field) { return this.fields[field] !== undefined }, computeFields:function() { var time = this.time; var timezoneOffset = this.timezoneOffset * ONE_MINUTE; var fixedDate = toInt(timezoneOffset / ONE_DAY); var timeOfDay = timezoneOffset % ONE_DAY; fixedDate += toInt(time / ONE_DAY); timeOfDay += time % ONE_DAY; if(timeOfDay >= ONE_DAY) { timeOfDay -= ONE_DAY; fixedDate++ }else { while(timeOfDay < 0) { timeOfDay += ONE_DAY; fixedDate-- } } fixedDate += EPOCH_OFFSET; var date = Utils.getGregorianDateFromFixedDate(fixedDate); var year = date.year; var fields = this.fields; fields[YEAR] = year; fields[MONTH] = date.month; fields[DAY_OF_MONTH] = date.dayOfMonth; fields[DAY_OF_WEEK] = date.dayOfWeek; if(timeOfDay !== 0) { fields[HOUR_OF_DAY] = toInt(timeOfDay / ONE_HOUR); var r = timeOfDay % ONE_HOUR; fields[MINUTE] = toInt(r / ONE_MINUTE); r %= ONE_MINUTE; fields[SECONDS] = toInt(r / ONE_SECOND); fields[MILLISECONDS] = r % ONE_SECOND }else { fields[HOUR_OF_DAY] = fields[MINUTE] = fields[SECONDS] = fields[MILLISECONDS] = 0 } var fixedDateJan1 = Utils.getFixedDate(year, GregorianCalendar.JANUARY, 1); var dayOfYear = fixedDate - fixedDateJan1 + 1; var fixDateMonth1 = fixedDate - date.dayOfMonth + 1; fields[DAY_OF_YEAR] = dayOfYear; fields[DAY_OF_WEEK_IN_MONTH] = toInt((date.dayOfMonth - 1) / 7) + 1; var weekOfYear = getWeekNumber(this, fixedDateJan1, fixedDate); if(weekOfYear === 0) { var fixedDec31 = fixedDateJan1 - 1; var prevJan1 = fixedDateJan1 - getYearLength(year - 1); weekOfYear = getWeekNumber(this, prevJan1, fixedDec31) }else { if(weekOfYear >= 52) { var nextJan1 = fixedDateJan1 + getYearLength(year); var nextJan1st = getDayOfWeekDateOnOrBefore(nextJan1 + 6, this.firstDayOfWeek); var nDays = nextJan1st - nextJan1; if(nDays >= this.minimalDaysInFirstWeek && fixedDate >= nextJan1st - 7) { weekOfYear = 1 } } } fields[WEEK_OF_YEAR] = weekOfYear; fields[WEEK_OF_MONTH] = getWeekNumber(this, fixDateMonth1, fixedDate); this.fieldsComputed = true }, computeTime:function() { if(!this.isSet(YEAR)) { throw new Error("year must be set for KISSY GregorianCalendar"); } var fields = this.fields; var year = fields[YEAR]; var timeOfDay = 0; if(this.isSet(HOUR_OF_DAY)) { timeOfDay += fields[HOUR_OF_DAY] } timeOfDay *= 60; timeOfDay += fields[MINUTE] || 0; timeOfDay *= 60; timeOfDay += fields[SECONDS] || 0; timeOfDay *= 1E3; timeOfDay += fields[MILLISECONDS] || 0; var fixedDate = 0; fields[YEAR] = year; fixedDate = fixedDate + this.getFixedDate(); var millis = (fixedDate - EPOCH_OFFSET) * ONE_DAY + timeOfDay; millis -= this.timezoneOffset * ONE_MINUTE; this.time = millis; this.computeFields() }, complete:function() { if(this.time === undefined) { this.computeTime() } if(!this.fieldsComputed) { this.computeFields() } }, getFixedDate:function() { var self = this; var fields = self.fields; var firstDayOfWeekCfg = self.firstDayOfWeek; var year = fields[YEAR]; var month = GregorianCalendar.JANUARY; if(self.isSet(MONTH)) { month = fields[MONTH]; if(month > GregorianCalendar.DECEMBER) { year += toInt(month / 12); month %= 12 }else { if(month < GregorianCalendar.JANUARY) { year += floorDivide(month / 12); month = mod(month, 12) } } } var fixedDate = Utils.getFixedDate(year, month, 1); var firstDayOfWeek; var dayOfWeek = self.firstDayOfWeek; if(self.isSet(DAY_OF_WEEK)) { dayOfWeek = fields[DAY_OF_WEEK] } if(self.isSet(MONTH)) { if(self.isSet(DAY_OF_MONTH)) { fixedDate += fields[DAY_OF_MONTH] - 1 }else { if(self.isSet(WEEK_OF_MONTH)) { firstDayOfWeek = getDayOfWeekDateOnOrBefore(fixedDate + 6, firstDayOfWeekCfg); if(firstDayOfWeek - fixedDate >= self.minimalDaysInFirstWeek) { firstDayOfWeek -= 7 } if(dayOfWeek !== firstDayOfWeekCfg) { firstDayOfWeek = getDayOfWeekDateOnOrBefore(firstDayOfWeek + 6, dayOfWeek) } fixedDate = firstDayOfWeek + 7 * (fields[WEEK_OF_MONTH] - 1) }else { var dowim; if(self.isSet(DAY_OF_WEEK_IN_MONTH)) { dowim = fields[DAY_OF_WEEK_IN_MONTH] }else { dowim = 1 } var lastDate = 7 * dowim; if(dowim < 0) { lastDate = getMonthLength(year, month) + 7 * (dowim + 1) } fixedDate = getDayOfWeekDateOnOrBefore(fixedDate + lastDate - 1, dayOfWeek) } } }else { if(self.isSet(DAY_OF_YEAR)) { fixedDate += fields[DAY_OF_YEAR] - 1 }else { firstDayOfWeek = getDayOfWeekDateOnOrBefore(fixedDate + 6, firstDayOfWeekCfg); if(firstDayOfWeek - fixedDate >= self.minimalDaysInFirstWeek) { firstDayOfWeek -= 7 } if(dayOfWeek !== firstDayOfWeekCfg) { firstDayOfWeek = getDayOfWeekDateOnOrBefore(firstDayOfWeek + 6, dayOfWeek) } fixedDate = firstDayOfWeek + 7 * (fields[WEEK_OF_YEAR] - 1) } } return fixedDate }, getTime:function() { if(this.time === undefined) { this.computeTime() } return this.time }, setTime:function(time) { this.time = time; this.fieldsComputed = false; this.complete() }, get:function(field) { this.complete(); return this.fields[field] }, set:function(field, v) { var len = arguments.length; if(len === 2) { this.fields[field] = v }else { if(len < MILLISECONDS + 1) { for(var i = 0;i < len;i++) { this.fields[YEAR + i] = arguments[i] } }else { throw new Error("illegal arguments for KISSY GregorianCalendar set"); } } this.time = undefined }, add:function(field, amount) { if(!amount) { return } var self = this; var fields = self.fields; var value = self.get(field); if(field === YEAR) { value += amount; self.set(YEAR, value); adjustDayOfMonth(self) }else { if(field === MONTH) { value += amount; var yearAmount = floorDivide(value / 12); value = mod(value, 12); if(yearAmount) { self.set(YEAR, fields[YEAR] + yearAmount) } self.set(MONTH, value); adjustDayOfMonth(self) }else { switch(field) { case HOUR_OF_DAY: amount *= ONE_HOUR; break; case MINUTE: amount *= ONE_MINUTE; break; case SECONDS: amount *= ONE_SECOND; break; case MILLISECONDS: break; case WEEK_OF_MONTH: ; case WEEK_OF_YEAR: ; case DAY_OF_WEEK_IN_MONTH: amount *= ONE_WEEK; break; case DAY_OF_WEEK: ; case DAY_OF_YEAR: ; case DAY_OF_MONTH: amount *= ONE_DAY; break; default: throw new Error("illegal field for add"); } self.setTime(self.time + amount) } } }, getRolledValue:function(value, amount, min, max) { var diff = value - min; var range = max - min + 1; amount %= range; return min + (diff + amount + range) % range }, roll:function(field, amount) { if(!amount) { return } var self = this; var value = self.get(field); var min = self.getActualMinimum(field); var max = self.getActualMaximum(field); value = self.getRolledValue(value, amount, min, max); self.set(field, value); switch(field) { case MONTH: adjustDayOfMonth(self); break; default: self.updateFieldsBySet(field); break } }, updateFieldsBySet:function(field) { var fields = this.fields; switch(field) { case WEEK_OF_MONTH: fields[DAY_OF_MONTH] = undefined; break; case DAY_OF_YEAR: fields[MONTH] = undefined; break; case DAY_OF_WEEK: fields[DAY_OF_MONTH] = undefined; break; case WEEK_OF_YEAR: fields[DAY_OF_YEAR] = undefined; fields[MONTH] = undefined; break } }, getTimezoneOffset:function() { return this.timezoneOffset }, setTimezoneOffset:function(timezoneOffset) { if(this.timezoneOffset !== timezoneOffset) { this.fieldsComputed = undefined; this.timezoneOffset = timezoneOffset } }, setFirstDayOfWeek:function(firstDayOfWeek) { if(this.firstDayOfWeek !== firstDayOfWeek) { this.firstDayOfWeek = firstDayOfWeek; this.fieldsComputed = false } }, getFirstDayOfWeek:function() { return this.firstDayOfWeek }, setMinimalDaysInFirstWeek:function(minimalDaysInFirstWeek) { if(this.minimalDaysInFirstWeek !== minimalDaysInFirstWeek) { this.minimalDaysInFirstWeek = minimalDaysInFirstWeek; this.fieldsComputed = false } }, getMinimalDaysInFirstWeek:function() { return this.minimalDaysInFirstWeek }, getWeeksInWeekYear:function() { var weekYear = this.getWeekYear(); if(weekYear === this.get(YEAR)) { return this.getActualMaximum(WEEK_OF_YEAR) } var gc = this.clone(); gc.setWeekDate(weekYear, 2, this.get(DAY_OF_WEEK)); return gc.getActualMaximum(WEEK_OF_YEAR) }, getWeekYear:function() { var year = this.get(YEAR); var weekOfYear = this.get(WEEK_OF_YEAR); var month = this.get(MONTH); if(month === GregorianCalendar.JANUARY) { if(weekOfYear >= 52) { --year } }else { if(month === GregorianCalendar.DECEMBER) { if(weekOfYear === 1) { ++year } } } return year }, setWeekDate:function(weekYear, weekOfYear, dayOfWeek) { if(dayOfWeek < GregorianCalendar.SUNDAY || dayOfWeek > GregorianCalendar.SATURDAY) { throw new Error("invalid dayOfWeek: " + dayOfWeek); } var fields = this.fields; var gc = this.clone(); gc.clear(); gc.setTimezoneOffset(0); gc.set(YEAR, weekYear); gc.set(WEEK_OF_YEAR, 1); gc.set(DAY_OF_WEEK, this.getFirstDayOfWeek()); var days = dayOfWeek - this.getFirstDayOfWeek(); if(days < 0) { days += 7 } days += 7 * (weekOfYear - 1); if(days !== 0) { gc.add(DAY_OF_YEAR, days) }else { gc.complete() } fields[YEAR] = gc.get(YEAR); fields[MONTH] = gc.get(MONTH); fields[DAY_OF_MONTH] = gc.get(DAY_OF_MONTH); this.complete() }, clone:function() { if(this.time === undefined) { this.computeTime() } var cal = new GregorianCalendar(this.timezoneOffset, this.locale); cal.setTime(this.time); return cal }, equals:function(obj) { return this.getTime() === obj.getTime() && this.firstDayOfWeek === obj.firstDayOfWeek && this.timezoneOffset === obj.timezoneOffset && this.minimalDaysInFirstWeek === obj.minimalDaysInFirstWeek }, clear:function(field) { if(field === undefined) { this.field = [] }else { this.fields[field] = undefined } this.time = undefined; this.fieldsComputed = false }}; var GregorianCalendarProto = GregorianCalendar.prototype; if("@DEBUG@") { GregorianCalendarProto.getDayOfMonth = GregorianCalendarProto.getHourOfDay = GregorianCalendarProto.getWeekOfYear = GregorianCalendarProto.getWeekOfMonth = GregorianCalendarProto.getDayOfYear = GregorianCalendarProto.getDayOfWeek = GregorianCalendarProto.getDayOfWeekInMonth = S.noop; GregorianCalendarProto.addDayOfMonth = GregorianCalendarProto.addMonth = GregorianCalendarProto.addYear = GregorianCalendarProto.addMinutes = GregorianCalendarProto.addSeconds = GregorianCalendarProto.addMilliSeconds = GregorianCalendarProto.addHourOfDay = GregorianCalendarProto.addWeekOfYear = GregorianCalendarProto.addWeekOfMonth = GregorianCalendarProto.addDayOfYear = GregorianCalendarProto.addDayOfWeek = GregorianCalendarProto.addDayOfWeekInMonth = S.noop; GregorianCalendarProto.isSetDayOfMonth = GregorianCalendarProto.isSetMonth = GregorianCalendarProto.isSetYear = GregorianCalendarProto.isSetMinutes = GregorianCalendarProto.isSetSeconds = GregorianCalendarProto.isSetMilliSeconds = GregorianCalendarProto.isSetHourOfDay = GregorianCalendarProto.isSetWeekOfYear = GregorianCalendarProto.isSetWeekOfMonth = GregorianCalendarProto.isSetDayOfYear = GregorianCalendarProto.isSetDayOfWeek = GregorianCalendarProto.isSetDayOfWeekInMonth = S.noop; GregorianCalendarProto.setDayOfMonth = GregorianCalendarProto.setHourOfDay = GregorianCalendarProto.setWeekOfYear = GregorianCalendarProto.setWeekOfMonth = GregorianCalendarProto.setDayOfYear = GregorianCalendarProto.setDayOfWeek = GregorianCalendarProto.setDayOfWeekInMonth = S.noop; GregorianCalendarProto.rollDayOfMonth = GregorianCalendarProto.rollMonth = GregorianCalendarProto.rollYear = GregorianCalendarProto.rollMinutes = GregorianCalendarProto.rollSeconds = GregorianCalendarProto.rollMilliSeconds = GregorianCalendarProto.rollHourOfDay = GregorianCalendarProto.rollWeekOfYear = GregorianCalendarProto.rollWeekOfMonth = GregorianCalendarProto.rollDayOfYear = GregorianCalendarProto.rollDayOfWeek = GregorianCalendarProto.rollDayOfWeekInMonth = S.noop } S.each(fields, function(f, index) { if(f) { GregorianCalendarProto["get" + f] = function() { return this.get(index) }; GregorianCalendarProto["isSet" + f] = function() { return this.isSet(index) }; GregorianCalendarProto["set" + f] = function(v) { return this.set(index, v) }; GregorianCalendarProto["add" + f] = function(v) { return this.add(index, v) }; GregorianCalendarProto["roll" + f] = function(v) { return this.roll(index, v) } } }); function adjustDayOfMonth(self) { var fields = self.fields; var year = fields[YEAR]; var month = fields[MONTH]; var monthLen = getMonthLength(year, month); var dayOfMonth = fields[DAY_OF_MONTH]; if(dayOfMonth > monthLen) { self.set(DAY_OF_MONTH, monthLen) } } function getMonthLength(year, month) { return isLeapYear(year) ? LEAP_MONTH_LENGTH[month] : MONTH_LENGTH[month] } function getYearLength(year) { return isLeapYear(year) ? 366 : 365 } function getWeekNumber(self, fixedDay1, fixedDate) { var fixedDay1st = getDayOfWeekDateOnOrBefore(fixedDay1 + 6, self.firstDayOfWeek); var nDays = fixedDay1st - fixedDay1; if(nDays >= self.minimalDaysInFirstWeek) { fixedDay1st -= 7 } var normalizedDayOfPeriod = fixedDate - fixedDay1st; return floorDivide(normalizedDayOfPeriod / 7) + 1 } function getDayOfWeekDateOnOrBefore(fixedDate, dayOfWeek) { return fixedDate - mod(fixedDate - dayOfWeek, 7) } return GregorianCalendar });
(function(module) { var mixtapeView = {}; // Handlebars template call var mixtapeCompiler = Handlebars.compile($('#mixtape-template').text()); // load existing playlist data mixtapeView.loadPlaylist = function(dataPassedIn) { dataPassedIn.forEach(function(ele) { mixtape.mixList.push(ele); }); mixtapeView.renderMixtape(); }; // handle a click on the add button mixtapeView.addButton = function() { $('.add-button').on('click', function() { var songObj = {}; songObj.full_title = $(this).data('song'); mixtape.mixList.push(songObj); }); }; // handle a click on the remove button mixtapeView.minusButton = function() { $('.minus-button').on('click', function() { var $currentSong = $(this).data('song'); for (var i = 0; i < mixtape.mixList.length; i++) { if (mixtape.mixList[i].full_title === $currentSong) { mixtape.mixList.splice(i,1); mixtapeView.renderMixtape(); } } }); }; // handle Save click mixtapeView.saveList = function(event) { event.preventDefault(); var userName = $('#mixtape input').val(); if (userName) { if (mixtape.mixList.length > 0) { var storeKey = userName.toUpperCase() + '_playlist'; // Store the playlist data in localStorage localStorage.setItem(storeKey, JSON.stringify(mixtape.mixList)); mixtapeView.retrieveList(event); // Create a nifty 'Playlist Saved' overlay var overlay = document.createElement('h5'); overlay.id = 'overlay'; $(overlay).hide().appendTo($('main')) .css({'font-size' : '5em', 'text-align' : 'center', 'position' : 'fixed', 'top' : '10%', 'left' : '50%', 'transform' : 'translate(-50%, -50%)' }) .fadeIn(500).text('Playlist Saved!').fadeOut(1000); } else { alert('You don\'t have a playlist to save'); }; } else { alert('Playlists cannot be saved without a name'); } }; // handle Retrieve Playlist click mixtapeView.retrieveList = function(event) { event.preventDefault(); var playlistName = $('#mixtape input').val(); if (playlistName) { var storeKey = playlistName.toUpperCase() + '_playlist'; if (localStorage.getItem(storeKey)) { // clear any prior list first. mixtape.mixList = []; // Our data is already in localStorage, Retrieve it var storedData = JSON.parse(localStorage.getItem(storeKey)); mixtapeView.loadPlaylist(storedData); loadName(playlistName); } else { alert('No playlist by that name found'); }; } else { alert('Playlists cannot be found without a name'); }; }; var loadName = function(theName) { // also set the input name to the equivalent field on the mixtape view. $('#search_section input:first-of-type').val(theName); }; // render the mixtape list mixtapeView.renderMixtape = function() { var $theList = $('#mixtape ul'); $theList.empty(); mixtape.mixList.forEach(function(songItem){ $theList.append(mixtapeCompiler(songItem)); }); mixtapeView.minusButton(); }; // set Event Handlers. $('#retrieve_playlist').on('click', mixtapeView.retrieveList); $('#save_playlist').on('click', mixtapeView.saveList); module.mixtapeView = mixtapeView; })(window);
import InputRow from 'ember-cli-coreweb-ui/components/nav-rows/input'; export default InputRow;
(function() { "use strict"; angular.module('app') .controller('BooksController', ['$q','books', 'dataService', 'logger', 'badgeService', '$cookies', '$cookieStore', '$log', '$route', 'BooksResource', 'currentUser', BooksController]); function BooksController($q, books, dataService, logger, badgeService, $cookies, $cookieStore, $log, $route, BooksResource, currentUser) { var vm = this; vm.appName = books.appName; function getUserSummarySuccess(summaryData){ console.log(summaryData); vm.summaryData = summaryData; } dataService.getUserSummary() .then(getUserSummarySuccess); /* var booksPromise = dataService.getAllBooks(); var readerssPromise = dataService.getAllReaders(); function getAllDataSuccess(dataArray) { vm.allBooks = dataArray[0]; vm.allReaders = dataArray[1]; } function getAllDataError(reason){ console.log(reason); } $q.all([booksPromise, readerssPromise]) .then(getAllDataSuccess) .catch(getAllDataError); */ //vm.allBooks = dataService.getAllBooks(); function errorCallback(message) { console.log('Some Error: ' + message); } function getBooksSuccess(books) { vm.allBooks = books; vm.allBooks.forEach(function (element) { logger.logBook(element); }); } function getBooksError(message) { console.log(message); throw 'error in getBooksError'; } function getBooksNotify(notifyMessafe) { console.log(notifyMessafe); } function getAllBookComplete(){ console.log('Just finished loading books'); } dataService.getAllBooks() .then(getBooksSuccess, getBooksError, getBooksNotify) .catch(errorCallback) .finally(getAllBookComplete); // vm.allBooks = BooksResource.query(); function getReadersSuccess(readers) { vm.allReaders = readers; $log.log('All readers retrieved'); $log.awesome('All readers retrieved'); } function getAllReadersComplete(){ console.log('Just finished loading readers'); } dataService.getAllReaders() .then(getReadersSuccess) .catch(errorCallback) .finally(getAllReadersComplete); function deleteBooksSuccess(message) { $log.info(message); $route.reload(); } function deleteBooksError(errorMessage) { $log.error(errorMessage); } vm.deleteBook = function (bookID) { dataService.deleteBook(bookID) .then(deleteBooksSuccess) .catch(deleteBooksError); }; vm.getBadge = badgeService.retrieveBadge; vm.favoriteBook = $cookies.favoriteBook; //vm.lastEdited = $cookieStore.get('lastEdited'); vm.lastEdited = currentUser.lastBookEdited; $log.log('logging with log'); $log.info('logging with info'); $log.warn('logging with warn'); $log.error('logging with error'); $log.debug('logging with debug'); logger.output('BooksController has been created.'); } }());
/** * Require Browsersync along with webpack and middleware for it */ var browserSync = require('browser-sync'), webpack = require('webpack'), webpackDevMiddleware = require('webpack-dev-middleware'), webpackHotMiddleware = require('webpack-hot-middleware') /** * Require ./webpack.config.js and make a bundler from it */ var webpackConfig = require('./webpack.config'); var bundler = webpack(webpackConfig); /** * Run Browsersync and use middleware for Hot Module Replacement */ browserSync({ server: { baseDir: 'app', middleware: [ webpackDevMiddleware(bundler, { // IMPORTANT: dev middleware can't access config, so we should // provide publicPath by ourselves publicPath: webpackConfig.output.publicPath, // pretty colored output stats: { colors: true } // for other settings see // http://webpack.github.io/docs/webpack-dev-middleware.html }), // bundler should be the same as above webpackHotMiddleware(bundler) ] }, // no need to watch '*.js' here, webpack will take care of it for us, // including full page reloads if HMR won't work files: [ 'app/css/*.css', 'app/*.html' ] })
'use strict'; /** * Module dependencies. */ const raw = require('raw-body'); const inflate = require('inflation'); const utils = require('./utils'); /** * Return a Promise which parses text/plain requests. * * Pass a node request or an object with `.req`, * such as a koa Context. * * @param {Request} req * @param {Options} [opts] * @return {Function} * @api public */ module.exports = async function(req, opts) { req = req.req || req; opts = utils.clone(opts); // defaults const len = req.headers['content-length']; const encoding = req.headers['content-encoding'] || 'identity'; if (len && encoding === 'identity') opts.length = ~~len; opts.encoding = opts.encoding === undefined ? 'utf8' : opts.encoding; opts.limit = opts.limit || '1mb'; const str = await raw(inflate(req), opts); // ensure return the same format with json / form return opts.returnRawBody ? { parsed: str, raw: str } : str; };
'use strict'; /** * @ngdoc function * @name rstFrontendApp.controller:AboutCtrl * @description * # AboutCtrl * Controller of the rstFrontendApp */ angular.module('rstFrontendApp') .controller('AboutCtrl', function () { this.awesomeThings = [ 'HTML5 Boilerplate', 'AngularJS', 'Karma' ]; });
var apiList = { apiVersion: "1.0", swaggerVersion: "1.0", basePath: "http://maps.googleapis.com/maps/api/", apis: [ { path: "/geocode/{format}", description: "Google Maps Geocode API" } ] }; var geocodeApiSpec = { resourcePath: "/geocode", basePath: "http://maps.googleapis.com/maps/api/", apis: [ { swaggerVersion: "1.0", apiVersion: "1.0", path: "geocode/{format}", description: "", operations: [ { parameters: [ { name: "latlng", description: "Latitude & Longitude (lat,lng)", required: true, dataType: "string", paramType: "query" }, { name: "sensor", description: "Sensor", required: true, dataType: "boolean", paramType: "query" } ], summary: "Geocode reverse lookup", httpMethod: "GET", errorResponses: [ { reason: "Internal Error", code: 500 } ], nickname: "geocode", responseClass: "AddressComponents" } ], models: { AddressComponents: { uniqueItems: false, properties: { formatted_address: { uniqueItems: false, type: "string", required: false }, status: { uniqueItems: false, type: "string", required: false } } } } } ] }
/* global module */ module.exports = function(environment) { var ENV = { modulePrefix: 'hnpwa-ember', environment: environment, rootURL: '/', locationType: 'auto', EmberENV: { FEATURES: { // Here you can enable experimental features on an ember canary build // e.g. 'with-controller': true } }, APP: { // Here you can pass flags/options to your application instance // when it is created }, apiUrl: 'https://node-hnapi.herokuapp.com' }; if(environment === 'development') { // ENV.APP.LOG_RESOLVER = true; // ENV.APP.LOG_ACTIVE_GENERATION = true; // ENV.APP.LOG_TRANSITIONS = true; // ENV.APP.LOG_TRANSITIONS_INTERNAL = true; // ENV.APP.LOG_VIEW_LOOKUPS = true; } if(environment === 'test') { // Testem prefers this... ENV.locationType = 'none'; // keep test console output quieter ENV.APP.LOG_ACTIVE_GENERATION = false; ENV.APP.LOG_VIEW_LOOKUPS = false; ENV.APP.rootElement = '#ember-testing'; } if(environment === 'production') { } return ENV; };
var classCSF_1_1Zpt_1_1Tal_1_1ConditionAttributeHandler = [ [ "Handle", "classCSF_1_1Zpt_1_1Tal_1_1ConditionAttributeHandler.html#aec290ee5f186c8463477fc8c67e255a9", null ] ];
const elixir = require('laravel-elixir'); elixir(mix => { mix.sass('app.scss') mix.webpack('app.js') mix.version([ 'css/app.css', 'js/app.js', ]) });
//= Emmeline: Pure and Simple Javascript. //> Tom Harding | thedigitalnatives.co.uk import test from 'tape' import { map } from '../../list' //- Convert to an array. function toArray () { return [... this] } test ('List.Map', t => { function * mapGen () { yield 1 yield 2 yield 3 } t.same ( [] :: map (function () { return 1 }) :: toArray () , [] , 'Empty list' ) t.same ( [1, 3, 5, 7, 9] :: map (function () { return this - 1 }) :: toArray () , [0, 2, 4, 6, 8] , 'General use' ) t.same ( mapGen () :: map (function () { return this + 2 }) :: toArray () , [3, 4, 5] , 'Generators' ) t.end () })
import * as React from 'react'; import PropTypes from 'prop-types'; import { makeStyles } from '@material-ui/core/styles'; import Grid from '@material-ui/core/Grid'; import Typography from '@material-ui/core/Typography'; import Divider from '@material-ui/core/Divider'; import Markdown from './Markdown'; const useStyles = makeStyles((theme) => ({ markdown: { ...theme.typography.body2, padding: theme.spacing(3, 0), }, })); function Main(props) { const classes = useStyles(); const { posts, title } = props; return ( <Grid item xs={12} md={8}> <Typography variant="h6" gutterBottom> {title} </Typography> <Divider /> {posts.map((post) => ( <Markdown className={classes.markdown} key={post.substring(0, 40)}> {post} </Markdown> ))} </Grid> ); } Main.propTypes = { posts: PropTypes.arrayOf(PropTypes.string).isRequired, title: PropTypes.string.isRequired, }; export default Main;
'use strict'; var linspace = require( 'compute-linspace' ); var gammaln = require( './../lib' ); var x = linspace( -10, 10, 100 ); var v; var i; for ( i = 0; i < x.length; i++ ) { v = gammaln( x[ i ] ); console.log( 'x: %d, f(x): %d', x[ i ], v ); }
/* Write a function that extracts the content of a html page given as text. The function should return anything that is in a tag, without the tags. */ (function () { function transformText(text, how) { switch (how) { case 'u': return text.toUpperCase(); case 'l': return text.toLowerCase(); case 'm': return text.toMixedCase(); default: return text; } } function parseTag(text, i) { var resultObj, textStartIndex, resultStr = '', code, textToTransform; while (text[i] === '<' && text[i + 1] !== '/') { i += 1; code = text[i]; while (text[i] !== '>') { i += 1; } i += 1; textStartIndex = i; while (text[i] !== '<') { i += 1; } // nested tag if (text[i + 1] !== '/') { if (i - textStartIndex) { resultStr += transformText(text.substring(textStartIndex, i), code); } resultObj = parseTag(text, i); resultStr += resultObj.string; i = resultObj.i + 1; textStartIndex = i; while (text[i] !== '<') { i += 1; } } if (text[i + 1] === '/') { // close tag textToTransform = text.substring(textStartIndex, i); // end tag resultStr += transformText(textToTransform, code); while (text[i] !== '>') { i += 1; } } } return { string: resultStr, i: i }; } function parseText(text) { var i, len, normalText = 0, resultStr = '', resultObj; for (i = 0, len = text.length; i < len;) { if (text[i] === '<' && text[i + 1] !== '/') { // tag if (i - normalText > 0) { resultStr += text.substring(normalText, i); } resultObj = parseTag(text, i); resultStr += resultObj.string; i = resultObj.i; normalText = i; } else { i += 1; } } if (i - normalText > 0) { resultStr += text.substr(i); } return resultStr; } var text = '<html><head><title>Sample site</title></head> <body> <div>text<div>more text</div>and more...</div>in body</body></html>'; console.log(parseText(text)); })();
function solve(args) { args[0] = Math.floor(args[0] / 10); args[0] = Math.floor(args[0] / 10); var digit = args[0] % 10; if (digit === 7) { console.log('true'); } else { console.log('false ' + digit); } }
// http://eslint.org/docs/user-guide/configuring module.exports = { root: true, parserOptions: { parser: 'babel-eslint', sourceType: 'module' }, env: { browser: true, }, extends: [ // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style 'standard', // required to lint *.vue files 'plugin:vue/essential' ], plugins: [ 'vue' ], // add your custom rules here 'rules': { // allow paren-less arrow functions 'arrow-parens': 0, // allow async-await 'generator-star-spacing': 0, "semi": ["error", "always"], 'space-before-function-paren': 0, 'no-useless-return': 0, 'indent': 0 } }
var basicEvents = require('nodeunit').testCase; var lib = '../../lib/eventemitter2'; var EventEmitter2; if(typeof require !== 'undefined') { EventEmitter2 = require(lib).EventEmitter2; } else { EventEmitter2 = window.EventEmitter2; } function setHelper (emitter, test, testName){ var eventNames = [ testName, testName + '.*', testName + '.ns1', testName + '.ns1.ns2', testName + '.ns2.*', testName + '.**', testName = '.ns2.**' ]; for (var i = 0; i < eventNames.length; i++) { emitter.on(eventNames[i], function () { test.ok(true, eventNames[i] + 'has fired'); }); } return eventNames; } module.exports = basicEvents({ 'intialize 1. Configuration Flags Test.': function (test) { var emitter = new EventEmitter2({ wildcard: true, verbose: true }); var emitterDefault = new EventEmitter2({ }); test.ok(!emitterDefault.wildcard, 'default .wildcard should be false'); test.ok(emitter.wildcard, '.wildcard should be true when set'); test.expect(2); test.done(); }, 'initialize 2. creating a wildcard EE should have listenerTree.': function (test) { var emitter = new EventEmitter2({ wildcard: true, verbose: true }); var emitterDefault = new EventEmitter2({ }); test.ok(emitter.listenerTree, 'listenerTree should exist'); test.equal(typeof emitter.listenerTree, 'object', 'listenerTree should be an Object'); test.ok(!emitterDefault.listenerTree, 'listenerTree should not exist'); // check the tree to be empty? test.expect(3); test.done(); }, });
/* eslint-disable no-unused-expressions */ import { expect } from 'chai'; function common (app, errors, serviceName = 'people', idProp = 'id') { describe(`Common tests, ${serviceName} service with` + ` '${idProp}' id property`, () => { const _ids = {}; beforeEach(() => app.service(serviceName).create({ name: 'Doug', age: 32 }).then(data => (_ids.Doug = data[idProp])) ); afterEach(() => app.service(serviceName).remove(_ids.Doug).catch(() => {}) ); it('sets `id` property on the service', () => expect(app.service(serviceName).id).to.equal(idProp) ); it('sets `events` property from options', () => expect(app.service(serviceName).events.indexOf('testing')) .to.not.equal(-1) ); describe('extend', () => { it('extends and uses extended method', () => { let now = new Date().getTime(); let extended = app.service(serviceName).extend({ create (data) { data.time = now; return this._super.apply(this, arguments); } }); return extended.create({ name: 'Dave' }) .then(data => extended.remove(data[idProp])) .then(data => expect(data.time).to.equal(now)); }); }); describe('get', () => { it('returns an instance that exists', () => { return app.service(serviceName).get(_ids.Doug).then(data => { expect(data[idProp].toString()).to.equal(_ids.Doug.toString()); expect(data.name).to.equal('Doug'); expect(data.age).to.equal(32); }); }); it('supports $select', () => { return app.service(serviceName).get(_ids.Doug, { query: { $select: [ 'name' ] } }).then(data => { expect(data[idProp].toString()).to.equal(_ids.Doug.toString()); expect(data.name).to.equal('Doug'); expect(data.age).to.not.exist; }); }); it('returns NotFound error for non-existing id', () => { return app.service(serviceName).get('568225fbfe21222432e836ff') .catch(error => { expect(error instanceof errors.NotFound).to.be.ok; expect(error.message).to.equal('No record found for id \'568225fbfe21222432e836ff\''); }); }); }); describe('remove', () => { it('deletes an existing instance and returns the deleted instance', () => { return app.service(serviceName).remove(_ids.Doug).then(data => { expect(data).to.be.ok; expect(data.name).to.equal('Doug'); }); }); it('deletes an existing instance supports $select', () => { return app.service(serviceName).remove(_ids.Doug, { query: { $select: [ 'name' ] } }).then(data => { expect(data).to.be.ok; expect(data.name).to.equal('Doug'); expect(data.age).to.not.exist; }); }); it('deletes multiple instances', () => { return app.service(serviceName).create({ name: 'Dave', age: 29, created: true }) .then(() => app.service(serviceName).create({ name: 'David', age: 3, created: true })) .then(() => app.service(serviceName).remove(null, { query: { created: true } })) .then(data => { expect(data.length).to.equal(2); let names = data.map(person => person.name); expect(names.indexOf('Dave')).to.be.above(-1); expect(names.indexOf('David')).to.be.above(-1); }); }); }); describe('find', () => { beforeEach(() => { return app.service(serviceName).create({ name: 'Bob', age: 25 }).then(bob => { _ids.Bob = bob[idProp].toString(); return app.service(serviceName).create({ name: 'Alice', age: 19 }); }).then(alice => (_ids.Alice = alice[idProp].toString())); }); afterEach(() => app.service(serviceName) .remove(_ids.Bob) .then(() => app.service(serviceName) .remove(_ids.Alice)) ); it('returns all items', () => { return app.service(serviceName).find().then(data => { expect(data).to.be.instanceof(Array); expect(data.length).to.equal(3); }); }); it('filters results by a single parameter', () => { const params = { query: { name: 'Alice' } }; return app.service(serviceName).find(params).then(data => { expect(data).to.be.instanceof(Array); expect(data.length).to.equal(1); expect(data[0].name).to.equal('Alice'); }); }); it('filters results by multiple parameters', () => { const params = { query: { name: 'Alice', age: 19 } }; return app.service(serviceName).find(params).then(data => { expect(data).to.be.instanceof(Array); expect(data.length).to.equal(1); expect(data[0].name).to.equal('Alice'); }); }); describe('special filters', () => { it('can $sort', () => { const params = { query: { $sort: {name: 1} } }; return app.service(serviceName).find(params).then(data => { expect(data.length).to.equal(3); expect(data[0].name).to.equal('Alice'); expect(data[1].name).to.equal('Bob'); expect(data[2].name).to.equal('Doug'); }); }); it('can $sort with strings', () => { const params = { query: { $sort: { name: '1' } } }; return app.service(serviceName).find(params).then(data => { expect(data.length).to.equal(3); expect(data[0].name).to.equal('Alice'); expect(data[1].name).to.equal('Bob'); expect(data[2].name).to.equal('Doug'); }); }); it('can $limit', () => { const params = { query: { $limit: 2 } }; return app.service(serviceName).find(params) .then(data => expect(data.length).to.equal(2)); }); it('can $limit 0', () => { const params = { query: { $limit: 0 } }; return app.service(serviceName).find(params) .then(data => expect(data.length).to.equal(0)); }); it('can $skip', () => { const params = { query: { $sort: {name: 1}, $skip: 1 } }; return app.service(serviceName).find(params).then(data => { expect(data.length).to.equal(2); expect(data[0].name).to.equal('Bob'); expect(data[1].name).to.equal('Doug'); }); }); it('can $select', () => { const params = { query: { name: 'Alice', $select: ['name'] } }; return app.service(serviceName).find(params).then(data => { expect(data.length).to.equal(1); expect(data[0].name).to.equal('Alice'); expect(data[0].age).to.be.undefined; }); }); it('can $or', () => { const params = { query: { $or: [ { name: 'Alice' }, { name: 'Bob' } ], $sort: {name: 1} } }; return app.service(serviceName).find(params).then(data => { expect(data).to.be.instanceof(Array); expect(data.length).to.equal(2); expect(data[0].name).to.equal('Alice'); expect(data[1].name).to.equal('Bob'); }); }); it.skip('can $not', () => { var params = { query: { age: { $not: 19 }, name: { $not: 'Doug' } } }; return app.service(serviceName).find(params).then(data => { expect(data).to.be.instanceof(Array); expect(data.length).to.equal(1); expect(data[0].name).to.equal('Bob'); }); }); it('can $in', () => { const params = { query: { name: { $in: ['Alice', 'Bob'] }, $sort: {name: 1} } }; return app.service(serviceName).find(params).then(data => { expect(data).to.be.instanceof(Array); expect(data.length).to.equal(2); expect(data[0].name).to.equal('Alice'); expect(data[1].name).to.equal('Bob'); }); }); it('can $nin', () => { const params = { query: { name: { $nin: ['Alice', 'Bob'] } } }; return app.service(serviceName).find(params).then(data => { expect(data).to.be.instanceof(Array); expect(data.length).to.equal(1); expect(data[0].name).to.equal('Doug'); }); }); it('can $lt', () => { const params = { query: { age: { $lt: 30 } } }; return app.service(serviceName).find(params).then(data => { expect(data).to.be.instanceof(Array); expect(data.length).to.equal(2); }); }); it('can $lte', () => { const params = { query: { age: { $lte: 25 } } }; return app.service(serviceName).find(params).then(data => { expect(data).to.be.instanceof(Array); expect(data.length).to.equal(2); }); }); it('can $gt', () => { const params = { query: { age: { $gt: 30 } } }; return app.service(serviceName).find(params).then(data => { expect(data).to.be.instanceof(Array); expect(data.length).to.equal(1); }); }); it('can $gte', () => { const params = { query: { age: { $gte: 25 } } }; return app.service(serviceName).find(params).then(data => { expect(data).to.be.instanceof(Array); expect(data.length).to.equal(2); }); }); it('can $ne', () => { const params = { query: { age: { $ne: 25 } } }; return app.service(serviceName).find(params).then(data => { expect(data).to.be.instanceof(Array); expect(data.length).to.equal(2); }); }); }); it('can $gt and $lt and $sort', () => { const params = { query: { age: { $gt: 18, $lt: 30 }, $sort: { name: 1 } } }; return app.service(serviceName).find(params).then(data => { expect(data.length).to.equal(2); expect(data[0].name).to.equal('Alice'); expect(data[1].name).to.equal('Bob'); }); }); it('can handle nested $or queries and $sort', () => { const params = { query: { $or: [ { name: 'Doug' }, { age: { $gte: 18, $lt: 25 } } ], $sort: { name: 1 } } }; return app.service(serviceName).find(params).then(data => { expect(data.length).to.equal(2); expect(data[0].name).to.equal('Alice'); expect(data[1].name).to.equal('Doug'); }); }); describe('paginate', function () { beforeEach(() => (app.service(serviceName).paginate = { default: 1, max: 2 }) ); afterEach(() => (app.service(serviceName).paginate = {})); it('returns paginated object, paginates by default and shows total', () => { return app.service(serviceName) .find({ query: { $sort: { name: -1 } } }) .then(paginator => { expect(paginator.total).to.equal(3); expect(paginator.limit).to.equal(1); expect(paginator.skip).to.equal(0); expect(paginator.data[0].name).to.equal('Doug'); }); }); it('paginates max and skips', () => { const params = { query: { $skip: 1, $limit: 4, $sort: { name: -1 } } }; return app.service(serviceName).find(params).then(paginator => { expect(paginator.total).to.equal(3); expect(paginator.limit).to.equal(2); expect(paginator.skip).to.equal(1); expect(paginator.data[0].name).to.equal('Bob'); expect(paginator.data[1].name).to.equal('Alice'); }); }); it('$limit 0 with pagination', () => { return app.service(serviceName).find({ query: { $limit: 0 } }) .then(paginator => expect(paginator.data.length).to.equal(0)); }); it('allows to override paginate in params', () => { return app.service(serviceName) .find({ paginate: { default: 2 } }) .then(paginator => { expect(paginator.limit).to.equal(2); expect(paginator.skip).to.equal(0); return app.service(serviceName) .find({ paginate: false }) .then(results => expect(results.length).to.equal(3)); }); }); }); }); describe('update', () => { it('replaces an existing instance, does not modify original data', () => { const originalData = { [idProp]: _ids.Doug, name: 'Dougler' }; const originalCopy = Object.assign({}, originalData); return app.service(serviceName).update(_ids.Doug, originalData) .then(data => { expect(originalData).to.deep.equal(originalCopy); expect(data[idProp].toString()).to.equal(_ids.Doug.toString()); expect(data.name).to.equal('Dougler'); expect(!data.age).to.be.ok; }); }); it('replaces an existing instance, supports $select', () => { const originalData = { [idProp]: _ids.Doug, name: 'Dougler', age: 10 }; return app.service(serviceName).update(_ids.Doug, originalData, { query: { $select: [ 'name' ] } }).then(data => { expect(data.name).to.equal('Dougler'); expect(data.age).to.not.exist; }); }); it('returns NotFound error for non-existing id', () => { return app.service(serviceName) .update('568225fbfe21222432e836ff', { name: 'NotFound' }) .catch(error => { expect(error).to.be.ok; expect(error instanceof errors.NotFound).to.be.ok; expect(error.message).to.equal('No record found for id \'568225fbfe21222432e836ff\''); }); }); }); describe('patch', () => { it('updates an existing instance, does not modify original data', () => { const originalData = { [idProp]: _ids.Doug, name: 'PatchDoug' }; const originalCopy = Object.assign({}, originalData); return app.service(serviceName).patch(_ids.Doug, originalData) .then(data => { expect(originalData).to.deep.equal(originalCopy); expect(data[idProp].toString()).to.equal(_ids.Doug.toString()); expect(data.name).to.equal('PatchDoug'); expect(data.age).to.equal(32); }); }); it('updates an existing instance, supports $select', () => { const originalData = { [idProp]: _ids.Doug, name: 'PatchDoug' }; return app.service(serviceName).patch(_ids.Doug, originalData, { query: { $select: [ 'name' ] } }).then(data => { expect(data.name).to.equal('PatchDoug'); expect(data.age).to.not.exist; }); }); it('patches multiple instances', () => { const service = app.service(serviceName); const params = { query: { created: true } }; return service.create({ name: 'Dave', age: 29, created: true }).then(() => service.create({ name: 'David', age: 3, created: true }) ).then(() => service.patch(null, { age: 2 }, params )).then(data => { expect(data.length).to.equal(2); expect(data[0].age).to.equal(2); expect(data[1].age).to.equal(2); }).then(() => service.remove(null, params)); }); it('patches multiple instances and returns the actually changed items', () => { const service = app.service(serviceName); const params = { query: { age: { $lt: 10 } } }; return service.create({ name: 'Dave', age: 8, created: true }).then(() => service.create({ name: 'David', age: 4, created: true }) ).then(() => service.patch(null, { age: 2 }, params )).then(data => { expect(data.length).to.equal(2); expect(data[0].age).to.equal(2); expect(data[1].age).to.equal(2); }).then(() => service.remove(null, params)); }); it('patches multiple, returns correct items', () => { const service = app.service(serviceName); return service.create([{ name: 'Dave', age: 2, created: true }, { name: 'David', age: 2, created: true }, { name: 'D', age: 8, created: true } ]).then(() => service.patch(null, { age: 8 }, { query: { age: 2 } } )).then(data => { expect(data.length).to.equal(2); expect(data[0].age).to.equal(8); expect(data[1].age).to.equal(8); }).then(() => service.remove(null, { query: { age: 8 } })); }); it('returns NotFound error for non-existing id', () => { return app.service(serviceName) .patch('568225fbfe21222432e836ff', { name: 'PatchDoug' }) .then(() => { throw new Error('Should never get here'); }) .catch(error => { expect(error).to.be.ok; expect(error instanceof errors.NotFound).to.be.ok; expect(error.message).to.equal('No record found for id \'568225fbfe21222432e836ff\''); }); }); }); describe('create', () => { it('creates a single new instance and returns the created instance', () => { const originalData = { name: 'Bill', age: 40 }; const originalCopy = Object.assign({}, originalData); return app.service(serviceName).create(originalData).then(data => { expect(originalData).to.deep.equal(originalCopy); expect(data).to.be.instanceof(Object); expect(data).to.not.be.empty; expect(data.name).to.equal('Bill'); }); }); it('creates a single new instance, supports $select', () => { const originalData = { name: 'William', age: 23 }; return app.service(serviceName).create(originalData, { query: { $select: [ 'name' ] } }).then(data => { expect(data.name).to.equal('William'); expect(data.age).to.not.exist; }); }); it('creates multiple new instances', () => { const items = [ { name: 'Gerald', age: 18 }, { name: 'Herald', age: 18 } ]; return app.service(serviceName).create(items).then(data => { expect(data).to.not.be.empty; expect(Array.isArray(data)).to.equal(true); expect(typeof data[0][idProp]).to.not.equal('undefined'); expect(data[0].name).to.equal('Gerald'); expect(typeof data[1][idProp]).to.not.equal('undefined'); expect(data[1].name).to.equal('Herald'); }); }); }); describe('Services don\'t call public methods internally', () => { let throwing; before(() => { throwing = app.service(serviceName).extend({ get store () { return app.service(serviceName).store; }, find () { throw new Error('find method called'); }, get () { throw new Error('get method called'); }, create () { throw new Error('create method called'); }, update () { throw new Error('update method called'); }, patch () { throw new Error('patch method called'); }, remove () { throw new Error('remove method called'); } }); }); it('find', () => app.service(serviceName).find.call(throwing)); it('get', () => app.service(serviceName).get.call(throwing, _ids.Doug) ); it('create', () => app.service(serviceName) .create.call(throwing, { name: 'Bob', age: 25 }) ); it('update', () => app.service(serviceName).update.call(throwing, _ids.Doug, { name: 'Dougler' }) ); it('patch', () => app.service(serviceName).patch.call(throwing, _ids.Doug, { name: 'PatchDoug' }) ); it('remove', () => app.service(serviceName).remove.call(throwing, _ids.Doug) ); }); }); } export default common;
/* ------------------------------------------------------------------------ plugin-name:jQuery Paper Slider Developped By: ZHAO Xudong, zxdong@gmail.com -> http://html5beta.com/jquery-2/jquery-paper-slider/ Version: 1.0.6 License: MIT ------------------------------------------------------------------------ */ (function($){ function PS(opts, ob) { var defaults = { speed: 500 ,timer: 4000 ,autoSlider: true ,hasNav: true ,pauseOnHover: true ,navLeftTxt: '&lt;' ,navRightTxt: '&gt;' ,zIndex:20 ,ease: 'linear' ,beforeAction: null ,afterAction: null } ,th = this ,defs = th.defs = $.extend(defaults, opts) ,cssSet = { position:'absolute' ,left:0 ,right:0 ,width:'100%' ,height:'100%' ,'z-index': defs.zIndex } th.t = ob.show().wrapInner('<div class="paper-slides" />') th.p = th.t.children().css(cssSet) th.ps = th.p.children().addClass('paper-slide').css(cssSet) th.len = th.ps.length th.flag = null th.pause = false th.onAction = false th.currentPage = 0 //init z-index th.ps.eq(0).css('z-index', defs.zIndex + 1).end().filter(':odd').addClass('ps-odd') //auto start if(th.defs.autoSlider) { th.flag = setTimeout(function() { th.autoroll() }, defs.timer) } //OnHover th.t.hover(function() { $(this).addClass('ps-hover') if(defs.pauseOnHover) th.pause = true },function() { $(this).removeClass('ps-hover') if(defs.pauseOnHover) th.pause = false }) //paper link th.t.on('click', '.ps-link', function() { if(th.onAction) return th.onAction = true var i1 = parseInt($(this).data('ps-page')) ,i2 = (i1 + th.len) % th.len ,isNext = i1 > th.currentPage if(i2 === th.currentPage) return th.action(isNext, i2) }) //navs if(defs.hasNav) { th.t.append('<a href="javascript:;" class="ps-nav ps-nav-prev">' + defs.navLeftTxt + '</a><a href="javascript:;" class="ps-nav ps-nav-next">' + defs.navRightTxt + '</a>') .children('.ps-nav').css('z-index', defs.zIndex + 10 + th.len) th.t.on('click', '.ps-nav', function() { if(th.onAction) return th.onAction = true var isNext = $(this).hasClass('ps-nav-next') ,len = th.len ,i = isNext? (th.currentPage + 1 + len) % len : (th.currentPage - 1 + len) % len th.action(isNext, i) }) } } PS.prototype = { action: function(isNext,index) { var th = this ,defs = th.defs ,speed = defs.speed ,c = th.currentPage ,ps = th.ps ,step = isNext?50 : -50 ,cp = ps.eq(c) ,ip = ps.eq(index) cp.css({ 'z-index': defs.zIndex + 2 }).addClass('ps-on').show() ip.css({ 'z-index': defs.zIndex + 1 }).addClass('ps-on').show() ps.filter(function() { return !$(this).hasClass('ps-on') }).css('z-index', defs.zIndex) $.isFunction(th.defs.beforeAction) && th.defs.beforeAction.call(th) cp.animate({ left: -step + '%' }, speed, defs.ease, function() { cp.css('z-index', defs.zIndex + 1).animate({ left:0 },speed) }); ip.animate({ left:step }, speed, defs.ease, function() { cp.removeClass('ps-on') ip.css('z-index', defs.zIndex + 2).removeClass('ps-on').animate({ left:0 }, speed) th.currentPage = index th.onAction = false $.isFunction(th.defs.afterAction) && th.defs.afterAction.call(th) if(defs.autoSlider) { clearTimeout(th.flag) th.flag = setTimeout(function() { th.autoroll() }, defs.timer) } }) } ,autoroll: function() { var t = this if(!t.onAction && !t.pause) { t.onAction = true var i = (t.currentPage + 1 + t.len) % t.len if(!t.pause) t.action(true,i) } else { clearTimeout(t.flag) t.flag = setTimeout(function() { t.autoroll() }, t.defs.timer) } } ,destroy: function() { var t = this clearTimeout(t.flag) t.ps.unwrap() t.t.off( 'click', '**' ).removeAttr('style').children('.ps-nav').remove() t.t.children('.paper-slide').removeAttr('style').removeClass('paper-slide') $.each( t, function( key, value ) { delete t[key] }) } } //jquery plugin $.fn.paperSlider = function(opts) { return new PS(opts, this) } })(jQuery)
/** * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.dialog.add( 'anchor', function( editor ) { // Function called in onShow to load selected element. var loadElements = function( element ) { this._.selectedElement = element; var attributeValue = element.data( 'cke-saved-name' ); this.setValueOf( 'info', 'txtName', attributeValue || '' ); }; function createFakeAnchor( editor, attributes ) { return editor.createFakeElement( editor.document.createElement( 'a', { attributes: attributes } ), 'cke_anchor', 'anchor' ); } function getSelectedAnchor( selection ) { var range = selection.getRanges()[ 0 ], element = selection.getSelectedElement(); // In case of table cell selection, we want to shrink selection from td to a element. range.shrink( CKEDITOR.SHRINK_ELEMENT ); element = range.getEnclosedNode(); if ( element && element.type === CKEDITOR.NODE_ELEMENT && ( element.data( 'cke-real-element-type' ) === 'anchor' || element.is( 'a' ) ) ) { return element; } } return { title: editor.lang.link.anchor.title, minWidth: 300, minHeight: 60, onOk: function() { var name = CKEDITOR.tools.trim( this.getValueOf( 'info', 'txtName' ) ); var attributes = { id: name, name: name, 'data-cke-saved-name': name }; if ( this._.selectedElement ) { if ( this._.selectedElement.data( 'cke-realelement' ) ) { var newFake = createFakeAnchor( editor, attributes ); newFake.replace( this._.selectedElement ); // Selecting fake element for IE. (https://dev.ckeditor.com/ticket/11377) if ( CKEDITOR.env.ie ) { editor.getSelection().selectElement( newFake ); } } else { this._.selectedElement.setAttributes( attributes ); } } else { var sel = editor.getSelection(), range = sel && sel.getRanges()[ 0 ]; // Empty anchor if ( range.collapsed ) { var anchor = createFakeAnchor( editor, attributes ); range.insertNode( anchor ); } else { if ( CKEDITOR.env.ie && CKEDITOR.env.version < 9 ) attributes[ 'class' ] = 'cke_anchor'; // Apply style. var style = new CKEDITOR.style( { element: 'a', attributes: attributes } ); style.type = CKEDITOR.STYLE_INLINE; style.applyToRange( range ); } } }, onHide: function() { delete this._.selectedElement; }, onShow: function() { var sel = editor.getSelection(), fullySelected = getSelectedAnchor( sel ), fakeSelected = fullySelected && fullySelected.data( 'cke-realelement' ), linkElement = fakeSelected ? CKEDITOR.plugins.link.tryRestoreFakeAnchor( editor, fullySelected ) : CKEDITOR.plugins.link.getSelectedLink( editor ); if ( linkElement ) { loadElements.call( this, linkElement ); !fakeSelected && sel.selectElement( linkElement ); if ( fullySelected ) { this._.selectedElement = fullySelected; } } this.getContentElement( 'info', 'txtName' ).focus(); }, contents: [ { id: 'info', label: editor.lang.link.anchor.title, accessKey: 'I', elements: [ { type: 'text', id: 'txtName', label: editor.lang.link.anchor.name, required: true, validate: function() { if ( !this.getValue() ) { alert( editor.lang.link.anchor.errorName ); // jshint ignore:line return false; } return true; } } ] } ] }; } );
define('m_pm', ['m_zepto'], function ($) { console.log('pm'); });
(function() { var Ext = window.Ext4 || window.Ext; Ext.define('Rally.ui.combobox.FieldOptionsCombobox', { requires: [], extend: 'Rally.ui.combobox.FieldComboBox', alias: 'widget.tsfieldoptionscombobox', _isNotHidden: function(field) { //We want dropdown fields, iteration, release, state? var allowedFields = ['Iteration','Release']; if (field && Ext.Array.contains(allowedFields, field.name)){ return true; } if (field && field.attributeDefinition && field.attributeDefinition.AttributeType === 'STRING'){ return true; } return false; }, _populateStore: function() { if (!this.store) { return; } var data = _.sortBy( _.map( _.filter(this.model.getFields(), this._isNotHidden), this._convertFieldToLabelValuePair, this ), 'name' ); if (this.allowNoEntry){ data.unshift({name: this.noEntryText, value: null}); } this.store.loadRawData(data); this.setDefaultValue(); this.onReady(); } }); })();
function new func () { } function errFunction () {
var a00029 = [ [ "memory_parameters", "a01073.html", "a01073" ], [ "secure_boot_check_full_copy_completion", "a00029.html#a6378e763208c43ba1fbcadd8bc8a084c", null ], [ "secure_boot_deinit_memory", "a00029.html#abf726b809a542bc68519520b61b755a3", null ], [ "secure_boot_init_memory", "a00029.html#ad744cc79ced98d366fed07780032bc47", null ], [ "secure_boot_mark_full_copy_completion", "a00029.html#aa635e6de2a04772df6edfdc1973236b9", null ], [ "secure_boot_read_memory", "a00029.html#a25b3c765095b474bc2b93f87d96f7b28", null ], [ "secure_boot_write_memory", "a00029.html#a00a29e86e9ab8b9d74b95e194a1b08f2", null ] ];
/** * @author Ross Lehr <itsme@rosslehr.com> * @copyright 2014 Ross Lehr */ /** * The human action when it is captured by an enemy ship * * @class Game.Human.Captured * @param {human} Reference to the human */ (function () { Game.Human.Captured = function(human) { /** * Reference to the human * * @property human * @type {Phaser.Sprite} */ this.human = human; /** * the name of the current state * * @property stateName * @type {String} */ this.stateName = "humanCaptured"; }; /** * Update loop for this state * * @method update */ Game.Human.Captured.prototype.update = function() { //Sets the humans x to it's enemy ships x this.human.x = this.human.ufo.x; //Add 50 to the enemy ships y, so that the human falls just below it this.human.y = this.human.ufo.y + 50; //Move the animation to the idle frame this.human.animations.play('captured'); }; })();
/** * Created by lseverino on 10/12/14. */ chrome.browserAction.onClicked.addListener(function (tab) { chrome.tabs.executeScript( tab.id, { file: "src/min/js/out.min.js" }, function () { }); }); chrome.browserAction.setBadgeText({text: '(7)'});
var fs = require('fs'); var parser = require('./').Parser(); var file_in = fs.createReadStream('sample.ppm'); file_in.pipe(parser); var png, ctx, img_data, pixel = 0, read_length = 0, pixels = []; parser.once('header', function (meta) { }); parser.on('readable', function () { var data; while(null !== (data = this.read())) { pixels.push(data); } }); parser.once('end', function () { var data = Buffer.concat(pixels); });
var messages = [{ author: 'Vasja', text: 'hello' }, { author: 'Anna', text: 'my message' }, { author: 'Masha', text: '12345' }]; console.log(messages.filter(function(message) { return message.author != 'Vasja'; })); console.log(messages.filter(function(message) { return message.text.length <= 20; }));
'use strict'; // Require all tests here, bundle will concat for autorun via Karma require('./profile'); require('./latest'); require('./popular'); require('./tracks');
/** * * ProjectName:blogme * Description: * Created by qimuyunduan on 16/4/13 . * Revise person:qimuyunduan * Revise Time:16/4/13 下午3:26 * @version * */ var _ = require('lodash'), Promise = require('bluebird'), errors = require('../errors'), utils = require('../utils'), events = require('../events'), appBookshelf = require('./base'), validator = require('validator'), organization, organizations; organization = appBookshelf.Model.extend({ tableName: 'organization_t ', saving: function saving() { var self = this; }, validate: function validate() { }, toJSON: function toJSON(options) { options = options || {}; var attrs = appBookshelf.Model.prototype.toJSON.call(this, options); // remove password hash for security reasons delete attrs.password; if (!options || !options.context || (!options.context.user && !options.context.internal)) { delete attrs.email; } return attrs; }, format: function format(options) { if (!_.isEmpty(options.website) && !validator.isURL(options.website, { require_protocol: true, protocols: ['http', 'https']})) { options.website = 'http://' + options.website; } return appBookshelf.Model.prototype.format.call(this, options); }, findOne: function findOne(data, options) { }, edit: function edit(data, options) { }, add: function add(data, options) { }, // Finds the user by email, and checks the password check: function check(object) { }, changePassword: function changePassword(object, options) { }, generateResetToken: function generateResetToken(email, expires, dbHash) { return this.getByEmail(email).then(function then(foundUser) { if (!foundUser) { return Promise.reject(new errors.NotFoundError('errors.models.user.noUserWithEnteredEmailAddr')); } var hash = crypto.createHash('sha256'), text = ''; // Token: // BASE64(TIMESTAMP + email + HASH(TIMESTAMP + email + oldPasswordHash + dbHash )) hash.update(String(expires)); hash.update(email.toLocaleLowerCase()); hash.update(foundUser.get('password')); hash.update(String(dbHash)); text += [expires, email, hash.digest('base64')].join('|'); return new Buffer(text).toString('base64'); }); }, validateToken: function validateToken(token, dbHash) { var tokenText = new Buffer(token, 'base64').toString('ascii'), parts, expires, email; parts = tokenText.split('|'); // Check if invalid structure if (!parts || parts.length !== 3) { return Promise.reject(new errors.BadRequestError('errors.models.user.invalidTokenStructure')); } expires = parseInt(parts[0], 10); email = parts[1]; if (isNaN(expires)) { return Promise.reject(new errors.BadRequestError('errors.models.user.invalidTokenExpiration')); } if (expires < Date.now()) { return Promise.reject(new errors.ValidationError('errors.models.user.expiredToken')); } if (tokenSecurity[email + '+' + expires] && tokenSecurity[email + '+' + expires].count >= 10) { return Promise.reject(new errors.NoPermissionError('errors.models.user.tokenLocked')); } return this.generateResetToken(email, expires, dbHash).then(function then(generatedToken) { // Check for matching tokens with timing independent comparison var diff = 0, i; // check if the token length is correct if (token.length !== generatedToken.length) { diff = 1; } for (i = token.length - 1; i >= 0; i = i - 1) { diff |= token.charCodeAt(i) ^ generatedToken.charCodeAt(i); } if (diff === 0) { return email; } tokenSecurity[email + '+' + expires] = { count: tokenSecurity[email + '+' + expires] ? tokenSecurity[email + '+' + expires].count + 1 : 1 }; return Promise.reject(new errors.BadRequestError('errors.models.user.invalidToken')); }); } }); organizations = appBookshelf.Collection.extend({ model:organization }); module.exports = { organization:{ model: function(){ return organization; }, collection:function(){ return organizations; } } };
require(["modules/jquery-mozu", "shim!vendor/underscore>_", "hyprlive", "modules/backbone-mozu", "modules/models-checkout", "modules/views-messages"], function ($, _, Hypr, Backbone, CheckoutModels, messageViewFactory) { var CheckoutStepView = Backbone.MozuView.extend({ edit: function () { this.model.edit(); }, next: function () { // wait for blur validation to complete var me = this; _.defer(function () { me.model.next(); }); }, choose: function () { var me = this; me.model.choose.apply(me.model, arguments); }, constructor: function () { var me = this; Backbone.MozuView.apply(this, arguments); me.resize(); setTimeout(function () { me.$('.mz-panel-wrap').css({ 'overflow-y': 'hidden'}); }, 250); me.listenTo(me.model,'stepstatuschange', me.render, me); me.$el.on('keypress', 'input', function (e) { if (e.which === 13) { me.handleEnterKey(); return false; } }); }, initStepView: function() { this.model.initStep(); }, handleEnterKey: function (e) { this.model.next(); }, render: function () { this.$el.removeClass('is-new is-incomplete is-complete is-invalid').addClass('is-' + this.model.stepStatus()); Backbone.MozuView.prototype.render.apply(this, arguments); this.resize(); }, resize: _.debounce(function () { this.$('.mz-panel-wrap').animate({'height': this.$('.mz-inner-panel').outerHeight() }); },200) }); var OrderSummaryView = Backbone.MozuView.extend({ templateName: 'modules/checkout/checkout-order-summary', editCart: function () { window.location = "/cart"; }, // override loading button changing at inappropriate times handleLoadingChange: function () { } }); var ShippingAddressView = CheckoutStepView.extend({ templateName: 'modules/checkout/step-shipping-address', autoUpdate: [ 'firstName', 'lastNameOrSurname', 'address.address1', 'address.address2', 'address.address3', 'address.cityOrTown', 'address.countryCode', 'address.stateOrProvince', 'address.postalOrZipCode', 'phoneNumbers.home', 'contactId' ], renderOnChange: [ 'address.countryCode', 'contactId' ] }); var ShippingInfoView = CheckoutStepView.extend({ templateName: 'modules/checkout/step-shipping-method', renderOnChange: [ 'availableShippingMethods' ], additionalEvents: { "change [data-mz-shipping-method]": "updateShippingMethod" }, updateShippingMethod: function (e) { this.model.updateShippingMethod(this.$('[data-mz-shipping-method]:checked').val()); } }); var BillingInfoView = CheckoutStepView.extend({ templateName: 'modules/checkout/step-payment-info', autoUpdate: [ 'savedPaymentMethodId', 'paymentType', 'card.paymentOrCardType', 'card.cardNumberPartOrMask', 'card.nameOnCard', 'card.expireMonth', 'card.expireYear', 'card.cvv', 'card.isCardInfoSaved', 'check.nameOnCheck', 'check.routingNumber', 'check.checkNumber', 'isSameBillingShippingAddress', 'billingContact.firstName', 'billingContact.lastNameOrSurname', 'billingContact.address.address1', 'billingContact.address.address2', 'billingContact.address.address3', 'billingContact.address.cityOrTown', 'billingContact.address.countryCode', 'billingContact.address.stateOrProvince', 'billingContact.address.postalOrZipCode', 'billingContact.phoneNumbers.home', 'billingContact.email', 'creditAmountToApply', 'selectedCredit' ], renderOnChange: [ 'selectedCredit', 'savedPaymentMethodId', 'billingContact.address.countryCode', 'paymentType', 'isSameBillingShippingAddress', ], beginApplyCredit: function () { this.model.beginApplyCredit(); this.render(); }, cancelApplyCredit: function () { this.model.closeApplyCredit(); this.render(); }, finishApplyCredit: function () { var self = this; this.model.finishApplyCredit().then(function() { self.render(); }); }, removeCredit: function (e) { var self = this, id = $(e.currentTarget).data('mzCreditId'); this.model.removeCredit(id).then(function () { self.render(); }); }, }); var CouponView = Backbone.MozuView.extend({ templateName: 'modules/checkout/coupon-code-field', handleLoadingChange: function (isLoading) { // override adding the isLoading class so the apply button // doesn't go loading whenever other parts of the order change }, initialize: function() { this.listenTo(this.model, 'change:couponCode', this.onEnterCouponCode, this); this.codeEntered = !!this.model.get('couponCode'); }, onEnterCouponCode: function (model, code) { if (code && !this.codeEntered) { this.codeEntered = true; this.$el.find('button').prop('disabled', false); } if (!code && this.codeEntered) { this.codeEntered = false; this.$el.find('button').prop('disabled', true); } }, autoUpdate: [ 'couponCode' ], addCoupon: function (e) { // add the default behavior for loadingchanges // but scoped to this button alone var self = this; this.$el.addClass('is-loading'); this.model.addCoupon().ensure(function() { self.$el.removeClass('is-loading'); }); }, handleEnterKey: function () { this.addCoupon(); } }); var CommentsView = Backbone.MozuView.extend({ templateName: 'modules/checkout/comments-field', autoUpdate: ['shopperNotes.comments'] }); var ReviewOrderView = Backbone.MozuView.extend({ templateName: 'modules/checkout/step-review', autoUpdate: [ 'createAccount', 'agreeToTerms', 'emailAddress', 'password', 'confirmPassword' ], renderOnChange: [ 'createAccount', 'isReady' ], initialize: function () { var me = this; this.$el.on('keypress', 'input', function (e) { if (e.which === 13) { me.handleEnterKey(); return false; } }); this.model.on('passwordinvalid', function(message) { me.$('[data-mz-validationmessage-for="password"]').text(message); }); this.model.on('userexists', function (user) { me.$('[data-mz-validationmessage-for="emailAddress"]').html(Hypr.getLabel("customerAlreadyExists", user, encodeURIComponent(window.location.pathname))); }); }, submit: function () { var self = this; _.defer(function () { self.model.submit(); }); }, handleEnterKey: function () { this.submit(); } }); $(document).ready(function () { var $checkoutView = $('#checkout-form'), checkoutData = require.mozuData('checkout'); var checkoutModel = window.order = new CheckoutModels.CheckoutPage(checkoutData), checkoutViews = { steps: { shippingAddress: new ShippingAddressView({ el: $('#step-shipping-address'), model: checkoutModel.get("fulfillmentInfo").get("fulfillmentContact") }), shippingInfo: new ShippingInfoView({ el: $('#step-shipping-method'), model: checkoutModel.get('fulfillmentInfo') }), paymentInfo: new BillingInfoView({ el: $('#step-payment-info'), model: checkoutModel.get('billingInfo') }) }, orderSummary: new OrderSummaryView({ el: $('#order-summary'), model: checkoutModel }), couponCode: new CouponView({ el: $('#coupon-code-field'), model: checkoutModel }), comments: Hypr.getThemeSetting('showCheckoutCommentsField') && new CommentsView({ el: $('#comments-field'), model: checkoutModel }), reviewPanel: new ReviewOrderView({ el: $('#step-review'), model: checkoutModel }), messageView: messageViewFactory({ el: $checkoutView.find('[data-mz-message-bar]'), model: checkoutModel.messages }) }; window.checkoutViews = checkoutViews; checkoutModel.on('complete', function () { window.location = "/checkout/" + checkoutModel.get('id') + "/confirmation"; }); var $reviewPanel = $('#step-review'); checkoutModel.on('change:isReady',function (isReady) { if (isReady) { setTimeout(function () { window.scrollTo(0, $reviewPanel.offset().top); }, 750); } }); _.invoke(checkoutViews.steps, 'initStepView'); $checkoutView.noFlickerFadeIn(); }); });
exports.init = function(){ var websocket = require('./websocket'), $indicator = $('#onlineWidget .progress-inner'), update, interval; setInterval(function(){ if (!update){ return; } var timeToUpdate = (update - new Date()), progress = ((interval - timeToUpdate) / 100) + '%'; $indicator.css('width', progress); }, 25); websocket.subscribe('hello', function(message, data){ update = new Date(data.lastUpdate); interval = data.interval; console.log('Last Update %s', update.toTimeString()); update.setMilliseconds(interval + update.getMilliseconds()); console.log('Next update in %s sec.', (update - new Date()) / 1000); }); websocket.subscribe('online', function(){ update = new Date(); update.setMilliseconds(interval + update.getMilliseconds()); }); }
//Database var db = require('mongoose'); //Database Connection String db.connect(process.env.DB_URI); //Database Schema Like Create Script //This is what gets returned module.exports = db;
// Meteor.startup(function () { // smtp = { // username: 'artasikindonesia@gmail.com', // password: 'Yg5i23b29AEb04YQFUrbOw', // server: 'smtp.mandrillapp.com', // port: 587 // }; // process.env.MAIL_URL = 'smtp://' + encodeURIComponent(smtp.username) + ':' + encodeURIComponent(smtp.password) + '@' + encodeURIComponent(smtp.server) + ':' + smtp.port; // }); Accounts.emailTemplates.siteName = "Tomatisa"; Accounts.emailTemplates.from = "Tomatisa Account <no-reply@tomatisa.com>"; Accounts.emailTemplates.enrollAccount.subject = function (user) { return "Welcome to Tomatisa, " + user.profile.name; }; //-- Subject line of the email. Accounts.emailTemplates.verifyEmail.subject = function(user) { return 'Confirm Your Email Address for Tomatisa'; }; //-- Email text Accounts.emailTemplates.verifyEmail.text = function(user, url) { return 'Thank you for registering. Please click on the following link to verify your email address: \r\n' + url; };
import './App.scss'; import React, { Component } from 'react'; import $ from "jquery"; import BadgeService from './services/BadgeService'; import C from "./Constants"; import ConfigStorageService from './services/storage/ConfigStorageService'; import ConfirmDialog from "./modals/ConfirmDialog"; import EncounterOptionsModal from "./modals/EncounterOptionsModal"; import Link from './buttons/Link'; import LinkService from "./services/LinkService"; import ListOptionsModal from "./modals/ListOptionsModal"; import MenuButton from './buttons/MenuButton'; import MessageService from './services/MessageService'; import MonsterData from './data/MonsterData'; import MonsterEncounterData from './data/MonsterEncounterData'; import MonsterEncounterStorageService from './services/storage/MonsterEncounterStorageService'; import MonsterList from './MonsterList'; import MonsterListData from './data/MonsterListData'; import MonsterListStorageService from './services/storage/MonsterListStorageService'; import MonsterOptionsModal from "./modals/MonsterOptionsModal"; import MonsterStorageService from './services/storage/MonsterStorageService'; import MonstersService from './services/MonstersService'; import NewEncounterModal from "./modals/NewEncounterModal"; import ScrollService from './services/ScrollService'; import Select from 'react-select'; import SelectUtils from './forms/SelectUtils'; import SyncStorageService from './services/storage/SyncStorageService'; import { Well } from 'react-bootstrap'; import { throttle } from 'lodash'; /* global chrome */ ScrollService.loadScrollPosition().then(ScrollService.watchScrollChange); /** * Handler called after toggle, updates the list on storage. */ const saveToggle = throttle((list: MonsterListData) => { SyncStorageService.updateData(list).catch((e) => { throw new Error(e); }); }, 500); /** * Handler called after hp changes, updates the monster on storage. */ const saveHpChanged = throttle((monster: MonsterData) => { SyncStorageService.updateData(monster).then(() => { BadgeService.updateBadgeCount(); }).catch((e) => { throw new Error(e); }); }, 500); class App extends Component { constructor(props) { super(props); this.state = { encounters: [], activeEncounter: null, showNewEncounterModal: false, showDeleteEncounterDialog: false, showDeleteListDialog: false, showOpenAllDetailsDialog: false, monsterOptions: { show: false, monster: null, monsterEl: null, list: null }, listOptions: { show: false, list: null, llistEl: null }, encounterOptions: { show: false, deleteEnabled: false } }; this.load(); // listen when a monster is added from AddMonsterButton, reloads MessageService.listen(C.ReloadMessage, () => this.load()); } load = () => { return MonsterEncounterStorageService.getMonsterEncounters().then(({ active, all }) => { this.setState({ encounters: all, activeEncounter: active, showNewEncounterModal: false, showDeleteEncounterDialog: false }); }).catch(error => { throw error; }); } dialogOpenClass = () => { const s = this.state; const states = [ s.showNewEncounterModal, s.showDeleteEncounterDialog, s.showDeleteListDialog, s.monsterOptions.show, s.listOptions.show, s.encounterOptions.show ]; return states.some(state => state) ? "Dialog-opened" : ""; } /** * onChange of encounter select */ activeEncounterChange = (newActiveEncounter: MonsterEncounterData) => { ConfigStorageService.getConfig().then(config => { config.activeEncounterId = newActiveEncounter.storageId; return SyncStorageService.updateData(config); }).then(() => { this.setState({ activeEncounter: newActiveEncounter }, BadgeService.updateBadgeCount); }); } canDeleteEncounter = () => { return this.state.encounters && this.state.encounters.length > 1; } reloadHandler = (beforeReload: Function) => { return () => { if (beforeReload) beforeReload(); BadgeService.updateBadgeCount(); this.load(); }; } //#region children event handlers /** * onSave of new encounter modal */ handleNewEncounter = (name: string) => { MonsterEncounterStorageService.createEncounter(name).then(() => { this.setState({ showNewEncounterModal: false }, () => this.load().then(BadgeService.updateBadgeCount)); }); } /** * onClick of monster list header */ handleListToggle = (list: MonsterListData) => { list.collapsed = !list.collapsed; this.setState({ activeEncounter: this.state.activeEncounter }, () => saveToggle(list)); } /** * called by both change hp by form and and change hp by scroll */ handleMonsterHpChange = (monster: MonsterData, newHp: number) => { return new Promise((resolve, reject) => { monster.currentHp = newHp; this.setState({ activeEncounter: this.state.activeEncounter }, () => { saveHpChanged(monster); resolve(); }); }); } //#endregion //#region monster options /** * OnRightClick on monster */ handleMonsterRightClick = (monster: MonsterData, monsterEl: HTMLElement, list: MonsterListData) => { this.setState({ monsterOptions: { show: true, monster, monsterEl, list } }); } closeMonsterOptions = () => { this.setState({ monsterOptions: { show: false, monster: null, monsterEl: null, list: null } }); } //#endregion //#region list options handleListRightClick = (list: MonsterListData, listEl: HTMLElement) => { this.setState({ listOptions: { show: true, list, listEl } }); } closeListOptions = () => { this.setState({ listOptions: { show: false, list: null, listEl: null } }); } openDeleteListDialog = () => { this.setState(prev => { const listOptions = prev.listOptions; listOptions.show = false; return { listOptions, showDeleteListDialog: true }; }); } cancelDeleteList = () => { this.setState({ listOptions: { show: false, list: null, listEl: null }, showDeleteListDialog: false }); } handleDeleteList = () => { const toDeleteList: MonsterListData = this.state.listOptions.list; const listEl = this.state.listOptions.listEl; this.setState({ showDeleteListDialog: false }); $(listEl).fadeOut(400, () => { MonsterListStorageService.deleteList(toDeleteList).then(() => { BadgeService.updateBadgeCount(); this.reloadHandler(this.closeListOptions)(); }); }); } //#endregion //#region encounter options openEncounterOptions = () => { this.setState({ encounterOptions: { show: true, deleteEnabled: this.canDeleteEncounter() } }); } closeEncounterOptions = () => { this.setState({ encounterOptions: { show: false, deleteEnabled: false } }); } openDetailsPagesDialog = () => { this.setState(prev => { const encounterOptions = prev.encounterOptions; encounterOptions.show = false; return { encounterOptions, showOpenAllDetailsDialog: true }; }); } handleOpenDetailsPages = () => { this.setState({ showOpenAllDetailsDialog: false }); MonstersService.openDetailsPages(this.state.activeEncounter); } openDeleteEncounterDialog = () => { this.setState(prev => { const encounterOptions = prev.encounterOptions; encounterOptions.show = false; return { encounterOptions, showDeleteEncounterDialog: true }; }); } handleDeleteEncounter = () => { const nextActiveEncounter = this.state.encounters.find((encounter) => encounter.storageId !== this.state.activeEncounter.storageId); MonsterEncounterStorageService.deleteEncounter(this.state.activeEncounter, nextActiveEncounter).then(() => { return this.load(); }).then(BadgeService.updateBadgeCount); } //#endregion //#region renderer buildLists = () => { const encounter: MonsterEncounterData = this.state.activeEncounter; if (!encounter) return ""; return encounter.lists.map((list, index) => { const id = list.monsterId; const last = encounter.lists.length - 1 === index; return ( <li className={last ? "Monster-list-last" : ""} key={id}> <MonsterList list={list} encounter={this.state.activeEncounter} onToggle={this.handleListToggle} onMonsterHpChange={this.handleMonsterHpChange} onMonsterRightClick={this.handleMonsterRightClick} onRightClick={this.handleListRightClick} /> </li> ); }); } /** * either a message of no monsters or the monster lists */ renderMainContent = () => { const encounter: MonsterEncounterData = this.state.activeEncounter; if (!encounter) return <span />; if (encounter.lists && encounter.lists.length > 0) return <ul>{this.buildLists()}</ul>; const base = "https://www.dndbeyond.com"; const goblin = <Link address={`${base}/monsters/goblin`}>Goblin</Link>; const mList = <Link address={`${base}/monsters`}>Monsters Listing</Link>; const mHomebrew = <Link address={`${base}/homebrew/monsters`}>Homebrew Monsters Listing</Link>; const hCollection = <Link address={`${base}/homebrew/collection`}>Homebrew Collection</Link>; const hCreation = <Link address={`${base}/homebrew/creations`}>Homebrew Creations</Link>; // discontinued return null; return ( <Well className="Monster-empty-list"> <p>No monsters added. Try to add a {goblin}. Monsters can also be added from the expanded details of {mList}, {mHomebrew}, {hCollection} and {hCreation}.</p> </Well> ); } renderModalsAndDialogs = () => { return ( <div> <NewEncounterModal key={"new-encounter-modal-" + this.state.showNewEncounterModal} show={this.state.showNewEncounterModal} onHide={() => this.setState({ showNewEncounterModal: false })} onSave={this.handleNewEncounter} /> <ConfirmDialog show={this.state.showDeleteEncounterDialog} message="Are you sure you want to delete this encounter and all monsters in it?" onCancel={() => this.setState({ showDeleteEncounterDialog: false })} confirmButtonStyle="danger" confirmLabel="Delete" onConfirm={this.handleDeleteEncounter} /> <ConfirmDialog show={this.state.showDeleteListDialog} message="Are you sure you want to delete this list and all monsters in it?" onCancel={this.cancelDeleteList} confirmButtonStyle="danger" confirmLabel="Delete" onConfirm={this.handleDeleteList} /> <ConfirmDialog show={this.state.showOpenAllDetailsDialog} message={`Are you sure you want to open ${MonstersService.notCustomMonsterLists(this.state.activeEncounter).length} new tabs with details pages?`} onCancel={() => this.setState({ showOpenAllDetailsDialog: false })} confirmButtonStyle="primary" confirmLabel="Yes" onConfirm={this.handleOpenDetailsPages} /> <EncounterOptionsModal key={"encounter-option-modal-" + this.state.encounterOptions.show} show={this.state.encounterOptions.show} context={this.state.encounterOptions} encounter={this.state.activeEncounter} onHide={this.closeEncounterOptions} onChange={this.reloadHandler(this.closeEncounterOptions)} onOpenDetailsPages={this.openDetailsPagesDialog} onDelete={this.openDeleteEncounterDialog} /> <ListOptionsModal key={"list-option-modal-" + this.state.listOptions.show} show={this.state.listOptions.show} context={this.state.listOptions} encounter={this.state.activeEncounter} onHide={this.closeListOptions} onChange={this.reloadHandler(this.closeListOptions)} onDelete={this.openDeleteListDialog} /> <MonsterOptionsModal key={"monster-option-modal-" + this.state.monsterOptions.show} show={this.state.monsterOptions.show} context={this.state.monsterOptions} encounter={this.state.activeEncounter} onHide={this.closeMonsterOptions} onChange={this.reloadHandler(this.closeMonsterOptions)} /> </div> ); } render() { return ( <div id="bhroot" className={this.dialogOpenClass()} onContextMenu={(e) => e.preventDefault()}> <div className="Monster-encounter-menu"> <MenuButton className="btn" icon="glyphicon-file" title="New Encounter" onClick={() => this.setState({ showNewEncounterModal: true })} /> <MenuButton className="btn" icon="glyphicon-cog" title="Encounter Options" onClick={this.openEncounterOptions} /> <MenuButton className="btn" icon="glyphicon-wrench" title="Extension Options" onClick={LinkService.toNewTabHandler(`chrome-extension://${chrome.runtime.id}/optionspage.html`, true)} /> <Select className="Monster-encounter-select" classNamePrefix="Monster-encounter-select" getOptionLabel={(opt) => opt.name} getOptionValue={(opt) => opt.storageId} noOptionsMessage={() => "No encounters found"} blurInputOnSelect value={this.state.activeEncounter} options={this.state.encounters} onChange={this.activeEncounterChange} theme={SelectUtils.defaultTheme()} styles={SelectUtils.defaultStyle({})} /> </div>` <Well style={{ margin: "0px 10px", padding: "10px", textAlign: "center" }}> <div>This extension was discontinued.</div> <a href="javascript:void(0)" onClick={LinkService.toNewTabHandler("https://github.com/emfmesquita/beyondhelp", true)}>More Info.</a> </Well>` {this.renderMainContent()} {this.renderModalsAndDialogs()} </div > ); } //#endregion } export default App;
/** * Created by andres on 9/08/15. */ (function () { 'use strict'; adminModule.controller('RoleCtrl', function ($scope, alertService, $state, $stateParams, Role, $modal, $log, ngTableParams){ $scope.alerts = alertService.get(); $scope.roles = null; /** * Get roles list information. */ $scope.getRoles = function() { Role.getRoles() .success(function(data) { $scope.roles = data.roles; $scope.permissions = data.permissions; $scope.tableParams = new ngTableParams({ page: 1, // show first page count: 10 // count per page }, { total: $scope.roles.length, // length of data getData: function ($defer, params) { $defer.resolve($scope.roles.slice((params.page() - 1) * params.count(), params.page() * params.count())); } }) $scope.tablePermissionParams = new ngTableParams({ page: 1, // show first page count: 10 // count per page }, { total: $scope.permissions.length, // length of data getData: function ($defer, params) { $defer.resolve($scope.permissions.slice((params.page() - 1) * params.count(), params.page() * params.count())); } }) }) .error(function(error) { alertService.add('error', error.message); }); }; $scope.getPermissions = function(){ Role.getPermissions() .success(function(data){ $scope.permissions = data.permissions; //$state.go('new-role'); }) .error(function(error){ alertService.add('error', error.message); }) }; /** * Get Role data */ $scope.getRole = function(id){ $scope.roleID = id; $scope.editRole = true; Role.getRole(id) .success(function(data){ $scope.role = data.role; $scope.permissions = data.permissions; $scope.role.permissions = data.role.permissions; $log.log($scope.permissions); $scope.permissionSearchSettings = {enableSearch: true}; }) .error(function(error) { alertService.add('error', error.message); }) .then(function() { alertService.add('success', "User received"); }); } /** * Create a role. */ $scope.storeRole = function(data) { Role.storeRole({ name: data.name, display_name: data.display_name, description: data.description }) .success(function(data){ $state.go('roles'); }) .error(function(error) { alertService.add('error', error.message); }) .then(function() { alertService.add('success', "Data has been updated"); }); }; $scope.updateRole = function(data){ Role.updateRole({ id: data.id, name: data.name, display_name: data.display_name, description: data.description, permissions: data.permissions }) .success(function(data){ $state.go('roles'); }) .error(function(error) { alertService.add('error', error.message); }) .then(function(){ alertService.add('success', "Data has been updated"); }); }; $scope.deleteRole = function(id){ Role.deleteRole(id) .success(function(data){ $state.reload(); }).error(function(error) { alertService.add('error', error.message); }) .then(function() { alertService.add('success', "Data has been deleted"); }) }; $scope.submitRole = function(data){ $log.log("submitRole"); if(typeof $scope.editRole === 'undefined'){ $scope.storeRole(data); }else{ $scope.updateRole(data); } }; /** * Get Permission data */ $scope.getPermission = function(id){ $scope.permID = id; $scope.editPerm = true; Role.getPermission(id) .success(function(data){ $scope.permission = data.permission; }) .error(function(error) { alertService.add('error', error.message); }) .then(function() { alertService.add('success', "Permission has been received"); }); } /** * Create a permission. */ $scope.storePermission = function(data) { console.log("storePermission"); Role.storePermission({ name: data.name, display_name: data.display_name, description: data.description }) .success(function(data){ $state.go('roles'); }) .error(function(error) { alertService.add('error', error.message); }) .then(function() { alertService.add('success', "Data has been created."); }); }; /** * Update a permission. */ $scope.updatePermission = function(data) { Role.updatePermission({ id: data.id, name: data.name, display_name: data.display_name, description: data.description }) .success(function(data){ $state.go('roles'); }) .error(function(error) { alertService.add('error', error.message); }) .then(function() { alertService.add('success', "Data has been created."); }); }; /** * Delete permission. */ $scope.deletePermission = function(id){ Role.deletePermission(id) .success(function(data){ $state.reload(); }).error(function(error) { alertService.add('error', error.message); }) .then(function() { alertService.add('success', "Data has been deleted."); }) }; /** * Send form to appropiate method * @param data FormData */ $scope.submitPermission = function(data){ console.log("submit Permission " + $scope.editPerm); if(typeof $scope.editPerm !== 'undefined'){ $scope.updatePermission(data); }else{ $scope.storePermission(data); } }; $scope.showModal = function(model, id){ var modal = $modal({scope: $scope, templateUrl: 'partials/components/modal-delete.tpl.html', show: true}); $scope.title = "Delete " + model; $scope.content = "Are you sure that you want to delete this " + model + "?"; $scope.model = model; $scope.id = id; modal.$promise.then(modal.open); }; $scope.deleteModel = function(model, id){ if(model == 'role') $scope.deleteRole(id); else $scope.deletePermission(id); }; /** * Load models depending of the State */ if($stateParams.editRole){ $scope.getRole($stateParams.roleID); }else if($stateParams.editPerm){ $scope.getPermission($stateParams.permID) }else{ $scope.getRoles(); $scope.getPermissions(); } }) })();
/*global describe, it */ (function () { "use strict"; describe( '$.fn.hasScrollbar: Basics', function () { // Fixture var f; beforeEach( function () { f = Setup.create( "window", null, { hidePreexistingBodyContent: false } ); return f.ready.done( function () { f.$el.overflow( "auto" ); } ); } ); afterEach( function () { f.cleanDom(); } ); describe( 'When the element selection', function () { it( 'is empty, $.fn.hasScrollbar returns undefined', function () { expect( $().hasScrollbar() ).to.be.undefined; } ); it( 'consists of more than one element, only the first one is examined and the others are ignored', function () { // We test this by // (a) creating scroll bars on the second element, and none on the first, and then // (b) creating scroll bars on the first element and none on the second var $elScroll = $( '<div id="foo"/>' ).contentBox( 50, 50 ).contentOnly().overflow( "auto" ); forceScrollbar( $elScroll, "vertical" ); $elScroll.insertAfter( f.$el ); expect( f.$stage.children().hasScrollbar() ).to.eql( { horizontal: false, vertical: false } ); $elScroll.insertBefore( f.$el ); expect( f.$stage.children().hasScrollbar() ).to.eql( { horizontal: false, vertical: true } ); } ); } ); describe( 'The axis parameter', function () { it( 'accepts the value "horizontal"', function () { expect( function () { f.$el.hasScrollbar( "horizontal" ); } ).not.to.throw( Error ); } ); it( 'accepts the value "vertical"', function () { expect( function () { f.$el.hasScrollbar( "vertical" ); } ).not.to.throw( Error ); } ); it( 'accepts the value "both"', function () { expect( function () { f.$el.hasScrollbar( "both" ); } ).not.to.throw( Error ); } ); it( 'throws an error if the value is an unknown string', function () { expect( function () { f.$el.hasScrollbar( "other" ); } ).to.throw( Error ); } ); it( 'defaults to "both" if left undefined', function () { var result = f.$el.hasScrollbar(); expect( result ).to.be.an( "object" ); expect( result ).to.have.property( "vertical" ); expect( result ).to.have.property( "horizontal" ); } ); it( 'defaults to "both" if it is falsy', function () { var result = f.$el.hasScrollbar( "" ); expect( result ).to.be.an( "object" ); expect( result ).to.have.property( "vertical" ); expect( result ).to.have.property( "horizontal" ); } ); } ); describe( 'The axis is set to "horizontal"', function () { it( 'When the element does not have scroll bars, $.fn.hasScrollbar returns false', function () { expect( f.$el.hasScrollbar( "horizontal" ) ).to.be.false; } ); it( 'When the element has a vertical scroll bar, and not a horizontal one, $.fn.hasScrollbar returns false', function () { forceScrollbar( f.$el, "vertical" ); expect( f.$el.hasScrollbar( "horizontal" ) ).to.be.false; } ); it( 'When the element has a horizontal scroll bar, and not a vertical one, $.fn.hasScrollbar returns true', function () { forceScrollbar( f.$el, "horizontal" ); expect( f.$el.hasScrollbar( "horizontal" ) ).to.be.true; } ); } ); describe( 'The axis is set to "vertical"', function () { it( 'When the element does not have scroll bars, $.fn.hasScrollbar returns false', function () { expect( f.$el.hasScrollbar( "vertical" ) ).to.be.false; } ); it( 'When the element has a vertical scroll bar, and not a horizontal one, $.fn.hasScrollbar returns true', function () { forceScrollbar( f.$el, "vertical" ); expect( f.$el.hasScrollbar( "vertical" ) ).to.be.true; } ); it( 'When the element has a horizontal scroll bar, and not a vertical one, $.fn.hasScrollbar returns false', function () { forceScrollbar( f.$el, "horizontal" ); expect( f.$el.hasScrollbar( "vertical" ) ).to.be.false; } ); } ); describe( 'The axis is set to "both"', function () { it( 'When the element has a vertical scroll bar, and not a horizontal one, $.fn.hasScrollbar returns an object representing the state of both scroll bars', function () { forceScrollbar( f.$el, "vertical" ); expect( f.$el.hasScrollbar( "both" ) ).to.eql( { horizontal: false, vertical: true } ); } ); } ); describe( 'The method does not rely on the exposed plugin API. When all other public methods of the plugin are deleted from jQuery', function () { var deletedApi; beforeEach( function () { deletedApi = deletePluginApiExcept( "hasScrollbar" ); } ); afterEach( function () { restorePluginApi( deletedApi ); } ); it( 'it works correctly. When the element has a vertical scroll bar, and not a horizontal one, $.fn.hasScrollbar returns an object representing the state of both scroll bars', function () { forceScrollbar( f.$el, "vertical" ); expect( f.$el.hasScrollbar( "both" ) ).to.eql( { horizontal: false, vertical: true } ); } ); } ); } ); })();
import assert from 'assert'; import EaselFake from '../fixtures/EaselFake.js'; import Vue from 'vue'; /** * Returns a function to be used with `describe` for any component using * EaselParent. * * Like this: * `describe('is a parent', isAnEaselParent(MyComponentThatIsAParent)` * @param VueComponent implementor * @return function */ export default function isAnEaselParent(implementor) { return function () { const buildVm = function () { const vm = new Vue({ template: ` <implementor ref="parent"> <easel-fake v-if="showOne" ref="one" key="one" x="1" y="2" > </easel-fake> <easel-fake v-if="showTwo" ref="two" key="two" x="1" y="2" > </easel-fake> <easel-fake v-for="(name, i) in list" :ref="name" :key="name" x="1" y="2" > </easel-fake> </implementor> `, components: { 'implementor': implementor, 'easel-fake': EaselFake, }, provide() { return { easelParent: { addChild() { }, removeChild() { }, }, easelCanvas: {}, }; }, data() { return { showOne: false, showTwo: false, list: [], }; }, }).$mount(); const parent = vm.$refs.parent; return {vm, parent}; }; it('should have 0 children', function (done) { const {vm, parent} = buildVm(); Vue.nextTick() .then(() => { assert(parent.children, 'parent has no children field'); assert(parent.children.length === 0, 'parent has too many children: ' + parent.children.length); }) .then(done, done); }); it('should get a child', function (done) { const {vm, parent} = buildVm(); vm.showOne = true; Vue.nextTick() .then(() => { assert(parent.children.length === 1, 'parent has wrong number of children: ' + parent.children.length); assert(vm.$refs.one === parent.children[0], 'parent has wrong child'); }) .then(done, done); }); it('should lose a child', function (done) { const {vm, parent} = buildVm(); vm.showOne = false; Vue.nextTick() .then(() => { assert(parent.children.length === 0, 'parent still has children: ' + parent.children.length); assert(!vm.$refs.one, 'child `one` still exists'); }) .then(done, done); }); it('should get two children', function (done) { const {vm, parent} = buildVm(); vm.showOne = true; vm.showTwo = true; Vue.nextTick() .then(() => { assert(parent.children.length === 2, 'parent does not have right children' + parent.children.length); assert(vm.$refs.one === parent.children[0], 'child `one` is not in the right place'); assert(vm.$refs.two === parent.children[1], 'child `two` is not in the right place'); }) .then(done, done); }); it('should lose two children', function (done) { const {vm, parent} = buildVm(); vm.showOne = false; vm.showTwo = false; Vue.nextTick() .then(() => { assert(parent.children.length === 0, 'parent still has children: ' + parent.children.length); assert(!vm.$refs.one, 'child `one` still exists'); assert(!vm.$refs.two, 'child `two` still exists'); }) .then(done, done); }); it('should get two children, one by one', function (done) { const {vm, parent} = buildVm(); vm.showOne = true; let one, two; Vue.nextTick() .then(() => { assert(parent.children.length === 1, 'parent does not have right children' + parent.children.length); one = vm.$refs.one; vm.showTwo = true; return Vue.nextTick(); }) .then(() => { two = vm.$refs.two assert(parent.children.length === 2, 'parent does not have right children' + parent.children.length); assert(vm.$refs.one === parent.children[0], 'child `one` is not in the right place'); assert(vm.$refs.two === parent.children[1], 'child `two` is not in the right place'); assert(one === vm.$refs.one, 'one changed to a new object'); }) .then(done, done); }); it('should get two children, one by one, in reverse', function (done) { const {vm, parent} = buildVm(); let two; vm.showOne = false; vm.showTwo = false; Vue.nextTick() .then(() => { vm.showTwo = true; return Vue.nextTick(); }) .then(() => { assert(parent.children.length === 1, 'parent does not have right children' + parent.children.length); assert(vm.$refs.two.component === parent.component.getChildAt(0), 'child `two` is not in the right place'); two = vm.$refs.two; vm.showOne = true; return Vue.nextTick(); }) .then(() => { assert(parent.children.length === 2, 'parent does not have right children' + parent.children.length); assert(vm.$refs.one.component === parent.component.getChildAt(0), 'child `one` is not in the right place'); assert(vm.$refs.two.component === parent.component.getChildAt(1), 'child `two` is not in the right place'); assert(two === vm.$refs.two, 'two changed to a new object'); }) .then(done, done); }); it('should get two children, then switch their locations', function (done) { const {vm, parent} = buildVm(); vm.showOne = false; vm.showTwo = false; Vue.nextTick() .then(() => { vm.list.push('bob'); vm.list.push('carol'); return Vue.nextTick(); }) .then(() => { assert(parent.children.length === 2, 'parent does not have right children' + parent.children.length); assert(vm.$refs.bob[0].component === parent.component.getChildAt(0), 'before switch, child `bob` is not in the right place'); assert(vm.$refs.carol[0].component === parent.component.getChildAt(1), 'before switch, child `carol` is not in the right place'); vm.list.pop(); vm.list.pop(); vm.list.push('carol'); vm.list.push('bob'); return Vue.nextTick(); }) .then(() => { assert(parent.children.length === 2, 'parent does not have right children' + parent.children.length); assert(vm.$refs.carol[0].component === parent.component.getChildAt(0), 'after switch, child `carol` is not in the right place'); assert(vm.$refs.bob[0].component === parent.component.getChildAt(1), 'after switch, child `bob` is not in the right place'); }) .then(done, done); }); it('should get the right parent on the child.component', function (done) { const {vm, parent} = buildVm(); vm.showOne = true; Vue.nextTick() .then(() => { var one = vm.$refs.one; assert(one.component.parent === parent.component); }) .then(done, done); }); }; };
(function() { 'use strict'; var WilddogAuth; // Define a service which provides user authentication and management. angular.module('wilddog').factory('$wilddogAuth', [ '$q', '$wilddogUtils', function($q, $wilddogUtils) { /** * This factory returns an object allowing you to manage the client's authentication state. * * @param {Wilddog} auth A Wilddog Auth to authenticate. * @return {object} An object containing methods for authenticating clients, retrieving * authentication state, and managing users. */ return function(auth) { var authInstance = new WilddogAuth($q, $wilddogUtils, auth); return authInstance.construct(); }; } ]); WilddogAuth = function($q, $wilddogUtils, auth) { this._q = $q; this._utils = $wilddogUtils; if (typeof auth === 'string') { throw new Error('Please provide a Wilddog auth instead of a URL when creating a `$wilddogAuth` object.'); } else if (typeof auth.ref !== 'undefined') { throw new Error('Please provide a Wilddog auth instead of a Wilddog sync when creating a `$wilddogAuth` object.'); } this._auth = auth; this._initialAuthResolver = this._initAuthResolver(); }; WilddogAuth.prototype = { construct: function() { this._object = { // Authentication methods $signInWithCustomToken: this.signInWithCustomToken.bind(this), $signInAnonymously: this.signInAnonymously.bind(this), $signInWithEmailAndPassword: this.signInWithEmailAndPassword.bind(this), $signInWithPhoneAndPassword: this.signInWithPhoneAndPassword.bind(this), $signInWithPopup: this.signInWithPopup.bind(this), $signInWithRedirect: this.signInWithRedirect.bind(this), $signInWithCredential: this.signInWithCredential.bind(this), $signOut: this.signOut.bind(this), // Authentication state methods $onAuthStateChanged: this.onAuthStateChanged.bind(this), $getUser: this.getUser.bind(this), $requireUser: this.requireUser.bind(this), $waitForSignIn: this.waitForSignIn.bind(this), // User management methods $createUserWithPhoneAndPassword: this.createUserWithPhoneAndPassword.bind(this), $createUserWithEmailAndPassword: this.createUserWithEmailAndPassword.bind(this), $sendPasswordResetEmail: this.sendPasswordResetEmail.bind(this), $sendPasswordResetPhone: this.sendPasswordResetPhone.bind(this), $updateProfile: this.updateProfile.bind(this), $updatePassword: this.updatePassword.bind(this), $updateEmail: this.updateEmail.bind(this), $updatePhone: this.updatePhone.bind(this), $deleteUser: this.deleteUser.bind(this), //************************ // // Authentication methods // $authWithCustomToken: this.authWithCustomToken.bind(this), // $authAnonymously: this.authAnonymously.bind(this), // $authWithPassword: this.authWithPassword.bind(this), // $authWithOAuthPopup: this.authWithOAuthPopup.bind(this), // $authWithOAuthRedirect: this.authWithOAuthRedirect.bind(this), // $authWithOAuthToken: this.authWithOAuthToken.bind(this), // $unauth: this.unauth.bind(this), // // // Authentication state methods // $onAuth: this.onAuth.bind(this), // $getUser: this.getUser.bind(this), // $requireAuth: this.requireAuth.bind(this), // $waitForAuth: this.waitForAuth.bind(this), // // // User management methods // $createUser: this.createUser.bind(this), // $updatePassword: this.updatePassword.bind(this), // $updateEmail: this.updateEmail.bind(this), // $deleteUser: this.deleteUser.bind(this), // $resetPassword: this.resetPassword.bind(this) }; return this._object; }, /********************/ /* Authentication */ /********************/ /** * Authenticates the Firebase reference with a custom authentication token. * * @param {string} authToken An authentication token or a Firebase Secret. A Firebase Secret * should only be used for authenticating a server process and provides full read / write * access to the entire Firebase. * @return {Promise<Object>} A promise fulfilled with an object containing authentication data. */ signInWithCustomToken: function(authToken) { return this._q.when(this._auth.signInWithCustomToken(authToken)); }, /** * Authenticates the Firebase reference anonymously. * * @return {Promise<Object>} A promise fulfilled with an object containing authentication data. */ signInAnonymously: function() { return this._q.when(this._auth.signInAnonymously()); }, /** * Authenticates the Firebase reference with an email/password user. * * @param {String} email An email address for the new user. * @param {String} password A password for the new email. * @return {Promise<Object>} A promise fulfilled with an object containing authentication data. */ signInWithEmailAndPassword: function(email, password) { return this._q.when(this._auth.signInWithEmailAndPassword(email, password)); }, /** * Authenticates the Firebase reference with an phone/password user. * * @param {String} phone An phone address for the new user. * @param {String} password A password for the new phone. * @return {Promise<Object>} A promise fulfilled with an object containing authentication data. */ signInWithPhoneAndPassword: function(phone, password) { return this._q.when(this._auth.signInWithPhoneAndPassword(phone, password)); }, /** * Authenticates the Firebase reference with the OAuth popup flow. * * @param {object|string} provider A wilddog.auth.AuthProvider or a unique provider ID like 'facebook'. * @return {Promise<Object>} A promise fulfilled with an object containing authentication data. */ signInWithPopup: function(provider) { return this._q.when(this._auth.signInWithPopup(provider)); }, /** * Authenticates the Firebase reference with the OAuth redirect flow. * * @param {object|string} provider A wilddog.auth.AuthProvider or a unique provider ID like 'facebook'. * @return {Promise<Object>} A promise fulfilled with an object containing authentication data. */ signInWithRedirect: function(provider) { return this._q.when(this._auth.signInWithRedirect(provider)); }, /** * Authenticates the Firebase reference with an OAuth token. * * @param {wilddog.auth.AuthCredential} credential The Firebase credential. * @return {Promise<Object>} A promise fulfilled with an object containing authentication data. */ signInWithCredential: function(credential) { return this._q.when(this._auth.signInWithCredential(credential)); }, /** * Unauthenticates the Firebase reference. */ signOut: function() { if (this.getUser() !== null) { return this._q.when(this._auth.signOut()); } else { return this._q.when(); } }, /**************************/ /* Authentication State */ /**************************/ /** * Asynchronously fires the provided callback with the current authentication data every time * the authentication data changes. It also fires as soon as the authentication data is * retrieved from the server. * * @param {function} callback A callback that fires when the client's authenticate state * changes. If authenticated, the callback will be passed an object containing authentication * data according to the provider used to authenticate. Otherwise, it will be passed null. * @param {string} [context] If provided, this object will be used as this when calling your * callback. * @return {Promise<Function>} A promised fulfilled with a function which can be used to * deregister the provided callback. */ onAuthStateChanged: function(callback, context) { var fn = this._utils.debounce(callback, context, 0); var off = this._auth.onAuthStateChanged(fn); // Return a method to detach the `onAuthStateChanged()` callback. return off; }, /** * Synchronously retrieves the current authentication data. * * @return {Object} The client's authentication data. */ getUser: function() { return this._auth.currentUser; }, /** * Helper onAuthStateChanged() callback method for the two router-related methods. * * @param {boolean} rejectIfAuthDataIsNull Determines if the returned promise should be * resolved or rejected upon an unauthenticated client. * @param {boolean} rejectIfEmailNotVerified Determines if the returned promise should be * resolved or rejected upon a client without a verified email address. * @return {Promise<Object>} A promise fulfilled with the client's authentication state or * rejected if the client is unauthenticated and rejectIfAuthDataIsNull is true. */ _routerMethodOnAuthPromise: function(rejectIfAuthDataIsNull, rejectIfEmailNotVerified) { var self = this; // wait for the initial auth state to resolve; on page load we have to request auth state // asynchronously so we don't want to resolve router methods or flash the wrong state return this._initialAuthResolver.then(function() { // auth state may change in the future so rather than depend on the initially resolved state // we also check the auth data (synchronously) if a new promise is requested, ensuring we resolve // to the current auth state and not a stale/initial state var authData = self.getUser(), res = null; if (rejectIfAuthDataIsNull && authData === null) { res = self._q.reject("AUTH_REQUIRED"); } else if (rejectIfEmailNotVerified && !authData.emailVerified) { res = self._q.reject("EMAIL_VERIFICATION_REQUIRED"); } else { res = self._q.when(authData); } return res; }); }, /** * Helper that returns a promise which resolves when the initial auth state has been * fetched from the Firebase server. This never rejects and resolves to undefined. * * @return {Promise<Object>} A promise fulfilled when the server returns initial auth state. */ _initAuthResolver: function() { var auth = this._auth; return this._q(function(resolve) { var off; function callback() { // Turn off this onAuthStateChanged() callback since we just needed to get the authentication data once. setTimeout(function () { off(); resolve(); }, 0); } off = auth.onAuthStateChanged(callback); }); }, /** * Utility method which can be used in a route's resolve() method to require that a route has * a logged in client. * * @param {boolean} requireEmailVerification Determines if the route requires a client with a * verified email address. * @returns {Promise<Object>} A promise fulfilled with the client's current authentication * state or rejected if the client is not authenticated. */ requireUser: function(requireEmailVerification) { return this._routerMethodOnAuthPromise(true, requireEmailVerification); }, /** * Utility method which can be used in a route's resolve() method to grab the current * authentication data. * * @returns {Promise<Object|null>} A promise fulfilled with the client's current authentication * state, which will be null if the client is not authenticated. */ waitForSignIn: function() { return this._routerMethodOnAuthPromise(false, false); }, /*********************/ /* User Management */ /*********************/ /** * Creates a new phone/password user. Note that this function only creates the user, if you * wish to log in as the newly created user, call $authWithPassword() after the promise for * this method has been resolved. * * @param {string} phone An phone number for this user. * @param {string} password A password for this user. * @return {Promise<Object>} A promise fulfilled with the user object, which contains the * uid of the created user. */ createUserWithPhoneAndPassword: function(phone, password) { return this._q.when(this._auth.createUserWithPhoneAndPassword(phone, password)); }, /*********************/ /* User Management */ /*********************/ /** * Creates a new email/password user. Note that this function only creates the user, if you * wish to log in as the newly created user, call $authWithPassword() after the promise for * this method has been resolved. * * @param {string} email An email for this user. * @param {string} password A password for this user. * @return {Promise<Object>} A promise fulfilled with the user object, which contains the * uid of the created user. */ createUserWithEmailAndPassword: function(email, password) { return this._q.when(this._auth.createUserWithEmailAndPassword(email, password)); }, /** * Changes the profile for an user. * * @param {string} profile A new profile for the current user. * @return {Promise<>} An empty promise fulfilled once the profile change is complete. */ updateProfile: function(profile) { var user = this.getUser(); if (user) { return this._q.when(user.updateProfile(profile)); } else { return this._q.reject("Cannot update profile since there is no logged in user."); } }, /** * Changes the password for an email/password user. * * @param {string} password A new password for the current user. * @return {Promise<>} An empty promise fulfilled once the password change is complete. */ updatePassword: function(password) { var user = this.getUser(); if (user) { return this._q.when(user.updatePassword(password)); } else { return this._q.reject("Cannot update password since there is no logged in user."); } }, /** * Changes the phone for an phone/password user. * * @param {String} phone The new phone for the currently logged in user. * @return {Promise<>} An empty promise fulfilled once the phone change is complete. */ updatePhone: function(phone) { var user = this.getUser(); if (user) { return this._q.when(user.updatePhone(phone)); } else { return this._q.reject("Cannot update phone since there is no logged in user."); } }, /** * Changes the email for an email/password user. * * @param {String} email The new email for the currently logged in user. * @return {Promise<>} An empty promise fulfilled once the email change is complete. */ updateEmail: function(email) { var user = this.getUser(); if (user) { return this._q.when(user.updateEmail(email)); } else { return this._q.reject("Cannot update email since there is no logged in user."); } }, /** * Deletes the currently logged in user. * * @return {Promise<>} An empty promise fulfilled once the user is removed. */ deleteUser: function() { var user = this.getUser(); if (user) { return this._q.when(user.delete()); } else { return this._q.reject("Cannot delete user since there is no logged in user."); } }, /** * Sends a password reset phone to an phone/password user. * * @param {string} phone An phone address to send a password reset to. * @return {Promise<>} An empty promise fulfilled once the reset password phone is sent. */ sendPasswordResetPhone: function(phone) { return this._q.when(this._auth.sendPasswordResetSms(phone)); }, /** * Sends a password reset email to an email/password user. * * @param {string} email An email address to send a password reset to. * @return {Promise<>} An empty promise fulfilled once the reset password email is sent. */ sendPasswordResetEmail: function(email) { return this._q.when(this._auth.sendPasswordResetEmail(email)); } }; })();
var ps, pointCloud; function render() { var c = pointCloud.getCenter(); ps.translate(-c[0], -c[1], -30-c[2]); ps.clear(); ps.render(pointCloud); if(pointCloud.getStatus() === 3){ ps.onRender = function(){}; } } function start(){ ps = new PointStream(); ps.setup(document.getElementById('canvas')); ps.onRender = render; ps.background([0, 0, 0, 0.5]); ps.pointSize(5); pointCloud = ps.load("../../clouds/mickey_verts_cols.asc"); }
function foo() { return 0; }
var lintIssues = require('../lib/lintIssues'); describe('lintIssues', function () { it('should return warning of an uncommented issue', function () { var issues = [ { user: { login: 'jimbob' }, comments: 0, labels: ['a label'], title: 'This issue has no comments', html_url: 'This is a URL' } ]; var report = lintIssues(issues, 'joebloggs'); report.failures.should.containEql({ message: 'Uncommented issue', details: { url: 'This is a URL', title: 'This issue has no comments', suggestion: 'Comment on the issue to indicate acknowledgement' } }); report.failures.length.should.eql(1); }); it('should return no warnings if all issues are commented upon', function () { var issues = [ { user: { login: 'jimbob' }, comments: 1, labels: [], title: 'This issue has no comments', html_url: 'This is a URL' } ]; var report = lintIssues(issues, 'joebloggs'); report.failures.length.should.eql(0); }); it('should return no warnings if all untouched issues were opened by the repo author', function () { var issues = [ { user: { login: 'joebloggs' }, comments: 0, labels: [], title: 'This issue has no comments', html_url: 'This is a URL' } ]; var report = lintIssues(issues, 'joebloggs'); report.failures.length.should.eql(0); report.passes.length.should.eql(1); report.passes.should.containEql({ message: 'All open issues have been acknowledged' }); }); it('should return no warnings if all untouched issues were commented on or labeled', function () { var issues = [ { user: { login: 'jimbob' }, comments: 1, labels: [], title: 'This issue has no comments', html_url: 'This is a URL' }, { user: { login: 'jimbob' }, comments: 1, labels: ['alabel'], title: 'This issue has no comments', html_url: 'This is a URL' } ]; var report = lintIssues(issues, 'joebloggs'); report.failures.length.should.eql(0); report.passes.length.should.eql(1); report.passes.should.containEql({ message: 'All open issues have been acknowledged' }); }); it('should return warning of an untouched issue and uncommented issue', function () { var issues = [ { user: { login: 'jimbob' }, comments: 0, labels: [], title: 'This issue has no comments or labels', html_url: 'This is a URL' } ]; var report = lintIssues(issues, 'joebloggs'); report.failures.should.containEql({ message: 'Uncommented issue', details: { url: 'This is a URL', title: 'This issue has no comments or labels', suggestion: 'Comment on the issue to indicate acknowledgement' } }); report.failures.should.containEql({ message: 'Untouched issue', details: { url: 'This is a URL', title: 'This issue has no comments or labels', suggestion: 'Comment or label the issue to indicate acknowledgement' } }); report.failures.length.should.eql(2); }); });
(function () { 'use strict'; angular.module('openSnap') .service('OsSnippetApi', OsSnippetApi); OsSnippetApi.$inject = ['$resource', 'CONFIG']; function OsSnippetApi($resource, CONFIG) { var snippets = $resource(CONFIG.backendUrl + 'snippets/:id', { id: '@id' } ); return { 'service': snippets } } })();
/** * GroupController * @namespace classy.Group.controllers */ /** * BENSON: FYI this code is currently superfluous.. */ (function () { 'use strict'; angular .module('classy.groups.controllers') .controller('GroupController', GroupController); GroupController.$inject = ['$scope', '$rootScope', '$window', 'Posts', 'Authentication']; /** * @namespace GroupController */ function GroupController($scope, $rootScope, $window, Posts, Authentication) { var vm = this; vm.assignments = []; function activate() { console.log('group controller activated'); var promise = Posts.all; function sharedFollowingSuccessFn(data, status, headers, config) { console.log('fetching assignmnet'); for (var i = 0; i < data.data.length; i++) { console.log(data.data[i]); } } function sharedFollowingErrorFn(data, status, headers, config) { Snackbar.error(data.data.error); } } } })();
var classLudic_1_1Geometrics = [ [ "Geometrics", "df/d62/classLudic_1_1Geometrics_ae0a47573a0309d22cbfe41a1c2ee47cd.html#ae0a47573a0309d22cbfe41a1c2ee47cd", null ], [ "Geometrics", "df/d62/classLudic_1_1Geometrics_af4a507f3bbcdcac77a3f5c502b8a6e09.html#af4a507f3bbcdcac77a3f5c502b8a6e09", null ], [ "drawArc", "df/d62/classLudic_1_1Geometrics_ac5375dd1c278b8a23755be9096f616e9.html#ac5375dd1c278b8a23755be9096f616e9", null ], [ "drawCircle", "df/d62/classLudic_1_1Geometrics_aff3fe29fe6f5a66f147c5db190c0ac25.html#aff3fe29fe6f5a66f147c5db190c0ac25", null ], [ "drawEllipse", "df/d62/classLudic_1_1Geometrics_ac5f5d1222c1177c06c14a6ac5d219457.html#ac5f5d1222c1177c06c14a6ac5d219457", null ], [ "drawLine", "df/d62/classLudic_1_1Geometrics_ace9d6de545e77fe598ffaa26c73aa527.html#ace9d6de545e77fe598ffaa26c73aa527", null ], [ "drawRectangle", "df/d62/classLudic_1_1Geometrics_a030a8270360996a5a34bedf675dfa79b.html#a030a8270360996a5a34bedf675dfa79b", null ], [ "drawRoundedRectangle", "df/d62/classLudic_1_1Geometrics_a32c21eec4e3f9432396a69e97f821fca.html#a32c21eec4e3f9432396a69e97f821fca", null ], [ "drawSpline", "df/d62/classLudic_1_1Geometrics_a56b1b75580120763a2fa526e730d83e0.html#a56b1b75580120763a2fa526e730d83e0", null ], [ "drawTriangle", "df/d62/classLudic_1_1Geometrics_a4240c167b7c70e63c96414868f7d0733.html#a4240c167b7c70e63c96414868f7d0733", null ], [ "fillBackground", "df/d62/classLudic_1_1Geometrics_acdcf808555040644bf5ec5e5c5bda18d.html#acdcf808555040644bf5ec5e5c5bda18d", null ], [ "getFillColor", "df/d62/classLudic_1_1Geometrics_a52349d6b42908440f13d9bc9eeca012e.html#a52349d6b42908440f13d9bc9eeca012e", null ], [ "getLineColor", "df/d62/classLudic_1_1Geometrics_a2c0d16eba879ea0ef128646c69b91ab5.html#a2c0d16eba879ea0ef128646c69b91ab5", null ], [ "getThickness", "df/d62/classLudic_1_1Geometrics_aa548a7d52d6145cadf4b019053606c9c.html#aa548a7d52d6145cadf4b019053606c9c", null ], [ "setFillColor", "df/d62/classLudic_1_1Geometrics_a86fe3f8161fae84ad0247e770dd53ef0.html#a86fe3f8161fae84ad0247e770dd53ef0", null ], [ "setLineColor", "df/d62/classLudic_1_1Geometrics_accc634496f4b8a04c7789fa8b029ce1f.html#accc634496f4b8a04c7789fa8b029ce1f", null ], [ "setThickness", "df/d62/classLudic_1_1Geometrics_a6768ce1164a1583ae9f650f65ccd7372.html#a6768ce1164a1583ae9f650f65ccd7372", null ] ];
'use strict'; require('./_view-post.scss'); module.exports = { template: require('./view-post.html'), controllerAs: 'viewPostCtrl', controller: [ '$log', '$rootScope', '$window', '$location', 'postService', function($log, $rootScope, $window, $location, postService){ this.$onInit = () => { $log.debug('#view post controller'); this.post = JSON.parse($window.localStorage.currentPost); this.showViewPost = true; }; }], bindings: { post: '<', }, };
function getDateRange(startDate, endDate, addFn, interval) { addFn = addFn || Date.prototype.addDays; interval = interval || 1; var retVal = []; var current = new Date(startDate); var endDate = new Date(endDate); while (current <= endDate) { //console.log(current); retVal.push(new Date(current)); current = addFn.call(current, interval); } return retVal; }; angular.module("exambazaar").controller("editExamController", [ '$scope', 'thisexam', 'thisExamSections', 'streamList', 'ExamService', '$http', '$state', '$mdDialog', 'ImageService', 'Upload', '$timeout', 'testService', 'Notification', '$rootScope', '$cookies', 'testList', function($scope, thisexam, thisExamSections, streamList, ExamService, $http, $state, $mdDialog, ImageService, Upload, $timeout, testService, Notification, $rootScope, $cookies, testList){ $scope.exam = thisexam.data; if(!$scope.exam._default_entrance_exam){ $scope.exam._default_entrance_exam = { courses: [], _expected_salary_after_degree: '', }; } $scope.examSections = thisExamSections.data; $scope.exam.tests = testList.data; if(!$scope.exam.registration){ $scope.exam.registration = { website: '', mode: '', fee:{ general_obc: '', sc_st_ph: '', females: '', paymentModes: [], }, otherInformation:'', }; } $scope.streams = streamList.data; var allowedUsers = ['5a1831f0bd2adb260055e352']; if($cookies.getObject('sessionuser')){ $scope.user = $cookies.getObject('sessionuser'); }else{ $scope.user = null; } $scope.masterUser = false; if($scope.user && ($scope.user.userType == 'Master' || allowedUsers.indexOf($scope.user._id) != -1)){ $scope.masterUser = true; } $rootScope.pageTitle = $scope.exam.displayname; $scope.reload = function(){ $state.reload(); }; $scope.resultFormats = [ "Rank", "Percentile", "Percentage", "Marks", "Pass/Fail", ]; $scope.examFrequencies = [ "Yearly", "Half-Yearly", "Quarter-Yearly", "Monthly", "Anytime", ]; $scope.registrationModes = [ "Online", "Offline", "Both Online & Offline", ]; $scope.examModes = [ "Online", "Offline", "Both Online & Offline", ]; $scope.feePaymentModes = [ "Netbanking", "Credit Card", "Debit Card", "Wallets", "Demand Draft", "Challan", "Cash", ]; $scope.recommended_fors = [ "After 10th", "After 12th", "During or After UG", "During or After PG", "Anytime" ]; $scope.exam_levels = [ "National", "State", "University", "International" ]; $scope.exam_types = [ "Entrance Exam", "Recruitment Exam", "Certification", "Tuitions" ]; $scope.cycleYears = ["2016","2017","2018","2019","2020"]; $scope.timeSlots = ["06:00", "06:30", "07:00", "07:30", "08:00", "08:30", "09:00", "09:30", "10:00", "10:30", "11:00", "11:30", "12:00", "12:30", "13:00", "13:30", "14:00", "14:30", "15:00", "15:30", "16:00", "16:30", "17:00", "17:30", "18:00", "18:30", "19:00", "19:30", "20:00", "20:30", "21:00", "21:30", "22:00", "22:30", "23:00", "23:30", "00:00", "00:30", "01:00", "01:30", "02:00", "02:30", "03:00", "03:30", "04:00", "04:30", "05:00", "05:30"]; $scope.cycleNumbers = ["1","2","3","4","5","6","7","8","9","10","11","12"]; $scope.newOfficialLink = null; $scope.addNewOfficialLink = function(){ $scope.newOfficialLink = { url: '', description: '', }; }; $scope.removeOfficialLink = function(link, index){ if(index < $scope.exam.links.length ){ $scope.exam.links.splice(index, 1); } }; $scope.removeNewOfficialLink = function(){ $scope.newOfficialLink = null; }; $scope.saveNewOfficialLink = function(){ if($scope.newOfficialLink.url){ if(!$scope.exam.links){ $scope.exam.links = []; } $scope.exam.links.push($scope.newOfficialLink); console.log('Done'); $scope.newOfficialLink = null; } }; $scope.saveExam = function () { if($scope.newExamCycle){ $scope.saveNewExamCycle(); } if($scope.exam.examdegrees){ var degrees = []; $scope.exam.examdegrees.forEach(function(thisDegree, index){ if(thisDegree != ''){ degrees.push(thisDegree); } }); $scope.exam.examdegrees = degrees; } var saveExam = ExamService.saveExam($scope.exam).success(function (data, status, headers) { $scope.showSavedDialog(); console.log('Reloading!'); $state.reload(); }) .error(function (data, status, header, config) { console.log('Error ' + data + ' ' + status); }); }; $scope.addExamSection = function(){ var newSection = { exam: $scope.exam._id, name: '' }; $scope.examSections.push(newSection); }; $scope.saveExamSection = function(newExamSection){ if(newExamSection && newExamSection.name && newExamSection.name.length > 1){ ExamService.saveExamSection(newExamSection).success(function (data, status, headers) { if(data){ Notification.success("Great, we have saved " + data.name + " section"); }else{ Notification.warning("Something went wrong"); } }) .error(function (data, status, header, config) { console.log('Error ' + data + ' ' + status); }); }else{ Notification.warning("Exam Section Name should be longer than 1 character"); } }; $scope.showSavedDialog = function(ev) { $mdDialog.show({ contentElement: '#savedDialog', parent: angular.element(document.body), targetEvent: ev, clickOutsideToClose: true }); $timeout(function(){ $mdDialog.cancel(); },1000) }; $scope.feePaymentModeToggle = function(feePaymentMode){ var pIndex = $scope.exam.registration.fee.paymentModes.indexOf(feePaymentMode); console.log(pIndex); if(pIndex == -1){ $scope.exam.registration.fee.paymentModes.push(feePaymentMode); console.log($scope.exam.registration.fee.paymentModes); }else{ $scope.exam.registration.fee.paymentModes.splice(pIndex, 1); } }; $scope.feePaymentBadge = function(feePaymentMode){ var thisClass = "notExistingBage"; var pIndex = $scope.exam.registration.fee.paymentModes.indexOf(feePaymentMode); if(pIndex != -1){ thisClass = "existingBadge"; } return thisClass; }; $scope.$watch('exam.exampattern', function (newValue, oldValue, scope) { //Do anything with $scope.letters if(newValue != null){ //$scope.verifyOTP(); } }, true); //start of functions for tests $scope.toAddTest = null; $scope.removeTestConfirm = function(test){ if(test._id){ var confirm = $mdDialog.confirm() .title('Would you like to delete test titled '+ test.name +' ?') .textContent('You will not be able to recover them after this!') .ariaLabel('Lucky day') .targetEvent() .clickOutsideToClose(true) .ok('Confirm') .cancel('Cancel'); $mdDialog.show(confirm).then(function() { $scope.removeTest(test); }, function() { //nothing }); }else{ $scope.cancelNewTest(); } }; $scope.removeTest = function(test){ testService.removeTest(test._id).success(function (data, status, headers) { $scope.toAddTest = null; $scope.getExamTests(); }) .error(function (data, status, header, config) { console.log('Error ' + data + ' ' + status); }); }; $scope.addNewTest = function(){ $scope.toAddTest = { name: '', description: '', year: '2016', url: { question: null, answer: null, }, screenshots: [], exam: $scope.exam._id, official: true, mockPaper: false, solved: false, questionWithAnswer: false, }; }; $scope.setTest = function(test){ $scope.toAddTest = test; }; $scope.removeQuestionPaper = function(){ $scope.toAddTest.url.question = null; }; $scope.removeAnswerKey = function(){ $scope.toAddTest.url.answer = null; }; $scope.removeScreenshots = function(){ $scope.toAddTest.screenshots = []; }; $scope.getExamTests = function(){ testService.getExamTests($scope.exam._id).success(function (data, status, headers) { //console.log(data); $scope.exam.tests = data; if(data && data.length > 0){ Notification.success("Great, we have found " + data.length + " tests of " + $scope.exam.displayname); $scope.showSavedDialog(); $scope.cancelNewTest(); }else{ Notification.warning("Ok, we found no tests of " + $scope.exam.displayname + '. Lets add some!'); } }) .error(function (data, status, header, config) { console.log('Error ' + data + ' ' + status); }); } $scope.saveNewTest = function(){ testService.saveTest($scope.toAddTest).success(function (data, status, headers) { console.log(data); $scope.toAddTest = data; $scope.getExamTests(); }) .error(function (data, status, header, config) { console.log('Error ' + data + ' ' + status); }); }; $scope.cancelNewTest = function(){ $scope.toAddTest = null; }; //end of functions for tests $scope.addDegree = function(){ if(!$scope.exam.examdegrees){ $scope.exam.examdegrees = []; } $scope.exam.examdegrees.push(''); }; $scope.removeLastDegree = function(){ if($scope.exam.examdegrees){ $scope.exam.examdegrees.pop(); } }; $scope.addRssKeyword = function(){ if(!$scope.exam._rssarticleKeywords){ $scope.exam._rssarticleKeywords = []; } $scope.exam._rssarticleKeywords.push(''); }; $scope.removeLastRssKeyword = function(){ if($scope.exam._rssarticleKeywords){ $scope.exam._rssarticleKeywords.pop(); } }; //start of upload functions //upload helper functions for test papers $scope.uploadAnswerKey = function (newanswerkey) { var answerkey = [newanswerkey]; var nFiles = answerkey.length; var counter = 0; if (answerkey && answerkey.length) { answerkey.forEach(function(thisFile, index){ var fileInfo = { filename: thisFile.name, contentType: thisFile.type }; ImageService.s3Credentials(fileInfo).success(function (data, status, headers) { var s3Request = {}; var allParams = data.params; for (var key in allParams) { if (allParams.hasOwnProperty(key)) { s3Request[key] = allParams[key]; } } s3Request.file = thisFile; Upload.upload({ url: data.endpoint_url, data: s3Request }).then(function (resp) { console.log('Success ' + thisFile.name + 'uploaded. Response: ' + resp.data); var answerkeyLink = $(resp.data).find('Location').text(); $scope.toAddTest.url.answer = answerkeyLink; }, function (resp) { console.log('Error status: ' + resp.status); }, function (evt) { }); }) .error(function (data, status, header, config) { console.log("Error"); }); }); } }; $scope.uploadQuestionPaper = function (newquestionpaper) { var questionpaper = [newquestionpaper]; var nFiles = questionpaper.length; var counter = 0; if (questionpaper && questionpaper.length) { questionpaper.forEach(function(thisFile, index){ var fileInfo = { filename: thisFile.name, contentType: thisFile.type }; var fileName = fileInfo.filename; var splits = fileName.split('.'); fileName = splits[0]; ImageService.s3Credentials(fileInfo).success(function (data, status, headers) { var s3Request = {}; var allParams = data.params; for (var key in allParams) { if (allParams.hasOwnProperty(key)) { s3Request[key] = allParams[key]; } } s3Request.file = thisFile; Upload.upload({ url: data.endpoint_url, data: s3Request }).then(function (resp) { console.log('Success ' + thisFile.name + 'uploaded. Response: ' + resp.data); var questionpaperLink = $(resp.data).find('Location').text(); $scope.toAddTest.url.question = questionpaperLink; $scope.toAddTest.name = fileName; }, function (resp) { $scope.respError = resp; console.log($scope.respError); console.log('Error status: ' + resp.status); }, function (evt) { $scope.uploadProgress = parseInt(100.0 * evt.loaded / evt.total); console.log($scope.uploadProgress); }); }) .error(function (data, status, header, config) { console.log("Error"); }); }); } }; $scope.uploadOPCoverPhoto = function (newcoverphoto) { var coverphoto = [newcoverphoto]; var nFiles = coverphoto.length; var counter = 0; if (coverphoto && coverphoto.length) { coverphoto.forEach(function(thisFile, index){ var fileInfo = { filename: thisFile.name, contentType: thisFile.type }; ImageService.s3Credentials(fileInfo).success(function (data, status, headers) { var s3Request = {}; var allParams = data.params; for (var key in allParams) { if (allParams.hasOwnProperty(key)) { s3Request[key] = allParams[key]; } } s3Request.file = thisFile; Upload.upload({ url: data.endpoint_url, data: s3Request }).then(function (resp) { console.log('Success ' + thisFile.name + 'uploaded. Response: ' + resp.data); var coverphotoLink = $(resp.data).find('Location').text(); var newCoverPhotoForm ={ coverphoto: coverphotoLink, examId: $scope.exam._id }; if(newCoverPhotoForm.examId){ ExamService.addCoverPhoto(newCoverPhotoForm).success(function (data, status, headers) { counter = counter + 1; $scope.showSavedDialog(); $state.reload(); }) .error(function (data, status, header, config) { console.log("Error "); }); }else{ $scope.saveExamFirstDialog(); } }, function (resp) { console.log('Error status: ' + resp.status); }, function (evt) { }); }) .error(function (data, status, header, config) { console.log("Error"); }); }); } }; $scope.uploadLogo = function (newlogo) { var logo = [newlogo]; var nFiles = logo.length; var counter = 0; if (logo && logo.length) { logo.forEach(function(thisFile, index){ var fileInfo = { filename: thisFile.name, contentType: thisFile.type }; ImageService.s3Credentials(fileInfo).success(function (data, status, headers) { var s3Request = {}; var allParams = data.params; for (var key in allParams) { if (allParams.hasOwnProperty(key)) { s3Request[key] = allParams[key]; } } s3Request.file = thisFile; Upload.upload({ url: data.endpoint_url, data: s3Request }).then(function (resp) { console.log('Success ' + thisFile.name + 'uploaded. Response: ' + resp.data); var logoLink = $(resp.data).find('Location').text(); var newLogoForm ={ logo: logoLink, examId: $scope.exam._id }; if(newLogoForm.examId){ ExamService.addLogo(newLogoForm).success(function (data, status, headers) { counter = counter + 1; $scope.showSavedDialog(); $state.reload(); }) .error(function (data, status, header, config) { console.log("Error "); }); }else{ $scope.saveExamFirstDialog(); } }, function (resp) { console.log('Error status: ' + resp.status); }, function (evt) { }); }) .error(function (data, status, header, config) { console.log("Error"); }); }); } }; $scope.uploadEQADLogo = function (newlogo) { var logo = [newlogo]; var nFiles = logo.length; var counter = 0; if (logo && logo.length) { logo.forEach(function(thisFile, index){ var fileInfo = { filename: thisFile.name, contentType: thisFile.type }; ImageService.s3Credentials(fileInfo).success(function (data, status, headers) { var s3Request = {}; var allParams = data.params; for (var key in allParams) { if (allParams.hasOwnProperty(key)) { s3Request[key] = allParams[key]; } } s3Request.file = thisFile; Upload.upload({ url: data.endpoint_url, data: s3Request }).then(function (resp) { console.log('Success ' + thisFile.name + 'uploaded. Response: ' + resp.data); var logoLink = $(resp.data).find('Location').text(); var newLogoForm ={ logo: logoLink, examId: $scope.exam._id }; if(newLogoForm.examId){ ExamService.addEQADLogo(newLogoForm).success(function (data, status, headers) { counter = counter + 1; $scope.showSavedDialog(); $state.reload(); }) .error(function (data, status, header, config) { console.log("Error "); }); }else{ $scope.saveExamFirstDialog(); } }, function (resp) { console.log('Error status: ' + resp.status); }, function (evt) { }); }) .error(function (data, status, header, config) { console.log("Error"); }); }); } }; $scope.uploadEQADCoverPhoto = function (newcoverphoto) { var coverphoto = [newcoverphoto]; var nFiles = coverphoto.length; var counter = 0; if (coverphoto && coverphoto.length) { coverphoto.forEach(function(thisFile, index){ var fileInfo = { filename: thisFile.name, contentType: thisFile.type }; ImageService.s3Credentials(fileInfo).success(function (data, status, headers) { var s3Request = {}; var allParams = data.params; for (var key in allParams) { if (allParams.hasOwnProperty(key)) { s3Request[key] = allParams[key]; } } s3Request.file = thisFile; Upload.upload({ url: data.endpoint_url, data: s3Request }).then(function (resp) { console.log('Success ' + thisFile.name + 'uploaded. Response: ' + resp.data); var coverphotoLink = $(resp.data).find('Location').text(); var newCoverPhotoForm ={ coverphoto: coverphotoLink, examId: $scope.exam._id }; if(newCoverPhotoForm.examId){ ExamService.addEQADCoverPhoto(newCoverPhotoForm).success(function (data, status, headers) { counter = counter + 1; $scope.showSavedDialog(); $state.reload(); }) .error(function (data, status, header, config) { console.log("Error "); }); }else{ $scope.saveExamFirstDialog(); } }, function (resp) { console.log('Error status: ' + resp.status); }, function (evt) { }); }) .error(function (data, status, header, config) { console.log("Error"); }); }); } }; $scope.uploadScreenshots = function (photos) { var nFiles = photos.length; var counter = 0; $scope.photoProgess = 0; if (photos && photos.length) { photos.forEach(function(thisFile, index){ var fileInfo = { filename: thisFile.name, contentType: thisFile.type }; ImageService.s3Credentials(fileInfo).success(function (data, status, headers) { var s3Request = {}; var allParams = data.params; for (var key in allParams) { if (allParams.hasOwnProperty(key)) { s3Request[key] = allParams[key]; } } s3Request.file = thisFile; Upload.upload({ url: data.endpoint_url, data: s3Request }).then(function (resp) { console.log('Success ' + thisFile.name + 'uploaded. Response: ' + resp.data); thisFile.link = $(resp.data).find('Location').text(); $scope.toAddTest.screenshots.push(thisFile.link); }, function (resp) { console.log('Error status: ' + resp.status); }, function (evt) { $scope.photoProgess = 0; thisFile.uploadProgress = parseInt(100.0 * evt.loaded / evt.total); photos.forEach(function(thisPhoto, index){ console.log(index + ' ' + thisPhoto.uploadProgress + ' ' + nFiles); if(!thisPhoto.uploadProgress){ thisPhoto.uploadProgress = 0; } $scope.photoProgess += thisPhoto.uploadProgress; //console.log($scope.photoProgess); }); $scope.photoProgess = $scope.photoProgess / nFiles; //console.log('progress: ' + thisFile.uploadProgress + '% ' + thisFile.name); }); }) .error(function (data, status, header, config) { console.log("Error"); }); }); } }; //upload helper functions for exam cycles $scope.uploadSyllabus = function (syllabuses) { var nFiles = syllabuses.length; var counter = 0; if (syllabuses && syllabuses.length) { syllabuses.forEach(function(thisFile, index){ var fileInfo = { filename: thisFile.name, contentType: thisFile.type }; ImageService.s3Credentials(fileInfo).success(function (data, status, headers) { var s3Request = {}; var allParams = data.params; for (var key in allParams) { if (allParams.hasOwnProperty(key)) { s3Request[key] = allParams[key]; } } s3Request.file = thisFile; Upload.upload({ url: data.endpoint_url, data: s3Request }).then(function (resp) { console.log('Success ' + thisFile.name + 'uploaded. Response: ' + resp.data); thisFile.link = $(resp.data).find('Location').text(); var newSyllabus = { name: '', description: '', url: thisFile.link, }; $scope.newExamCycle.syllabus.push(newSyllabus); }, function (resp) { console.log('Error status: ' + resp.status); }, function (evt) { }); }) .error(function (data, status, header, config) { console.log("Error"); }); }); } }; $scope.uploadDocs = function (docs) { var nFiles = docs.length; var counter = 0; if (docs && docs.length) { docs.forEach(function(thisFile, index){ var fileInfo = { filename: thisFile.name, contentType: thisFile.type }; ImageService.s3Credentials(fileInfo).success(function (data, status, headers) { var s3Request = {}; var allParams = data.params; for (var key in allParams) { if (allParams.hasOwnProperty(key)) { s3Request[key] = allParams[key]; } } s3Request.file = thisFile; Upload.upload({ url: data.endpoint_url, data: s3Request }).then(function (resp) { console.log('Success ' + thisFile.name + 'uploaded. Response: ' + resp.data); thisFile.link = $(resp.data).find('Location').text(); var newDoc = { name: '', description: '', url: thisFile.link, }; if(!$scope.newExamCycle.docs){ $scope.newExamCycle.docs = []; } $scope.newExamCycle.docs.push(newDoc); }, function (resp) { console.log('Error status: ' + resp.status); }, function (evt) { }); }) .error(function (data, status, header, config) { console.log("Error"); }); }); } }; $scope.uploadBrochure = function (brochures) { var nFiles = brochures.length; var counter = 0; $scope.photoProgess = 0; if (brochures && brochures.length) { brochures.forEach(function(thisFile, index){ var fileInfo = { filename: thisFile.name, contentType: thisFile.type }; ImageService.s3Credentials(fileInfo).success(function (data, status, headers) { var s3Request = {}; var allParams = data.params; for (var key in allParams) { if (allParams.hasOwnProperty(key)) { s3Request[key] = allParams[key]; } } s3Request.file = thisFile; Upload.upload({ url: data.endpoint_url, data: s3Request }).then(function (resp) { console.log('Success ' + thisFile.name + 'uploaded. Response: ' + resp.data); thisFile.link = $(resp.data).find('Location').text(); var newBrochure = { name: '', description: '', url: thisFile.link, }; $scope.newExamCycle.brochure.push(newBrochure); }, function (resp) { console.log('Error status: ' + resp.status); }, function (evt) { $scope.photoProgess = 0; thisFile.uploadProgress = parseInt(100.0 * evt.loaded / evt.total); brochures.forEach(function(thisBrochure, index){ console.log(index + ' ' + thisBrochure.uploadProgress + ' ' + nFiles); if(!thisBrochure.uploadProgress){ thisBrochure.uploadProgress = 0; } $scope.photoProgess += thisBrochure.uploadProgress; //console.log($scope.photoProgess); }); $scope.photoProgess = $scope.photoProgess / nFiles; //console.log('progress: ' + thisFile.uploadProgress + '% ' + thisFile.name); }); }) .error(function (data, status, header, config) { console.log("Error"); }); }); } }; //end of upload functions $scope.newExamCycle = null; $scope.addNewExamCycle = function(){ $scope.newExamCycle = { year: '2018', cycleNumber: '1', name: '', description: '', brochure: [], syllabus: [], docs: [], active: false, examMode: false, studentsAppearing: '', studentSeats: '', steps: { registration: false, admitCard: false, examDate: false, writtenResultDate: false, counselling: false, interview: false, finalResultDate: false, text: '' }, examdates:{ registration:{ start: { _date: new Date(), tentative: false, applicable: false, }, end: { _date: new Date(), tentative: false, applicable: false, }, endwithlatefees: { _date: new Date(), tentative: false, applicable: false, }, text: '', }, admitCard:{ start: { _date: new Date(), tentative: false, applicable: false, }, end: { _date: new Date(), tentative: false, applicable: false, }, text: '', }, examDate:{ start: { _date: new Date(), tentative: false, applicable: false, }, end: { _date: new Date(), tentative: false, applicable: false, }, text: '', }, writtenResultDate:{ start: { _date: new Date(), tentative: false, applicable: false, }, end: { _date: new Date(), tentative: false, applicable: false, }, text: '', }, counselling:{ start: { _date: new Date(), tentative: false, applicable: false, }, end: { _date: new Date(), tentative: false, applicable: false, }, text: '', }, interview:{ start: { _date: new Date(), tentative: false, applicable: false, }, end: { _date: new Date(), tentative: false, applicable: false, }, text: '', }, finalResultDate:{ start: { _date: new Date(), tentative: false, applicable: false, }, end: { _date: new Date(), tentative: false, applicable: false, }, text: '', }, }, }; }; $scope.cancelNewExamCycle = function(){ $scope.newExamCycle = null; }; $scope.setExamCycle = function(cycle){ $scope.newExamCycle = cycle; //console.log(cycle); }; $scope.stepTypes = ["Registration", "Admit Card", "Written", "Counselling", "Result", "Interview"]; $scope.writtenStepNames = ["Prelims", "Mains", "Other"]; $scope.newExamStep = null; var today = moment(); $scope.toAddDate = new Date(); $scope.toAddDate.setUTCHours(0,0,0,0); var today = new Date(); today.setUTCHours(0,0,0,0); $scope.toAddTimeRange = null; $scope.addNewExamStep = function(newExamCycle){ $scope.newExamStep = { name: 'Prelims', description: '', stepType: 'Written', //Written, Counselling, Interview otherName: '', stepDate:{ dateRangeBool: true, timeRangeBool: true, dateRange:{ startDate: today, endDate: today, }, dateArray:[], timeRange:[], dates:[], allDates:[], }, }; if(!newExamCycle.examSteps){ newExamCycle.examSteps = []; } newExamCycle.examSteps.push($scope.newExamStep); $scope.toAddTimeRange = $scope.newExamStep.stepDate.timeRange[0]; console.log($scope.toAddTimeRange); }; //"Registration", "Admit Card", "Written", "Counselling", "Interview" $scope.addRegistration = function(newExamCycle){ $scope.newExamStep = { name: '', description: '', stepType: 'Registration', //Written, Counselling, Interview otherName: '', stepDate:{ dateRangeBool: true, timeRangeBool: true, dateRange:{ startDate: today, endDate: today, }, dateArray:[], timeRange:[], dates:[], allDates:[], }, }; if(!newExamCycle.examSteps){ newExamCycle.examSteps = []; } newExamCycle.examSteps.push($scope.newExamStep); }; $scope.addAdmitCard = function(newExamCycle){ $scope.newExamStep = { name: '', description: '', stepType: 'Admit Card', //Written, Counselling, Interview otherName: '', stepDate:{ dateRangeBool: true, timeRangeBool: true, dateRange:{ startDate: today, endDate: today, }, dateArray:[], timeRange:[], dates:[], allDates:[], }, }; if(!newExamCycle.examSteps){ newExamCycle.examSteps = []; } newExamCycle.examSteps.push($scope.newExamStep); }; $scope.addWritten = function(newExamCycle){ $scope.newExamStep = { name: '', description: '', stepType: 'Written', //Written, Counselling, Interview otherName: '', stepDate:{ dateRangeBool: true, timeRangeBool: true, dateRange:{ startDate: today, endDate: today, }, dateArray:[], timeRange:[], dates:[], allDates:[], }, }; if(!newExamCycle.examSteps){ newExamCycle.examSteps = []; } newExamCycle.examSteps.push($scope.newExamStep); }; $scope.addCounselling = function(newExamCycle){ $scope.newExamStep = { name: '', description: '', stepType: 'Counselling', //Written, Counselling, Interview otherName: '', stepDate:{ dateRangeBool: true, timeRangeBool: true, dateRange:{ startDate: today, endDate: today, }, dateArray:[], timeRange:[], dates:[], allDates:[], }, }; if(!newExamCycle.examSteps){ newExamCycle.examSteps = []; } newExamCycle.examSteps.push($scope.newExamStep); }; $scope.addResult = function(newExamCycle){ $scope.newExamStep = { name: '', description: '', stepType: 'Result', //Written, Counselling, Interview otherName: '', stepDate:{ dateRangeBool: true, timeRangeBool: true, dateRange:{ startDate: today, endDate: today, }, dateArray:[], timeRange:[], dates:[], allDates:[], }, }; if(!newExamCycle.examSteps){ newExamCycle.examSteps = []; } newExamCycle.examSteps.push($scope.newExamStep); }; $scope.addInterview = function(newExamCycle){ $scope.newExamStep = { name: '', description: '', stepType: 'Interview', //Written, Counselling, Interview otherName: '', stepDate:{ dateRangeBool: true, timeRangeBool: true, dateRange:{ startDate: today, endDate: today, }, dateArray:[], timeRange:[], dates:[], allDates:[], }, }; if(!newExamCycle.examSteps){ newExamCycle.examSteps = []; } newExamCycle.examSteps.push($scope.newExamStep); }; $scope.moveStepBefore = function(newExamCycle, $index){ var nLength = newExamCycle.examSteps.length; if($index > 0){ var stepBefore = newExamCycle.examSteps[$index - 1]; var thisStep = newExamCycle.examSteps[$index]; newExamCycle.examSteps[$index - 1] = thisStep; newExamCycle.examSteps[$index] = stepBefore; } }; $scope.moveStepAfter = function(newExamCycle, $index){ var nLength = newExamCycle.examSteps.length; if($index < nLength-1){ var stepAfter = newExamCycle.examSteps[$index + 1]; var thisStep = newExamCycle.examSteps[$index]; newExamCycle.examSteps[$index + 1] = thisStep; newExamCycle.examSteps[$index] = stepAfter; } }; $scope.addNewExamDate = function(newExamCycle, toAddDate){ if(!$scope.newExamStep.stepDate.dateArray){ $scope.newExamStep.stepDate.dateArray = []; } toAddDate.setUTCHours(0,0,0,0); console.log(toAddDate); $scope.newExamStep.stepDate.dateArray.push(toAddDate); $scope.buildSlots(); }; $scope.addNewTimeRange = function(newExamCycle, toAddTimeRange){ if(!$scope.newExamStep.stepDate.timeRange){ $scope.newExamStep.stepDate.timeRange = []; } var exists = false; var overlaps = false; $scope.newExamStep.stepDate.timeRange.forEach(function(thisRange, rindex){ if(thisRange.startTime == toAddTimeRange.startTime && thisRange.endTime == toAddTimeRange.endTime){ exists = true; } var trst = $scope.timeSlots.indexOf(thisRange.startTime); var tret = $scope.timeSlots.indexOf(thisRange.endTime); var tast = $scope.timeSlots.indexOf(toAddTimeRange.startTime); var taet = $scope.timeSlots.indexOf(toAddTimeRange.endTime); if(trst < tast && tret > tast){ overlaps = true; } if(trst < taet && tret > taet){ overlaps = true; } }); if(!exists && !overlaps){ var newTimeRange = { startTime: toAddTimeRange.startTime, endTime: toAddTimeRange.endTime, } $scope.newExamStep.stepDate.timeRange.push(newTimeRange); Notification.success("Time slot added successfully!"); }else{ if(exists){ Notification.warning("Did not add this time slot, as it already exists!"); } if(overlaps){ Notification.warning("Did not add this time slot, as it overlaps with an existing timeslot!"); } } $scope.buildSlots(); }; $scope.removeExamDate = function(index){ if(index < $scope.newExamStep.stepDate.allDates.length){ $scope.newExamStep.stepDate.allDates.splice(index, 1); } }; $scope.removeTimeRange = function(index){ if(index < $scope.newExamStep.stepDate.timeRange.length){ $scope.newExamStep.stepDate.timeRange.splice(index, 1); } }; $scope.removeDates = function(index){ if(index < $scope.newExamStep.stepDate.dates.length){ $scope.newExamStep.stepDate.dates.splice(index, 1); } }; $scope.buildSlots = function(){ var allDates = $scope.newExamStep.stepDate.allDates; var timeRange = $scope.newExamStep.stepDate.timeRange; if(allDates.length > 0 && timeRange.length > 0){ $scope.newExamStep.stepDate.dates = []; allDates.forEach(function(thisDate, dindex){ timeRange.forEach(function(thisRange, tindex){ var startTime = thisRange.startTime; var endTime = thisRange.endTime; var startDateTime = new Date(thisDate); var endDateTime = new Date(thisDate); if(startTime){ var res = startTime.split(":"); var hours = res[0]; var minutes = res[1]; startDateTime.setHours(hours); startDateTime.setMinutes(minutes); } if(endTime){ var res = endTime.split(":"); var hours = res[0]; var minutes = res[1]; endDateTime.setHours(hours); endDateTime.setMinutes(minutes); } var newDate = { start: startDateTime, end: endDateTime, name: '', }; $scope.newExamStep.stepDate.dates.push(newDate); }); }); } //console.log($scope.newExamStep.stepDate.dates); }; $scope.$watch('newExamStep.stepDate.dateRange', function (newValue, oldValue, scope) { if(newValue != null){ if($scope.newExamStep.stepDate.dateRangeBool){ var dateRange = getDateRange($scope.newExamStep.stepDate.dateRange.startDate, $scope.newExamStep.stepDate.dateRange.endDate); $scope.newExamStep.stepDate.allDates = dateRange; } } }, true); $scope.$watch('newExamStep.stepDate.timeRangeBool', function (newValue, oldValue, scope) { if(newValue != null){ if(newValue == true){ $scope.newExamStep.stepDate.timeRange = [{ startTime: '00:00', endTime: '23:00', }]; }else{ if($scope.newExamStep.stepDate.timeRange){ //console.log($scope.newExamStep.stepDate.timeRange); $scope.newExamStep.stepDate.timeRange.forEach(function(thisRange, rindex){ if(thisRange.startTime == "00:00" && thisRange.endTime == "23:00"){ $scope.newExamStep.stepDate.timeRange.splice(rindex, 1); } }); } } } }, true); $scope.$watch('newExamStep.stepDate.dateRangeBool', function (newValue, oldValue, scope) { if(newValue != null){ if(newValue == true){ if(!$scope.newExamStep.stepDate.dateRange.startDate){ $scope.newExamStep.stepDate.dateRange.startDate = new Date(); $scope.newExamStep.stepDate.dateRange.startDate.setUTCHours(0,0,0,0); } if(!$scope.newExamStep.stepDate.dateRange.endDate){ $scope.newExamStep.stepDate.dateRange.endDate = new Date(); $scope.newExamStep.stepDate.dateRange.endDate.setUTCHours(0,0,0,0); } var dateRange = getDateRange($scope.newExamStep.stepDate.dateRange.startDate, $scope.newExamStep.stepDate.dateRange.endDate); $scope.newExamStep.stepDate.allDates = dateRange; $scope.newExamStep.stepDate.dateArray = []; }else{ $scope.newExamStep.stepDate.dates = []; $scope.newExamStep.stepDate.allDates = []; $scope.newExamStep.stepDate.dateRange.startDate = null; $scope.newExamStep.stepDate.dateRange.endDate = null; if(!$scope.newExamStep.stepDate.dateArray){ $scope.newExamStep.stepDate.dateArray = []; } $scope.newExamStep.stepDate.allDates = $scope.newExamStep.stepDate.dateArray; $scope.buildSlots(); //$scope.newExamStep.stepDate.dateArray = []; } } }, true); $scope.setExamStep = function(examStep){ $scope.newExamStep = examStep; //console.log(examStep); }; $scope.removeExamStep = function(newExamCycle, index){ if(index < newExamCycle.examSteps.length){ newExamCycle.examSteps.splice(index, 1); } //console.log(examStep); }; $scope.markCycleInstitutions = function(){ if(!$scope.newExamCycle._entrance_exam._institutions || $scope.newExamCycle._entrance_exam._institutions.length == 0){ $scope.newExamCycle._entrance_exam._institutions = [{ institute: '', city: '', }]; } $mdDialog.show({ contentElement: '#institutionsDialog', parent: angular.element(document.body), targetEvent: null, clickOutsideToClose: false, escapeToClose: false, }); }; $scope.markDefaultCycleCourses = function(){ $mdDialog.show({ contentElement: '#defaultcoursesDialog', parent: angular.element(document.body), targetEvent: null, clickOutsideToClose: false, escapeToClose: false, }); }; $scope.markCycleCourses = function(){ /*if(!$scope.newExamCycle._entrance_exam._courses || $scope.newExamCycle._entrance_exam._courses.length == 0){ $scope.newExamCycle._entrance_exam._courses = []; }*/ $mdDialog.show({ contentElement: '#coursesDialog', parent: angular.element(document.body), targetEvent: null, clickOutsideToClose: false, escapeToClose: false, }); }; $scope.flipDegree = function(cycle, degree){ if(!cycle._entrance_exam._courses || cycle._entrance_exam._courses.length == 0){ cycle._entrance_exam._courses = []; } var courseNames = []; if(cycle._entrance_exam._courses.length > 0){ courseNames = cycle._entrance_exam._courses.map(function(a) {return a.name;}); } var dIndex = courseNames.indexOf(degree); if(dIndex == -1){ var newObj = { name: degree }; cycle._entrance_exam._courses.push(newObj); }else{ cycle._entrance_exam._courses.splice(dIndex, 1); } }; $scope.flipDefaultDegree = function(exam, degree){ if(!exam._default_entrance_exam){ exam._default_entrance_exam = { courses: [], _expected_salary_after_degree: '', }; } if(!exam._default_entrance_exam._courses || exam._default_entrance_exam._courses.length == 0){ exam._default_entrance_exam._courses = []; } var courseNames = []; if(exam._default_entrance_exam._courses.length > 0){ courseNames = exam._default_entrance_exam._courses.map(function(a) {return a.name;}); } var dIndex = courseNames.indexOf(degree); if(dIndex == -1){ var newObj = { name: degree }; exam._default_entrance_exam._courses.push(newObj); }else{ exam._default_entrance_exam._courses.splice(dIndex, 1); } }; $scope.examCycleCourses = [ {stream: "Law",exams: ["B.A. LL.B. (Hons.)","B.Com. LL.B. (Hons.)","B.B.A. LL.B. (Hons.)","B.Sc. LL.B. (Hons.)","B.Tech. LL.B. (Hons.)","B.A. LL.B.","B.Com. LL.B. ","B.B.A. LL.B. ","B.Sc. LL.B. ","B.S.W. LL.B. ","LL.B.","LL.M.",]}, {stream: "Engineering",exams: ["B.E.","B.Tech.","B.Tech. + M.Tech.","M.Tech.",]}, {stream: "Management",exams: ["M.B.A.","P.G.D.M.","Exec MBA","Exec PGDM","FPM",]}, {stream: "Medical",exams: ["B.D.S.","M.B.B.S","B.Opto.","B.Pharm.","B.Sc. Nursing","M.D.S.","M.D.","M.S.","B.Pharm. + M.Pharm.","M.Sc. Nursing","M.Biotech.","M.P.H.",]}, {stream: "Design",exams: ["B.Arch.","B.Des.","B.FTech.","B.Planning.","G.D.P.D.","M.Arch.","M.Des.","M.F.M.","M.FTech.",]}, {stream: "Science",exams: ["B.Sc.","B.Sc. + M.Sc.","M.Sc.",]}, {stream: "Arts and Commerce",exams: ["B.A.","B.Com.",]}, ]; var degreeArray = $scope.examCycleCourses.map(function(a) {return a.exams;}); $scope.allDegrees = []; degreeArray.forEach(function(thisDegreeArray, dindex){ $scope.allDegrees = $scope.allDegrees.concat(thisDegreeArray); }); $scope.degreeClass = function(cycle, degree){ if(cycle && cycle._entrance_exam && cycle._entrance_exam._courses){ var courseNames = cycle._entrance_exam._courses.map(function(a) {return a.name;}); if(!courseNames){ courseNames = []; } var dIndex = courseNames.indexOf(degree); if(dIndex != -1){ return "selected"; }else{ return ""; } }else{ return ""; } }; $scope.defaultdegreeClass = function(exam, degree){ if(exam && exam._default_entrance_exam && exam._default_entrance_exam._courses){ var courseNames = exam._default_entrance_exam._courses.map(function(a) {return a.name;}); if(!courseNames){ courseNames = []; } var dIndex = courseNames.indexOf(degree); if(dIndex != -1){ return "selected"; }else{ return ""; } }else{ return ""; } }; $scope.markCycleRecruitingOrganisations = function(){ if(!$scope.newExamCycle._recruitment_exam._recruiting_organisations || $scope.newExamCycle._recruitment_exam._recruiting_organisations.length == 0){ $scope.newExamCycle._recruitment_exam._recruiting_organisations = [{ body: '', vacancies: '', }]; } $mdDialog.show({ contentElement: '#recruitingOrganisationsDialog', parent: angular.element(document.body), targetEvent: null, clickOutsideToClose: false, escapeToClose: false, }); }; $scope.markCyclePositions = function(){ if(!$scope.newExamCycle._recruitment_exam._positions || $scope.newExamCycle._recruitment_exam._positions.length == 0){ $scope.newExamCycle._recruitment_exam._positions = [{ position: '', salary: '', }]; } $mdDialog.show({ contentElement: '#positionsDialog', parent: angular.element(document.body), targetEvent: null, clickOutsideToClose: false, escapeToClose: false, }); }; $scope.closeDialog = function(){ $mdDialog.hide(); }; $scope.saveNewExamCycle = function(){ console.log($scope.newExamCycle); if(!$scope.exam.cycle){ $scope.exam.cycle = []; } if($scope.newExamCycle && $scope.newExamCycle._entrance_exam && $scope.newExamCycle._entrance_exam._institutions && $scope.newExamCycle._entrance_exam._institutions.length > 0){ var _institutions = []; $scope.newExamCycle._entrance_exam._institutions.forEach(function(thisInstitute, cindex){ if(thisInstitute.institute && thisInstitute.institute != '' && thisInstitute.city && thisInstitute.city != ''){ _institutions.push(thisInstitute); } }); $scope.newExamCycle._entrance_exam._institutions = _institutions; } /*if($scope.newExamCycle && $scope.newExamCycle._entrance_exam && $scope.newExamCycle._entrance_exam._courses && $scope.newExamCycle._entrance_exam._courses.length > 0){ var _courses = []; $scope.newExamCycle._entrance_exam._courses.forEach(function(thisCourse, cindex){ if(thisCourse.name && thisCourse.name != ''){ _courses.push(thisCourse); } }); $scope.newExamCycle._entrance_exam._courses = _courses; }*/ if($scope.newExamCycle && $scope.newExamCycle._recruitment_exam && $scope.newExamCycle._recruitment_exam._recruiting_organisations && $scope.newExamCycle._recruitment_exam._recruiting_organisations.length > 0){ var _recruiting_organisations = []; $scope.newExamCycle._recruitment_exam._recruiting_organisations.forEach(function(thisRO, rindex){ if(thisRO.body && thisRO.body != '' && thisRO.vacancies && thisRO.vacancies != ''){ _recruiting_organisations.push(thisRO); } }); $scope.newExamCycle._recruitment_exam._recruiting_organisations = _recruiting_organisations; } if($scope.newExamCycle && $scope.newExamCycle._recruitment_exam && $scope.newExamCycle._recruitment_exam._positions && $scope.newExamCycle._recruitment_exam._positions.length > 0){ var _positions = []; $scope.newExamCycle._recruitment_exam._positions.forEach(function(thisPosition, pindex){ if(thisPosition.position && thisPosition.position != '' && thisPosition.salary && thisPosition.salary != ''){ _positions.push(thisPosition); } }); $scope.newExamCycle._recruitment_exam._positions = _positions; } var examCylceIds = $scope.exam.cycle.map(function(a) {return a._id;}); var examCycleNames = $scope.exam.cycle.map(function(a) {return a.name;}); if($scope.newExamCycle && $scope.newExamCycle._id){ var cIndex = examCylceIds.indexOf($scope.newExamCycle._id); if(cIndex != -1){ $scope.exam.cycle[cIndex] = $scope.newExamCycle; }else{ $scope.exam.cycle.push($scope.newExamCycle); } }else{ var thisCycleName = $scope.newExamCycle.name; var cIndex = examCycleNames.indexOf(thisCycleName); if(cIndex != -1){ $scope.exam.cycle[cIndex] = $scope.newExamCycle; }else{ $scope.exam.cycle.push($scope.newExamCycle); } } //$scope.showSavedDialog(); $scope.cancelNewExamCycle(); }; $scope.removeExamCycleConfirm = function(examcycle){ if(examcycle._id){ var confirm = $mdDialog.confirm() .title('Would you like to delete exam cycle titled '+ examcycle.name +' ?') .textContent('You will not be able to recover them after this!') .ariaLabel('Lucky day') .targetEvent() .clickOutsideToClose(true) .ok('Confirm') .cancel('Cancel'); $mdDialog.show(confirm).then(function() { $scope.removeExamCycle(examcycle); }, function() { //nothing }); }else{ $scope.cancelNewExamCycle(); } }; $scope.removeExamCycle = function(examcycle){ if(!$scope.exam.cycle){ $scope.exam.cycle = []; } var examCylceIds = $scope.exam.cycle.map(function(a) {return a._id;}); var examCycleNames = $scope.exam.cycle.map(function(a) {return a.name;}); if($scope.newExamCycle._id){ var cIndex = examCylceIds.indexOf($scope.newExamCycle._id); if(cIndex != -1){ $scope.exam.cycle.splice(cIndex); }else{ //$scope.exam.cycle.push($scope.newExamCycle); } }else{ var thisCycleName = $scope.newExamCycle.name; var cIndex = examCycleNames.indexOf(thisCycleName); if(cIndex != -1){ $scope.exam.cycle.splice(cIndex); }else{ //$scope.exam.cycle.push($scope.newExamCycle); } } //$scope.showSavedDialog(); $scope.cancelNewExamCycle(); }; $scope.removeSyllabus = function(syllabus){ var syllabusIds = $scope.newExamCycle.syllabus.map(function(a) {return a.url;}); var sIndex = syllabusIds.indexOf(syllabus.url); if(sIndex!= -1){ $scope.newExamCycle.syllabus.splice(sIndex,1); } }; }]);
'use strict'; module.exports = { module: { loaders: [ { test: /\.js$/, loaders: ['babel-loader'], exclude: /node_modules/ } ] }, output: { library: 'jquery-request', libraryTarget: 'umd' }, resolve: { extensions: ['', '.js'] } };
/*global timeZone,LocalTime,DateTimeUtils,littleBefore,almostDayAfter,goodDayAfter,matchers,jodajs,beforeEach,describe,it,expect,window*/ describe("LocalTime", function () { describe("init", function () { it("should construct a LocalTime with given fields", function () { expect(LocalTime(10, 15, 2, 3).getHourOfDay()).toBe(10); expect(LocalTime(10, 15, 2, 3).getMinuteOfHour()).toBe(15); expect(LocalTime(10, 15, 2, 3).getSecondOfMinute()).toBe(2); expect(LocalTime(10, 15, 2, 3).getMillisOfSecond()).toBe(3); }); it("should construct a LocalTime with given fields, not given time fields should be 0", function () { expect(LocalTime(10, 15).getMillisOfSecond()).toBe(0); expect(LocalTime(10, 15).getSecondOfMinute()).toBe(0); }); }); describe("isEqual", function () { it("should return true if all fields are equal", function () { expect(LocalTime(10, 15, 2, 3).isEqual(LocalTime(10, 15, 2, 3))).toBeTruthy(); expect(LocalTime(10, 15, 2, 3).isEqual(LocalTime(10, 15, 2, 4))).toBeFalsy(); expect(LocalTime(10, 15, 2, 3).isEqual(LocalTime(10, 15, 3, 3))).toBeFalsy(); expect(LocalTime(10, 15, 2, 3).isEqual(LocalTime(10, 16, 2, 3))).toBeFalsy(); expect(LocalTime(10, 15, 2, 3).isEqual(LocalTime(11, 15, 2, 3))).toBeFalsy(); }); }); describe("isBefore", function () { it("should return true if a LocalTime is before another", function () { expect(LocalTime(10, 15, 2, 3).isBefore(LocalTime(10, 15, 2, 4))).toBeTruthy(); expect(LocalTime(10, 15, 2, 3).isBefore(LocalTime(10, 15, 2, 3))).toBeFalsy(); expect(LocalTime(10, 15, 2, 3).isBefore(LocalTime(10, 15, 1, 3))).toBeFalsy(); expect(LocalTime(10, 15, 2, 3).isBefore(LocalTime(10, 14, 1, 3))).toBeFalsy(); expect(LocalTime(10, 15, 2, 3).isBefore(LocalTime(9, 15, 1, 3))).toBeFalsy(); }); }); describe("isAfter", function () { it("should return true if a LocalTime is after another", function () { expect(LocalTime(10, 15, 2, 3).isAfter(LocalTime(10, 15, 2, 2))).toBeTruthy(); expect(LocalTime(10, 15, 2, 3).isAfter(LocalTime(10, 15, 2, 3))).toBeFalsy(); expect(LocalTime(10, 15, 2, 3).isAfter(LocalTime(10, 15, 3, 3))).toBeFalsy(); expect(LocalTime(10, 15, 2, 3).isAfter(LocalTime(10, 16, 2, 3))).toBeFalsy(); expect(LocalTime(10, 15, 2, 3).isAfter(LocalTime(11, 15, 2, 3))).toBeFalsy(); }); }); describe("getMillisOfSecond", function () { it("should return millis of second", function () { expect(LocalTime(10, 15, 2, 3).getMillisOfSecond()).toBe(3); }); }); describe("withMillisOfSecond", function () { it("should return a new LocalTime with given millis of second", function () { expect(LocalTime(10, 15, 2, 3).withMillisOfSecond(100)).toEq(LocalTime(10, 15, 2, 100)); }); }); describe("getSecondOfMinute", function () { it("should return second of minute", function () { expect(LocalTime(10, 15, 2, 3).getSecondOfMinute()).toBe(2); }); }); describe("withSecondOfMinute", function () { it("should return a new LocalTime with given second of minute", function () { expect(LocalTime(10, 15, 2, 3).withSecondOfMinute(20)).toEq(LocalTime(10, 15, 20, 3)); }); }); describe("getMinuteOfHour", function () { it("should return minute of hour", function () { expect(LocalTime(10, 15, 2, 3).getMinuteOfHour()).toBe(15); }); }); describe("withMinuteOfHour", function () { it("should return a new LocalTime with given minute of hour", function () { expect(LocalTime(10, 15, 2, 3).withMinuteOfHour(20)).toEq(LocalTime(10, 20, 2, 3)); }); }); describe("getHourOfDay", function () { it("should return hour of day", function () { expect(LocalTime(10, 15, 2, 3).getHourOfDay()).toBe(10); }); }); describe("withHourOfDay", function () { it("should return a new LocalTime with given hour of day", function () { expect(LocalTime(10, 15, 2, 3).withHourOfDay(20)).toEq(LocalTime(20, 15, 2, 3)); }); }); describe("plusMillis", function () { it("should return a new LocalTime at the given amount of millis after", function () { expect(LocalTime(3, 4, 5, 6).plusMillis(1)).toEq(LocalTime(3, 4, 5, 7)); expect(LocalTime(3, 4, 5, 6).plusMillis(1000)).toEq(LocalTime(3, 4, 6, 6)); expect(LocalTime(3, 4, 5, 6).plusMillis(60 * 1000)).toEq(LocalTime(3, 5, 5, 6)); }); }); describe("minusMillis", function () { it("should return a new LocalTime at the given amount of millis before", function () { expect(LocalTime(3, 4, 5, 6).minusMillis(1)).toEq(LocalTime(3, 4, 5, 5)); expect(LocalTime(3, 4, 5, 6).minusMillis(1000)).toEq(LocalTime(3, 4, 4, 6)); expect(LocalTime(3, 4, 5, 6).minusMillis(60 * 1000)).toEq(LocalTime(3, 3, 5, 6)); }); }); describe("plusSeconds", function () { it("should return a new LocalTime at the given amount of seconds after", function () { expect(LocalTime(3, 4, 5, 6).plusSeconds(1)).toEq(LocalTime(3, 4, 6, 6)); expect(LocalTime(3, 4, 5, 6).plusSeconds(61)).toEq(LocalTime(3, 5, 6, 6)); expect(LocalTime(3, 4, 5, 6).plusSeconds(60 * 60 + 1)).toEq(LocalTime(4, 4, 6, 6)); }); }); describe("minusSeconds", function () { it("should return a new LocalTime at the given amount of seconds before", function () { expect(LocalTime(3, 4, 5, 6).minusSeconds(1)).toEq(LocalTime(3, 4, 4, 6)); expect(LocalTime(3, 4, 5, 6).minusSeconds(61)).toEq(LocalTime(3, 3, 4, 6)); expect(LocalTime(3, 4, 5, 6).minusSeconds(60 * 60 + 1)).toEq(LocalTime(2, 4, 4, 6)); }); }); describe("plusMinutes", function () { it("should return a new LocalTime at the given amount of minutes after", function () { expect(LocalTime(3, 4, 5, 6).plusMinutes(1)).toEq(LocalTime(3, 5, 5, 6)); expect(LocalTime(3, 4, 5, 6).plusMinutes(61)).toEq(LocalTime(4, 5, 5, 6)); expect(LocalTime(3, 4, 5, 6).plusMinutes(60 * 24 + 1)).toEq(LocalTime(3, 5, 5, 6)); }); }); describe("minusMinutes", function () { it("should return a new LocalTime at the given amount of minutes before", function () { expect(LocalTime(3, 4, 5, 6).minusMinutes(1)).toEq(LocalTime(3, 3, 5, 6)); expect(LocalTime(3, 4, 5, 6).minusMinutes(61)).toEq(LocalTime(2, 3, 5, 6)); expect(LocalTime(3, 4, 5, 6).minusMinutes(60 * 24 + 1)).toEq(LocalTime(3, 3, 5, 6)); }); }); describe("plusHours", function () { it("should return a new LocalTime at the given amount of hours after", function () { expect(LocalTime(3, 4, 5, 6).plusHours(1)).toEq(LocalTime(4, 4, 5, 6)); expect(LocalTime(3, 4, 5, 6).plusHours(25)).toEq(LocalTime(4, 4, 5, 6)); }); }); describe("minusHours", function () { it("should return a new LocalTime at the given amount of hours before", function () { expect(LocalTime(3, 4, 5, 6).minusHours(1)).toEq(LocalTime(2, 4, 5, 6)); expect(LocalTime(3, 4, 5, 6).minusHours(25)).toEq(LocalTime(2, 4, 5, 6)); }); }); describe("toString_", function () { it("should return the LocalDate in ISO format (HH:mm:ss.SSS)", function () { expect(LocalTime(10, 11, 12, 13).toString()).toBe("10:11:12.013"); }); it("should return the LocalTime in the given format", function () { expect(LocalTime(10, 11, 12, 13).toString("HH:mm:ss")).toBe("10:11:12"); }); }); });
// Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // This file was generated by: // tools/json_schema_compiler/compiler.py. // NOTE: The format of types has changed. 'FooType' is now // 'chrome.languageSettingsPrivate.FooType'. // Please run the closure compiler before committing changes. // See https://code.google.com/p/chromium/wiki/ClosureCompilation. /** @fileoverview Externs generated from namespace: languageSettingsPrivate */ /** * @const */ chrome.languageSettingsPrivate = {}; /** * @typedef {{ * code: string, * displayName: string, * nativeDisplayName: string, * displayNameRTL: (boolean|undefined), * supportsUI: (boolean|undefined), * supportsSpellcheck: (boolean|undefined), * supportsTranslate: (boolean|undefined) * }} * @see https://developer.chrome.com/extensions/languageSettingsPrivate#type-Language */ chrome.languageSettingsPrivate.Language; /** * @typedef {{ * languageCode: string, * isReady: boolean, * isDownloading: (boolean|undefined), * downloadFailed: (boolean|undefined) * }} * @see https://developer.chrome.com/extensions/languageSettingsPrivate#type-SpellcheckDictionaryStatus */ chrome.languageSettingsPrivate.SpellcheckDictionaryStatus; /** * @typedef {{ * id: string, * displayName: string, * languageCodes: !Array<string>, * enabled: boolean * }} * @see https://developer.chrome.com/extensions/languageSettingsPrivate#type-InputMethod */ chrome.languageSettingsPrivate.InputMethod; /** * @typedef {{ * inputMethods: !Array<!chrome.languageSettingsPrivate.InputMethod>, * componentExtensionIMEs: !Array<!chrome.languageSettingsPrivate.InputMethod>, * thirdPartyExtensionIMEs: !Array<!chrome.languageSettingsPrivate.InputMethod> * }} * @see https://developer.chrome.com/extensions/languageSettingsPrivate#type-InputMethodLists */ chrome.languageSettingsPrivate.InputMethodLists; /** * Gets languages available for translate, spell checking, input and locale. * @param {function(!Array<!chrome.languageSettingsPrivate.Language>):void} callback * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-getLanguageList */ chrome.languageSettingsPrivate.getLanguageList = function(callback) {}; /** * Sets the accepted languages, used to decide which languages to translate, * generate the Accept-Language header, etc. * @param {!Array<string>} languageCodes * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-setLanguageList */ chrome.languageSettingsPrivate.setLanguageList = function(languageCodes) {}; /** * Gets the current status of the chosen spell check dictionaries. * @param {function(!Array<!chrome.languageSettingsPrivate.SpellcheckDictionaryStatus>):void} callback * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-getSpellcheckDictionaryStatuses */ chrome.languageSettingsPrivate.getSpellcheckDictionaryStatuses = function(callback) {}; /** * Gets the custom spell check words. * @param {function(!Array<string>):void} callback * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-getSpellcheckWords */ chrome.languageSettingsPrivate.getSpellcheckWords = function(callback) {}; /** * Gets the translate target language (in most cases, the display locale). * @param {function(string):void} callback * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-getTranslateTargetLanguage */ chrome.languageSettingsPrivate.getTranslateTargetLanguage = function(callback) {}; /** * Gets all supported input methods, including IMEs. Chrome OS only. * @param {function(!chrome.languageSettingsPrivate.InputMethodLists):void} callback * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-getInputMethodLists */ chrome.languageSettingsPrivate.getInputMethodLists = function(callback) {}; /** * Adds the input method to the current user's list of enabled input methods, * enabling the input method for the current user. Chrome OS only. * @param {string} inputMethodId * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-addInputMethod */ chrome.languageSettingsPrivate.addInputMethod = function(inputMethodId) {}; /** * Removes the input method from the current user's list of enabled input * methods, disabling the input method for the current user. Chrome OS only. * @param {string} inputMethodId * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method-removeInputMethod */ chrome.languageSettingsPrivate.removeInputMethod = function(inputMethodId) {}; /** * Called when the pref for the dictionaries used for spell checking changes or * the status of one of the spell check dictionaries changes. * @type {!ChromeEvent} * @see https://developer.chrome.com/extensions/languageSettingsPrivate#event-onSpellcheckDictionariesChanged */ chrome.languageSettingsPrivate.onSpellcheckDictionariesChanged; /** * Called when words are added to and/or removed from the custom spell check * dictionary. * @type {!ChromeEvent} * @see https://developer.chrome.com/extensions/languageSettingsPrivate#event-onCustomDictionaryChanged */ chrome.languageSettingsPrivate.onCustomDictionaryChanged; /** * Called when an input method is added. * @type {!ChromeEvent} * @see https://developer.chrome.com/extensions/languageSettingsPrivate#event-onInputMethodAdded */ chrome.languageSettingsPrivate.onInputMethodAdded; /** * Called when an input method is removed. * @type {!ChromeEvent} * @see https://developer.chrome.com/extensions/languageSettingsPrivate#event-onInputMethodRemoved */ chrome.languageSettingsPrivate.onInputMethodRemoved;
// var data = [{"x": 50.0, "y": 110.1}, {"x": 20.0, "y": 20.5}, {"x": 30.0, "y": 20.5}, {"x": 40.0, "y": 20.5}]; var data; // d3.csv("http://harshnisar.github.io/insights_gamma/viz/scatter.csv", function(loaddata) { d3.csv("http://insights.aspiringminds.com/viz/scatter.csv", function(loaddata) { loaddata.forEach(function(d) { d.x = +d.x; d.y = +d.y; }); data = loaddata; scatterplot(); }); function scatterplot() { // do something with rows //SVG's lenght var w = 500; var h = 500; var padding = 30; var xmin = 4.9; var ymin = 4.4; var xScale = d3.scale.linear() .domain([xmin, d3.max(data, function(d) { return d.x; })]) .range([0 + padding, w - padding]); var yScale = d3.scale.linear() .domain([ymin, d3.max(data, function(d) { return d.y; })]) .range([h - padding, padding ]); var xAxis = d3.svg.axis() .scale(xScale) .orient("bottom") .ticks(5); var yAxis = d3.svg.axis() .scale(yScale) .orient("left") .ticks(5); var svg = d3.select("#scatter") .append("svg") .attr("width", w) .attr("height", h) .attr("style","border:1px solid;"); //tooltips var tooltip = d3.select("div#scatter") .append("div") .style("position", "absolute") .style("z-index", "10") .style("visibility", "hidden") //.style("border", "1px solid") .style("background-color", "azure") .text("Something something smart hello hello hello") .style("width","200px"); //svg.append('text').attr("x", "14").attr("y", "14").text("Marry had a \n little lamb").call(wrap, "30px"); function emboss(){ d3.selectAll("circle").filter( function (d){ return d.y>5.5;}).attr("r", 3.5); tooltip.style("visibility", "visible") // .style("top",(d3.event.pageY-10)+"px") // .style("left",(d3.event.pageX+10)+"px"); .style("top", 1.2 +"em") .style("left", padding*2 +"px"); } function demboss(){ d3.selectAll("circle").filter( function (d){ return d.y>5.5;}).attr("r", 2.5); tooltip.style("visibility", "hidden"); } //making the xAxis svg.append("g") .attr("class", "axis") //Assign "axis" class .attr("transform", "translate(0," + (h - padding) + ")") .call(xAxis); var ypadding = 35; //making the yAxis svg.append("g") .attr("class", "axis") .attr("transform", "translate(" + padding + ",0)") .call(yAxis); svg.selectAll("circle") .data(data) .enter().append("circle") .attr("cx", function(d) { return xScale(d.x); }) .attr("cy", function(d) { return yScale(d.y); }) .attr("r", 3) .attr("stroke", "black") // .attr("fill", "#0099FF") .attr("fill", "#1c9099") // .attr("stroke-width","0.25"); // .attr("onmouseover", "evt.target.setAttribute('fill', 'yellow')") // .attr("onmouseout", "evt.target.setAttribute('fill', 'blue')"); // d3.selectAll("circle").filter( function (d){ return d.y>5.5;}).on("mouseover", emboss).attr("stroke-width","1.5"); // d3.selectAll("circle").filter( function (d){ return d.y>5.5;}).on("mouseout", demboss).attr("stroke-width","0.5"); function yzerofy(){ var numValues = data.length; // Get original dataset's length dataset = []; // Initialize empty array for(var i=0; i<numValues; i++) { dataset.push({"x":data[i].x, "y":4.5}); // Add new numbers to array } return dataset } function yxify(){ var numValues = data.length; // Get original dataset's length dataset = []; // Initialize empty array for(var i=0; i<numValues; i++) { dataset.push({"x":data[i].x, "y":data[i].x}); // Add new numbers to array } return dataset } //Down function downyx() { // var numValues = data.length; // Get original dataset's length // var maxRange = Math.random() * 1200; // Get max range of new values // dataset = yzerofy(data); // Initialize empty array // dataset = yxify(data); // Initialize empty array // dataset = data; // Update circles svg.selectAll("circle") // .data(dataset) // Update with new data .transition() // Transition from old to new .duration(500) // Length of animatin // .each("start", function() { // Start animation // d3.select(this) // 'this' means the current element // .attr("fill", "red") // Change color // .attr("r", 5); // Change size // }) .delay(function(d, i) { // return i / dataset.length * 300; // Dynamic delay (i.e. each item delays a little longer) return ((d.x-5.0)/0.8)*4000; // Dynamic delay (i.e. each item delays a little longer) }) .ease("linear") // Transition easing - default 'variable' (i.e. has acceleration), also: 'circle', 'elastic', 'bounce', 'linear' .attr("cx", function(d) { return xScale(d.x); // Circle's X }) .attr("cy", function(d) { return yScale(d.x); // Circle's Y }) // .attr("opacity", "1") // .each("end", function() { // End animation // d3.select(this) // 'this' means the current element // .transition() // .duration(500) // .attr("fill", "black") // Change color // .attr("r", 2); // Change radius // }); // .call(endall, up_skill) }; var t0; function indexOfSmallest(a) { var lowest = 0; for (var i = 1; i < a.length; i++) { if (Math.abs(a[i]) < a[lowest]) lowest = i; } sign = a[lowest]/Math.abs(a[lowest]); return [lowest, sign]; } function col_delay(d){ var xcols = [5.2, 5.3, 5.4, 5.5, 5.6]; var ymin = 4.5; var ymax = 7; var delays = [1000, 2000, 3000, 4000, 5000, 6000]; diffs = xcols; diffs.forEach(function (ele, i, arr){ arr[i] = d.x - ele; }) // console.log(xcols); // console.log(diffs); // Now we need to see which index had the min-most differece. // The smallest ele in diff temp = indexOfSmallest(diffs); // console.log(temp); lowest_idx = temp[0]; sign = temp[1]; if (sign == 1){ base_delay = delays[lowest_idx + 1]; } if (sign == -1){ base_delay = delays[lowest_idx]; } //approx one // Slant effect // ydelay = (1-(d.y-ymin)/(ymax - ymin))*10000; // Inverse Slant effect // ydelay = (d.y-ymin)/(ymax - ymin)*10000; // // ydelay = 0; // ydelay = (1-(d.y-ymin)/(ymax - ymin))*1000; // ydelay = (d.y-ymin)/(ymax - ymin)*1000; ydelay = Math.abs(d.y - d.x)/((ymax-ymin)/1)*1000; return base_delay + ydelay; } function col_delay_y(d){ var ycols = [4.7232, 5.000121, 5.200001, 5.300001, 5.500001, 5.700001, 6.0000001]; var xmin = 4.8; var xmax = 6; var delays = [1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000]; diffs = ycols; diffs.forEach(function (ele, i, arr){ arr[i] = d.y - ele; }) // console.log(xcols); // console.log(diffs); // Now we need to see which index had the min-most differece. // The smallest ele in diff temp = indexOfSmallest(diffs); // console.log(temp); lowest_idx = temp[0]; sign = temp[1]; if (sign == 1){ base_delay = delays[lowest_idx + 1]; } if (sign == -1){ base_delay = delays[lowest_idx]; } //approx one // Slant effect // ydelay = (1-(d.y-ymin)/(ymax - ymin))*10000; // Inverse Slant effect // ydelay = (d.y-ymin)/(ymax - ymin)*10000; // ydelay = 0; ydelay = (1-(d.x-xmin)/(xmax - xmin))*1500; // ydelay = (d.y-ymin)/(ymax - ymin)*1000; // ydelay = Math.abs(d.y - d.x)/((xmax-xmin)/1)*1000; return base_delay + ydelay; } function sorter(a, b){ return a.x - b.x; } function sorter_y(a, b){ return a.y - b.y; } //Up function up_skill() { // dataset = data; // Initialize empty array // dataset.sort(sorter); // Update circles svg.selectAll("circle") // .data(dataset) // Update with new data // .sort(sorter) .transition() // Transition from old to new .duration(800) // Length of animatin // .each("start", function() { // Start animation // d3.select(this) // 'this' means the current element // .attr("fill", "red") // Change color // .attr("r", 5); // Change size // }) .delay(function(d, i) { // return i*8000 / dataset.length; // Dynamic delay (i.e. each item delays a little longer) // return ((d.x-5.0)/0.8)*1000; // Dynamic delay (i.e. each item delays a little longer) return col_delay(d); }) // .ease("linear") // Transition easing - default 'variable' (i.e. has acceleration), also: 'circle', 'elastic', 'bounce', 'linear' .attr("cx", function(d) { return xScale(d.x); // Circle's X }) .attr("cy", function(d) { return yScale(d.y); // Circle's Y }) // .attr("opacity","1") // .each("end", function() { // End animation // d3.select(this) // 'this' means the current element // .transition() // .duration(500) // .attr("fill", "black") // Change color // .attr("r", 2); // Change radius // }); }; // employer perspective function side_emp() { dataset = data; // Initialize empty array // dataset.sort(sorter_y); // Update circles svg.selectAll("circle") // .data(dataset) // Update with new data .transition() // Transition from old to new .duration(500) // Length of animatin // .each("start", function() { // Start animation // d3.select(this) // 'this' means the current element // .attr("fill", "red") // Change color // .attr("r", 5); // Change size // }) .delay(function(d, i) { // return i*8000 / dataset.length; // Dynamic delay (i.e. each item delays a little longer) // return ((d.x-5.0)/0.8)*1000; // Dynamic delay (i.e. each item delays a little longer) return col_delay_y(d); }) .ease("linear") // Transition easing - default 'variable' (i.e. has acceleration), also: 'circle', 'elastic', 'bounce', 'linear' .attr("cx", function(d) { return xScale(d.x); // Circle's X }) .attr("cy", function(d) { return yScale(d.y); // Circle's Y }) // .attr("opacity","1") // .each("end", function() { // End animation // d3.select(this) // 'this' means the current element // .transition() // .duration(500) // .attr("fill", "black") // Change color // .attr("r", 2); // Change radius // }); }; function endall(transition, callback) { if (transition.size() === 0) { callback() } var n = 0; transition .each(function() { ++n; }) .each("end", function() { if (!--n) callback.apply(this, arguments); }); } // Side Y function side_to_y () { var numValues = data.length; // Get original dataset's length var maxRange = Math.random() * 5000; // Get max range of new values dataset = data; // Initialize empty array // dataset.sort(sorter_y); // Update circles svg.selectAll("circle") // .data(dataset) // Update with new data .transition() // Transition from old to new .duration(500) // Length of animatin // .each("start", function() { // Start animation // d3.select(this) // 'this' means the current element // .attr("fill", "red") // Change color // .attr("r", 5); // Change size // }) .delay(function(d, i) { return i*1000 / dataset.length; // Dynamic delay (i.e. each item delays a little longer) // return ((d.x-5.0)/0.8)*1000; // Dynamic delay (i.e. each item delays a little longer) // return col_delay_y(d); // return ; }) .ease("linear") // Transition easing - default 'variable' (i.e. has acceleration), also: 'circle', 'elastic', 'bounce', 'linear' .attr("cx", function(d) { return xScale(4.9); // Circle's X }) .attr("cy", function(d) { return yScale(d.y); // Circle's Y }) // .attr("opacity","1") // .each("end", function() { // End animation // d3.select(this) // 'this' means the current element // .transition() // .duration(500) // .attr("fill", "black") // Change color // .attr("r", 2); // Change radius // }); // .call(endall, side_emp) }; d3.select("#salary_view") .on("click", function(){ side_to_y(); // time.sleep(12) setTimeout(side_emp, 3000); }); d3.select("#skill_view") .on("click", function(){ downyx(); // ; setTimeout(up_skill, 3000); }); } //end of scatter method // filter selection to get points in the middle. // on them put mouseover call method emboss. // emboss method, again does the filter. and sets attribute emboss. // mouseout should clean it up.
/** * Web pages * * Author: Yuriy Movchan Date: 11/06/2013 */ module.exports = function(app) { app.get('/', function(req, res, next) { res.render('index', { title : 'oxPushServer' }); }); };
/* blink-tessel.js - Tessel application exposing method to blink an LED. tessel run blink-tessel.js - or - node blink-tessel.js (if you don't have Tessel) */ //var tessel = require('tessel'); var tessel = require('./tessel-sim'); // use this if you don't have Tessel var organiq = require('organiq'); organiq.registerDevice('Blinker', { toggleLed: function() { tessel.led[0].toggle(); } });
const connect = {}; /** @type {KUTE.TweenBase | KUTE.Tween | KUTE.TweenExtra} */ connect.tween = null; connect.processEasing = null; export default connect;
export default { name: 'social-services', initialize: function(container, application){ var facebookPluginComponents = ['feed']; facebookPluginComponents.forEach(function(plugin) { application.inject('component:facebook-' + plugin, 'socialApiClient', 'service:facebook-api-client'); }); } };
export { default } from 'ember-bootstrap-controls/components/bootstrap/form/-inputs';
var _ = require('lodash'); var async = require('async') module.exports = function(options) { var seneca = this; options = seneca.util.deepextend({ role: 'customer' },options); var role = options.role; var customer_ent = seneca.make('sys/customer'); seneca.add({ role:role, cmd:'create', // data fields shop_id: {string$:true}, email: {string$:true}, full_name: {string$:true}, image_url: {string$:true}, accepts_marketing: {string$:true}, orders_count: {string$:true}, total_spent: {string$:true}, state: {string$:true}, last_order_id: {string$:false}, last_order_name: {string$:false}, note: {string$:false}, hash_tags: {string$:false}, // array multipass_identifier: {string$:false}, verified_email: {boolean$:false}, // metafields: {boolean$:true}, TODO create metadata collection valid_start: {date$:true}, valid_end: {date$:true}, created_at: {date$:true}, updated_at: {date$:true} }, cmd_create_customer ); seneca.add({ role:role, cmd:'load_customer' }, cmd_load_customer ); function cmd_create_customer (args, done) { var seneca = this; // Logic if(err) return done(err); done(err, /* results */); } function cmd_load_customer (args, done) { var seneca = this; // Logic if(err) return done(err); done(err, /* results */); } return { name:role } }
"use strict"; // SCHEMA // jid: 'string', // ver: 'string' function RosterVerStorage(storage) { this.storage = storage; } RosterVerStorage.prototype = { constructor: { value: RosterVerStorage }, setup: function (db) { if (db.objectStoreNames.contains('rosterver')) { db.deleteObjectStore('rosterver'); } db.createObjectStore('rosterver', { keyPath: 'jid' }); }, transaction: function (mode) { var trans = this.storage.db.transaction('rosterver', mode); return trans.objectStore('rosterver'); }, set: function (jid, ver, cb) { cb = cb || function () {}; var data = { jid: jid, ver: ver }; var request = this.transaction('readwrite').put(data); request.onsuccess = function () { cb(false, data); }; request.onerror = cb; }, get: function (jid, cb) { cb = cb || function () {}; if (!jid) { return cb('not-found'); } var request = this.transaction('readonly').get(jid); request.onsuccess = function (e) { var res = request.result; if (res === undefined) { return cb('not-found'); } cb(false, request.result); }; request.onerror = cb; }, remove: function (jid, cb) { cb = cb || function () {}; var request = this.transaction('readwrite')['delete'](jid); request.onsuccess = function (e) { cb(false, request.result); }; request.onerror = cb; } }; module.exports = RosterVerStorage;
'use strict'; exports.up = function(knex, Promise) { return knex.schema.table('device', function(table) { table.dropColumn('ip_addr'); table.dropColumn('port'); }); }; exports.down = function(knex, Promise) { return knex.schema.table('device', function(table) { table.string('ip_addr'); table.string('port'); }); };
/*! * Title: jMonthCalendar @VERSION * Dependencies: jQuery 1.3.0 + * Author: Kyle LeNeau * Email: kyle.leneau@gmail.com * Project Hompage: http://www.bytecyclist.com/projects/jmonthcalendar * Source: http://github.com/KyleLeneau/jMonthCalendar * */ (function($) { var _beginDate; var _endDate; var _boxes = []; var _eventObj = {}; var _workingDate = null; var _daysInMonth = 0; var _firstOfMonth = null; var _lastOfMonth = null; var _gridOffset = 0; var _totalDates = 0; var _gridRows = 0; var _totalBoxes = 0; var _dateRange = { startDate: null, endDate: null }; var cEvents = []; var def = { containerId: "#jMonthCalendar", headerHeight: 50, firstDayOfWeek: 0, calendarStartDate:new Date(), dragableEvents: true, dragHoverClass: 'DateBoxOver', navLinks: { enableToday: true, enableNextYear: true, enablePrevYear: true, p:'&lsaquo; Prev', n:'Next &rsaquo;', t:'Today', showMore: 'Show More' }, onMonthChanging: function() {}, onMonthChanged: function() {}, onEventLinkClick: function() {}, onEventBlockClick: function() {}, onEventBlockOver: function() {}, onEventBlockOut: function() {}, onDayLinkClick: function() {}, onDayCellClick: function() {}, onDayCellDblClick: function() {}, onEventDropped: function() {}, onShowMoreClick: function() {} }; $.jMonthCalendar = $.J = function() {}; var _getJSONDate = function(dateStr) { //check conditions for different types of accepted dates var tDt, k; if (typeof dateStr == "string") { // "2008-12-28T00:00:00.0000000" var isoRegPlus = /^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2}).([0-9]{7})$/; // "2008-12-28T00:00:00" var isoReg = /^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})$/; //"2008-12-28" var yyyyMMdd = /^([0-9]{4})-([0-9]{2})-([0-9]{2})$/; // "new Date(2009, 1, 1)" // "new Date(1230444000000) var newReg = /^new/; // "\/Date(1234418400000-0600)\/" var stdReg = /^\\\/Date\(([0-9]{13})-([0-9]{4})\)\\\/$/; if (k = dateStr.match(isoRegPlus)) { return new Date(k[1],k[2]-1,k[3],k[4],k[5],k[6]); } else if (k = dateStr.match(isoReg)) { return new Date(k[1],k[2]-1,k[3],k[4],k[5],k[6]); } else if (k = dateStr.match(yyyyMMdd)) { return new Date(k[1],k[2]-1,k[3]); } if (k = dateStr.match(stdReg)) { return new Date(k[1]); } if (k = dateStr.match(newReg)) { return eval('(' + dateStr + ')'); } return tDt; } }; //This function will clean the JSON array, primaryly the dates and put the correct ones in the object. Intended to alwasy be called on event functions. var _filterEventCollection = function() { if (cEvents && cEvents.length > 0) { var multi = []; var single = []; //Update and parse all the dates $.each(cEvents, function(){ var ev = this; //Date Parse the JSON to create a new Date to work with here if(ev.StartDateTime) { if (typeof ev.StartDateTime == 'object' && ev.StartDateTime.getDate) { this.StartDateTime = ev.StartDateTime; } if (typeof ev.StartDateTime == 'string' && ev.StartDateTime.split) { this.StartDateTime = _getJSONDate(ev.StartDateTime); } } else if(ev.Date) { // DEPRECATED if (typeof ev.Date == 'object' && ev.Date.getDate) { this.StartDateTime = ev.Date; } if (typeof ev.Date == 'string' && ev.Date.split) { this.StartDateTime = _getJSONDate(ev.Date); } } else { return; //no start date, or legacy date. no event. } if(ev.EndDateTime) { if (typeof ev.EndDateTime == 'object' && ev.EndDateTime.getDate) { this.EndDateTime = ev.EndDateTime; } if (typeof ev.EndDateTime == 'string' && ev.EndDateTime.split) { this.EndDateTime = _getJSONDate(ev.EndDateTime); } } else { this.EndDateTime = this.StartDateTime.clone(); } if (this.StartDateTime.clone().clearTime().compareTo(this.EndDateTime.clone().clearTime()) == 0) { single.push(this); } else if (this.StartDateTime.clone().clearTime().compareTo(this.EndDateTime.clone().clearTime()) == -1) { multi.push(this); } }); multi.sort(_eventSort); single.sort(_eventSort); cEvents = []; $.merge(cEvents, multi); $.merge(cEvents, single); } }; var _eventSort = function(a, b) { return a.StartDateTime.compareTo(b.StartDateTime); }; var _clearBoxes = function() { _clearBoxEvents(); _boxes = []; }; var _clearBoxEvents = function() { for (var i = 0; i < _boxes.length; i++) { _boxes[i].clear(); } _eventObj = {}; }; var _initDates = function(dateIn) { var today = def.calendarStartDate; if(dateIn == undefined) { _workingDate = new Date(today.getFullYear(), today.getMonth(), 1); } else { _workingDate = dateIn; _workingDate.setDate(1); } _daysInMonth = _workingDate.getDaysInMonth(); _firstOfMonth = _workingDate.clone().moveToFirstDayOfMonth(); _lastOfMonth = _workingDate.clone().moveToLastDayOfMonth(); _gridOffset = _firstOfMonth.getDay() - def.firstDayOfWeek; _totalDates = _gridOffset + _daysInMonth; _gridRows = Math.ceil(_totalDates / 7); _totalBoxes = _gridRows * 7; _dateRange.startDate = _firstOfMonth.clone().addDays((-1) * _gridOffset); _dateRange.endDate = _lastOfMonth.clone().addDays(_totalBoxes - (_daysInMonth + _gridOffset)); }; var _initHeaders = function() { // Create Previous Month link for later var prevMonth = _workingDate.clone().addMonths(-1); var prevMLink = $('<div class="MonthNavPrev"><a class="link-prev">'+ def.navLinks.p +'</a></div>').click(function() { $.J.ChangeMonth(prevMonth); return false; }); //Create Next Month link for later var nextMonth = _workingDate.clone().addMonths(1); var nextMLink = $('<div class="MonthNavNext"><a class="link-next">'+ def.navLinks.n +'</a></div>').click(function() { $.J.ChangeMonth(nextMonth); return false; }); //Create Previous Year link for later var prevYear = _workingDate.clone().addYears(-1); var prevYLink; if(def.navLinks.enablePrevYear) { prevYLink = $('<div class="YearNavPrev"><a>'+ prevYear.getFullYear() +'</a></div>').click(function() { $.J.ChangeMonth(prevYear); return false; }); } //Create Next Year link for later var nextYear = _workingDate.clone().addYears(1); var nextYLink; if(def.navLinks.enableNextYear) { nextYLink = $('<div class="YearNavNext"><a>'+ nextYear.getFullYear() +'</a></div>').click(function() { $.J.ChangeMonth(nextYear); return false; }); } var todayLink; if(def.navLinks.enableToday) { //Create Today link for later todayLink = $('<div class="TodayLink"><a class="link-today">'+ def.navLinks.t +'</a></div>').click(function() { $.J.ChangeMonth(new Date()); return false; }); } //Build up the Header first, Navigation var navRow = $('<tr><td colspan="7"><div class="FormHeader MonthNavigation"></div></td></tr>'); var navHead = $('.MonthNavigation', navRow); navHead.append(prevMLink, nextMLink); if(def.navLinks.enableToday) { navHead.append(todayLink); } navHead.append($('<div class="MonthName"></div>').append(Date.CultureInfo.monthNames[_workingDate.getMonth()] + " " + _workingDate.getFullYear())); if(def.navLinks.enablePrevYear) { navHead.append(prevYLink); } if(def.navLinks.enableNextYear) { navHead.append(nextYLink); } // Days var headRow = $("<tr></tr>"); for (var i = def.firstDayOfWeek; i < def.firstDayOfWeek+7; i++) { var weekday = i % 7; var wordday = Date.CultureInfo.dayNames[weekday]; headRow.append('<th title="' + wordday + '" class="DateHeader' + (weekday == 0 || weekday == 6 ? ' Weekend' : '') + '"><span>' + wordday + '</span></th>'); } headRow = $("<thead id=\"CalendarHead\"></thead>").css({ "height" : def.headerHeight + "px" }).append(headRow); headRow = headRow.prepend(navRow); return headRow; }; $.J.DrawCalendar = function(dateIn){ var now = new Date(); now.clearTime(); var today = def.calendarStartDate; _clearBoxes(); _initDates(dateIn); var headerRow = _initHeaders(); //properties var isCurrentMonth = (_workingDate.getMonth() == today.getMonth() && _workingDate.getFullYear() == today.getFullYear()); var containerHeight = $(def.containerId).outerHeight(); var rowHeight = (containerHeight - def.headerHeight) / _gridRows; var row = null; //Build up the Body var tBody = $('<tbody id="CalendarBody"></tbody>'); for (var i = 0; i < _totalBoxes; i++) { var currentDate = _dateRange.startDate.clone().addDays(i); if (i % 7 == 0 || i == 0) { row = $("<tr></tr>"); row.css({ "height" : rowHeight + "px" }); tBody.append(row); } var weekday = (def.firstDayOfWeek + i) % 7; var atts = {'class':"DateBox" + (weekday == 0 || weekday == 6 ? ' Weekend ' : ''), 'date':currentDate.toString("M/d/yyyy") }; //dates outside of month range. if (currentDate.compareTo(_firstOfMonth) == -1 || currentDate.compareTo(_lastOfMonth) == 1) { atts['class'] += ' Inactive'; } //check to see if current date rendering is today if (currentDate.compareTo(now) == 0) { atts['class'] += ' Today'; } //DateBox Events var dateLink = $('<div class="DateLabel"><a>' + currentDate.getDate() + '</a></div>'); dateLink.bind('click', { Date: currentDate.clone() }, def.onDayLinkClick); var dateBox = $("<td></td>").attr(atts).append(dateLink); dateBox.bind('dblclick', { Date: currentDate.clone() }, def.onDayCellDblClick); dateBox.bind('click', { Date: currentDate.clone() }, def.onDayCellClick); if (def.dragableEvents) { dateBox.droppable({ hoverClass: def.dragHoverClass, tolerance: 'pointer', drop: function(ev, ui) { var eventId = ui.draggable.attr("eventid") var newDate = new Date($(this).attr("date")).clearTime(); var event; $.each(cEvents, function() { if (this.EventID == eventId) { var days = new TimeSpan(newDate - this.StartDateTime).days; this.StartDateTime.addDays(days); this.EndDateTime.addDays(days); event = this; } }); $.J.ClearEventsOnCalendar(); _drawEventsOnCalendar(); def.onEventDropped.call(this, event, newDate); } }); } _boxes.push(new CalendarBox(i, currentDate, dateBox, dateLink)); row.append(dateBox); } tBody.append(row); var a = $(def.containerId); var cal = $('<table class="MonthlyCalendar" cellpadding="0" tablespacing="0"></table>').append(headerRow, tBody); a.hide(); a.html(cal); a.fadeIn("normal"); _drawEventsOnCalendar(); } var _drawEventsOnCalendar = function() { //filter the JSON array for proper dates _filterEventCollection(); _clearBoxEvents(); if (cEvents && cEvents.length > 0) { var container = $(def.containerId); $.each(cEvents, function(){ var ev = this; //alert("eventID: " + ev.EventID + ", start: " + ev.StartDateTime + ",end: " + ev.EndDateTime); var tempStartDT = ev.StartDateTime.clone().clearTime(); var tempEndDT = ev.EndDateTime.clone().clearTime(); var startI = new TimeSpan(tempStartDT - _dateRange.startDate).days; var endI = new TimeSpan(tempEndDT - _dateRange.startDate).days; //alert("start I: " + startI + " end I: " + endI); var istart = (startI < 0) ? 0 : startI; var iend = (endI > _boxes.length - 1) ? _boxes.length - 1 : endI; //alert("istart: " + istart + " iend: " + iend); for (var i = istart; i <= iend; i++) { var b = _boxes[i]; var startBoxCompare = tempStartDT.compareTo(b.date); var endBoxCompare = tempEndDT.compareTo(b.date); var continueEvent = ((i != 0 && startBoxCompare == -1 && endBoxCompare >= 0 && b.weekNumber != _boxes[i - 1].weekNumber) || (i == 0 && startBoxCompare == -1)); var toManyEvents = (startBoxCompare == 0 || (i == 0 && startBoxCompare == -1) || continueEvent || (startBoxCompare == -1 && endBoxCompare >= 0)) && b.vOffset >= (b.getCellBox().height() - b.getLabelHeight() - 32); //alert("b.vOffset: " + b.vOffset + ", cell height: " + (b.getCellBox().height() - b.getLabelHeight() - 32)); //alert(continueEvent); //alert(toManyEvents); if (toManyEvents) { if (!b.isTooManySet) { var moreDiv = $('<div class="MoreEvents" id="ME_' + i + '">' + def.navLinks.showMore + '</div>'); var pos = b.getCellPosition(); var index = i; moreDiv.css({ "top" : (pos.top + (b.getCellBox().height() - b.getLabelHeight())), "left" : pos.left, "width" : (b.getLabelWidth() - 7), "position" : "absolute" }); moreDiv.click(function(e) { _showMoreClick(e, index); }); _eventObj[moreDiv.attr("id")] = moreDiv; b.isTooManySet = true; } //else update the +more to show?? b.events.push(ev); } else if (startBoxCompare == 0 || (i == 0 && startBoxCompare == -1) || continueEvent) { var block = _buildEventBlock(ev, b.weekNumber); var pos = b.getCellPosition(); block.css({ "top" : (pos.top + b.getLabelHeight() + b.vOffset), "left" : pos.left, "width" : (b.getLabelWidth() - 7), "position" : "absolute" }); b.vOffset += 19; if (continueEvent) { block.prepend($('<span />').addClass("ui-icon").addClass("ui-icon-triangle-1-w")); var e = _eventObj['Event_' + ev.EventID + '_' + (b.weekNumber - 1)]; if (e) { e.prepend($('<span />').addClass("ui-icon").addClass("ui-icon-triangle-1-e")); } } _eventObj[block.attr("id")] = block; b.events.push(ev); } else if (startBoxCompare == -1 && endBoxCompare >= 0) { var e = _eventObj['Event_' + ev.EventID + '_' + b.weekNumber]; if (e) { var w = e.css("width") e.css({ "width" : (parseInt(w) + b.getLabelWidth() + 1) }); b.vOffset += 19; b.events.push(ev); } } //end of month continue if (i == iend && endBoxCompare > 0) { var e = _eventObj['Event_' + ev.EventID + '_' + b.weekNumber]; if (e) { e.prepend($('<span />').addClass("ui-icon").addClass("ui-icon-triangle-1-e")); } } } }); for (var o in _eventObj) { _eventObj[o].hide(); container.append(_eventObj[o]); _eventObj[o].show(); } } } var _buildEventBlock = function(ev, weekNumber) { var block = $('<div class="Event" id="Event_' + ev.EventID + '_' + weekNumber + '" eventid="' + ev.EventID +'"></div>'); if(ev.CssClass) { block.addClass(ev.CssClass) } block.bind('click', { Event: ev }, def.onEventBlockClick); block.bind('mouseover', { Event: ev }, def.onEventBlockOver); block.bind('mouseout', { Event: ev }, def.onEventBlockOut); if (def.dragableEvents) { _dragableEvent(ev, block, weekNumber); } var link; if (ev.URL && ev.URL.length > 0) { link = $('<a href="' + ev.URL + '">' + ev.Title + '</a>'); } else { link = $('<a>' + ev.Title + '</a>'); } link.bind('click', { Event: ev }, def.onEventLinkClick); block.append(link); return block; } var _dragableEvent = function(event, block, weekNumber) { block.draggable({ zIndex: 4, delay: 50, opacity: 0.5, revertDuration: 1000, cursorAt: { left: 5 }, start: function(ev, ui) { //hide any additional event parts for (var i = 0; i <= _gridRows; i++) { if (i == weekNumber) { continue; } var e = _eventObj['Event_' + event.EventID + '_' + i]; if (e) { e.hide(); } } } }); } var _showMoreClick = function(e, boxIndex) { var box = _boxes[boxIndex]; def.onShowMoreClick.call(this, box.events); e.stopPropagation(); } $.J.ClearEventsOnCalendar = function() { _clearBoxEvents(); $(".Event", $(def.containerId)).remove(); $(".MoreEvents", $(def.containerId)).remove(); } $.J.AddEvents = function(eventCollection) { if(eventCollection) { if(eventCollection.length > 0) { $.merge(cEvents, eventCollection); } else { cEvents.push(eventCollection); } $.J.ClearEventsOnCalendar(); _drawEventsOnCalendar(); } } $.J.ReplaceEventCollection = function(eventCollection) { if(eventCollection) { cEvents = []; cEvents = eventCollection; } $.J.ClearEventsOnCalendar(); _drawEventsOnCalendar(); } $.J.ChangeMonth = function(dateIn) { var returned = def.onMonthChanging.call(this, dateIn); if (!returned) { $.J.DrawCalendar(dateIn); def.onMonthChanged.call(this, dateIn); } } $.J.Initialize = function(options, events) { var today = new Date(); options = $.extend(def, options); if (events) { $.J.ClearEventsOnCalendar(); cEvents = events; } $.J.DrawCalendar(); }; function CalendarBox(id, boxDate, cell, label) { this.id = id; this.date = boxDate; this.cell = cell; this.label = label; this.weekNumber = Math.floor(id / 7); this.events= []; this.isTooManySet = false; this.vOffset = 0; this.echo = function() { alert("Date: " + this.date + " WeekNumber: " + this.weekNumber + " ID: " + this.id); } this.clear = function() { this.events = []; this.isTooManySet = false; this.vOffset = 0; } this.getCellPosition = function() { if (this.cell) { return this.cell.position(); } return; } this.getCellBox = function() { if (this.cell) { return this.cell; } return; } this.getLabelWidth = function() { if (this.label) { return this.label.innerWidth(); } return; } this.getLabelHeight = function() { if (this.label) { return this.label.height(); } return; } this.getDate = function() { return this.date; } } })(jQuery);
// Karma configuration // http://karma-runner.github.io/0.12/config/configuration-file.html // Generated on 2014-11-21 using // generator-karma 0.8.3 module.exports = function(config) { 'use strict'; config.set({ // enable / disable watching file and executing tests whenever any file changes autoWatch: true, // base path, that will be used to resolve files and exclude basePath: '../', // testing framework to use (jasmine/mocha/qunit/...) frameworks: ['jasmine'], // list of files / patterns to load in the browser files: [ 'bower_components/angular/angular.js', 'bower_components/angular-mocks/angular-mocks.js', 'bower_components/angular-resource/angular-resource.js', 'bower_components/angular-route/angular-route.js', 'bower_components/angular-sanitize/angular-sanitize.js', 'app/scripts/**/*.js', 'test/mock/**/*.js', 'test/spec/**/*.js' ], // list of files / patterns to exclude exclude: [], // web server port port: 8080, // Start these browsers, currently available: // - Chrome // - ChromeCanary // - Firefox // - Opera // - Safari (only Mac) // - PhantomJS // - IE (only Windows) browsers: [ 'PhantomJS' ], // Which plugins to enable plugins: [ 'karma-phantomjs-launcher', 'karma-jasmine' ], // Continuous Integration mode // if true, it capture browsers, run tests and exit singleRun: false, colors: true, // level of logging // possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG logLevel: config.LOG_INFO, // Uncomment the following lines if you are using grunt's server to run the tests // proxies: { // '/': 'http://localhost:9000/' // }, // URL root prevent conflicts with the site root // urlRoot: '_karma_' }); };
const deepEqual = require('deep-equal'); const Dag = require('..'); const should = require('chai').should(); describe('Sub-DAG from ', () =>{ describe('DAG(order=4, size=4)', () => { let dag; let V; let E; beforeEach(()=>{ dag = new Dag(); E = []; E.push({ from: 'a', to: 'b', tags: ['friend'], weight: undefined }); E.push({ from: 'b', to: 'c', tags: ['friend', 'follows'], weight: undefined }); E.push({ from: 'd', to: 'b', tags: ['friend'], weight: undefined }); E.push({ from: 'a', to: 'd', tags: ['friend', 'follows'], weight: undefined }); E.forEach(e => dag.add(e.from, e.to, e.tags, e.weight)); }); it('since \'a\' should be same with its original', () => { dag.should.not.equal(dag.since('a')); deepEqual(dag, dag.since('a')).should.equal(true); }); it('since \'d\' should not be same with its original', () => { dag.should.not.equal(dag.since('d')); deepEqual(dag, dag.since('d')).should.equal(false); }); it('until \'c\' should be same with its original', () => { dag.should.not.equal(dag.until('c')); deepEqual(dag, dag.until('c')).should.equal(true); }); it('until \'b\' should not be same with its original', () => { dag.should.not.equal(dag.until('b')); deepEqual(dag, dag.until('b')).should.equal(false); }); }); });
/** * cmpn Module * Criação do Module principal da aplicaçao * nela será registados todas as dependências necessárias * para o desenvolvimento da aplicação * @autor * Kidiatoliny Delgado Gonçalves - * Engenharia de Sistemas e Computacional * @copyright * ghostechnology * 2016 */ angular.module('cmpnApp', [ 'ngMaterial', 'ngRoute', 'ngAnimate', 'ngMessages', 'ngStorage', 'satellizer', 'ngMdIcons', 'ngResource', 'cmpnAuthService', 'menuApp', 'filterApp', 'themeApp', 'departamento', ]);
var tpl = require("pug-loader!./tpl.pug"); var Collection = require('../../../collections/media'); var Table = require('./table'); module.exports = Marionette.View.extend({ className: 'table', initialize: function() { this.collection = new Collection(); }, fetch: function(reset) { var that = this; return q.fcall(function() { var defer = q.defer(); $.ajax({ method: "GET", url: "/medias/list" }) .done(defer.resolve) .fail(defer.reject); return defer.promise; }) .then(function(res) { if (res.list.length < 20) that.ended = true; if (reset) that.collection.reset(); that.collection.add(res.list); return that; }) }, renderTable: function() { this.table = new Table({ el: this.$el.find('#list').get(0), collection: this.collection }); return this.table.render(); }, render: function() { var that = this; return q.fcall(function() { that.$el.html(tpl()); return that.fetch(true); }) .then(function() { return that.renderTable(); }) } });