|
|
'use strict';
|
|
|
|
|
|
var obsidian = require('obsidian');
|
|
|
|
|
|
/*! *****************************************************************************
|
|
|
Copyright (c) Microsoft Corporation.
|
|
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
|
purpose with or without fee is hereby granted.
|
|
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
PERFORMANCE OF THIS SOFTWARE.
|
|
|
***************************************************************************** */
|
|
|
|
|
|
function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
|
});
|
|
|
}
|
|
|
|
|
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
|
|
|
|
var luxon = {};
|
|
|
|
|
|
Object.defineProperty(luxon, '__esModule', { value: true });
|
|
|
|
|
|
function _defineProperties(target, props) {
|
|
|
for (var i = 0; i < props.length; i++) {
|
|
|
var descriptor = props[i];
|
|
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
|
descriptor.configurable = true;
|
|
|
if ("value" in descriptor) descriptor.writable = true;
|
|
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
|
return Constructor;
|
|
|
}
|
|
|
|
|
|
function _extends() {
|
|
|
_extends = Object.assign || function (target) {
|
|
|
for (var i = 1; i < arguments.length; i++) {
|
|
|
var source = arguments[i];
|
|
|
|
|
|
for (var key in source) {
|
|
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
|
target[key] = source[key];
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return target;
|
|
|
};
|
|
|
|
|
|
return _extends.apply(this, arguments);
|
|
|
}
|
|
|
|
|
|
function _inheritsLoose(subClass, superClass) {
|
|
|
subClass.prototype = Object.create(superClass.prototype);
|
|
|
subClass.prototype.constructor = subClass;
|
|
|
|
|
|
_setPrototypeOf(subClass, superClass);
|
|
|
}
|
|
|
|
|
|
function _getPrototypeOf(o) {
|
|
|
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
|
return o.__proto__ || Object.getPrototypeOf(o);
|
|
|
};
|
|
|
return _getPrototypeOf(o);
|
|
|
}
|
|
|
|
|
|
function _setPrototypeOf(o, p) {
|
|
|
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
|
o.__proto__ = p;
|
|
|
return o;
|
|
|
};
|
|
|
|
|
|
return _setPrototypeOf(o, p);
|
|
|
}
|
|
|
|
|
|
function _isNativeReflectConstruct() {
|
|
|
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
|
if (Reflect.construct.sham) return false;
|
|
|
if (typeof Proxy === "function") return true;
|
|
|
|
|
|
try {
|
|
|
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
|
return true;
|
|
|
} catch (e) {
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function _construct(Parent, args, Class) {
|
|
|
if (_isNativeReflectConstruct()) {
|
|
|
_construct = Reflect.construct;
|
|
|
} else {
|
|
|
_construct = function _construct(Parent, args, Class) {
|
|
|
var a = [null];
|
|
|
a.push.apply(a, args);
|
|
|
var Constructor = Function.bind.apply(Parent, a);
|
|
|
var instance = new Constructor();
|
|
|
if (Class) _setPrototypeOf(instance, Class.prototype);
|
|
|
return instance;
|
|
|
};
|
|
|
}
|
|
|
|
|
|
return _construct.apply(null, arguments);
|
|
|
}
|
|
|
|
|
|
function _isNativeFunction(fn) {
|
|
|
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
|
}
|
|
|
|
|
|
function _wrapNativeSuper(Class) {
|
|
|
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
|
|
|
|
_wrapNativeSuper = function _wrapNativeSuper(Class) {
|
|
|
if (Class === null || !_isNativeFunction(Class)) return Class;
|
|
|
|
|
|
if (typeof Class !== "function") {
|
|
|
throw new TypeError("Super expression must either be null or a function");
|
|
|
}
|
|
|
|
|
|
if (typeof _cache !== "undefined") {
|
|
|
if (_cache.has(Class)) return _cache.get(Class);
|
|
|
|
|
|
_cache.set(Class, Wrapper);
|
|
|
}
|
|
|
|
|
|
function Wrapper() {
|
|
|
return _construct(Class, arguments, _getPrototypeOf(this).constructor);
|
|
|
}
|
|
|
|
|
|
Wrapper.prototype = Object.create(Class.prototype, {
|
|
|
constructor: {
|
|
|
value: Wrapper,
|
|
|
enumerable: false,
|
|
|
writable: true,
|
|
|
configurable: true
|
|
|
}
|
|
|
});
|
|
|
return _setPrototypeOf(Wrapper, Class);
|
|
|
};
|
|
|
|
|
|
return _wrapNativeSuper(Class);
|
|
|
}
|
|
|
|
|
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
if (source == null) return {};
|
|
|
var target = {};
|
|
|
var sourceKeys = Object.keys(source);
|
|
|
var key, i;
|
|
|
|
|
|
for (i = 0; i < sourceKeys.length; i++) {
|
|
|
key = sourceKeys[i];
|
|
|
if (excluded.indexOf(key) >= 0) continue;
|
|
|
target[key] = source[key];
|
|
|
}
|
|
|
|
|
|
return target;
|
|
|
}
|
|
|
|
|
|
function _unsupportedIterableToArray(o, minLen) {
|
|
|
if (!o) return;
|
|
|
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
|
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
|
if (n === "Map" || n === "Set") return Array.from(o);
|
|
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
|
}
|
|
|
|
|
|
function _arrayLikeToArray(arr, len) {
|
|
|
if (len == null || len > arr.length) len = arr.length;
|
|
|
|
|
|
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
|
|
|
|
return arr2;
|
|
|
}
|
|
|
|
|
|
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
|
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
|
if (it) return (it = it.call(o)).next.bind(it);
|
|
|
|
|
|
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
|
if (it) o = it;
|
|
|
var i = 0;
|
|
|
return function () {
|
|
|
if (i >= o.length) return {
|
|
|
done: true
|
|
|
};
|
|
|
return {
|
|
|
done: false,
|
|
|
value: o[i++]
|
|
|
};
|
|
|
};
|
|
|
}
|
|
|
|
|
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
|
}
|
|
|
|
|
|
// these aren't really private, but nor are they really useful to document
|
|
|
|
|
|
/**
|
|
|
* @private
|
|
|
*/
|
|
|
var LuxonError = /*#__PURE__*/function (_Error) {
|
|
|
_inheritsLoose(LuxonError, _Error);
|
|
|
|
|
|
function LuxonError() {
|
|
|
return _Error.apply(this, arguments) || this;
|
|
|
}
|
|
|
|
|
|
return LuxonError;
|
|
|
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
|
/**
|
|
|
* @private
|
|
|
*/
|
|
|
|
|
|
|
|
|
var InvalidDateTimeError = /*#__PURE__*/function (_LuxonError) {
|
|
|
_inheritsLoose(InvalidDateTimeError, _LuxonError);
|
|
|
|
|
|
function InvalidDateTimeError(reason) {
|
|
|
return _LuxonError.call(this, "Invalid DateTime: " + reason.toMessage()) || this;
|
|
|
}
|
|
|
|
|
|
return InvalidDateTimeError;
|
|
|
}(LuxonError);
|
|
|
/**
|
|
|
* @private
|
|
|
*/
|
|
|
|
|
|
var InvalidIntervalError = /*#__PURE__*/function (_LuxonError2) {
|
|
|
_inheritsLoose(InvalidIntervalError, _LuxonError2);
|
|
|
|
|
|
function InvalidIntervalError(reason) {
|
|
|
return _LuxonError2.call(this, "Invalid Interval: " + reason.toMessage()) || this;
|
|
|
}
|
|
|
|
|
|
return InvalidIntervalError;
|
|
|
}(LuxonError);
|
|
|
/**
|
|
|
* @private
|
|
|
*/
|
|
|
|
|
|
var InvalidDurationError = /*#__PURE__*/function (_LuxonError3) {
|
|
|
_inheritsLoose(InvalidDurationError, _LuxonError3);
|
|
|
|
|
|
function InvalidDurationError(reason) {
|
|
|
return _LuxonError3.call(this, "Invalid Duration: " + reason.toMessage()) || this;
|
|
|
}
|
|
|
|
|
|
return InvalidDurationError;
|
|
|
}(LuxonError);
|
|
|
/**
|
|
|
* @private
|
|
|
*/
|
|
|
|
|
|
var ConflictingSpecificationError = /*#__PURE__*/function (_LuxonError4) {
|
|
|
_inheritsLoose(ConflictingSpecificationError, _LuxonError4);
|
|
|
|
|
|
function ConflictingSpecificationError() {
|
|
|
return _LuxonError4.apply(this, arguments) || this;
|
|
|
}
|
|
|
|
|
|
return ConflictingSpecificationError;
|
|
|
}(LuxonError);
|
|
|
/**
|
|
|
* @private
|
|
|
*/
|
|
|
|
|
|
var InvalidUnitError = /*#__PURE__*/function (_LuxonError5) {
|
|
|
_inheritsLoose(InvalidUnitError, _LuxonError5);
|
|
|
|
|
|
function InvalidUnitError(unit) {
|
|
|
return _LuxonError5.call(this, "Invalid unit " + unit) || this;
|
|
|
}
|
|
|
|
|
|
return InvalidUnitError;
|
|
|
}(LuxonError);
|
|
|
/**
|
|
|
* @private
|
|
|
*/
|
|
|
|
|
|
var InvalidArgumentError = /*#__PURE__*/function (_LuxonError6) {
|
|
|
_inheritsLoose(InvalidArgumentError, _LuxonError6);
|
|
|
|
|
|
function InvalidArgumentError() {
|
|
|
return _LuxonError6.apply(this, arguments) || this;
|
|
|
}
|
|
|
|
|
|
return InvalidArgumentError;
|
|
|
}(LuxonError);
|
|
|
/**
|
|
|
* @private
|
|
|
*/
|
|
|
|
|
|
var ZoneIsAbstractError = /*#__PURE__*/function (_LuxonError7) {
|
|
|
_inheritsLoose(ZoneIsAbstractError, _LuxonError7);
|
|
|
|
|
|
function ZoneIsAbstractError() {
|
|
|
return _LuxonError7.call(this, "Zone is an abstract class") || this;
|
|
|
}
|
|
|
|
|
|
return ZoneIsAbstractError;
|
|
|
}(LuxonError);
|
|
|
|
|
|
/**
|
|
|
* @private
|
|
|
*/
|
|
|
var n = "numeric",
|
|
|
s = "short",
|
|
|
l = "long";
|
|
|
var DATE_SHORT = {
|
|
|
year: n,
|
|
|
month: n,
|
|
|
day: n
|
|
|
};
|
|
|
var DATE_MED = {
|
|
|
year: n,
|
|
|
month: s,
|
|
|
day: n
|
|
|
};
|
|
|
var DATE_MED_WITH_WEEKDAY = {
|
|
|
year: n,
|
|
|
month: s,
|
|
|
day: n,
|
|
|
weekday: s
|
|
|
};
|
|
|
var DATE_FULL = {
|
|
|
year: n,
|
|
|
month: l,
|
|
|
day: n
|
|
|
};
|
|
|
var DATE_HUGE = {
|
|
|
year: n,
|
|
|
month: l,
|
|
|
day: n,
|
|
|
weekday: l
|
|
|
};
|
|
|
var TIME_SIMPLE = {
|
|
|
hour: n,
|
|
|
minute: n
|
|
|
};
|
|
|
var TIME_WITH_SECONDS = {
|
|
|
hour: n,
|
|
|
minute: n,
|
|
|
second: n
|
|
|
};
|
|
|
var TIME_WITH_SHORT_OFFSET = {
|
|
|
hour: n,
|
|
|
minute: n,
|
|
|
second: n,
|
|
|
timeZoneName: s
|
|
|
};
|
|
|
var TIME_WITH_LONG_OFFSET = {
|
|
|
hour: n,
|
|
|
minute: n,
|
|
|
second: n,
|
|
|
timeZoneName: l
|
|
|
};
|
|
|
var TIME_24_SIMPLE = {
|
|
|
hour: n,
|
|
|
minute: n,
|
|
|
hourCycle: "h23"
|
|
|
};
|
|
|
var TIME_24_WITH_SECONDS = {
|
|
|
hour: n,
|
|
|
minute: n,
|
|
|
second: n,
|
|
|
hourCycle: "h23"
|
|
|
};
|
|
|
var TIME_24_WITH_SHORT_OFFSET = {
|
|
|
hour: n,
|
|
|
minute: n,
|
|
|
second: n,
|
|
|
hourCycle: "h23",
|
|
|
timeZoneName: s
|
|
|
};
|
|
|
var TIME_24_WITH_LONG_OFFSET = {
|
|
|
hour: n,
|
|
|
minute: n,
|
|
|
second: n,
|
|
|
hourCycle: "h23",
|
|
|
timeZoneName: l
|
|
|
};
|
|
|
var DATETIME_SHORT = {
|
|
|
year: n,
|
|
|
month: n,
|
|
|
day: n,
|
|
|
hour: n,
|
|
|
minute: n
|
|
|
};
|
|
|
var DATETIME_SHORT_WITH_SECONDS = {
|
|
|
year: n,
|
|
|
month: n,
|
|
|
day: n,
|
|
|
hour: n,
|
|
|
minute: n,
|
|
|
second: n
|
|
|
};
|
|
|
var DATETIME_MED = {
|
|
|
year: n,
|
|
|
month: s,
|
|
|
day: n,
|
|
|
hour: n,
|
|
|
minute: n
|
|
|
};
|
|
|
var DATETIME_MED_WITH_SECONDS = {
|
|
|
year: n,
|
|
|
month: s,
|
|
|
day: n,
|
|
|
hour: n,
|
|
|
minute: n,
|
|
|
second: n
|
|
|
};
|
|
|
var DATETIME_MED_WITH_WEEKDAY = {
|
|
|
year: n,
|
|
|
month: s,
|
|
|
day: n,
|
|
|
weekday: s,
|
|
|
hour: n,
|
|
|
minute: n
|
|
|
};
|
|
|
var DATETIME_FULL = {
|
|
|
year: n,
|
|
|
month: l,
|
|
|
day: n,
|
|
|
hour: n,
|
|
|
minute: n,
|
|
|
timeZoneName: s
|
|
|
};
|
|
|
var DATETIME_FULL_WITH_SECONDS = {
|
|
|
year: n,
|
|
|
month: l,
|
|
|
day: n,
|
|
|
hour: n,
|
|
|
minute: n,
|
|
|
second: n,
|
|
|
timeZoneName: s
|
|
|
};
|
|
|
var DATETIME_HUGE = {
|
|
|
year: n,
|
|
|
month: l,
|
|
|
day: n,
|
|
|
weekday: l,
|
|
|
hour: n,
|
|
|
minute: n,
|
|
|
timeZoneName: l
|
|
|
};
|
|
|
var DATETIME_HUGE_WITH_SECONDS = {
|
|
|
year: n,
|
|
|
month: l,
|
|
|
day: n,
|
|
|
weekday: l,
|
|
|
hour: n,
|
|
|
minute: n,
|
|
|
second: n,
|
|
|
timeZoneName: l
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* @private
|
|
|
*/
|
|
|
// TYPES
|
|
|
|
|
|
function isUndefined(o) {
|
|
|
return typeof o === "undefined";
|
|
|
}
|
|
|
function isNumber(o) {
|
|
|
return typeof o === "number";
|
|
|
}
|
|
|
function isInteger(o) {
|
|
|
return typeof o === "number" && o % 1 === 0;
|
|
|
}
|
|
|
function isString(o) {
|
|
|
return typeof o === "string";
|
|
|
}
|
|
|
function isDate(o) {
|
|
|
return Object.prototype.toString.call(o) === "[object Date]";
|
|
|
} // CAPABILITIES
|
|
|
|
|
|
function hasRelative() {
|
|
|
try {
|
|
|
return typeof Intl !== "undefined" && !!Intl.RelativeTimeFormat;
|
|
|
} catch (e) {
|
|
|
return false;
|
|
|
}
|
|
|
} // OBJECTS AND ARRAYS
|
|
|
|
|
|
function maybeArray(thing) {
|
|
|
return Array.isArray(thing) ? thing : [thing];
|
|
|
}
|
|
|
function bestBy(arr, by, compare) {
|
|
|
if (arr.length === 0) {
|
|
|
return undefined;
|
|
|
}
|
|
|
|
|
|
return arr.reduce(function (best, next) {
|
|
|
var pair = [by(next), next];
|
|
|
|
|
|
if (!best) {
|
|
|
return pair;
|
|
|
} else if (compare(best[0], pair[0]) === best[0]) {
|
|
|
return best;
|
|
|
} else {
|
|
|
return pair;
|
|
|
}
|
|
|
}, null)[1];
|
|
|
}
|
|
|
function pick(obj, keys) {
|
|
|
return keys.reduce(function (a, k) {
|
|
|
a[k] = obj[k];
|
|
|
return a;
|
|
|
}, {});
|
|
|
}
|
|
|
function hasOwnProperty(obj, prop) {
|
|
|
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
|
} // NUMBERS AND STRINGS
|
|
|
|
|
|
function integerBetween(thing, bottom, top) {
|
|
|
return isInteger(thing) && thing >= bottom && thing <= top;
|
|
|
} // x % n but takes the sign of n instead of x
|
|
|
|
|
|
function floorMod(x, n) {
|
|
|
return x - n * Math.floor(x / n);
|
|
|
}
|
|
|
function padStart(input, n) {
|
|
|
if (n === void 0) {
|
|
|
n = 2;
|
|
|
}
|
|
|
|
|
|
var minus = input < 0 ? "-" : "";
|
|
|
var target = minus ? input * -1 : input;
|
|
|
var result;
|
|
|
|
|
|
if (target.toString().length < n) {
|
|
|
result = ("0".repeat(n) + target).slice(-n);
|
|
|
} else {
|
|
|
result = target.toString();
|
|
|
}
|
|
|
|
|
|
return "" + minus + result;
|
|
|
}
|
|
|
function parseInteger(string) {
|
|
|
if (isUndefined(string) || string === null || string === "") {
|
|
|
return undefined;
|
|
|
} else {
|
|
|
return parseInt(string, 10);
|
|
|
}
|
|
|
}
|
|
|
function parseMillis(fraction) {
|
|
|
// Return undefined (instead of 0) in these cases, where fraction is not set
|
|
|
if (isUndefined(fraction) || fraction === null || fraction === "") {
|
|
|
return undefined;
|
|
|
} else {
|
|
|
var f = parseFloat("0." + fraction) * 1000;
|
|
|
return Math.floor(f);
|
|
|
}
|
|
|
}
|
|
|
function roundTo(number, digits, towardZero) {
|
|
|
if (towardZero === void 0) {
|
|
|
towardZero = false;
|
|
|
}
|
|
|
|
|
|
var factor = Math.pow(10, digits),
|
|
|
rounder = towardZero ? Math.trunc : Math.round;
|
|
|
return rounder(number * factor) / factor;
|
|
|
} // DATE BASICS
|
|
|
|
|
|
function isLeapYear(year) {
|
|
|
return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
|
|
|
}
|
|
|
function daysInYear(year) {
|
|
|
return isLeapYear(year) ? 366 : 365;
|
|
|
}
|
|
|
function daysInMonth(year, month) {
|
|
|
var modMonth = floorMod(month - 1, 12) + 1,
|
|
|
modYear = year + (month - modMonth) / 12;
|
|
|
|
|
|
if (modMonth === 2) {
|
|
|
return isLeapYear(modYear) ? 29 : 28;
|
|
|
} else {
|
|
|
return [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][modMonth - 1];
|
|
|
}
|
|
|
} // covert a calendar object to a local timestamp (epoch, but with the offset baked in)
|
|
|
|
|
|
function objToLocalTS(obj) {
|
|
|
var d = Date.UTC(obj.year, obj.month - 1, obj.day, obj.hour, obj.minute, obj.second, obj.millisecond); // for legacy reasons, years between 0 and 99 are interpreted as 19XX; revert that
|
|
|
|
|
|
if (obj.year < 100 && obj.year >= 0) {
|
|
|
d = new Date(d);
|
|
|
d.setUTCFullYear(d.getUTCFullYear() - 1900);
|
|
|
}
|
|
|
|
|
|
return +d;
|
|
|
}
|
|
|
function weeksInWeekYear(weekYear) {
|
|
|
var p1 = (weekYear + Math.floor(weekYear / 4) - Math.floor(weekYear / 100) + Math.floor(weekYear / 400)) % 7,
|
|
|
last = weekYear - 1,
|
|
|
p2 = (last + Math.floor(last / 4) - Math.floor(last / 100) + Math.floor(last / 400)) % 7;
|
|
|
return p1 === 4 || p2 === 3 ? 53 : 52;
|
|
|
}
|
|
|
function untruncateYear(year) {
|
|
|
if (year > 99) {
|
|
|
return year;
|
|
|
} else return year > 60 ? 1900 + year : 2000 + year;
|
|
|
} // PARSING
|
|
|
|
|
|
function parseZoneInfo(ts, offsetFormat, locale, timeZone) {
|
|
|
if (timeZone === void 0) {
|
|
|
timeZone = null;
|
|
|
}
|
|
|
|
|
|
var date = new Date(ts),
|
|
|
intlOpts = {
|
|
|
hourCycle: "h23",
|
|
|
year: "numeric",
|
|
|
month: "2-digit",
|
|
|
day: "2-digit",
|
|
|
hour: "2-digit",
|
|
|
minute: "2-digit"
|
|
|
};
|
|
|
|
|
|
if (timeZone) {
|
|
|
intlOpts.timeZone = timeZone;
|
|
|
}
|
|
|
|
|
|
var modified = _extends({
|
|
|
timeZoneName: offsetFormat
|
|
|
}, intlOpts);
|
|
|
|
|
|
var parsed = new Intl.DateTimeFormat(locale, modified).formatToParts(date).find(function (m) {
|
|
|
return m.type.toLowerCase() === "timezonename";
|
|
|
});
|
|
|
return parsed ? parsed.value : null;
|
|
|
} // signedOffset('-5', '30') -> -330
|
|
|
|
|
|
function signedOffset(offHourStr, offMinuteStr) {
|
|
|
var offHour = parseInt(offHourStr, 10); // don't || this because we want to preserve -0
|
|
|
|
|
|
if (Number.isNaN(offHour)) {
|
|
|
offHour = 0;
|
|
|
}
|
|
|
|
|
|
var offMin = parseInt(offMinuteStr, 10) || 0,
|
|
|
offMinSigned = offHour < 0 || Object.is(offHour, -0) ? -offMin : offMin;
|
|
|
return offHour * 60 + offMinSigned;
|
|
|
} // COERCION
|
|
|
|
|
|
function asNumber(value) {
|
|
|
var numericValue = Number(value);
|
|
|
if (typeof value === "boolean" || value === "" || Number.isNaN(numericValue)) throw new InvalidArgumentError("Invalid unit value " + value);
|
|
|
return numericValue;
|
|
|
}
|
|
|
function normalizeObject(obj, normalizer) {
|
|
|
var normalized = {};
|
|
|
|
|
|
for (var u in obj) {
|
|
|
if (hasOwnProperty(obj, u)) {
|
|
|
var v = obj[u];
|
|
|
if (v === undefined || v === null) continue;
|
|
|
normalized[normalizer(u)] = asNumber(v);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return normalized;
|
|
|
}
|
|
|
function formatOffset(offset, format) {
|
|
|
var hours = Math.trunc(Math.abs(offset / 60)),
|
|
|
minutes = Math.trunc(Math.abs(offset % 60)),
|
|
|
sign = offset >= 0 ? "+" : "-";
|
|
|
|
|
|
switch (format) {
|
|
|
case "short":
|
|
|
return "" + sign + padStart(hours, 2) + ":" + padStart(minutes, 2);
|
|
|
|
|
|
case "narrow":
|
|
|
return "" + sign + hours + (minutes > 0 ? ":" + minutes : "");
|
|
|
|
|
|
case "techie":
|
|
|
return "" + sign + padStart(hours, 2) + padStart(minutes, 2);
|
|
|
|
|
|
default:
|
|
|
throw new RangeError("Value format " + format + " is out of range for property format");
|
|
|
}
|
|
|
}
|
|
|
function timeObject(obj) {
|
|
|
return pick(obj, ["hour", "minute", "second", "millisecond"]);
|
|
|
}
|
|
|
var ianaRegex = /[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/;
|
|
|
|
|
|
/**
|
|
|
* @private
|
|
|
*/
|
|
|
|
|
|
|
|
|
var monthsLong = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
|
|
|
var monthsShort = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
|
|
var monthsNarrow = ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"];
|
|
|
function months(length) {
|
|
|
switch (length) {
|
|
|
case "narrow":
|
|
|
return [].concat(monthsNarrow);
|
|
|
|
|
|
case "short":
|
|
|
return [].concat(monthsShort);
|
|
|
|
|
|
case "long":
|
|
|
return [].concat(monthsLong);
|
|
|
|
|
|
case "numeric":
|
|
|
return ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
|
|
|
|
|
|
case "2-digit":
|
|
|
return ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"];
|
|
|
|
|
|
default:
|
|
|
return null;
|
|
|
}
|
|
|
}
|
|
|
var weekdaysLong = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"];
|
|
|
var weekdaysShort = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"];
|
|
|
var weekdaysNarrow = ["M", "T", "W", "T", "F", "S", "S"];
|
|
|
function weekdays(length) {
|
|
|
switch (length) {
|
|
|
case "narrow":
|
|
|
return [].concat(weekdaysNarrow);
|
|
|
|
|
|
case "short":
|
|
|
return [].concat(weekdaysShort);
|
|
|
|
|
|
case "long":
|
|
|
return [].concat(weekdaysLong);
|
|
|
|
|
|
case "numeric":
|
|
|
return ["1", "2", "3", "4", "5", "6", "7"];
|
|
|
|
|
|
default:
|
|
|
return null;
|
|
|
}
|
|
|
}
|
|
|
var meridiems = ["AM", "PM"];
|
|
|
var erasLong = ["Before Christ", "Anno Domini"];
|
|
|
var erasShort = ["BC", "AD"];
|
|
|
var erasNarrow = ["B", "A"];
|
|
|
function eras(length) {
|
|
|
switch (length) {
|
|
|
case "narrow":
|
|
|
return [].concat(erasNarrow);
|
|
|
|
|
|
case "short":
|
|
|
return [].concat(erasShort);
|
|
|
|
|
|
case "long":
|
|
|
return [].concat(erasLong);
|
|
|
|
|
|
default:
|
|
|
return null;
|
|
|
}
|
|
|
}
|
|
|
function meridiemForDateTime(dt) {
|
|
|
return meridiems[dt.hour < 12 ? 0 : 1];
|
|
|
}
|
|
|
function weekdayForDateTime(dt, length) {
|
|
|
return weekdays(length)[dt.weekday - 1];
|
|
|
}
|
|
|
function monthForDateTime(dt, length) {
|
|
|
return months(length)[dt.month - 1];
|
|
|
}
|
|
|
function eraForDateTime(dt, length) {
|
|
|
return eras(length)[dt.year < 0 ? 0 : 1];
|
|
|
}
|
|
|
function formatRelativeTime(unit, count, numeric, narrow) {
|
|
|
if (numeric === void 0) {
|
|
|
numeric = "always";
|
|
|
}
|
|
|
|
|
|
if (narrow === void 0) {
|
|
|
narrow = false;
|
|
|
}
|
|
|
|
|
|
var units = {
|
|
|
years: ["year", "yr."],
|
|
|
quarters: ["quarter", "qtr."],
|
|
|
months: ["month", "mo."],
|
|
|
weeks: ["week", "wk."],
|
|
|
days: ["day", "day", "days"],
|
|
|
hours: ["hour", "hr."],
|
|
|
minutes: ["minute", "min."],
|
|
|
seconds: ["second", "sec."]
|
|
|
};
|
|
|
var lastable = ["hours", "minutes", "seconds"].indexOf(unit) === -1;
|
|
|
|
|
|
if (numeric === "auto" && lastable) {
|
|
|
var isDay = unit === "days";
|
|
|
|
|
|
switch (count) {
|
|
|
case 1:
|
|
|
return isDay ? "tomorrow" : "next " + units[unit][0];
|
|
|
|
|
|
case -1:
|
|
|
return isDay ? "yesterday" : "last " + units[unit][0];
|
|
|
|
|
|
case 0:
|
|
|
return isDay ? "today" : "this " + units[unit][0];
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var isInPast = Object.is(count, -0) || count < 0,
|
|
|
fmtValue = Math.abs(count),
|
|
|
singular = fmtValue === 1,
|
|
|
lilUnits = units[unit],
|
|
|
fmtUnit = narrow ? singular ? lilUnits[1] : lilUnits[2] || lilUnits[1] : singular ? units[unit][0] : unit;
|
|
|
return isInPast ? fmtValue + " " + fmtUnit + " ago" : "in " + fmtValue + " " + fmtUnit;
|
|
|
}
|
|
|
|
|
|
function stringifyTokens(splits, tokenToString) {
|
|
|
var s = "";
|
|
|
|
|
|
for (var _iterator = _createForOfIteratorHelperLoose(splits), _step; !(_step = _iterator()).done;) {
|
|
|
var token = _step.value;
|
|
|
|
|
|
if (token.literal) {
|
|
|
s += token.val;
|
|
|
} else {
|
|
|
s += tokenToString(token.val);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return s;
|
|
|
}
|
|
|
|
|
|
var _macroTokenToFormatOpts = {
|
|
|
D: DATE_SHORT,
|
|
|
DD: DATE_MED,
|
|
|
DDD: DATE_FULL,
|
|
|
DDDD: DATE_HUGE,
|
|
|
t: TIME_SIMPLE,
|
|
|
tt: TIME_WITH_SECONDS,
|
|
|
ttt: TIME_WITH_SHORT_OFFSET,
|
|
|
tttt: TIME_WITH_LONG_OFFSET,
|
|
|
T: TIME_24_SIMPLE,
|
|
|
TT: TIME_24_WITH_SECONDS,
|
|
|
TTT: TIME_24_WITH_SHORT_OFFSET,
|
|
|
TTTT: TIME_24_WITH_LONG_OFFSET,
|
|
|
f: DATETIME_SHORT,
|
|
|
ff: DATETIME_MED,
|
|
|
fff: DATETIME_FULL,
|
|
|
ffff: DATETIME_HUGE,
|
|
|
F: DATETIME_SHORT_WITH_SECONDS,
|
|
|
FF: DATETIME_MED_WITH_SECONDS,
|
|
|
FFF: DATETIME_FULL_WITH_SECONDS,
|
|
|
FFFF: DATETIME_HUGE_WITH_SECONDS
|
|
|
};
|
|
|
/**
|
|
|
* @private
|
|
|
*/
|
|
|
|
|
|
var Formatter = /*#__PURE__*/function () {
|
|
|
Formatter.create = function create(locale, opts) {
|
|
|
if (opts === void 0) {
|
|
|
opts = {};
|
|
|
}
|
|
|
|
|
|
return new Formatter(locale, opts);
|
|
|
};
|
|
|
|
|
|
Formatter.parseFormat = function parseFormat(fmt) {
|
|
|
var current = null,
|
|
|
currentFull = "",
|
|
|
bracketed = false;
|
|
|
var splits = [];
|
|
|
|
|
|
for (var i = 0; i < fmt.length; i++) {
|
|
|
var c = fmt.charAt(i);
|
|
|
|
|
|
if (c === "'") {
|
|
|
if (currentFull.length > 0) {
|
|
|
splits.push({
|
|
|
literal: bracketed,
|
|
|
val: currentFull
|
|
|
});
|
|
|
}
|
|
|
|
|
|
current = null;
|
|
|
currentFull = "";
|
|
|
bracketed = !bracketed;
|
|
|
} else if (bracketed) {
|
|
|
currentFull += c;
|
|
|
} else if (c === current) {
|
|
|
currentFull += c;
|
|
|
} else {
|
|
|
if (currentFull.length > 0) {
|
|
|
splits.push({
|
|
|
literal: false,
|
|
|
val: currentFull
|
|
|
});
|
|
|
}
|
|
|
|
|
|
currentFull = c;
|
|
|
current = c;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (currentFull.length > 0) {
|
|
|
splits.push({
|
|
|
literal: bracketed,
|
|
|
val: currentFull
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return splits;
|
|
|
};
|
|
|
|
|
|
Formatter.macroTokenToFormatOpts = function macroTokenToFormatOpts(token) {
|
|
|
return _macroTokenToFormatOpts[token];
|
|
|
};
|
|
|
|
|
|
function Formatter(locale, formatOpts) {
|
|
|
this.opts = formatOpts;
|
|
|
this.loc = locale;
|
|
|
this.systemLoc = null;
|
|
|
}
|
|
|
|
|
|
var _proto = Formatter.prototype;
|
|
|
|
|
|
_proto.formatWithSystemDefault = function formatWithSystemDefault(dt, opts) {
|
|
|
if (this.systemLoc === null) {
|
|
|
this.systemLoc = this.loc.redefaultToSystem();
|
|
|
}
|
|
|
|
|
|
var df = this.systemLoc.dtFormatter(dt, _extends({}, this.opts, opts));
|
|
|
return df.format();
|
|
|
};
|
|
|
|
|
|
_proto.formatDateTime = function formatDateTime(dt, opts) {
|
|
|
if (opts === void 0) {
|
|
|
opts = {};
|
|
|
}
|
|
|
|
|
|
var df = this.loc.dtFormatter(dt, _extends({}, this.opts, opts));
|
|
|
return df.format();
|
|
|
};
|
|
|
|
|
|
_proto.formatDateTimeParts = function formatDateTimeParts(dt, opts) {
|
|
|
if (opts === void 0) {
|
|
|
opts = {};
|
|
|
}
|
|
|
|
|
|
var df = this.loc.dtFormatter(dt, _extends({}, this.opts, opts));
|
|
|
return df.formatToParts();
|
|
|
};
|
|
|
|
|
|
_proto.resolvedOptions = function resolvedOptions(dt, opts) {
|
|
|
if (opts === void 0) {
|
|
|
opts = {};
|
|
|
}
|
|
|
|
|
|
var df = this.loc.dtFormatter(dt, _extends({}, this.opts, opts));
|
|
|
return df.resolvedOptions();
|
|
|
};
|
|
|
|
|
|
_proto.num = function num(n, p) {
|
|
|
if (p === void 0) {
|
|
|
p = 0;
|
|
|
}
|
|
|
|
|
|
// we get some perf out of doing this here, annoyingly
|
|
|
if (this.opts.forceSimple) {
|
|
|
return padStart(n, p);
|
|
|
}
|
|
|
|
|
|
var opts = _extends({}, this.opts);
|
|
|
|
|
|
if (p > 0) {
|
|
|
opts.padTo = p;
|
|
|
}
|
|
|
|
|
|
return this.loc.numberFormatter(opts).format(n);
|
|
|
};
|
|
|
|
|
|
_proto.formatDateTimeFromString = function formatDateTimeFromString(dt, fmt) {
|
|
|
var _this = this;
|
|
|
|
|
|
var knownEnglish = this.loc.listingMode() === "en",
|
|
|
useDateTimeFormatter = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory",
|
|
|
string = function string(opts, extract) {
|
|
|
return _this.loc.extract(dt, opts, extract);
|
|
|
},
|
|
|
formatOffset = function formatOffset(opts) {
|
|
|
if (dt.isOffsetFixed && dt.offset === 0 && opts.allowZ) {
|
|
|
return "Z";
|
|
|
}
|
|
|
|
|
|
return dt.isValid ? dt.zone.formatOffset(dt.ts, opts.format) : "";
|
|
|
},
|
|
|
meridiem = function meridiem() {
|
|
|
return knownEnglish ? meridiemForDateTime(dt) : string({
|
|
|
hour: "numeric",
|
|
|
hourCycle: "h12"
|
|
|
}, "dayperiod");
|
|
|
},
|
|
|
month = function month(length, standalone) {
|
|
|
return knownEnglish ? monthForDateTime(dt, length) : string(standalone ? {
|
|
|
month: length
|
|
|
} : {
|
|
|
month: length,
|
|
|
day: "numeric"
|
|
|
}, "month");
|
|
|
},
|
|
|
weekday = function weekday(length, standalone) {
|
|
|
return knownEnglish ? weekdayForDateTime(dt, length) : string(standalone ? {
|
|
|
weekday: length
|
|
|
} : {
|
|
|
weekday: length,
|
|
|
month: "long",
|
|
|
day: "numeric"
|
|
|
}, "weekday");
|
|
|
},
|
|
|
maybeMacro = function maybeMacro(token) {
|
|
|
var formatOpts = Formatter.macroTokenToFormatOpts(token);
|
|
|
|
|
|
if (formatOpts) {
|
|
|
return _this.formatWithSystemDefault(dt, formatOpts);
|
|
|
} else {
|
|
|
return token;
|
|
|
}
|
|
|
},
|
|
|
era = function era(length) {
|
|
|
return knownEnglish ? eraForDateTime(dt, length) : string({
|
|
|
era: length
|
|
|
}, "era");
|
|
|
},
|
|
|
tokenToString = function tokenToString(token) {
|
|
|
// Where possible: http://cldr.unicode.org/translation/date-time-1/date-time#TOC-Standalone-vs.-Format-Styles
|
|
|
switch (token) {
|
|
|
// ms
|
|
|
case "S":
|
|
|
return _this.num(dt.millisecond);
|
|
|
|
|
|
case "u": // falls through
|
|
|
|
|
|
case "SSS":
|
|
|
return _this.num(dt.millisecond, 3);
|
|
|
// seconds
|
|
|
|
|
|
case "s":
|
|
|
return _this.num(dt.second);
|
|
|
|
|
|
case "ss":
|
|
|
return _this.num(dt.second, 2);
|
|
|
// minutes
|
|
|
|
|
|
case "m":
|
|
|
return _this.num(dt.minute);
|
|
|
|
|
|
case "mm":
|
|
|
return _this.num(dt.minute, 2);
|
|
|
// hours
|
|
|
|
|
|
case "h":
|
|
|
return _this.num(dt.hour % 12 === 0 ? 12 : dt.hour % 12);
|
|
|
|
|
|
case "hh":
|
|
|
return _this.num(dt.hour % 12 === 0 ? 12 : dt.hour % 12, 2);
|
|
|
|
|
|
case "H":
|
|
|
return _this.num(dt.hour);
|
|
|
|
|
|
case "HH":
|
|
|
return _this.num(dt.hour, 2);
|
|
|
// offset
|
|
|
|
|
|
case "Z":
|
|
|
// like +6
|
|
|
return formatOffset({
|
|
|
format: "narrow",
|
|
|
allowZ: _this.opts.allowZ
|
|
|
});
|
|
|
|
|
|
case "ZZ":
|
|
|
// like +06:00
|
|
|
return formatOffset({
|
|
|
format: "short",
|
|
|
allowZ: _this.opts.allowZ
|
|
|
});
|
|
|
|
|
|
case "ZZZ":
|
|
|
// like +0600
|
|
|
return formatOffset({
|
|
|
format: "techie",
|
|
|
allowZ: _this.opts.allowZ
|
|
|
});
|
|
|
|
|
|
case "ZZZZ":
|
|
|
// like EST
|
|
|
return dt.zone.offsetName(dt.ts, {
|
|
|
format: "short",
|
|
|
locale: _this.loc.locale
|
|
|
});
|
|
|
|
|
|
case "ZZZZZ":
|
|
|
// like Eastern Standard Time
|
|
|
return dt.zone.offsetName(dt.ts, {
|
|
|
format: "long",
|
|
|
locale: _this.loc.locale
|
|
|
});
|
|
|
// zone
|
|
|
|
|
|
case "z":
|
|
|
// like America/New_York
|
|
|
return dt.zoneName;
|
|
|
// meridiems
|
|
|
|
|
|
case "a":
|
|
|
return meridiem();
|
|
|
// dates
|
|
|
|
|
|
case "d":
|
|
|
return useDateTimeFormatter ? string({
|
|
|
day: "numeric"
|
|
|
}, "day") : _this.num(dt.day);
|
|
|
|
|
|
case "dd":
|
|
|
return useDateTimeFormatter ? string({
|
|
|
day: "2-digit"
|
|
|
}, "day") : _this.num(dt.day, 2);
|
|
|
// weekdays - standalone
|
|
|
|
|
|
case "c":
|
|
|
// like 1
|
|
|
return _this.num(dt.weekday);
|
|
|
|
|
|
case "ccc":
|
|
|
// like 'Tues'
|
|
|
return weekday("short", true);
|
|
|
|
|
|
case "cccc":
|
|
|
// like 'Tuesday'
|
|
|
return weekday("long", true);
|
|
|
|
|
|
case "ccccc":
|
|
|
// like 'T'
|
|
|
return weekday("narrow", true);
|
|
|
// weekdays - format
|
|
|
|
|
|
case "E":
|
|
|
// like 1
|
|
|
return _this.num(dt.weekday);
|
|
|
|
|
|
case "EEE":
|
|
|
// like 'Tues'
|
|
|
return weekday("short", false);
|
|
|
|
|
|
case "EEEE":
|
|
|
// like 'Tuesday'
|
|
|
return weekday("long", false);
|
|
|
|
|
|
case "EEEEE":
|
|
|
// like 'T'
|
|
|
return weekday("narrow", false);
|
|
|
// months - standalone
|
|
|
|
|
|
case "L":
|
|
|
// like 1
|
|
|
return useDateTimeFormatter ? string({
|
|
|
month: "numeric",
|
|
|
day: "numeric"
|
|
|
}, "month") : _this.num(dt.month);
|
|
|
|
|
|
case "LL":
|
|
|
// like 01, doesn't seem to work
|
|
|
return useDateTimeFormatter ? string({
|
|
|
month: "2-digit",
|
|
|
day: "numeric"
|
|
|
}, "month") : _this.num(dt.month, 2);
|
|
|
|
|
|
case "LLL":
|
|
|
// like Jan
|
|
|
return month("short", true);
|
|
|
|
|
|
case "LLLL":
|
|
|
// like January
|
|
|
return month("long", true);
|
|
|
|
|
|
case "LLLLL":
|
|
|
// like J
|
|
|
return month("narrow", true);
|
|
|
// months - format
|
|
|
|
|
|
case "M":
|
|
|
// like 1
|
|
|
return useDateTimeFormatter ? string({
|
|
|
month: "numeric"
|
|
|
}, "month") : _this.num(dt.month);
|
|
|
|
|
|
case "MM":
|
|
|
// like 01
|
|
|
return useDateTimeFormatter ? string({
|
|
|
month: "2-digit"
|
|
|
}, "month") : _this.num(dt.month, 2);
|
|
|
|
|
|
case "MMM":
|
|
|
// like Jan
|
|
|
return month("short", false);
|
|
|
|
|
|
case "MMMM":
|
|
|
// like January
|
|
|
return month("long", false);
|
|
|
|
|
|
case "MMMMM":
|
|
|
// like J
|
|
|
return month("narrow", false);
|
|
|
// years
|
|
|
|
|
|
case "y":
|
|
|
// like 2014
|
|
|
return useDateTimeFormatter ? string({
|
|
|
year: "numeric"
|
|
|
}, "year") : _this.num(dt.year);
|
|
|
|
|
|
case "yy":
|
|
|
// like 14
|
|
|
return useDateTimeFormatter ? string({
|
|
|
year: "2-digit"
|
|
|
}, "year") : _this.num(dt.year.toString().slice(-2), 2);
|
|
|
|
|
|
case "yyyy":
|
|
|
// like 0012
|
|
|
return useDateTimeFormatter ? string({
|
|
|
year: "numeric"
|
|
|
}, "year") : _this.num(dt.year, 4);
|
|
|
|
|
|
case "yyyyyy":
|
|
|
// like 000012
|
|
|
return useDateTimeFormatter ? string({
|
|
|
year: "numeric"
|
|
|
}, "year") : _this.num(dt.year, 6);
|
|
|
// eras
|
|
|
|
|
|
case "G":
|
|
|
// like AD
|
|
|
return era("short");
|
|
|
|
|
|
case "GG":
|
|
|
// like Anno Domini
|
|
|
return era("long");
|
|
|
|
|
|
case "GGGGG":
|
|
|
return era("narrow");
|
|
|
|
|
|
case "kk":
|
|
|
return _this.num(dt.weekYear.toString().slice(-2), 2);
|
|
|
|
|
|
case "kkkk":
|
|
|
return _this.num(dt.weekYear, 4);
|
|
|
|
|
|
case "W":
|
|
|
return _this.num(dt.weekNumber);
|
|
|
|
|
|
case "WW":
|
|
|
return _this.num(dt.weekNumber, 2);
|
|
|
|
|
|
case "o":
|
|
|
return _this.num(dt.ordinal);
|
|
|
|
|
|
case "ooo":
|
|
|
return _this.num(dt.ordinal, 3);
|
|
|
|
|
|
case "q":
|
|
|
// like 1
|
|
|
return _this.num(dt.quarter);
|
|
|
|
|
|
case "qq":
|
|
|
// like 01
|
|
|
return _this.num(dt.quarter, 2);
|
|
|
|
|
|
case "X":
|
|
|
return _this.num(Math.floor(dt.ts / 1000));
|
|
|
|
|
|
case "x":
|
|
|
return _this.num(dt.ts);
|
|
|
|
|
|
default:
|
|
|
return maybeMacro(token);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
return stringifyTokens(Formatter.parseFormat(fmt), tokenToString);
|
|
|
};
|
|
|
|
|
|
_proto.formatDurationFromString = function formatDurationFromString(dur, fmt) {
|
|
|
var _this2 = this;
|
|
|
|
|
|
var tokenToField = function tokenToField(token) {
|
|
|
switch (token[0]) {
|
|
|
case "S":
|
|
|
return "millisecond";
|
|
|
|
|
|
case "s":
|
|
|
return "second";
|
|
|
|
|
|
case "m":
|
|
|
return "minute";
|
|
|
|
|
|
case "h":
|
|
|
return "hour";
|
|
|
|
|
|
case "d":
|
|
|
return "day";
|
|
|
|
|
|
case "M":
|
|
|
return "month";
|
|
|
|
|
|
case "y":
|
|
|
return "year";
|
|
|
|
|
|
default:
|
|
|
return null;
|
|
|
}
|
|
|
},
|
|
|
tokenToString = function tokenToString(lildur) {
|
|
|
return function (token) {
|
|
|
var mapped = tokenToField(token);
|
|
|
|
|
|
if (mapped) {
|
|
|
return _this2.num(lildur.get(mapped), token.length);
|
|
|
} else {
|
|
|
return token;
|
|
|
}
|
|
|
};
|
|
|
},
|
|
|
tokens = Formatter.parseFormat(fmt),
|
|
|
realTokens = tokens.reduce(function (found, _ref) {
|
|
|
var literal = _ref.literal,
|
|
|
val = _ref.val;
|
|
|
return literal ? found : found.concat(val);
|
|
|
}, []),
|
|
|
collapsed = dur.shiftTo.apply(dur, realTokens.map(tokenToField).filter(function (t) {
|
|
|
return t;
|
|
|
}));
|
|
|
|
|
|
return stringifyTokens(tokens, tokenToString(collapsed));
|
|
|
};
|
|
|
|
|
|
return Formatter;
|
|
|
}();
|
|
|
|
|
|
var Invalid = /*#__PURE__*/function () {
|
|
|
function Invalid(reason, explanation) {
|
|
|
this.reason = reason;
|
|
|
this.explanation = explanation;
|
|
|
}
|
|
|
|
|
|
var _proto = Invalid.prototype;
|
|
|
|
|
|
_proto.toMessage = function toMessage() {
|
|
|
if (this.explanation) {
|
|
|
return this.reason + ": " + this.explanation;
|
|
|
} else {
|
|
|
return this.reason;
|
|
|
}
|
|
|
};
|
|
|
|
|
|
return Invalid;
|
|
|
}();
|
|
|
|
|
|
/**
|
|
|
* @interface
|
|
|
*/
|
|
|
|
|
|
var Zone = /*#__PURE__*/function () {
|
|
|
function Zone() {}
|
|
|
|
|
|
var _proto = Zone.prototype;
|
|
|
|
|
|
/**
|
|
|
* Returns the offset's common name (such as EST) at the specified timestamp
|
|
|
* @abstract
|
|
|
* @param {number} ts - Epoch milliseconds for which to get the name
|
|
|
* @param {Object} opts - Options to affect the format
|
|
|
* @param {string} opts.format - What style of offset to return. Accepts 'long' or 'short'.
|
|
|
* @param {string} opts.locale - What locale to return the offset name in.
|
|
|
* @return {string}
|
|
|
*/
|
|
|
_proto.offsetName = function offsetName(ts, opts) {
|
|
|
throw new ZoneIsAbstractError();
|
|
|
}
|
|
|
/**
|
|
|
* Returns the offset's value as a string
|
|
|
* @abstract
|
|
|
* @param {number} ts - Epoch milliseconds for which to get the offset
|
|
|
* @param {string} format - What style of offset to return.
|
|
|
* Accepts 'narrow', 'short', or 'techie'. Returning '+6', '+06:00', or '+0600' respectively
|
|
|
* @return {string}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.formatOffset = function formatOffset(ts, format) {
|
|
|
throw new ZoneIsAbstractError();
|
|
|
}
|
|
|
/**
|
|
|
* Return the offset in minutes for this zone at the specified timestamp.
|
|
|
* @abstract
|
|
|
* @param {number} ts - Epoch milliseconds for which to compute the offset
|
|
|
* @return {number}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.offset = function offset(ts) {
|
|
|
throw new ZoneIsAbstractError();
|
|
|
}
|
|
|
/**
|
|
|
* Return whether this Zone is equal to another zone
|
|
|
* @abstract
|
|
|
* @param {Zone} otherZone - the zone to compare
|
|
|
* @return {boolean}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.equals = function equals(otherZone) {
|
|
|
throw new ZoneIsAbstractError();
|
|
|
}
|
|
|
/**
|
|
|
* Return whether this Zone is valid.
|
|
|
* @abstract
|
|
|
* @type {boolean}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_createClass(Zone, [{
|
|
|
key: "type",
|
|
|
get:
|
|
|
/**
|
|
|
* The type of zone
|
|
|
* @abstract
|
|
|
* @type {string}
|
|
|
*/
|
|
|
function get() {
|
|
|
throw new ZoneIsAbstractError();
|
|
|
}
|
|
|
/**
|
|
|
* The name of this zone.
|
|
|
* @abstract
|
|
|
* @type {string}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "name",
|
|
|
get: function get() {
|
|
|
throw new ZoneIsAbstractError();
|
|
|
}
|
|
|
/**
|
|
|
* Returns whether the offset is known to be fixed for the whole year.
|
|
|
* @abstract
|
|
|
* @type {boolean}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "isUniversal",
|
|
|
get: function get() {
|
|
|
throw new ZoneIsAbstractError();
|
|
|
}
|
|
|
}, {
|
|
|
key: "isValid",
|
|
|
get: function get() {
|
|
|
throw new ZoneIsAbstractError();
|
|
|
}
|
|
|
}]);
|
|
|
|
|
|
return Zone;
|
|
|
}();
|
|
|
|
|
|
var singleton$1 = null;
|
|
|
/**
|
|
|
* Represents the local zone for this JavaScript environment.
|
|
|
* @implements {Zone}
|
|
|
*/
|
|
|
|
|
|
var SystemZone = /*#__PURE__*/function (_Zone) {
|
|
|
_inheritsLoose(SystemZone, _Zone);
|
|
|
|
|
|
function SystemZone() {
|
|
|
return _Zone.apply(this, arguments) || this;
|
|
|
}
|
|
|
|
|
|
var _proto = SystemZone.prototype;
|
|
|
|
|
|
/** @override **/
|
|
|
_proto.offsetName = function offsetName(ts, _ref) {
|
|
|
var format = _ref.format,
|
|
|
locale = _ref.locale;
|
|
|
return parseZoneInfo(ts, format, locale);
|
|
|
}
|
|
|
/** @override **/
|
|
|
;
|
|
|
|
|
|
_proto.formatOffset = function formatOffset$1(ts, format) {
|
|
|
return formatOffset(this.offset(ts), format);
|
|
|
}
|
|
|
/** @override **/
|
|
|
;
|
|
|
|
|
|
_proto.offset = function offset(ts) {
|
|
|
return -new Date(ts).getTimezoneOffset();
|
|
|
}
|
|
|
/** @override **/
|
|
|
;
|
|
|
|
|
|
_proto.equals = function equals(otherZone) {
|
|
|
return otherZone.type === "system";
|
|
|
}
|
|
|
/** @override **/
|
|
|
;
|
|
|
|
|
|
_createClass(SystemZone, [{
|
|
|
key: "type",
|
|
|
get:
|
|
|
/** @override **/
|
|
|
function get() {
|
|
|
return "system";
|
|
|
}
|
|
|
/** @override **/
|
|
|
|
|
|
}, {
|
|
|
key: "name",
|
|
|
get: function get() {
|
|
|
return new Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
|
}
|
|
|
/** @override **/
|
|
|
|
|
|
}, {
|
|
|
key: "isUniversal",
|
|
|
get: function get() {
|
|
|
return false;
|
|
|
}
|
|
|
}, {
|
|
|
key: "isValid",
|
|
|
get: function get() {
|
|
|
return true;
|
|
|
}
|
|
|
}], [{
|
|
|
key: "instance",
|
|
|
get:
|
|
|
/**
|
|
|
* Get a singleton instance of the local zone
|
|
|
* @return {SystemZone}
|
|
|
*/
|
|
|
function get() {
|
|
|
if (singleton$1 === null) {
|
|
|
singleton$1 = new SystemZone();
|
|
|
}
|
|
|
|
|
|
return singleton$1;
|
|
|
}
|
|
|
}]);
|
|
|
|
|
|
return SystemZone;
|
|
|
}(Zone);
|
|
|
|
|
|
var matchingRegex = RegExp("^" + ianaRegex.source + "$");
|
|
|
var dtfCache = {};
|
|
|
|
|
|
function makeDTF(zone) {
|
|
|
if (!dtfCache[zone]) {
|
|
|
dtfCache[zone] = new Intl.DateTimeFormat("en-US", {
|
|
|
hourCycle: "h23",
|
|
|
timeZone: zone,
|
|
|
year: "numeric",
|
|
|
month: "2-digit",
|
|
|
day: "2-digit",
|
|
|
hour: "2-digit",
|
|
|
minute: "2-digit",
|
|
|
second: "2-digit"
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return dtfCache[zone];
|
|
|
}
|
|
|
|
|
|
var typeToPos = {
|
|
|
year: 0,
|
|
|
month: 1,
|
|
|
day: 2,
|
|
|
hour: 3,
|
|
|
minute: 4,
|
|
|
second: 5
|
|
|
};
|
|
|
|
|
|
function hackyOffset(dtf, date) {
|
|
|
var formatted = dtf.format(date).replace(/\u200E/g, ""),
|
|
|
parsed = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(formatted),
|
|
|
fMonth = parsed[1],
|
|
|
fDay = parsed[2],
|
|
|
fYear = parsed[3],
|
|
|
fHour = parsed[4],
|
|
|
fMinute = parsed[5],
|
|
|
fSecond = parsed[6];
|
|
|
return [fYear, fMonth, fDay, fHour, fMinute, fSecond];
|
|
|
}
|
|
|
|
|
|
function partsOffset(dtf, date) {
|
|
|
var formatted = dtf.formatToParts(date),
|
|
|
filled = [];
|
|
|
|
|
|
for (var i = 0; i < formatted.length; i++) {
|
|
|
var _formatted$i = formatted[i],
|
|
|
type = _formatted$i.type,
|
|
|
value = _formatted$i.value,
|
|
|
pos = typeToPos[type];
|
|
|
|
|
|
if (!isUndefined(pos)) {
|
|
|
filled[pos] = parseInt(value, 10);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return filled;
|
|
|
}
|
|
|
|
|
|
var ianaZoneCache = {};
|
|
|
/**
|
|
|
* A zone identified by an IANA identifier, like America/New_York
|
|
|
* @implements {Zone}
|
|
|
*/
|
|
|
|
|
|
var IANAZone = /*#__PURE__*/function (_Zone) {
|
|
|
_inheritsLoose(IANAZone, _Zone);
|
|
|
|
|
|
/**
|
|
|
* @param {string} name - Zone name
|
|
|
* @return {IANAZone}
|
|
|
*/
|
|
|
IANAZone.create = function create(name) {
|
|
|
if (!ianaZoneCache[name]) {
|
|
|
ianaZoneCache[name] = new IANAZone(name);
|
|
|
}
|
|
|
|
|
|
return ianaZoneCache[name];
|
|
|
}
|
|
|
/**
|
|
|
* Reset local caches. Should only be necessary in testing scenarios.
|
|
|
* @return {void}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
IANAZone.resetCache = function resetCache() {
|
|
|
ianaZoneCache = {};
|
|
|
dtfCache = {};
|
|
|
}
|
|
|
/**
|
|
|
* Returns whether the provided string is a valid specifier. This only checks the string's format, not that the specifier identifies a known zone; see isValidZone for that.
|
|
|
* @param {string} s - The string to check validity on
|
|
|
* @example IANAZone.isValidSpecifier("America/New_York") //=> true
|
|
|
* @example IANAZone.isValidSpecifier("Fantasia/Castle") //=> true
|
|
|
* @example IANAZone.isValidSpecifier("Sport~~blorp") //=> false
|
|
|
* @return {boolean}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
IANAZone.isValidSpecifier = function isValidSpecifier(s) {
|
|
|
return !!(s && s.match(matchingRegex));
|
|
|
}
|
|
|
/**
|
|
|
* Returns whether the provided string identifies a real zone
|
|
|
* @param {string} zone - The string to check
|
|
|
* @example IANAZone.isValidZone("America/New_York") //=> true
|
|
|
* @example IANAZone.isValidZone("Fantasia/Castle") //=> false
|
|
|
* @example IANAZone.isValidZone("Sport~~blorp") //=> false
|
|
|
* @return {boolean}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
IANAZone.isValidZone = function isValidZone(zone) {
|
|
|
try {
|
|
|
new Intl.DateTimeFormat("en-US", {
|
|
|
timeZone: zone
|
|
|
}).format();
|
|
|
return true;
|
|
|
} catch (e) {
|
|
|
return false;
|
|
|
}
|
|
|
} // Etc/GMT+8 -> -480
|
|
|
|
|
|
/** @ignore */
|
|
|
;
|
|
|
|
|
|
IANAZone.parseGMTOffset = function parseGMTOffset(specifier) {
|
|
|
if (specifier) {
|
|
|
var match = specifier.match(/^Etc\/GMT(0|[+-]\d{1,2})$/i);
|
|
|
|
|
|
if (match) {
|
|
|
return -60 * parseInt(match[1]);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return null;
|
|
|
};
|
|
|
|
|
|
function IANAZone(name) {
|
|
|
var _this;
|
|
|
|
|
|
_this = _Zone.call(this) || this;
|
|
|
/** @private **/
|
|
|
|
|
|
_this.zoneName = name;
|
|
|
/** @private **/
|
|
|
|
|
|
_this.valid = IANAZone.isValidZone(name);
|
|
|
return _this;
|
|
|
}
|
|
|
/** @override **/
|
|
|
|
|
|
|
|
|
var _proto = IANAZone.prototype;
|
|
|
|
|
|
/** @override **/
|
|
|
_proto.offsetName = function offsetName(ts, _ref) {
|
|
|
var format = _ref.format,
|
|
|
locale = _ref.locale;
|
|
|
return parseZoneInfo(ts, format, locale, this.name);
|
|
|
}
|
|
|
/** @override **/
|
|
|
;
|
|
|
|
|
|
_proto.formatOffset = function formatOffset$1(ts, format) {
|
|
|
return formatOffset(this.offset(ts), format);
|
|
|
}
|
|
|
/** @override **/
|
|
|
;
|
|
|
|
|
|
_proto.offset = function offset(ts) {
|
|
|
var date = new Date(ts);
|
|
|
if (isNaN(date)) return NaN;
|
|
|
|
|
|
var dtf = makeDTF(this.name),
|
|
|
_ref2 = dtf.formatToParts ? partsOffset(dtf, date) : hackyOffset(dtf, date),
|
|
|
year = _ref2[0],
|
|
|
month = _ref2[1],
|
|
|
day = _ref2[2],
|
|
|
hour = _ref2[3],
|
|
|
minute = _ref2[4],
|
|
|
second = _ref2[5];
|
|
|
|
|
|
var asUTC = objToLocalTS({
|
|
|
year: year,
|
|
|
month: month,
|
|
|
day: day,
|
|
|
hour: hour,
|
|
|
minute: minute,
|
|
|
second: second,
|
|
|
millisecond: 0
|
|
|
});
|
|
|
var asTS = +date;
|
|
|
var over = asTS % 1000;
|
|
|
asTS -= over >= 0 ? over : 1000 + over;
|
|
|
return (asUTC - asTS) / (60 * 1000);
|
|
|
}
|
|
|
/** @override **/
|
|
|
;
|
|
|
|
|
|
_proto.equals = function equals(otherZone) {
|
|
|
return otherZone.type === "iana" && otherZone.name === this.name;
|
|
|
}
|
|
|
/** @override **/
|
|
|
;
|
|
|
|
|
|
_createClass(IANAZone, [{
|
|
|
key: "type",
|
|
|
get: function get() {
|
|
|
return "iana";
|
|
|
}
|
|
|
/** @override **/
|
|
|
|
|
|
}, {
|
|
|
key: "name",
|
|
|
get: function get() {
|
|
|
return this.zoneName;
|
|
|
}
|
|
|
/** @override **/
|
|
|
|
|
|
}, {
|
|
|
key: "isUniversal",
|
|
|
get: function get() {
|
|
|
return false;
|
|
|
}
|
|
|
}, {
|
|
|
key: "isValid",
|
|
|
get: function get() {
|
|
|
return this.valid;
|
|
|
}
|
|
|
}]);
|
|
|
|
|
|
return IANAZone;
|
|
|
}(Zone);
|
|
|
|
|
|
var singleton = null;
|
|
|
/**
|
|
|
* A zone with a fixed offset (meaning no DST)
|
|
|
* @implements {Zone}
|
|
|
*/
|
|
|
|
|
|
var FixedOffsetZone = /*#__PURE__*/function (_Zone) {
|
|
|
_inheritsLoose(FixedOffsetZone, _Zone);
|
|
|
|
|
|
/**
|
|
|
* Get an instance with a specified offset
|
|
|
* @param {number} offset - The offset in minutes
|
|
|
* @return {FixedOffsetZone}
|
|
|
*/
|
|
|
FixedOffsetZone.instance = function instance(offset) {
|
|
|
return offset === 0 ? FixedOffsetZone.utcInstance : new FixedOffsetZone(offset);
|
|
|
}
|
|
|
/**
|
|
|
* Get an instance of FixedOffsetZone from a UTC offset string, like "UTC+6"
|
|
|
* @param {string} s - The offset string to parse
|
|
|
* @example FixedOffsetZone.parseSpecifier("UTC+6")
|
|
|
* @example FixedOffsetZone.parseSpecifier("UTC+06")
|
|
|
* @example FixedOffsetZone.parseSpecifier("UTC-6:00")
|
|
|
* @return {FixedOffsetZone}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
FixedOffsetZone.parseSpecifier = function parseSpecifier(s) {
|
|
|
if (s) {
|
|
|
var r = s.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);
|
|
|
|
|
|
if (r) {
|
|
|
return new FixedOffsetZone(signedOffset(r[1], r[2]));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return null;
|
|
|
};
|
|
|
|
|
|
function FixedOffsetZone(offset) {
|
|
|
var _this;
|
|
|
|
|
|
_this = _Zone.call(this) || this;
|
|
|
/** @private **/
|
|
|
|
|
|
_this.fixed = offset;
|
|
|
return _this;
|
|
|
}
|
|
|
/** @override **/
|
|
|
|
|
|
|
|
|
var _proto = FixedOffsetZone.prototype;
|
|
|
|
|
|
/** @override **/
|
|
|
_proto.offsetName = function offsetName() {
|
|
|
return this.name;
|
|
|
}
|
|
|
/** @override **/
|
|
|
;
|
|
|
|
|
|
_proto.formatOffset = function formatOffset$1(ts, format) {
|
|
|
return formatOffset(this.fixed, format);
|
|
|
}
|
|
|
/** @override **/
|
|
|
;
|
|
|
|
|
|
/** @override **/
|
|
|
_proto.offset = function offset() {
|
|
|
return this.fixed;
|
|
|
}
|
|
|
/** @override **/
|
|
|
;
|
|
|
|
|
|
_proto.equals = function equals(otherZone) {
|
|
|
return otherZone.type === "fixed" && otherZone.fixed === this.fixed;
|
|
|
}
|
|
|
/** @override **/
|
|
|
;
|
|
|
|
|
|
_createClass(FixedOffsetZone, [{
|
|
|
key: "type",
|
|
|
get: function get() {
|
|
|
return "fixed";
|
|
|
}
|
|
|
/** @override **/
|
|
|
|
|
|
}, {
|
|
|
key: "name",
|
|
|
get: function get() {
|
|
|
return this.fixed === 0 ? "UTC" : "UTC" + formatOffset(this.fixed, "narrow");
|
|
|
}
|
|
|
}, {
|
|
|
key: "isUniversal",
|
|
|
get: function get() {
|
|
|
return true;
|
|
|
}
|
|
|
}, {
|
|
|
key: "isValid",
|
|
|
get: function get() {
|
|
|
return true;
|
|
|
}
|
|
|
}], [{
|
|
|
key: "utcInstance",
|
|
|
get:
|
|
|
/**
|
|
|
* Get a singleton instance of UTC
|
|
|
* @return {FixedOffsetZone}
|
|
|
*/
|
|
|
function get() {
|
|
|
if (singleton === null) {
|
|
|
singleton = new FixedOffsetZone(0);
|
|
|
}
|
|
|
|
|
|
return singleton;
|
|
|
}
|
|
|
}]);
|
|
|
|
|
|
return FixedOffsetZone;
|
|
|
}(Zone);
|
|
|
|
|
|
/**
|
|
|
* A zone that failed to parse. You should never need to instantiate this.
|
|
|
* @implements {Zone}
|
|
|
*/
|
|
|
|
|
|
var InvalidZone = /*#__PURE__*/function (_Zone) {
|
|
|
_inheritsLoose(InvalidZone, _Zone);
|
|
|
|
|
|
function InvalidZone(zoneName) {
|
|
|
var _this;
|
|
|
|
|
|
_this = _Zone.call(this) || this;
|
|
|
/** @private */
|
|
|
|
|
|
_this.zoneName = zoneName;
|
|
|
return _this;
|
|
|
}
|
|
|
/** @override **/
|
|
|
|
|
|
|
|
|
var _proto = InvalidZone.prototype;
|
|
|
|
|
|
/** @override **/
|
|
|
_proto.offsetName = function offsetName() {
|
|
|
return null;
|
|
|
}
|
|
|
/** @override **/
|
|
|
;
|
|
|
|
|
|
_proto.formatOffset = function formatOffset() {
|
|
|
return "";
|
|
|
}
|
|
|
/** @override **/
|
|
|
;
|
|
|
|
|
|
_proto.offset = function offset() {
|
|
|
return NaN;
|
|
|
}
|
|
|
/** @override **/
|
|
|
;
|
|
|
|
|
|
_proto.equals = function equals() {
|
|
|
return false;
|
|
|
}
|
|
|
/** @override **/
|
|
|
;
|
|
|
|
|
|
_createClass(InvalidZone, [{
|
|
|
key: "type",
|
|
|
get: function get() {
|
|
|
return "invalid";
|
|
|
}
|
|
|
/** @override **/
|
|
|
|
|
|
}, {
|
|
|
key: "name",
|
|
|
get: function get() {
|
|
|
return this.zoneName;
|
|
|
}
|
|
|
/** @override **/
|
|
|
|
|
|
}, {
|
|
|
key: "isUniversal",
|
|
|
get: function get() {
|
|
|
return false;
|
|
|
}
|
|
|
}, {
|
|
|
key: "isValid",
|
|
|
get: function get() {
|
|
|
return false;
|
|
|
}
|
|
|
}]);
|
|
|
|
|
|
return InvalidZone;
|
|
|
}(Zone);
|
|
|
|
|
|
/**
|
|
|
* @private
|
|
|
*/
|
|
|
function normalizeZone(input, defaultZone) {
|
|
|
var offset;
|
|
|
|
|
|
if (isUndefined(input) || input === null) {
|
|
|
return defaultZone;
|
|
|
} else if (input instanceof Zone) {
|
|
|
return input;
|
|
|
} else if (isString(input)) {
|
|
|
var lowered = input.toLowerCase();
|
|
|
if (lowered === "local" || lowered === "system") return defaultZone;else if (lowered === "utc" || lowered === "gmt") return FixedOffsetZone.utcInstance;else if ((offset = IANAZone.parseGMTOffset(input)) != null) {
|
|
|
// handle Etc/GMT-4, which V8 chokes on
|
|
|
return FixedOffsetZone.instance(offset);
|
|
|
} else if (IANAZone.isValidSpecifier(lowered)) return IANAZone.create(input);else return FixedOffsetZone.parseSpecifier(lowered) || new InvalidZone(input);
|
|
|
} else if (isNumber(input)) {
|
|
|
return FixedOffsetZone.instance(input);
|
|
|
} else if (typeof input === "object" && input.offset && typeof input.offset === "number") {
|
|
|
// This is dumb, but the instanceof check above doesn't seem to really work
|
|
|
// so we're duck checking it
|
|
|
return input;
|
|
|
} else {
|
|
|
return new InvalidZone(input);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var now = function now() {
|
|
|
return Date.now();
|
|
|
},
|
|
|
defaultZone = "system",
|
|
|
defaultLocale = null,
|
|
|
defaultNumberingSystem = null,
|
|
|
defaultOutputCalendar = null,
|
|
|
throwOnInvalid;
|
|
|
/**
|
|
|
* Settings contains static getters and setters that control Luxon's overall behavior. Luxon is a simple library with few options, but the ones it does have live here.
|
|
|
*/
|
|
|
|
|
|
|
|
|
var Settings = /*#__PURE__*/function () {
|
|
|
function Settings() {}
|
|
|
|
|
|
/**
|
|
|
* Reset Luxon's global caches. Should only be necessary in testing scenarios.
|
|
|
* @return {void}
|
|
|
*/
|
|
|
Settings.resetCaches = function resetCaches() {
|
|
|
Locale.resetCache();
|
|
|
IANAZone.resetCache();
|
|
|
};
|
|
|
|
|
|
_createClass(Settings, null, [{
|
|
|
key: "now",
|
|
|
get:
|
|
|
/**
|
|
|
* Get the callback for returning the current timestamp.
|
|
|
* @type {function}
|
|
|
*/
|
|
|
function get() {
|
|
|
return now;
|
|
|
}
|
|
|
/**
|
|
|
* Set the callback for returning the current timestamp.
|
|
|
* The function should return a number, which will be interpreted as an Epoch millisecond count
|
|
|
* @type {function}
|
|
|
* @example Settings.now = () => Date.now() + 3000 // pretend it is 3 seconds in the future
|
|
|
* @example Settings.now = () => 0 // always pretend it's Jan 1, 1970 at midnight in UTC time
|
|
|
*/
|
|
|
,
|
|
|
set: function set(n) {
|
|
|
now = n;
|
|
|
}
|
|
|
/**
|
|
|
* Set the default time zone to create DateTimes in. Does not affect existing instances.
|
|
|
* Use the value "system" to reset this value to the system's time zone.
|
|
|
* @type {string}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "defaultZone",
|
|
|
get:
|
|
|
/**
|
|
|
* Get the default time zone object currently used to create DateTimes. Does not affect existing instances.
|
|
|
* The default value is the system's time zone (the one set on the machine that runs this code).
|
|
|
* @type {Zone}
|
|
|
*/
|
|
|
function get() {
|
|
|
return normalizeZone(defaultZone, SystemZone.instance);
|
|
|
}
|
|
|
/**
|
|
|
* Get the default locale to create DateTimes with. Does not affect existing instances.
|
|
|
* @type {string}
|
|
|
*/
|
|
|
,
|
|
|
set: function set(zone) {
|
|
|
defaultZone = zone;
|
|
|
}
|
|
|
}, {
|
|
|
key: "defaultLocale",
|
|
|
get: function get() {
|
|
|
return defaultLocale;
|
|
|
}
|
|
|
/**
|
|
|
* Set the default locale to create DateTimes with. Does not affect existing instances.
|
|
|
* @type {string}
|
|
|
*/
|
|
|
,
|
|
|
set: function set(locale) {
|
|
|
defaultLocale = locale;
|
|
|
}
|
|
|
/**
|
|
|
* Get the default numbering system to create DateTimes with. Does not affect existing instances.
|
|
|
* @type {string}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "defaultNumberingSystem",
|
|
|
get: function get() {
|
|
|
return defaultNumberingSystem;
|
|
|
}
|
|
|
/**
|
|
|
* Set the default numbering system to create DateTimes with. Does not affect existing instances.
|
|
|
* @type {string}
|
|
|
*/
|
|
|
,
|
|
|
set: function set(numberingSystem) {
|
|
|
defaultNumberingSystem = numberingSystem;
|
|
|
}
|
|
|
/**
|
|
|
* Get the default output calendar to create DateTimes with. Does not affect existing instances.
|
|
|
* @type {string}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "defaultOutputCalendar",
|
|
|
get: function get() {
|
|
|
return defaultOutputCalendar;
|
|
|
}
|
|
|
/**
|
|
|
* Set the default output calendar to create DateTimes with. Does not affect existing instances.
|
|
|
* @type {string}
|
|
|
*/
|
|
|
,
|
|
|
set: function set(outputCalendar) {
|
|
|
defaultOutputCalendar = outputCalendar;
|
|
|
}
|
|
|
/**
|
|
|
* Get whether Luxon will throw when it encounters invalid DateTimes, Durations, or Intervals
|
|
|
* @type {boolean}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "throwOnInvalid",
|
|
|
get: function get() {
|
|
|
return throwOnInvalid;
|
|
|
}
|
|
|
/**
|
|
|
* Set whether Luxon will throw when it encounters invalid DateTimes, Durations, or Intervals
|
|
|
* @type {boolean}
|
|
|
*/
|
|
|
,
|
|
|
set: function set(t) {
|
|
|
throwOnInvalid = t;
|
|
|
}
|
|
|
}]);
|
|
|
|
|
|
return Settings;
|
|
|
}();
|
|
|
|
|
|
var _excluded = ["base"];
|
|
|
var intlDTCache = {};
|
|
|
|
|
|
function getCachedDTF(locString, opts) {
|
|
|
if (opts === void 0) {
|
|
|
opts = {};
|
|
|
}
|
|
|
|
|
|
var key = JSON.stringify([locString, opts]);
|
|
|
var dtf = intlDTCache[key];
|
|
|
|
|
|
if (!dtf) {
|
|
|
dtf = new Intl.DateTimeFormat(locString, opts);
|
|
|
intlDTCache[key] = dtf;
|
|
|
}
|
|
|
|
|
|
return dtf;
|
|
|
}
|
|
|
|
|
|
var intlNumCache = {};
|
|
|
|
|
|
function getCachedINF(locString, opts) {
|
|
|
if (opts === void 0) {
|
|
|
opts = {};
|
|
|
}
|
|
|
|
|
|
var key = JSON.stringify([locString, opts]);
|
|
|
var inf = intlNumCache[key];
|
|
|
|
|
|
if (!inf) {
|
|
|
inf = new Intl.NumberFormat(locString, opts);
|
|
|
intlNumCache[key] = inf;
|
|
|
}
|
|
|
|
|
|
return inf;
|
|
|
}
|
|
|
|
|
|
var intlRelCache = {};
|
|
|
|
|
|
function getCachedRTF(locString, opts) {
|
|
|
if (opts === void 0) {
|
|
|
opts = {};
|
|
|
}
|
|
|
|
|
|
var _opts = opts;
|
|
|
_opts.base;
|
|
|
var cacheKeyOpts = _objectWithoutPropertiesLoose(_opts, _excluded); // exclude `base` from the options
|
|
|
|
|
|
|
|
|
var key = JSON.stringify([locString, cacheKeyOpts]);
|
|
|
var inf = intlRelCache[key];
|
|
|
|
|
|
if (!inf) {
|
|
|
inf = new Intl.RelativeTimeFormat(locString, opts);
|
|
|
intlRelCache[key] = inf;
|
|
|
}
|
|
|
|
|
|
return inf;
|
|
|
}
|
|
|
|
|
|
var sysLocaleCache = null;
|
|
|
|
|
|
function systemLocale() {
|
|
|
if (sysLocaleCache) {
|
|
|
return sysLocaleCache;
|
|
|
} else {
|
|
|
sysLocaleCache = new Intl.DateTimeFormat().resolvedOptions().locale;
|
|
|
return sysLocaleCache;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function parseLocaleString(localeStr) {
|
|
|
// I really want to avoid writing a BCP 47 parser
|
|
|
// see, e.g. https://github.com/wooorm/bcp-47
|
|
|
// Instead, we'll do this:
|
|
|
// a) if the string has no -u extensions, just leave it alone
|
|
|
// b) if it does, use Intl to resolve everything
|
|
|
// c) if Intl fails, try again without the -u
|
|
|
var uIndex = localeStr.indexOf("-u-");
|
|
|
|
|
|
if (uIndex === -1) {
|
|
|
return [localeStr];
|
|
|
} else {
|
|
|
var options;
|
|
|
var smaller = localeStr.substring(0, uIndex);
|
|
|
|
|
|
try {
|
|
|
options = getCachedDTF(localeStr).resolvedOptions();
|
|
|
} catch (e) {
|
|
|
options = getCachedDTF(smaller).resolvedOptions();
|
|
|
}
|
|
|
|
|
|
var _options = options,
|
|
|
numberingSystem = _options.numberingSystem,
|
|
|
calendar = _options.calendar; // return the smaller one so that we can append the calendar and numbering overrides to it
|
|
|
|
|
|
return [smaller, numberingSystem, calendar];
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function intlConfigString(localeStr, numberingSystem, outputCalendar) {
|
|
|
if (outputCalendar || numberingSystem) {
|
|
|
localeStr += "-u";
|
|
|
|
|
|
if (outputCalendar) {
|
|
|
localeStr += "-ca-" + outputCalendar;
|
|
|
}
|
|
|
|
|
|
if (numberingSystem) {
|
|
|
localeStr += "-nu-" + numberingSystem;
|
|
|
}
|
|
|
|
|
|
return localeStr;
|
|
|
} else {
|
|
|
return localeStr;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function mapMonths(f) {
|
|
|
var ms = [];
|
|
|
|
|
|
for (var i = 1; i <= 12; i++) {
|
|
|
var dt = DateTime.utc(2016, i, 1);
|
|
|
ms.push(f(dt));
|
|
|
}
|
|
|
|
|
|
return ms;
|
|
|
}
|
|
|
|
|
|
function mapWeekdays(f) {
|
|
|
var ms = [];
|
|
|
|
|
|
for (var i = 1; i <= 7; i++) {
|
|
|
var dt = DateTime.utc(2016, 11, 13 + i);
|
|
|
ms.push(f(dt));
|
|
|
}
|
|
|
|
|
|
return ms;
|
|
|
}
|
|
|
|
|
|
function listStuff(loc, length, defaultOK, englishFn, intlFn) {
|
|
|
var mode = loc.listingMode(defaultOK);
|
|
|
|
|
|
if (mode === "error") {
|
|
|
return null;
|
|
|
} else if (mode === "en") {
|
|
|
return englishFn(length);
|
|
|
} else {
|
|
|
return intlFn(length);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function supportsFastNumbers(loc) {
|
|
|
if (loc.numberingSystem && loc.numberingSystem !== "latn") {
|
|
|
return false;
|
|
|
} else {
|
|
|
return loc.numberingSystem === "latn" || !loc.locale || loc.locale.startsWith("en") || new Intl.DateTimeFormat(loc.intl).resolvedOptions().numberingSystem === "latn";
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* @private
|
|
|
*/
|
|
|
|
|
|
|
|
|
var PolyNumberFormatter = /*#__PURE__*/function () {
|
|
|
function PolyNumberFormatter(intl, forceSimple, opts) {
|
|
|
this.padTo = opts.padTo || 0;
|
|
|
this.floor = opts.floor || false;
|
|
|
|
|
|
if (!forceSimple) {
|
|
|
var intlOpts = {
|
|
|
useGrouping: false
|
|
|
};
|
|
|
if (opts.padTo > 0) intlOpts.minimumIntegerDigits = opts.padTo;
|
|
|
this.inf = getCachedINF(intl, intlOpts);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var _proto = PolyNumberFormatter.prototype;
|
|
|
|
|
|
_proto.format = function format(i) {
|
|
|
if (this.inf) {
|
|
|
var fixed = this.floor ? Math.floor(i) : i;
|
|
|
return this.inf.format(fixed);
|
|
|
} else {
|
|
|
// to match the browser's numberformatter defaults
|
|
|
var _fixed = this.floor ? Math.floor(i) : roundTo(i, 3);
|
|
|
|
|
|
return padStart(_fixed, this.padTo);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
return PolyNumberFormatter;
|
|
|
}();
|
|
|
/**
|
|
|
* @private
|
|
|
*/
|
|
|
|
|
|
|
|
|
var PolyDateFormatter = /*#__PURE__*/function () {
|
|
|
function PolyDateFormatter(dt, intl, opts) {
|
|
|
this.opts = opts;
|
|
|
var z;
|
|
|
|
|
|
if (dt.zone.isUniversal) {
|
|
|
// UTC-8 or Etc/UTC-8 are not part of tzdata, only Etc/GMT+8 and the like.
|
|
|
// That is why fixed-offset TZ is set to that unless it is:
|
|
|
// 1. Representing offset 0 when UTC is used to maintain previous behavior and does not become GMT.
|
|
|
// 2. Unsupported by the browser:
|
|
|
// - some do not support Etc/
|
|
|
// - < Etc/GMT-14, > Etc/GMT+12, and 30-minute or 45-minute offsets are not part of tzdata
|
|
|
var gmtOffset = -1 * (dt.offset / 60);
|
|
|
var offsetZ = gmtOffset >= 0 ? "Etc/GMT+" + gmtOffset : "Etc/GMT" + gmtOffset;
|
|
|
var isOffsetZoneSupported = IANAZone.isValidZone(offsetZ);
|
|
|
|
|
|
if (dt.offset !== 0 && isOffsetZoneSupported) {
|
|
|
z = offsetZ;
|
|
|
this.dt = dt;
|
|
|
} else {
|
|
|
// Not all fixed-offset zones like Etc/+4:30 are present in tzdata.
|
|
|
// So we have to make do. Two cases:
|
|
|
// 1. The format options tell us to show the zone. We can't do that, so the best
|
|
|
// we can do is format the date in UTC.
|
|
|
// 2. The format options don't tell us to show the zone. Then we can adjust them
|
|
|
// the time and tell the formatter to show it to us in UTC, so that the time is right
|
|
|
// and the bad zone doesn't show up.
|
|
|
z = "UTC";
|
|
|
|
|
|
if (opts.timeZoneName) {
|
|
|
this.dt = dt;
|
|
|
} else {
|
|
|
this.dt = dt.offset === 0 ? dt : DateTime.fromMillis(dt.ts + dt.offset * 60 * 1000);
|
|
|
}
|
|
|
}
|
|
|
} else if (dt.zone.type === "system") {
|
|
|
this.dt = dt;
|
|
|
} else {
|
|
|
this.dt = dt;
|
|
|
z = dt.zone.name;
|
|
|
}
|
|
|
|
|
|
var intlOpts = _extends({}, this.opts);
|
|
|
|
|
|
if (z) {
|
|
|
intlOpts.timeZone = z;
|
|
|
}
|
|
|
|
|
|
this.dtf = getCachedDTF(intl, intlOpts);
|
|
|
}
|
|
|
|
|
|
var _proto2 = PolyDateFormatter.prototype;
|
|
|
|
|
|
_proto2.format = function format() {
|
|
|
return this.dtf.format(this.dt.toJSDate());
|
|
|
};
|
|
|
|
|
|
_proto2.formatToParts = function formatToParts() {
|
|
|
return this.dtf.formatToParts(this.dt.toJSDate());
|
|
|
};
|
|
|
|
|
|
_proto2.resolvedOptions = function resolvedOptions() {
|
|
|
return this.dtf.resolvedOptions();
|
|
|
};
|
|
|
|
|
|
return PolyDateFormatter;
|
|
|
}();
|
|
|
/**
|
|
|
* @private
|
|
|
*/
|
|
|
|
|
|
|
|
|
var PolyRelFormatter = /*#__PURE__*/function () {
|
|
|
function PolyRelFormatter(intl, isEnglish, opts) {
|
|
|
this.opts = _extends({
|
|
|
style: "long"
|
|
|
}, opts);
|
|
|
|
|
|
if (!isEnglish && hasRelative()) {
|
|
|
this.rtf = getCachedRTF(intl, opts);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var _proto3 = PolyRelFormatter.prototype;
|
|
|
|
|
|
_proto3.format = function format(count, unit) {
|
|
|
if (this.rtf) {
|
|
|
return this.rtf.format(count, unit);
|
|
|
} else {
|
|
|
return formatRelativeTime(unit, count, this.opts.numeric, this.opts.style !== "long");
|
|
|
}
|
|
|
};
|
|
|
|
|
|
_proto3.formatToParts = function formatToParts(count, unit) {
|
|
|
if (this.rtf) {
|
|
|
return this.rtf.formatToParts(count, unit);
|
|
|
} else {
|
|
|
return [];
|
|
|
}
|
|
|
};
|
|
|
|
|
|
return PolyRelFormatter;
|
|
|
}();
|
|
|
/**
|
|
|
* @private
|
|
|
*/
|
|
|
|
|
|
|
|
|
var Locale = /*#__PURE__*/function () {
|
|
|
Locale.fromOpts = function fromOpts(opts) {
|
|
|
return Locale.create(opts.locale, opts.numberingSystem, opts.outputCalendar, opts.defaultToEN);
|
|
|
};
|
|
|
|
|
|
Locale.create = function create(locale, numberingSystem, outputCalendar, defaultToEN) {
|
|
|
if (defaultToEN === void 0) {
|
|
|
defaultToEN = false;
|
|
|
}
|
|
|
|
|
|
var specifiedLocale = locale || Settings.defaultLocale; // the system locale is useful for human readable strings but annoying for parsing/formatting known formats
|
|
|
|
|
|
var localeR = specifiedLocale || (defaultToEN ? "en-US" : systemLocale());
|
|
|
var numberingSystemR = numberingSystem || Settings.defaultNumberingSystem;
|
|
|
var outputCalendarR = outputCalendar || Settings.defaultOutputCalendar;
|
|
|
return new Locale(localeR, numberingSystemR, outputCalendarR, specifiedLocale);
|
|
|
};
|
|
|
|
|
|
Locale.resetCache = function resetCache() {
|
|
|
sysLocaleCache = null;
|
|
|
intlDTCache = {};
|
|
|
intlNumCache = {};
|
|
|
intlRelCache = {};
|
|
|
};
|
|
|
|
|
|
Locale.fromObject = function fromObject(_temp) {
|
|
|
var _ref = _temp === void 0 ? {} : _temp,
|
|
|
locale = _ref.locale,
|
|
|
numberingSystem = _ref.numberingSystem,
|
|
|
outputCalendar = _ref.outputCalendar;
|
|
|
|
|
|
return Locale.create(locale, numberingSystem, outputCalendar);
|
|
|
};
|
|
|
|
|
|
function Locale(locale, numbering, outputCalendar, specifiedLocale) {
|
|
|
var _parseLocaleString = parseLocaleString(locale),
|
|
|
parsedLocale = _parseLocaleString[0],
|
|
|
parsedNumberingSystem = _parseLocaleString[1],
|
|
|
parsedOutputCalendar = _parseLocaleString[2];
|
|
|
|
|
|
this.locale = parsedLocale;
|
|
|
this.numberingSystem = numbering || parsedNumberingSystem || null;
|
|
|
this.outputCalendar = outputCalendar || parsedOutputCalendar || null;
|
|
|
this.intl = intlConfigString(this.locale, this.numberingSystem, this.outputCalendar);
|
|
|
this.weekdaysCache = {
|
|
|
format: {},
|
|
|
standalone: {}
|
|
|
};
|
|
|
this.monthsCache = {
|
|
|
format: {},
|
|
|
standalone: {}
|
|
|
};
|
|
|
this.meridiemCache = null;
|
|
|
this.eraCache = {};
|
|
|
this.specifiedLocale = specifiedLocale;
|
|
|
this.fastNumbersCached = null;
|
|
|
}
|
|
|
|
|
|
var _proto4 = Locale.prototype;
|
|
|
|
|
|
_proto4.listingMode = function listingMode(defaultOK) {
|
|
|
|
|
|
var isActuallyEn = this.isEnglish();
|
|
|
var hasNoWeirdness = (this.numberingSystem === null || this.numberingSystem === "latn") && (this.outputCalendar === null || this.outputCalendar === "gregory");
|
|
|
return isActuallyEn && hasNoWeirdness ? "en" : "intl";
|
|
|
};
|
|
|
|
|
|
_proto4.clone = function clone(alts) {
|
|
|
if (!alts || Object.getOwnPropertyNames(alts).length === 0) {
|
|
|
return this;
|
|
|
} else {
|
|
|
return Locale.create(alts.locale || this.specifiedLocale, alts.numberingSystem || this.numberingSystem, alts.outputCalendar || this.outputCalendar, alts.defaultToEN || false);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
_proto4.redefaultToEN = function redefaultToEN(alts) {
|
|
|
if (alts === void 0) {
|
|
|
alts = {};
|
|
|
}
|
|
|
|
|
|
return this.clone(_extends({}, alts, {
|
|
|
defaultToEN: true
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
_proto4.redefaultToSystem = function redefaultToSystem(alts) {
|
|
|
if (alts === void 0) {
|
|
|
alts = {};
|
|
|
}
|
|
|
|
|
|
return this.clone(_extends({}, alts, {
|
|
|
defaultToEN: false
|
|
|
}));
|
|
|
};
|
|
|
|
|
|
_proto4.months = function months$1(length, format, defaultOK) {
|
|
|
var _this = this;
|
|
|
|
|
|
if (format === void 0) {
|
|
|
format = false;
|
|
|
}
|
|
|
|
|
|
if (defaultOK === void 0) {
|
|
|
defaultOK = true;
|
|
|
}
|
|
|
|
|
|
return listStuff(this, length, defaultOK, months, function () {
|
|
|
var intl = format ? {
|
|
|
month: length,
|
|
|
day: "numeric"
|
|
|
} : {
|
|
|
month: length
|
|
|
},
|
|
|
formatStr = format ? "format" : "standalone";
|
|
|
|
|
|
if (!_this.monthsCache[formatStr][length]) {
|
|
|
_this.monthsCache[formatStr][length] = mapMonths(function (dt) {
|
|
|
return _this.extract(dt, intl, "month");
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return _this.monthsCache[formatStr][length];
|
|
|
});
|
|
|
};
|
|
|
|
|
|
_proto4.weekdays = function weekdays$1(length, format, defaultOK) {
|
|
|
var _this2 = this;
|
|
|
|
|
|
if (format === void 0) {
|
|
|
format = false;
|
|
|
}
|
|
|
|
|
|
if (defaultOK === void 0) {
|
|
|
defaultOK = true;
|
|
|
}
|
|
|
|
|
|
return listStuff(this, length, defaultOK, weekdays, function () {
|
|
|
var intl = format ? {
|
|
|
weekday: length,
|
|
|
year: "numeric",
|
|
|
month: "long",
|
|
|
day: "numeric"
|
|
|
} : {
|
|
|
weekday: length
|
|
|
},
|
|
|
formatStr = format ? "format" : "standalone";
|
|
|
|
|
|
if (!_this2.weekdaysCache[formatStr][length]) {
|
|
|
_this2.weekdaysCache[formatStr][length] = mapWeekdays(function (dt) {
|
|
|
return _this2.extract(dt, intl, "weekday");
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return _this2.weekdaysCache[formatStr][length];
|
|
|
});
|
|
|
};
|
|
|
|
|
|
_proto4.meridiems = function meridiems$1(defaultOK) {
|
|
|
var _this3 = this;
|
|
|
|
|
|
if (defaultOK === void 0) {
|
|
|
defaultOK = true;
|
|
|
}
|
|
|
|
|
|
return listStuff(this, undefined, defaultOK, function () {
|
|
|
return meridiems;
|
|
|
}, function () {
|
|
|
// In theory there could be aribitrary day periods. We're gonna assume there are exactly two
|
|
|
// for AM and PM. This is probably wrong, but it's makes parsing way easier.
|
|
|
if (!_this3.meridiemCache) {
|
|
|
var intl = {
|
|
|
hour: "numeric",
|
|
|
hourCycle: "h12"
|
|
|
};
|
|
|
_this3.meridiemCache = [DateTime.utc(2016, 11, 13, 9), DateTime.utc(2016, 11, 13, 19)].map(function (dt) {
|
|
|
return _this3.extract(dt, intl, "dayperiod");
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return _this3.meridiemCache;
|
|
|
});
|
|
|
};
|
|
|
|
|
|
_proto4.eras = function eras$1(length, defaultOK) {
|
|
|
var _this4 = this;
|
|
|
|
|
|
if (defaultOK === void 0) {
|
|
|
defaultOK = true;
|
|
|
}
|
|
|
|
|
|
return listStuff(this, length, defaultOK, eras, function () {
|
|
|
var intl = {
|
|
|
era: length
|
|
|
}; // This is problematic. Different calendars are going to define eras totally differently. What I need is the minimum set of dates
|
|
|
// to definitely enumerate them.
|
|
|
|
|
|
if (!_this4.eraCache[length]) {
|
|
|
_this4.eraCache[length] = [DateTime.utc(-40, 1, 1), DateTime.utc(2017, 1, 1)].map(function (dt) {
|
|
|
return _this4.extract(dt, intl, "era");
|
|
|
});
|
|
|
}
|
|
|
|
|
|
return _this4.eraCache[length];
|
|
|
});
|
|
|
};
|
|
|
|
|
|
_proto4.extract = function extract(dt, intlOpts, field) {
|
|
|
var df = this.dtFormatter(dt, intlOpts),
|
|
|
results = df.formatToParts(),
|
|
|
matching = results.find(function (m) {
|
|
|
return m.type.toLowerCase() === field;
|
|
|
});
|
|
|
return matching ? matching.value : null;
|
|
|
};
|
|
|
|
|
|
_proto4.numberFormatter = function numberFormatter(opts) {
|
|
|
if (opts === void 0) {
|
|
|
opts = {};
|
|
|
}
|
|
|
|
|
|
// this forcesimple option is never used (the only caller short-circuits on it, but it seems safer to leave)
|
|
|
// (in contrast, the rest of the condition is used heavily)
|
|
|
return new PolyNumberFormatter(this.intl, opts.forceSimple || this.fastNumbers, opts);
|
|
|
};
|
|
|
|
|
|
_proto4.dtFormatter = function dtFormatter(dt, intlOpts) {
|
|
|
if (intlOpts === void 0) {
|
|
|
intlOpts = {};
|
|
|
}
|
|
|
|
|
|
return new PolyDateFormatter(dt, this.intl, intlOpts);
|
|
|
};
|
|
|
|
|
|
_proto4.relFormatter = function relFormatter(opts) {
|
|
|
if (opts === void 0) {
|
|
|
opts = {};
|
|
|
}
|
|
|
|
|
|
return new PolyRelFormatter(this.intl, this.isEnglish(), opts);
|
|
|
};
|
|
|
|
|
|
_proto4.isEnglish = function isEnglish() {
|
|
|
return this.locale === "en" || this.locale.toLowerCase() === "en-us" || new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us");
|
|
|
};
|
|
|
|
|
|
_proto4.equals = function equals(other) {
|
|
|
return this.locale === other.locale && this.numberingSystem === other.numberingSystem && this.outputCalendar === other.outputCalendar;
|
|
|
};
|
|
|
|
|
|
_createClass(Locale, [{
|
|
|
key: "fastNumbers",
|
|
|
get: function get() {
|
|
|
if (this.fastNumbersCached == null) {
|
|
|
this.fastNumbersCached = supportsFastNumbers(this);
|
|
|
}
|
|
|
|
|
|
return this.fastNumbersCached;
|
|
|
}
|
|
|
}]);
|
|
|
|
|
|
return Locale;
|
|
|
}();
|
|
|
|
|
|
/*
|
|
|
* This file handles parsing for well-specified formats. Here's how it works:
|
|
|
* Two things go into parsing: a regex to match with and an extractor to take apart the groups in the match.
|
|
|
* An extractor is just a function that takes a regex match array and returns a { year: ..., month: ... } object
|
|
|
* parse() does the work of executing the regex and applying the extractor. It takes multiple regex/extractor pairs to try in sequence.
|
|
|
* Extractors can take a "cursor" representing the offset in the match to look at. This makes it easy to combine extractors.
|
|
|
* combineExtractors() does the work of combining them, keeping track of the cursor through multiple extractions.
|
|
|
* Some extractions are super dumb and simpleParse and fromStrings help DRY them.
|
|
|
*/
|
|
|
|
|
|
function combineRegexes() {
|
|
|
for (var _len = arguments.length, regexes = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
|
regexes[_key] = arguments[_key];
|
|
|
}
|
|
|
|
|
|
var full = regexes.reduce(function (f, r) {
|
|
|
return f + r.source;
|
|
|
}, "");
|
|
|
return RegExp("^" + full + "$");
|
|
|
}
|
|
|
|
|
|
function combineExtractors() {
|
|
|
for (var _len2 = arguments.length, extractors = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
|
extractors[_key2] = arguments[_key2];
|
|
|
}
|
|
|
|
|
|
return function (m) {
|
|
|
return extractors.reduce(function (_ref, ex) {
|
|
|
var mergedVals = _ref[0],
|
|
|
mergedZone = _ref[1],
|
|
|
cursor = _ref[2];
|
|
|
|
|
|
var _ex = ex(m, cursor),
|
|
|
val = _ex[0],
|
|
|
zone = _ex[1],
|
|
|
next = _ex[2];
|
|
|
|
|
|
return [_extends({}, mergedVals, val), mergedZone || zone, next];
|
|
|
}, [{}, null, 1]).slice(0, 2);
|
|
|
};
|
|
|
}
|
|
|
|
|
|
function parse(s) {
|
|
|
if (s == null) {
|
|
|
return [null, null];
|
|
|
}
|
|
|
|
|
|
for (var _len3 = arguments.length, patterns = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
|
|
|
patterns[_key3 - 1] = arguments[_key3];
|
|
|
}
|
|
|
|
|
|
for (var _i = 0, _patterns = patterns; _i < _patterns.length; _i++) {
|
|
|
var _patterns$_i = _patterns[_i],
|
|
|
regex = _patterns$_i[0],
|
|
|
extractor = _patterns$_i[1];
|
|
|
var m = regex.exec(s);
|
|
|
|
|
|
if (m) {
|
|
|
return extractor(m);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return [null, null];
|
|
|
}
|
|
|
|
|
|
function simpleParse() {
|
|
|
for (var _len4 = arguments.length, keys = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
|
|
keys[_key4] = arguments[_key4];
|
|
|
}
|
|
|
|
|
|
return function (match, cursor) {
|
|
|
var ret = {};
|
|
|
var i;
|
|
|
|
|
|
for (i = 0; i < keys.length; i++) {
|
|
|
ret[keys[i]] = parseInteger(match[cursor + i]);
|
|
|
}
|
|
|
|
|
|
return [ret, null, cursor + i];
|
|
|
};
|
|
|
} // ISO and SQL parsing
|
|
|
|
|
|
|
|
|
var offsetRegex = /(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,
|
|
|
isoTimeBaseRegex = /(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,
|
|
|
isoTimeRegex = RegExp("" + isoTimeBaseRegex.source + offsetRegex.source + "?"),
|
|
|
isoTimeExtensionRegex = RegExp("(?:T" + isoTimeRegex.source + ")?"),
|
|
|
isoYmdRegex = /([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,
|
|
|
isoWeekRegex = /(\d{4})-?W(\d\d)(?:-?(\d))?/,
|
|
|
isoOrdinalRegex = /(\d{4})-?(\d{3})/,
|
|
|
extractISOWeekData = simpleParse("weekYear", "weekNumber", "weekDay"),
|
|
|
extractISOOrdinalData = simpleParse("year", "ordinal"),
|
|
|
sqlYmdRegex = /(\d{4})-(\d\d)-(\d\d)/,
|
|
|
// dumbed-down version of the ISO one
|
|
|
sqlTimeRegex = RegExp(isoTimeBaseRegex.source + " ?(?:" + offsetRegex.source + "|(" + ianaRegex.source + "))?"),
|
|
|
sqlTimeExtensionRegex = RegExp("(?: " + sqlTimeRegex.source + ")?");
|
|
|
|
|
|
function int(match, pos, fallback) {
|
|
|
var m = match[pos];
|
|
|
return isUndefined(m) ? fallback : parseInteger(m);
|
|
|
}
|
|
|
|
|
|
function extractISOYmd(match, cursor) {
|
|
|
var item = {
|
|
|
year: int(match, cursor),
|
|
|
month: int(match, cursor + 1, 1),
|
|
|
day: int(match, cursor + 2, 1)
|
|
|
};
|
|
|
return [item, null, cursor + 3];
|
|
|
}
|
|
|
|
|
|
function extractISOTime(match, cursor) {
|
|
|
var item = {
|
|
|
hours: int(match, cursor, 0),
|
|
|
minutes: int(match, cursor + 1, 0),
|
|
|
seconds: int(match, cursor + 2, 0),
|
|
|
milliseconds: parseMillis(match[cursor + 3])
|
|
|
};
|
|
|
return [item, null, cursor + 4];
|
|
|
}
|
|
|
|
|
|
function extractISOOffset(match, cursor) {
|
|
|
var local = !match[cursor] && !match[cursor + 1],
|
|
|
fullOffset = signedOffset(match[cursor + 1], match[cursor + 2]),
|
|
|
zone = local ? null : FixedOffsetZone.instance(fullOffset);
|
|
|
return [{}, zone, cursor + 3];
|
|
|
}
|
|
|
|
|
|
function extractIANAZone(match, cursor) {
|
|
|
var zone = match[cursor] ? IANAZone.create(match[cursor]) : null;
|
|
|
return [{}, zone, cursor + 1];
|
|
|
} // ISO time parsing
|
|
|
|
|
|
|
|
|
var isoTimeOnly = RegExp("^T?" + isoTimeBaseRegex.source + "$"); // ISO duration parsing
|
|
|
|
|
|
var isoDuration = /^-?P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,9}))?S)?)?)$/;
|
|
|
|
|
|
function extractISODuration(match) {
|
|
|
var s = match[0],
|
|
|
yearStr = match[1],
|
|
|
monthStr = match[2],
|
|
|
weekStr = match[3],
|
|
|
dayStr = match[4],
|
|
|
hourStr = match[5],
|
|
|
minuteStr = match[6],
|
|
|
secondStr = match[7],
|
|
|
millisecondsStr = match[8];
|
|
|
var hasNegativePrefix = s[0] === "-";
|
|
|
var negativeSeconds = secondStr && secondStr[0] === "-";
|
|
|
|
|
|
var maybeNegate = function maybeNegate(num, force) {
|
|
|
if (force === void 0) {
|
|
|
force = false;
|
|
|
}
|
|
|
|
|
|
return num !== undefined && (force || num && hasNegativePrefix) ? -num : num;
|
|
|
};
|
|
|
|
|
|
return [{
|
|
|
years: maybeNegate(parseInteger(yearStr)),
|
|
|
months: maybeNegate(parseInteger(monthStr)),
|
|
|
weeks: maybeNegate(parseInteger(weekStr)),
|
|
|
days: maybeNegate(parseInteger(dayStr)),
|
|
|
hours: maybeNegate(parseInteger(hourStr)),
|
|
|
minutes: maybeNegate(parseInteger(minuteStr)),
|
|
|
seconds: maybeNegate(parseInteger(secondStr), secondStr === "-0"),
|
|
|
milliseconds: maybeNegate(parseMillis(millisecondsStr), negativeSeconds)
|
|
|
}];
|
|
|
} // These are a little braindead. EDT *should* tell us that we're in, say, America/New_York
|
|
|
// and not just that we're in -240 *right now*. But since I don't think these are used that often
|
|
|
// I'm just going to ignore that
|
|
|
|
|
|
|
|
|
var obsOffsets = {
|
|
|
GMT: 0,
|
|
|
EDT: -4 * 60,
|
|
|
EST: -5 * 60,
|
|
|
CDT: -5 * 60,
|
|
|
CST: -6 * 60,
|
|
|
MDT: -6 * 60,
|
|
|
MST: -7 * 60,
|
|
|
PDT: -7 * 60,
|
|
|
PST: -8 * 60
|
|
|
};
|
|
|
|
|
|
function fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) {
|
|
|
var result = {
|
|
|
year: yearStr.length === 2 ? untruncateYear(parseInteger(yearStr)) : parseInteger(yearStr),
|
|
|
month: monthsShort.indexOf(monthStr) + 1,
|
|
|
day: parseInteger(dayStr),
|
|
|
hour: parseInteger(hourStr),
|
|
|
minute: parseInteger(minuteStr)
|
|
|
};
|
|
|
if (secondStr) result.second = parseInteger(secondStr);
|
|
|
|
|
|
if (weekdayStr) {
|
|
|
result.weekday = weekdayStr.length > 3 ? weekdaysLong.indexOf(weekdayStr) + 1 : weekdaysShort.indexOf(weekdayStr) + 1;
|
|
|
}
|
|
|
|
|
|
return result;
|
|
|
} // RFC 2822/5322
|
|
|
|
|
|
|
|
|
var rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;
|
|
|
|
|
|
function extractRFC2822(match) {
|
|
|
var weekdayStr = match[1],
|
|
|
dayStr = match[2],
|
|
|
monthStr = match[3],
|
|
|
yearStr = match[4],
|
|
|
hourStr = match[5],
|
|
|
minuteStr = match[6],
|
|
|
secondStr = match[7],
|
|
|
obsOffset = match[8],
|
|
|
milOffset = match[9],
|
|
|
offHourStr = match[10],
|
|
|
offMinuteStr = match[11],
|
|
|
result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr);
|
|
|
var offset;
|
|
|
|
|
|
if (obsOffset) {
|
|
|
offset = obsOffsets[obsOffset];
|
|
|
} else if (milOffset) {
|
|
|
offset = 0;
|
|
|
} else {
|
|
|
offset = signedOffset(offHourStr, offMinuteStr);
|
|
|
}
|
|
|
|
|
|
return [result, new FixedOffsetZone(offset)];
|
|
|
}
|
|
|
|
|
|
function preprocessRFC2822(s) {
|
|
|
// Remove comments and folding whitespace and replace multiple-spaces with a single space
|
|
|
return s.replace(/\([^)]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").trim();
|
|
|
} // http date
|
|
|
|
|
|
|
|
|
var rfc1123 = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,
|
|
|
rfc850 = /^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,
|
|
|
ascii = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;
|
|
|
|
|
|
function extractRFC1123Or850(match) {
|
|
|
var weekdayStr = match[1],
|
|
|
dayStr = match[2],
|
|
|
monthStr = match[3],
|
|
|
yearStr = match[4],
|
|
|
hourStr = match[5],
|
|
|
minuteStr = match[6],
|
|
|
secondStr = match[7],
|
|
|
result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr);
|
|
|
return [result, FixedOffsetZone.utcInstance];
|
|
|
}
|
|
|
|
|
|
function extractASCII(match) {
|
|
|
var weekdayStr = match[1],
|
|
|
monthStr = match[2],
|
|
|
dayStr = match[3],
|
|
|
hourStr = match[4],
|
|
|
minuteStr = match[5],
|
|
|
secondStr = match[6],
|
|
|
yearStr = match[7],
|
|
|
result = fromStrings(weekdayStr, yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr);
|
|
|
return [result, FixedOffsetZone.utcInstance];
|
|
|
}
|
|
|
|
|
|
var isoYmdWithTimeExtensionRegex = combineRegexes(isoYmdRegex, isoTimeExtensionRegex);
|
|
|
var isoWeekWithTimeExtensionRegex = combineRegexes(isoWeekRegex, isoTimeExtensionRegex);
|
|
|
var isoOrdinalWithTimeExtensionRegex = combineRegexes(isoOrdinalRegex, isoTimeExtensionRegex);
|
|
|
var isoTimeCombinedRegex = combineRegexes(isoTimeRegex);
|
|
|
var extractISOYmdTimeAndOffset = combineExtractors(extractISOYmd, extractISOTime, extractISOOffset);
|
|
|
var extractISOWeekTimeAndOffset = combineExtractors(extractISOWeekData, extractISOTime, extractISOOffset);
|
|
|
var extractISOOrdinalDateAndTime = combineExtractors(extractISOOrdinalData, extractISOTime, extractISOOffset);
|
|
|
var extractISOTimeAndOffset = combineExtractors(extractISOTime, extractISOOffset);
|
|
|
/**
|
|
|
* @private
|
|
|
*/
|
|
|
|
|
|
function parseISODate(s) {
|
|
|
return parse(s, [isoYmdWithTimeExtensionRegex, extractISOYmdTimeAndOffset], [isoWeekWithTimeExtensionRegex, extractISOWeekTimeAndOffset], [isoOrdinalWithTimeExtensionRegex, extractISOOrdinalDateAndTime], [isoTimeCombinedRegex, extractISOTimeAndOffset]);
|
|
|
}
|
|
|
function parseRFC2822Date(s) {
|
|
|
return parse(preprocessRFC2822(s), [rfc2822, extractRFC2822]);
|
|
|
}
|
|
|
function parseHTTPDate(s) {
|
|
|
return parse(s, [rfc1123, extractRFC1123Or850], [rfc850, extractRFC1123Or850], [ascii, extractASCII]);
|
|
|
}
|
|
|
function parseISODuration(s) {
|
|
|
return parse(s, [isoDuration, extractISODuration]);
|
|
|
}
|
|
|
var extractISOTimeOnly = combineExtractors(extractISOTime);
|
|
|
function parseISOTimeOnly(s) {
|
|
|
return parse(s, [isoTimeOnly, extractISOTimeOnly]);
|
|
|
}
|
|
|
var sqlYmdWithTimeExtensionRegex = combineRegexes(sqlYmdRegex, sqlTimeExtensionRegex);
|
|
|
var sqlTimeCombinedRegex = combineRegexes(sqlTimeRegex);
|
|
|
var extractISOYmdTimeOffsetAndIANAZone = combineExtractors(extractISOYmd, extractISOTime, extractISOOffset, extractIANAZone);
|
|
|
var extractISOTimeOffsetAndIANAZone = combineExtractors(extractISOTime, extractISOOffset, extractIANAZone);
|
|
|
function parseSQL(s) {
|
|
|
return parse(s, [sqlYmdWithTimeExtensionRegex, extractISOYmdTimeOffsetAndIANAZone], [sqlTimeCombinedRegex, extractISOTimeOffsetAndIANAZone]);
|
|
|
}
|
|
|
|
|
|
var INVALID$2 = "Invalid Duration"; // unit conversion constants
|
|
|
|
|
|
var lowOrderMatrix = {
|
|
|
weeks: {
|
|
|
days: 7,
|
|
|
hours: 7 * 24,
|
|
|
minutes: 7 * 24 * 60,
|
|
|
seconds: 7 * 24 * 60 * 60,
|
|
|
milliseconds: 7 * 24 * 60 * 60 * 1000
|
|
|
},
|
|
|
days: {
|
|
|
hours: 24,
|
|
|
minutes: 24 * 60,
|
|
|
seconds: 24 * 60 * 60,
|
|
|
milliseconds: 24 * 60 * 60 * 1000
|
|
|
},
|
|
|
hours: {
|
|
|
minutes: 60,
|
|
|
seconds: 60 * 60,
|
|
|
milliseconds: 60 * 60 * 1000
|
|
|
},
|
|
|
minutes: {
|
|
|
seconds: 60,
|
|
|
milliseconds: 60 * 1000
|
|
|
},
|
|
|
seconds: {
|
|
|
milliseconds: 1000
|
|
|
}
|
|
|
},
|
|
|
casualMatrix = _extends({
|
|
|
years: {
|
|
|
quarters: 4,
|
|
|
months: 12,
|
|
|
weeks: 52,
|
|
|
days: 365,
|
|
|
hours: 365 * 24,
|
|
|
minutes: 365 * 24 * 60,
|
|
|
seconds: 365 * 24 * 60 * 60,
|
|
|
milliseconds: 365 * 24 * 60 * 60 * 1000
|
|
|
},
|
|
|
quarters: {
|
|
|
months: 3,
|
|
|
weeks: 13,
|
|
|
days: 91,
|
|
|
hours: 91 * 24,
|
|
|
minutes: 91 * 24 * 60,
|
|
|
seconds: 91 * 24 * 60 * 60,
|
|
|
milliseconds: 91 * 24 * 60 * 60 * 1000
|
|
|
},
|
|
|
months: {
|
|
|
weeks: 4,
|
|
|
days: 30,
|
|
|
hours: 30 * 24,
|
|
|
minutes: 30 * 24 * 60,
|
|
|
seconds: 30 * 24 * 60 * 60,
|
|
|
milliseconds: 30 * 24 * 60 * 60 * 1000
|
|
|
}
|
|
|
}, lowOrderMatrix),
|
|
|
daysInYearAccurate = 146097.0 / 400,
|
|
|
daysInMonthAccurate = 146097.0 / 4800,
|
|
|
accurateMatrix = _extends({
|
|
|
years: {
|
|
|
quarters: 4,
|
|
|
months: 12,
|
|
|
weeks: daysInYearAccurate / 7,
|
|
|
days: daysInYearAccurate,
|
|
|
hours: daysInYearAccurate * 24,
|
|
|
minutes: daysInYearAccurate * 24 * 60,
|
|
|
seconds: daysInYearAccurate * 24 * 60 * 60,
|
|
|
milliseconds: daysInYearAccurate * 24 * 60 * 60 * 1000
|
|
|
},
|
|
|
quarters: {
|
|
|
months: 3,
|
|
|
weeks: daysInYearAccurate / 28,
|
|
|
days: daysInYearAccurate / 4,
|
|
|
hours: daysInYearAccurate * 24 / 4,
|
|
|
minutes: daysInYearAccurate * 24 * 60 / 4,
|
|
|
seconds: daysInYearAccurate * 24 * 60 * 60 / 4,
|
|
|
milliseconds: daysInYearAccurate * 24 * 60 * 60 * 1000 / 4
|
|
|
},
|
|
|
months: {
|
|
|
weeks: daysInMonthAccurate / 7,
|
|
|
days: daysInMonthAccurate,
|
|
|
hours: daysInMonthAccurate * 24,
|
|
|
minutes: daysInMonthAccurate * 24 * 60,
|
|
|
seconds: daysInMonthAccurate * 24 * 60 * 60,
|
|
|
milliseconds: daysInMonthAccurate * 24 * 60 * 60 * 1000
|
|
|
}
|
|
|
}, lowOrderMatrix); // units ordered by size
|
|
|
|
|
|
|
|
|
var orderedUnits$1 = ["years", "quarters", "months", "weeks", "days", "hours", "minutes", "seconds", "milliseconds"];
|
|
|
var reverseUnits = orderedUnits$1.slice(0).reverse(); // clone really means "create another instance just like this one, but with these changes"
|
|
|
|
|
|
function clone$1(dur, alts, clear) {
|
|
|
if (clear === void 0) {
|
|
|
clear = false;
|
|
|
}
|
|
|
|
|
|
// deep merge for vals
|
|
|
var conf = {
|
|
|
values: clear ? alts.values : _extends({}, dur.values, alts.values || {}),
|
|
|
loc: dur.loc.clone(alts.loc),
|
|
|
conversionAccuracy: alts.conversionAccuracy || dur.conversionAccuracy
|
|
|
};
|
|
|
return new Duration(conf);
|
|
|
}
|
|
|
|
|
|
function antiTrunc(n) {
|
|
|
return n < 0 ? Math.floor(n) : Math.ceil(n);
|
|
|
} // NB: mutates parameters
|
|
|
|
|
|
|
|
|
function convert(matrix, fromMap, fromUnit, toMap, toUnit) {
|
|
|
var conv = matrix[toUnit][fromUnit],
|
|
|
raw = fromMap[fromUnit] / conv,
|
|
|
sameSign = Math.sign(raw) === Math.sign(toMap[toUnit]),
|
|
|
// ok, so this is wild, but see the matrix in the tests
|
|
|
added = !sameSign && toMap[toUnit] !== 0 && Math.abs(raw) <= 1 ? antiTrunc(raw) : Math.trunc(raw);
|
|
|
toMap[toUnit] += added;
|
|
|
fromMap[fromUnit] -= added * conv;
|
|
|
} // NB: mutates parameters
|
|
|
|
|
|
|
|
|
function normalizeValues(matrix, vals) {
|
|
|
reverseUnits.reduce(function (previous, current) {
|
|
|
if (!isUndefined(vals[current])) {
|
|
|
if (previous) {
|
|
|
convert(matrix, vals, previous, vals, current);
|
|
|
}
|
|
|
|
|
|
return current;
|
|
|
} else {
|
|
|
return previous;
|
|
|
}
|
|
|
}, null);
|
|
|
}
|
|
|
/**
|
|
|
* A Duration object represents a period of time, like "2 months" or "1 day, 1 hour". Conceptually, it's just a map of units to their quantities, accompanied by some additional configuration and methods for creating, parsing, interrogating, transforming, and formatting them. They can be used on their own or in conjunction with other Luxon types; for example, you can use {@link DateTime.plus} to add a Duration object to a DateTime, producing another DateTime.
|
|
|
*
|
|
|
* Here is a brief overview of commonly used methods and getters in Duration:
|
|
|
*
|
|
|
* * **Creation** To create a Duration, use {@link Duration.fromMillis}, {@link Duration.fromObject}, or {@link Duration.fromISO}.
|
|
|
* * **Unit values** See the {@link Duration#years}, {@link Duration.months}, {@link Duration#weeks}, {@link Duration#days}, {@link Duration#hours}, {@link Duration#minutes}, {@link Duration#seconds}, {@link Duration#milliseconds} accessors.
|
|
|
* * **Configuration** See {@link Duration#locale} and {@link Duration#numberingSystem} accessors.
|
|
|
* * **Transformation** To create new Durations out of old ones use {@link Duration#plus}, {@link Duration#minus}, {@link Duration#normalize}, {@link Duration#set}, {@link Duration#reconfigure}, {@link Duration#shiftTo}, and {@link Duration#negate}.
|
|
|
* * **Output** To convert the Duration into other representations, see {@link Duration#as}, {@link Duration#toISO}, {@link Duration#toFormat}, and {@link Duration#toJSON}
|
|
|
*
|
|
|
* There's are more methods documented below. In addition, for more information on subtler topics like internationalization and validity, see the external documentation.
|
|
|
*/
|
|
|
|
|
|
|
|
|
var Duration = /*#__PURE__*/function () {
|
|
|
/**
|
|
|
* @private
|
|
|
*/
|
|
|
function Duration(config) {
|
|
|
var accurate = config.conversionAccuracy === "longterm" || false;
|
|
|
/**
|
|
|
* @access private
|
|
|
*/
|
|
|
|
|
|
this.values = config.values;
|
|
|
/**
|
|
|
* @access private
|
|
|
*/
|
|
|
|
|
|
this.loc = config.loc || Locale.create();
|
|
|
/**
|
|
|
* @access private
|
|
|
*/
|
|
|
|
|
|
this.conversionAccuracy = accurate ? "longterm" : "casual";
|
|
|
/**
|
|
|
* @access private
|
|
|
*/
|
|
|
|
|
|
this.invalid = config.invalid || null;
|
|
|
/**
|
|
|
* @access private
|
|
|
*/
|
|
|
|
|
|
this.matrix = accurate ? accurateMatrix : casualMatrix;
|
|
|
/**
|
|
|
* @access private
|
|
|
*/
|
|
|
|
|
|
this.isLuxonDuration = true;
|
|
|
}
|
|
|
/**
|
|
|
* Create Duration from a number of milliseconds.
|
|
|
* @param {number} count of milliseconds
|
|
|
* @param {Object} opts - options for parsing
|
|
|
* @param {string} [opts.locale='en-US'] - the locale to use
|
|
|
* @param {string} opts.numberingSystem - the numbering system to use
|
|
|
* @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use
|
|
|
* @return {Duration}
|
|
|
*/
|
|
|
|
|
|
|
|
|
Duration.fromMillis = function fromMillis(count, opts) {
|
|
|
return Duration.fromObject({
|
|
|
milliseconds: count
|
|
|
}, opts);
|
|
|
}
|
|
|
/**
|
|
|
* Create a Duration from a JavaScript object with keys like 'years' and 'hours'.
|
|
|
* If this object is empty then a zero milliseconds duration is returned.
|
|
|
* @param {Object} obj - the object to create the DateTime from
|
|
|
* @param {number} obj.years
|
|
|
* @param {number} obj.quarters
|
|
|
* @param {number} obj.months
|
|
|
* @param {number} obj.weeks
|
|
|
* @param {number} obj.days
|
|
|
* @param {number} obj.hours
|
|
|
* @param {number} obj.minutes
|
|
|
* @param {number} obj.seconds
|
|
|
* @param {number} obj.milliseconds
|
|
|
* @param {Object} [opts=[]] - options for creating this Duration
|
|
|
* @param {string} [opts.locale='en-US'] - the locale to use
|
|
|
* @param {string} opts.numberingSystem - the numbering system to use
|
|
|
* @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use
|
|
|
* @return {Duration}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
Duration.fromObject = function fromObject(obj, opts) {
|
|
|
if (opts === void 0) {
|
|
|
opts = {};
|
|
|
}
|
|
|
|
|
|
if (obj == null || typeof obj !== "object") {
|
|
|
throw new InvalidArgumentError("Duration.fromObject: argument expected to be an object, got " + (obj === null ? "null" : typeof obj));
|
|
|
}
|
|
|
|
|
|
return new Duration({
|
|
|
values: normalizeObject(obj, Duration.normalizeUnit),
|
|
|
loc: Locale.fromObject(opts),
|
|
|
conversionAccuracy: opts.conversionAccuracy
|
|
|
});
|
|
|
}
|
|
|
/**
|
|
|
* Create a Duration from an ISO 8601 duration string.
|
|
|
* @param {string} text - text to parse
|
|
|
* @param {Object} opts - options for parsing
|
|
|
* @param {string} [opts.locale='en-US'] - the locale to use
|
|
|
* @param {string} opts.numberingSystem - the numbering system to use
|
|
|
* @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use
|
|
|
* @see https://en.wikipedia.org/wiki/ISO_8601#Durations
|
|
|
* @example Duration.fromISO('P3Y6M1W4DT12H30M5S').toObject() //=> { years: 3, months: 6, weeks: 1, days: 4, hours: 12, minutes: 30, seconds: 5 }
|
|
|
* @example Duration.fromISO('PT23H').toObject() //=> { hours: 23 }
|
|
|
* @example Duration.fromISO('P5Y3M').toObject() //=> { years: 5, months: 3 }
|
|
|
* @return {Duration}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
Duration.fromISO = function fromISO(text, opts) {
|
|
|
var _parseISODuration = parseISODuration(text),
|
|
|
parsed = _parseISODuration[0];
|
|
|
|
|
|
if (parsed) {
|
|
|
return Duration.fromObject(parsed, opts);
|
|
|
} else {
|
|
|
return Duration.invalid("unparsable", "the input \"" + text + "\" can't be parsed as ISO 8601");
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* Create a Duration from an ISO 8601 time string.
|
|
|
* @param {string} text - text to parse
|
|
|
* @param {Object} opts - options for parsing
|
|
|
* @param {string} [opts.locale='en-US'] - the locale to use
|
|
|
* @param {string} opts.numberingSystem - the numbering system to use
|
|
|
* @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use
|
|
|
* @see https://en.wikipedia.org/wiki/ISO_8601#Times
|
|
|
* @example Duration.fromISOTime('11:22:33.444').toObject() //=> { hours: 11, minutes: 22, seconds: 33, milliseconds: 444 }
|
|
|
* @example Duration.fromISOTime('11:00').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }
|
|
|
* @example Duration.fromISOTime('T11:00').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }
|
|
|
* @example Duration.fromISOTime('1100').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }
|
|
|
* @example Duration.fromISOTime('T1100').toObject() //=> { hours: 11, minutes: 0, seconds: 0 }
|
|
|
* @return {Duration}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
Duration.fromISOTime = function fromISOTime(text, opts) {
|
|
|
var _parseISOTimeOnly = parseISOTimeOnly(text),
|
|
|
parsed = _parseISOTimeOnly[0];
|
|
|
|
|
|
if (parsed) {
|
|
|
return Duration.fromObject(parsed, opts);
|
|
|
} else {
|
|
|
return Duration.invalid("unparsable", "the input \"" + text + "\" can't be parsed as ISO 8601");
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* Create an invalid Duration.
|
|
|
* @param {string} reason - simple string of why this datetime is invalid. Should not contain parameters or anything else data-dependent
|
|
|
* @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information
|
|
|
* @return {Duration}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
Duration.invalid = function invalid(reason, explanation) {
|
|
|
if (explanation === void 0) {
|
|
|
explanation = null;
|
|
|
}
|
|
|
|
|
|
if (!reason) {
|
|
|
throw new InvalidArgumentError("need to specify a reason the Duration is invalid");
|
|
|
}
|
|
|
|
|
|
var invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);
|
|
|
|
|
|
if (Settings.throwOnInvalid) {
|
|
|
throw new InvalidDurationError(invalid);
|
|
|
} else {
|
|
|
return new Duration({
|
|
|
invalid: invalid
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* @private
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
Duration.normalizeUnit = function normalizeUnit(unit) {
|
|
|
var normalized = {
|
|
|
year: "years",
|
|
|
years: "years",
|
|
|
quarter: "quarters",
|
|
|
quarters: "quarters",
|
|
|
month: "months",
|
|
|
months: "months",
|
|
|
week: "weeks",
|
|
|
weeks: "weeks",
|
|
|
day: "days",
|
|
|
days: "days",
|
|
|
hour: "hours",
|
|
|
hours: "hours",
|
|
|
minute: "minutes",
|
|
|
minutes: "minutes",
|
|
|
second: "seconds",
|
|
|
seconds: "seconds",
|
|
|
millisecond: "milliseconds",
|
|
|
milliseconds: "milliseconds"
|
|
|
}[unit ? unit.toLowerCase() : unit];
|
|
|
if (!normalized) throw new InvalidUnitError(unit);
|
|
|
return normalized;
|
|
|
}
|
|
|
/**
|
|
|
* Check if an object is a Duration. Works across context boundaries
|
|
|
* @param {object} o
|
|
|
* @return {boolean}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
Duration.isDuration = function isDuration(o) {
|
|
|
return o && o.isLuxonDuration || false;
|
|
|
}
|
|
|
/**
|
|
|
* Get the locale of a Duration, such 'en-GB'
|
|
|
* @type {string}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
var _proto = Duration.prototype;
|
|
|
|
|
|
/**
|
|
|
* Returns a string representation of this Duration formatted according to the specified format string. You may use these tokens:
|
|
|
* * `S` for milliseconds
|
|
|
* * `s` for seconds
|
|
|
* * `m` for minutes
|
|
|
* * `h` for hours
|
|
|
* * `d` for days
|
|
|
* * `M` for months
|
|
|
* * `y` for years
|
|
|
* Notes:
|
|
|
* * Add padding by repeating the token, e.g. "yy" pads the years to two digits, "hhhh" pads the hours out to four digits
|
|
|
* * The duration will be converted to the set of units in the format string using {@link Duration.shiftTo} and the Durations's conversion accuracy setting.
|
|
|
* @param {string} fmt - the format string
|
|
|
* @param {Object} opts - options
|
|
|
* @param {boolean} [opts.floor=true] - floor numerical values
|
|
|
* @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat("y d s") //=> "1 6 2"
|
|
|
* @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat("yy dd sss") //=> "01 06 002"
|
|
|
* @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toFormat("M S") //=> "12 518402000"
|
|
|
* @return {string}
|
|
|
*/
|
|
|
_proto.toFormat = function toFormat(fmt, opts) {
|
|
|
if (opts === void 0) {
|
|
|
opts = {};
|
|
|
}
|
|
|
|
|
|
// reverse-compat since 1.2; we always round down now, never up, and we do it by default
|
|
|
var fmtOpts = _extends({}, opts, {
|
|
|
floor: opts.round !== false && opts.floor !== false
|
|
|
});
|
|
|
|
|
|
return this.isValid ? Formatter.create(this.loc, fmtOpts).formatDurationFromString(this, fmt) : INVALID$2;
|
|
|
}
|
|
|
/**
|
|
|
* Returns a JavaScript object with this Duration's values.
|
|
|
* @example Duration.fromObject({ years: 1, days: 6, seconds: 2 }).toObject() //=> { years: 1, days: 6, seconds: 2 }
|
|
|
* @return {Object}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.toObject = function toObject() {
|
|
|
if (!this.isValid) return {};
|
|
|
return _extends({}, this.values);
|
|
|
}
|
|
|
/**
|
|
|
* Returns an ISO 8601-compliant string representation of this Duration.
|
|
|
* @see https://en.wikipedia.org/wiki/ISO_8601#Durations
|
|
|
* @example Duration.fromObject({ years: 3, seconds: 45 }).toISO() //=> 'P3YT45S'
|
|
|
* @example Duration.fromObject({ months: 4, seconds: 45 }).toISO() //=> 'P4MT45S'
|
|
|
* @example Duration.fromObject({ months: 5 }).toISO() //=> 'P5M'
|
|
|
* @example Duration.fromObject({ minutes: 5 }).toISO() //=> 'PT5M'
|
|
|
* @example Duration.fromObject({ milliseconds: 6 }).toISO() //=> 'PT0.006S'
|
|
|
* @return {string}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.toISO = function toISO() {
|
|
|
// we could use the formatter, but this is an easier way to get the minimum string
|
|
|
if (!this.isValid) return null;
|
|
|
var s = "P";
|
|
|
if (this.years !== 0) s += this.years + "Y";
|
|
|
if (this.months !== 0 || this.quarters !== 0) s += this.months + this.quarters * 3 + "M";
|
|
|
if (this.weeks !== 0) s += this.weeks + "W";
|
|
|
if (this.days !== 0) s += this.days + "D";
|
|
|
if (this.hours !== 0 || this.minutes !== 0 || this.seconds !== 0 || this.milliseconds !== 0) s += "T";
|
|
|
if (this.hours !== 0) s += this.hours + "H";
|
|
|
if (this.minutes !== 0) s += this.minutes + "M";
|
|
|
if (this.seconds !== 0 || this.milliseconds !== 0) // this will handle "floating point madness" by removing extra decimal places
|
|
|
// https://stackoverflow.com/questions/588004/is-floating-point-math-broken
|
|
|
s += roundTo(this.seconds + this.milliseconds / 1000, 3) + "S";
|
|
|
if (s === "P") s += "T0S";
|
|
|
return s;
|
|
|
}
|
|
|
/**
|
|
|
* Returns an ISO 8601-compliant string representation of this Duration, formatted as a time of day.
|
|
|
* Note that this will return null if the duration is invalid, negative, or equal to or greater than 24 hours.
|
|
|
* @see https://en.wikipedia.org/wiki/ISO_8601#Times
|
|
|
* @param {Object} opts - options
|
|
|
* @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0
|
|
|
* @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0
|
|
|
* @param {boolean} [opts.includePrefix=false] - include the `T` prefix
|
|
|
* @param {string} [opts.format='extended'] - choose between the basic and extended format
|
|
|
* @example Duration.fromObject({ hours: 11 }).toISOTime() //=> '11:00:00.000'
|
|
|
* @example Duration.fromObject({ hours: 11 }).toISOTime({ suppressMilliseconds: true }) //=> '11:00:00'
|
|
|
* @example Duration.fromObject({ hours: 11 }).toISOTime({ suppressSeconds: true }) //=> '11:00'
|
|
|
* @example Duration.fromObject({ hours: 11 }).toISOTime({ includePrefix: true }) //=> 'T11:00:00.000'
|
|
|
* @example Duration.fromObject({ hours: 11 }).toISOTime({ format: 'basic' }) //=> '110000.000'
|
|
|
* @return {string}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.toISOTime = function toISOTime(opts) {
|
|
|
if (opts === void 0) {
|
|
|
opts = {};
|
|
|
}
|
|
|
|
|
|
if (!this.isValid) return null;
|
|
|
var millis = this.toMillis();
|
|
|
if (millis < 0 || millis >= 86400000) return null;
|
|
|
opts = _extends({
|
|
|
suppressMilliseconds: false,
|
|
|
suppressSeconds: false,
|
|
|
includePrefix: false,
|
|
|
format: "extended"
|
|
|
}, opts);
|
|
|
var value = this.shiftTo("hours", "minutes", "seconds", "milliseconds");
|
|
|
var fmt = opts.format === "basic" ? "hhmm" : "hh:mm";
|
|
|
|
|
|
if (!opts.suppressSeconds || value.seconds !== 0 || value.milliseconds !== 0) {
|
|
|
fmt += opts.format === "basic" ? "ss" : ":ss";
|
|
|
|
|
|
if (!opts.suppressMilliseconds || value.milliseconds !== 0) {
|
|
|
fmt += ".SSS";
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var str = value.toFormat(fmt);
|
|
|
|
|
|
if (opts.includePrefix) {
|
|
|
str = "T" + str;
|
|
|
}
|
|
|
|
|
|
return str;
|
|
|
}
|
|
|
/**
|
|
|
* Returns an ISO 8601 representation of this Duration appropriate for use in JSON.
|
|
|
* @return {string}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.toJSON = function toJSON() {
|
|
|
return this.toISO();
|
|
|
}
|
|
|
/**
|
|
|
* Returns an ISO 8601 representation of this Duration appropriate for use in debugging.
|
|
|
* @return {string}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.toString = function toString() {
|
|
|
return this.toISO();
|
|
|
}
|
|
|
/**
|
|
|
* Returns an milliseconds value of this Duration.
|
|
|
* @return {number}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.toMillis = function toMillis() {
|
|
|
return this.as("milliseconds");
|
|
|
}
|
|
|
/**
|
|
|
* Returns an milliseconds value of this Duration. Alias of {@link toMillis}
|
|
|
* @return {number}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.valueOf = function valueOf() {
|
|
|
return this.toMillis();
|
|
|
}
|
|
|
/**
|
|
|
* Make this Duration longer by the specified amount. Return a newly-constructed Duration.
|
|
|
* @param {Duration|Object|number} duration - The amount to add. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()
|
|
|
* @return {Duration}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.plus = function plus(duration) {
|
|
|
if (!this.isValid) return this;
|
|
|
var dur = friendlyDuration(duration),
|
|
|
result = {};
|
|
|
|
|
|
for (var _iterator = _createForOfIteratorHelperLoose(orderedUnits$1), _step; !(_step = _iterator()).done;) {
|
|
|
var k = _step.value;
|
|
|
|
|
|
if (hasOwnProperty(dur.values, k) || hasOwnProperty(this.values, k)) {
|
|
|
result[k] = dur.get(k) + this.get(k);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return clone$1(this, {
|
|
|
values: result
|
|
|
}, true);
|
|
|
}
|
|
|
/**
|
|
|
* Make this Duration shorter by the specified amount. Return a newly-constructed Duration.
|
|
|
* @param {Duration|Object|number} duration - The amount to subtract. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()
|
|
|
* @return {Duration}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.minus = function minus(duration) {
|
|
|
if (!this.isValid) return this;
|
|
|
var dur = friendlyDuration(duration);
|
|
|
return this.plus(dur.negate());
|
|
|
}
|
|
|
/**
|
|
|
* Scale this Duration by the specified amount. Return a newly-constructed Duration.
|
|
|
* @param {function} fn - The function to apply to each unit. Arity is 1 or 2: the value of the unit and, optionally, the unit name. Must return a number.
|
|
|
* @example Duration.fromObject({ hours: 1, minutes: 30 }).mapUnits(x => x * 2) //=> { hours: 2, minutes: 60 }
|
|
|
* @example Duration.fromObject({ hours: 1, minutes: 30 }).mapUnits((x, u) => u === "hour" ? x * 2 : x) //=> { hours: 2, minutes: 30 }
|
|
|
* @return {Duration}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.mapUnits = function mapUnits(fn) {
|
|
|
if (!this.isValid) return this;
|
|
|
var result = {};
|
|
|
|
|
|
for (var _i = 0, _Object$keys = Object.keys(this.values); _i < _Object$keys.length; _i++) {
|
|
|
var k = _Object$keys[_i];
|
|
|
result[k] = asNumber(fn(this.values[k], k));
|
|
|
}
|
|
|
|
|
|
return clone$1(this, {
|
|
|
values: result
|
|
|
}, true);
|
|
|
}
|
|
|
/**
|
|
|
* Get the value of unit.
|
|
|
* @param {string} unit - a unit such as 'minute' or 'day'
|
|
|
* @example Duration.fromObject({years: 2, days: 3}).get('years') //=> 2
|
|
|
* @example Duration.fromObject({years: 2, days: 3}).get('months') //=> 0
|
|
|
* @example Duration.fromObject({years: 2, days: 3}).get('days') //=> 3
|
|
|
* @return {number}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.get = function get(unit) {
|
|
|
return this[Duration.normalizeUnit(unit)];
|
|
|
}
|
|
|
/**
|
|
|
* "Set" the values of specified units. Return a newly-constructed Duration.
|
|
|
* @param {Object} values - a mapping of units to numbers
|
|
|
* @example dur.set({ years: 2017 })
|
|
|
* @example dur.set({ hours: 8, minutes: 30 })
|
|
|
* @return {Duration}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.set = function set(values) {
|
|
|
if (!this.isValid) return this;
|
|
|
|
|
|
var mixed = _extends({}, this.values, normalizeObject(values, Duration.normalizeUnit));
|
|
|
|
|
|
return clone$1(this, {
|
|
|
values: mixed
|
|
|
});
|
|
|
}
|
|
|
/**
|
|
|
* "Set" the locale and/or numberingSystem. Returns a newly-constructed Duration.
|
|
|
* @example dur.reconfigure({ locale: 'en-GB' })
|
|
|
* @return {Duration}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.reconfigure = function reconfigure(_temp) {
|
|
|
var _ref = _temp === void 0 ? {} : _temp,
|
|
|
locale = _ref.locale,
|
|
|
numberingSystem = _ref.numberingSystem,
|
|
|
conversionAccuracy = _ref.conversionAccuracy;
|
|
|
|
|
|
var loc = this.loc.clone({
|
|
|
locale: locale,
|
|
|
numberingSystem: numberingSystem
|
|
|
}),
|
|
|
opts = {
|
|
|
loc: loc
|
|
|
};
|
|
|
|
|
|
if (conversionAccuracy) {
|
|
|
opts.conversionAccuracy = conversionAccuracy;
|
|
|
}
|
|
|
|
|
|
return clone$1(this, opts);
|
|
|
}
|
|
|
/**
|
|
|
* Return the length of the duration in the specified unit.
|
|
|
* @param {string} unit - a unit such as 'minutes' or 'days'
|
|
|
* @example Duration.fromObject({years: 1}).as('days') //=> 365
|
|
|
* @example Duration.fromObject({years: 1}).as('months') //=> 12
|
|
|
* @example Duration.fromObject({hours: 60}).as('days') //=> 2.5
|
|
|
* @return {number}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.as = function as(unit) {
|
|
|
return this.isValid ? this.shiftTo(unit).get(unit) : NaN;
|
|
|
}
|
|
|
/**
|
|
|
* Reduce this Duration to its canonical representation in its current units.
|
|
|
* @example Duration.fromObject({ years: 2, days: 5000 }).normalize().toObject() //=> { years: 15, days: 255 }
|
|
|
* @example Duration.fromObject({ hours: 12, minutes: -45 }).normalize().toObject() //=> { hours: 11, minutes: 15 }
|
|
|
* @return {Duration}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.normalize = function normalize() {
|
|
|
if (!this.isValid) return this;
|
|
|
var vals = this.toObject();
|
|
|
normalizeValues(this.matrix, vals);
|
|
|
return clone$1(this, {
|
|
|
values: vals
|
|
|
}, true);
|
|
|
}
|
|
|
/**
|
|
|
* Convert this Duration into its representation in a different set of units.
|
|
|
* @example Duration.fromObject({ hours: 1, seconds: 30 }).shiftTo('minutes', 'milliseconds').toObject() //=> { minutes: 60, milliseconds: 30000 }
|
|
|
* @return {Duration}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.shiftTo = function shiftTo() {
|
|
|
for (var _len = arguments.length, units = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
|
units[_key] = arguments[_key];
|
|
|
}
|
|
|
|
|
|
if (!this.isValid) return this;
|
|
|
|
|
|
if (units.length === 0) {
|
|
|
return this;
|
|
|
}
|
|
|
|
|
|
units = units.map(function (u) {
|
|
|
return Duration.normalizeUnit(u);
|
|
|
});
|
|
|
var built = {},
|
|
|
accumulated = {},
|
|
|
vals = this.toObject();
|
|
|
var lastUnit;
|
|
|
|
|
|
for (var _iterator2 = _createForOfIteratorHelperLoose(orderedUnits$1), _step2; !(_step2 = _iterator2()).done;) {
|
|
|
var k = _step2.value;
|
|
|
|
|
|
if (units.indexOf(k) >= 0) {
|
|
|
lastUnit = k;
|
|
|
var own = 0; // anything we haven't boiled down yet should get boiled to this unit
|
|
|
|
|
|
for (var ak in accumulated) {
|
|
|
own += this.matrix[ak][k] * accumulated[ak];
|
|
|
accumulated[ak] = 0;
|
|
|
} // plus anything that's already in this unit
|
|
|
|
|
|
|
|
|
if (isNumber(vals[k])) {
|
|
|
own += vals[k];
|
|
|
}
|
|
|
|
|
|
var i = Math.trunc(own);
|
|
|
built[k] = i;
|
|
|
accumulated[k] = own - i; // we'd like to absorb these fractions in another unit
|
|
|
// plus anything further down the chain that should be rolled up in to this
|
|
|
|
|
|
for (var down in vals) {
|
|
|
if (orderedUnits$1.indexOf(down) > orderedUnits$1.indexOf(k)) {
|
|
|
convert(this.matrix, vals, down, built, k);
|
|
|
}
|
|
|
} // otherwise, keep it in the wings to boil it later
|
|
|
|
|
|
} else if (isNumber(vals[k])) {
|
|
|
accumulated[k] = vals[k];
|
|
|
}
|
|
|
} // anything leftover becomes the decimal for the last unit
|
|
|
// lastUnit must be defined since units is not empty
|
|
|
|
|
|
|
|
|
for (var key in accumulated) {
|
|
|
if (accumulated[key] !== 0) {
|
|
|
built[lastUnit] += key === lastUnit ? accumulated[key] : accumulated[key] / this.matrix[lastUnit][key];
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return clone$1(this, {
|
|
|
values: built
|
|
|
}, true).normalize();
|
|
|
}
|
|
|
/**
|
|
|
* Return the negative of this Duration.
|
|
|
* @example Duration.fromObject({ hours: 1, seconds: 30 }).negate().toObject() //=> { hours: -1, seconds: -30 }
|
|
|
* @return {Duration}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.negate = function negate() {
|
|
|
if (!this.isValid) return this;
|
|
|
var negated = {};
|
|
|
|
|
|
for (var _i2 = 0, _Object$keys2 = Object.keys(this.values); _i2 < _Object$keys2.length; _i2++) {
|
|
|
var k = _Object$keys2[_i2];
|
|
|
negated[k] = -this.values[k];
|
|
|
}
|
|
|
|
|
|
return clone$1(this, {
|
|
|
values: negated
|
|
|
}, true);
|
|
|
}
|
|
|
/**
|
|
|
* Get the years.
|
|
|
* @type {number}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
/**
|
|
|
* Equality check
|
|
|
* Two Durations are equal iff they have the same units and the same values for each unit.
|
|
|
* @param {Duration} other
|
|
|
* @return {boolean}
|
|
|
*/
|
|
|
_proto.equals = function equals(other) {
|
|
|
if (!this.isValid || !other.isValid) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
if (!this.loc.equals(other.loc)) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
function eq(v1, v2) {
|
|
|
// Consider 0 and undefined as equal
|
|
|
if (v1 === undefined || v1 === 0) return v2 === undefined || v2 === 0;
|
|
|
return v1 === v2;
|
|
|
}
|
|
|
|
|
|
for (var _iterator3 = _createForOfIteratorHelperLoose(orderedUnits$1), _step3; !(_step3 = _iterator3()).done;) {
|
|
|
var u = _step3.value;
|
|
|
|
|
|
if (!eq(this.values[u], other.values[u])) {
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return true;
|
|
|
};
|
|
|
|
|
|
_createClass(Duration, [{
|
|
|
key: "locale",
|
|
|
get: function get() {
|
|
|
return this.isValid ? this.loc.locale : null;
|
|
|
}
|
|
|
/**
|
|
|
* Get the numbering system of a Duration, such 'beng'. The numbering system is used when formatting the Duration
|
|
|
*
|
|
|
* @type {string}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "numberingSystem",
|
|
|
get: function get() {
|
|
|
return this.isValid ? this.loc.numberingSystem : null;
|
|
|
}
|
|
|
}, {
|
|
|
key: "years",
|
|
|
get: function get() {
|
|
|
return this.isValid ? this.values.years || 0 : NaN;
|
|
|
}
|
|
|
/**
|
|
|
* Get the quarters.
|
|
|
* @type {number}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "quarters",
|
|
|
get: function get() {
|
|
|
return this.isValid ? this.values.quarters || 0 : NaN;
|
|
|
}
|
|
|
/**
|
|
|
* Get the months.
|
|
|
* @type {number}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "months",
|
|
|
get: function get() {
|
|
|
return this.isValid ? this.values.months || 0 : NaN;
|
|
|
}
|
|
|
/**
|
|
|
* Get the weeks
|
|
|
* @type {number}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "weeks",
|
|
|
get: function get() {
|
|
|
return this.isValid ? this.values.weeks || 0 : NaN;
|
|
|
}
|
|
|
/**
|
|
|
* Get the days.
|
|
|
* @type {number}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "days",
|
|
|
get: function get() {
|
|
|
return this.isValid ? this.values.days || 0 : NaN;
|
|
|
}
|
|
|
/**
|
|
|
* Get the hours.
|
|
|
* @type {number}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "hours",
|
|
|
get: function get() {
|
|
|
return this.isValid ? this.values.hours || 0 : NaN;
|
|
|
}
|
|
|
/**
|
|
|
* Get the minutes.
|
|
|
* @type {number}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "minutes",
|
|
|
get: function get() {
|
|
|
return this.isValid ? this.values.minutes || 0 : NaN;
|
|
|
}
|
|
|
/**
|
|
|
* Get the seconds.
|
|
|
* @return {number}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "seconds",
|
|
|
get: function get() {
|
|
|
return this.isValid ? this.values.seconds || 0 : NaN;
|
|
|
}
|
|
|
/**
|
|
|
* Get the milliseconds.
|
|
|
* @return {number}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "milliseconds",
|
|
|
get: function get() {
|
|
|
return this.isValid ? this.values.milliseconds || 0 : NaN;
|
|
|
}
|
|
|
/**
|
|
|
* Returns whether the Duration is invalid. Invalid durations are returned by diff operations
|
|
|
* on invalid DateTimes or Intervals.
|
|
|
* @return {boolean}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "isValid",
|
|
|
get: function get() {
|
|
|
return this.invalid === null;
|
|
|
}
|
|
|
/**
|
|
|
* Returns an error code if this Duration became invalid, or null if the Duration is valid
|
|
|
* @return {string}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "invalidReason",
|
|
|
get: function get() {
|
|
|
return this.invalid ? this.invalid.reason : null;
|
|
|
}
|
|
|
/**
|
|
|
* Returns an explanation of why this Duration became invalid, or null if the Duration is valid
|
|
|
* @type {string}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "invalidExplanation",
|
|
|
get: function get() {
|
|
|
return this.invalid ? this.invalid.explanation : null;
|
|
|
}
|
|
|
}]);
|
|
|
|
|
|
return Duration;
|
|
|
}();
|
|
|
function friendlyDuration(durationish) {
|
|
|
if (isNumber(durationish)) {
|
|
|
return Duration.fromMillis(durationish);
|
|
|
} else if (Duration.isDuration(durationish)) {
|
|
|
return durationish;
|
|
|
} else if (typeof durationish === "object") {
|
|
|
return Duration.fromObject(durationish);
|
|
|
} else {
|
|
|
throw new InvalidArgumentError("Unknown duration argument " + durationish + " of type " + typeof durationish);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var INVALID$1 = "Invalid Interval"; // checks if the start is equal to or before the end
|
|
|
|
|
|
function validateStartEnd(start, end) {
|
|
|
if (!start || !start.isValid) {
|
|
|
return Interval.invalid("missing or invalid start");
|
|
|
} else if (!end || !end.isValid) {
|
|
|
return Interval.invalid("missing or invalid end");
|
|
|
} else if (end < start) {
|
|
|
return Interval.invalid("end before start", "The end of an interval must be after its start, but you had start=" + start.toISO() + " and end=" + end.toISO());
|
|
|
} else {
|
|
|
return null;
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* An Interval object represents a half-open interval of time, where each endpoint is a {@link DateTime}. Conceptually, it's a container for those two endpoints, accompanied by methods for creating, parsing, interrogating, comparing, transforming, and formatting them.
|
|
|
*
|
|
|
* Here is a brief overview of the most commonly used methods and getters in Interval:
|
|
|
*
|
|
|
* * **Creation** To create an Interval, use {@link Interval.fromDateTimes}, {@link Interval.after}, {@link Interval.before}, or {@link Interval.fromISO}.
|
|
|
* * **Accessors** Use {@link Interval#start} and {@link Interval#end} to get the start and end.
|
|
|
* * **Interrogation** To analyze the Interval, use {@link Interval#count}, {@link Interval#length}, {@link Interval#hasSame}, {@link Interval#contains}, {@link Interval#isAfter}, or {@link Interval#isBefore}.
|
|
|
* * **Transformation** To create other Intervals out of this one, use {@link Interval#set}, {@link Interval#splitAt}, {@link Interval#splitBy}, {@link Interval#divideEqually}, {@link Interval#merge}, {@link Interval#xor}, {@link Interval#union}, {@link Interval#intersection}, or {@link Interval#difference}.
|
|
|
* * **Comparison** To compare this Interval to another one, use {@link Interval#equals}, {@link Interval#overlaps}, {@link Interval#abutsStart}, {@link Interval#abutsEnd}, {@link Interval#engulfs}
|
|
|
* * **Output** To convert the Interval into other representations, see {@link Interval#toString}, {@link Interval#toISO}, {@link Interval#toISODate}, {@link Interval#toISOTime}, {@link Interval#toFormat}, and {@link Interval#toDuration}.
|
|
|
*/
|
|
|
|
|
|
|
|
|
var Interval = /*#__PURE__*/function () {
|
|
|
/**
|
|
|
* @private
|
|
|
*/
|
|
|
function Interval(config) {
|
|
|
/**
|
|
|
* @access private
|
|
|
*/
|
|
|
this.s = config.start;
|
|
|
/**
|
|
|
* @access private
|
|
|
*/
|
|
|
|
|
|
this.e = config.end;
|
|
|
/**
|
|
|
* @access private
|
|
|
*/
|
|
|
|
|
|
this.invalid = config.invalid || null;
|
|
|
/**
|
|
|
* @access private
|
|
|
*/
|
|
|
|
|
|
this.isLuxonInterval = true;
|
|
|
}
|
|
|
/**
|
|
|
* Create an invalid Interval.
|
|
|
* @param {string} reason - simple string of why this Interval is invalid. Should not contain parameters or anything else data-dependent
|
|
|
* @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information
|
|
|
* @return {Interval}
|
|
|
*/
|
|
|
|
|
|
|
|
|
Interval.invalid = function invalid(reason, explanation) {
|
|
|
if (explanation === void 0) {
|
|
|
explanation = null;
|
|
|
}
|
|
|
|
|
|
if (!reason) {
|
|
|
throw new InvalidArgumentError("need to specify a reason the Interval is invalid");
|
|
|
}
|
|
|
|
|
|
var invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);
|
|
|
|
|
|
if (Settings.throwOnInvalid) {
|
|
|
throw new InvalidIntervalError(invalid);
|
|
|
} else {
|
|
|
return new Interval({
|
|
|
invalid: invalid
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* Create an Interval from a start DateTime and an end DateTime. Inclusive of the start but not the end.
|
|
|
* @param {DateTime|Date|Object} start
|
|
|
* @param {DateTime|Date|Object} end
|
|
|
* @return {Interval}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
Interval.fromDateTimes = function fromDateTimes(start, end) {
|
|
|
var builtStart = friendlyDateTime(start),
|
|
|
builtEnd = friendlyDateTime(end);
|
|
|
var validateError = validateStartEnd(builtStart, builtEnd);
|
|
|
|
|
|
if (validateError == null) {
|
|
|
return new Interval({
|
|
|
start: builtStart,
|
|
|
end: builtEnd
|
|
|
});
|
|
|
} else {
|
|
|
return validateError;
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* Create an Interval from a start DateTime and a Duration to extend to.
|
|
|
* @param {DateTime|Date|Object} start
|
|
|
* @param {Duration|Object|number} duration - the length of the Interval.
|
|
|
* @return {Interval}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
Interval.after = function after(start, duration) {
|
|
|
var dur = friendlyDuration(duration),
|
|
|
dt = friendlyDateTime(start);
|
|
|
return Interval.fromDateTimes(dt, dt.plus(dur));
|
|
|
}
|
|
|
/**
|
|
|
* Create an Interval from an end DateTime and a Duration to extend backwards to.
|
|
|
* @param {DateTime|Date|Object} end
|
|
|
* @param {Duration|Object|number} duration - the length of the Interval.
|
|
|
* @return {Interval}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
Interval.before = function before(end, duration) {
|
|
|
var dur = friendlyDuration(duration),
|
|
|
dt = friendlyDateTime(end);
|
|
|
return Interval.fromDateTimes(dt.minus(dur), dt);
|
|
|
}
|
|
|
/**
|
|
|
* Create an Interval from an ISO 8601 string.
|
|
|
* Accepts `<start>/<end>`, `<start>/<duration>`, and `<duration>/<end>` formats.
|
|
|
* @param {string} text - the ISO string to parse
|
|
|
* @param {Object} [opts] - options to pass {@link DateTime.fromISO} and optionally {@link Duration.fromISO}
|
|
|
* @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals
|
|
|
* @return {Interval}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
Interval.fromISO = function fromISO(text, opts) {
|
|
|
var _split = (text || "").split("/", 2),
|
|
|
s = _split[0],
|
|
|
e = _split[1];
|
|
|
|
|
|
if (s && e) {
|
|
|
var start, startIsValid;
|
|
|
|
|
|
try {
|
|
|
start = DateTime.fromISO(s, opts);
|
|
|
startIsValid = start.isValid;
|
|
|
} catch (e) {
|
|
|
startIsValid = false;
|
|
|
}
|
|
|
|
|
|
var end, endIsValid;
|
|
|
|
|
|
try {
|
|
|
end = DateTime.fromISO(e, opts);
|
|
|
endIsValid = end.isValid;
|
|
|
} catch (e) {
|
|
|
endIsValid = false;
|
|
|
}
|
|
|
|
|
|
if (startIsValid && endIsValid) {
|
|
|
return Interval.fromDateTimes(start, end);
|
|
|
}
|
|
|
|
|
|
if (startIsValid) {
|
|
|
var dur = Duration.fromISO(e, opts);
|
|
|
|
|
|
if (dur.isValid) {
|
|
|
return Interval.after(start, dur);
|
|
|
}
|
|
|
} else if (endIsValid) {
|
|
|
var _dur = Duration.fromISO(s, opts);
|
|
|
|
|
|
if (_dur.isValid) {
|
|
|
return Interval.before(end, _dur);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return Interval.invalid("unparsable", "the input \"" + text + "\" can't be parsed as ISO 8601");
|
|
|
}
|
|
|
/**
|
|
|
* Check if an object is an Interval. Works across context boundaries
|
|
|
* @param {object} o
|
|
|
* @return {boolean}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
Interval.isInterval = function isInterval(o) {
|
|
|
return o && o.isLuxonInterval || false;
|
|
|
}
|
|
|
/**
|
|
|
* Returns the start of the Interval
|
|
|
* @type {DateTime}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
var _proto = Interval.prototype;
|
|
|
|
|
|
/**
|
|
|
* Returns the length of the Interval in the specified unit.
|
|
|
* @param {string} unit - the unit (such as 'hours' or 'days') to return the length in.
|
|
|
* @return {number}
|
|
|
*/
|
|
|
_proto.length = function length(unit) {
|
|
|
if (unit === void 0) {
|
|
|
unit = "milliseconds";
|
|
|
}
|
|
|
|
|
|
return this.isValid ? this.toDuration.apply(this, [unit]).get(unit) : NaN;
|
|
|
}
|
|
|
/**
|
|
|
* Returns the count of minutes, hours, days, months, or years included in the Interval, even in part.
|
|
|
* Unlike {@link Interval#length} this counts sections of the calendar, not periods of time, e.g. specifying 'day'
|
|
|
* asks 'what dates are included in this interval?', not 'how many days long is this interval?'
|
|
|
* @param {string} [unit='milliseconds'] - the unit of time to count.
|
|
|
* @return {number}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.count = function count(unit) {
|
|
|
if (unit === void 0) {
|
|
|
unit = "milliseconds";
|
|
|
}
|
|
|
|
|
|
if (!this.isValid) return NaN;
|
|
|
var start = this.start.startOf(unit),
|
|
|
end = this.end.startOf(unit);
|
|
|
return Math.floor(end.diff(start, unit).get(unit)) + 1;
|
|
|
}
|
|
|
/**
|
|
|
* Returns whether this Interval's start and end are both in the same unit of time
|
|
|
* @param {string} unit - the unit of time to check sameness on
|
|
|
* @return {boolean}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.hasSame = function hasSame(unit) {
|
|
|
return this.isValid ? this.isEmpty() || this.e.minus(1).hasSame(this.s, unit) : false;
|
|
|
}
|
|
|
/**
|
|
|
* Return whether this Interval has the same start and end DateTimes.
|
|
|
* @return {boolean}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.isEmpty = function isEmpty() {
|
|
|
return this.s.valueOf() === this.e.valueOf();
|
|
|
}
|
|
|
/**
|
|
|
* Return whether this Interval's start is after the specified DateTime.
|
|
|
* @param {DateTime} dateTime
|
|
|
* @return {boolean}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.isAfter = function isAfter(dateTime) {
|
|
|
if (!this.isValid) return false;
|
|
|
return this.s > dateTime;
|
|
|
}
|
|
|
/**
|
|
|
* Return whether this Interval's end is before the specified DateTime.
|
|
|
* @param {DateTime} dateTime
|
|
|
* @return {boolean}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.isBefore = function isBefore(dateTime) {
|
|
|
if (!this.isValid) return false;
|
|
|
return this.e <= dateTime;
|
|
|
}
|
|
|
/**
|
|
|
* Return whether this Interval contains the specified DateTime.
|
|
|
* @param {DateTime} dateTime
|
|
|
* @return {boolean}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.contains = function contains(dateTime) {
|
|
|
if (!this.isValid) return false;
|
|
|
return this.s <= dateTime && this.e > dateTime;
|
|
|
}
|
|
|
/**
|
|
|
* "Sets" the start and/or end dates. Returns a newly-constructed Interval.
|
|
|
* @param {Object} values - the values to set
|
|
|
* @param {DateTime} values.start - the starting DateTime
|
|
|
* @param {DateTime} values.end - the ending DateTime
|
|
|
* @return {Interval}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.set = function set(_temp) {
|
|
|
var _ref = _temp === void 0 ? {} : _temp,
|
|
|
start = _ref.start,
|
|
|
end = _ref.end;
|
|
|
|
|
|
if (!this.isValid) return this;
|
|
|
return Interval.fromDateTimes(start || this.s, end || this.e);
|
|
|
}
|
|
|
/**
|
|
|
* Split this Interval at each of the specified DateTimes
|
|
|
* @param {...DateTime} dateTimes - the unit of time to count.
|
|
|
* @return {Array}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.splitAt = function splitAt() {
|
|
|
var _this = this;
|
|
|
|
|
|
if (!this.isValid) return [];
|
|
|
|
|
|
for (var _len = arguments.length, dateTimes = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
|
dateTimes[_key] = arguments[_key];
|
|
|
}
|
|
|
|
|
|
var sorted = dateTimes.map(friendlyDateTime).filter(function (d) {
|
|
|
return _this.contains(d);
|
|
|
}).sort(),
|
|
|
results = [];
|
|
|
var s = this.s,
|
|
|
i = 0;
|
|
|
|
|
|
while (s < this.e) {
|
|
|
var added = sorted[i] || this.e,
|
|
|
next = +added > +this.e ? this.e : added;
|
|
|
results.push(Interval.fromDateTimes(s, next));
|
|
|
s = next;
|
|
|
i += 1;
|
|
|
}
|
|
|
|
|
|
return results;
|
|
|
}
|
|
|
/**
|
|
|
* Split this Interval into smaller Intervals, each of the specified length.
|
|
|
* Left over time is grouped into a smaller interval
|
|
|
* @param {Duration|Object|number} duration - The length of each resulting interval.
|
|
|
* @return {Array}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.splitBy = function splitBy(duration) {
|
|
|
var dur = friendlyDuration(duration);
|
|
|
|
|
|
if (!this.isValid || !dur.isValid || dur.as("milliseconds") === 0) {
|
|
|
return [];
|
|
|
}
|
|
|
|
|
|
var s = this.s,
|
|
|
idx = 1,
|
|
|
next;
|
|
|
var results = [];
|
|
|
|
|
|
while (s < this.e) {
|
|
|
var added = this.start.plus(dur.mapUnits(function (x) {
|
|
|
return x * idx;
|
|
|
}));
|
|
|
next = +added > +this.e ? this.e : added;
|
|
|
results.push(Interval.fromDateTimes(s, next));
|
|
|
s = next;
|
|
|
idx += 1;
|
|
|
}
|
|
|
|
|
|
return results;
|
|
|
}
|
|
|
/**
|
|
|
* Split this Interval into the specified number of smaller intervals.
|
|
|
* @param {number} numberOfParts - The number of Intervals to divide the Interval into.
|
|
|
* @return {Array}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.divideEqually = function divideEqually(numberOfParts) {
|
|
|
if (!this.isValid) return [];
|
|
|
return this.splitBy(this.length() / numberOfParts).slice(0, numberOfParts);
|
|
|
}
|
|
|
/**
|
|
|
* Return whether this Interval overlaps with the specified Interval
|
|
|
* @param {Interval} other
|
|
|
* @return {boolean}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.overlaps = function overlaps(other) {
|
|
|
return this.e > other.s && this.s < other.e;
|
|
|
}
|
|
|
/**
|
|
|
* Return whether this Interval's end is adjacent to the specified Interval's start.
|
|
|
* @param {Interval} other
|
|
|
* @return {boolean}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.abutsStart = function abutsStart(other) {
|
|
|
if (!this.isValid) return false;
|
|
|
return +this.e === +other.s;
|
|
|
}
|
|
|
/**
|
|
|
* Return whether this Interval's start is adjacent to the specified Interval's end.
|
|
|
* @param {Interval} other
|
|
|
* @return {boolean}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.abutsEnd = function abutsEnd(other) {
|
|
|
if (!this.isValid) return false;
|
|
|
return +other.e === +this.s;
|
|
|
}
|
|
|
/**
|
|
|
* Return whether this Interval engulfs the start and end of the specified Interval.
|
|
|
* @param {Interval} other
|
|
|
* @return {boolean}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.engulfs = function engulfs(other) {
|
|
|
if (!this.isValid) return false;
|
|
|
return this.s <= other.s && this.e >= other.e;
|
|
|
}
|
|
|
/**
|
|
|
* Return whether this Interval has the same start and end as the specified Interval.
|
|
|
* @param {Interval} other
|
|
|
* @return {boolean}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.equals = function equals(other) {
|
|
|
if (!this.isValid || !other.isValid) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
return this.s.equals(other.s) && this.e.equals(other.e);
|
|
|
}
|
|
|
/**
|
|
|
* Return an Interval representing the intersection of this Interval and the specified Interval.
|
|
|
* Specifically, the resulting Interval has the maximum start time and the minimum end time of the two Intervals.
|
|
|
* Returns null if the intersection is empty, meaning, the intervals don't intersect.
|
|
|
* @param {Interval} other
|
|
|
* @return {Interval}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.intersection = function intersection(other) {
|
|
|
if (!this.isValid) return this;
|
|
|
var s = this.s > other.s ? this.s : other.s,
|
|
|
e = this.e < other.e ? this.e : other.e;
|
|
|
|
|
|
if (s >= e) {
|
|
|
return null;
|
|
|
} else {
|
|
|
return Interval.fromDateTimes(s, e);
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* Return an Interval representing the union of this Interval and the specified Interval.
|
|
|
* Specifically, the resulting Interval has the minimum start time and the maximum end time of the two Intervals.
|
|
|
* @param {Interval} other
|
|
|
* @return {Interval}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.union = function union(other) {
|
|
|
if (!this.isValid) return this;
|
|
|
var s = this.s < other.s ? this.s : other.s,
|
|
|
e = this.e > other.e ? this.e : other.e;
|
|
|
return Interval.fromDateTimes(s, e);
|
|
|
}
|
|
|
/**
|
|
|
* Merge an array of Intervals into a equivalent minimal set of Intervals.
|
|
|
* Combines overlapping and adjacent Intervals.
|
|
|
* @param {Array} intervals
|
|
|
* @return {Array}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
Interval.merge = function merge(intervals) {
|
|
|
var _intervals$sort$reduc = intervals.sort(function (a, b) {
|
|
|
return a.s - b.s;
|
|
|
}).reduce(function (_ref2, item) {
|
|
|
var sofar = _ref2[0],
|
|
|
current = _ref2[1];
|
|
|
|
|
|
if (!current) {
|
|
|
return [sofar, item];
|
|
|
} else if (current.overlaps(item) || current.abutsStart(item)) {
|
|
|
return [sofar, current.union(item)];
|
|
|
} else {
|
|
|
return [sofar.concat([current]), item];
|
|
|
}
|
|
|
}, [[], null]),
|
|
|
found = _intervals$sort$reduc[0],
|
|
|
final = _intervals$sort$reduc[1];
|
|
|
|
|
|
if (final) {
|
|
|
found.push(final);
|
|
|
}
|
|
|
|
|
|
return found;
|
|
|
}
|
|
|
/**
|
|
|
* Return an array of Intervals representing the spans of time that only appear in one of the specified Intervals.
|
|
|
* @param {Array} intervals
|
|
|
* @return {Array}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
Interval.xor = function xor(intervals) {
|
|
|
var _Array$prototype;
|
|
|
|
|
|
var start = null,
|
|
|
currentCount = 0;
|
|
|
|
|
|
var results = [],
|
|
|
ends = intervals.map(function (i) {
|
|
|
return [{
|
|
|
time: i.s,
|
|
|
type: "s"
|
|
|
}, {
|
|
|
time: i.e,
|
|
|
type: "e"
|
|
|
}];
|
|
|
}),
|
|
|
flattened = (_Array$prototype = Array.prototype).concat.apply(_Array$prototype, ends),
|
|
|
arr = flattened.sort(function (a, b) {
|
|
|
return a.time - b.time;
|
|
|
});
|
|
|
|
|
|
for (var _iterator = _createForOfIteratorHelperLoose(arr), _step; !(_step = _iterator()).done;) {
|
|
|
var i = _step.value;
|
|
|
currentCount += i.type === "s" ? 1 : -1;
|
|
|
|
|
|
if (currentCount === 1) {
|
|
|
start = i.time;
|
|
|
} else {
|
|
|
if (start && +start !== +i.time) {
|
|
|
results.push(Interval.fromDateTimes(start, i.time));
|
|
|
}
|
|
|
|
|
|
start = null;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return Interval.merge(results);
|
|
|
}
|
|
|
/**
|
|
|
* Return an Interval representing the span of time in this Interval that doesn't overlap with any of the specified Intervals.
|
|
|
* @param {...Interval} intervals
|
|
|
* @return {Array}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.difference = function difference() {
|
|
|
var _this2 = this;
|
|
|
|
|
|
for (var _len2 = arguments.length, intervals = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
|
intervals[_key2] = arguments[_key2];
|
|
|
}
|
|
|
|
|
|
return Interval.xor([this].concat(intervals)).map(function (i) {
|
|
|
return _this2.intersection(i);
|
|
|
}).filter(function (i) {
|
|
|
return i && !i.isEmpty();
|
|
|
});
|
|
|
}
|
|
|
/**
|
|
|
* Returns a string representation of this Interval appropriate for debugging.
|
|
|
* @return {string}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.toString = function toString() {
|
|
|
if (!this.isValid) return INVALID$1;
|
|
|
return "[" + this.s.toISO() + " \u2013 " + this.e.toISO() + ")";
|
|
|
}
|
|
|
/**
|
|
|
* Returns an ISO 8601-compliant string representation of this Interval.
|
|
|
* @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals
|
|
|
* @param {Object} opts - The same options as {@link DateTime#toISO}
|
|
|
* @return {string}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.toISO = function toISO(opts) {
|
|
|
if (!this.isValid) return INVALID$1;
|
|
|
return this.s.toISO(opts) + "/" + this.e.toISO(opts);
|
|
|
}
|
|
|
/**
|
|
|
* Returns an ISO 8601-compliant string representation of date of this Interval.
|
|
|
* The time components are ignored.
|
|
|
* @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals
|
|
|
* @return {string}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.toISODate = function toISODate() {
|
|
|
if (!this.isValid) return INVALID$1;
|
|
|
return this.s.toISODate() + "/" + this.e.toISODate();
|
|
|
}
|
|
|
/**
|
|
|
* Returns an ISO 8601-compliant string representation of time of this Interval.
|
|
|
* The date components are ignored.
|
|
|
* @see https://en.wikipedia.org/wiki/ISO_8601#Time_intervals
|
|
|
* @param {Object} opts - The same options as {@link DateTime.toISO}
|
|
|
* @return {string}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.toISOTime = function toISOTime(opts) {
|
|
|
if (!this.isValid) return INVALID$1;
|
|
|
return this.s.toISOTime(opts) + "/" + this.e.toISOTime(opts);
|
|
|
}
|
|
|
/**
|
|
|
* Returns a string representation of this Interval formatted according to the specified format string.
|
|
|
* @param {string} dateFormat - the format string. This string formats the start and end time. See {@link DateTime.toFormat} for details.
|
|
|
* @param {Object} opts - options
|
|
|
* @param {string} [opts.separator = ' – '] - a separator to place between the start and end representations
|
|
|
* @return {string}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.toFormat = function toFormat(dateFormat, _temp2) {
|
|
|
var _ref3 = _temp2 === void 0 ? {} : _temp2,
|
|
|
_ref3$separator = _ref3.separator,
|
|
|
separator = _ref3$separator === void 0 ? " – " : _ref3$separator;
|
|
|
|
|
|
if (!this.isValid) return INVALID$1;
|
|
|
return "" + this.s.toFormat(dateFormat) + separator + this.e.toFormat(dateFormat);
|
|
|
}
|
|
|
/**
|
|
|
* Return a Duration representing the time spanned by this interval.
|
|
|
* @param {string|string[]} [unit=['milliseconds']] - the unit or units (such as 'hours' or 'days') to include in the duration.
|
|
|
* @param {Object} opts - options that affect the creation of the Duration
|
|
|
* @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use
|
|
|
* @example Interval.fromDateTimes(dt1, dt2).toDuration().toObject() //=> { milliseconds: 88489257 }
|
|
|
* @example Interval.fromDateTimes(dt1, dt2).toDuration('days').toObject() //=> { days: 1.0241812152777778 }
|
|
|
* @example Interval.fromDateTimes(dt1, dt2).toDuration(['hours', 'minutes']).toObject() //=> { hours: 24, minutes: 34.82095 }
|
|
|
* @example Interval.fromDateTimes(dt1, dt2).toDuration(['hours', 'minutes', 'seconds']).toObject() //=> { hours: 24, minutes: 34, seconds: 49.257 }
|
|
|
* @example Interval.fromDateTimes(dt1, dt2).toDuration('seconds').toObject() //=> { seconds: 88489.257 }
|
|
|
* @return {Duration}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.toDuration = function toDuration(unit, opts) {
|
|
|
if (!this.isValid) {
|
|
|
return Duration.invalid(this.invalidReason);
|
|
|
}
|
|
|
|
|
|
return this.e.diff(this.s, unit, opts);
|
|
|
}
|
|
|
/**
|
|
|
* Run mapFn on the interval start and end, returning a new Interval from the resulting DateTimes
|
|
|
* @param {function} mapFn
|
|
|
* @return {Interval}
|
|
|
* @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.toUTC())
|
|
|
* @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.plus({ hours: 2 }))
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.mapEndpoints = function mapEndpoints(mapFn) {
|
|
|
return Interval.fromDateTimes(mapFn(this.s), mapFn(this.e));
|
|
|
};
|
|
|
|
|
|
_createClass(Interval, [{
|
|
|
key: "start",
|
|
|
get: function get() {
|
|
|
return this.isValid ? this.s : null;
|
|
|
}
|
|
|
/**
|
|
|
* Returns the end of the Interval
|
|
|
* @type {DateTime}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "end",
|
|
|
get: function get() {
|
|
|
return this.isValid ? this.e : null;
|
|
|
}
|
|
|
/**
|
|
|
* Returns whether this Interval's end is at least its start, meaning that the Interval isn't 'backwards'.
|
|
|
* @type {boolean}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "isValid",
|
|
|
get: function get() {
|
|
|
return this.invalidReason === null;
|
|
|
}
|
|
|
/**
|
|
|
* Returns an error code if this Interval is invalid, or null if the Interval is valid
|
|
|
* @type {string}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "invalidReason",
|
|
|
get: function get() {
|
|
|
return this.invalid ? this.invalid.reason : null;
|
|
|
}
|
|
|
/**
|
|
|
* Returns an explanation of why this Interval became invalid, or null if the Interval is valid
|
|
|
* @type {string}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "invalidExplanation",
|
|
|
get: function get() {
|
|
|
return this.invalid ? this.invalid.explanation : null;
|
|
|
}
|
|
|
}]);
|
|
|
|
|
|
return Interval;
|
|
|
}();
|
|
|
|
|
|
/**
|
|
|
* The Info class contains static methods for retrieving general time and date related data. For example, it has methods for finding out if a time zone has a DST, for listing the months in any supported locale, and for discovering which of Luxon features are available in the current environment.
|
|
|
*/
|
|
|
|
|
|
var Info = /*#__PURE__*/function () {
|
|
|
function Info() {}
|
|
|
|
|
|
/**
|
|
|
* Return whether the specified zone contains a DST.
|
|
|
* @param {string|Zone} [zone='local'] - Zone to check. Defaults to the environment's local zone.
|
|
|
* @return {boolean}
|
|
|
*/
|
|
|
Info.hasDST = function hasDST(zone) {
|
|
|
if (zone === void 0) {
|
|
|
zone = Settings.defaultZone;
|
|
|
}
|
|
|
|
|
|
var proto = DateTime.now().setZone(zone).set({
|
|
|
month: 12
|
|
|
});
|
|
|
return !zone.isUniversal && proto.offset !== proto.set({
|
|
|
month: 6
|
|
|
}).offset;
|
|
|
}
|
|
|
/**
|
|
|
* Return whether the specified zone is a valid IANA specifier.
|
|
|
* @param {string} zone - Zone to check
|
|
|
* @return {boolean}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
Info.isValidIANAZone = function isValidIANAZone(zone) {
|
|
|
return IANAZone.isValidSpecifier(zone) && IANAZone.isValidZone(zone);
|
|
|
}
|
|
|
/**
|
|
|
* Converts the input into a {@link Zone} instance.
|
|
|
*
|
|
|
* * If `input` is already a Zone instance, it is returned unchanged.
|
|
|
* * If `input` is a string containing a valid time zone name, a Zone instance
|
|
|
* with that name is returned.
|
|
|
* * If `input` is a string that doesn't refer to a known time zone, a Zone
|
|
|
* instance with {@link Zone.isValid} == false is returned.
|
|
|
* * If `input is a number, a Zone instance with the specified fixed offset
|
|
|
* in minutes is returned.
|
|
|
* * If `input` is `null` or `undefined`, the default zone is returned.
|
|
|
* @param {string|Zone|number} [input] - the value to be converted
|
|
|
* @return {Zone}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
Info.normalizeZone = function normalizeZone$1(input) {
|
|
|
return normalizeZone(input, Settings.defaultZone);
|
|
|
}
|
|
|
/**
|
|
|
* Return an array of standalone month names.
|
|
|
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat
|
|
|
* @param {string} [length='long'] - the length of the month representation, such as "numeric", "2-digit", "narrow", "short", "long"
|
|
|
* @param {Object} opts - options
|
|
|
* @param {string} [opts.locale] - the locale code
|
|
|
* @param {string} [opts.numberingSystem=null] - the numbering system
|
|
|
* @param {string} [opts.locObj=null] - an existing locale object to use
|
|
|
* @param {string} [opts.outputCalendar='gregory'] - the calendar
|
|
|
* @example Info.months()[0] //=> 'January'
|
|
|
* @example Info.months('short')[0] //=> 'Jan'
|
|
|
* @example Info.months('numeric')[0] //=> '1'
|
|
|
* @example Info.months('short', { locale: 'fr-CA' } )[0] //=> 'janv.'
|
|
|
* @example Info.months('numeric', { locale: 'ar' })[0] //=> '١'
|
|
|
* @example Info.months('long', { outputCalendar: 'islamic' })[0] //=> 'Rabiʻ I'
|
|
|
* @return {Array}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
Info.months = function months(length, _temp) {
|
|
|
if (length === void 0) {
|
|
|
length = "long";
|
|
|
}
|
|
|
|
|
|
var _ref = _temp === void 0 ? {} : _temp,
|
|
|
_ref$locale = _ref.locale,
|
|
|
locale = _ref$locale === void 0 ? null : _ref$locale,
|
|
|
_ref$numberingSystem = _ref.numberingSystem,
|
|
|
numberingSystem = _ref$numberingSystem === void 0 ? null : _ref$numberingSystem,
|
|
|
_ref$locObj = _ref.locObj,
|
|
|
locObj = _ref$locObj === void 0 ? null : _ref$locObj,
|
|
|
_ref$outputCalendar = _ref.outputCalendar,
|
|
|
outputCalendar = _ref$outputCalendar === void 0 ? "gregory" : _ref$outputCalendar;
|
|
|
|
|
|
return (locObj || Locale.create(locale, numberingSystem, outputCalendar)).months(length);
|
|
|
}
|
|
|
/**
|
|
|
* Return an array of format month names.
|
|
|
* Format months differ from standalone months in that they're meant to appear next to the day of the month. In some languages, that
|
|
|
* changes the string.
|
|
|
* See {@link Info#months}
|
|
|
* @param {string} [length='long'] - the length of the month representation, such as "numeric", "2-digit", "narrow", "short", "long"
|
|
|
* @param {Object} opts - options
|
|
|
* @param {string} [opts.locale] - the locale code
|
|
|
* @param {string} [opts.numberingSystem=null] - the numbering system
|
|
|
* @param {string} [opts.locObj=null] - an existing locale object to use
|
|
|
* @param {string} [opts.outputCalendar='gregory'] - the calendar
|
|
|
* @return {Array}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
Info.monthsFormat = function monthsFormat(length, _temp2) {
|
|
|
if (length === void 0) {
|
|
|
length = "long";
|
|
|
}
|
|
|
|
|
|
var _ref2 = _temp2 === void 0 ? {} : _temp2,
|
|
|
_ref2$locale = _ref2.locale,
|
|
|
locale = _ref2$locale === void 0 ? null : _ref2$locale,
|
|
|
_ref2$numberingSystem = _ref2.numberingSystem,
|
|
|
numberingSystem = _ref2$numberingSystem === void 0 ? null : _ref2$numberingSystem,
|
|
|
_ref2$locObj = _ref2.locObj,
|
|
|
locObj = _ref2$locObj === void 0 ? null : _ref2$locObj,
|
|
|
_ref2$outputCalendar = _ref2.outputCalendar,
|
|
|
outputCalendar = _ref2$outputCalendar === void 0 ? "gregory" : _ref2$outputCalendar;
|
|
|
|
|
|
return (locObj || Locale.create(locale, numberingSystem, outputCalendar)).months(length, true);
|
|
|
}
|
|
|
/**
|
|
|
* Return an array of standalone week names.
|
|
|
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat
|
|
|
* @param {string} [length='long'] - the length of the weekday representation, such as "narrow", "short", "long".
|
|
|
* @param {Object} opts - options
|
|
|
* @param {string} [opts.locale] - the locale code
|
|
|
* @param {string} [opts.numberingSystem=null] - the numbering system
|
|
|
* @param {string} [opts.locObj=null] - an existing locale object to use
|
|
|
* @example Info.weekdays()[0] //=> 'Monday'
|
|
|
* @example Info.weekdays('short')[0] //=> 'Mon'
|
|
|
* @example Info.weekdays('short', { locale: 'fr-CA' })[0] //=> 'lun.'
|
|
|
* @example Info.weekdays('short', { locale: 'ar' })[0] //=> 'الاثنين'
|
|
|
* @return {Array}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
Info.weekdays = function weekdays(length, _temp3) {
|
|
|
if (length === void 0) {
|
|
|
length = "long";
|
|
|
}
|
|
|
|
|
|
var _ref3 = _temp3 === void 0 ? {} : _temp3,
|
|
|
_ref3$locale = _ref3.locale,
|
|
|
locale = _ref3$locale === void 0 ? null : _ref3$locale,
|
|
|
_ref3$numberingSystem = _ref3.numberingSystem,
|
|
|
numberingSystem = _ref3$numberingSystem === void 0 ? null : _ref3$numberingSystem,
|
|
|
_ref3$locObj = _ref3.locObj,
|
|
|
locObj = _ref3$locObj === void 0 ? null : _ref3$locObj;
|
|
|
|
|
|
return (locObj || Locale.create(locale, numberingSystem, null)).weekdays(length);
|
|
|
}
|
|
|
/**
|
|
|
* Return an array of format week names.
|
|
|
* Format weekdays differ from standalone weekdays in that they're meant to appear next to more date information. In some languages, that
|
|
|
* changes the string.
|
|
|
* See {@link Info#weekdays}
|
|
|
* @param {string} [length='long'] - the length of the month representation, such as "narrow", "short", "long".
|
|
|
* @param {Object} opts - options
|
|
|
* @param {string} [opts.locale=null] - the locale code
|
|
|
* @param {string} [opts.numberingSystem=null] - the numbering system
|
|
|
* @param {string} [opts.locObj=null] - an existing locale object to use
|
|
|
* @return {Array}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
Info.weekdaysFormat = function weekdaysFormat(length, _temp4) {
|
|
|
if (length === void 0) {
|
|
|
length = "long";
|
|
|
}
|
|
|
|
|
|
var _ref4 = _temp4 === void 0 ? {} : _temp4,
|
|
|
_ref4$locale = _ref4.locale,
|
|
|
locale = _ref4$locale === void 0 ? null : _ref4$locale,
|
|
|
_ref4$numberingSystem = _ref4.numberingSystem,
|
|
|
numberingSystem = _ref4$numberingSystem === void 0 ? null : _ref4$numberingSystem,
|
|
|
_ref4$locObj = _ref4.locObj,
|
|
|
locObj = _ref4$locObj === void 0 ? null : _ref4$locObj;
|
|
|
|
|
|
return (locObj || Locale.create(locale, numberingSystem, null)).weekdays(length, true);
|
|
|
}
|
|
|
/**
|
|
|
* Return an array of meridiems.
|
|
|
* @param {Object} opts - options
|
|
|
* @param {string} [opts.locale] - the locale code
|
|
|
* @example Info.meridiems() //=> [ 'AM', 'PM' ]
|
|
|
* @example Info.meridiems({ locale: 'my' }) //=> [ 'နံနက်', 'ညနေ' ]
|
|
|
* @return {Array}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
Info.meridiems = function meridiems(_temp5) {
|
|
|
var _ref5 = _temp5 === void 0 ? {} : _temp5,
|
|
|
_ref5$locale = _ref5.locale,
|
|
|
locale = _ref5$locale === void 0 ? null : _ref5$locale;
|
|
|
|
|
|
return Locale.create(locale).meridiems();
|
|
|
}
|
|
|
/**
|
|
|
* Return an array of eras, such as ['BC', 'AD']. The locale can be specified, but the calendar system is always Gregorian.
|
|
|
* @param {string} [length='short'] - the length of the era representation, such as "short" or "long".
|
|
|
* @param {Object} opts - options
|
|
|
* @param {string} [opts.locale] - the locale code
|
|
|
* @example Info.eras() //=> [ 'BC', 'AD' ]
|
|
|
* @example Info.eras('long') //=> [ 'Before Christ', 'Anno Domini' ]
|
|
|
* @example Info.eras('long', { locale: 'fr' }) //=> [ 'avant Jésus-Christ', 'après Jésus-Christ' ]
|
|
|
* @return {Array}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
Info.eras = function eras(length, _temp6) {
|
|
|
if (length === void 0) {
|
|
|
length = "short";
|
|
|
}
|
|
|
|
|
|
var _ref6 = _temp6 === void 0 ? {} : _temp6,
|
|
|
_ref6$locale = _ref6.locale,
|
|
|
locale = _ref6$locale === void 0 ? null : _ref6$locale;
|
|
|
|
|
|
return Locale.create(locale, null, "gregory").eras(length);
|
|
|
}
|
|
|
/**
|
|
|
* Return the set of available features in this environment.
|
|
|
* Some features of Luxon are not available in all environments. For example, on older browsers, timezone support is not available. Use this function to figure out if that's the case.
|
|
|
* Keys:
|
|
|
* * `relative`: whether this environment supports relative time formatting
|
|
|
* @example Info.features() //=> { intl: true, intlTokens: false, zones: true, relative: false }
|
|
|
* @return {Object}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
Info.features = function features() {
|
|
|
return {
|
|
|
relative: hasRelative()
|
|
|
};
|
|
|
};
|
|
|
|
|
|
return Info;
|
|
|
}();
|
|
|
|
|
|
function dayDiff(earlier, later) {
|
|
|
var utcDayStart = function utcDayStart(dt) {
|
|
|
return dt.toUTC(0, {
|
|
|
keepLocalTime: true
|
|
|
}).startOf("day").valueOf();
|
|
|
},
|
|
|
ms = utcDayStart(later) - utcDayStart(earlier);
|
|
|
|
|
|
return Math.floor(Duration.fromMillis(ms).as("days"));
|
|
|
}
|
|
|
|
|
|
function highOrderDiffs(cursor, later, units) {
|
|
|
var differs = [["years", function (a, b) {
|
|
|
return b.year - a.year;
|
|
|
}], ["quarters", function (a, b) {
|
|
|
return b.quarter - a.quarter;
|
|
|
}], ["months", function (a, b) {
|
|
|
return b.month - a.month + (b.year - a.year) * 12;
|
|
|
}], ["weeks", function (a, b) {
|
|
|
var days = dayDiff(a, b);
|
|
|
return (days - days % 7) / 7;
|
|
|
}], ["days", dayDiff]];
|
|
|
var results = {};
|
|
|
var lowestOrder, highWater;
|
|
|
|
|
|
for (var _i = 0, _differs = differs; _i < _differs.length; _i++) {
|
|
|
var _differs$_i = _differs[_i],
|
|
|
unit = _differs$_i[0],
|
|
|
differ = _differs$_i[1];
|
|
|
|
|
|
if (units.indexOf(unit) >= 0) {
|
|
|
var _cursor$plus;
|
|
|
|
|
|
lowestOrder = unit;
|
|
|
var delta = differ(cursor, later);
|
|
|
highWater = cursor.plus((_cursor$plus = {}, _cursor$plus[unit] = delta, _cursor$plus));
|
|
|
|
|
|
if (highWater > later) {
|
|
|
var _cursor$plus2;
|
|
|
|
|
|
cursor = cursor.plus((_cursor$plus2 = {}, _cursor$plus2[unit] = delta - 1, _cursor$plus2));
|
|
|
delta -= 1;
|
|
|
} else {
|
|
|
cursor = highWater;
|
|
|
}
|
|
|
|
|
|
results[unit] = delta;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return [cursor, results, highWater, lowestOrder];
|
|
|
}
|
|
|
|
|
|
function _diff (earlier, later, units, opts) {
|
|
|
var _highOrderDiffs = highOrderDiffs(earlier, later, units),
|
|
|
cursor = _highOrderDiffs[0],
|
|
|
results = _highOrderDiffs[1],
|
|
|
highWater = _highOrderDiffs[2],
|
|
|
lowestOrder = _highOrderDiffs[3];
|
|
|
|
|
|
var remainingMillis = later - cursor;
|
|
|
var lowerOrderUnits = units.filter(function (u) {
|
|
|
return ["hours", "minutes", "seconds", "milliseconds"].indexOf(u) >= 0;
|
|
|
});
|
|
|
|
|
|
if (lowerOrderUnits.length === 0) {
|
|
|
if (highWater < later) {
|
|
|
var _cursor$plus3;
|
|
|
|
|
|
highWater = cursor.plus((_cursor$plus3 = {}, _cursor$plus3[lowestOrder] = 1, _cursor$plus3));
|
|
|
}
|
|
|
|
|
|
if (highWater !== cursor) {
|
|
|
results[lowestOrder] = (results[lowestOrder] || 0) + remainingMillis / (highWater - cursor);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var duration = Duration.fromObject(results, opts);
|
|
|
|
|
|
if (lowerOrderUnits.length > 0) {
|
|
|
var _Duration$fromMillis;
|
|
|
|
|
|
return (_Duration$fromMillis = Duration.fromMillis(remainingMillis, opts)).shiftTo.apply(_Duration$fromMillis, lowerOrderUnits).plus(duration);
|
|
|
} else {
|
|
|
return duration;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var numberingSystems = {
|
|
|
arab: "[\u0660-\u0669]",
|
|
|
arabext: "[\u06F0-\u06F9]",
|
|
|
bali: "[\u1B50-\u1B59]",
|
|
|
beng: "[\u09E6-\u09EF]",
|
|
|
deva: "[\u0966-\u096F]",
|
|
|
fullwide: "[\uFF10-\uFF19]",
|
|
|
gujr: "[\u0AE6-\u0AEF]",
|
|
|
hanidec: "[〇|一|二|三|四|五|六|七|八|九]",
|
|
|
khmr: "[\u17E0-\u17E9]",
|
|
|
knda: "[\u0CE6-\u0CEF]",
|
|
|
laoo: "[\u0ED0-\u0ED9]",
|
|
|
limb: "[\u1946-\u194F]",
|
|
|
mlym: "[\u0D66-\u0D6F]",
|
|
|
mong: "[\u1810-\u1819]",
|
|
|
mymr: "[\u1040-\u1049]",
|
|
|
orya: "[\u0B66-\u0B6F]",
|
|
|
tamldec: "[\u0BE6-\u0BEF]",
|
|
|
telu: "[\u0C66-\u0C6F]",
|
|
|
thai: "[\u0E50-\u0E59]",
|
|
|
tibt: "[\u0F20-\u0F29]",
|
|
|
latn: "\\d"
|
|
|
};
|
|
|
var numberingSystemsUTF16 = {
|
|
|
arab: [1632, 1641],
|
|
|
arabext: [1776, 1785],
|
|
|
bali: [6992, 7001],
|
|
|
beng: [2534, 2543],
|
|
|
deva: [2406, 2415],
|
|
|
fullwide: [65296, 65303],
|
|
|
gujr: [2790, 2799],
|
|
|
khmr: [6112, 6121],
|
|
|
knda: [3302, 3311],
|
|
|
laoo: [3792, 3801],
|
|
|
limb: [6470, 6479],
|
|
|
mlym: [3430, 3439],
|
|
|
mong: [6160, 6169],
|
|
|
mymr: [4160, 4169],
|
|
|
orya: [2918, 2927],
|
|
|
tamldec: [3046, 3055],
|
|
|
telu: [3174, 3183],
|
|
|
thai: [3664, 3673],
|
|
|
tibt: [3872, 3881]
|
|
|
};
|
|
|
var hanidecChars = numberingSystems.hanidec.replace(/[\[|\]]/g, "").split("");
|
|
|
function parseDigits(str) {
|
|
|
var value = parseInt(str, 10);
|
|
|
|
|
|
if (isNaN(value)) {
|
|
|
value = "";
|
|
|
|
|
|
for (var i = 0; i < str.length; i++) {
|
|
|
var code = str.charCodeAt(i);
|
|
|
|
|
|
if (str[i].search(numberingSystems.hanidec) !== -1) {
|
|
|
value += hanidecChars.indexOf(str[i]);
|
|
|
} else {
|
|
|
for (var key in numberingSystemsUTF16) {
|
|
|
var _numberingSystemsUTF = numberingSystemsUTF16[key],
|
|
|
min = _numberingSystemsUTF[0],
|
|
|
max = _numberingSystemsUTF[1];
|
|
|
|
|
|
if (code >= min && code <= max) {
|
|
|
value += code - min;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return parseInt(value, 10);
|
|
|
} else {
|
|
|
return value;
|
|
|
}
|
|
|
}
|
|
|
function digitRegex(_ref, append) {
|
|
|
var numberingSystem = _ref.numberingSystem;
|
|
|
|
|
|
if (append === void 0) {
|
|
|
append = "";
|
|
|
}
|
|
|
|
|
|
return new RegExp("" + numberingSystems[numberingSystem || "latn"] + append);
|
|
|
}
|
|
|
|
|
|
var MISSING_FTP = "missing Intl.DateTimeFormat.formatToParts support";
|
|
|
|
|
|
function intUnit(regex, post) {
|
|
|
if (post === void 0) {
|
|
|
post = function post(i) {
|
|
|
return i;
|
|
|
};
|
|
|
}
|
|
|
|
|
|
return {
|
|
|
regex: regex,
|
|
|
deser: function deser(_ref) {
|
|
|
var s = _ref[0];
|
|
|
return post(parseDigits(s));
|
|
|
}
|
|
|
};
|
|
|
}
|
|
|
|
|
|
var NBSP = String.fromCharCode(160);
|
|
|
var spaceOrNBSP = "( |" + NBSP + ")";
|
|
|
var spaceOrNBSPRegExp = new RegExp(spaceOrNBSP, "g");
|
|
|
|
|
|
function fixListRegex(s) {
|
|
|
// make dots optional and also make them literal
|
|
|
// make space and non breakable space characters interchangeable
|
|
|
return s.replace(/\./g, "\\.?").replace(spaceOrNBSPRegExp, spaceOrNBSP);
|
|
|
}
|
|
|
|
|
|
function stripInsensitivities(s) {
|
|
|
return s.replace(/\./g, "") // ignore dots that were made optional
|
|
|
.replace(spaceOrNBSPRegExp, " ") // interchange space and nbsp
|
|
|
.toLowerCase();
|
|
|
}
|
|
|
|
|
|
function oneOf(strings, startIndex) {
|
|
|
if (strings === null) {
|
|
|
return null;
|
|
|
} else {
|
|
|
return {
|
|
|
regex: RegExp(strings.map(fixListRegex).join("|")),
|
|
|
deser: function deser(_ref2) {
|
|
|
var s = _ref2[0];
|
|
|
return strings.findIndex(function (i) {
|
|
|
return stripInsensitivities(s) === stripInsensitivities(i);
|
|
|
}) + startIndex;
|
|
|
}
|
|
|
};
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function offset(regex, groups) {
|
|
|
return {
|
|
|
regex: regex,
|
|
|
deser: function deser(_ref3) {
|
|
|
var h = _ref3[1],
|
|
|
m = _ref3[2];
|
|
|
return signedOffset(h, m);
|
|
|
},
|
|
|
groups: groups
|
|
|
};
|
|
|
}
|
|
|
|
|
|
function simple(regex) {
|
|
|
return {
|
|
|
regex: regex,
|
|
|
deser: function deser(_ref4) {
|
|
|
var s = _ref4[0];
|
|
|
return s;
|
|
|
}
|
|
|
};
|
|
|
}
|
|
|
|
|
|
function escapeToken(value) {
|
|
|
return value.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
|
|
|
}
|
|
|
|
|
|
function unitForToken(token, loc) {
|
|
|
var one = digitRegex(loc),
|
|
|
two = digitRegex(loc, "{2}"),
|
|
|
three = digitRegex(loc, "{3}"),
|
|
|
four = digitRegex(loc, "{4}"),
|
|
|
six = digitRegex(loc, "{6}"),
|
|
|
oneOrTwo = digitRegex(loc, "{1,2}"),
|
|
|
oneToThree = digitRegex(loc, "{1,3}"),
|
|
|
oneToSix = digitRegex(loc, "{1,6}"),
|
|
|
oneToNine = digitRegex(loc, "{1,9}"),
|
|
|
twoToFour = digitRegex(loc, "{2,4}"),
|
|
|
fourToSix = digitRegex(loc, "{4,6}"),
|
|
|
literal = function literal(t) {
|
|
|
return {
|
|
|
regex: RegExp(escapeToken(t.val)),
|
|
|
deser: function deser(_ref5) {
|
|
|
var s = _ref5[0];
|
|
|
return s;
|
|
|
},
|
|
|
literal: true
|
|
|
};
|
|
|
},
|
|
|
unitate = function unitate(t) {
|
|
|
if (token.literal) {
|
|
|
return literal(t);
|
|
|
}
|
|
|
|
|
|
switch (t.val) {
|
|
|
// era
|
|
|
case "G":
|
|
|
return oneOf(loc.eras("short", false), 0);
|
|
|
|
|
|
case "GG":
|
|
|
return oneOf(loc.eras("long", false), 0);
|
|
|
// years
|
|
|
|
|
|
case "y":
|
|
|
return intUnit(oneToSix);
|
|
|
|
|
|
case "yy":
|
|
|
return intUnit(twoToFour, untruncateYear);
|
|
|
|
|
|
case "yyyy":
|
|
|
return intUnit(four);
|
|
|
|
|
|
case "yyyyy":
|
|
|
return intUnit(fourToSix);
|
|
|
|
|
|
case "yyyyyy":
|
|
|
return intUnit(six);
|
|
|
// months
|
|
|
|
|
|
case "M":
|
|
|
return intUnit(oneOrTwo);
|
|
|
|
|
|
case "MM":
|
|
|
return intUnit(two);
|
|
|
|
|
|
case "MMM":
|
|
|
return oneOf(loc.months("short", true, false), 1);
|
|
|
|
|
|
case "MMMM":
|
|
|
return oneOf(loc.months("long", true, false), 1);
|
|
|
|
|
|
case "L":
|
|
|
return intUnit(oneOrTwo);
|
|
|
|
|
|
case "LL":
|
|
|
return intUnit(two);
|
|
|
|
|
|
case "LLL":
|
|
|
return oneOf(loc.months("short", false, false), 1);
|
|
|
|
|
|
case "LLLL":
|
|
|
return oneOf(loc.months("long", false, false), 1);
|
|
|
// dates
|
|
|
|
|
|
case "d":
|
|
|
return intUnit(oneOrTwo);
|
|
|
|
|
|
case "dd":
|
|
|
return intUnit(two);
|
|
|
// ordinals
|
|
|
|
|
|
case "o":
|
|
|
return intUnit(oneToThree);
|
|
|
|
|
|
case "ooo":
|
|
|
return intUnit(three);
|
|
|
// time
|
|
|
|
|
|
case "HH":
|
|
|
return intUnit(two);
|
|
|
|
|
|
case "H":
|
|
|
return intUnit(oneOrTwo);
|
|
|
|
|
|
case "hh":
|
|
|
return intUnit(two);
|
|
|
|
|
|
case "h":
|
|
|
return intUnit(oneOrTwo);
|
|
|
|
|
|
case "mm":
|
|
|
return intUnit(two);
|
|
|
|
|
|
case "m":
|
|
|
return intUnit(oneOrTwo);
|
|
|
|
|
|
case "q":
|
|
|
return intUnit(oneOrTwo);
|
|
|
|
|
|
case "qq":
|
|
|
return intUnit(two);
|
|
|
|
|
|
case "s":
|
|
|
return intUnit(oneOrTwo);
|
|
|
|
|
|
case "ss":
|
|
|
return intUnit(two);
|
|
|
|
|
|
case "S":
|
|
|
return intUnit(oneToThree);
|
|
|
|
|
|
case "SSS":
|
|
|
return intUnit(three);
|
|
|
|
|
|
case "u":
|
|
|
return simple(oneToNine);
|
|
|
// meridiem
|
|
|
|
|
|
case "a":
|
|
|
return oneOf(loc.meridiems(), 0);
|
|
|
// weekYear (k)
|
|
|
|
|
|
case "kkkk":
|
|
|
return intUnit(four);
|
|
|
|
|
|
case "kk":
|
|
|
return intUnit(twoToFour, untruncateYear);
|
|
|
// weekNumber (W)
|
|
|
|
|
|
case "W":
|
|
|
return intUnit(oneOrTwo);
|
|
|
|
|
|
case "WW":
|
|
|
return intUnit(two);
|
|
|
// weekdays
|
|
|
|
|
|
case "E":
|
|
|
case "c":
|
|
|
return intUnit(one);
|
|
|
|
|
|
case "EEE":
|
|
|
return oneOf(loc.weekdays("short", false, false), 1);
|
|
|
|
|
|
case "EEEE":
|
|
|
return oneOf(loc.weekdays("long", false, false), 1);
|
|
|
|
|
|
case "ccc":
|
|
|
return oneOf(loc.weekdays("short", true, false), 1);
|
|
|
|
|
|
case "cccc":
|
|
|
return oneOf(loc.weekdays("long", true, false), 1);
|
|
|
// offset/zone
|
|
|
|
|
|
case "Z":
|
|
|
case "ZZ":
|
|
|
return offset(new RegExp("([+-]" + oneOrTwo.source + ")(?::(" + two.source + "))?"), 2);
|
|
|
|
|
|
case "ZZZ":
|
|
|
return offset(new RegExp("([+-]" + oneOrTwo.source + ")(" + two.source + ")?"), 2);
|
|
|
// we don't support ZZZZ (PST) or ZZZZZ (Pacific Standard Time) in parsing
|
|
|
// because we don't have any way to figure out what they are
|
|
|
|
|
|
case "z":
|
|
|
return simple(/[a-z_+-/]{1,256}?/i);
|
|
|
|
|
|
default:
|
|
|
return literal(t);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
var unit = unitate(token) || {
|
|
|
invalidReason: MISSING_FTP
|
|
|
};
|
|
|
unit.token = token;
|
|
|
return unit;
|
|
|
}
|
|
|
|
|
|
var partTypeStyleToTokenVal = {
|
|
|
year: {
|
|
|
"2-digit": "yy",
|
|
|
numeric: "yyyyy"
|
|
|
},
|
|
|
month: {
|
|
|
numeric: "M",
|
|
|
"2-digit": "MM",
|
|
|
short: "MMM",
|
|
|
long: "MMMM"
|
|
|
},
|
|
|
day: {
|
|
|
numeric: "d",
|
|
|
"2-digit": "dd"
|
|
|
},
|
|
|
weekday: {
|
|
|
short: "EEE",
|
|
|
long: "EEEE"
|
|
|
},
|
|
|
dayperiod: "a",
|
|
|
dayPeriod: "a",
|
|
|
hour: {
|
|
|
numeric: "h",
|
|
|
"2-digit": "hh"
|
|
|
},
|
|
|
minute: {
|
|
|
numeric: "m",
|
|
|
"2-digit": "mm"
|
|
|
},
|
|
|
second: {
|
|
|
numeric: "s",
|
|
|
"2-digit": "ss"
|
|
|
}
|
|
|
};
|
|
|
|
|
|
function tokenForPart(part, locale, formatOpts) {
|
|
|
var type = part.type,
|
|
|
value = part.value;
|
|
|
|
|
|
if (type === "literal") {
|
|
|
return {
|
|
|
literal: true,
|
|
|
val: value
|
|
|
};
|
|
|
}
|
|
|
|
|
|
var style = formatOpts[type];
|
|
|
var val = partTypeStyleToTokenVal[type];
|
|
|
|
|
|
if (typeof val === "object") {
|
|
|
val = val[style];
|
|
|
}
|
|
|
|
|
|
if (val) {
|
|
|
return {
|
|
|
literal: false,
|
|
|
val: val
|
|
|
};
|
|
|
}
|
|
|
|
|
|
return undefined;
|
|
|
}
|
|
|
|
|
|
function buildRegex(units) {
|
|
|
var re = units.map(function (u) {
|
|
|
return u.regex;
|
|
|
}).reduce(function (f, r) {
|
|
|
return f + "(" + r.source + ")";
|
|
|
}, "");
|
|
|
return ["^" + re + "$", units];
|
|
|
}
|
|
|
|
|
|
function match(input, regex, handlers) {
|
|
|
var matches = input.match(regex);
|
|
|
|
|
|
if (matches) {
|
|
|
var all = {};
|
|
|
var matchIndex = 1;
|
|
|
|
|
|
for (var i in handlers) {
|
|
|
if (hasOwnProperty(handlers, i)) {
|
|
|
var h = handlers[i],
|
|
|
groups = h.groups ? h.groups + 1 : 1;
|
|
|
|
|
|
if (!h.literal && h.token) {
|
|
|
all[h.token.val[0]] = h.deser(matches.slice(matchIndex, matchIndex + groups));
|
|
|
}
|
|
|
|
|
|
matchIndex += groups;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return [matches, all];
|
|
|
} else {
|
|
|
return [matches, {}];
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function dateTimeFromMatches(matches) {
|
|
|
var toField = function toField(token) {
|
|
|
switch (token) {
|
|
|
case "S":
|
|
|
return "millisecond";
|
|
|
|
|
|
case "s":
|
|
|
return "second";
|
|
|
|
|
|
case "m":
|
|
|
return "minute";
|
|
|
|
|
|
case "h":
|
|
|
case "H":
|
|
|
return "hour";
|
|
|
|
|
|
case "d":
|
|
|
return "day";
|
|
|
|
|
|
case "o":
|
|
|
return "ordinal";
|
|
|
|
|
|
case "L":
|
|
|
case "M":
|
|
|
return "month";
|
|
|
|
|
|
case "y":
|
|
|
return "year";
|
|
|
|
|
|
case "E":
|
|
|
case "c":
|
|
|
return "weekday";
|
|
|
|
|
|
case "W":
|
|
|
return "weekNumber";
|
|
|
|
|
|
case "k":
|
|
|
return "weekYear";
|
|
|
|
|
|
case "q":
|
|
|
return "quarter";
|
|
|
|
|
|
default:
|
|
|
return null;
|
|
|
}
|
|
|
};
|
|
|
|
|
|
var zone;
|
|
|
|
|
|
if (!isUndefined(matches.Z)) {
|
|
|
zone = new FixedOffsetZone(matches.Z);
|
|
|
} else if (!isUndefined(matches.z)) {
|
|
|
zone = IANAZone.create(matches.z);
|
|
|
} else {
|
|
|
zone = null;
|
|
|
}
|
|
|
|
|
|
if (!isUndefined(matches.q)) {
|
|
|
matches.M = (matches.q - 1) * 3 + 1;
|
|
|
}
|
|
|
|
|
|
if (!isUndefined(matches.h)) {
|
|
|
if (matches.h < 12 && matches.a === 1) {
|
|
|
matches.h += 12;
|
|
|
} else if (matches.h === 12 && matches.a === 0) {
|
|
|
matches.h = 0;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if (matches.G === 0 && matches.y) {
|
|
|
matches.y = -matches.y;
|
|
|
}
|
|
|
|
|
|
if (!isUndefined(matches.u)) {
|
|
|
matches.S = parseMillis(matches.u);
|
|
|
}
|
|
|
|
|
|
var vals = Object.keys(matches).reduce(function (r, k) {
|
|
|
var f = toField(k);
|
|
|
|
|
|
if (f) {
|
|
|
r[f] = matches[k];
|
|
|
}
|
|
|
|
|
|
return r;
|
|
|
}, {});
|
|
|
return [vals, zone];
|
|
|
}
|
|
|
|
|
|
var dummyDateTimeCache = null;
|
|
|
|
|
|
function getDummyDateTime() {
|
|
|
if (!dummyDateTimeCache) {
|
|
|
dummyDateTimeCache = DateTime.fromMillis(1555555555555);
|
|
|
}
|
|
|
|
|
|
return dummyDateTimeCache;
|
|
|
}
|
|
|
|
|
|
function maybeExpandMacroToken(token, locale) {
|
|
|
if (token.literal) {
|
|
|
return token;
|
|
|
}
|
|
|
|
|
|
var formatOpts = Formatter.macroTokenToFormatOpts(token.val);
|
|
|
|
|
|
if (!formatOpts) {
|
|
|
return token;
|
|
|
}
|
|
|
|
|
|
var formatter = Formatter.create(locale, formatOpts);
|
|
|
var parts = formatter.formatDateTimeParts(getDummyDateTime());
|
|
|
var tokens = parts.map(function (p) {
|
|
|
return tokenForPart(p, locale, formatOpts);
|
|
|
});
|
|
|
|
|
|
if (tokens.includes(undefined)) {
|
|
|
return token;
|
|
|
}
|
|
|
|
|
|
return tokens;
|
|
|
}
|
|
|
|
|
|
function expandMacroTokens(tokens, locale) {
|
|
|
var _Array$prototype;
|
|
|
|
|
|
return (_Array$prototype = Array.prototype).concat.apply(_Array$prototype, tokens.map(function (t) {
|
|
|
return maybeExpandMacroToken(t, locale);
|
|
|
}));
|
|
|
}
|
|
|
/**
|
|
|
* @private
|
|
|
*/
|
|
|
|
|
|
|
|
|
function explainFromTokens(locale, input, format) {
|
|
|
var tokens = expandMacroTokens(Formatter.parseFormat(format), locale),
|
|
|
units = tokens.map(function (t) {
|
|
|
return unitForToken(t, locale);
|
|
|
}),
|
|
|
disqualifyingUnit = units.find(function (t) {
|
|
|
return t.invalidReason;
|
|
|
});
|
|
|
|
|
|
if (disqualifyingUnit) {
|
|
|
return {
|
|
|
input: input,
|
|
|
tokens: tokens,
|
|
|
invalidReason: disqualifyingUnit.invalidReason
|
|
|
};
|
|
|
} else {
|
|
|
var _buildRegex = buildRegex(units),
|
|
|
regexString = _buildRegex[0],
|
|
|
handlers = _buildRegex[1],
|
|
|
regex = RegExp(regexString, "i"),
|
|
|
_match = match(input, regex, handlers),
|
|
|
rawMatches = _match[0],
|
|
|
matches = _match[1],
|
|
|
_ref6 = matches ? dateTimeFromMatches(matches) : [null, null],
|
|
|
result = _ref6[0],
|
|
|
zone = _ref6[1];
|
|
|
|
|
|
if (hasOwnProperty(matches, "a") && hasOwnProperty(matches, "H")) {
|
|
|
throw new ConflictingSpecificationError("Can't include meridiem when specifying 24-hour format");
|
|
|
}
|
|
|
|
|
|
return {
|
|
|
input: input,
|
|
|
tokens: tokens,
|
|
|
regex: regex,
|
|
|
rawMatches: rawMatches,
|
|
|
matches: matches,
|
|
|
result: result,
|
|
|
zone: zone
|
|
|
};
|
|
|
}
|
|
|
}
|
|
|
function parseFromTokens(locale, input, format) {
|
|
|
var _explainFromTokens = explainFromTokens(locale, input, format),
|
|
|
result = _explainFromTokens.result,
|
|
|
zone = _explainFromTokens.zone,
|
|
|
invalidReason = _explainFromTokens.invalidReason;
|
|
|
|
|
|
return [result, zone, invalidReason];
|
|
|
}
|
|
|
|
|
|
var nonLeapLadder = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334],
|
|
|
leapLadder = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335];
|
|
|
|
|
|
function unitOutOfRange(unit, value) {
|
|
|
return new Invalid("unit out of range", "you specified " + value + " (of type " + typeof value + ") as a " + unit + ", which is invalid");
|
|
|
}
|
|
|
|
|
|
function dayOfWeek(year, month, day) {
|
|
|
var js = new Date(Date.UTC(year, month - 1, day)).getUTCDay();
|
|
|
return js === 0 ? 7 : js;
|
|
|
}
|
|
|
|
|
|
function computeOrdinal(year, month, day) {
|
|
|
return day + (isLeapYear(year) ? leapLadder : nonLeapLadder)[month - 1];
|
|
|
}
|
|
|
|
|
|
function uncomputeOrdinal(year, ordinal) {
|
|
|
var table = isLeapYear(year) ? leapLadder : nonLeapLadder,
|
|
|
month0 = table.findIndex(function (i) {
|
|
|
return i < ordinal;
|
|
|
}),
|
|
|
day = ordinal - table[month0];
|
|
|
return {
|
|
|
month: month0 + 1,
|
|
|
day: day
|
|
|
};
|
|
|
}
|
|
|
/**
|
|
|
* @private
|
|
|
*/
|
|
|
|
|
|
|
|
|
function gregorianToWeek(gregObj) {
|
|
|
var year = gregObj.year,
|
|
|
month = gregObj.month,
|
|
|
day = gregObj.day,
|
|
|
ordinal = computeOrdinal(year, month, day),
|
|
|
weekday = dayOfWeek(year, month, day);
|
|
|
var weekNumber = Math.floor((ordinal - weekday + 10) / 7),
|
|
|
weekYear;
|
|
|
|
|
|
if (weekNumber < 1) {
|
|
|
weekYear = year - 1;
|
|
|
weekNumber = weeksInWeekYear(weekYear);
|
|
|
} else if (weekNumber > weeksInWeekYear(year)) {
|
|
|
weekYear = year + 1;
|
|
|
weekNumber = 1;
|
|
|
} else {
|
|
|
weekYear = year;
|
|
|
}
|
|
|
|
|
|
return _extends({
|
|
|
weekYear: weekYear,
|
|
|
weekNumber: weekNumber,
|
|
|
weekday: weekday
|
|
|
}, timeObject(gregObj));
|
|
|
}
|
|
|
function weekToGregorian(weekData) {
|
|
|
var weekYear = weekData.weekYear,
|
|
|
weekNumber = weekData.weekNumber,
|
|
|
weekday = weekData.weekday,
|
|
|
weekdayOfJan4 = dayOfWeek(weekYear, 1, 4),
|
|
|
yearInDays = daysInYear(weekYear);
|
|
|
var ordinal = weekNumber * 7 + weekday - weekdayOfJan4 - 3,
|
|
|
year;
|
|
|
|
|
|
if (ordinal < 1) {
|
|
|
year = weekYear - 1;
|
|
|
ordinal += daysInYear(year);
|
|
|
} else if (ordinal > yearInDays) {
|
|
|
year = weekYear + 1;
|
|
|
ordinal -= daysInYear(weekYear);
|
|
|
} else {
|
|
|
year = weekYear;
|
|
|
}
|
|
|
|
|
|
var _uncomputeOrdinal = uncomputeOrdinal(year, ordinal),
|
|
|
month = _uncomputeOrdinal.month,
|
|
|
day = _uncomputeOrdinal.day;
|
|
|
|
|
|
return _extends({
|
|
|
year: year,
|
|
|
month: month,
|
|
|
day: day
|
|
|
}, timeObject(weekData));
|
|
|
}
|
|
|
function gregorianToOrdinal(gregData) {
|
|
|
var year = gregData.year,
|
|
|
month = gregData.month,
|
|
|
day = gregData.day;
|
|
|
var ordinal = computeOrdinal(year, month, day);
|
|
|
return _extends({
|
|
|
year: year,
|
|
|
ordinal: ordinal
|
|
|
}, timeObject(gregData));
|
|
|
}
|
|
|
function ordinalToGregorian(ordinalData) {
|
|
|
var year = ordinalData.year,
|
|
|
ordinal = ordinalData.ordinal;
|
|
|
|
|
|
var _uncomputeOrdinal2 = uncomputeOrdinal(year, ordinal),
|
|
|
month = _uncomputeOrdinal2.month,
|
|
|
day = _uncomputeOrdinal2.day;
|
|
|
|
|
|
return _extends({
|
|
|
year: year,
|
|
|
month: month,
|
|
|
day: day
|
|
|
}, timeObject(ordinalData));
|
|
|
}
|
|
|
function hasInvalidWeekData(obj) {
|
|
|
var validYear = isInteger(obj.weekYear),
|
|
|
validWeek = integerBetween(obj.weekNumber, 1, weeksInWeekYear(obj.weekYear)),
|
|
|
validWeekday = integerBetween(obj.weekday, 1, 7);
|
|
|
|
|
|
if (!validYear) {
|
|
|
return unitOutOfRange("weekYear", obj.weekYear);
|
|
|
} else if (!validWeek) {
|
|
|
return unitOutOfRange("week", obj.week);
|
|
|
} else if (!validWeekday) {
|
|
|
return unitOutOfRange("weekday", obj.weekday);
|
|
|
} else return false;
|
|
|
}
|
|
|
function hasInvalidOrdinalData(obj) {
|
|
|
var validYear = isInteger(obj.year),
|
|
|
validOrdinal = integerBetween(obj.ordinal, 1, daysInYear(obj.year));
|
|
|
|
|
|
if (!validYear) {
|
|
|
return unitOutOfRange("year", obj.year);
|
|
|
} else if (!validOrdinal) {
|
|
|
return unitOutOfRange("ordinal", obj.ordinal);
|
|
|
} else return false;
|
|
|
}
|
|
|
function hasInvalidGregorianData(obj) {
|
|
|
var validYear = isInteger(obj.year),
|
|
|
validMonth = integerBetween(obj.month, 1, 12),
|
|
|
validDay = integerBetween(obj.day, 1, daysInMonth(obj.year, obj.month));
|
|
|
|
|
|
if (!validYear) {
|
|
|
return unitOutOfRange("year", obj.year);
|
|
|
} else if (!validMonth) {
|
|
|
return unitOutOfRange("month", obj.month);
|
|
|
} else if (!validDay) {
|
|
|
return unitOutOfRange("day", obj.day);
|
|
|
} else return false;
|
|
|
}
|
|
|
function hasInvalidTimeData(obj) {
|
|
|
var hour = obj.hour,
|
|
|
minute = obj.minute,
|
|
|
second = obj.second,
|
|
|
millisecond = obj.millisecond;
|
|
|
var validHour = integerBetween(hour, 0, 23) || hour === 24 && minute === 0 && second === 0 && millisecond === 0,
|
|
|
validMinute = integerBetween(minute, 0, 59),
|
|
|
validSecond = integerBetween(second, 0, 59),
|
|
|
validMillisecond = integerBetween(millisecond, 0, 999);
|
|
|
|
|
|
if (!validHour) {
|
|
|
return unitOutOfRange("hour", hour);
|
|
|
} else if (!validMinute) {
|
|
|
return unitOutOfRange("minute", minute);
|
|
|
} else if (!validSecond) {
|
|
|
return unitOutOfRange("second", second);
|
|
|
} else if (!validMillisecond) {
|
|
|
return unitOutOfRange("millisecond", millisecond);
|
|
|
} else return false;
|
|
|
}
|
|
|
|
|
|
var INVALID = "Invalid DateTime";
|
|
|
var MAX_DATE = 8.64e15;
|
|
|
|
|
|
function unsupportedZone(zone) {
|
|
|
return new Invalid("unsupported zone", "the zone \"" + zone.name + "\" is not supported");
|
|
|
} // we cache week data on the DT object and this intermediates the cache
|
|
|
|
|
|
|
|
|
function possiblyCachedWeekData(dt) {
|
|
|
if (dt.weekData === null) {
|
|
|
dt.weekData = gregorianToWeek(dt.c);
|
|
|
}
|
|
|
|
|
|
return dt.weekData;
|
|
|
} // clone really means, "make a new object with these modifications". all "setters" really use this
|
|
|
// to create a new object while only changing some of the properties
|
|
|
|
|
|
|
|
|
function clone(inst, alts) {
|
|
|
var current = {
|
|
|
ts: inst.ts,
|
|
|
zone: inst.zone,
|
|
|
c: inst.c,
|
|
|
o: inst.o,
|
|
|
loc: inst.loc,
|
|
|
invalid: inst.invalid
|
|
|
};
|
|
|
return new DateTime(_extends({}, current, alts, {
|
|
|
old: current
|
|
|
}));
|
|
|
} // find the right offset a given local time. The o input is our guess, which determines which
|
|
|
// offset we'll pick in ambiguous cases (e.g. there are two 3 AMs b/c Fallback DST)
|
|
|
|
|
|
|
|
|
function fixOffset(localTS, o, tz) {
|
|
|
// Our UTC time is just a guess because our offset is just a guess
|
|
|
var utcGuess = localTS - o * 60 * 1000; // Test whether the zone matches the offset for this ts
|
|
|
|
|
|
var o2 = tz.offset(utcGuess); // If so, offset didn't change and we're done
|
|
|
|
|
|
if (o === o2) {
|
|
|
return [utcGuess, o];
|
|
|
} // If not, change the ts by the difference in the offset
|
|
|
|
|
|
|
|
|
utcGuess -= (o2 - o) * 60 * 1000; // If that gives us the local time we want, we're done
|
|
|
|
|
|
var o3 = tz.offset(utcGuess);
|
|
|
|
|
|
if (o2 === o3) {
|
|
|
return [utcGuess, o2];
|
|
|
} // If it's different, we're in a hole time. The offset has changed, but the we don't adjust the time
|
|
|
|
|
|
|
|
|
return [localTS - Math.min(o2, o3) * 60 * 1000, Math.max(o2, o3)];
|
|
|
} // convert an epoch timestamp into a calendar object with the given offset
|
|
|
|
|
|
|
|
|
function tsToObj(ts, offset) {
|
|
|
ts += offset * 60 * 1000;
|
|
|
var d = new Date(ts);
|
|
|
return {
|
|
|
year: d.getUTCFullYear(),
|
|
|
month: d.getUTCMonth() + 1,
|
|
|
day: d.getUTCDate(),
|
|
|
hour: d.getUTCHours(),
|
|
|
minute: d.getUTCMinutes(),
|
|
|
second: d.getUTCSeconds(),
|
|
|
millisecond: d.getUTCMilliseconds()
|
|
|
};
|
|
|
} // convert a calendar object to a epoch timestamp
|
|
|
|
|
|
|
|
|
function objToTS(obj, offset, zone) {
|
|
|
return fixOffset(objToLocalTS(obj), offset, zone);
|
|
|
} // create a new DT instance by adding a duration, adjusting for DSTs
|
|
|
|
|
|
|
|
|
function adjustTime(inst, dur) {
|
|
|
var oPre = inst.o,
|
|
|
year = inst.c.year + Math.trunc(dur.years),
|
|
|
month = inst.c.month + Math.trunc(dur.months) + Math.trunc(dur.quarters) * 3,
|
|
|
c = _extends({}, inst.c, {
|
|
|
year: year,
|
|
|
month: month,
|
|
|
day: Math.min(inst.c.day, daysInMonth(year, month)) + Math.trunc(dur.days) + Math.trunc(dur.weeks) * 7
|
|
|
}),
|
|
|
millisToAdd = Duration.fromObject({
|
|
|
years: dur.years - Math.trunc(dur.years),
|
|
|
quarters: dur.quarters - Math.trunc(dur.quarters),
|
|
|
months: dur.months - Math.trunc(dur.months),
|
|
|
weeks: dur.weeks - Math.trunc(dur.weeks),
|
|
|
days: dur.days - Math.trunc(dur.days),
|
|
|
hours: dur.hours,
|
|
|
minutes: dur.minutes,
|
|
|
seconds: dur.seconds,
|
|
|
milliseconds: dur.milliseconds
|
|
|
}).as("milliseconds"),
|
|
|
localTS = objToLocalTS(c);
|
|
|
|
|
|
var _fixOffset = fixOffset(localTS, oPre, inst.zone),
|
|
|
ts = _fixOffset[0],
|
|
|
o = _fixOffset[1];
|
|
|
|
|
|
if (millisToAdd !== 0) {
|
|
|
ts += millisToAdd; // that could have changed the offset by going over a DST, but we want to keep the ts the same
|
|
|
|
|
|
o = inst.zone.offset(ts);
|
|
|
}
|
|
|
|
|
|
return {
|
|
|
ts: ts,
|
|
|
o: o
|
|
|
};
|
|
|
} // helper useful in turning the results of parsing into real dates
|
|
|
// by handling the zone options
|
|
|
|
|
|
|
|
|
function parseDataToDateTime(parsed, parsedZone, opts, format, text) {
|
|
|
var setZone = opts.setZone,
|
|
|
zone = opts.zone;
|
|
|
|
|
|
if (parsed && Object.keys(parsed).length !== 0) {
|
|
|
var interpretationZone = parsedZone || zone,
|
|
|
inst = DateTime.fromObject(parsed, _extends({}, opts, {
|
|
|
zone: interpretationZone
|
|
|
}));
|
|
|
return setZone ? inst : inst.setZone(zone);
|
|
|
} else {
|
|
|
return DateTime.invalid(new Invalid("unparsable", "the input \"" + text + "\" can't be parsed as " + format));
|
|
|
}
|
|
|
} // if you want to output a technical format (e.g. RFC 2822), this helper
|
|
|
// helps handle the details
|
|
|
|
|
|
|
|
|
function toTechFormat(dt, format, allowZ) {
|
|
|
if (allowZ === void 0) {
|
|
|
allowZ = true;
|
|
|
}
|
|
|
|
|
|
return dt.isValid ? Formatter.create(Locale.create("en-US"), {
|
|
|
allowZ: allowZ,
|
|
|
forceSimple: true
|
|
|
}).formatDateTimeFromString(dt, format) : null;
|
|
|
} // technical time formats (e.g. the time part of ISO 8601), take some options
|
|
|
// and this commonizes their handling
|
|
|
|
|
|
|
|
|
function toTechTimeFormat(dt, _ref) {
|
|
|
var _ref$suppressSeconds = _ref.suppressSeconds,
|
|
|
suppressSeconds = _ref$suppressSeconds === void 0 ? false : _ref$suppressSeconds,
|
|
|
_ref$suppressMillisec = _ref.suppressMilliseconds,
|
|
|
suppressMilliseconds = _ref$suppressMillisec === void 0 ? false : _ref$suppressMillisec,
|
|
|
includeOffset = _ref.includeOffset,
|
|
|
_ref$includePrefix = _ref.includePrefix,
|
|
|
includePrefix = _ref$includePrefix === void 0 ? false : _ref$includePrefix,
|
|
|
_ref$includeZone = _ref.includeZone,
|
|
|
includeZone = _ref$includeZone === void 0 ? false : _ref$includeZone,
|
|
|
_ref$spaceZone = _ref.spaceZone,
|
|
|
spaceZone = _ref$spaceZone === void 0 ? false : _ref$spaceZone,
|
|
|
_ref$format = _ref.format,
|
|
|
format = _ref$format === void 0 ? "extended" : _ref$format;
|
|
|
var fmt = format === "basic" ? "HHmm" : "HH:mm";
|
|
|
|
|
|
if (!suppressSeconds || dt.second !== 0 || dt.millisecond !== 0) {
|
|
|
fmt += format === "basic" ? "ss" : ":ss";
|
|
|
|
|
|
if (!suppressMilliseconds || dt.millisecond !== 0) {
|
|
|
fmt += ".SSS";
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if ((includeZone || includeOffset) && spaceZone) {
|
|
|
fmt += " ";
|
|
|
}
|
|
|
|
|
|
if (includeZone) {
|
|
|
fmt += "z";
|
|
|
} else if (includeOffset) {
|
|
|
fmt += format === "basic" ? "ZZZ" : "ZZ";
|
|
|
}
|
|
|
|
|
|
var str = toTechFormat(dt, fmt);
|
|
|
|
|
|
if (includePrefix) {
|
|
|
str = "T" + str;
|
|
|
}
|
|
|
|
|
|
return str;
|
|
|
} // defaults for unspecified units in the supported calendars
|
|
|
|
|
|
|
|
|
var defaultUnitValues = {
|
|
|
month: 1,
|
|
|
day: 1,
|
|
|
hour: 0,
|
|
|
minute: 0,
|
|
|
second: 0,
|
|
|
millisecond: 0
|
|
|
},
|
|
|
defaultWeekUnitValues = {
|
|
|
weekNumber: 1,
|
|
|
weekday: 1,
|
|
|
hour: 0,
|
|
|
minute: 0,
|
|
|
second: 0,
|
|
|
millisecond: 0
|
|
|
},
|
|
|
defaultOrdinalUnitValues = {
|
|
|
ordinal: 1,
|
|
|
hour: 0,
|
|
|
minute: 0,
|
|
|
second: 0,
|
|
|
millisecond: 0
|
|
|
}; // Units in the supported calendars, sorted by bigness
|
|
|
|
|
|
var orderedUnits = ["year", "month", "day", "hour", "minute", "second", "millisecond"],
|
|
|
orderedWeekUnits = ["weekYear", "weekNumber", "weekday", "hour", "minute", "second", "millisecond"],
|
|
|
orderedOrdinalUnits = ["year", "ordinal", "hour", "minute", "second", "millisecond"]; // standardize case and plurality in units
|
|
|
|
|
|
function normalizeUnit(unit) {
|
|
|
var normalized = {
|
|
|
year: "year",
|
|
|
years: "year",
|
|
|
month: "month",
|
|
|
months: "month",
|
|
|
day: "day",
|
|
|
days: "day",
|
|
|
hour: "hour",
|
|
|
hours: "hour",
|
|
|
minute: "minute",
|
|
|
minutes: "minute",
|
|
|
quarter: "quarter",
|
|
|
quarters: "quarter",
|
|
|
second: "second",
|
|
|
seconds: "second",
|
|
|
millisecond: "millisecond",
|
|
|
milliseconds: "millisecond",
|
|
|
weekday: "weekday",
|
|
|
weekdays: "weekday",
|
|
|
weeknumber: "weekNumber",
|
|
|
weeksnumber: "weekNumber",
|
|
|
weeknumbers: "weekNumber",
|
|
|
weekyear: "weekYear",
|
|
|
weekyears: "weekYear",
|
|
|
ordinal: "ordinal"
|
|
|
}[unit.toLowerCase()];
|
|
|
if (!normalized) throw new InvalidUnitError(unit);
|
|
|
return normalized;
|
|
|
} // this is a dumbed down version of fromObject() that runs about 60% faster
|
|
|
// but doesn't do any validation, makes a bunch of assumptions about what units
|
|
|
// are present, and so on.
|
|
|
// this is a dumbed down version of fromObject() that runs about 60% faster
|
|
|
// but doesn't do any validation, makes a bunch of assumptions about what units
|
|
|
// are present, and so on.
|
|
|
|
|
|
|
|
|
function quickDT(obj, opts) {
|
|
|
var zone = normalizeZone(opts.zone, Settings.defaultZone),
|
|
|
loc = Locale.fromObject(opts),
|
|
|
tsNow = Settings.now();
|
|
|
var ts, o; // assume we have the higher-order units
|
|
|
|
|
|
if (!isUndefined(obj.year)) {
|
|
|
for (var _iterator = _createForOfIteratorHelperLoose(orderedUnits), _step; !(_step = _iterator()).done;) {
|
|
|
var u = _step.value;
|
|
|
|
|
|
if (isUndefined(obj[u])) {
|
|
|
obj[u] = defaultUnitValues[u];
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var invalid = hasInvalidGregorianData(obj) || hasInvalidTimeData(obj);
|
|
|
|
|
|
if (invalid) {
|
|
|
return DateTime.invalid(invalid);
|
|
|
}
|
|
|
|
|
|
var offsetProvis = zone.offset(tsNow);
|
|
|
|
|
|
var _objToTS = objToTS(obj, offsetProvis, zone);
|
|
|
|
|
|
ts = _objToTS[0];
|
|
|
o = _objToTS[1];
|
|
|
} else {
|
|
|
ts = tsNow;
|
|
|
}
|
|
|
|
|
|
return new DateTime({
|
|
|
ts: ts,
|
|
|
zone: zone,
|
|
|
loc: loc,
|
|
|
o: o
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function diffRelative(start, end, opts) {
|
|
|
var round = isUndefined(opts.round) ? true : opts.round,
|
|
|
format = function format(c, unit) {
|
|
|
c = roundTo(c, round || opts.calendary ? 0 : 2, true);
|
|
|
var formatter = end.loc.clone(opts).relFormatter(opts);
|
|
|
return formatter.format(c, unit);
|
|
|
},
|
|
|
differ = function differ(unit) {
|
|
|
if (opts.calendary) {
|
|
|
if (!end.hasSame(start, unit)) {
|
|
|
return end.startOf(unit).diff(start.startOf(unit), unit).get(unit);
|
|
|
} else return 0;
|
|
|
} else {
|
|
|
return end.diff(start, unit).get(unit);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
if (opts.unit) {
|
|
|
return format(differ(opts.unit), opts.unit);
|
|
|
}
|
|
|
|
|
|
for (var _iterator2 = _createForOfIteratorHelperLoose(opts.units), _step2; !(_step2 = _iterator2()).done;) {
|
|
|
var unit = _step2.value;
|
|
|
var count = differ(unit);
|
|
|
|
|
|
if (Math.abs(count) >= 1) {
|
|
|
return format(count, unit);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
return format(start > end ? -0 : 0, opts.units[opts.units.length - 1]);
|
|
|
}
|
|
|
|
|
|
function lastOpts(argList) {
|
|
|
var opts = {},
|
|
|
args;
|
|
|
|
|
|
if (argList.length > 0 && typeof argList[argList.length - 1] === "object") {
|
|
|
opts = argList[argList.length - 1];
|
|
|
args = Array.from(argList).slice(0, argList.length - 1);
|
|
|
} else {
|
|
|
args = Array.from(argList);
|
|
|
}
|
|
|
|
|
|
return [opts, args];
|
|
|
}
|
|
|
/**
|
|
|
* A DateTime is an immutable data structure representing a specific date and time and accompanying methods. It contains class and instance methods for creating, parsing, interrogating, transforming, and formatting them.
|
|
|
*
|
|
|
* A DateTime comprises of:
|
|
|
* * A timestamp. Each DateTime instance refers to a specific millisecond of the Unix epoch.
|
|
|
* * A time zone. Each instance is considered in the context of a specific zone (by default the local system's zone).
|
|
|
* * Configuration properties that effect how output strings are formatted, such as `locale`, `numberingSystem`, and `outputCalendar`.
|
|
|
*
|
|
|
* Here is a brief overview of the most commonly used functionality it provides:
|
|
|
*
|
|
|
* * **Creation**: To create a DateTime from its components, use one of its factory class methods: {@link DateTime.local}, {@link DateTime.utc}, and (most flexibly) {@link DateTime.fromObject}. To create one from a standard string format, use {@link DateTime.fromISO}, {@link DateTime.fromHTTP}, and {@link DateTime.fromRFC2822}. To create one from a custom string format, use {@link DateTime.fromFormat}. To create one from a native JS date, use {@link DateTime.fromJSDate}.
|
|
|
* * **Gregorian calendar and time**: To examine the Gregorian properties of a DateTime individually (i.e as opposed to collectively through {@link DateTime#toObject}), use the {@link DateTime#year}, {@link DateTime#month},
|
|
|
* {@link DateTime#day}, {@link DateTime#hour}, {@link DateTime#minute}, {@link DateTime#second}, {@link DateTime#millisecond} accessors.
|
|
|
* * **Week calendar**: For ISO week calendar attributes, see the {@link DateTime#weekYear}, {@link DateTime#weekNumber}, and {@link DateTime#weekday} accessors.
|
|
|
* * **Configuration** See the {@link DateTime#locale} and {@link DateTime#numberingSystem} accessors.
|
|
|
* * **Transformation**: To transform the DateTime into other DateTimes, use {@link DateTime#set}, {@link DateTime#reconfigure}, {@link DateTime#setZone}, {@link DateTime#setLocale}, {@link DateTime.plus}, {@link DateTime#minus}, {@link DateTime#endOf}, {@link DateTime#startOf}, {@link DateTime#toUTC}, and {@link DateTime#toLocal}.
|
|
|
* * **Output**: To convert the DateTime to other representations, use the {@link DateTime#toRelative}, {@link DateTime#toRelativeCalendar}, {@link DateTime#toJSON}, {@link DateTime#toISO}, {@link DateTime#toHTTP}, {@link DateTime#toObject}, {@link DateTime#toRFC2822}, {@link DateTime#toString}, {@link DateTime#toLocaleString}, {@link DateTime#toFormat}, {@link DateTime#toMillis} and {@link DateTime#toJSDate}.
|
|
|
*
|
|
|
* There's plenty others documented below. In addition, for more information on subtler topics like internationalization, time zones, alternative calendars, validity, and so on, see the external documentation.
|
|
|
*/
|
|
|
|
|
|
|
|
|
var DateTime = /*#__PURE__*/function () {
|
|
|
/**
|
|
|
* @access private
|
|
|
*/
|
|
|
function DateTime(config) {
|
|
|
var zone = config.zone || Settings.defaultZone;
|
|
|
var invalid = config.invalid || (Number.isNaN(config.ts) ? new Invalid("invalid input") : null) || (!zone.isValid ? unsupportedZone(zone) : null);
|
|
|
/**
|
|
|
* @access private
|
|
|
*/
|
|
|
|
|
|
this.ts = isUndefined(config.ts) ? Settings.now() : config.ts;
|
|
|
var c = null,
|
|
|
o = null;
|
|
|
|
|
|
if (!invalid) {
|
|
|
var unchanged = config.old && config.old.ts === this.ts && config.old.zone.equals(zone);
|
|
|
|
|
|
if (unchanged) {
|
|
|
var _ref2 = [config.old.c, config.old.o];
|
|
|
c = _ref2[0];
|
|
|
o = _ref2[1];
|
|
|
} else {
|
|
|
var ot = zone.offset(this.ts);
|
|
|
c = tsToObj(this.ts, ot);
|
|
|
invalid = Number.isNaN(c.year) ? new Invalid("invalid input") : null;
|
|
|
c = invalid ? null : c;
|
|
|
o = invalid ? null : ot;
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* @access private
|
|
|
*/
|
|
|
|
|
|
|
|
|
this._zone = zone;
|
|
|
/**
|
|
|
* @access private
|
|
|
*/
|
|
|
|
|
|
this.loc = config.loc || Locale.create();
|
|
|
/**
|
|
|
* @access private
|
|
|
*/
|
|
|
|
|
|
this.invalid = invalid;
|
|
|
/**
|
|
|
* @access private
|
|
|
*/
|
|
|
|
|
|
this.weekData = null;
|
|
|
/**
|
|
|
* @access private
|
|
|
*/
|
|
|
|
|
|
this.c = c;
|
|
|
/**
|
|
|
* @access private
|
|
|
*/
|
|
|
|
|
|
this.o = o;
|
|
|
/**
|
|
|
* @access private
|
|
|
*/
|
|
|
|
|
|
this.isLuxonDateTime = true;
|
|
|
} // CONSTRUCT
|
|
|
|
|
|
/**
|
|
|
* Create a DateTime for the current instant, in the system's time zone.
|
|
|
*
|
|
|
* Use Settings to override these default values if needed.
|
|
|
* @example DateTime.now().toISO() //~> now in the ISO format
|
|
|
* @return {DateTime}
|
|
|
*/
|
|
|
|
|
|
|
|
|
DateTime.now = function now() {
|
|
|
return new DateTime({});
|
|
|
}
|
|
|
/**
|
|
|
* Create a local DateTime
|
|
|
* @param {number} [year] - The calendar year. If omitted (as in, call `local()` with no arguments), the current time will be used
|
|
|
* @param {number} [month=1] - The month, 1-indexed
|
|
|
* @param {number} [day=1] - The day of the month, 1-indexed
|
|
|
* @param {number} [hour=0] - The hour of the day, in 24-hour time
|
|
|
* @param {number} [minute=0] - The minute of the hour, meaning a number between 0 and 59
|
|
|
* @param {number} [second=0] - The second of the minute, meaning a number between 0 and 59
|
|
|
* @param {number} [millisecond=0] - The millisecond of the second, meaning a number between 0 and 999
|
|
|
* @example DateTime.local() //~> now
|
|
|
* @example DateTime.local({ zone: "America/New_York" }) //~> now, in US east coast time
|
|
|
* @example DateTime.local(2017) //~> 2017-01-01T00:00:00
|
|
|
* @example DateTime.local(2017, 3) //~> 2017-03-01T00:00:00
|
|
|
* @example DateTime.local(2017, 3, 12, { locale: "fr" }) //~> 2017-03-12T00:00:00, with a French locale
|
|
|
* @example DateTime.local(2017, 3, 12, 5) //~> 2017-03-12T05:00:00
|
|
|
* @example DateTime.local(2017, 3, 12, 5, { zone: "utc" }) //~> 2017-03-12T05:00:00, in UTC
|
|
|
* @example DateTime.local(2017, 3, 12, 5, 45) //~> 2017-03-12T05:45:00
|
|
|
* @example DateTime.local(2017, 3, 12, 5, 45, 10) //~> 2017-03-12T05:45:10
|
|
|
* @example DateTime.local(2017, 3, 12, 5, 45, 10, 765) //~> 2017-03-12T05:45:10.765
|
|
|
* @return {DateTime}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
DateTime.local = function local() {
|
|
|
var _lastOpts = lastOpts(arguments),
|
|
|
opts = _lastOpts[0],
|
|
|
args = _lastOpts[1],
|
|
|
year = args[0],
|
|
|
month = args[1],
|
|
|
day = args[2],
|
|
|
hour = args[3],
|
|
|
minute = args[4],
|
|
|
second = args[5],
|
|
|
millisecond = args[6];
|
|
|
|
|
|
return quickDT({
|
|
|
year: year,
|
|
|
month: month,
|
|
|
day: day,
|
|
|
hour: hour,
|
|
|
minute: minute,
|
|
|
second: second,
|
|
|
millisecond: millisecond
|
|
|
}, opts);
|
|
|
}
|
|
|
/**
|
|
|
* Create a DateTime in UTC
|
|
|
* @param {number} [year] - The calendar year. If omitted (as in, call `utc()` with no arguments), the current time will be used
|
|
|
* @param {number} [month=1] - The month, 1-indexed
|
|
|
* @param {number} [day=1] - The day of the month
|
|
|
* @param {number} [hour=0] - The hour of the day, in 24-hour time
|
|
|
* @param {number} [minute=0] - The minute of the hour, meaning a number between 0 and 59
|
|
|
* @param {number} [second=0] - The second of the minute, meaning a number between 0 and 59
|
|
|
* @param {number} [millisecond=0] - The millisecond of the second, meaning a number between 0 and 999
|
|
|
* @param {Object} options - configuration options for the DateTime
|
|
|
* @param {string} [options.locale] - a locale to set on the resulting DateTime instance
|
|
|
* @param {string} [options.outputCalendar] - the output calendar to set on the resulting DateTime instance
|
|
|
* @param {string} [options.numberingSystem] - the numbering system to set on the resulting DateTime instance
|
|
|
* @example DateTime.utc() //~> now
|
|
|
* @example DateTime.utc(2017) //~> 2017-01-01T00:00:00Z
|
|
|
* @example DateTime.utc(2017, 3) //~> 2017-03-01T00:00:00Z
|
|
|
* @example DateTime.utc(2017, 3, 12) //~> 2017-03-12T00:00:00Z
|
|
|
* @example DateTime.utc(2017, 3, 12, 5) //~> 2017-03-12T05:00:00Z
|
|
|
* @example DateTime.utc(2017, 3, 12, 5, 45) //~> 2017-03-12T05:45:00Z
|
|
|
* @example DateTime.utc(2017, 3, 12, 5, 45, { locale: "fr" }) //~> 2017-03-12T05:45:00Z with a French locale
|
|
|
* @example DateTime.utc(2017, 3, 12, 5, 45, 10) //~> 2017-03-12T05:45:10Z
|
|
|
* @example DateTime.utc(2017, 3, 12, 5, 45, 10, 765, { locale: "fr" }) //~> 2017-03-12T05:45:10.765Z with a French locale
|
|
|
* @return {DateTime}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
DateTime.utc = function utc() {
|
|
|
var _lastOpts2 = lastOpts(arguments),
|
|
|
opts = _lastOpts2[0],
|
|
|
args = _lastOpts2[1],
|
|
|
year = args[0],
|
|
|
month = args[1],
|
|
|
day = args[2],
|
|
|
hour = args[3],
|
|
|
minute = args[4],
|
|
|
second = args[5],
|
|
|
millisecond = args[6];
|
|
|
|
|
|
opts.zone = FixedOffsetZone.utcInstance;
|
|
|
return quickDT({
|
|
|
year: year,
|
|
|
month: month,
|
|
|
day: day,
|
|
|
hour: hour,
|
|
|
minute: minute,
|
|
|
second: second,
|
|
|
millisecond: millisecond
|
|
|
}, opts);
|
|
|
}
|
|
|
/**
|
|
|
* Create a DateTime from a JavaScript Date object. Uses the default zone.
|
|
|
* @param {Date} date - a JavaScript Date object
|
|
|
* @param {Object} options - configuration options for the DateTime
|
|
|
* @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into
|
|
|
* @return {DateTime}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
DateTime.fromJSDate = function fromJSDate(date, options) {
|
|
|
if (options === void 0) {
|
|
|
options = {};
|
|
|
}
|
|
|
|
|
|
var ts = isDate(date) ? date.valueOf() : NaN;
|
|
|
|
|
|
if (Number.isNaN(ts)) {
|
|
|
return DateTime.invalid("invalid input");
|
|
|
}
|
|
|
|
|
|
var zoneToUse = normalizeZone(options.zone, Settings.defaultZone);
|
|
|
|
|
|
if (!zoneToUse.isValid) {
|
|
|
return DateTime.invalid(unsupportedZone(zoneToUse));
|
|
|
}
|
|
|
|
|
|
return new DateTime({
|
|
|
ts: ts,
|
|
|
zone: zoneToUse,
|
|
|
loc: Locale.fromObject(options)
|
|
|
});
|
|
|
}
|
|
|
/**
|
|
|
* Create a DateTime from a number of milliseconds since the epoch (meaning since 1 January 1970 00:00:00 UTC). Uses the default zone.
|
|
|
* @param {number} milliseconds - a number of milliseconds since 1970 UTC
|
|
|
* @param {Object} options - configuration options for the DateTime
|
|
|
* @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into
|
|
|
* @param {string} [options.locale] - a locale to set on the resulting DateTime instance
|
|
|
* @param {string} options.outputCalendar - the output calendar to set on the resulting DateTime instance
|
|
|
* @param {string} options.numberingSystem - the numbering system to set on the resulting DateTime instance
|
|
|
* @return {DateTime}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
DateTime.fromMillis = function fromMillis(milliseconds, options) {
|
|
|
if (options === void 0) {
|
|
|
options = {};
|
|
|
}
|
|
|
|
|
|
if (!isNumber(milliseconds)) {
|
|
|
throw new InvalidArgumentError("fromMillis requires a numerical input, but received a " + typeof milliseconds + " with value " + milliseconds);
|
|
|
} else if (milliseconds < -MAX_DATE || milliseconds > MAX_DATE) {
|
|
|
// this isn't perfect because because we can still end up out of range because of additional shifting, but it's a start
|
|
|
return DateTime.invalid("Timestamp out of range");
|
|
|
} else {
|
|
|
return new DateTime({
|
|
|
ts: milliseconds,
|
|
|
zone: normalizeZone(options.zone, Settings.defaultZone),
|
|
|
loc: Locale.fromObject(options)
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* Create a DateTime from a number of seconds since the epoch (meaning since 1 January 1970 00:00:00 UTC). Uses the default zone.
|
|
|
* @param {number} seconds - a number of seconds since 1970 UTC
|
|
|
* @param {Object} options - configuration options for the DateTime
|
|
|
* @param {string|Zone} [options.zone='local'] - the zone to place the DateTime into
|
|
|
* @param {string} [options.locale] - a locale to set on the resulting DateTime instance
|
|
|
* @param {string} options.outputCalendar - the output calendar to set on the resulting DateTime instance
|
|
|
* @param {string} options.numberingSystem - the numbering system to set on the resulting DateTime instance
|
|
|
* @return {DateTime}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
DateTime.fromSeconds = function fromSeconds(seconds, options) {
|
|
|
if (options === void 0) {
|
|
|
options = {};
|
|
|
}
|
|
|
|
|
|
if (!isNumber(seconds)) {
|
|
|
throw new InvalidArgumentError("fromSeconds requires a numerical input");
|
|
|
} else {
|
|
|
return new DateTime({
|
|
|
ts: seconds * 1000,
|
|
|
zone: normalizeZone(options.zone, Settings.defaultZone),
|
|
|
loc: Locale.fromObject(options)
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* Create a DateTime from a JavaScript object with keys like 'year' and 'hour' with reasonable defaults.
|
|
|
* @param {Object} obj - the object to create the DateTime from
|
|
|
* @param {number} obj.year - a year, such as 1987
|
|
|
* @param {number} obj.month - a month, 1-12
|
|
|
* @param {number} obj.day - a day of the month, 1-31, depending on the month
|
|
|
* @param {number} obj.ordinal - day of the year, 1-365 or 366
|
|
|
* @param {number} obj.weekYear - an ISO week year
|
|
|
* @param {number} obj.weekNumber - an ISO week number, between 1 and 52 or 53, depending on the year
|
|
|
* @param {number} obj.weekday - an ISO weekday, 1-7, where 1 is Monday and 7 is Sunday
|
|
|
* @param {number} obj.hour - hour of the day, 0-23
|
|
|
* @param {number} obj.minute - minute of the hour, 0-59
|
|
|
* @param {number} obj.second - second of the minute, 0-59
|
|
|
* @param {number} obj.millisecond - millisecond of the second, 0-999
|
|
|
* @param {Object} opts - options for creating this DateTime
|
|
|
* @param {string|Zone} [opts.zone='local'] - interpret the numbers in the context of a particular zone. Can take any value taken as the first argument to setZone()
|
|
|
* @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance
|
|
|
* @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance
|
|
|
* @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance
|
|
|
* @example DateTime.fromObject({ year: 1982, month: 5, day: 25}).toISODate() //=> '1982-05-25'
|
|
|
* @example DateTime.fromObject({ year: 1982 }).toISODate() //=> '1982-01-01'
|
|
|
* @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }) //~> today at 10:26:06
|
|
|
* @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'utc' }),
|
|
|
* @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'local' })
|
|
|
* @example DateTime.fromObject({ hour: 10, minute: 26, second: 6 }, { zone: 'America/New_York' })
|
|
|
* @example DateTime.fromObject({ weekYear: 2016, weekNumber: 2, weekday: 3 }).toISODate() //=> '2016-01-13'
|
|
|
* @return {DateTime}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
DateTime.fromObject = function fromObject(obj, opts) {
|
|
|
if (opts === void 0) {
|
|
|
opts = {};
|
|
|
}
|
|
|
|
|
|
obj = obj || {};
|
|
|
var zoneToUse = normalizeZone(opts.zone, Settings.defaultZone);
|
|
|
|
|
|
if (!zoneToUse.isValid) {
|
|
|
return DateTime.invalid(unsupportedZone(zoneToUse));
|
|
|
}
|
|
|
|
|
|
var tsNow = Settings.now(),
|
|
|
offsetProvis = zoneToUse.offset(tsNow),
|
|
|
normalized = normalizeObject(obj, normalizeUnit),
|
|
|
containsOrdinal = !isUndefined(normalized.ordinal),
|
|
|
containsGregorYear = !isUndefined(normalized.year),
|
|
|
containsGregorMD = !isUndefined(normalized.month) || !isUndefined(normalized.day),
|
|
|
containsGregor = containsGregorYear || containsGregorMD,
|
|
|
definiteWeekDef = normalized.weekYear || normalized.weekNumber,
|
|
|
loc = Locale.fromObject(opts); // cases:
|
|
|
// just a weekday -> this week's instance of that weekday, no worries
|
|
|
// (gregorian data or ordinal) + (weekYear or weekNumber) -> error
|
|
|
// (gregorian month or day) + ordinal -> error
|
|
|
// otherwise just use weeks or ordinals or gregorian, depending on what's specified
|
|
|
|
|
|
if ((containsGregor || containsOrdinal) && definiteWeekDef) {
|
|
|
throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");
|
|
|
}
|
|
|
|
|
|
if (containsGregorMD && containsOrdinal) {
|
|
|
throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");
|
|
|
}
|
|
|
|
|
|
var useWeekData = definiteWeekDef || normalized.weekday && !containsGregor; // configure ourselves to deal with gregorian dates or week stuff
|
|
|
|
|
|
var units,
|
|
|
defaultValues,
|
|
|
objNow = tsToObj(tsNow, offsetProvis);
|
|
|
|
|
|
if (useWeekData) {
|
|
|
units = orderedWeekUnits;
|
|
|
defaultValues = defaultWeekUnitValues;
|
|
|
objNow = gregorianToWeek(objNow);
|
|
|
} else if (containsOrdinal) {
|
|
|
units = orderedOrdinalUnits;
|
|
|
defaultValues = defaultOrdinalUnitValues;
|
|
|
objNow = gregorianToOrdinal(objNow);
|
|
|
} else {
|
|
|
units = orderedUnits;
|
|
|
defaultValues = defaultUnitValues;
|
|
|
} // set default values for missing stuff
|
|
|
|
|
|
|
|
|
var foundFirst = false;
|
|
|
|
|
|
for (var _iterator3 = _createForOfIteratorHelperLoose(units), _step3; !(_step3 = _iterator3()).done;) {
|
|
|
var u = _step3.value;
|
|
|
var v = normalized[u];
|
|
|
|
|
|
if (!isUndefined(v)) {
|
|
|
foundFirst = true;
|
|
|
} else if (foundFirst) {
|
|
|
normalized[u] = defaultValues[u];
|
|
|
} else {
|
|
|
normalized[u] = objNow[u];
|
|
|
}
|
|
|
} // make sure the values we have are in range
|
|
|
|
|
|
|
|
|
var higherOrderInvalid = useWeekData ? hasInvalidWeekData(normalized) : containsOrdinal ? hasInvalidOrdinalData(normalized) : hasInvalidGregorianData(normalized),
|
|
|
invalid = higherOrderInvalid || hasInvalidTimeData(normalized);
|
|
|
|
|
|
if (invalid) {
|
|
|
return DateTime.invalid(invalid);
|
|
|
} // compute the actual time
|
|
|
|
|
|
|
|
|
var gregorian = useWeekData ? weekToGregorian(normalized) : containsOrdinal ? ordinalToGregorian(normalized) : normalized,
|
|
|
_objToTS2 = objToTS(gregorian, offsetProvis, zoneToUse),
|
|
|
tsFinal = _objToTS2[0],
|
|
|
offsetFinal = _objToTS2[1],
|
|
|
inst = new DateTime({
|
|
|
ts: tsFinal,
|
|
|
zone: zoneToUse,
|
|
|
o: offsetFinal,
|
|
|
loc: loc
|
|
|
}); // gregorian data + weekday serves only to validate
|
|
|
|
|
|
|
|
|
if (normalized.weekday && containsGregor && obj.weekday !== inst.weekday) {
|
|
|
return DateTime.invalid("mismatched weekday", "you can't specify both a weekday of " + normalized.weekday + " and a date of " + inst.toISO());
|
|
|
}
|
|
|
|
|
|
return inst;
|
|
|
}
|
|
|
/**
|
|
|
* Create a DateTime from an ISO 8601 string
|
|
|
* @param {string} text - the ISO string
|
|
|
* @param {Object} opts - options to affect the creation
|
|
|
* @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the time to this zone
|
|
|
* @param {boolean} [opts.setZone=false] - override the zone with a fixed-offset zone specified in the string itself, if it specifies one
|
|
|
* @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance
|
|
|
* @param {string} [opts.outputCalendar] - the output calendar to set on the resulting DateTime instance
|
|
|
* @param {string} [opts.numberingSystem] - the numbering system to set on the resulting DateTime instance
|
|
|
* @example DateTime.fromISO('2016-05-25T09:08:34.123')
|
|
|
* @example DateTime.fromISO('2016-05-25T09:08:34.123+06:00')
|
|
|
* @example DateTime.fromISO('2016-05-25T09:08:34.123+06:00', {setZone: true})
|
|
|
* @example DateTime.fromISO('2016-05-25T09:08:34.123', {zone: 'utc'})
|
|
|
* @example DateTime.fromISO('2016-W05-4')
|
|
|
* @return {DateTime}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
DateTime.fromISO = function fromISO(text, opts) {
|
|
|
if (opts === void 0) {
|
|
|
opts = {};
|
|
|
}
|
|
|
|
|
|
var _parseISODate = parseISODate(text),
|
|
|
vals = _parseISODate[0],
|
|
|
parsedZone = _parseISODate[1];
|
|
|
|
|
|
return parseDataToDateTime(vals, parsedZone, opts, "ISO 8601", text);
|
|
|
}
|
|
|
/**
|
|
|
* Create a DateTime from an RFC 2822 string
|
|
|
* @param {string} text - the RFC 2822 string
|
|
|
* @param {Object} opts - options to affect the creation
|
|
|
* @param {string|Zone} [opts.zone='local'] - convert the time to this zone. Since the offset is always specified in the string itself, this has no effect on the interpretation of string, merely the zone the resulting DateTime is expressed in.
|
|
|
* @param {boolean} [opts.setZone=false] - override the zone with a fixed-offset zone specified in the string itself, if it specifies one
|
|
|
* @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance
|
|
|
* @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance
|
|
|
* @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance
|
|
|
* @example DateTime.fromRFC2822('25 Nov 2016 13:23:12 GMT')
|
|
|
* @example DateTime.fromRFC2822('Fri, 25 Nov 2016 13:23:12 +0600')
|
|
|
* @example DateTime.fromRFC2822('25 Nov 2016 13:23 Z')
|
|
|
* @return {DateTime}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
DateTime.fromRFC2822 = function fromRFC2822(text, opts) {
|
|
|
if (opts === void 0) {
|
|
|
opts = {};
|
|
|
}
|
|
|
|
|
|
var _parseRFC2822Date = parseRFC2822Date(text),
|
|
|
vals = _parseRFC2822Date[0],
|
|
|
parsedZone = _parseRFC2822Date[1];
|
|
|
|
|
|
return parseDataToDateTime(vals, parsedZone, opts, "RFC 2822", text);
|
|
|
}
|
|
|
/**
|
|
|
* Create a DateTime from an HTTP header date
|
|
|
* @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1
|
|
|
* @param {string} text - the HTTP header date
|
|
|
* @param {Object} opts - options to affect the creation
|
|
|
* @param {string|Zone} [opts.zone='local'] - convert the time to this zone. Since HTTP dates are always in UTC, this has no effect on the interpretation of string, merely the zone the resulting DateTime is expressed in.
|
|
|
* @param {boolean} [opts.setZone=false] - override the zone with the fixed-offset zone specified in the string. For HTTP dates, this is always UTC, so this option is equivalent to setting the `zone` option to 'utc', but this option is included for consistency with similar methods.
|
|
|
* @param {string} [opts.locale='system's locale'] - a locale to set on the resulting DateTime instance
|
|
|
* @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance
|
|
|
* @param {string} opts.numberingSystem - the numbering system to set on the resulting DateTime instance
|
|
|
* @example DateTime.fromHTTP('Sun, 06 Nov 1994 08:49:37 GMT')
|
|
|
* @example DateTime.fromHTTP('Sunday, 06-Nov-94 08:49:37 GMT')
|
|
|
* @example DateTime.fromHTTP('Sun Nov 6 08:49:37 1994')
|
|
|
* @return {DateTime}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
DateTime.fromHTTP = function fromHTTP(text, opts) {
|
|
|
if (opts === void 0) {
|
|
|
opts = {};
|
|
|
}
|
|
|
|
|
|
var _parseHTTPDate = parseHTTPDate(text),
|
|
|
vals = _parseHTTPDate[0],
|
|
|
parsedZone = _parseHTTPDate[1];
|
|
|
|
|
|
return parseDataToDateTime(vals, parsedZone, opts, "HTTP", opts);
|
|
|
}
|
|
|
/**
|
|
|
* Create a DateTime from an input string and format string.
|
|
|
* Defaults to en-US if no locale has been specified, regardless of the system's locale. For a table of tokens and their interpretations, see [here](https://moment.github.io/luxon/#/parsing?id=table-of-tokens).
|
|
|
* @param {string} text - the string to parse
|
|
|
* @param {string} fmt - the format the string is expected to be in (see the link below for the formats)
|
|
|
* @param {Object} opts - options to affect the creation
|
|
|
* @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the DateTime to this zone
|
|
|
* @param {boolean} [opts.setZone=false] - override the zone with a zone specified in the string itself, if it specifies one
|
|
|
* @param {string} [opts.locale='en-US'] - a locale string to use when parsing. Will also set the DateTime to this locale
|
|
|
* @param {string} opts.numberingSystem - the numbering system to use when parsing. Will also set the resulting DateTime to this numbering system
|
|
|
* @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance
|
|
|
* @return {DateTime}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
DateTime.fromFormat = function fromFormat(text, fmt, opts) {
|
|
|
if (opts === void 0) {
|
|
|
opts = {};
|
|
|
}
|
|
|
|
|
|
if (isUndefined(text) || isUndefined(fmt)) {
|
|
|
throw new InvalidArgumentError("fromFormat requires an input string and a format");
|
|
|
}
|
|
|
|
|
|
var _opts = opts,
|
|
|
_opts$locale = _opts.locale,
|
|
|
locale = _opts$locale === void 0 ? null : _opts$locale,
|
|
|
_opts$numberingSystem = _opts.numberingSystem,
|
|
|
numberingSystem = _opts$numberingSystem === void 0 ? null : _opts$numberingSystem,
|
|
|
localeToUse = Locale.fromOpts({
|
|
|
locale: locale,
|
|
|
numberingSystem: numberingSystem,
|
|
|
defaultToEN: true
|
|
|
}),
|
|
|
_parseFromTokens = parseFromTokens(localeToUse, text, fmt),
|
|
|
vals = _parseFromTokens[0],
|
|
|
parsedZone = _parseFromTokens[1],
|
|
|
invalid = _parseFromTokens[2];
|
|
|
|
|
|
if (invalid) {
|
|
|
return DateTime.invalid(invalid);
|
|
|
} else {
|
|
|
return parseDataToDateTime(vals, parsedZone, opts, "format " + fmt, text);
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* @deprecated use fromFormat instead
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
DateTime.fromString = function fromString(text, fmt, opts) {
|
|
|
if (opts === void 0) {
|
|
|
opts = {};
|
|
|
}
|
|
|
|
|
|
return DateTime.fromFormat(text, fmt, opts);
|
|
|
}
|
|
|
/**
|
|
|
* Create a DateTime from a SQL date, time, or datetime
|
|
|
* Defaults to en-US if no locale has been specified, regardless of the system's locale
|
|
|
* @param {string} text - the string to parse
|
|
|
* @param {Object} opts - options to affect the creation
|
|
|
* @param {string|Zone} [opts.zone='local'] - use this zone if no offset is specified in the input string itself. Will also convert the DateTime to this zone
|
|
|
* @param {boolean} [opts.setZone=false] - override the zone with a zone specified in the string itself, if it specifies one
|
|
|
* @param {string} [opts.locale='en-US'] - a locale string to use when parsing. Will also set the DateTime to this locale
|
|
|
* @param {string} opts.numberingSystem - the numbering system to use when parsing. Will also set the resulting DateTime to this numbering system
|
|
|
* @param {string} opts.outputCalendar - the output calendar to set on the resulting DateTime instance
|
|
|
* @example DateTime.fromSQL('2017-05-15')
|
|
|
* @example DateTime.fromSQL('2017-05-15 09:12:34')
|
|
|
* @example DateTime.fromSQL('2017-05-15 09:12:34.342')
|
|
|
* @example DateTime.fromSQL('2017-05-15 09:12:34.342+06:00')
|
|
|
* @example DateTime.fromSQL('2017-05-15 09:12:34.342 America/Los_Angeles')
|
|
|
* @example DateTime.fromSQL('2017-05-15 09:12:34.342 America/Los_Angeles', { setZone: true })
|
|
|
* @example DateTime.fromSQL('2017-05-15 09:12:34.342', { zone: 'America/Los_Angeles' })
|
|
|
* @example DateTime.fromSQL('09:12:34.342')
|
|
|
* @return {DateTime}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
DateTime.fromSQL = function fromSQL(text, opts) {
|
|
|
if (opts === void 0) {
|
|
|
opts = {};
|
|
|
}
|
|
|
|
|
|
var _parseSQL = parseSQL(text),
|
|
|
vals = _parseSQL[0],
|
|
|
parsedZone = _parseSQL[1];
|
|
|
|
|
|
return parseDataToDateTime(vals, parsedZone, opts, "SQL", text);
|
|
|
}
|
|
|
/**
|
|
|
* Create an invalid DateTime.
|
|
|
* @param {string} reason - simple string of why this DateTime is invalid. Should not contain parameters or anything else data-dependent
|
|
|
* @param {string} [explanation=null] - longer explanation, may include parameters and other useful debugging information
|
|
|
* @return {DateTime}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
DateTime.invalid = function invalid(reason, explanation) {
|
|
|
if (explanation === void 0) {
|
|
|
explanation = null;
|
|
|
}
|
|
|
|
|
|
if (!reason) {
|
|
|
throw new InvalidArgumentError("need to specify a reason the DateTime is invalid");
|
|
|
}
|
|
|
|
|
|
var invalid = reason instanceof Invalid ? reason : new Invalid(reason, explanation);
|
|
|
|
|
|
if (Settings.throwOnInvalid) {
|
|
|
throw new InvalidDateTimeError(invalid);
|
|
|
} else {
|
|
|
return new DateTime({
|
|
|
invalid: invalid
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* Check if an object is a DateTime. Works across context boundaries
|
|
|
* @param {object} o
|
|
|
* @return {boolean}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
DateTime.isDateTime = function isDateTime(o) {
|
|
|
return o && o.isLuxonDateTime || false;
|
|
|
} // INFO
|
|
|
|
|
|
/**
|
|
|
* Get the value of unit.
|
|
|
* @param {string} unit - a unit such as 'minute' or 'day'
|
|
|
* @example DateTime.local(2017, 7, 4).get('month'); //=> 7
|
|
|
* @example DateTime.local(2017, 7, 4).get('day'); //=> 4
|
|
|
* @return {number}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
var _proto = DateTime.prototype;
|
|
|
|
|
|
_proto.get = function get(unit) {
|
|
|
return this[unit];
|
|
|
}
|
|
|
/**
|
|
|
* Returns whether the DateTime is valid. Invalid DateTimes occur when:
|
|
|
* * The DateTime was created from invalid calendar information, such as the 13th month or February 30
|
|
|
* * The DateTime was created by an operation on another invalid date
|
|
|
* @type {boolean}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
/**
|
|
|
* Returns the resolved Intl options for this DateTime.
|
|
|
* This is useful in understanding the behavior of formatting methods
|
|
|
* @param {Object} opts - the same options as toLocaleString
|
|
|
* @return {Object}
|
|
|
*/
|
|
|
_proto.resolvedLocaleOptions = function resolvedLocaleOptions(opts) {
|
|
|
if (opts === void 0) {
|
|
|
opts = {};
|
|
|
}
|
|
|
|
|
|
var _Formatter$create$res = Formatter.create(this.loc.clone(opts), opts).resolvedOptions(this),
|
|
|
locale = _Formatter$create$res.locale,
|
|
|
numberingSystem = _Formatter$create$res.numberingSystem,
|
|
|
calendar = _Formatter$create$res.calendar;
|
|
|
|
|
|
return {
|
|
|
locale: locale,
|
|
|
numberingSystem: numberingSystem,
|
|
|
outputCalendar: calendar
|
|
|
};
|
|
|
} // TRANSFORM
|
|
|
|
|
|
/**
|
|
|
* "Set" the DateTime's zone to UTC. Returns a newly-constructed DateTime.
|
|
|
*
|
|
|
* Equivalent to {@link DateTime.setZone}('utc')
|
|
|
* @param {number} [offset=0] - optionally, an offset from UTC in minutes
|
|
|
* @param {Object} [opts={}] - options to pass to `setZone()`
|
|
|
* @return {DateTime}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.toUTC = function toUTC(offset, opts) {
|
|
|
if (offset === void 0) {
|
|
|
offset = 0;
|
|
|
}
|
|
|
|
|
|
if (opts === void 0) {
|
|
|
opts = {};
|
|
|
}
|
|
|
|
|
|
return this.setZone(FixedOffsetZone.instance(offset), opts);
|
|
|
}
|
|
|
/**
|
|
|
* "Set" the DateTime's zone to the host's local zone. Returns a newly-constructed DateTime.
|
|
|
*
|
|
|
* Equivalent to `setZone('local')`
|
|
|
* @return {DateTime}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.toLocal = function toLocal() {
|
|
|
return this.setZone(Settings.defaultZone);
|
|
|
}
|
|
|
/**
|
|
|
* "Set" the DateTime's zone to specified zone. Returns a newly-constructed DateTime.
|
|
|
*
|
|
|
* By default, the setter keeps the underlying time the same (as in, the same timestamp), but the new instance will report different local times and consider DSTs when making computations, as with {@link DateTime.plus}. You may wish to use {@link DateTime.toLocal} and {@link DateTime.toUTC} which provide simple convenience wrappers for commonly used zones.
|
|
|
* @param {string|Zone} [zone='local'] - a zone identifier. As a string, that can be any IANA zone supported by the host environment, or a fixed-offset name of the form 'UTC+3', or the strings 'local' or 'utc'. You may also supply an instance of a {@link DateTime.Zone} class.
|
|
|
* @param {Object} opts - options
|
|
|
* @param {boolean} [opts.keepLocalTime=false] - If true, adjust the underlying time so that the local time stays the same, but in the target zone. You should rarely need this.
|
|
|
* @return {DateTime}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.setZone = function setZone(zone, _temp) {
|
|
|
var _ref3 = _temp === void 0 ? {} : _temp,
|
|
|
_ref3$keepLocalTime = _ref3.keepLocalTime,
|
|
|
keepLocalTime = _ref3$keepLocalTime === void 0 ? false : _ref3$keepLocalTime,
|
|
|
_ref3$keepCalendarTim = _ref3.keepCalendarTime,
|
|
|
keepCalendarTime = _ref3$keepCalendarTim === void 0 ? false : _ref3$keepCalendarTim;
|
|
|
|
|
|
zone = normalizeZone(zone, Settings.defaultZone);
|
|
|
|
|
|
if (zone.equals(this.zone)) {
|
|
|
return this;
|
|
|
} else if (!zone.isValid) {
|
|
|
return DateTime.invalid(unsupportedZone(zone));
|
|
|
} else {
|
|
|
var newTS = this.ts;
|
|
|
|
|
|
if (keepLocalTime || keepCalendarTime) {
|
|
|
var offsetGuess = zone.offset(this.ts);
|
|
|
var asObj = this.toObject();
|
|
|
|
|
|
var _objToTS3 = objToTS(asObj, offsetGuess, zone);
|
|
|
|
|
|
newTS = _objToTS3[0];
|
|
|
}
|
|
|
|
|
|
return clone(this, {
|
|
|
ts: newTS,
|
|
|
zone: zone
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* "Set" the locale, numberingSystem, or outputCalendar. Returns a newly-constructed DateTime.
|
|
|
* @param {Object} properties - the properties to set
|
|
|
* @example DateTime.local(2017, 5, 25).reconfigure({ locale: 'en-GB' })
|
|
|
* @return {DateTime}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.reconfigure = function reconfigure(_temp2) {
|
|
|
var _ref4 = _temp2 === void 0 ? {} : _temp2,
|
|
|
locale = _ref4.locale,
|
|
|
numberingSystem = _ref4.numberingSystem,
|
|
|
outputCalendar = _ref4.outputCalendar;
|
|
|
|
|
|
var loc = this.loc.clone({
|
|
|
locale: locale,
|
|
|
numberingSystem: numberingSystem,
|
|
|
outputCalendar: outputCalendar
|
|
|
});
|
|
|
return clone(this, {
|
|
|
loc: loc
|
|
|
});
|
|
|
}
|
|
|
/**
|
|
|
* "Set" the locale. Returns a newly-constructed DateTime.
|
|
|
* Just a convenient alias for reconfigure({ locale })
|
|
|
* @example DateTime.local(2017, 5, 25).setLocale('en-GB')
|
|
|
* @return {DateTime}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.setLocale = function setLocale(locale) {
|
|
|
return this.reconfigure({
|
|
|
locale: locale
|
|
|
});
|
|
|
}
|
|
|
/**
|
|
|
* "Set" the values of specified units. Returns a newly-constructed DateTime.
|
|
|
* You can only set units with this method; for "setting" metadata, see {@link DateTime.reconfigure} and {@link DateTime.setZone}.
|
|
|
* @param {Object} values - a mapping of units to numbers
|
|
|
* @example dt.set({ year: 2017 })
|
|
|
* @example dt.set({ hour: 8, minute: 30 })
|
|
|
* @example dt.set({ weekday: 5 })
|
|
|
* @example dt.set({ year: 2005, ordinal: 234 })
|
|
|
* @return {DateTime}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.set = function set(values) {
|
|
|
if (!this.isValid) return this;
|
|
|
var normalized = normalizeObject(values, normalizeUnit),
|
|
|
settingWeekStuff = !isUndefined(normalized.weekYear) || !isUndefined(normalized.weekNumber) || !isUndefined(normalized.weekday),
|
|
|
containsOrdinal = !isUndefined(normalized.ordinal),
|
|
|
containsGregorYear = !isUndefined(normalized.year),
|
|
|
containsGregorMD = !isUndefined(normalized.month) || !isUndefined(normalized.day),
|
|
|
containsGregor = containsGregorYear || containsGregorMD,
|
|
|
definiteWeekDef = normalized.weekYear || normalized.weekNumber;
|
|
|
|
|
|
if ((containsGregor || containsOrdinal) && definiteWeekDef) {
|
|
|
throw new ConflictingSpecificationError("Can't mix weekYear/weekNumber units with year/month/day or ordinals");
|
|
|
}
|
|
|
|
|
|
if (containsGregorMD && containsOrdinal) {
|
|
|
throw new ConflictingSpecificationError("Can't mix ordinal dates with month/day");
|
|
|
}
|
|
|
|
|
|
var mixed;
|
|
|
|
|
|
if (settingWeekStuff) {
|
|
|
mixed = weekToGregorian(_extends({}, gregorianToWeek(this.c), normalized));
|
|
|
} else if (!isUndefined(normalized.ordinal)) {
|
|
|
mixed = ordinalToGregorian(_extends({}, gregorianToOrdinal(this.c), normalized));
|
|
|
} else {
|
|
|
mixed = _extends({}, this.toObject(), normalized); // if we didn't set the day but we ended up on an overflow date,
|
|
|
// use the last day of the right month
|
|
|
|
|
|
if (isUndefined(normalized.day)) {
|
|
|
mixed.day = Math.min(daysInMonth(mixed.year, mixed.month), mixed.day);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var _objToTS4 = objToTS(mixed, this.o, this.zone),
|
|
|
ts = _objToTS4[0],
|
|
|
o = _objToTS4[1];
|
|
|
|
|
|
return clone(this, {
|
|
|
ts: ts,
|
|
|
o: o
|
|
|
});
|
|
|
}
|
|
|
/**
|
|
|
* Add a period of time to this DateTime and return the resulting DateTime
|
|
|
*
|
|
|
* Adding hours, minutes, seconds, or milliseconds increases the timestamp by the right number of milliseconds. Adding days, months, or years shifts the calendar, accounting for DSTs and leap years along the way. Thus, `dt.plus({ hours: 24 })` may result in a different time than `dt.plus({ days: 1 })` if there's a DST shift in between.
|
|
|
* @param {Duration|Object|number} duration - The amount to add. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()
|
|
|
* @example DateTime.now().plus(123) //~> in 123 milliseconds
|
|
|
* @example DateTime.now().plus({ minutes: 15 }) //~> in 15 minutes
|
|
|
* @example DateTime.now().plus({ days: 1 }) //~> this time tomorrow
|
|
|
* @example DateTime.now().plus({ days: -1 }) //~> this time yesterday
|
|
|
* @example DateTime.now().plus({ hours: 3, minutes: 13 }) //~> in 3 hr, 13 min
|
|
|
* @example DateTime.now().plus(Duration.fromObject({ hours: 3, minutes: 13 })) //~> in 3 hr, 13 min
|
|
|
* @return {DateTime}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.plus = function plus(duration) {
|
|
|
if (!this.isValid) return this;
|
|
|
var dur = friendlyDuration(duration);
|
|
|
return clone(this, adjustTime(this, dur));
|
|
|
}
|
|
|
/**
|
|
|
* Subtract a period of time to this DateTime and return the resulting DateTime
|
|
|
* See {@link DateTime.plus}
|
|
|
* @param {Duration|Object|number} duration - The amount to subtract. Either a Luxon Duration, a number of milliseconds, the object argument to Duration.fromObject()
|
|
|
@return {DateTime}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.minus = function minus(duration) {
|
|
|
if (!this.isValid) return this;
|
|
|
var dur = friendlyDuration(duration).negate();
|
|
|
return clone(this, adjustTime(this, dur));
|
|
|
}
|
|
|
/**
|
|
|
* "Set" this DateTime to the beginning of a unit of time.
|
|
|
* @param {string} unit - The unit to go to the beginning of. Can be 'year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', or 'millisecond'.
|
|
|
* @example DateTime.local(2014, 3, 3).startOf('month').toISODate(); //=> '2014-03-01'
|
|
|
* @example DateTime.local(2014, 3, 3).startOf('year').toISODate(); //=> '2014-01-01'
|
|
|
* @example DateTime.local(2014, 3, 3).startOf('week').toISODate(); //=> '2014-03-03', weeks always start on Mondays
|
|
|
* @example DateTime.local(2014, 3, 3, 5, 30).startOf('day').toISOTime(); //=> '00:00.000-05:00'
|
|
|
* @example DateTime.local(2014, 3, 3, 5, 30).startOf('hour').toISOTime(); //=> '05:00:00.000-05:00'
|
|
|
* @return {DateTime}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.startOf = function startOf(unit) {
|
|
|
if (!this.isValid) return this;
|
|
|
var o = {},
|
|
|
normalizedUnit = Duration.normalizeUnit(unit);
|
|
|
|
|
|
switch (normalizedUnit) {
|
|
|
case "years":
|
|
|
o.month = 1;
|
|
|
// falls through
|
|
|
|
|
|
case "quarters":
|
|
|
case "months":
|
|
|
o.day = 1;
|
|
|
// falls through
|
|
|
|
|
|
case "weeks":
|
|
|
case "days":
|
|
|
o.hour = 0;
|
|
|
// falls through
|
|
|
|
|
|
case "hours":
|
|
|
o.minute = 0;
|
|
|
// falls through
|
|
|
|
|
|
case "minutes":
|
|
|
o.second = 0;
|
|
|
// falls through
|
|
|
|
|
|
case "seconds":
|
|
|
o.millisecond = 0;
|
|
|
break;
|
|
|
// no default, invalid units throw in normalizeUnit()
|
|
|
}
|
|
|
|
|
|
if (normalizedUnit === "weeks") {
|
|
|
o.weekday = 1;
|
|
|
}
|
|
|
|
|
|
if (normalizedUnit === "quarters") {
|
|
|
var q = Math.ceil(this.month / 3);
|
|
|
o.month = (q - 1) * 3 + 1;
|
|
|
}
|
|
|
|
|
|
return this.set(o);
|
|
|
}
|
|
|
/**
|
|
|
* "Set" this DateTime to the end (meaning the last millisecond) of a unit of time
|
|
|
* @param {string} unit - The unit to go to the end of. Can be 'year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', or 'millisecond'.
|
|
|
* @example DateTime.local(2014, 3, 3).endOf('month').toISO(); //=> '2014-03-31T23:59:59.999-05:00'
|
|
|
* @example DateTime.local(2014, 3, 3).endOf('year').toISO(); //=> '2014-12-31T23:59:59.999-05:00'
|
|
|
* @example DateTime.local(2014, 3, 3).endOf('week').toISO(); // => '2014-03-09T23:59:59.999-05:00', weeks start on Mondays
|
|
|
* @example DateTime.local(2014, 3, 3, 5, 30).endOf('day').toISO(); //=> '2014-03-03T23:59:59.999-05:00'
|
|
|
* @example DateTime.local(2014, 3, 3, 5, 30).endOf('hour').toISO(); //=> '2014-03-03T05:59:59.999-05:00'
|
|
|
* @return {DateTime}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.endOf = function endOf(unit) {
|
|
|
var _this$plus;
|
|
|
|
|
|
return this.isValid ? this.plus((_this$plus = {}, _this$plus[unit] = 1, _this$plus)).startOf(unit).minus(1) : this;
|
|
|
} // OUTPUT
|
|
|
|
|
|
/**
|
|
|
* Returns a string representation of this DateTime formatted according to the specified format string.
|
|
|
* **You may not want this.** See {@link DateTime.toLocaleString} for a more flexible formatting tool. For a table of tokens and their interpretations, see [here](https://moment.github.io/luxon/#/formatting?id=table-of-tokens).
|
|
|
* Defaults to en-US if no locale has been specified, regardless of the system's locale.
|
|
|
* @param {string} fmt - the format string
|
|
|
* @param {Object} opts - opts to override the configuration options on this DateTime
|
|
|
* @example DateTime.now().toFormat('yyyy LLL dd') //=> '2017 Apr 22'
|
|
|
* @example DateTime.now().setLocale('fr').toFormat('yyyy LLL dd') //=> '2017 avr. 22'
|
|
|
* @example DateTime.now().toFormat('yyyy LLL dd', { locale: "fr" }) //=> '2017 avr. 22'
|
|
|
* @example DateTime.now().toFormat("HH 'hours and' mm 'minutes'") //=> '20 hours and 55 minutes'
|
|
|
* @return {string}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.toFormat = function toFormat(fmt, opts) {
|
|
|
if (opts === void 0) {
|
|
|
opts = {};
|
|
|
}
|
|
|
|
|
|
return this.isValid ? Formatter.create(this.loc.redefaultToEN(opts)).formatDateTimeFromString(this, fmt) : INVALID;
|
|
|
}
|
|
|
/**
|
|
|
* Returns a localized string representing this date. Accepts the same options as the Intl.DateTimeFormat constructor and any presets defined by Luxon, such as `DateTime.DATE_FULL` or `DateTime.TIME_SIMPLE`.
|
|
|
* The exact behavior of this method is browser-specific, but in general it will return an appropriate representation
|
|
|
* of the DateTime in the assigned locale.
|
|
|
* Defaults to the system's locale if no locale has been specified
|
|
|
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat
|
|
|
* @param formatOpts {Object} - Intl.DateTimeFormat constructor options and configuration options
|
|
|
* @param {Object} opts - opts to override the configuration options on this DateTime
|
|
|
* @example DateTime.now().toLocaleString(); //=> 4/20/2017
|
|
|
* @example DateTime.now().setLocale('en-gb').toLocaleString(); //=> '20/04/2017'
|
|
|
* @example DateTime.now().toLocaleString({ locale: 'en-gb' }); //=> '20/04/2017'
|
|
|
* @example DateTime.now().toLocaleString(DateTime.DATE_FULL); //=> 'April 20, 2017'
|
|
|
* @example DateTime.now().toLocaleString(DateTime.TIME_SIMPLE); //=> '11:32 AM'
|
|
|
* @example DateTime.now().toLocaleString(DateTime.DATETIME_SHORT); //=> '4/20/2017, 11:32 AM'
|
|
|
* @example DateTime.now().toLocaleString({ weekday: 'long', month: 'long', day: '2-digit' }); //=> 'Thursday, April 20'
|
|
|
* @example DateTime.now().toLocaleString({ weekday: 'short', month: 'short', day: '2-digit', hour: '2-digit', minute: '2-digit' }); //=> 'Thu, Apr 20, 11:27 AM'
|
|
|
* @example DateTime.now().toLocaleString({ hour: '2-digit', minute: '2-digit', hourCycle: 'h23' }); //=> '11:32'
|
|
|
* @return {string}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.toLocaleString = function toLocaleString(formatOpts, opts) {
|
|
|
if (formatOpts === void 0) {
|
|
|
formatOpts = DATE_SHORT;
|
|
|
}
|
|
|
|
|
|
if (opts === void 0) {
|
|
|
opts = {};
|
|
|
}
|
|
|
|
|
|
return this.isValid ? Formatter.create(this.loc.clone(opts), formatOpts).formatDateTime(this) : INVALID;
|
|
|
}
|
|
|
/**
|
|
|
* Returns an array of format "parts", meaning individual tokens along with metadata. This is allows callers to post-process individual sections of the formatted output.
|
|
|
* Defaults to the system's locale if no locale has been specified
|
|
|
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DateTimeFormat/formatToParts
|
|
|
* @param opts {Object} - Intl.DateTimeFormat constructor options, same as `toLocaleString`.
|
|
|
* @example DateTime.now().toLocaleParts(); //=> [
|
|
|
* //=> { type: 'day', value: '25' },
|
|
|
* //=> { type: 'literal', value: '/' },
|
|
|
* //=> { type: 'month', value: '05' },
|
|
|
* //=> { type: 'literal', value: '/' },
|
|
|
* //=> { type: 'year', value: '1982' }
|
|
|
* //=> ]
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.toLocaleParts = function toLocaleParts(opts) {
|
|
|
if (opts === void 0) {
|
|
|
opts = {};
|
|
|
}
|
|
|
|
|
|
return this.isValid ? Formatter.create(this.loc.clone(opts), opts).formatDateTimeParts(this) : [];
|
|
|
}
|
|
|
/**
|
|
|
* Returns an ISO 8601-compliant string representation of this DateTime
|
|
|
* @param {Object} opts - options
|
|
|
* @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0
|
|
|
* @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0
|
|
|
* @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'
|
|
|
* @param {string} [opts.format='extended'] - choose between the basic and extended format
|
|
|
* @example DateTime.utc(1982, 5, 25).toISO() //=> '1982-05-25T00:00:00.000Z'
|
|
|
* @example DateTime.now().toISO() //=> '2017-04-22T20:47:05.335-04:00'
|
|
|
* @example DateTime.now().toISO({ includeOffset: false }) //=> '2017-04-22T20:47:05.335'
|
|
|
* @example DateTime.now().toISO({ format: 'basic' }) //=> '20170422T204705.335-0400'
|
|
|
* @return {string}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.toISO = function toISO(opts) {
|
|
|
if (opts === void 0) {
|
|
|
opts = {};
|
|
|
}
|
|
|
|
|
|
if (!this.isValid) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
return this.toISODate(opts) + "T" + this.toISOTime(opts);
|
|
|
}
|
|
|
/**
|
|
|
* Returns an ISO 8601-compliant string representation of this DateTime's date component
|
|
|
* @param {Object} opts - options
|
|
|
* @param {string} [opts.format='extended'] - choose between the basic and extended format
|
|
|
* @example DateTime.utc(1982, 5, 25).toISODate() //=> '1982-05-25'
|
|
|
* @example DateTime.utc(1982, 5, 25).toISODate({ format: 'basic' }) //=> '19820525'
|
|
|
* @return {string}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.toISODate = function toISODate(_temp3) {
|
|
|
var _ref5 = _temp3 === void 0 ? {} : _temp3,
|
|
|
_ref5$format = _ref5.format,
|
|
|
format = _ref5$format === void 0 ? "extended" : _ref5$format;
|
|
|
|
|
|
var fmt = format === "basic" ? "yyyyMMdd" : "yyyy-MM-dd";
|
|
|
|
|
|
if (this.year > 9999) {
|
|
|
fmt = "+" + fmt;
|
|
|
}
|
|
|
|
|
|
return toTechFormat(this, fmt);
|
|
|
}
|
|
|
/**
|
|
|
* Returns an ISO 8601-compliant string representation of this DateTime's week date
|
|
|
* @example DateTime.utc(1982, 5, 25).toISOWeekDate() //=> '1982-W21-2'
|
|
|
* @return {string}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.toISOWeekDate = function toISOWeekDate() {
|
|
|
return toTechFormat(this, "kkkk-'W'WW-c");
|
|
|
}
|
|
|
/**
|
|
|
* Returns an ISO 8601-compliant string representation of this DateTime's time component
|
|
|
* @param {Object} opts - options
|
|
|
* @param {boolean} [opts.suppressMilliseconds=false] - exclude milliseconds from the format if they're 0
|
|
|
* @param {boolean} [opts.suppressSeconds=false] - exclude seconds from the format if they're 0
|
|
|
* @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'
|
|
|
* @param {boolean} [opts.includePrefix=false] - include the `T` prefix
|
|
|
* @param {string} [opts.format='extended'] - choose between the basic and extended format
|
|
|
* @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime() //=> '07:34:19.361Z'
|
|
|
* @example DateTime.utc().set({ hour: 7, minute: 34, seconds: 0, milliseconds: 0 }).toISOTime({ suppressSeconds: true }) //=> '07:34Z'
|
|
|
* @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime({ format: 'basic' }) //=> '073419.361Z'
|
|
|
* @example DateTime.utc().set({ hour: 7, minute: 34 }).toISOTime({ includePrefix: true }) //=> 'T07:34:19.361Z'
|
|
|
* @return {string}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.toISOTime = function toISOTime(_temp4) {
|
|
|
var _ref6 = _temp4 === void 0 ? {} : _temp4,
|
|
|
_ref6$suppressMillise = _ref6.suppressMilliseconds,
|
|
|
suppressMilliseconds = _ref6$suppressMillise === void 0 ? false : _ref6$suppressMillise,
|
|
|
_ref6$suppressSeconds = _ref6.suppressSeconds,
|
|
|
suppressSeconds = _ref6$suppressSeconds === void 0 ? false : _ref6$suppressSeconds,
|
|
|
_ref6$includeOffset = _ref6.includeOffset,
|
|
|
includeOffset = _ref6$includeOffset === void 0 ? true : _ref6$includeOffset,
|
|
|
_ref6$includePrefix = _ref6.includePrefix,
|
|
|
includePrefix = _ref6$includePrefix === void 0 ? false : _ref6$includePrefix,
|
|
|
_ref6$format = _ref6.format,
|
|
|
format = _ref6$format === void 0 ? "extended" : _ref6$format;
|
|
|
|
|
|
return toTechTimeFormat(this, {
|
|
|
suppressSeconds: suppressSeconds,
|
|
|
suppressMilliseconds: suppressMilliseconds,
|
|
|
includeOffset: includeOffset,
|
|
|
includePrefix: includePrefix,
|
|
|
format: format
|
|
|
});
|
|
|
}
|
|
|
/**
|
|
|
* Returns an RFC 2822-compatible string representation of this DateTime, always in UTC
|
|
|
* @example DateTime.utc(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 +0000'
|
|
|
* @example DateTime.local(2014, 7, 13).toRFC2822() //=> 'Sun, 13 Jul 2014 00:00:00 -0400'
|
|
|
* @return {string}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.toRFC2822 = function toRFC2822() {
|
|
|
return toTechFormat(this, "EEE, dd LLL yyyy HH:mm:ss ZZZ", false);
|
|
|
}
|
|
|
/**
|
|
|
* Returns a string representation of this DateTime appropriate for use in HTTP headers.
|
|
|
* Specifically, the string conforms to RFC 1123.
|
|
|
* @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1
|
|
|
* @example DateTime.utc(2014, 7, 13).toHTTP() //=> 'Sun, 13 Jul 2014 00:00:00 GMT'
|
|
|
* @example DateTime.utc(2014, 7, 13, 19).toHTTP() //=> 'Sun, 13 Jul 2014 19:00:00 GMT'
|
|
|
* @return {string}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.toHTTP = function toHTTP() {
|
|
|
return toTechFormat(this.toUTC(), "EEE, dd LLL yyyy HH:mm:ss 'GMT'");
|
|
|
}
|
|
|
/**
|
|
|
* Returns a string representation of this DateTime appropriate for use in SQL Date
|
|
|
* @example DateTime.utc(2014, 7, 13).toSQLDate() //=> '2014-07-13'
|
|
|
* @return {string}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.toSQLDate = function toSQLDate() {
|
|
|
return toTechFormat(this, "yyyy-MM-dd");
|
|
|
}
|
|
|
/**
|
|
|
* Returns a string representation of this DateTime appropriate for use in SQL Time
|
|
|
* @param {Object} opts - options
|
|
|
* @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset.
|
|
|
* @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'
|
|
|
* @example DateTime.utc().toSQL() //=> '05:15:16.345'
|
|
|
* @example DateTime.now().toSQL() //=> '05:15:16.345 -04:00'
|
|
|
* @example DateTime.now().toSQL({ includeOffset: false }) //=> '05:15:16.345'
|
|
|
* @example DateTime.now().toSQL({ includeZone: false }) //=> '05:15:16.345 America/New_York'
|
|
|
* @return {string}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.toSQLTime = function toSQLTime(_temp5) {
|
|
|
var _ref7 = _temp5 === void 0 ? {} : _temp5,
|
|
|
_ref7$includeOffset = _ref7.includeOffset,
|
|
|
includeOffset = _ref7$includeOffset === void 0 ? true : _ref7$includeOffset,
|
|
|
_ref7$includeZone = _ref7.includeZone,
|
|
|
includeZone = _ref7$includeZone === void 0 ? false : _ref7$includeZone;
|
|
|
|
|
|
return toTechTimeFormat(this, {
|
|
|
includeOffset: includeOffset,
|
|
|
includeZone: includeZone,
|
|
|
spaceZone: true
|
|
|
});
|
|
|
}
|
|
|
/**
|
|
|
* Returns a string representation of this DateTime appropriate for use in SQL DateTime
|
|
|
* @param {Object} opts - options
|
|
|
* @param {boolean} [opts.includeZone=false] - include the zone, such as 'America/New_York'. Overrides includeOffset.
|
|
|
* @param {boolean} [opts.includeOffset=true] - include the offset, such as 'Z' or '-04:00'
|
|
|
* @example DateTime.utc(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 Z'
|
|
|
* @example DateTime.local(2014, 7, 13).toSQL() //=> '2014-07-13 00:00:00.000 -04:00'
|
|
|
* @example DateTime.local(2014, 7, 13).toSQL({ includeOffset: false }) //=> '2014-07-13 00:00:00.000'
|
|
|
* @example DateTime.local(2014, 7, 13).toSQL({ includeZone: true }) //=> '2014-07-13 00:00:00.000 America/New_York'
|
|
|
* @return {string}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.toSQL = function toSQL(opts) {
|
|
|
if (opts === void 0) {
|
|
|
opts = {};
|
|
|
}
|
|
|
|
|
|
if (!this.isValid) {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
return this.toSQLDate() + " " + this.toSQLTime(opts);
|
|
|
}
|
|
|
/**
|
|
|
* Returns a string representation of this DateTime appropriate for debugging
|
|
|
* @return {string}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.toString = function toString() {
|
|
|
return this.isValid ? this.toISO() : INVALID;
|
|
|
}
|
|
|
/**
|
|
|
* Returns the epoch milliseconds of this DateTime. Alias of {@link DateTime.toMillis}
|
|
|
* @return {number}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.valueOf = function valueOf() {
|
|
|
return this.toMillis();
|
|
|
}
|
|
|
/**
|
|
|
* Returns the epoch milliseconds of this DateTime.
|
|
|
* @return {number}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.toMillis = function toMillis() {
|
|
|
return this.isValid ? this.ts : NaN;
|
|
|
}
|
|
|
/**
|
|
|
* Returns the epoch seconds of this DateTime.
|
|
|
* @return {number}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.toSeconds = function toSeconds() {
|
|
|
return this.isValid ? this.ts / 1000 : NaN;
|
|
|
}
|
|
|
/**
|
|
|
* Returns an ISO 8601 representation of this DateTime appropriate for use in JSON.
|
|
|
* @return {string}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.toJSON = function toJSON() {
|
|
|
return this.toISO();
|
|
|
}
|
|
|
/**
|
|
|
* Returns a BSON serializable equivalent to this DateTime.
|
|
|
* @return {Date}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.toBSON = function toBSON() {
|
|
|
return this.toJSDate();
|
|
|
}
|
|
|
/**
|
|
|
* Returns a JavaScript object with this DateTime's year, month, day, and so on.
|
|
|
* @param opts - options for generating the object
|
|
|
* @param {boolean} [opts.includeConfig=false] - include configuration attributes in the output
|
|
|
* @example DateTime.now().toObject() //=> { year: 2017, month: 4, day: 22, hour: 20, minute: 49, second: 42, millisecond: 268 }
|
|
|
* @return {Object}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.toObject = function toObject(opts) {
|
|
|
if (opts === void 0) {
|
|
|
opts = {};
|
|
|
}
|
|
|
|
|
|
if (!this.isValid) return {};
|
|
|
|
|
|
var base = _extends({}, this.c);
|
|
|
|
|
|
if (opts.includeConfig) {
|
|
|
base.outputCalendar = this.outputCalendar;
|
|
|
base.numberingSystem = this.loc.numberingSystem;
|
|
|
base.locale = this.loc.locale;
|
|
|
}
|
|
|
|
|
|
return base;
|
|
|
}
|
|
|
/**
|
|
|
* Returns a JavaScript Date equivalent to this DateTime.
|
|
|
* @return {Date}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.toJSDate = function toJSDate() {
|
|
|
return new Date(this.isValid ? this.ts : NaN);
|
|
|
} // COMPARE
|
|
|
|
|
|
/**
|
|
|
* Return the difference between two DateTimes as a Duration.
|
|
|
* @param {DateTime} otherDateTime - the DateTime to compare this one to
|
|
|
* @param {string|string[]} [unit=['milliseconds']] - the unit or array of units (such as 'hours' or 'days') to include in the duration.
|
|
|
* @param {Object} opts - options that affect the creation of the Duration
|
|
|
* @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use
|
|
|
* @example
|
|
|
* var i1 = DateTime.fromISO('1982-05-25T09:45'),
|
|
|
* i2 = DateTime.fromISO('1983-10-14T10:30');
|
|
|
* i2.diff(i1).toObject() //=> { milliseconds: 43807500000 }
|
|
|
* i2.diff(i1, 'hours').toObject() //=> { hours: 12168.75 }
|
|
|
* i2.diff(i1, ['months', 'days']).toObject() //=> { months: 16, days: 19.03125 }
|
|
|
* i2.diff(i1, ['months', 'days', 'hours']).toObject() //=> { months: 16, days: 19, hours: 0.75 }
|
|
|
* @return {Duration}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.diff = function diff(otherDateTime, unit, opts) {
|
|
|
if (unit === void 0) {
|
|
|
unit = "milliseconds";
|
|
|
}
|
|
|
|
|
|
if (opts === void 0) {
|
|
|
opts = {};
|
|
|
}
|
|
|
|
|
|
if (!this.isValid || !otherDateTime.isValid) {
|
|
|
return Duration.invalid("created by diffing an invalid DateTime");
|
|
|
}
|
|
|
|
|
|
var durOpts = _extends({
|
|
|
locale: this.locale,
|
|
|
numberingSystem: this.numberingSystem
|
|
|
}, opts);
|
|
|
|
|
|
var units = maybeArray(unit).map(Duration.normalizeUnit),
|
|
|
otherIsLater = otherDateTime.valueOf() > this.valueOf(),
|
|
|
earlier = otherIsLater ? this : otherDateTime,
|
|
|
later = otherIsLater ? otherDateTime : this,
|
|
|
diffed = _diff(earlier, later, units, durOpts);
|
|
|
|
|
|
return otherIsLater ? diffed.negate() : diffed;
|
|
|
}
|
|
|
/**
|
|
|
* Return the difference between this DateTime and right now.
|
|
|
* See {@link DateTime.diff}
|
|
|
* @param {string|string[]} [unit=['milliseconds']] - the unit or units units (such as 'hours' or 'days') to include in the duration
|
|
|
* @param {Object} opts - options that affect the creation of the Duration
|
|
|
* @param {string} [opts.conversionAccuracy='casual'] - the conversion system to use
|
|
|
* @return {Duration}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.diffNow = function diffNow(unit, opts) {
|
|
|
if (unit === void 0) {
|
|
|
unit = "milliseconds";
|
|
|
}
|
|
|
|
|
|
if (opts === void 0) {
|
|
|
opts = {};
|
|
|
}
|
|
|
|
|
|
return this.diff(DateTime.now(), unit, opts);
|
|
|
}
|
|
|
/**
|
|
|
* Return an Interval spanning between this DateTime and another DateTime
|
|
|
* @param {DateTime} otherDateTime - the other end point of the Interval
|
|
|
* @return {Interval}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.until = function until(otherDateTime) {
|
|
|
return this.isValid ? Interval.fromDateTimes(this, otherDateTime) : this;
|
|
|
}
|
|
|
/**
|
|
|
* Return whether this DateTime is in the same unit of time as another DateTime.
|
|
|
* Higher-order units must also be identical for this function to return `true`.
|
|
|
* Note that time zones are **ignored** in this comparison, which compares the **local** calendar time. Use {@link DateTime.setZone} to convert one of the dates if needed.
|
|
|
* @param {DateTime} otherDateTime - the other DateTime
|
|
|
* @param {string} unit - the unit of time to check sameness on
|
|
|
* @example DateTime.now().hasSame(otherDT, 'day'); //~> true if otherDT is in the same current calendar day
|
|
|
* @return {boolean}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.hasSame = function hasSame(otherDateTime, unit) {
|
|
|
if (!this.isValid) return false;
|
|
|
var inputMs = otherDateTime.valueOf();
|
|
|
var otherZoneDateTime = this.setZone(otherDateTime.zone, {
|
|
|
keepLocalTime: true
|
|
|
});
|
|
|
return otherZoneDateTime.startOf(unit) <= inputMs && inputMs <= otherZoneDateTime.endOf(unit);
|
|
|
}
|
|
|
/**
|
|
|
* Equality check
|
|
|
* Two DateTimes are equal iff they represent the same millisecond, have the same zone and location, and are both valid.
|
|
|
* To compare just the millisecond values, use `+dt1 === +dt2`.
|
|
|
* @param {DateTime} other - the other DateTime
|
|
|
* @return {boolean}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.equals = function equals(other) {
|
|
|
return this.isValid && other.isValid && this.valueOf() === other.valueOf() && this.zone.equals(other.zone) && this.loc.equals(other.loc);
|
|
|
}
|
|
|
/**
|
|
|
* Returns a string representation of a this time relative to now, such as "in two days". Can only internationalize if your
|
|
|
* platform supports Intl.RelativeTimeFormat. Rounds down by default.
|
|
|
* @param {Object} options - options that affect the output
|
|
|
* @param {DateTime} [options.base=DateTime.now()] - the DateTime to use as the basis to which this time is compared. Defaults to now.
|
|
|
* @param {string} [options.style="long"] - the style of units, must be "long", "short", or "narrow"
|
|
|
* @param {string|string[]} options.unit - use a specific unit or array of units; if omitted, or an array, the method will pick the best unit. Use an array or one of "years", "quarters", "months", "weeks", "days", "hours", "minutes", or "seconds"
|
|
|
* @param {boolean} [options.round=true] - whether to round the numbers in the output.
|
|
|
* @param {number} [options.padding=0] - padding in milliseconds. This allows you to round up the result if it fits inside the threshold. Don't use in combination with {round: false} because the decimal output will include the padding.
|
|
|
* @param {string} options.locale - override the locale of this DateTime
|
|
|
* @param {string} options.numberingSystem - override the numberingSystem of this DateTime. The Intl system may choose not to honor this
|
|
|
* @example DateTime.now().plus({ days: 1 }).toRelative() //=> "in 1 day"
|
|
|
* @example DateTime.now().setLocale("es").toRelative({ days: 1 }) //=> "dentro de 1 día"
|
|
|
* @example DateTime.now().plus({ days: 1 }).toRelative({ locale: "fr" }) //=> "dans 23 heures"
|
|
|
* @example DateTime.now().minus({ days: 2 }).toRelative() //=> "2 days ago"
|
|
|
* @example DateTime.now().minus({ days: 2 }).toRelative({ unit: "hours" }) //=> "48 hours ago"
|
|
|
* @example DateTime.now().minus({ hours: 36 }).toRelative({ round: false }) //=> "1.5 days ago"
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.toRelative = function toRelative(options) {
|
|
|
if (options === void 0) {
|
|
|
options = {};
|
|
|
}
|
|
|
|
|
|
if (!this.isValid) return null;
|
|
|
var base = options.base || DateTime.fromObject({}, {
|
|
|
zone: this.zone
|
|
|
}),
|
|
|
padding = options.padding ? this < base ? -options.padding : options.padding : 0;
|
|
|
var units = ["years", "months", "days", "hours", "minutes", "seconds"];
|
|
|
var unit = options.unit;
|
|
|
|
|
|
if (Array.isArray(options.unit)) {
|
|
|
units = options.unit;
|
|
|
unit = undefined;
|
|
|
}
|
|
|
|
|
|
return diffRelative(base, this.plus(padding), _extends({}, options, {
|
|
|
numeric: "always",
|
|
|
units: units,
|
|
|
unit: unit
|
|
|
}));
|
|
|
}
|
|
|
/**
|
|
|
* Returns a string representation of this date relative to today, such as "yesterday" or "next month".
|
|
|
* Only internationalizes on platforms that supports Intl.RelativeTimeFormat.
|
|
|
* @param {Object} options - options that affect the output
|
|
|
* @param {DateTime} [options.base=DateTime.now()] - the DateTime to use as the basis to which this time is compared. Defaults to now.
|
|
|
* @param {string} options.locale - override the locale of this DateTime
|
|
|
* @param {string} options.unit - use a specific unit; if omitted, the method will pick the unit. Use one of "years", "quarters", "months", "weeks", or "days"
|
|
|
* @param {string} options.numberingSystem - override the numberingSystem of this DateTime. The Intl system may choose not to honor this
|
|
|
* @example DateTime.now().plus({ days: 1 }).toRelativeCalendar() //=> "tomorrow"
|
|
|
* @example DateTime.now().setLocale("es").plus({ days: 1 }).toRelative() //=> ""mañana"
|
|
|
* @example DateTime.now().plus({ days: 1 }).toRelativeCalendar({ locale: "fr" }) //=> "demain"
|
|
|
* @example DateTime.now().minus({ days: 2 }).toRelativeCalendar() //=> "2 days ago"
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_proto.toRelativeCalendar = function toRelativeCalendar(options) {
|
|
|
if (options === void 0) {
|
|
|
options = {};
|
|
|
}
|
|
|
|
|
|
if (!this.isValid) return null;
|
|
|
return diffRelative(options.base || DateTime.fromObject({}, {
|
|
|
zone: this.zone
|
|
|
}), this, _extends({}, options, {
|
|
|
numeric: "auto",
|
|
|
units: ["years", "months", "days"],
|
|
|
calendary: true
|
|
|
}));
|
|
|
}
|
|
|
/**
|
|
|
* Return the min of several date times
|
|
|
* @param {...DateTime} dateTimes - the DateTimes from which to choose the minimum
|
|
|
* @return {DateTime} the min DateTime, or undefined if called with no argument
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
DateTime.min = function min() {
|
|
|
for (var _len = arguments.length, dateTimes = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
|
dateTimes[_key] = arguments[_key];
|
|
|
}
|
|
|
|
|
|
if (!dateTimes.every(DateTime.isDateTime)) {
|
|
|
throw new InvalidArgumentError("min requires all arguments be DateTimes");
|
|
|
}
|
|
|
|
|
|
return bestBy(dateTimes, function (i) {
|
|
|
return i.valueOf();
|
|
|
}, Math.min);
|
|
|
}
|
|
|
/**
|
|
|
* Return the max of several date times
|
|
|
* @param {...DateTime} dateTimes - the DateTimes from which to choose the maximum
|
|
|
* @return {DateTime} the max DateTime, or undefined if called with no argument
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
DateTime.max = function max() {
|
|
|
for (var _len2 = arguments.length, dateTimes = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
|
dateTimes[_key2] = arguments[_key2];
|
|
|
}
|
|
|
|
|
|
if (!dateTimes.every(DateTime.isDateTime)) {
|
|
|
throw new InvalidArgumentError("max requires all arguments be DateTimes");
|
|
|
}
|
|
|
|
|
|
return bestBy(dateTimes, function (i) {
|
|
|
return i.valueOf();
|
|
|
}, Math.max);
|
|
|
} // MISC
|
|
|
|
|
|
/**
|
|
|
* Explain how a string would be parsed by fromFormat()
|
|
|
* @param {string} text - the string to parse
|
|
|
* @param {string} fmt - the format the string is expected to be in (see description)
|
|
|
* @param {Object} options - options taken by fromFormat()
|
|
|
* @return {Object}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
DateTime.fromFormatExplain = function fromFormatExplain(text, fmt, options) {
|
|
|
if (options === void 0) {
|
|
|
options = {};
|
|
|
}
|
|
|
|
|
|
var _options = options,
|
|
|
_options$locale = _options.locale,
|
|
|
locale = _options$locale === void 0 ? null : _options$locale,
|
|
|
_options$numberingSys = _options.numberingSystem,
|
|
|
numberingSystem = _options$numberingSys === void 0 ? null : _options$numberingSys,
|
|
|
localeToUse = Locale.fromOpts({
|
|
|
locale: locale,
|
|
|
numberingSystem: numberingSystem,
|
|
|
defaultToEN: true
|
|
|
});
|
|
|
return explainFromTokens(localeToUse, text, fmt);
|
|
|
}
|
|
|
/**
|
|
|
* @deprecated use fromFormatExplain instead
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
DateTime.fromStringExplain = function fromStringExplain(text, fmt, options) {
|
|
|
if (options === void 0) {
|
|
|
options = {};
|
|
|
}
|
|
|
|
|
|
return DateTime.fromFormatExplain(text, fmt, options);
|
|
|
} // FORMAT PRESETS
|
|
|
|
|
|
/**
|
|
|
* {@link DateTime.toLocaleString} format like 10/14/1983
|
|
|
* @type {Object}
|
|
|
*/
|
|
|
;
|
|
|
|
|
|
_createClass(DateTime, [{
|
|
|
key: "isValid",
|
|
|
get: function get() {
|
|
|
return this.invalid === null;
|
|
|
}
|
|
|
/**
|
|
|
* Returns an error code if this DateTime is invalid, or null if the DateTime is valid
|
|
|
* @type {string}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "invalidReason",
|
|
|
get: function get() {
|
|
|
return this.invalid ? this.invalid.reason : null;
|
|
|
}
|
|
|
/**
|
|
|
* Returns an explanation of why this DateTime became invalid, or null if the DateTime is valid
|
|
|
* @type {string}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "invalidExplanation",
|
|
|
get: function get() {
|
|
|
return this.invalid ? this.invalid.explanation : null;
|
|
|
}
|
|
|
/**
|
|
|
* Get the locale of a DateTime, such 'en-GB'. The locale is used when formatting the DateTime
|
|
|
*
|
|
|
* @type {string}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "locale",
|
|
|
get: function get() {
|
|
|
return this.isValid ? this.loc.locale : null;
|
|
|
}
|
|
|
/**
|
|
|
* Get the numbering system of a DateTime, such 'beng'. The numbering system is used when formatting the DateTime
|
|
|
*
|
|
|
* @type {string}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "numberingSystem",
|
|
|
get: function get() {
|
|
|
return this.isValid ? this.loc.numberingSystem : null;
|
|
|
}
|
|
|
/**
|
|
|
* Get the output calendar of a DateTime, such 'islamic'. The output calendar is used when formatting the DateTime
|
|
|
*
|
|
|
* @type {string}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "outputCalendar",
|
|
|
get: function get() {
|
|
|
return this.isValid ? this.loc.outputCalendar : null;
|
|
|
}
|
|
|
/**
|
|
|
* Get the time zone associated with this DateTime.
|
|
|
* @type {Zone}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "zone",
|
|
|
get: function get() {
|
|
|
return this._zone;
|
|
|
}
|
|
|
/**
|
|
|
* Get the name of the time zone.
|
|
|
* @type {string}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "zoneName",
|
|
|
get: function get() {
|
|
|
return this.isValid ? this.zone.name : null;
|
|
|
}
|
|
|
/**
|
|
|
* Get the year
|
|
|
* @example DateTime.local(2017, 5, 25).year //=> 2017
|
|
|
* @type {number}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "year",
|
|
|
get: function get() {
|
|
|
return this.isValid ? this.c.year : NaN;
|
|
|
}
|
|
|
/**
|
|
|
* Get the quarter
|
|
|
* @example DateTime.local(2017, 5, 25).quarter //=> 2
|
|
|
* @type {number}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "quarter",
|
|
|
get: function get() {
|
|
|
return this.isValid ? Math.ceil(this.c.month / 3) : NaN;
|
|
|
}
|
|
|
/**
|
|
|
* Get the month (1-12).
|
|
|
* @example DateTime.local(2017, 5, 25).month //=> 5
|
|
|
* @type {number}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "month",
|
|
|
get: function get() {
|
|
|
return this.isValid ? this.c.month : NaN;
|
|
|
}
|
|
|
/**
|
|
|
* Get the day of the month (1-30ish).
|
|
|
* @example DateTime.local(2017, 5, 25).day //=> 25
|
|
|
* @type {number}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "day",
|
|
|
get: function get() {
|
|
|
return this.isValid ? this.c.day : NaN;
|
|
|
}
|
|
|
/**
|
|
|
* Get the hour of the day (0-23).
|
|
|
* @example DateTime.local(2017, 5, 25, 9).hour //=> 9
|
|
|
* @type {number}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "hour",
|
|
|
get: function get() {
|
|
|
return this.isValid ? this.c.hour : NaN;
|
|
|
}
|
|
|
/**
|
|
|
* Get the minute of the hour (0-59).
|
|
|
* @example DateTime.local(2017, 5, 25, 9, 30).minute //=> 30
|
|
|
* @type {number}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "minute",
|
|
|
get: function get() {
|
|
|
return this.isValid ? this.c.minute : NaN;
|
|
|
}
|
|
|
/**
|
|
|
* Get the second of the minute (0-59).
|
|
|
* @example DateTime.local(2017, 5, 25, 9, 30, 52).second //=> 52
|
|
|
* @type {number}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "second",
|
|
|
get: function get() {
|
|
|
return this.isValid ? this.c.second : NaN;
|
|
|
}
|
|
|
/**
|
|
|
* Get the millisecond of the second (0-999).
|
|
|
* @example DateTime.local(2017, 5, 25, 9, 30, 52, 654).millisecond //=> 654
|
|
|
* @type {number}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "millisecond",
|
|
|
get: function get() {
|
|
|
return this.isValid ? this.c.millisecond : NaN;
|
|
|
}
|
|
|
/**
|
|
|
* Get the week year
|
|
|
* @see https://en.wikipedia.org/wiki/ISO_week_date
|
|
|
* @example DateTime.local(2014, 12, 31).weekYear //=> 2015
|
|
|
* @type {number}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "weekYear",
|
|
|
get: function get() {
|
|
|
return this.isValid ? possiblyCachedWeekData(this).weekYear : NaN;
|
|
|
}
|
|
|
/**
|
|
|
* Get the week number of the week year (1-52ish).
|
|
|
* @see https://en.wikipedia.org/wiki/ISO_week_date
|
|
|
* @example DateTime.local(2017, 5, 25).weekNumber //=> 21
|
|
|
* @type {number}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "weekNumber",
|
|
|
get: function get() {
|
|
|
return this.isValid ? possiblyCachedWeekData(this).weekNumber : NaN;
|
|
|
}
|
|
|
/**
|
|
|
* Get the day of the week.
|
|
|
* 1 is Monday and 7 is Sunday
|
|
|
* @see https://en.wikipedia.org/wiki/ISO_week_date
|
|
|
* @example DateTime.local(2014, 11, 31).weekday //=> 4
|
|
|
* @type {number}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "weekday",
|
|
|
get: function get() {
|
|
|
return this.isValid ? possiblyCachedWeekData(this).weekday : NaN;
|
|
|
}
|
|
|
/**
|
|
|
* Get the ordinal (meaning the day of the year)
|
|
|
* @example DateTime.local(2017, 5, 25).ordinal //=> 145
|
|
|
* @type {number|DateTime}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "ordinal",
|
|
|
get: function get() {
|
|
|
return this.isValid ? gregorianToOrdinal(this.c).ordinal : NaN;
|
|
|
}
|
|
|
/**
|
|
|
* Get the human readable short month name, such as 'Oct'.
|
|
|
* Defaults to the system's locale if no locale has been specified
|
|
|
* @example DateTime.local(2017, 10, 30).monthShort //=> Oct
|
|
|
* @type {string}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "monthShort",
|
|
|
get: function get() {
|
|
|
return this.isValid ? Info.months("short", {
|
|
|
locObj: this.loc
|
|
|
})[this.month - 1] : null;
|
|
|
}
|
|
|
/**
|
|
|
* Get the human readable long month name, such as 'October'.
|
|
|
* Defaults to the system's locale if no locale has been specified
|
|
|
* @example DateTime.local(2017, 10, 30).monthLong //=> October
|
|
|
* @type {string}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "monthLong",
|
|
|
get: function get() {
|
|
|
return this.isValid ? Info.months("long", {
|
|
|
locObj: this.loc
|
|
|
})[this.month - 1] : null;
|
|
|
}
|
|
|
/**
|
|
|
* Get the human readable short weekday, such as 'Mon'.
|
|
|
* Defaults to the system's locale if no locale has been specified
|
|
|
* @example DateTime.local(2017, 10, 30).weekdayShort //=> Mon
|
|
|
* @type {string}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "weekdayShort",
|
|
|
get: function get() {
|
|
|
return this.isValid ? Info.weekdays("short", {
|
|
|
locObj: this.loc
|
|
|
})[this.weekday - 1] : null;
|
|
|
}
|
|
|
/**
|
|
|
* Get the human readable long weekday, such as 'Monday'.
|
|
|
* Defaults to the system's locale if no locale has been specified
|
|
|
* @example DateTime.local(2017, 10, 30).weekdayLong //=> Monday
|
|
|
* @type {string}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "weekdayLong",
|
|
|
get: function get() {
|
|
|
return this.isValid ? Info.weekdays("long", {
|
|
|
locObj: this.loc
|
|
|
})[this.weekday - 1] : null;
|
|
|
}
|
|
|
/**
|
|
|
* Get the UTC offset of this DateTime in minutes
|
|
|
* @example DateTime.now().offset //=> -240
|
|
|
* @example DateTime.utc().offset //=> 0
|
|
|
* @type {number}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "offset",
|
|
|
get: function get() {
|
|
|
return this.isValid ? +this.o : NaN;
|
|
|
}
|
|
|
/**
|
|
|
* Get the short human name for the zone's current offset, for example "EST" or "EDT".
|
|
|
* Defaults to the system's locale if no locale has been specified
|
|
|
* @type {string}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "offsetNameShort",
|
|
|
get: function get() {
|
|
|
if (this.isValid) {
|
|
|
return this.zone.offsetName(this.ts, {
|
|
|
format: "short",
|
|
|
locale: this.locale
|
|
|
});
|
|
|
} else {
|
|
|
return null;
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* Get the long human name for the zone's current offset, for example "Eastern Standard Time" or "Eastern Daylight Time".
|
|
|
* Defaults to the system's locale if no locale has been specified
|
|
|
* @type {string}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "offsetNameLong",
|
|
|
get: function get() {
|
|
|
if (this.isValid) {
|
|
|
return this.zone.offsetName(this.ts, {
|
|
|
format: "long",
|
|
|
locale: this.locale
|
|
|
});
|
|
|
} else {
|
|
|
return null;
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* Get whether this zone's offset ever changes, as in a DST.
|
|
|
* @type {boolean}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "isOffsetFixed",
|
|
|
get: function get() {
|
|
|
return this.isValid ? this.zone.isUniversal : null;
|
|
|
}
|
|
|
/**
|
|
|
* Get whether the DateTime is in a DST.
|
|
|
* @type {boolean}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "isInDST",
|
|
|
get: function get() {
|
|
|
if (this.isOffsetFixed) {
|
|
|
return false;
|
|
|
} else {
|
|
|
return this.offset > this.set({
|
|
|
month: 1
|
|
|
}).offset || this.offset > this.set({
|
|
|
month: 5
|
|
|
}).offset;
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* Returns true if this DateTime is in a leap year, false otherwise
|
|
|
* @example DateTime.local(2016).isInLeapYear //=> true
|
|
|
* @example DateTime.local(2013).isInLeapYear //=> false
|
|
|
* @type {boolean}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "isInLeapYear",
|
|
|
get: function get() {
|
|
|
return isLeapYear(this.year);
|
|
|
}
|
|
|
/**
|
|
|
* Returns the number of days in this DateTime's month
|
|
|
* @example DateTime.local(2016, 2).daysInMonth //=> 29
|
|
|
* @example DateTime.local(2016, 3).daysInMonth //=> 31
|
|
|
* @type {number}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "daysInMonth",
|
|
|
get: function get() {
|
|
|
return daysInMonth(this.year, this.month);
|
|
|
}
|
|
|
/**
|
|
|
* Returns the number of days in this DateTime's year
|
|
|
* @example DateTime.local(2016).daysInYear //=> 366
|
|
|
* @example DateTime.local(2013).daysInYear //=> 365
|
|
|
* @type {number}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "daysInYear",
|
|
|
get: function get() {
|
|
|
return this.isValid ? daysInYear(this.year) : NaN;
|
|
|
}
|
|
|
/**
|
|
|
* Returns the number of weeks in this DateTime's year
|
|
|
* @see https://en.wikipedia.org/wiki/ISO_week_date
|
|
|
* @example DateTime.local(2004).weeksInWeekYear //=> 53
|
|
|
* @example DateTime.local(2013).weeksInWeekYear //=> 52
|
|
|
* @type {number}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "weeksInWeekYear",
|
|
|
get: function get() {
|
|
|
return this.isValid ? weeksInWeekYear(this.weekYear) : NaN;
|
|
|
}
|
|
|
}], [{
|
|
|
key: "DATE_SHORT",
|
|
|
get: function get() {
|
|
|
return DATE_SHORT;
|
|
|
}
|
|
|
/**
|
|
|
* {@link DateTime.toLocaleString} format like 'Oct 14, 1983'
|
|
|
* @type {Object}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "DATE_MED",
|
|
|
get: function get() {
|
|
|
return DATE_MED;
|
|
|
}
|
|
|
/**
|
|
|
* {@link DateTime.toLocaleString} format like 'Fri, Oct 14, 1983'
|
|
|
* @type {Object}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "DATE_MED_WITH_WEEKDAY",
|
|
|
get: function get() {
|
|
|
return DATE_MED_WITH_WEEKDAY;
|
|
|
}
|
|
|
/**
|
|
|
* {@link DateTime.toLocaleString} format like 'October 14, 1983'
|
|
|
* @type {Object}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "DATE_FULL",
|
|
|
get: function get() {
|
|
|
return DATE_FULL;
|
|
|
}
|
|
|
/**
|
|
|
* {@link DateTime.toLocaleString} format like 'Tuesday, October 14, 1983'
|
|
|
* @type {Object}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "DATE_HUGE",
|
|
|
get: function get() {
|
|
|
return DATE_HUGE;
|
|
|
}
|
|
|
/**
|
|
|
* {@link DateTime.toLocaleString} format like '09:30 AM'. Only 12-hour if the locale is.
|
|
|
* @type {Object}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "TIME_SIMPLE",
|
|
|
get: function get() {
|
|
|
return TIME_SIMPLE;
|
|
|
}
|
|
|
/**
|
|
|
* {@link DateTime.toLocaleString} format like '09:30:23 AM'. Only 12-hour if the locale is.
|
|
|
* @type {Object}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "TIME_WITH_SECONDS",
|
|
|
get: function get() {
|
|
|
return TIME_WITH_SECONDS;
|
|
|
}
|
|
|
/**
|
|
|
* {@link DateTime.toLocaleString} format like '09:30:23 AM EDT'. Only 12-hour if the locale is.
|
|
|
* @type {Object}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "TIME_WITH_SHORT_OFFSET",
|
|
|
get: function get() {
|
|
|
return TIME_WITH_SHORT_OFFSET;
|
|
|
}
|
|
|
/**
|
|
|
* {@link DateTime.toLocaleString} format like '09:30:23 AM Eastern Daylight Time'. Only 12-hour if the locale is.
|
|
|
* @type {Object}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "TIME_WITH_LONG_OFFSET",
|
|
|
get: function get() {
|
|
|
return TIME_WITH_LONG_OFFSET;
|
|
|
}
|
|
|
/**
|
|
|
* {@link DateTime.toLocaleString} format like '09:30', always 24-hour.
|
|
|
* @type {Object}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "TIME_24_SIMPLE",
|
|
|
get: function get() {
|
|
|
return TIME_24_SIMPLE;
|
|
|
}
|
|
|
/**
|
|
|
* {@link DateTime.toLocaleString} format like '09:30:23', always 24-hour.
|
|
|
* @type {Object}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "TIME_24_WITH_SECONDS",
|
|
|
get: function get() {
|
|
|
return TIME_24_WITH_SECONDS;
|
|
|
}
|
|
|
/**
|
|
|
* {@link DateTime.toLocaleString} format like '09:30:23 EDT', always 24-hour.
|
|
|
* @type {Object}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "TIME_24_WITH_SHORT_OFFSET",
|
|
|
get: function get() {
|
|
|
return TIME_24_WITH_SHORT_OFFSET;
|
|
|
}
|
|
|
/**
|
|
|
* {@link DateTime.toLocaleString} format like '09:30:23 Eastern Daylight Time', always 24-hour.
|
|
|
* @type {Object}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "TIME_24_WITH_LONG_OFFSET",
|
|
|
get: function get() {
|
|
|
return TIME_24_WITH_LONG_OFFSET;
|
|
|
}
|
|
|
/**
|
|
|
* {@link DateTime.toLocaleString} format like '10/14/1983, 9:30 AM'. Only 12-hour if the locale is.
|
|
|
* @type {Object}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "DATETIME_SHORT",
|
|
|
get: function get() {
|
|
|
return DATETIME_SHORT;
|
|
|
}
|
|
|
/**
|
|
|
* {@link DateTime.toLocaleString} format like '10/14/1983, 9:30:33 AM'. Only 12-hour if the locale is.
|
|
|
* @type {Object}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "DATETIME_SHORT_WITH_SECONDS",
|
|
|
get: function get() {
|
|
|
return DATETIME_SHORT_WITH_SECONDS;
|
|
|
}
|
|
|
/**
|
|
|
* {@link DateTime.toLocaleString} format like 'Oct 14, 1983, 9:30 AM'. Only 12-hour if the locale is.
|
|
|
* @type {Object}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "DATETIME_MED",
|
|
|
get: function get() {
|
|
|
return DATETIME_MED;
|
|
|
}
|
|
|
/**
|
|
|
* {@link DateTime.toLocaleString} format like 'Oct 14, 1983, 9:30:33 AM'. Only 12-hour if the locale is.
|
|
|
* @type {Object}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "DATETIME_MED_WITH_SECONDS",
|
|
|
get: function get() {
|
|
|
return DATETIME_MED_WITH_SECONDS;
|
|
|
}
|
|
|
/**
|
|
|
* {@link DateTime.toLocaleString} format like 'Fri, 14 Oct 1983, 9:30 AM'. Only 12-hour if the locale is.
|
|
|
* @type {Object}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "DATETIME_MED_WITH_WEEKDAY",
|
|
|
get: function get() {
|
|
|
return DATETIME_MED_WITH_WEEKDAY;
|
|
|
}
|
|
|
/**
|
|
|
* {@link DateTime.toLocaleString} format like 'October 14, 1983, 9:30 AM EDT'. Only 12-hour if the locale is.
|
|
|
* @type {Object}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "DATETIME_FULL",
|
|
|
get: function get() {
|
|
|
return DATETIME_FULL;
|
|
|
}
|
|
|
/**
|
|
|
* {@link DateTime.toLocaleString} format like 'October 14, 1983, 9:30:33 AM EDT'. Only 12-hour if the locale is.
|
|
|
* @type {Object}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "DATETIME_FULL_WITH_SECONDS",
|
|
|
get: function get() {
|
|
|
return DATETIME_FULL_WITH_SECONDS;
|
|
|
}
|
|
|
/**
|
|
|
* {@link DateTime.toLocaleString} format like 'Friday, October 14, 1983, 9:30 AM Eastern Daylight Time'. Only 12-hour if the locale is.
|
|
|
* @type {Object}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "DATETIME_HUGE",
|
|
|
get: function get() {
|
|
|
return DATETIME_HUGE;
|
|
|
}
|
|
|
/**
|
|
|
* {@link DateTime.toLocaleString} format like 'Friday, October 14, 1983, 9:30:33 AM Eastern Daylight Time'. Only 12-hour if the locale is.
|
|
|
* @type {Object}
|
|
|
*/
|
|
|
|
|
|
}, {
|
|
|
key: "DATETIME_HUGE_WITH_SECONDS",
|
|
|
get: function get() {
|
|
|
return DATETIME_HUGE_WITH_SECONDS;
|
|
|
}
|
|
|
}]);
|
|
|
|
|
|
return DateTime;
|
|
|
}();
|
|
|
function friendlyDateTime(dateTimeish) {
|
|
|
if (DateTime.isDateTime(dateTimeish)) {
|
|
|
return dateTimeish;
|
|
|
} else if (dateTimeish && dateTimeish.valueOf && isNumber(dateTimeish.valueOf())) {
|
|
|
return DateTime.fromJSDate(dateTimeish);
|
|
|
} else if (dateTimeish && typeof dateTimeish === "object") {
|
|
|
return DateTime.fromObject(dateTimeish);
|
|
|
} else {
|
|
|
throw new InvalidArgumentError("Unknown datetime argument: " + dateTimeish + ", of type " + typeof dateTimeish);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
var VERSION = "2.0.2";
|
|
|
|
|
|
var DateTime_1 = luxon.DateTime = DateTime;
|
|
|
var Duration_1 = luxon.Duration = Duration;
|
|
|
luxon.FixedOffsetZone = FixedOffsetZone;
|
|
|
luxon.IANAZone = IANAZone;
|
|
|
luxon.Info = Info;
|
|
|
luxon.Interval = Interval;
|
|
|
luxon.InvalidZone = InvalidZone;
|
|
|
luxon.Settings = Settings;
|
|
|
luxon.SystemZone = SystemZone;
|
|
|
luxon.VERSION = VERSION;
|
|
|
luxon.Zone = Zone;
|
|
|
|
|
|
////////////////////
|
|
|
// Query Settings //
|
|
|
////////////////////
|
|
|
const DEFAULT_QUERY_SETTINGS = {
|
|
|
renderNullAs: "\\-",
|
|
|
warnOnEmptyResult: true,
|
|
|
refreshInterval: 1000,
|
|
|
defaultDateFormat: "MMMM dd, yyyy",
|
|
|
defaultDateTimeFormat: "h:mm a - MMMM dd, yyyy",
|
|
|
maxRecursiveRenderDepth: 6,
|
|
|
};
|
|
|
/** Default settings for dataview on install. */
|
|
|
const DEFAULT_SETTINGS = Object.assign(Object.assign({}, DEFAULT_QUERY_SETTINGS), {
|
|
|
inlineQueryPrefix: "=",
|
|
|
inlineJsQueryPrefix: "$=",
|
|
|
enableDataviewJs: true,
|
|
|
schemaVersion: 1,
|
|
|
});
|
|
|
|
|
|
/** Functional return type for error handling. */
|
|
|
class Success {
|
|
|
constructor(value) {
|
|
|
this.value = value;
|
|
|
this.successful = true;
|
|
|
}
|
|
|
map(f) {
|
|
|
return new Success(f(this.value));
|
|
|
}
|
|
|
flatMap(f) {
|
|
|
return f(this.value);
|
|
|
}
|
|
|
orElse(_value) {
|
|
|
return this.value;
|
|
|
}
|
|
|
orElseThrow(_message) {
|
|
|
return this.value;
|
|
|
}
|
|
|
}
|
|
|
class Failure {
|
|
|
constructor(error) {
|
|
|
this.error = error;
|
|
|
this.successful = false;
|
|
|
}
|
|
|
map(_f) {
|
|
|
return this;
|
|
|
}
|
|
|
flatMap(_f) {
|
|
|
return this;
|
|
|
}
|
|
|
orElse(value) {
|
|
|
return value;
|
|
|
}
|
|
|
orElseThrow(message) {
|
|
|
if (message)
|
|
|
throw new Error(message(this.error));
|
|
|
else
|
|
|
throw new Error("" + this.error);
|
|
|
}
|
|
|
}
|
|
|
var Result;
|
|
|
(function (Result) {
|
|
|
function success(value) {
|
|
|
return new Success(value);
|
|
|
}
|
|
|
Result.success = success;
|
|
|
function failure(error) {
|
|
|
return new Failure(error);
|
|
|
}
|
|
|
Result.failure = failure;
|
|
|
function flatMap2(first, second, f) {
|
|
|
if (first.successful) {
|
|
|
if (second.successful)
|
|
|
return f(first.value, second.value);
|
|
|
else
|
|
|
return failure(second.error);
|
|
|
}
|
|
|
else {
|
|
|
return failure(first.error);
|
|
|
}
|
|
|
}
|
|
|
Result.flatMap2 = flatMap2;
|
|
|
function map2(first, second, f) {
|
|
|
return flatMap2(first, second, (a, b) => success(f(a, b)));
|
|
|
}
|
|
|
Result.map2 = map2;
|
|
|
})(Result || (Result = {}));
|
|
|
|
|
|
/** Normalize a duration to all of the proper units. */
|
|
|
function normalizeDuration(dur) {
|
|
|
return dur.shiftTo("years", "months", "weeks", "days", "hours", "minutes", "seconds", "milliseconds").normalize();
|
|
|
}
|
|
|
/** Strip the time components of a date time object. */
|
|
|
function stripTime(dt) {
|
|
|
return DateTime_1.fromObject({
|
|
|
year: dt.year,
|
|
|
month: dt.month,
|
|
|
day: dt.day,
|
|
|
});
|
|
|
}
|
|
|
/** Get the folder containing the given path (i.e., like computing 'path/..') */
|
|
|
function getParentFolder(path) {
|
|
|
return path.split("/").slice(0, -1).join("/");
|
|
|
}
|
|
|
/** Get the "title" for a file, by stripping other parts of the path as well as the extension. */
|
|
|
function getFileTitle(path) {
|
|
|
if (path.includes("/"))
|
|
|
path = path.substring(path.lastIndexOf("/") + 1);
|
|
|
if (path.endsWith(".md"))
|
|
|
path = path.substring(0, path.length - 3);
|
|
|
return path;
|
|
|
}
|
|
|
/** Get the extension of a file from the file path. */
|
|
|
function getExtension(path) {
|
|
|
if (!path.includes("."))
|
|
|
return "";
|
|
|
return path.substring(path.lastIndexOf(".") + 1);
|
|
|
}
|
|
|
const ALLOWABLE_VAR_CHARACTERS = /[0-9\w\p{Letter}\p{Extended_Pictographic}\-]/u;
|
|
|
const WHITESPACE = /\s/;
|
|
|
/** Convert an arbitrary variable name into something JS/query friendly. */
|
|
|
function canonicalizeVarName(name) {
|
|
|
// Strip down to purely alphanumeric + spaces.
|
|
|
let result = "";
|
|
|
let lastWasWhitespace = false;
|
|
|
for (let index = 0; index < name.length; index++) {
|
|
|
let ch = name[index];
|
|
|
if (ch.match(WHITESPACE)) {
|
|
|
if (!lastWasWhitespace)
|
|
|
result += "-";
|
|
|
lastWasWhitespace = true;
|
|
|
continue;
|
|
|
}
|
|
|
lastWasWhitespace = false;
|
|
|
if (!ch.match(ALLOWABLE_VAR_CHARACTERS))
|
|
|
continue;
|
|
|
result += ch.toLocaleLowerCase();
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
|
/** Try calling the given function; on failure, return the error message. */
|
|
|
function tryOrPropogate(func) {
|
|
|
try {
|
|
|
return func();
|
|
|
}
|
|
|
catch (error) {
|
|
|
return Result.failure("" + error + "\n\n" + error.stack);
|
|
|
}
|
|
|
}
|
|
|
/** Try asynchronously calling the given function; on failure, return the error message. */
|
|
|
function asyncTryOrPropogate(func) {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
try {
|
|
|
return yield func();
|
|
|
}
|
|
|
catch (error) {
|
|
|
return Result.failure("" + error + "\n\n" + error.stack);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
/**
|
|
|
* Escape regex characters in a string.
|
|
|
* See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions.
|
|
|
*/
|
|
|
function escapeRegex(str) {
|
|
|
return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
|
}
|
|
|
|
|
|
/** A specific task. */
|
|
|
class Task {
|
|
|
constructor(init) {
|
|
|
Object.assign(this, init);
|
|
|
this.subtasks = (this.subtasks || []).map(t => new Task(t));
|
|
|
this.completedDate = init === null || init === void 0 ? void 0 : init.completedDate;
|
|
|
this.createdDate = init === null || init === void 0 ? void 0 : init.createdDate;
|
|
|
this.dueDate = init === null || init === void 0 ? void 0 : init.dueDate;
|
|
|
}
|
|
|
/** Create a task from a record. */
|
|
|
static fromObject(obj) {
|
|
|
return new Task(obj);
|
|
|
}
|
|
|
link() {
|
|
|
return `${this.path}#${this.blockId}`;
|
|
|
}
|
|
|
id() {
|
|
|
return `${this.path}-${this.line}`;
|
|
|
}
|
|
|
markdown() {
|
|
|
let bulletChar = `-`;
|
|
|
let stateChar = this.completed ? "x" : " ";
|
|
|
let result = `${bulletChar} [${stateChar}] ${this.text}`;
|
|
|
return result;
|
|
|
}
|
|
|
toObject() {
|
|
|
let result = {
|
|
|
text: this.text,
|
|
|
line: this.line,
|
|
|
path: this.path,
|
|
|
completed: this.completed,
|
|
|
fullyCompleted: this.fullyCompleted,
|
|
|
real: this.real,
|
|
|
blockId: this.blockId,
|
|
|
subtasks: this.subtasks.map(t => t.toObject()),
|
|
|
};
|
|
|
if (this.createdDate)
|
|
|
result.createdDate = this.createdDate;
|
|
|
if (this.dueDate)
|
|
|
result.dueDate = this.dueDate;
|
|
|
if (this.completedDate)
|
|
|
result.completedDate = this.completedDate;
|
|
|
return result;
|
|
|
}
|
|
|
}
|
|
|
/** An Obsidian link with all associated metadata. */
|
|
|
class Link {
|
|
|
constructor(fields) {
|
|
|
Object.assign(this, fields);
|
|
|
}
|
|
|
static file(path, embed = false, display) {
|
|
|
return new Link({
|
|
|
path,
|
|
|
embed,
|
|
|
display,
|
|
|
type: "file",
|
|
|
});
|
|
|
}
|
|
|
static header(path, header, embed, display) {
|
|
|
return new Link({
|
|
|
path,
|
|
|
embed,
|
|
|
display,
|
|
|
subpath: header,
|
|
|
type: "header",
|
|
|
});
|
|
|
}
|
|
|
static block(path, blockId, embed, display) {
|
|
|
return new Link({
|
|
|
path,
|
|
|
embed,
|
|
|
display,
|
|
|
subpath: blockId,
|
|
|
type: "block",
|
|
|
});
|
|
|
}
|
|
|
static fromObject(object) {
|
|
|
return new Link(object);
|
|
|
}
|
|
|
equals(other) {
|
|
|
return this.path == other.path && this.type == other.type && this.subpath == other.subpath;
|
|
|
}
|
|
|
toString() {
|
|
|
return this.markdown();
|
|
|
}
|
|
|
/** Convert this link to a raw object which */
|
|
|
toObject() {
|
|
|
return { path: this.path, type: this.type, subpath: this.subpath, display: this.display, embed: this.embed };
|
|
|
}
|
|
|
/** Return a new link which points to the same location but with a new display value. */
|
|
|
withDisplay(display) {
|
|
|
return new Link(Object.assign({}, this, { display }));
|
|
|
}
|
|
|
/** Convert this link to markdown so it can be rendered. */
|
|
|
markdown() {
|
|
|
let result = (this.embed ? "!" : "") + "[[" + this.path;
|
|
|
if (this.type == "header")
|
|
|
result += "#" + this.subpath;
|
|
|
else if (this.type == "block")
|
|
|
result += "^" + this.subpath;
|
|
|
if (this.display && !this.embed)
|
|
|
result += "|" + this.display;
|
|
|
else if (!this.embed)
|
|
|
result += "|" + getFileTitle(this.path);
|
|
|
result += "]]";
|
|
|
return result;
|
|
|
}
|
|
|
/** The stripped name of the file this link points into. */
|
|
|
fileName() {
|
|
|
return getFileTitle(this.path).replace(".md", "");
|
|
|
}
|
|
|
}
|
|
|
var Values;
|
|
|
(function (Values) {
|
|
|
/** Convert an arbitary value into a reasonable, Markdown-friendly string if possible. */
|
|
|
function toString(field, setting = DEFAULT_QUERY_SETTINGS, recursive = false) {
|
|
|
let wrapped = wrapValue(field);
|
|
|
if (!wrapped)
|
|
|
return "null";
|
|
|
switch (wrapped.type) {
|
|
|
case "string":
|
|
|
return wrapped.value;
|
|
|
case "number":
|
|
|
case "boolean":
|
|
|
case "html":
|
|
|
case "null":
|
|
|
return "" + wrapped.value;
|
|
|
case "link":
|
|
|
return wrapped.value.markdown();
|
|
|
case "task":
|
|
|
return wrapped.value.markdown();
|
|
|
case "function":
|
|
|
return "<function>";
|
|
|
case "array":
|
|
|
let result = "";
|
|
|
if (recursive)
|
|
|
result += "[";
|
|
|
result += wrapped.value.map(f => toString(f, setting, true)).join(", ");
|
|
|
if (recursive)
|
|
|
result += "]";
|
|
|
return result;
|
|
|
case "object":
|
|
|
return ("{ " +
|
|
|
Object.entries(wrapped.value)
|
|
|
.map(e => e[0] + ": " + toString(e[1], setting, true))
|
|
|
.join(", ") +
|
|
|
" }");
|
|
|
case "date":
|
|
|
if (wrapped.value.second == 0 && wrapped.value.hour == 0 && wrapped.value.minute == 0) {
|
|
|
return wrapped.value.toFormat(setting.defaultDateFormat);
|
|
|
}
|
|
|
return wrapped.value.toFormat(setting.defaultDateTimeFormat);
|
|
|
case "duration":
|
|
|
return wrapped.value.toISOTime();
|
|
|
}
|
|
|
}
|
|
|
Values.toString = toString;
|
|
|
/** Wrap a literal value so you can switch on it easily. */
|
|
|
function wrapValue(val) {
|
|
|
if (isNull(val))
|
|
|
return { type: "null", value: val };
|
|
|
else if (isNumber(val))
|
|
|
return { type: "number", value: val };
|
|
|
else if (isString(val))
|
|
|
return { type: "string", value: val };
|
|
|
else if (isBoolean(val))
|
|
|
return { type: "boolean", value: val };
|
|
|
else if (isDuration(val))
|
|
|
return { type: "duration", value: val };
|
|
|
else if (isDate(val))
|
|
|
return { type: "date", value: val };
|
|
|
else if (isHtml(val))
|
|
|
return { type: "html", value: val };
|
|
|
else if (isArray(val))
|
|
|
return { type: "array", value: val };
|
|
|
else if (isLink(val))
|
|
|
return { type: "link", value: val };
|
|
|
else if (isTask(val))
|
|
|
return { type: "task", value: val };
|
|
|
else if (isFunction(val))
|
|
|
return { type: "function", value: val };
|
|
|
else if (isObject(val))
|
|
|
return { type: "object", value: val };
|
|
|
else
|
|
|
return undefined;
|
|
|
}
|
|
|
Values.wrapValue = wrapValue;
|
|
|
/** Compare two arbitrary JavaScript values. Produces a total ordering over ANY possible dataview value. */
|
|
|
function compareValue(val1, val2, linkNormalizer) {
|
|
|
// Handle undefined/nulls first.
|
|
|
if (val1 === undefined)
|
|
|
val1 = null;
|
|
|
if (val2 === undefined)
|
|
|
val2 = null;
|
|
|
if (val1 === null && val2 === null)
|
|
|
return 0;
|
|
|
else if (val1 === null)
|
|
|
return -1;
|
|
|
else if (val2 === null)
|
|
|
return 1;
|
|
|
// A non-null value now which we can wrap & compare on.
|
|
|
let wrap1 = wrapValue(val1);
|
|
|
let wrap2 = wrapValue(val2);
|
|
|
if (wrap1 === undefined && wrap2 === undefined)
|
|
|
return 0;
|
|
|
else if (wrap1 === undefined)
|
|
|
return -1;
|
|
|
else if (wrap2 === undefined)
|
|
|
return 1;
|
|
|
if (wrap1.type != wrap2.type)
|
|
|
return wrap1.type.localeCompare(wrap2.type);
|
|
|
switch (wrap1.type) {
|
|
|
case "string":
|
|
|
return wrap1.value.localeCompare(wrap2.value);
|
|
|
case "number":
|
|
|
if (wrap1.value < wrap2.value)
|
|
|
return -1;
|
|
|
else if (wrap1.value == wrap2.value)
|
|
|
return 0;
|
|
|
return 1;
|
|
|
case "null":
|
|
|
return 0;
|
|
|
case "boolean":
|
|
|
if (wrap1.value == wrap2.value)
|
|
|
return 0;
|
|
|
else
|
|
|
return wrap1.value ? 1 : -1;
|
|
|
case "link":
|
|
|
let link1 = wrap1.value;
|
|
|
let link2 = wrap2.value;
|
|
|
let normalize = linkNormalizer !== null && linkNormalizer !== void 0 ? linkNormalizer : ((x) => x);
|
|
|
// We can't compare by file name or display, since that would break link equality.
|
|
|
return normalize(link1.path).localeCompare(normalize(link2.path));
|
|
|
case "task":
|
|
|
let task1 = wrap1.value;
|
|
|
let task2 = wrap2.value;
|
|
|
// Use object comparison & compare the unique identifiers (path, line, and text as backup).
|
|
|
return compareValue({ path: task1.path, line: task1.line, text: task1.text }, { path: task2.path, line: task2.line, text: task2.text });
|
|
|
case "date":
|
|
|
return wrap1.value < wrap2.value
|
|
|
? -1
|
|
|
: wrap1.value.equals(wrap2.value)
|
|
|
? 0
|
|
|
: 1;
|
|
|
case "duration":
|
|
|
return wrap1.value < wrap2.value
|
|
|
? -1
|
|
|
: wrap1.value.equals(wrap2.value)
|
|
|
? 0
|
|
|
: 1;
|
|
|
case "array":
|
|
|
let f1 = wrap1.value;
|
|
|
let f2 = wrap2.value;
|
|
|
for (let index = 0; index < Math.min(f1.length, f2.length); index++) {
|
|
|
let comp = compareValue(f1[index], f2[index]);
|
|
|
if (comp != 0)
|
|
|
return comp;
|
|
|
}
|
|
|
return f1.length - f2.length;
|
|
|
case "object":
|
|
|
let o1 = wrap1.value;
|
|
|
let o2 = wrap2.value;
|
|
|
let k1 = Array.from(Object.keys(o1));
|
|
|
let k2 = Array.from(Object.keys(o2));
|
|
|
k1.sort();
|
|
|
k2.sort();
|
|
|
let keyCompare = compareValue(k1, k2);
|
|
|
if (keyCompare != 0)
|
|
|
return keyCompare;
|
|
|
for (let key of k1) {
|
|
|
let comp = compareValue(o1[key], o2[key]);
|
|
|
if (comp != 0)
|
|
|
return comp;
|
|
|
}
|
|
|
return 0;
|
|
|
case "html":
|
|
|
return 0;
|
|
|
case "function":
|
|
|
return 0;
|
|
|
}
|
|
|
}
|
|
|
Values.compareValue = compareValue;
|
|
|
/** Find the corresponding Dataveiw type for an arbitrary value. */
|
|
|
function typeOf(val) {
|
|
|
var _a;
|
|
|
return (_a = wrapValue(val)) === null || _a === void 0 ? void 0 : _a.type;
|
|
|
}
|
|
|
Values.typeOf = typeOf;
|
|
|
/** Determine if the given value is "truthy" (i.e., is non-null and has data in it). */
|
|
|
function isTruthy(field) {
|
|
|
let wrapped = wrapValue(field);
|
|
|
if (!wrapped)
|
|
|
return false;
|
|
|
switch (wrapped.type) {
|
|
|
case "number":
|
|
|
return wrapped.value != 0;
|
|
|
case "string":
|
|
|
return wrapped.value.length > 0;
|
|
|
case "boolean":
|
|
|
return wrapped.value;
|
|
|
case "link":
|
|
|
return !!wrapped.value.path;
|
|
|
case "task":
|
|
|
return wrapped.value.text.length > 0;
|
|
|
case "date":
|
|
|
return wrapped.value.toMillis() != 0;
|
|
|
case "duration":
|
|
|
return wrapped.value.as("seconds") != 0;
|
|
|
case "object":
|
|
|
return Object.keys(wrapped.value).length > 0;
|
|
|
case "array":
|
|
|
return wrapped.value.length > 0;
|
|
|
case "null":
|
|
|
return false;
|
|
|
case "html":
|
|
|
return true;
|
|
|
case "function":
|
|
|
return true;
|
|
|
}
|
|
|
}
|
|
|
Values.isTruthy = isTruthy;
|
|
|
/** Deep copy a field. */
|
|
|
function deepCopy(field) {
|
|
|
if (field === null || field === undefined)
|
|
|
return field;
|
|
|
if (Values.isArray(field)) {
|
|
|
return [].concat(field.map(v => deepCopy(v)));
|
|
|
}
|
|
|
else if (Values.isObject(field)) {
|
|
|
let result = {};
|
|
|
for (let [key, value] of Object.entries(field))
|
|
|
result[key] = deepCopy(value);
|
|
|
return result;
|
|
|
}
|
|
|
else {
|
|
|
return field;
|
|
|
}
|
|
|
}
|
|
|
Values.deepCopy = deepCopy;
|
|
|
function isString(val) {
|
|
|
return typeof val == "string";
|
|
|
}
|
|
|
Values.isString = isString;
|
|
|
function isNumber(val) {
|
|
|
return typeof val == "number";
|
|
|
}
|
|
|
Values.isNumber = isNumber;
|
|
|
function isDate(val) {
|
|
|
return val instanceof DateTime_1;
|
|
|
}
|
|
|
Values.isDate = isDate;
|
|
|
function isDuration(val) {
|
|
|
return val instanceof Duration_1;
|
|
|
}
|
|
|
Values.isDuration = isDuration;
|
|
|
function isNull(val) {
|
|
|
return val === null || val === undefined;
|
|
|
}
|
|
|
Values.isNull = isNull;
|
|
|
function isArray(val) {
|
|
|
return Array.isArray(val);
|
|
|
}
|
|
|
Values.isArray = isArray;
|
|
|
function isBoolean(val) {
|
|
|
return typeof val === "boolean";
|
|
|
}
|
|
|
Values.isBoolean = isBoolean;
|
|
|
function isLink(val) {
|
|
|
return val instanceof Link;
|
|
|
}
|
|
|
Values.isLink = isLink;
|
|
|
function isTask(val) {
|
|
|
return val instanceof Task;
|
|
|
}
|
|
|
Values.isTask = isTask;
|
|
|
function isHtml(val) {
|
|
|
if (typeof HTMLElement !== "undefined") {
|
|
|
return val instanceof HTMLElement;
|
|
|
}
|
|
|
else {
|
|
|
return false;
|
|
|
}
|
|
|
}
|
|
|
Values.isHtml = isHtml;
|
|
|
function isObject(val) {
|
|
|
return (typeof val == "object" &&
|
|
|
!isHtml(val) &&
|
|
|
!isArray(val) &&
|
|
|
!isDuration(val) &&
|
|
|
!isDate(val) &&
|
|
|
!isLink(val) &&
|
|
|
!isTask(val));
|
|
|
}
|
|
|
Values.isObject = isObject;
|
|
|
function isFunction(val) {
|
|
|
return typeof val == "function";
|
|
|
}
|
|
|
Values.isFunction = isFunction;
|
|
|
})(Values || (Values = {}));
|
|
|
var TransferableValues;
|
|
|
(function (TransferableValues) {
|
|
|
/** Convert a literal value to a serializer-friendly transferable value. Does not work for all types. */
|
|
|
function transferable(value) {
|
|
|
let wrapped = Values.wrapValue(value);
|
|
|
if (wrapped === undefined)
|
|
|
return undefined;
|
|
|
switch (wrapped.type) {
|
|
|
case "null":
|
|
|
case "number":
|
|
|
case "string":
|
|
|
case "boolean":
|
|
|
return wrapped.value;
|
|
|
case "date":
|
|
|
return {
|
|
|
"___transfer-type": "date",
|
|
|
value: wrapped.value.toObject(),
|
|
|
options: { zone: wrapped.value.zoneName },
|
|
|
};
|
|
|
case "duration":
|
|
|
return { "___transfer-type": "duration", value: wrapped.value.toObject() };
|
|
|
case "array":
|
|
|
return wrapped.value.map(v => transferable(v));
|
|
|
case "object":
|
|
|
let result = {};
|
|
|
for (let [key, value] of Object.entries(wrapped.value))
|
|
|
result[key] = transferable(value);
|
|
|
return result;
|
|
|
case "link":
|
|
|
return { "___transfer-type": "link", value: wrapped.value.toObject() };
|
|
|
case "task":
|
|
|
return { "___transfer-type": "task", value: transferable(wrapped.value.toObject()) };
|
|
|
default:
|
|
|
return undefined;
|
|
|
}
|
|
|
}
|
|
|
TransferableValues.transferable = transferable;
|
|
|
/** Convert a transferable value back to a literal value we can work with. */
|
|
|
function value(transferable) {
|
|
|
if (transferable === null || transferable === undefined) {
|
|
|
return null;
|
|
|
}
|
|
|
else if (Array.isArray(transferable)) {
|
|
|
return transferable.map(v => value(v));
|
|
|
}
|
|
|
else if (typeof transferable === "object") {
|
|
|
if ("___transfer-type" in transferable) {
|
|
|
switch (transferable["___transfer-type"]) {
|
|
|
case "date":
|
|
|
return DateTime_1.fromObject(value(transferable.value), value(transferable.options || {}));
|
|
|
case "duration":
|
|
|
return Duration_1.fromObject(value(transferable.value));
|
|
|
case "link":
|
|
|
return Link.fromObject(value(transferable.value));
|
|
|
case "task":
|
|
|
return Task.fromObject(value(transferable.value));
|
|
|
default:
|
|
|
throw Error(`Unrecognized transfer type '${transferable["___transfer-type"]}`);
|
|
|
}
|
|
|
}
|
|
|
let result = {};
|
|
|
for (let [key, value] of Object.entries(transferable))
|
|
|
result[key] = TransferableValues.value(value);
|
|
|
return result;
|
|
|
}
|
|
|
return transferable;
|
|
|
}
|
|
|
TransferableValues.value = value;
|
|
|
})(TransferableValues || (TransferableValues = {}));
|
|
|
var Groupings;
|
|
|
(function (Groupings) {
|
|
|
function base(value) {
|
|
|
return { type: "base", value };
|
|
|
}
|
|
|
Groupings.base = base;
|
|
|
function grouped(values) {
|
|
|
return { type: "grouped", groups: values };
|
|
|
}
|
|
|
Groupings.grouped = grouped;
|
|
|
})(Groupings || (Groupings = {}));
|
|
|
|
|
|
/** Implementation of DataArray, minus the dynamic variable access, which is implemented via proxy. */
|
|
|
class DataArrayImpl {
|
|
|
constructor(values, settings, defaultComparator = Values.compareValue) {
|
|
|
this.values = values;
|
|
|
this.settings = settings;
|
|
|
this.defaultComparator = defaultComparator;
|
|
|
this.length = values.length;
|
|
|
}
|
|
|
static wrap(arr, settings, defaultComparator = Values.compareValue) {
|
|
|
return new Proxy(new DataArrayImpl(arr, settings, defaultComparator), DataArrayImpl.ARRAY_PROXY);
|
|
|
}
|
|
|
lwrap(values) {
|
|
|
return DataArrayImpl.wrap(values, this.settings, this.defaultComparator);
|
|
|
}
|
|
|
where(predicate) {
|
|
|
return this.lwrap(this.values.filter(predicate));
|
|
|
}
|
|
|
filter(predicate) {
|
|
|
return this.where(predicate);
|
|
|
}
|
|
|
map(f) {
|
|
|
return this.lwrap(this.values.map(f));
|
|
|
}
|
|
|
flatMap(f) {
|
|
|
let result = [];
|
|
|
for (let index = 0; index < this.length; index++) {
|
|
|
let value = f(this.values[index], index, this.values);
|
|
|
if (!value || value.length == 0)
|
|
|
continue;
|
|
|
for (let r of value)
|
|
|
result.push(r);
|
|
|
}
|
|
|
return this.lwrap(result);
|
|
|
}
|
|
|
mutate(f) {
|
|
|
this.values.forEach(f);
|
|
|
return this;
|
|
|
}
|
|
|
limit(count) {
|
|
|
return this.lwrap(this.values.slice(0, count));
|
|
|
}
|
|
|
slice(start, end) {
|
|
|
return this.lwrap(this.values.slice(start, end));
|
|
|
}
|
|
|
concat(other) {
|
|
|
return this.lwrap(this.values.concat(other.values));
|
|
|
}
|
|
|
/** Return the first index of the given (optionally starting the search) */
|
|
|
indexOf(element, fromIndex) {
|
|
|
return this.findIndex(e => this.defaultComparator(e, element) == 0, fromIndex);
|
|
|
}
|
|
|
/** Return the first element that satisfies the given predicate. */
|
|
|
find(pred) {
|
|
|
let index = this.findIndex(pred);
|
|
|
if (index == -1)
|
|
|
return undefined;
|
|
|
else
|
|
|
return this.values[index];
|
|
|
}
|
|
|
findIndex(pred, fromIndex) {
|
|
|
for (let index = fromIndex !== null && fromIndex !== void 0 ? fromIndex : 0; index < this.length; index++) {
|
|
|
if (pred(this.values[index], index, this.values))
|
|
|
return index;
|
|
|
}
|
|
|
return -1;
|
|
|
}
|
|
|
includes(element) {
|
|
|
return this.indexOf(element, 0) != -1;
|
|
|
}
|
|
|
join(sep) {
|
|
|
return this.map(s => Values.toString(s, this.settings))
|
|
|
.array()
|
|
|
.join(sep !== null && sep !== void 0 ? sep : ", ");
|
|
|
}
|
|
|
sort(key, direction, comparator) {
|
|
|
if (this.values.length == 0)
|
|
|
return this;
|
|
|
let realComparator = comparator !== null && comparator !== void 0 ? comparator : this.defaultComparator;
|
|
|
// Associate each entry with it's index for the key function, and then do a normal sort.
|
|
|
let copy = [].concat(this.array()).map((elem, index) => {
|
|
|
return { index: index, value: elem };
|
|
|
});
|
|
|
copy.sort((a, b) => {
|
|
|
let aKey = key(a.value, a.index, this.values);
|
|
|
let bKey = key(b.value, b.index, this.values);
|
|
|
return direction === "desc" ? -realComparator(aKey, bKey) : realComparator(aKey, bKey);
|
|
|
});
|
|
|
return this.lwrap(copy.map(e => e.value));
|
|
|
}
|
|
|
groupBy(key, comparator) {
|
|
|
if (this.values.length == 0)
|
|
|
return this.lwrap([]);
|
|
|
// JavaScript sucks and we can't make hash maps over arbitrary types (only strings/ints), so
|
|
|
// we do a poor man algorithm where we SORT, followed by grouping.
|
|
|
let intermediate = this.sort(key, "asc", comparator);
|
|
|
comparator = comparator !== null && comparator !== void 0 ? comparator : this.defaultComparator;
|
|
|
let result = [];
|
|
|
let currentRow = [intermediate[0]];
|
|
|
let current = key(intermediate[0], 0, intermediate.values);
|
|
|
for (let index = 1; index < intermediate.length; index++) {
|
|
|
let newKey = key(intermediate[index], index, intermediate.values);
|
|
|
if (comparator(current, newKey) != 0) {
|
|
|
result.push({ key: current, rows: this.lwrap(currentRow) });
|
|
|
current = newKey;
|
|
|
currentRow = [intermediate[index]];
|
|
|
}
|
|
|
else {
|
|
|
currentRow.push(intermediate[index]);
|
|
|
}
|
|
|
}
|
|
|
result.push({ key: current, rows: this.lwrap(currentRow) });
|
|
|
return this.lwrap(result);
|
|
|
}
|
|
|
distinct(key, comparator) {
|
|
|
if (this.values.length == 0)
|
|
|
return this;
|
|
|
let realKey = key !== null && key !== void 0 ? key : (x => x);
|
|
|
// For similar reasons to groupBy, do a sort and take the first element of each block.
|
|
|
let intermediate = this.map((x, index) => {
|
|
|
return { key: realKey(x, index, this.values), value: x };
|
|
|
}).sort(x => x.key, "asc", comparator);
|
|
|
comparator = comparator !== null && comparator !== void 0 ? comparator : this.defaultComparator;
|
|
|
let result = [intermediate[0].value];
|
|
|
for (let index = 1; index < intermediate.length; index++) {
|
|
|
if (comparator(intermediate[index - 1].key, intermediate[index].key) != 0) {
|
|
|
result.push(intermediate[index].value);
|
|
|
}
|
|
|
}
|
|
|
return this.lwrap(result);
|
|
|
}
|
|
|
every(f) {
|
|
|
return this.values.every(f);
|
|
|
}
|
|
|
some(f) {
|
|
|
return this.values.some(f);
|
|
|
}
|
|
|
none(f) {
|
|
|
return this.values.every((v, i, a) => !f(v, i, a));
|
|
|
}
|
|
|
first() {
|
|
|
return this.values.length > 0 ? this.values[0] : undefined;
|
|
|
}
|
|
|
last() {
|
|
|
return this.values.length > 0 ? this.values[this.values.length - 1] : undefined;
|
|
|
}
|
|
|
to(key) {
|
|
|
let result = [];
|
|
|
for (let child of this.values) {
|
|
|
let value = child[key];
|
|
|
if (value === undefined || value === null)
|
|
|
continue;
|
|
|
if (Array.isArray(value) || DataArray.isDataArray(value))
|
|
|
value.forEach(v => result.push(v));
|
|
|
else
|
|
|
result.push(value);
|
|
|
}
|
|
|
return this.lwrap(result);
|
|
|
}
|
|
|
expand(key) {
|
|
|
let result = [];
|
|
|
let queue = [].concat(this.values);
|
|
|
while (queue.length > 0) {
|
|
|
let next = queue.pop();
|
|
|
let value = next[key];
|
|
|
if (value === undefined || value === null)
|
|
|
continue;
|
|
|
if (Array.isArray(value))
|
|
|
value.forEach(v => queue.push(v));
|
|
|
else if (value instanceof DataArrayImpl)
|
|
|
value.forEach(v => queue.push(v));
|
|
|
else
|
|
|
queue.push(value);
|
|
|
result.push(next);
|
|
|
}
|
|
|
return this.lwrap(result);
|
|
|
}
|
|
|
forEach(f) {
|
|
|
for (let index = 0; index < this.values.length; index++) {
|
|
|
f(this.values[index], index, this.values);
|
|
|
}
|
|
|
}
|
|
|
array() {
|
|
|
return [].concat(this.values);
|
|
|
}
|
|
|
[Symbol.iterator]() {
|
|
|
return this.values[Symbol.iterator]();
|
|
|
}
|
|
|
toString() {
|
|
|
return this.values.toString();
|
|
|
}
|
|
|
}
|
|
|
DataArrayImpl.ARRAY_FUNCTIONS = new Set([
|
|
|
"where",
|
|
|
"filter",
|
|
|
"map",
|
|
|
"flatMap",
|
|
|
"mutate",
|
|
|
"slice",
|
|
|
"concat",
|
|
|
"indexOf",
|
|
|
"limit",
|
|
|
"find",
|
|
|
"findIndex",
|
|
|
"includes",
|
|
|
"join",
|
|
|
"sort",
|
|
|
"groupBy",
|
|
|
"distinct",
|
|
|
"every",
|
|
|
"some",
|
|
|
"none",
|
|
|
"first",
|
|
|
"last",
|
|
|
"to",
|
|
|
"lwrap",
|
|
|
"expand",
|
|
|
"forEach",
|
|
|
"length",
|
|
|
"values",
|
|
|
"array",
|
|
|
"defaultComparator",
|
|
|
"toString",
|
|
|
]);
|
|
|
DataArrayImpl.ARRAY_PROXY = {
|
|
|
get: function (target, prop, reciever) {
|
|
|
if (typeof prop === "symbol")
|
|
|
return target[prop];
|
|
|
else if (typeof prop === "number")
|
|
|
return target.values[prop];
|
|
|
else if (!isNaN(parseInt(prop)))
|
|
|
return target.values[parseInt(prop)];
|
|
|
else if (DataArrayImpl.ARRAY_FUNCTIONS.has(prop.toString()))
|
|
|
return target[prop.toString()];
|
|
|
return target.to(prop);
|
|
|
},
|
|
|
};
|
|
|
/** Provides utility functions for generating data arrays. */
|
|
|
var DataArray;
|
|
|
(function (DataArray) {
|
|
|
/** Create a new Dataview data array. */
|
|
|
function wrap(raw, settings) {
|
|
|
return DataArrayImpl.wrap(raw, settings);
|
|
|
}
|
|
|
DataArray.wrap = wrap;
|
|
|
/** Create a new DataArray from an iterable object. */
|
|
|
function from(raw, settings) {
|
|
|
let data = [];
|
|
|
for (let elem of raw)
|
|
|
data.push(elem);
|
|
|
return DataArrayImpl.wrap(data, settings);
|
|
|
}
|
|
|
DataArray.from = from;
|
|
|
/** Return true if the given object is a data array. */
|
|
|
function isDataArray(obj) {
|
|
|
return obj instanceof DataArrayImpl;
|
|
|
}
|
|
|
DataArray.isDataArray = isDataArray;
|
|
|
})(DataArray || (DataArray = {}));
|
|
|
|
|
|
/** Test-environment-friendly function which fetches the current system locale. */
|
|
|
function currentLocale() {
|
|
|
if (typeof window === "undefined")
|
|
|
return "en-US";
|
|
|
return window.navigator.language;
|
|
|
}
|
|
|
|
|
|
/** Render simple fields compactly, removing wrapping content like paragraph and span. */
|
|
|
function renderCompactMarkdown(markdown, container, sourcePath, component) {
|
|
|
var _a, _b;
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
let subcontainer = container.createSpan();
|
|
|
yield obsidian.MarkdownRenderer.renderMarkdown(markdown, subcontainer, sourcePath, component);
|
|
|
if (subcontainer.children.length == 1 && subcontainer.querySelector("p")) {
|
|
|
subcontainer.innerHTML = (_b = (_a = subcontainer.querySelector("p")) === null || _a === void 0 ? void 0 : _a.innerHTML) !== null && _b !== void 0 ? _b : "";
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
/** Create a list inside the given container, with the given data. */
|
|
|
function renderList(container, elements, component, originFile, settings) {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
let listEl = container.createEl("ul", { cls: ["dataview", "list-view-ul"] });
|
|
|
for (let elem of elements) {
|
|
|
let li = listEl.createEl("li");
|
|
|
yield renderValue(elem, li, originFile, component, settings, true, "list");
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
/** Create a table inside the given container, with the given data. */
|
|
|
function renderTable(container, headers, values, component, originFile, settings) {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
let tableEl = container.createEl("table", { cls: ["dataview", "table-view-table"] });
|
|
|
let theadEl = tableEl.createEl("thead", { cls: "table-view-thead" });
|
|
|
let headerEl = theadEl.createEl("tr", { cls: "table-view-tr-header" });
|
|
|
for (let header of headers) {
|
|
|
headerEl.createEl("th", { text: header, cls: "table-view-th" });
|
|
|
}
|
|
|
let tbodyEl = tableEl.createEl("tbody", { cls: "table-view-tbody" });
|
|
|
for (let row of values) {
|
|
|
let rowEl = tbodyEl.createEl("tr");
|
|
|
for (let value of row) {
|
|
|
let td = rowEl.createEl("td");
|
|
|
yield renderValue(value, td, originFile, component, settings, true);
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
/** Render a pre block with an error in it; returns the element to allow for dynamic updating. */
|
|
|
function renderErrorPre(container, error) {
|
|
|
let pre = container.createEl("pre", { cls: ["dataview", "dataview-error"] });
|
|
|
pre.appendText(error);
|
|
|
return pre;
|
|
|
}
|
|
|
/** Render a DateTime in a minimal format to save space. */
|
|
|
function renderMinimalDate(time, settings) {
|
|
|
// If there is no relevant time specified, fall back to just rendering the date.
|
|
|
if (time.second == 0 && time.minute == 0 && time.hour == 0) {
|
|
|
return time.toFormat(settings.defaultDateFormat, { locale: currentLocale() });
|
|
|
}
|
|
|
return time.toFormat(settings.defaultDateTimeFormat, { locale: currentLocale() });
|
|
|
}
|
|
|
/** Render a duration in a minimal format to save space. */
|
|
|
function renderMinimalDuration(dur) {
|
|
|
dur = normalizeDuration(dur);
|
|
|
let result = "";
|
|
|
if (dur.years)
|
|
|
result += `${dur.years} years, `;
|
|
|
if (dur.months)
|
|
|
result += `${dur.months} months, `;
|
|
|
if (dur.weeks)
|
|
|
result += `${dur.weeks} weeks, `;
|
|
|
if (dur.days)
|
|
|
result += `${dur.days} days, `;
|
|
|
if (dur.hours)
|
|
|
result += `${dur.hours} hours, `;
|
|
|
if (dur.minutes)
|
|
|
result += `${dur.minutes} minutes, `;
|
|
|
if (dur.seconds)
|
|
|
result += `${Math.round(dur.seconds)} seconds, `;
|
|
|
if (dur.milliseconds)
|
|
|
result += `${Math.round(dur.milliseconds)} ms, `;
|
|
|
if (result.endsWith(", "))
|
|
|
result = result.substring(0, result.length - 2);
|
|
|
return result;
|
|
|
}
|
|
|
/** Prettily render a value into a container with the given settings. */
|
|
|
function renderValue(field, container, originFile, component, settings, expandList = false, context = "root", depth = 0) {
|
|
|
var _a, _b;
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
// Prevent infinite recursion.
|
|
|
if (depth > settings.maxRecursiveRenderDepth) {
|
|
|
container.appendText("...");
|
|
|
return;
|
|
|
}
|
|
|
if (Values.isNull(field)) {
|
|
|
yield renderCompactMarkdown(settings.renderNullAs, container, originFile, component);
|
|
|
}
|
|
|
else if (Values.isDate(field)) {
|
|
|
container.appendText(renderMinimalDate(field, settings));
|
|
|
}
|
|
|
else if (Values.isDuration(field)) {
|
|
|
container.appendText(renderMinimalDuration(field));
|
|
|
}
|
|
|
else if (Values.isString(field) || Values.isBoolean(field) || Values.isNumber(field)) {
|
|
|
yield renderCompactMarkdown("" + field, container, originFile, component);
|
|
|
}
|
|
|
else if (Values.isArray(field) || DataArray.isDataArray(field)) {
|
|
|
if (expandList) {
|
|
|
let list = container.createEl("ul", {
|
|
|
cls: [
|
|
|
"dataview",
|
|
|
"dataview-ul",
|
|
|
context == "list" ? "dataview-result-list-ul" : "dataview-result-list-root-ul",
|
|
|
],
|
|
|
});
|
|
|
for (let child of field) {
|
|
|
let li = list.createEl("li", { cls: "dataview-result-list-li" });
|
|
|
yield renderValue(child, li, originFile, component, settings, expandList, "list", depth + 1);
|
|
|
}
|
|
|
}
|
|
|
else {
|
|
|
if (field.length == 0) {
|
|
|
container.appendText("<empty list>");
|
|
|
return;
|
|
|
}
|
|
|
let span = container.createEl("span", { cls: ["dataview", "dataview-result-list-span"] });
|
|
|
let first = true;
|
|
|
for (let val of field) {
|
|
|
if (first)
|
|
|
first = false;
|
|
|
else
|
|
|
span.appendText(", ");
|
|
|
yield renderValue(val, span, originFile, component, settings, expandList, "list", depth + 1);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
else if (Values.isLink(field)) {
|
|
|
yield renderCompactMarkdown(field.markdown(), container, originFile, component);
|
|
|
}
|
|
|
else if (Values.isHtml(field)) {
|
|
|
container.appendChild(field);
|
|
|
}
|
|
|
else if (Values.isFunction(field)) {
|
|
|
container.appendText("<function>");
|
|
|
}
|
|
|
else if (Values.isObject(field)) {
|
|
|
// Don't render classes in case they have recursive references; spoopy.
|
|
|
if (!Values.isTask(field) && ((_a = field === null || field === void 0 ? void 0 : field.constructor) === null || _a === void 0 ? void 0 : _a.name) && ((_b = field === null || field === void 0 ? void 0 : field.constructor) === null || _b === void 0 ? void 0 : _b.name) != "Object") {
|
|
|
container.appendText(`<${field.constructor.name}>`);
|
|
|
return;
|
|
|
}
|
|
|
if (expandList) {
|
|
|
let list = container.createEl("ul", { cls: ["dataview", "dataview-ul", "dataview-result-object-ul"] });
|
|
|
for (let [key, value] of Object.entries(field)) {
|
|
|
let li = list.createEl("li", { cls: ["dataview", "dataview-li", "dataview-result-object-li"] });
|
|
|
li.appendText(key + ": ");
|
|
|
yield renderValue(value, li, originFile, component, settings, expandList, context, depth + 1);
|
|
|
}
|
|
|
}
|
|
|
else {
|
|
|
if (Object.keys(field).length == 0) {
|
|
|
container.appendText("<empty object>");
|
|
|
return;
|
|
|
}
|
|
|
let span = container.createEl("span", { cls: ["dataview", "dataview-result-object-span"] });
|
|
|
let first = true;
|
|
|
for (let [key, value] of Object.entries(field)) {
|
|
|
if (first)
|
|
|
first = false;
|
|
|
else
|
|
|
span.appendText(", ");
|
|
|
span.appendText(key + ": ");
|
|
|
yield renderValue(value, span, originFile, component, settings, expandList, context, depth + 1);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
else {
|
|
|
container.appendText("Unrecognized: " + JSON.stringify(field));
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function decodeBase64(base64, enableUnicode) {
|
|
|
var binaryString = atob(base64);
|
|
|
if (enableUnicode) {
|
|
|
var binaryView = new Uint8Array(binaryString.length);
|
|
|
for (var i = 0, n = binaryString.length; i < n; ++i) {
|
|
|
binaryView[i] = binaryString.charCodeAt(i);
|
|
|
}
|
|
|
return String.fromCharCode.apply(null, new Uint16Array(binaryView.buffer));
|
|
|
}
|
|
|
return binaryString;
|
|
|
}
|
|
|
|
|
|
function createURL(base64, sourcemapArg, enableUnicodeArg) {
|
|
|
var sourcemap = sourcemapArg === undefined ? null : sourcemapArg;
|
|
|
var enableUnicode = enableUnicodeArg === undefined ? false : enableUnicodeArg;
|
|
|
var source = decodeBase64(base64, enableUnicode);
|
|
|
var start = source.indexOf('\n', 10) + 1;
|
|
|
var body = source.substring(start) + (sourcemap ? '\/\/# sourceMappingURL=' + sourcemap : '');
|
|
|
var blob = new Blob([body], { type: 'application/javascript' });
|
|
|
return URL.createObjectURL(blob);
|
|
|
}
|
|
|
|
|
|
function createBase64WorkerFactory(base64, sourcemapArg, enableUnicodeArg) {
|
|
|
var url;
|
|
|
return function WorkerFactory(options) {
|
|
|
url = url || createURL(base64, sourcemapArg, enableUnicodeArg);
|
|
|
return new Worker(url, options);
|
|
|
};
|
|
|
}
|
|
|
|
|
|
var WorkerFactory = createBase64WorkerFactory('Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwooZnVuY3Rpb24gKCkgewogICAgJ3VzZSBzdHJpY3QnOwoKICAgIC8qISAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg0KICAgIENvcHlyaWdodCAoYykgTWljcm9zb2Z0IENvcnBvcmF0aW9uLg0KDQogICAgUGVybWlzc2lvbiB0byB1c2UsIGNvcHksIG1vZGlmeSwgYW5kL29yIGRpc3RyaWJ1dGUgdGhpcyBzb2Z0d2FyZSBmb3IgYW55DQogICAgcHVycG9zZSB3aXRoIG9yIHdpdGhvdXQgZmVlIGlzIGhlcmVieSBncmFudGVkLg0KDQogICAgVEhFIFNPRlRXQVJFIElTIFBST1ZJREVEICJBUyBJUyIgQU5EIFRIRSBBVVRIT1IgRElTQ0xBSU1TIEFMTCBXQVJSQU5USUVTIFdJVEgNCiAgICBSRUdBUkQgVE8gVEhJUyBTT0ZUV0FSRSBJTkNMVURJTkcgQUxMIElNUExJRUQgV0FSUkFOVElFUyBPRiBNRVJDSEFOVEFCSUxJVFkNCiAgICBBTkQgRklUTkVTUy4gSU4gTk8gRVZFTlQgU0hBTEwgVEhFIEFVVEhPUiBCRSBMSUFCTEUgRk9SIEFOWSBTUEVDSUFMLCBESVJFQ1QsDQogICAgSU5ESVJFQ1QsIE9SIENPTlNFUVVFTlRJQUwgREFNQUdFUyBPUiBBTlkgREFNQUdFUyBXSEFUU09FVk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c29uLnRvTWVzc2FnZSgpKSB8fCB0aGlzOwogICAgICB9CgogICAgICByZXR1cm4gSW52YWxpZERhdGVUaW1lRXJyb3I7CiAgICB9KEx1eG9uRXJyb3IpOwogICAgLyoqCiAgICAgKiBAcHJpdmF0ZQogICAgICovCgogICAgdmFyIEludmFsaWRJbnRlcnZhbEVycm9yID0gLyojX19QVVJFX18qL2Z1bmN0aW9uIChfTHV4b25FcnJvcjIpIHsKICAgICAgX2luaGVyaXRzTG9vc2UoSW52YWxpZEludGVydmFsRXJyb3IsIF9MdXhvbkVycm9yMik7CgogICAgICBmdW5jdGlvbiBJbnZhbGlkSW50ZXJ2YWxFcnJvcihyZWFzb24pIHsKICAgICAgICByZXR1cm4gX0x1eG9uRXJyb3IyLmNhbGwodGhpcywgIkludmFsaWQgSW50ZXJ2YWw6ICIgKyByZWFzb24udG9NZXNzYWdlKCkpIHx8IHRoaXM7CiAgICAgIH0KCiAgICAgIHJldHVybiBJbnZhbGlkSW50ZXJ2YWxFcnJvcjsKICAgIH0oTHV4b25FcnJvcik7CiAgICAvKioKICAgICAqIEBwcml2YXRlCiAgICAgKi8KCiAgICB2YXIgSW52YWxpZER1cmF0aW9uRXJyb3IgPSAvKiNfX1BVUkVfXyovZnVuY3Rpb24gKF9MdXhvbkVycm9yMykgewogICAgICBfaW5oZXJpdHNMb29zZShJbnZhbGlkRHVyYXRpb25FcnJvciwgX0x1eG9uRXJyb3IzKTsKCiAgICAgIGZ1bmN0aW9uIEludmFsaWREdXJhdGlvbkVycm9yKHJlYXNvbikgewogICAgICAgIHJldHVybiBfTHV4b25FcnJvcjMuY2FsbCh0aGlzLCAiSW52YWxpZCBEdXJhdGlvbjogIiArIHJlYXNvbi50b01lc3NhZ2UoKSkgfHwgdGhpczsKICAgICAgfQoKICAgICAgcmV0dXJuIEludmFsaWREdXJhdGlvbkVycm9yOwogICAgfShMdXhvbkVycm9yKTsKICAgIC8qKgogICAgICogQHByaXZhdGUKICAgICAqLwoKICAgIHZhciB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nJvcigpIHsKICAgICAgICByZXR1cm4gX0x1eG9uRXJyb3I2LmFwcGx5KHRoaXMsIGFyZ3VtZW50cykgfHwgdGhpczsKICAgICAgfQoKICAgICAgcmV0dXJuIEludmFsaWRBcmd1bWVudEVycm9yOwogICAgfShMdXhvbkVycm9yKTsKICAgIC8qKgogICAgICogQHByaXZhdGUKICAgICAqLwoKICAgIHZhciBab25lSXNBYnN0cmFjdEVycm9yID0gLyojX19QVVJFX18qL2Z1bmN0aW9uIChfTHV4b25FcnJvcjcpIHsKICAgICAgX2luaGVyaXRzTG9vc2UoWm9uZUlzQWJzdHJhY3RFcnJvciwgX0x1eG9uRXJyb3I3KTsKCiAgICAgIGZ1bmN0aW9uIFpvbmVJc0Fic3RyYWN0RXJyb3IoKSB7CiAgICAgICAgcmV0dXJuIF9MdXhvbkVycm9yNy5jYWxsKHRoaXMsICJab25lIGlzIGFuIGFic3RyYWN0IGNsYXNzIikgfHwgdGhpczsKICAgICAgfQoKICAgICAgcmV0dXJuIFpvbmVJc0Fic3RyYWN0RXJyb3I7CiAgICB9KEx1eG9uRXJyb3IpOwoKICAgIC8qKgogICAgICogQHByaXZhdGUKICAgICAqLwogICAgdmFyIG4gPSAibnVtZXJpYyIsCiAgICAgICAgcyA9ICJzaG9ydCIsCiAgICAgICAgbCA9ICJsb25nIjsKICAgIHZhciBEQVRFX1NIT1JUID0gewogICAgICB5ZWFyOiBuLAogICAgICBtb250aDogbiwKICAgICAgZGF5OiBuCiAgICB9OwogICAgdmFyIERBVEVfTUVEID0gewogICAgICB5ZWFyOiBuLAogICAgICBtb250aDogcywKICAgICAgZGF5OiBuCiAgICB9OwogICAgdmFyIERBVEVfTUVEX1dJVEhfV0VFS0RBWSA9IHsKICAgICAgeWVhcjogbiwKICAgICAgbW9udGg6IHMsCiAgICAgIGRheTogbiwKICAgICAgd2Vla2RheTogcwogICAgfTsKICAgIHZhciBEQVRFX0ZVTEwgPSB7CiAgICAgIHllYXI6IG4sCiAgICAgIG1vbnRoOiBsLAogICAgICBkYXk6IG4KICAgIH07CiAgICB2YXIgREFURV9IVUdFID0gewogICAgICB5ZWFyOiBuLAogICAgICBtb250aDogbCwKICAgICAgZGF5OiBuLAogICAgICB3ZWVrZGF5OiBsCiAgICB9OwogICAgdmFyIFRJTUVfU0lNUExFID0gewogICAgICBob3VyOiBuLAogICAgICBtaW51dGU6IG4KICAgIH07CiAgICB2YXIgVElNRV9XSVRIX1NFQ09ORFMgPSB7CiAgICAgIGhvdXI6IG4sCiAgICAgIG1pbnV0ZTogbiwKICAgICAgc2Vjb25kOiBuCiAgICB9OwogICAgdmFyIFRJTUVfV0lUSF9TSE9SVF9PRkZTRVQgPSB7CiAgICAgIGhvdXI6IG4sCiAgICAgIG1pbnV0ZTogbiwKICAgICAgc2Vjb25kOiBuLAogICAgICB0aW1lWm9uZU5hbWU6IHMKICAgIH07CiAgICB2YXIgVElNRV9XSVRIX0xPTkdfT0ZGU0VUID0gewogICAgICBob3VyOiBuLAogICAgICBtaW51dGU6IG4sCiAgICAgIHNlY29uZDogbiwKICAgICAgdGltZVpvbmVOYW1lOiBsCiAgICB9OwogICAgdmFyIFRJTUVfMjRfU0lNUExFID0gewogICAgICBob3VyOiBuLAogICAgICBtaW51dGU6IG4sCiAgICAgIGhvdXJDeWNsZTogImgyMyIKICAgIH07CiAgICB2YXIgVElNRV8yNF9XSVRIX1NFQ09ORFMgPSB7CiAgICAgIGhvdXI6IG4sCiAgICAgIG1pbnV0ZTogbiwKICAgICAgc2Vjb25kOiBuLAogICAgICBob3VyQ3ljbGU6ICJoMjMiCiAgICB9OwogICAgdmFyIFRJTUVfMjRfV0lUSF9TSE9SVF9PRkZTRVQgPSB7CiAgICAgIGhvdXI6IG4sCiAgICAgIG1pbnV0ZTogbiwKICAgICAgc2Vjb25kOiBuLAogICAgICBob3VyQ3ljbGU6ICJoMjMiLAogICAgICB0aW1lWm9uZU5hbWU6IHMKICAgIH07CiAgICB2YXIgVElNRV8yNF9XSVRIX0xPTkdfT0ZGU0VUID0gewogICAgICBob3VyOiBuLAogICAgICBtaW51dGU6IG4sCiAgICAgIHNlY29uZDogbiwKICAgICAgaG91ckN5Y2xlOiAiaDIzIiwKICAgICAgdGltZVpvbmVOYW1lOiBsCiAgICB9OwogICAgdmFyIERBVEVUSU1FX1NIT1JUID0gewogICAgICB5ZWFyOiBuLAogICAgICBtb250aDogbiwKICAgICAgZGF5OiBuLAogICAgICBob3VyOiBuLAogICAgICBtaW51dGU6IG4KICAgIH07CiAgICB2YXIgREFURVRJTUVfU0hPUlRfV0lUSF9TRUNPTkRTID0gewogICAgICB5ZWFyOiBuLAogICAgICBtb250aDogbiwKICAgICAgZGF5OiBuLAogICAgICBob3VyOiBuLAogICAgICBtaW51dGU6IG4sCiAgICAgIHNlY29uZDogbgogICAgfTsKICAgIHZhciBEQVRFVElNRV9NRUQgPSB7CiAgICAgIHllYXI6IG4sCiAgICAgIG1vbnRoOiBzLAogICAgICBkYXk6IG4sCiAgICAgIGhvdXI6IG4sCiAgICAgIG1pbnV0ZTogbgogICAgfTsKICAgIHZhciBEQVRFVElNRV9NRURfV0lUSF9TRUNPTkRTID0gewogICAgICB5ZWFyOiBuLAogICAgICBtb250aDogcywKICAgICAgZGF5OiBuLAogICAgICBob3VyOiBuLAogICAgICBtaW51dGU6IG4sCiAgICAgIHNlY29uZDogbgogICAgfTsKICAgIHZhciBEQVRFVElNRV9NRURfV0lUSF9XRUVLREFZID0gewogICAgICB5ZWFyOiBuLAogICAgICBtb250aDogcywKICAgICAgZGF5OiBuLAogICAgICB3ZWVrZGF5OiBzLAogICAgICBob3VyOiBuLAogICAgICBtaW51dGU6IG4KICAgIH07CiAgICB2YXIgREFURVRJTUVfRlVMTCA9IHsKICAgICAgeWVhcjogbiwKICAgICAgbW9udGg6IGwsCiAgICAgIGRheTogbiwKICAgICAgaG91cjogbiwKICAgICAgbWludXRlOiBuLAogICAgICB0aW1lWm9uZU5hbWU6IHMKICAgIH07CiAgICB2YXIgREFURVRJTUVf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ogICAgICByZXR1cm4gT2JqZWN0LnByb3RvdHlwZS50b1N0cmluZy5jYWxsKG8pID09PSAiW29iamVjdCBEYXRlXSI7CiAgICB9IC8vIENBUEFCSUxJVElFUwoKICAgIGZ1bmN0aW9uIGhhc1JlbGF0aXZlKCkgewogICAgICB0cnkgewogICAgICAgIHJldHVybiB0eXBlb2YgSW50bCAhPT0gInVuZGVmaW5lZCIgJiYgISFJbnRsLlJlbGF0aXZlVGltZUZvcm1hdDsKICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgfQogICAgfSAvLyBPQkpFQ1RTIEFORCBBUlJBWVMKCiAgICBmdW5jdGlvbiBtYXliZUFycmF5KHRoaW5nKSB7CiAgICAgIHJldHVybiBBcnJheS5pc0FycmF5KHRoaW5nKSA/IHRoaW5nIDogW3RoaW5nXTsKICAgIH0KICAgIGZ1bmN0aW9uIGJlc3RCeShhcnIsIGJ5LCBjb21wYXJlKSB7CiAgICAgIGlmIChhcnIubGVuZ3RoID09PSAwKSB7CiAgICAgICAgcmV0dXJuIHVuZGVmaW5lZDsKICAgICAgfQoKICAgICAgcmV0dXJuIGFyci5yZWR1Y2UoZnVuY3Rpb24gKGJlc3QsIG5leHQpIHsKICAgICAgICB2YXIgcGFpciA9IFtieShuZXh0KSwgbmV4dF07CgogICAgICAgIGlmICghYmVzdCkgewogICAgICAgICAgcmV0dXJuIHBhaXI7CiAgICAgICAgfSBlbHNlIGlmIChjb21wYXJlKGJlc3RbMF0sIHBhaXJbMF0pID09PSBiZXN0WzBdKSB7CiAgICAgICAgICByZXR1cm4gYmVzdDsKICAgICAgICB9IGVsc2UgewogICAgICAgICAgcmV0dXJuIHBhaXI7CiAgICAgICAgfQogICAgICB9LCBudWxsKVsxXTsKICAgIH0KICAgIGZ1bmN0aW9uIHBpY2sob2JqLCBrZXlzKSB7CiAgICAgIHJldHVybiBrZXlzLnJlZHVjZShmdW5jdGlvbiAoYSwgaykgewogICAgICAgIGFba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gICBkID0gbmV3IERhdGUoZCk7CiAgICAgICAgZC5zZXRVVENGdWxsWWVhcihkLmdldFVUQ0Z1bGxZZWFyKCkgLSAxOTAwKTsKICAgICAgfQoKICAgICAgcmV0dXJuICtkOwogICAgfQogICAgZnVuY3Rpb24gd2Vla3NJbldlZWtZZWFyKHdlZWtZZWFyKSB7CiAgICAgIHZhciBwMSA9ICh3ZWVrWWVhciArIE1hdGguZmxvb3Iod2Vla1llYXIgLyA0KSAtIE1hdGguZmxvb3Iod2Vla1llYXIgLyAxMDApICsgTWF0aC5mbG9vcih3ZWVrWWVhciAvIDQwMCkpICUgNywKICAgICAgICAgIGxhc3QgPSB3ZWVrWWVhciAtIDEsCiAgICAgICAgICBwMiA9IChsYXN0ICsgTWF0aC5mbG9vcihsYXN0IC8gNCkgLSBNYXRoLmZsb29yKGxhc3QgLyAxMDApICsgTWF0aC5mbG9vcihsYXN0IC8gNDAwKSkgJSA3OwogICAgICByZXR1cm4gcDEgPT09IDQgfHwgcDIgPT09IDMgPyA1MyA6IDUyOwogICAgfQogICAgZnVuY3Rpb24gdW50cnVuY2F0ZVllYXIoeWVhcikgewogICAgICBpZiAoeWVhciA+IDk5KSB7CiAgICAgICAgcmV0dXJuIHllYXI7CiAgICAgIH0gZWxzZSByZXR1cm4geWVhciA+IDYwID8gMTkwMCArIHllYXIgOiAyMDAwICsgeWVhcjsKICAgIH0gLy8gUEFSU0lORwoKICAgIGZ1bmN0aW9uIHBhcnNlWm9uZUluZm8odHMsIG9mZnNldEZvcm1hdCwgbG9jYWxlLCB0aW1lWm9uZSkgewogICAgICBpZiAodGltZVpvbmUgPT09IHZvaWQgMCkgewogICAgICAgIHRpbWVab25lID0gbnVsbDsKICAgICAgfQoKICAgICAgdmFyIGRhdGUgPSBuZXcgRGF0ZSh0cyksCiAgICAgICAgICBpbnRsT3B0cyA9IHsKICAgICAgICBob3VyQ3ljbGU6ICJoMjMiLAogICAgICAgIHllYXI6ICJudW1lcmljIiwKICAgICAgICBtb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RlY2VtYmVyIl07CiAgICB2YXIgbW9udGhzU2hvcnQgPSBbIkphbiIsICJGZWIiLCAiTWFyIiwgIkFwciIsICJNYXkiLCAiSnVuIiwgIkp1bCIsICJBdWciLCAiU2VwIiwgIk9jdCIsICJOb3YiLCAiRGVjIl07CiAgICB2YXIgbW9udGhzTmFycm93ID0gWyJKIiwgIkYiLCAiTSIsICJBIiwgIk0iLCAiSiIsICJKIiwgIkEiLCAiUyIsICJPIiwgIk4iLCAiRCJdOwogICAgZnVuY3Rpb24gbW9udGhzKGxlbmd0aCkgewogICAgICBzd2l0Y2ggKGxlbmd0aCkgewogICAgICAgIGNhc2UgIm5hcnJvdyI6CiAgICAgICAgICByZXR1cm4gW10uY29uY2F0KG1vbnRoc05hcnJvdyk7CgogICAgICAgIGNhc2UgInNob3J0IjoKICAgICAgICAgIHJldHVybiBbXS5jb25jYXQobW9udGhzU2hvcnQpOwoKICAgICAgICBjYXNlICJsb25nIjoKICAgICAgICAgIHJldHVybiBbXS5jb25jYXQobW9udGhzTG9uZyk7CgogICAgICAgIGNhc2UgIm51bWVyaWMiOgogICAgICAgICAgcmV0dXJuIFsiMSIsICIyIiwgIjMiLCAiNCIsICI1IiwgIjYiLCAiNyIsICI4IiwgIjkiLCAiMTAiLCAiMTEiLCAiMTIiXTsKCiAgICAgICAgY2FzZSAiMi1kaWdpdCI6CiAgICAgICAgICByZXR1cm4gWyIwMSIsICIwMiIsICIwMyIsICIwNCIsICIwNSIsICIwNiIsICIwNyIsICIwOCIsICIwOSIsICIxMCIsICIxMSIsICIxMiJdOwoKICAgICAgICBkZWZhdWx0OgogICAgICAgICAgcmV0dXJuIG51bGw7CiAgICAgIH0KICAgIH0KICAgIHZhciB3ZWVrZGF5c0xvbmcgPSBbIk1vbmRheSIsICJUdWVzZGF5IiwgIldlZG5lc2RheSIsICJUaHVyc2RheSIsICJGcmlkYXkiLCAiU2F0dXJkYXkiLCAiU3VuZGF5Il07CiAgICB2YXIgd2Vla2RheXNTaG9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gICAgIGNhc2UgImxvbmciOgogICAgICAgICAgcmV0dXJuIFtdLmNvbmNhdChlcmFzTG9uZyk7CgogICAgICAgIGRlZmF1bHQ6CiAgICAgICAgICByZXR1cm4gbnVsbDsKICAgICAgfQogICAgfQogICAgZnVuY3Rpb24gbWVyaWRpZW1Gb3JEYXRlVGltZShkdCkgewogICAgICByZXR1cm4gbWVyaWRpZW1zW2R0LmhvdXIgPCAxMiA/IDAgOiAxXTsKICAgIH0KICAgIGZ1bmN0aW9uIHdlZWtkYXlGb3JEYXRlVGltZShkdCwgbGVuZ3RoKSB7CiAgICAgIHJldHVybiB3ZWVrZGF5cyhsZW5ndGgpW2R0LndlZWtkYXkgLSAxXTsKICAgIH0KICAgIGZ1bmN0aW9uIG1vbnRoRm9yRGF0ZVRpbWUoZHQsIGxlbmd0aCkgewogICAgICByZXR1cm4gbW9udGhzKGxlbmd0aClbZHQubW9udGggLSAxXTsKICAgIH0KICAgIGZ1bmN0aW9uIGVyYUZvckRhdGVUaW1lKGR0LCBsZW5ndGgpIHsKICAgICAgcmV0dXJuIGVyYXMobGVuZ3RoKVtkdC55ZWFyIDwgMCA/IDAgOiAxXTsKICAgIH0KICAgIGZ1bmN0aW9uIGZvcm1hdFJlbGF0aXZlVGltZSh1bml0LCBjb3VudCwgbnVtZXJpYywgbmFycm93KSB7CiAgICAgIGlmIChudW1lcmljID09PSB2b2lkIDApIHsKICAgICAgICBudW1lcmljID0gImFsd2F5cyI7CiAgICAgIH0KCiAgICAgIGlmIChuYXJyb3cgPT09IHZvaWQgMCkgewogICAgICAgIG5hcnJvdyA9IGZhbHNlOwogICAgICB9CgogICAgICB2YXIgdW5pdHMgPSB7CiAgICAgICAgeWVhcnM6IFsieWVhciIsICJ5ci4iXSwKICAgICAgICBxdWFydGVyczogWyJxdWFydGVyIiwgInF0ci4iXSwKICAgICAgICBtb250aHM6IFsibW9udGgiLCAibW8uIl0sCiAgICAgICAgd2Vla3M6IFsid2VlayIsICJ3ay4iXSwKICAgICAgICBkYXlzOiBbImRheSIsICJkYXkiLCAiZGF5cyJdLAogICAgICAgIGhvdXJzOiBbImhvdXIiLCAiaHIuIl0sCiAgICAgICAgbWludXRlczogWyJtaW51dGUiLCAibWluLiJdLAogICAgICAgIHNlY29uZHM6IFsic2Vjb25kIiwgInNlYy4iXQogICAgICB9OwogICAgICB2YXIgbGFzdGFibGUgPSBbImhvdXJzIiwgIm1pbnV0ZXMiLCAic2Vjb25kcyJdLmluZGV4T2YodW5pdCkgPT09IC0xOwoKICAgICAgaWYgKG51bWVyaWMgPT09ICJhdXRvIiAmJiBsYXN0YWJsZSkgewogICAgICAgIHZhciBpc0RheSA9IHVuaXQgPT09ICJkYXlzIjsKCiAgICAgICAgc3dpdGNoIChjb3VudCkgewogICAgICAgICAgY2FzZSAxOgogICAgICAgICAgICByZXR1cm4gaXNEYXkgPyAidG9tb3Jyb3ciIDogIm5leHQgIiArIHVuaXRzW3VuaXRdWzBdOwoKICAgICAgICAgIGNhc2UgLTE6CiAgICAgICAgICAgIHJldHVybiBpc0RheSA/ICJ5ZXN0ZXJkYXkiIDogImxhc3QgIiArIHVuaXRzW3VuaXRdWzBdOwoKICAgICAgICAgIGNhc2UgMDoKICAgICAgICAgICAgcmV0dXJuIGlzRGF5ID8gInRvZGF5IiA6ICJ0aGlzICIgKyB1bml0c1t1bml0XVswXTsKCiAgICAgICAgfQogICAgICB9CgogICAgICB2YXIgaXNJblBhc3QgPSBPYmplY3QuaXMoY291bnQsIC0wKSB8fCBjb3VudCA8IDAsCiAgICAgICAgICBmbXRWYWx1ZSA9IE1hdGguYWJzKGNvdW50KSwKICAgICAgICAgIHNpbmd1bGFyID0gZm10VmFsdWUgPT09IDEsCiAgICAgICAgICBsaWxVbml0cyA9IHVuaXRzW3VuaXRdLAogICAgICAgICAgZm10VW5pdCA9IG5hcnJvdyA/IHNpbmd1bGFyID8gbGlsVW5pdHNbMV0gOiBsaWxVbml0c1syXSB8fCBsaWxVbml0c1sxXSA6IHNpbmd1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gICAgVFRUVDogVElNRV8yNF9XSVRIX0xPTkdfT0ZGU0VULAogICAgICBmOiBEQVRFVElNRV9TSE9SVCwKICAgICAgZmY6IERBVEVUSU1FX01FRCwKICAgICAgZmZmOiBEQVRFVElNRV9GVUxMLAogICAgICBmZmZmOiBEQVRFVElNRV9IVUdFLAogICAgICBGOiBEQVRFVElNRV9TSE9SVF9XSVRIX1NFQ09ORFMsCiAgICAgIEZGOiBEQVRFVElNRV9NRURfV0lUSF9TRUNPTkRTLAogICAgICBGRkY6IERBVEVUSU1FX0ZVTExfV0lUSF9TRUNPTkRTLAogICAgICBGRkZGOiBEQVRFVElNRV9IVUdFX1dJVEhfU0VDT05EUwogICAgfTsKICAgIC8qKgogICAgICogQHByaXZhdGUKICAgICAqLwoKICAgIHZhciBGb3JtYXR0ZXIgPSAvKiNfX1BVUkVfXyovZnVuY3Rpb24gKCkgewogICAgICBGb3JtYXR0ZXIuY3JlYXRlID0gZnVuY3Rpb24gY3JlYXRlKGxvY2FsZSwgb3B0cykgewogICAgICAgIGlmIChvcHRzID09PSB2b2lkIDApIHsKICAgICAgICAgIG9wdHMgPSB7fTsKICAgICAgICB9CgogICAgICAgIHJldHVybiBuZXcgRm9ybWF0dGVyKGxvY2FsZSwgb3B0cyk7CiAgICAgIH07CgogICAgICBGb3JtYXR0ZXIucGFyc2VGb3JtYXQgPSBmdW5jdGlvbiBwYXJzZUZvcm1hdChmbXQpIHsKICAgICAgICB2YXIgY3VycmVudCA9IG51bGwsCiAgICAgICAgICAgIGN1cnJlbnRGdWxsID0gIiIsCiAgICAgICAgICAgIGJyYWNrZXRlZCA9IGZhbHNlOwogICAgICAgIHZhciBzcGxpdHMgPSBbXTsKCiAgICAgICAgZm9yICh2YXIgaSA9IDA7IGkgPCBmbXQubGVuZ3RoOyBpKyspIHsKICAgICAgICAgIHZhciBjID0gZm10LmNoYXJBdChpKTsKCiAgICAgICAgICBpZiAoYyA9PT0gIiciKSB7CiAgICAgICAgICAgIGlmIChjdXJyZW50RnVsbC5sZW5ndGggPiAwKSB7CiAgICAgICAgICAgICAgc3BsaXRzLnB1c2goewogICAgICAgICAgICAgICAgbGl0ZXJhbDogYnJhY2tldGVkLAogICAgICAgICAgICAgICAgdmFsOiBjdXJyZW50RnVsbAogICAgICAgICAgICAgIH0pOwogICAgICAgICAgICB9CgogICAgICAgICAgICBjdXJyZW50ID0gbnVsbDsKICAgICAgICAgICAgY3VycmVudEZ1bGwgPSAiIjsKICAgICAgICAgICAgYnJhY2tldGVkID0gIWJyYWNrZXRlZDsKICAgICAgICAgIH0gZWxzZSBpZiAoYnJhY2tldGVkKSB7CiAgICAgICAgICAgIGN1cnJlbnRGdWxsICs9IGM7CiAgICAgICAgICB9IGVsc2UgaWYgKGMgPT09IGN1cnJlbnQpIHsKICAgICAgICAgICAgY3VycmVudEZ1bGwgKz0gYzsKICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgIGlmIChjdXJyZW50RnVsbC5sZW5ndGggPiAwKSB7CiAgICAgICAgICAgICAgc3BsaXRzLnB1c2goewogICAgICAgICAgICAgICAgbGl0ZXJhbDogZmFsc2UsCiAgICAgICAgICAgICAgICB2YWw6IGN1cnJlbnRGdWxsCiAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIH0KCiAgICAgICAgICAgIGN1cnJlbnRGdWxsID0gYzsKICAgICAgICAgICAgY3VycmVudCA9IGM7CiAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICBpZiAoY3VycmVudEZ1bGwubGVuZ3RoID4gMCkgewogICAgICAgICAgc3BsaXRzLnB1c2goewogICAgICAgICAgICBsaXRlcmFsOiBicmFja2V0ZWQsCiAgICAgICAgICAgIHZhbDogY3VycmVudEZ1bGwKICAgICAgICAgIH0pOwogICAgICAgIH0KCiAgICAgICAgcmV0dXJuIHNwbGl0czsKICAgICAgfTsKCiAgICAgIEZvcm1hdHRlci5tYWNyb1Rva2VuVG9Gb3JtYXRPcHRzID0gZnVuY3Rpb24gbWFjcm9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AibnVtZXJpYyIsCiAgICAgICAgICAgIGhvdXJDeWNsZTogImgxMiIKICAgICAgICAgIH0sICJkYXlwZXJpb2QiKTsKICAgICAgICB9LAogICAgICAgICAgICBtb250aCA9IGZ1bmN0aW9uIG1vbnRoKGxlbmd0aCwgc3RhbmRhbG9uZSkgewogICAgICAgICAgcmV0dXJuIGtub3duRW5nbGlzaCA/IG1vbnRoRm9yRGF0ZVRpbWUoZHQsIGxlbmd0aCkgOiBzdHJpbmcoc3RhbmRhbG9uZSA/IHsKICAgICAgICAgICAgbW9udGg6IGxlbmd0aAogICAgICAgICAgfSA6IHsKICAgICAgICAgICAgbW9udGg6IGxlbmd0aCwKICAgICAgICAgICAgZGF5OiAibnVtZXJpYyIKICAgICAgICAgIH0sICJtb250aCIpOwogICAgICAgIH0sCiAgICAgICAgICAgIHdlZWtkYXkgPSBmdW5jdGlvbiB3ZWVrZGF5KGxlbmd0aCwgc3RhbmRhbG9uZSkgewogICAgICAgICAgcmV0dXJuIGtub3duRW5nbGlzaCA/IHdlZWtkYXlGb3JEYXRlVGltZShkdCwgbGVuZ3RoKSA6IHN0cmluZyhzdGFuZGFsb25lID8gewogICAgICAgICAgICB3ZWVrZGF5OiBsZW5ndGgKICAgICAgICAgIH0gOiB7CiAgICAgICAgICAgIHdlZWtkYXk6IGxlbmd0aCwKICAgICAgICAgICAgbW9udGg6ICJsb25nIiwKICAgICAgICAgICAgZGF5OiAibnVtZXJpYyIKICAgICAgICAgIH0sICJ3ZWVrZGF5Iik7CiAgICAgICAgfSwKICAgICAgICAgICAgbWF5YmVNYWNybyA9IGZ1bmN0aW9uIG1heWJlTWFjcm8odG9rZW4pIHsKICAgICAgICAgIHZhciBmb3JtYXRPcHRzID0gRm9ybWF0dGVyLm1hY3JvVG9rZW5Ub0Zvcm1hdE9wdHModG9rZW4pOwoKICAgICAgICAgIGlmIChmb3JtYXRPcHRzKSB7CiAgICAgICAgICAgIHJldHVybiBfdGhpcy5mb3JtYXRXaXRoU3lzdGVtRGVmYXVsdChkdCwgZm9ybWF0T3B0cyk7CiAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICByZXR1cm4gdG9rZW47CiAgICAgICAgICB9CiAgICAgICAgfSwKICAgICAgICAgICAgZXJhID0gZnVuY3Rpb24gZXJhKGxlbmd0aCkgewogICAgICAgICAgcmV0dXJuIGtub3duRW5nbGlzaCA/IGVyYUZvckRhdGVUaW1lKGR0LCBsZW5ndGgpIDogc3RyaW5nKHsKICAgICAgICAgICAgZXJhOiBsZW5ndGgKICAgICAgICAgIH0sICJlcmEiKTsKICAgICAgICB9LAogICAgICAgICAgICB0b2tlblRvU3RyaW5nID0gZnVuY3Rpb24gdG9rZW5Ub1N0cmluZyh0b2tlbikgewogICAgICAgICAgLy8gV2hlcmUgcG9zc2libGU6IGh0dHA6Ly9jbGRyLnVuaWNvZGUub3JnL3RyYW5zbGF0aW9uL2RhdGUtdGltZS0xL2RhdGUtdGltZSNUT0MtU3RhbmRhbG9uZS12cy4tRm9ybWF0LVN0eWxlcwogICAgICAgICAgc3dpdGNoICh0b2tlbikgewogICAgICAgICAgICAvLyBtcwogICAgICAgICAgICBjYXNlICJTIjoKICAgICAgICAgICAgICByZXR1cm4gX3RoaXMubnVtKGR0Lm1pbGxpc2Vjb25kKTsKCiAgICAgICAgICAgIGNhc2UgInUiOiAvLyBmYWxscyB0aHJvdWdoCgogICAgICAgICAgICBjYXNlICJTU1MiOgogICAgICAgICAgICAgIHJldHVybiBfdGhpcy5udW0oZHQubWlsbGlzZWNvbmQsIDMpOwogICAgICAgICAgICAvLyBzZWNvbmRzCgogICAgICAgICAgICBjYXNlICJzIjoKICAgICAgICAgICAgICByZXR1cm4gX3RoaXMubnVtKGR0LnNlY29uZCk7CgogICAgICAgICAgICBjYXNlICJzcyI6CiAgICAgICAgICAgICAgcmV0dXJuIF90aGlzLm51bShkdC5zZWNvbmQsIDIpOwogICAgICAgICAgICAvLyBtaW51dGVzCgogICAgICAgICAgICBjYXNlICJtIjoKICAgICAgICAgICAgICByZXR1cm4gX3RoaXMubnVtKGR0Lm1pbnV0ZSk7CgogICAgICAgICAgICBjYXNlICJtbSI6CiAgICAgICAgICAgICAgcmV0dXJuIF90aGlzLm51bShkdC5taW51dGUsIDIpOwogICAgICAgICAgICAvLyBob3VycwoKICAgICAgICAgICAgY2FzZSAiaCI6CiAgICAgICAgICAgICAgcmV0dXJuIF90aGlzLm51bShkdC5ob3VyICUgMTIgPT09IDAgPyAxMiA6IGR0LmhvdXIgJSAxMik7CgogICAgICAgICAgICBjYXNlICJoaCI6CiAgICAgICAgICAgICAgcmV0dXJuIF90aGlzLm51bShkdC5ob3VyICUgMTIgPT09IDAgPyAxMiA6IGR0LmhvdXIgJSAxMiwgMik7CgogICAgICAgICAgICBjYXNlICJIIjoKICAgICAgICAgICAgICByZXR1cm4gX3RoaXMubnVtKGR0LmhvdXIpOwoKICAgICAgICAgICAgY2FzZSAiSEgiOgogICAgICAgICAgICAgIHJldHVybiBfdGhpcy5udW0oZHQuaG91ciwgMik7CiAgICAgICAgICAgIC8vIG9mZnNldAoKICAgICAgICAgICAgY2FzZSAiWiI6CiAgICAgICAgICAgICAgLy8gbGlrZSArNgogICAgICAgICAgICAgIHJldHVybiBmb3JtYXRPZmZzZXQoewogICAgICAgICAgICAgICAgZm9ybWF0OiAibmFycm93IiwKICAgICAgICAgICAgICAgIGFsbG93WjogX3RoaXMub3B0cy5hbGxvd1oKICAgICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIGNhc2UgIlpaIjoKICAgICAgICAgICAgICAvLyBsaWtlICswNjowMAogICAgICAgICAgICAgIHJldHVybiBmb3JtYXRPZmZzZXQoewogICAgICAgICAgICAgICAgZm9ybWF0OiAic2hvcnQiLAogICAgICAgICAgICAgICAgYWxsb3daOiBfdGhpcy5vcHRzLmFsbG93WgogICAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgY2FzZSAiWlpaIjoKICAgICAgICAgICAgICAvLyBsaWtlICswNjAwCiAgICAgICAgICAgICAgcmV0dXJuIGZvcm1hdE9mZnNldCh7CiAgICAgICAgICAgICAgICBmb3JtYXQ6ICJ0ZWNoaWUiLAogICAgICAgICAgICAgICAgYWxsb3daOiBfdGhpcy5vcHRzLmFsbG93WgogICAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgY2FzZSAiWlpaWiI6CiAgICAgICAgICAgICAgLy8gbGlrZSBFU1QKICAgICAgICAgICAgICByZXR1cm4gZHQuem9uZS5vZmZzZXROYW1lKGR0LnRzLCB7CiAgICAgICAgICAgICAgICBmb3JtYXQ6ICJzaG9ydCIsCiAgICAgICAgICAgICAgICBsb2NhbGU6IF90aGlzLmxvYy5sb2NhbGUKICAgICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIGNhc2UgIlpaWlpaIjoKICAgICAgICAgICAgICAvLyBsaWtlIEVhc3Rlcm4gU3RhbmRhcmQgVGltZQogICAgICAgICAgICAgIHJldHVybiBkdC56b25lLm9mZnNldE5hbWUoZHQudHMsIHsKICAgICAgICAgICAgICAgIGZvcm1hdDogImxvbmciLAogICAgICAgICAgICAgICAgbG9jYWxlOiBfdGhpcy5sb2MubG9jYWxlCiAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIC8vIHpvbmUKCiAgICAgICAgICAgIGNhc2UgInoiOgogICAgICAgICAgICAgIC8vIGxpa2UgQW1lcmljYS9OZXdfWW9yawogICAgICAgICAgICAgIHJldHVybiBkdC56b25lTmFtZTsKICAgICAgICAgICAgLy8gbWVyaWRpZW1zCgogICAgICAgICAgICBjYXNlICJhIjoKICAgICAgICAgICAgICByZXR1cm4gbWVyaWRpZW0oKTsKICAgICAgICAgICAgLy8gZGF0ZXMKCiAgICAgICAgICAgIGNhc2UgImQiOgogICAgICAgICAgICAgIHJldHVybiB1c2VEYXRlVGltZUZvcm1hdHRlciA/IHN0cmluZyh7CiAgICAgICAgICAgICAgICBkYXk6ICJudW1lcmljIgogICAgICAgICAgICAgIH0sICJkYXkiKSA6IF90aGlzLm51bShkdC5kYXkpOwoKICAgICAgICAgICAgY2FzZSAiZGQiOgogICAgICAgICAgICAgIHJldHVybiB1c2VEYXRlVGltZUZvcm1hdHRlciA/IHN0cmluZyh7CiAgICAgICAgICAgICAgICBkYXk6ICIyLWRpZ2l0IgogICAgICAgICAgICAgIH0sICJkYXkiKSA6IF90aGlzLm51bShkdC5kYXksIDIpOwogICAgICAgICAgICAvLyB3ZWVrZGF5cyAtIHN0YW5kYWxvbmUKCiAgICAgICAgICAgIGNhc2UgImMiOgogICAgICAgICAgICAgIC8vIGxpa2UgMQogICAgICAgICAgICAgIHJldHVybiBfdGhpcy5udW0oZHQud2Vla2RheSk7CgogICAgICAgICAgICBjYXNlICJjY2MiOgogICAgICAgICAgICAgIC8vIGxpa2UgJ1R1ZXMnCiAgICAgICAgICAgICAgcmV0dXJuIHdlZWtkYXkoInNob3J0IiwgdHJ1ZSk7CgogICAgICAgICAgICBjYXNlICJjY2NjIjoKICAgICAgICAgICAgICAvLyBsaWtlICdUdWVzZGF5JwogICAgICAgICAgICAgIHJldHVybiB3ZWVrZGF5KCJsb25nIiwgdHJ1ZSk7CgogICAgICAgICAgICBjYXNlICJjY2NjYyI6CiAgICAgICAgICAgICAgLy8gbGlrZSAnVCcKICAgICAgICAgICAgICByZXR1cm4gd2Vla2RheSgibmFycm93IiwgdHJ1ZSk7CiAgICAgICAgICAgIC8vIHdlZWtkYXlzIC0gZm9ybWF0CgogICAgICAgICAgICBjYXNlICJFIjoKICAgICAgICAgICAgICAvLyBsaWtlIDEKICAgICAgICAgICAgICByZXR1cm4gX3RoaXMubnVtKGR0LndlZWtkYXkpOwoKICAgICAgICAgICAgY2FzZSAiRUVFIjoKICAgICAgICAgICAgICAvLyBsaWtlICdUdWVzJwogICAgICAgICAgICAgIHJldHVybiB3ZWVrZGF5KCJzaG9ydCIsIGZhbHNlKTsKCiAgICAgICAgICAgIGNhc2UgIkVFRUUiOgogICAgICAgICAgICAgIC8vIGxpa2UgJ1R1ZXNkYXknCiAgICAgICAgICAgICAgcmV0dXJuIHdlZWtkYXkoImxvbmciLCBmYWxzZSk7CgogICAgICAgICAgICBjYXNlICJFRUVFRSI6CiAgICAgICAgICAgICAgLy8gbGlrZSAnVCcKICAgICAgICAgICAgICByZXR1cm4gd2Vla2RheSgibmFycm93IiwgZmFsc2UpOwogICAgICAgICAgICAvLyBtb250aHMgLSBzdGFuZGFsb25lCgogICAgICAgICAgICBjYXNlICJMIjoKICAgICAgICAgICAgICAvLyBsaWtlIDEKICAgICAgICAgICAgICByZXR1cm4gdXNlRGF0ZVRpbWVGb3JtYXR0ZXIgPyBzdHJpbmcoewogICAgICAgICAgICAgICAgbW9udGg6ICJudW1lcmljIiwKICAgICAgICAgICAgICAgIGRheTogIm51bWVyaWMiCiAgICAgICAgICAgICAgfSwgIm1vbnRoIikgOiBfdGhpcy5udW0oZHQubW9udGgpOwoKICAgICAgICAgICAgY2FzZSAiTEwiOgogICAgICAgICAgICAgIC8vIGxpa2UgMDEsIGRvZXNuJ3Qgc2VlbSB0byB3b3JrCiAgICAgICAgICAgICAgcmV0dXJuIHVzZURhdGVUaW1lRm9ybWF0dGVyID8gc3RyaW5nKHsKICAgICAgICAgICAgICAgIG1vbnRoOiAiMi1kaWdpdCIsCiAgICAgICAgICAgICAgICBkYXk6ICJudW1lcmljIgogICAgICAgICAgICAgIH0sICJtb250aCIpIDogX3RoaXMubnVtKGR0Lm1vbnRoLCAyKTsKCiAgICAgICAgICAgIGNhc2UgIkxMTCI6CiAgICAgICAgICAgICAgLy8gbGlrZSBKYW4KICAgICAgICAgICAgICByZXR1cm4gbW9udGgoInNob3J0IiwgdHJ1ZSk7CgogICAgICAgICAgICBjYXNlICJMTExMIjoKICAgICAgICAgICAgICAvLyBsaWtlIEphbnVhcnkKICAgICAgICAgICAgICByZXR1cm4gbW9udGgoImxvbmciLCB0cnVlKTsKCiAgICAgICAgICAgIGNhc2UgIkxMTExMIjoKICAgICAgICAgICAgICAvLyBsaWtlIEoKICAgICAgICAgICAgICByZXR1cm4gbW9udGgoIm5hcnJvdyIsIHRydWUpOwogICAgICAgICAgICAvLyBtb250aHMgLSBmb3JtYXQKCiAgICAgICAgICAgIGNhc2UgIk0iOgogICAgICAgICAgICAgIC8vIGxpa2UgMQogICAgICAgICAgICAgIHJldHVybiB1c2VEYXRlVGltZUZvcm1hdHRlciA/IHN0cmluZyh7CiAgICAgICAgICAgICAgICBtb250aDogIm51bWVyaWMiCiAgICAgICAgICAgICAgfSwgIm1vbnRoIikgOiBfdGhpcy5udW0oZHQubW9udGgpOwoKICAgICAgICAgICAgY2FzZSAiTU0iOgogICAgICAgICAgICAgIC8vIGxpa2UgMDEKICAgICAgICAgICAgICByZXR1cm4gdXNlRGF0ZVRpbWVGb3JtYXR0ZXIgPyBzdHJpbmcoewogICAgICAgICAgICAgICAgbW9udGg6ICIyLWRpZ2l0IgogICAgICAgICAgICAgIH0sICJtb250aCIpIDogX3RoaXMubnVtKGR0Lm1vbnRoLCAyKTsKCiAgICAgICAgICAgIGNhc2UgIk1NTSI6CiAgICAgICAgICAgICAgLy8gbGlrZSBKYW4KICAgICAgICAgICAgICByZXR1cm4gbW9udGgoInNob3J0IiwgZmFsc2UpOwoKICAgICAgICAgICAgY2FzZSAiTU1NTSI6CiAgICAgICAgICAgICAgLy8gbGlrZSBKYW51YXJ5CiAgICAgICAgICAgICAgcmV0dXJuIG1vbnRoKCJsb25nIiwgZmFsc2UpOwoKICAgICAgICAgICAgY2FzZSAiTU1NTU0iOgogICAgICAgICAgICAgIC8vIGxpa2UgSgogICAgICAgICAgICAgIHJldHVybiBtb250aCgibmFycm93IiwgZmFsc2UpOwogICAgICAgICAgICAvLyB5ZWFycwoKICAgICAgICAgICAgY2FzZSAieSI6CiAgICAgICAgICAgICAgLy8gbGlrZSAyMDE0CiAgICAgICAgICAgICAgcmV0dXJuIHVzZURhdGVUaW1lRm9ybWF0dGVyID8gc3RyaW5nKHsKICAgICAgICAgICAgICAgIHllYXI6ICJudW1lcmljIgogICAgICAgICAgICAgIH0sICJ5ZWFyIikgOiBfdGhpcy5udW0oZHQueWVhcik7CgogICAgICAgICAgICBjYXNlICJ5eSI6CiAgICAgICAgICAgICAgLy8gbGlrZSAxNAogICAgICAgICAgICAgIHJldHVybiB1c2VEYXRlVGltZUZvcm1hdHRlciA/IHN0cmluZyh7CiAgICAgICAgICAgICAgICB5ZWFyOiAiMi1kaWdpdCIKICAgICAgICAgICAgICB9LCAieWVhciIpIDogX3RoaXMubnVtKGR0LnllYXIudG9TdHJpbmcoKS5zbGljZSgtMiksIDIpOwoKICAgICAgICAgICAgY2FzZSAieXl5eSI6CiAgICAgICAgICAgICAgLy8gbGlrZSAwMDEyCiAgICAgICAgICAgICAgcmV0dXJuIHVzZURhdGVUaW1lRm9ybWF0dGVyID8gc3RyaW5nKHsKICAgICAgICAgICAgICAgIHllYXI6ICJudW1lcmljIgogICAgICAgICAgICAgIH0sICJ5ZWFyIikgOiBfdGhpcy5udW0oZHQueWVhciwgNCk7CgogICAgICAgICAgICBjYXNlICJ5eXl5eXkiOgogICAgICAgICAgICAgIC8vIGxpa2UgMDAwMDEyCiAgICAgICAgICAgICAgcmV0dXJuIHVzZURhdGVUaW1lRm9ybWF0dGVyID8gc3RyaW5nKHsKICAgICAgICAgICAgICAgIHllYXI6ICJudW1lcmljIgogICAgICAgICAgICAgIH0sICJ5ZWFyIikgOiBfdGhpcy5udW0oZHQueWVhciwgNik7CiAgICAgICAgICAgIC8vIGVyYXMKCiAgICAgICAgICAgIGNhc2UgIkciOgogICAgICAgICAgICAgIC8vIGxpa2UgQUQKICAgICAgICAgICAgICByZXR1cm4gZXJhKCJzaG9ydCIpOwoKICAgICAgICAgICAgY2FzZSAiR0ciOgogICAgICAgICAgICAgIC8vIGxpa2UgQW5ubyBEb21pbmkKICAgICAgICAgICAgICByZXR1cm4gZXJhKCJsb25nIik7CgogICAgICAgICAgICBjYXNlICJHR0dHRyI6CiAgICAgICAgICAgICAgcmV0dXJuIGVyYSgibmFycm93Iik7CgogICAgICAgICAgICBjYXNlICJrayI6CiAgICAgICAgICAgICAgcmV0dXJuIF90aGlzLm51bShkdC53ZWVrWWVhci50b1N0cmluZygpLnNsaWNlKC0yKSwgMik7CgogICAgICAgICAgICBjYXNlICJra2trIjoKICAgICAgICAgICAgICByZXR1cm4gX3RoaXMubnVtKGR0LndlZWtZZWFyLCA0KTsKCiAgICAgICAgICAgIGNhc2UgIlciOgogICAgICAgICAgICAgIHJldHVybiBfdGhpcy5udW0oZHQud2Vla051bWJlcik7CgogICAgICAgICAgICBjYXNlICJXVyI6CiAgICAgICAgICAgICAgcmV0dXJuIF90aGlzLm51bShkdC53ZWVrTnVtYmVyLCAyKTsKCiAgICAgICAgICAgIGNhc2UgIm8iOgogICAgICAgICAgICAgIHJldHVybiBfdGhpcy5udW0oZHQub3JkaW5hbCk7CgogICAgICAgICAgICBjYXNlICJvb28iOgogICAgICAgICAgICAgIHJldHVybiBfdGhpcy5udW0oZHQub3JkaW5hbCwgMyk7CgogICAgICAgICAgICBjYXNlICJxIjoKICAgICAgICAgICAgICAvLyBsaWtlIDEKICAgICAgICAgICAgICByZXR1cm4gX3RoaXMubnVtKGR0LnF1YXJ0ZXIpOwoKICAgICAgICAgICAgY2FzZSAicXEiOgogICAgICAgICAgICAgIC8vIGxpa2UgMDEKICAgICAgICAgICAgICByZXR1cm4gX3RoaXMubnVtKGR0LnF1YXJ0ZXIsIDIpOwoKICAgICAgICAgICAgY2FzZSAiWCI6CiAgICAgICAgICAgICAgcmV0dXJuIF90aGlzLm51bShNYXRoLmZsb29yKGR0LnRzIC8gMTAwMCkpOwoKICAgICAgICAgICAgY2FzZSAieCI6CiAgICAgICAgICAgICAgcmV0dXJuIF90aGlzLm51bShkdC50cyk7CgogICAgICAgICAgICBkZWZhdWx0OgogICAgICAgICAgICAgIHJldHVybiBtYXliZU1hY3JvKHRva2VuKTsKICAgICAgICAgIH0KICAgICAgICB9OwoKICAgICAgICByZXR1cm4gc3RyaW5naWZ5VG9rZW5zKEZvcm1hdHRlci5wYXJzZUZvcm1hdChmbXQpLCB0b2tlblRvU3RyaW5nKTsKICAgICAgfTsKCiAgICAgIF9wcm90by5mb3JtYXREdXJhdGlvbkZyb21TdHJpbmcgPSBmdW5jdGlvbiBmb3JtYXREdXJhdGlvbkZyb21TdHJpbmcoZHVyLCBmbXQpIHsKICAgICAgICB2YXIgX3RoaXMyID0gdGhpczsKCiAgICAgICAgdmFyIHRva2VuVG9GaWVsZCA9IGZ1bmN0aW9uIHRva2VuVG9GaWVsZCh0b2tlbikgewogICAgICAgICAgc3dpdGNoICh0b2tlblswXSkgewogICAgICAgICAgICBjYXNlICJTIjoKICAgICAgICAgICAgICByZXR1cm4gIm1pbGxpc2Vjb25kIjsKCiAgICAgICAgICAgIGNhc2UgInMiOgogICAgICAgICAgICAgIHJldHVybiAic2Vjb25kIjsKCiAgICAgICAgICAgIGNhc2UgIm0iOgogICAgICAgICAgICAgIHJldHVybiAibWludXRlIjsKCiAgICAgICAgICAgIGNhc2UgImgiOgogICAgICAgICAgICAgIHJldHVybiAiaG91ciI7CgogICAgICAgICAgICBjYXNlICJkIjoKICAgICAgICAgICAgICByZXR1cm4gImRheSI7CgogICAgICAgICAgICBjYXNlICJNIjoKICAgICAgICAgICAgICByZXR1cm4gIm1vbnRoIjsKCiAgICAgICAgICAgIGNhc2UgInkiOgogICAgICAgICAgICAgIHJldHVybiAieWVhciI7CgogICAgICAgICAgICBkZWZhdWx0OgogICAgICAgICAgICAgIHJldHVybiBudWxsOwogICAgICAgICAgfQogICAgICAgIH0sCiAgICAgICAgICAgIHRva2VuVG9TdHJpbmcgPSBmdW5jdGlvbiB0b2tlblRvU3RyaW5nKGxpbGR1cikgewogICAgICAgICAgcmV0dXJuIGZ1bmN0aW9uICh0b2tlbikgewogICAgICAgICAgICB2YXIgbWFwcGVkID0gdG9rZW5Ub0ZpZWxkKHRva2VuKTsKCiAgICAgICAgICAgIGlmIChtYXBwZWQpIHsKICAgICAgICAgICAgICByZXR1cm4gX3RoaXMyLm51bShsaWxkdXIuZ2V0KG1hcHBlZCksIHRva2VuLmxlbmd0aCk7CiAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgcmV0dXJuIHRva2VuOwogICAgICAgICAgICB9CiAgICAgICAgICB9OwogICAgICAgIH0sCiAgICAgICAgICAgIHRva2VucyA9IEZvcm1hdHRlci5wYXJzZUZvcm1hdChmbXQpLAogICAgICAgICAgICByZWFsVG9rZW5zID0gdG9rZW5zLnJlZHVjZShmdW5jdGlvbiAoZm91bmQsIF9yZWYpIHsKICAgICAgICAgIHZhciBsaXRlcmFsID0gX3JlZi5saXRlcmFsLAogICAgICAgICAgICAgIHZhbCA9IF9yZWYudmFsOwogICAgICAgICAgcmV0dXJuIGxpdGVyYWwgPyBmb3VuZCA6IGZvdW5kLmNvbmNhdCh2YWwpOwogICAgICAgIH0sIFtdKSwKICAgICAgICAgICAgY29sbGFwc2VkID0gZHVyLnNoaWZ0VG8uYXBwbHkoZHVyLCByZWFsVG9rZW5zLm1hcCh0b2tlblRvRmllbGQpLmZpbHRlcihmdW5jdGlvbiAodCkgewogICAgICAgICAgcmV0dXJuIHQ7CiAgICAgICAgfSkpOwoKICAgICAgICByZXR1cm4gc3RyaW5naWZ5VG9rZW5zKHRva2VucywgdG9rZW5Ub1N0cmluZyhjb2xsYXBzZWQpKTsKICAgICAgfTsKCiAgICAgIHJldHVybiBGb3JtYXR0ZXI7CiAgICB9KCk7CgogICAgdmFyIEludmFsaWQgPSAvKiNfX1BVUkVfXyovZnVuY3Rpb24gKCkgewogICAgICBmdW5jdGlvbiBJbnZhbGlkKHJlYXNvbiwgZXhwbGFuYXRpb24pIHsKICAgICAgICB0aGlzLnJlYXNvbiA9IHJlYXNvbjsKICAgICAgICB0aGlzLmV4cGxhbmF0aW9uID0gZXhwbGFuYXRpb247CiAgICAgIH0KCiAgICAgIHZhciBfcHJvdG8gPSBJbnZhbGlkLnByb3RvdHlwZTsKCiAgICAgIF9wcm90by50b01l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gICBfcHJvdG8ub2Zmc2V0ID0gZnVuY3Rpb24gb2Zmc2V0KHRzKSB7CiAgICAgICAgdGhyb3cgbmV3IFpvbmVJc0Fic3RyYWN0RXJyb3IoKTsKICAgICAgfQogICAgICAvKioKICAgICAgICogUmV0dXJuIHdoZXRoZXIgdGhpcyBab25lIGlzIGVxdWFsIHRvIGFub3RoZXIgem9uZQogICAgICAgKiBAYWJzdHJhY3QKICAgICAgICogQHBhcmFtIHtab25lfSBvdGhlclpvbmUgLSB0aGUgem9uZSB0byBjb21wYXJlCiAgICAgICAqIEByZXR1cm4ge2Jvb2xlYW59CiAgICAgICAqLwogICAgICA7CgogICAgICBfcHJvdG8uZXF1YWxzID0gZnVuY3Rpb24gZXF1YWxzKG90aGVyWm9uZSkgewogICAgICAgIHRocm93IG5ldyBab25lSXNBYnN0cmFjdEVycm9yKCk7CiAgICAgIH0KICAgICAgLyoqCiAgICAgICAqIFJldHVybiB3aGV0aGVyIHRoaXMgWm9uZSBpcyB2YWxpZC4KICAgICAgICogQGFic3RyYWN0CiAgICAgICAqIEB0eXBlIHtib29sZWFufQogICAgICAgKi8KICAgICAgOwoKICAgICAgX2NyZWF0ZUNsYXNzKFpvbmUsIFt7CiAgICAgICAga2V5OiAidHlwZSIsCiAgICAgICAgZ2V0OgogICAgICAgIC8qKgogICAgICAgICAqIFRoZSB0eXBlIG9mIHpvbmUKICAgICAgICAgKiBAYWJzdHJhY3QKICAgICAgICAgKiBAdHlwZSB7c3RyaW5nfQogICAgICAgICAqLwogICAgICAgIGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHRocm93IG5ldyBab25lSXNBYnN0cmFjdEVycm9yKCk7CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIFRoZSBuYW1lIG9mIHRoaXMgem9uZS4KICAgICAgICAgKiBAYWJzdHJhY3QKICAgICAgICAgKiBAdHlwZSB7c3RyaW5nfQogICAgICAgICAqLwoKICAgICAgfSwgewogICAgICAgIGtleTogIm5hbWUiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgdGhyb3cgbmV3IFpvbmVJc0Fic3RyYWN0RXJyb3IoKTsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICogUmV0dXJucyB3aGV0aGVyIHRoZSBvZmZzZXQgaXMga25vd24gdG8gYmUgZml4ZWQgZm9yIHRoZSB3aG9sZSB5ZWFyLgogICAgICAgICAqIEBhYnN0cmFjdAogICAgICAgICAqIEB0eXBlIHtib29sZWFufQogICAgICAgICAqLwoKICAgICAgfSwgewogICAgICAgIGtleTogImlzVW5pdmVyc2FsIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHRocm93IG5ldyBab25lSXNBYnN0cmFjdEVycm9yKCk7CiAgICAgICAgfQogICAgICB9LCB7CiAgICAgICAga2V5OiAiaXNWYWxpZCIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICB0aHJvdyBuZXcgWm9uZUlzQWJzdHJhY3RFcnJvcigpOwogICAgICAgIH0KICAgICAgfV0pOwoKICAgICAgcmV0dXJuIFpvbmU7CiAgICB9KCk7CgogICAgdmFyIHNpbmdsZXRvbiQxID0gbnVsbDsKICAgIC8qKgogICAgICogUmVwcmVzZW50cyB0aGUgbG9jYWwgem9uZSBmb3IgdGhpcyBKYXZhU2NyaXB0IGVudmlyb25tZW50LgogICAgICogQGltcGxlbWVudHMge1pvbmV9CiAgICAgKi8KCiAgICB2YXIgU3lzdGVtWm9uZSA9IC8qI19fUFVSRV9fKi9mdW5jdGlvbiAoX1pvbmUpIHsKICAgICAgX2luaGVyaXRzTG9vc2UoU3lzdGVtWm9uZSwgX1pvbmUpOwoKICAgICAgZnVuY3Rpb24gU3lzdGVtWm9uZSgpIHsKICAgICAgICByZXR1cm4gX1pvbmUuYXBwbHkodGhpcywgYXJndW1lbnRzKSB8fCB0aGlzOwogICAgICB9CgogICAgICB2YXIgX3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JuICJzeXN0ZW0iOwogICAgICAgIH0KICAgICAgICAvKiogQG92ZXJyaWRlICoqLwoKICAgICAgfSwgewogICAgICAgIGtleTogIm5hbWUiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIG5ldyBJbnRsLkRhdGVUaW1lRm9ybWF0KCkucmVzb2x2ZWRPcHRpb25zKCkudGltZVpvbmU7CiAgICAgICAgfQogICAgICAgIC8qKiBAb3ZlcnJpZGUgKiovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAiaXNVbml2ZXJzYWwiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0KICAgICAgfSwgewogICAgICAgIGtleTogImlzVmFsaWQiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIHRydWU7CiAgICAgICAgfQogICAgICB9XSwgW3sKICAgICAgICBrZXk6ICJpbnN0YW5jZSIsCiAgICAgICAgZ2V0OgogICAgICAgIC8qKgogICAgICAgICAqIEdldCBhIHNpbmdsZXRvbiBpbnN0YW5jZSBvZiB0aGUgbG9jYWwgem9uZQogICAgICAgICAqIEByZXR1cm4ge1N5c3RlbVpvbmV9CiAgICAgICAgICovCiAgICAgICAgZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgaWYgKHNpbmdsZXRvbiQxID09PSBudWxsKSB7CiAgICAgICAgICAgIHNpbmdsZXRvbiQxID0gbmV3IFN5c3RlbVpvbmUoKTsKICAgICAgICAgIH0KCiAgICAgICAgICByZXR1cm4gc2luZ2xldG9uJDE7CiAgICAgICAgfQogICAgICB9XSk7CgogICAgICByZXR1cm4gU3lzdGVtWm9uZTsKICAgIH0oWm9uZSk7CgogICAgdmFyIG1hdGNoaW5nUmVnZXggPSBSZWdFeHAoIl4iICsgaWFuYVJlZ2V4LnNvdXJjZSArICIkIik7CiAgICB2YXIgZHRmQ2FjaGUgPSB7fTsKCiAgICBmdW5jdGlvbiBtYWtlRFRGKHpvbmUpIHsKICAgICAgaWYgKCFkdGZDYWNoZVt6b25lXSkgewogICAgICAgIGR0ZkNhY2hlW3pvbmVdID0gbmV3IEludGwuRGF0ZVRpbWVGb3JtYXQoImVuLVVTIiwgewogICAgICAgICAgaG91ckN5Y2xlOiAiaDIzIiwKICAgICAgICAgIHRpbWVab25lOiB6b25lLAogICAgICAgICAgeWVhcjogIm51bWVyaWMiLAogICAgICAgICAgbW9udGg6ICIyLWRpZ2l0IiwKICAgICAgICAgIGRheTogIjItZGlnaXQiLAogICAgICAgICAgaG91cjogIjItZGlnaXQiLAogICAgICAgICAgbWludXRlOiAiMi1kaWdpdCIsCiAgICAgICAgICBzZWNvbmQ6ICIyLWRpZ2l0IgogICAgICAgIH0pOwogICAgICB9CgogICAgICByZXR1cm4gZHRmQ2FjaGVbem9uZV07CiAgICB9CgogICAgdmFyIHR5cGVUb1BvcyA9IHsKICAgICAgeWVhcjogMCwKICAgICAgbW9udGg6IDEsCiAgICAgIGRheTogMiwKICAgICAgaG91cjogMywKICAgICAgbWludXRlOiA0LAogICAgICBzZWNvbmQ6IDUKICAgIH07CgogICAgZnVuY3Rpb24gaGFja3lPZmZzZXQoZHRmLCBkYXRlKSB7CiAgICAgIHZhciBmb3JtYXR0ZWQgPSBkdGYuZm9ybWF0KGRhdGUpLnJlcGxhY2UoL1x1MjAwRS9nLCAiIiksCiAgICAgICAgICBwYXJzZWQgPSAvKFxkKylcLyhcZCspXC8oXGQrKSw/IChcZCspOihcZCspOihcZCspLy5leGVjKGZvcm1hdHRlZCksCiAgICAgICAgICBmTW9udGggPSBwYXJzZWRbMV0sCiAgICAgICAgICBmRGF5ID0gcGFyc2VkWzJdLAogICAgICAgICAgZlllYXIgPSBwYXJzZWRbM10sCiAgICAgICAgICBmSG91ciA9IHBhcnNlZFs0XSwKICAgICAgICAgIGZNaW51dGUgPSBwYXJzZWRbNV0sCiAgICAgICAgICBmU2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pIHsKICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9CiAgICAgIH0gLy8gRXRjL0dNVCs4IC0+IC00ODAKCiAgICAgIC8qKiBAaWdub3JlICovCiAgICAgIDsKCiAgICAgIElBTkFab25lLnBhcnNlR01UT2Zmc2V0ID0gZnVuY3Rpb24gcGFyc2VHTVRPZmZzZXQoc3BlY2lmaWVyKSB7CiAgICAgICAgaWYgKHNwZWNpZmllcikgewogICAgICAgICAgdmFyIG1hdGNoID0gc3BlY2lmaWVyLm1hdGNoKC9eRXRjXC9HTVQoMHxbKy1dXGR7MSwyfSkkL2kpOwoKICAgICAgICAgIGlmIChtYXRjaCkgewogICAgICAgICAgICByZXR1cm4gLTYwICogcGFyc2VJbnQobWF0Y2hbMV0pOwogICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgcmV0dXJuIG51bGw7CiAgICAgIH07CgogICAgICBmdW5jdGlvbiBJQU5BWm9uZShuYW1lKSB7CiAgICAgICAgdmFyIF90aGlzOwoKICAgICAgICBfdGhpcyA9IF9ab25lLmNhbGwodGhpcykgfHwgdGhpczsKICAgICAgICAvKiogQHByaXZhdGUgKiovCgogICAgICAgIF90aGlzLnpvbmVOYW1lID0gbmFtZTsKICAgICAgICAvKiogQHByaXZhdGUgKiovCgogICAgICAgIF90aGlzLnZhbGlkID0gSUFOQVpvbmUuaXNWYWxpZFpvbmUobmFtZSk7CiAgICAgICAgcmV0dXJuIF90aGlzOwogICAgICB9CiAgICAgIC8qKiBAb3ZlcnJpZGUgKiovCgoKICAgICAgdmFyIF9wcm90byA9IElBTkFab25lLnByb3RvdHlwZTsKCiAgICAgIC8qKiBAb3ZlcnJpZGUgKiovCiAgICAgIF9wcm90by5vZmZzZXROYW1lID0gZnVuY3Rpb24gb2Zmc2V0TmFtZSh0cywgX3JlZikgewogICAgICAgIHZhciBmb3JtYXQgPSBfcmVmLmZvcm1hdCwKICAgICAgICAgICAgbG9jYWxlID0gX3JlZi5sb2NhbGU7CiAgICAgICAgcmV0dXJuIHBhcnNlWm9uZUluZm8odHMsIGZvcm1hdCwgbG9jYWxlLCB0aGlzLm5hbWUpOwogICAgICB9CiAgICAgIC8qKiBAb3ZlcnJpZGUgKiovCiAgICAgIDsKCiAgICAgIF9wcm90by5mb3JtYXRPZmZzZXQgPSBmdW5jdGlvbiBmb3JtYXRPZmZzZXQkMSh0cywgZm9ybWF0KSB7CiAgICAgICAgcmV0dXJuIGZvcm1hdE9mZnNldCh0aGlzLm9mZnNldCh0cyksIGZvcm1hdCk7CiAgICAgIH0KICAgICAgLyoqIEBvdmVycmlkZSAqKi8KICAgICAgOwoKICAgICAgX3Byb3RvLm9mZnNldCA9IGZ1bmN0aW9uIG9mZnNldCh0cykgewogICAgICAgIHZhciBkYXRlID0gbmV3IERhdGUodHMpOwogICAgICAgIGlmIChpc05hTihkYXRlKSkgcmV0dXJuIE5hTjsKCiAgICAgICAgdmFyIGR0ZiA9IG1ha2VEVEYodGhpcy5uYW1lKSwKICAgICAgICAgICAgX3JlZjIgPSBkdGYuZm9ybWF0VG9QYXJ0cyA/IHBhcnRzT2Zmc2V0KGR0ZiwgZGF0ZSkgOiBoYWNreU9mZnNldChkdGYsIGRhdGUpLAogICAgICAgICAgICB5ZWFyID0gX3JlZjJbMF0sCiAgICAgICAgICAgIG1vbnRoID0gX3JlZjJbMV0sCiAgICAgICAgICAgIGRheSA9IF9yZWYyWzJdLAogICAgICAgICAgICBob3VyID0gX3JlZjJbM10sCiAgICAgICAgICAgIG1pbnV0ZSA9IF9yZWYyWzRdLAogICAgICAgICAgICBzZWNvbmQgPSBfcmVmMls1XTsKCiAgICAgICAgdmFyIGFzVVRDID0gb2JqVG9Mb2NhbFRTKHsKICAgICAgICAgIHllYXI6IHllYXIsCiAgICAgICAgICBtb250aDogbW9udGgsCiAgICAgICAgICBkYXk6IGRheSwKICAgICAgICAgIGhvdXI6IGhvdXIsCiAgICAgICAgICBtaW51dGU6IG1pbnV0ZSwKICAgICAgICAgIHNlY29uZDogc2Vjb25kLAogICAgICAgICAgbWlsbGlzZWNvbmQ6IDAKICAgICAgICB9KTsKICAgICAgICB2YXIgYXNUUyA9ICtkYXRlOwogICAgICAgIHZhciBvdmVyID0gYXNUUyAlIDEwMDA7CiAgICAgICAgYXNUUyAtPSBvdmVyID49IDAgPyBvdmVyIDogMTAwMCArIG92ZXI7CiAgICAgICAgcmV0dXJuIChhc1VUQyAtIGFzVFMpIC8gKDYwICogMTAwMCk7CiAgICAgIH0KICAgICAgLyoqIEBvdmVycmlkZSAqKi8KICAgICAgOwoKICAgICAgX3Byb3RvLmVxdWFscyA9IGZ1bmN0aW9uIGVxdWFscyhvdGhlclpvbmUpIHsKICAgICAgICByZXR1cm4gb3RoZXJab25lLnR5cGUgPT09ICJpYW5hIiAmJiBvdGhlclpvbmUubmFtZSA9PT0gdGhpcy5uYW1lOwogICAgICB9CiAgICAgIC8qKiBAb3ZlcnJpZGUgKiovCiAgICAgIDsKCiAgICAgIF9jcmVhdGVDbGFzcyhJQU5BWm9uZSwgW3sKICAgICAgICBrZXk6ICJ0eXBlIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiAiaWFuYSI7CiAgICAgICAgfQogICAgICAgIC8qKiBAb3ZlcnJpZGUgKiovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAibmFtZSIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gdGhpcy56b25lTmFtZTsKICAgICAgICB9CiAgICAgICAgLyoqIEBvdmVycmlkZSAqKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJpc1VuaXZlcnNhbCIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfQogICAgICB9LCB7CiAgICAgICAga2V5OiAiaXNWYWxpZCIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoK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MubmFtZTsKICAgICAgfQogICAgICAvKiogQG92ZXJyaWRlICoqLwogICAgICA7CgogICAgICBfcHJvdG8uZm9ybWF0T2Zmc2V0ID0gZnVuY3Rpb24gZm9ybWF0T2Zmc2V0JDEodHMsIGZvcm1hdCkgewogICAgICAgIHJldHVybiBmb3JtYXRPZmZzZXQodGhpcy5maXhlZCwgZm9ybWF0KTsKICAgICAgfQogICAgICAvKiogQG92ZXJyaWRlICoqLwogICAgICA7CgogICAgICAvKiogQG92ZXJyaWRlICoqLwogICAgICBfcHJvdG8ub2Zmc2V0ID0gZnVuY3Rpb24gb2Zmc2V0KCkgewogICAgICAgIHJldHVybiB0aGlzLmZpeGVkOwogICAgICB9CiAgICAgIC8qKiBAb3ZlcnJpZGUgKiovCiAgICAgIDsKCiAgICAgIF9wcm90by5lcXVhbHMgPSBmdW5jdGlvbiBlcXVhbHMob3RoZXJab25lKSB7CiAgICAgICAgcmV0dXJuIG90aGVyWm9uZS50eXBlID09PSAiZml4ZWQiICYmIG90aGVyWm9uZS5maXhlZCA9PT0gdGhpcy5maXhlZDsKICAgICAgfQogICAgICAvKiogQG92ZXJyaWRlICoqLwogICAgICA7CgogICAgICBfY3JlYXRlQ2xhc3MoRml4ZWRPZmZzZXRab25lLCBbewogICAgICAgIGtleTogInR5cGUiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuICJmaXhlZCI7CiAgICAgICAgfQogICAgICAgIC8qKiBAb3ZlcnJpZGUgKiovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAibmFtZSIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gdGhpcy5maXhlZCA9PT0gMCA/ICJVVEMiIDogIlVUQyIgKyBmb3JtYXRPZmZzZXQodGhpcy5maXhlZCwgIm5hcnJvdyIpOwogICAgICAgIH0KICAgICAgfSwgewogICAgICAgIGtleTogImlzVW5pdmVyc2FsIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiB0cnVlOwogICAgICAgIH0KICAgICAgfSwgewogICAgICAgIGtleTogImlzVmFsaWQiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIHRydWU7CiAgICAgICAgfQogICAgICB9XSwgW3sKICAgICAgICBrZXk6ICJ1dGNJbnN0YW5jZSIsCiAgICAgICAgZ2V0OgogICAgICAgIC8qKgogICAgICAgICAqIEdldCBhIHNpbmdsZXRvbiBpbnN0YW5jZSBvZiBVVEMKICAgICAgICAgKiBAcmV0dXJuIHtGaXhlZE9mZnNldFpvbmV9CiAgICAgICAgICovCiAgICAgICAgZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgaWYgKHNpbmdsZXRvbiA9PT0gbnVsbCkgewogICAgICAgICAgICBzaW5nbGV0b24gPSBuZXcgRml4ZWRPZmZzZXRab25lKDApOwogICAgICAgICAgfQoKICAgICAgICAgIHJldHVybiBzaW5nbGV0b247CiAgICAgICAgfQogICAgICB9XSk7CgogICAgICByZXR1cm4gRml4ZWRPZmZzZXRab25lOwogICAgfShab25lKTsKCiAgICAvKioKICAgICAqIEEgem9uZSB0aGF0IGZhaWxlZCB0byBwYXJzZS4gWW91IHNob3VsZCBuZXZlciBuZWVkIHRvIGluc3RhbnRpYXRlIHRoaXMuCiAgICAgKiBAaW1wbGVtZW50cyB7Wm9uZX0KICAgICAqLwoKICAgIHZhciBJbnZhbGlkWm9uZSA9IC8qI19fUFVSRV9fKi9mdW5jdGlvbiAoX1pvbmUpIHsKICAgICAgX2luaGVyaXRzTG9vc2UoSW52YWxpZFpvbmUsIF9ab25lKTsKCiAgICAgIGZ1bmN0aW9uIEludmFsaWRab25lKHpvbmVOYW1lKSB7CiAgICAgICAgdmFyIF90aGlzOwoKICAgICAgICBfdGhpcyA9IF9ab25lLmNhbGwodGhpcykgfHwgdGhpczsKICAgICAgICAvKiogIEBwcml2YXRlICovCgogICAgICAgIF90aGlzLnpvbmVOYW1lID0gem9uZU5hbWU7CiAgICAgICAgcmV0dXJuIF90aGlzOwogICAgICB9CiAgICAgIC8qKiBAb3ZlcnJpZGUgKiovCgoKICAgICAgdmFyIF9wcm90byA9IEludmFsaWRab25lLnByb3RvdHlwZTsKCiAgICAgIC8qKiBAb3ZlcnJpZGUgKiovCiAgICAgIF9wcm90by5vZmZzZXROYW1lID0gZnVuY3Rpb24gb2Zmc2V0TmFtZSgpIHsKICAgICAgICByZXR1cm4gbnVsbDsKICAgICAgfQogICAgICAvKiogQG92ZXJyaWRlICoqLwogICAgICA7CgogICAgICBfcHJvdG8uZm9ybWF0T2Zmc2V0ID0gZnVuY3Rpb24gZm9ybWF0T2Zmc2V0KCkgewogICAgICAgIHJldHVybiAiIjsKICAgICAgfQogICAgICAvKiogQG92ZXJyaWRlICoqLwogICAgICA7CgogICAgICBfcHJvdG8ub2Zmc2V0ID0gZnVuY3Rpb24gb2Zmc2V0KCkgewogICAgICAgIHJldHVybiBOYU47CiAgICAgIH0KICAgICAgLyoqIEBvdmVycmlkZSAqKi8KICAgICAgOwoKICAgICAgX3Byb3RvLmVxdWFscyA9IGZ1bmN0aW9uIGVxdWFscygpIHsKICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgIH0KICAgICAgLyoqIEBvdmVycmlkZSAqKi8KICAgICAgOwoKICAgICAgX2NyZWF0ZUNsYXNzKEludmFsaWRab25lLCBbewogICAgICAgIGtleTogInR5cGUiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuICJpbnZhbGlkIjsKICAgICAgICB9CiAgICAgICAgLyoqIEBvdmVycmlkZSAqKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJuYW1lIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiB0aGlzLnpvbmVOYW1lOwogICAgICAgIH0KICAgICAgICAvKiogQG92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ICAgICAgIC8qKgogICAgICAgICAqIFNldCB0aGUgZGVmYXVsdCBvdXRwdXQgY2FsZW5kYXIgdG8gY3JlYXRlIERhdGVUaW1lcyB3aXRoLiBEb2VzIG5vdCBhZmZlY3QgZXhpc3RpbmcgaW5zdGFuY2VzLgogICAgICAgICAqIEB0eXBlIHtzdHJpbmd9CiAgICAgICAgICovCiAgICAgICAgLAogICAgICAgIHNldDogZnVuY3Rpb24gc2V0KG91dHB1dENhbGVuZGFyKSB7CiAgICAgICAgICBkZWZhdWx0T3V0cHV0Q2FsZW5kYXIgPSBvdXRwdXRDYWxlbmRhcjsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICogR2V0IHdoZXRoZXIgTHV4b24gd2lsbCB0aHJvdyB3aGVuIGl0IGVuY291bnRlcnMgaW52YWxpZCBEYXRlVGltZXMsIER1cmF0aW9ucywgb3IgSW50ZXJ2YWxzCiAgICAgICAgICogQHR5cGUge2Jvb2xlYW59CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAidGhyb3dPbkludmFsaWQiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIHRocm93T25JbnZhbGlkOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiBTZXQgd2hldGhlciBMdXhvbiB3aWxsIHRocm93IHdoZW4gaXQgZW5jb3VudGVycyBpbnZhbGlkIERhdGVUaW1lcywgRHVyYXRpb25zLCBvciBJbnRlcnZhbHMKICAgICAgICAgKiBAdHlwZSB7Ym9vbGVhbn0KICAgICAgICAgKi8KICAgICAgICAsCiAgICAgICAgc2V0OiBmdW5jdGlvbiBzZXQodCkgewogICAgICAgICAgdGhyb3dPbkludmFsaWQgPSB0OwogICAgICAgIH0KICAgICAgfV0pOwoKICAgICAgcmV0dXJuIFNldHRpbmdzOwogICAgfSgpOwoKICAgIHZhciBfZXhjbHVkZWQgPSBbImJhc2UiXTsKICAgIHZhciBpbnRsRFRDYWNoZSA9IHt9OwoKICAgIGZ1bmN0aW9uIGdldENhY2hlZERURihsb2NTdHJpbmcsIG9wdHMpIHsKICAgICAgaWYgKG9wdHMgPT09IHZvaWQgMCkgewogICAgICAgIG9wdHMgPSB7fTsKICAgICAgfQoKICAgICAgdmFyIGtleSA9IEpTT04uc3RyaW5naWZ5KFtsb2NTdHJpbmcsIG9wdHNdKTsKICAgICAgdmFyIGR0ZiA9IGludGxEVENhY2hlW2tleV07CgogICAgICBpZiAoIWR0ZikgewogICAgICAgIGR0ZiA9IG5ldyBJbnRsLkRhdGVUaW1lRm9ybWF0KGxvY1N0cmluZywgb3B0cyk7CiAgICAgICAgaW50bERUQ2FjaGVba2V5XSA9IGR0ZjsKICAgICAgfQoKICAgICAgcmV0dXJuIGR0ZjsKICAgIH0KCiAgICB2YXIgaW50bE51bUNhY2hlID0ge307CgogICAgZnVuY3Rpb24gZ2V0Q2FjaGVkSU5GKGxvY1N0cmluZywgb3B0cykgewogICAgICBpZiAob3B0cyA9PT0gdm9pZCAwKSB7CiAgICAgICAgb3B0cyA9IHt9OwogICAgICB9CgogICAgICB2YXIga2V5ID0gSlNPTi5zdHJpbmdpZnkoW2xvY1N0cmluZywgb3B0c10pOwogICAgICB2YXIgaW5mID0gaW50bE51bUNhY2hlW2tleV07CgogICAgICBpZiAoIWluZikgewogICAgICAgIGluZiA9IG5ldyBJbnRsLk51bWJlckZvcm1hdChsb2NTdHJpbmcsIG9wdHMpOwogICAgICAgIGludGxOdW1DYWNoZVtrZXldID0gaW5mOwogICAgICB9CgogICAgICByZXR1cm4gaW5mOwogICAgfQoKICAgIHZhciBpbnRsUmVsQ2FjaGUgPSB7fTsKCiAgICBmdW5jdGlvbiBnZXRDYWNoZWRSVEYobG9jU3RyaW5nLCBvcHRzKSB7CiAgICAgIGlmIChvcHRzID09PSB2b2lkIDApIHsKICAgICAgICBvcHRzID0ge307CiAgICAgIH0KCiAgICAgIHZhciBfb3B0cyA9IG9wdHM7CiAgICAgICAgICB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3RyLCBudW1iZXJpbmdTeXN0ZW0sIG91dHB1dENhbGVuZGFyKSB7CiAgICAgIGlmIChvdXRwdXRDYWxlbmRhciB8fCBudW1iZXJpbmdTeXN0ZW0pIHsKICAgICAgICBsb2NhbGVTdHIgKz0gIi11IjsKCiAgICAgICAgaWYgKG91dHB1dENhbGVuZGFyKSB7CiAgICAgICAgICBsb2NhbGVTdHIgKz0gIi1jYS0iICsgb3V0cHV0Q2FsZW5kYXI7CiAgICAgICAgfQoKICAgICAgICBpZiAobnVtYmVyaW5nU3lzdGVtKSB7CiAgICAgICAgICBsb2NhbGVTdHIgKz0gIi1udS0iICsgbnVtYmVyaW5nU3lzdGVtOwogICAgICAgIH0KCiAgICAgICAgcmV0dXJuIGxvY2FsZVN0cjsKICAgICAgfSBlbHNlIHsKICAgICAgICByZXR1cm4gbG9jYWxlU3RyOwogICAgICB9CiAgICB9CgogICAgZnVuY3Rpb24gbWFwTW9udGhzKGYpIHsKICAgICAgdmFyIG1zID0gW107CgogICAgICBmb3IgKHZhciBpID0gMTsgaSA8PSAxMjsgaSsrKSB7CiAgICAgICAgdmFyIGR0ID0gRGF0ZVRpbWUudXRjKDIwMTYsIGksIDEpOwogICAgICAgIG1zLnB1c2goZihkdCkpOwogICAgICB9CgogICAgICByZXR1cm4gbXM7CiAgICB9CgogICAgZnVuY3Rpb24gbWFwV2Vla2RheXMoZikgewogICAgICB2YXIgbXMgPSBbXTsKCiAgICAgIGZvciAodmFyIGkgPSAxOyBpIDw9IDc7IGkrKykgewogICAgICAgIHZhciBkdCA9IERhdGVUaW1lLnV0YygyMDE2LCAxMSwgMTMgKyBpKTsKICAgICAgICBtcy5wdXNoKGYoZHQpKTsKICAgICAgfQoKICAgICAgcmV0dXJuIG1zOwogICAgfQoKICAgIGZ1bmN0aW9uIGxpc3RTdHVmZihsb2MsIGxlbmd0aCwgZGVmYXVsdE9LLCBlbmdsaXNoRm4sIGludGxGbikgewogICAgICB2YXIgbW9kZSA9IGxvYy5saXN0a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ICAgIGRlZmF1bHRUb0VOOiBmYWxzZQogICAgICAgIH0pKTsKICAgICAgfTsKCiAgICAgIF9wcm90bzQubW9udGhzID0gZnVuY3Rpb24gbW9udGhzJDEobGVuZ3RoLCBmb3JtYXQsIGRlZmF1bHRPSykgewogICAgICAgIHZhciBfdGhpcyA9IHRoaXM7CgogICAgICAgIGlmIChmb3JtYXQgPT09IHZvaWQgMCkgewogICAgICAgICAgZm9ybWF0ID0gZmFsc2U7CiAgICAgICAgfQoKICAgICAgICBpZiAoZGVmYXVsdE9LID09PSB2b2lkIDApIHsKICAgICAgICAgIGRlZmF1bHRPSyA9IHRydWU7CiAgICAgICAgfQoKICAgICAgICByZXR1cm4gbGlzdFN0dWZmKHRoaXMsIGxlbmd0aCwgZGVmYXVsdE9LLCBtb250aHMsIGZ1bmN0aW9uICgpIHsKICAgICAgICAgIHZhciBpbnRsID0gZm9ybWF0ID8gewogICAgICAgICAgICBtb250aDogbGVuZ3RoLAogICAgICAgICAgICBkYXk6ICJudW1lcmljIgogICAgICAgICAgfSA6IHsKICAgICAgICAgICAgbW9udGg6IGxlbmd0aAogICAgICAgICAgfSwKICAgICAgICAgICAgICBmb3JtYXRTdHIgPSBmb3JtYXQgPyAiZm9ybWF0IiA6ICJzdGFuZGFsb25lIjsKCiAgICAgICAgICBpZiAoIV90aGlzLm1vbnRoc0NhY2hlW2Zvcm1hdFN0cl1bbGVuZ3RoXSkgewogICAgICAgICAgICBfdGhpcy5tb250aHNDYWNoZVtmb3JtYXRTdHJdW2xlbmd0aF0gPSBtYXBNb250aHMoZnVuY3Rpb24gKGR0KSB7CiAgICAgICAgICAgICAgcmV0dXJuIF90aGlzLmV4dHJhY3QoZHQsIGludGwsICJtb250aCIpOwogICAgICAgICAgICB9KTsKICAgICAgICAgIH0KCiAgICAgICAgICByZXR1cm4gX3RoaXMubW9udGhzQ2FjaGVbZm9ybWF0U3RyXVtsZW5ndGhdOwogICAgICAgIH0pOwogICAgICB9OwoKICAgICAgX3Byb3RvNC53ZWVrZGF5cyA9IGZ1bmN0aW9uIHdlZWtkYXlzJDEobGVuZ3RoLCBmb3JtYXQsIGRlZmF1bHRPSykgewogICAgICAgIHZhciBfdGhpczIgPSB0aGlzOwoKICAgICAgICBpZiAoZm9ybWF0ID09PSB2b2lkIDApIHsKICAgICAgICAgIGZvcm1hdCA9IGZhbHNlOwogICAgICAgIH0KCiAgICAgICAgaWYgKGRlZmF1bHRPSyA9PT0gdm9pZCAwKSB7CiAgICAgICAgICBkZWZhdWx0T0sgPSB0cnVlOwogICAgICAgIH0KCiAgICAgICAgcmV0dXJuIGxpc3RTdHVmZih0aGlzLCBsZW5ndGgsIGRlZmF1bHRPSywgd2Vla2RheXMsIGZ1bmN0aW9uICgpIHsKICAgICAgICAgIHZhciBpbnRsID0gZm9ybWF0ID8gewogICAgICAgICAgICB3ZWVrZGF5OiBsZW5ndGgsCiAgICAgICAgICAgIHllYXI6ICJudW1lcmljIiwKICAgICAgICAgICAgbW9udGg6ICJsb25nIiwKICAgICAgICAgICAgZGF5OiAibnVtZXJpYyIKICAgICAgICAgIH0gOiB7CiAgICAgICAgICAgIHdlZWtkYXk6IGxlbmd0aAogICAgICAgICAgfSwKICAgICAgICAgICAgICBmb3JtYXRTdHIgPSBmb3JtYXQgPyAiZm9ybWF0IiA6ICJzdGFuZGFsb25lIjsKCiAgICAgICAgICBpZiAoIV90aGlzMi53ZWVrZGF5c0NhY2hlW2Zvcm1hdFN0cl1bbGVuZ3RoXSkgewogICAgICAgICAgICBfdGhpczIud2Vla2RheXNDYWNoZVtmb3JtYXRTdHJdW2xlbmd0aF0gPSBtYXBXZWVrZGF5cyhmdW5jdGlvbiAoZHQpIHsKICAgICAgICAgICAgICByZXR1cm4gX3RoaXMyLmV4dHJhY3QoZHQsIGludGwsICJ3ZWVrZGF5Iik7CiAgICAgICAgICAgIH0pOwogICAgICAgICAgfQoKICAgICAgICAgIHJldHVybiBfdGhpczIud2Vla2RheXNDYWNoZVtmb3JtYXRTdHJdW2xlbmd0aF07CiAgICAgICAgfSk7CiAgICAgIH07CgogICAgICBfcHJvdG80Lm1lcmlkaWVtcyA9IGZ1bmN0aW9uIG1lcmlkaWVtcyQxKGRlZmF1bHRPSykgewogICAgICAgIHZhciBfdGhpczMgPSB0aGlzOwoKICAgICAgICBpZiAoZGVmYXVsdE9LID09PSB2b2lkIDApIHsKICAgICAgICAgIGRlZmF1bHRPSyA9IHRydWU7CiAgICAgICAgfQoKICAgICAgICByZXR1cm4gbGlzdFN0dWZmKHRoaXMsIHVuZGVmaW5lZCwgZGVmYXVsdE9LLCBmdW5jdGlvbiAoKSB7CiAgICAgICAgICByZXR1cm4gbWVyaWRpZW1zOwogICAgICAgIH0sIGZ1bmN0aW9uICgpIHsKICAgICAgICAgIC8vIEluIHRoZW9yeSB0aGVyZSBjb3VsZCBiZSBhcmliaXRyYXJ5IGRheSBwZXJpb2RzLiBXZSdyZSBnb25uYSBhc3N1bWUgdGhlcmUgYXJlIGV4YWN0bHkgdHdvCiAgICAgICAgICAvLyBmb3IgQU0gYW5kIFBNLiBUaGlzIGlzIHByb2JhYmx5IHdyb25nLCBidXQgaXQncyBtYWtlcyBwYXJzaW5nIHdheSBlYXNpZXIuCiAgICAgICAgICBpZiAoIV90aGlzMy5tZXJpZGllbUNhY2hlKSB7CiAgICAgICAgICAgIHZhciBpbnRsID0gewogICAgICAgICAgICAgIGhvdXI6ICJudW1lcmljIiwKICAgICAgICAgICAgICBob3VyQ3ljbGU6ICJoMTIiCiAgICAgICAgICAgIH07CiAgICAgICAgICAgIF90aGlzMy5tZXJpZGllbUNhY2hlID0gW0RhdGVUaW1lLnV0YygyMDE2LCAxMSwgMTMsIDkpLCBEYXRlVGltZS51dGMoMjAxNiwgMTEsIDEzLCAxOSldLm1hcChmdW5jdGlvbiAoZHQpIHsKICAgICAgICAgICAgICByZXR1cm4gX3RoaXMzLmV4dHJhY3QoZHQsIGludGwsICJkYXlwZXJpb2QiKTsKICAgICAgICAgICAgfSk7CiAgICAgICAgICB9CgogICAgICAgICAgcmV0dXJuIF90aGlzMy5tZXJpZGllbUNhY2hlOwogICAgICAgIH0pOwogICAgICB9OwoKICAgICAgX3Byb3RvNC5lcmFzID0gZnVuY3Rpb24gZXJhcyQxKGxlbmd0aCwgZGVmYXVsdE9LKSB7CiAgICAgICAgdmFyIF90aGlzNCA9IHRoaXM7CgogICAgICAgIGlmIChkZWZhdWx0T0sgPT09IHZvaWQgMCkgewogICAgICAgICAgZGVmYXVsdE9LID0gdHJ1ZTsKICAgICAgICB9CgogICAgICAgIHJldHVybiBsaXN0U3R1ZmYodGhpcywgbGVuZ3RoLCBkZWZhdWx0T0ssIGVyYXMsIGZ1bmN0aW9uICgpIHsKICAgICAgICAgIHZhciBpbnRsID0gewogICAgICAgICAgICBlcmE6IGxlbmd0aAogICAgICAgICAgfTsgLy8gVGhpcyBpcyBwcm9ibGVtYXRpYy4gRGlmZmVyZW50IGNhbGVuZGFycyBhcmUgZ29pbmcgdG8gZGVmaW5lIGVyYXMgdG90YWxseSBkaWZmZXJlbnRseS4gV2hhdCBJIG5lZWQgaXMgdGhlIG1pbmltdW0gc2V0IG9mIGRhdGVzCiAgICAgICAgICAvLyB0byBkZWZpbml0ZWx5IGVudW1lcmF0ZSB0aGVtLgoKICAgICAgICAgIGlmICghX3RoaXM0LmVyYUNhY2hlW2xlbmd0aF0pIHsKICAgICAgICAgICAgX3RoaXM0LmVyYUNhY2hlW2xlbmd0aF0gPSBbRGF0ZVRpbWUudXRjKC00MCwgMSwgMSksIERhdGVUaW1lLnV0YygyMDE3LCAxLCAxKV0ubWFwKGZ1bmN0aW9uIChkdCkgewogICAgICAgICAgICAgIHJldHVybiBfdGhpczQuZXh0cmFjdChkdCwgaW50bCwgImVyYSIpOwogICAgICAgICAgICB9KTsKICAgICAgICAgIH0KCiAgICAgICAgICByZXR1cm4gX3RoaXM0LmVyYUNhY2hlW2xlbmd0aF07CiAgICAgICAgfSk7CiAgICAgIH07CgogICAgICBfcHJvdG80LmV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AgICBtZXJnZWRab25lID0gX3JlZlsxXSwKICAgICAgICAgICAgICBjdXJzb3IgPSBfcmVmWzJdOwoKICAgICAgICAgIHZhciBfZXggPSBleChtLCBjdXJzb3IpLAogICAgICAgICAgICAgIHZhbCA9IF9leFswXSwKICAgICAgICAgICAgICB6b25lID0gX2V4WzFdLAogICAgICAgICAgICAgIG5leHQgPSBfZXhbMl07CgogICAgICAgICAgcmV0dXJuIFtfZXh0ZW5kcyh7fSwgbWVyZ2VkVmFscywgdmFsKSwgbWVyZ2VkWm9uZSB8fCB6b25lLCBuZXh0XTsKICAgICAgICB9LCBbe30sIG51bGwsIDFdKS5zbGljZSgwLCAyKTsKICAgICAgfTsKICAgIH0KCiAgICBmdW5jdGlvbiBwYXJzZShzKSB7CiAgICAgIGlmIChzID09IG51bGwpIHsKICAgICAgICByZXR1cm4gW251bGwsIG51bGxdOwogICAgICB9CgogICAgICBmb3IgKHZhciBfbGVuMyA9IGFyZ3VtZW50cy5sZW5ndGgsIHBhdHRlcm5zID0gbmV3IEFycmF5KF9sZW4zID4gMSA/IF9sZW4zIC0gMSA6IDApLCBfa2V5MyA9IDE7IF9rZXkzIDwgX2xlbjM7IF9rZXkzKyspIHsKICAgICAgICBwYXR0ZXJuc1tfa2V5MyAtIDFdID0gYXJndW1lbnRzW19rZXkzXTsKICAgICAgfQoKICAgICAgZm9yICh2YXIgX2kgPSAwLCBfcGF0dGVybnMgPSBwYXR0ZXJuczsgX2kgPCBfcGF0dGVybnMubGVuZ3RoOyBfaSsrKSB7CiAgICAgICAgdmFyIF9wYXR0ZXJucyRfaSA9IF9wYXR0ZXJuc1tfaV0sCiAgICAgICAgICAgIHJlZ2V4ID0gX3BhdHRlcm5zJF9pWzBdLAogICAgICAgICAgICBleHRyYWN0b3IgPSBfcGF0dGVybnMkX2lbMV07CiAgICAgICAgdmFyIG0gPSByZWdleC5leGVjKHMpOwoKICAgICAgICBpZiAobSkgewogICAgICAgICAgcmV0dXJuIGV4dHJhY3Rvciht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jAgKiA2MCwKICAgICAgICBtaWxsaXNlY29uZHM6IDcgKiAyNCAqIDYwICogNjAgKiAxMDAwCiAgICAgIH0sCiAgICAgIGRheXM6IHsKICAgICAgICBob3VyczogMjQsCiAgICAgICAgbWludXRlczogMjQgKiA2MCwKICAgICAgICBzZWNvbmRzOiAyNCAqIDYwICogNjAsCiAgICAgICAgbWlsbGlzZWNvbmRzOiAyNCAqIDYwICogNjAgKiAxMDAwCiAgICAgIH0sCiAgICAgIGhvdXJzOiB7CiAgICAgICAgbWludXRlczogNjAsCiAgICAgICAgc2Vjb25kczogNjAgKiA2MCwKICAgICAgICBtaWxsaXNlY29uZHM6IDYwICogNjAgKiAxMDAwCiAgICAgIH0sCiAgICAgIG1pbnV0ZXM6IHsKICAgICAgICBzZWNvbmRzOiA2MCwKICAgICAgICBtaWxsaXNlY29uZHM6IDYwICogMTAwMAogICAgICB9LAogICAgICBzZWNvbmRzOiB7CiAgICAgICAgbWlsbGlzZWNvbmRzOiAxMDAwCiAgICAgIH0KICAgIH0sCiAgICAgICAgY2FzdWFsTWF0cml4ID0gX2V4dGVuZHMoewogICAgICB5ZWFyczogewogICAgICAgIHF1YXJ0ZXJzOiA0LAogICAgICAgIG1vbnRoczogMTIsCiAgICAgICAgd2Vla3M6IDUyLAogICAgICAgIGRheXM6IDM2NSwKICAgICAgICBob3VyczogMzY1ICogMjQsCiAgICAgICAgbWludXRlczogMzY1ICogMjQgKiA2MCwKICAgICAgICBzZWNvbmRzOiAzNjUgKiAyNCAqIDYwICogNjAsCiAgICAgICAgbWlsbGlzZWNvbmRzOiAzNjUgKiAyNCAqIDYwICogNjAgKiAxMDAwCiAgICAgIH0sCiAgICAgIHF1YXJ0ZXJzOiB7CiAgICAgICAgbW9udGhzOiAzLAogICAgICAgIHdlZWtzOiAxMywKICAgICAgICBkYXlzOiA5MSwKICAgICAgICBob3VyczogOTEgKiAyNCwKICAgICAgICBtaW51dGVzOiA5MSAqIDI0ICogNjAsCiAgICAgICAgc2Vjb25kczogOTEgKiAyNCAqIDYwICogNjAsCiAgICAgICAgbWlsbGlzZWNvbmRzOiA5MSAqIDI0ICogNjAgKiA2MCAqIDEwMDAKICAgICAgfSwKICAgICAgbW9udGhzOiB7CiAgICAgICAgd2Vla3M6IDQsCiAgICAgICAgZGF5czogMzAsCiAgICAgICAgaG91cnM6IDMwICogMjQsCiAgICAgICAgbWludXRlczogMzAgKiAyNCAqIDYwLAogICAgICAgIHNlY29uZHM6IDMwICogMjQgKiA2MCAqIDYwLAogICAgICAgIG1pbGxpc2Vjb25kczogMzAgKiAyNCAqIDYwICogNjAgKiAxMDAwCiAgICAgIH0KICAgIH0sIGxvd09yZGVyTWF0cml4KSwKICAgICAgICBkYXlzSW5ZZWFyQWNjdXJhdGUgPSAxNDYwOTcuMCAvIDQwMCwKICAgICAgICBkYXlzSW5Nb250aEFjY3VyYXRlID0gMTQ2MDk3LjAgLyA0ODAwLAogICAgICAgIGFjY3VyYXRlTWF0cml4ID0gX2V4dGVuZHMoewogICAgICB5ZWFyczogewogICAgICAgIHF1YXJ0ZXJzOiA0LAogICAgICAgIG1vbnRoczogMTIsCiAgICAgICAgd2Vla3M6IGRheXNJblllYXJBY2N1cmF0ZSAvIDcsCiAgICAgICAgZGF5czogZGF5c0luWWVhckFjY3VyYXRlLAogICAgICAgIGhvdXJzOiBkYXlzSW5ZZWFyQWNjdXJhdGUgKiAyNCwKICAgICAgICBtaW51dGVzOiBkYXlzSW5ZZWFyQWNjdXJhdGUgKiAyNCAqIDYwLAogICAgICAgIHNlY29uZHM6IGRheXNJblllYXJBY2N1cmF0ZSAqIDI0ICogNjAgKiA2MCwKICAgICAgICBtaWxsaXNlY29uZHM6IGRheXNJblllYXJBY2N1cmF0ZSAqIDI0ICogNjAgKiA2MCAqIDEwMDAKICAgICAgfSwKICAgICAgcXVhcnRlcnM6IHsKICAgICAgICBtb250aHM6IDMsCiAgICAgICAgd2Vla3M6IGRheXNJblllYXJBY2N1cmF0ZSAvIDI4LAogICAg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iAgICAgICAgICovCgogICAgICAgIHRoaXMudmFsdWVzID0gY29uZmlnLnZhbHVlczsKICAgICAgICAvKioKICAgICAgICAgKiBAYWNjZXNzIHByaXZhdGUKICAgICAgICAgKi8KCiAgICAgICAgdGhpcy5sb2MgPSBjb25maWcubG9jIHx8IExvY2FsZS5jcmVhdGUoKTsKICAgICAgICAvKioKICAgICAgICAgKiBAYWNjZXNzIHByaXZhdGUKICAgICAgICAgKi8KCiAgICAgICAgdGhpcy5jb252ZXJzaW9uQWNjdXJhY3kgPSBhY2N1cmF0ZSA/ICJsb25ndGVybSIgOiAiY2FzdWFsIjsKICAgICAgICAvKioKICAgICAgICAgKiBAYWNjZXNzIHByaXZhdGUKICAgICAgICAgKi8KCiAgICAgICAgdGhpcy5pbnZhbGlkID0gY29uZmlnLmludmFsaWQgfHwgbnVsbDsKICAgICAgICAvKioKICAgICAgICAgKiBAYWNjZXNzIHByaXZhdGUKICAgICAgICAgKi8KCiAgICAgICAgdGhpcy5tYXRyaXggPSBhY2N1cmF0ZSA/IGFjY3VyYXRlTWF0cml4IDogY2FzdWFsTWF0cml4OwogICAgICAgIC8qKgogICAgICAgICAqIEBhY2Nlc3MgcHJpdmF0ZQogICAgICAgICAqLwoKICAgICAgICB0aGlzLmlzTHV4b25EdXJhdGlvbiA9IHRydWU7CiAgICAgIH0KICAgICAgLyoqCiAgICAgICAqIENyZWF0ZSBEdXJhdGlvbiBmcm9tIGEgbnVtYmVyIG9mIG1pbGxpc2Vjb25kcy4KICAgICAgICogQHBhcmFtIHtudW1iZXJ9IGNvdW50IG9mIG1pbGxpc2Vjb25kcwogICAgICAgKiBAcGFyYW0ge09iamVjdH0gb3B0cyAtIG9wdGlvbnMgZm9yIHBhcnNpbmcKICAgICAgICogQHBhcmFtIHtzdHJpbmd9IFtvcHRzLmxvY2FsZT0nZW4tVVMnXSAtIHRoZSBsb2NhbGUgdG8gdXNlCiAgICAgICAqIEBwYXJhbSB7c3RyaW5nfSBvcHRzLm51bWJlc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JhdGlvbiBpcyBpbnZhbGlkIik7CiAgICAgICAgfQoKICAgICAgICB2YXIgaW52YWxpZCA9IHJlYXNvbiBpbnN0YW5jZW9mIEludmFsaWQgPyByZWFzb24gOiBuZXcgSW52YWxpZChyZWFzb24sIGV4cGxhbmF0aW9uKTsKCiAgICAgICAgaWYgKFNldHRpbmdzLnRocm93T25JbnZhbGlkKSB7CiAgICAgICAgICB0aHJvdyBuZXcgSW52YWxpZER1cmF0aW9uRXJyb3IoaW52YWxpZCk7CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgIHJldHVybiBuZXcgRHVyYXRpb24oewogICAgICAgICAgICBpbnZhbGlkOiBpbnZhbGlkCiAgICAgICAgICB9KTsKICAgICAgICB9CiAgICAgIH0KICAgICAgLyoqCiAgICAgICAqIEBwcml2YXRlCiAgICAgICAqLwogICAgICA7CgogICAgICBEdXJhdGlvbi5ub3JtYWxpemVVbml0ID0gZnVuY3Rpb24gbm9ybWFsaXplVW5pdCh1bml0KSB7CiAgICAgICAgdmFyIG5vcm1hbGl6ZWQgPSB7CiAgICAgICAgICB5ZWFyOiAieWVhcnMiLAogICAgICAgICAgeWVhcnM6ICJ5ZWFycyIsCiAgICAgICAgICBxdWFydGVyOiAicXVhcnRlcnMiLAogICAgICAgICAgcXVhcnRlcnM6ICJxdWFydGVycyIsCiAgICAgICAgICBtb250aDogIm1vbnRocyIsCiAgICAgICAgICBtb250aHM6ICJtb250aHMiLAogICAgICAgICAgd2VlazogIndlZWtzIiwKICAgICAgICAgIHdlZWtzOiAid2Vla3MiLAogICAgICAgICAgZGF5OiAiZGF5cyIsCiAgICAgICAgICBkYXlzOiAiZGF5cyIsCiAgICAgICAgICBob3VyOiAiaG91cnMiLAogICAgICAgICAgaG91cnM6ICJob3VycyIsCiAgICAgICAgICBtaW51dGU6ICJtaW51dGVzIiwKICAgICAgICAgIG1pbnV0ZXM6ICJtaW51dGVzIiwKICAgICAgICAgIHNlY29uZDogInNlY29uZHMiLAogICAgICAgICAgc2Vjb25kczogInNlY29uZHMiLAogICAgICAgICAgbWlsbGlzZWNvbmQ6ICJtaWxsaXNlY29uZHMiLAogICAgICAgICAgbWlsbGlzZWNvbmRzOiAibWlsbGlzZWNvbmRzIgogICAgICAgIH1bdW5pdCA/IHVuaXQudG9Mb3dlckNhc2UoKSA6IHVuaXRdOwogICAgICAgIGlmICghbm9ybWFsaXplZCkgdGhyb3cgbmV3IEludmFsaWRVbml0RXJyb3IodW5pdCk7CiAgICAgICAgcmV0dXJuIG5vcm1hbGl6ZWQ7CiAgICAgIH0KICAgICAgLyoqCiAgICAgICAqIENoZWNrIGlmIGFuIG9iamVjdCBpcyBhIER1cmF0aW9uLiBXb3JrcyBhY3Jvc3MgY29udGV4dCBib3VuZGFyaWVzCiAgICAgICAqIEBwYXJhbSB7b2JqZWN0fSBvCiAgICAgICAqIEByZXR1cm4ge2Jvb2xlYW59CiAgICAgICAqLwogICAgICA7CgogICAgICBEdXJhdGlvbi5pc0R1cmF0aW9uID0gZnVuY3Rpb24gaXNEdXJhdGlvbihvKSB7CiAgICAgICAgcmV0dXJuIG8gJiYgby5pc0x1eG9uRHVyYXRpb24gfHwgZmFsc2U7CiAgICAgIH0KICAgICAgLyoqCiAgICAgICAqIEdldCAgdGhlIGxvY2FsZSBvZiBhIER1cmF0aW9uLCBzdWNoICdlbi1HQicKICAgICAgICogQHR5cGUge3N0cmluZ30KICAgICAgICovCiAgICAgIDsKCiAgICAgIHZhciBfcHJvdG8gPSBEdXJhdGlvbi5wcm90b3R5cGU7CgogICAgICAvKioKICAgICAgICogUmV0dXJucyBhIHN0cmluZyByZXByZXNlbnRhdGlvbiBvZiB0aGlzIER1cmF0aW9uIGZvcm1hdHRlZCBhY2NvcmRpbmcgdG8gdGhlIHNwZWNpZmllZCBmb3JtYXQgc3RyaW5nLiBZb3UgbWF5IHVzZSB0aGVzZSB0b2tlbnM6CiAgICAgICAqICogYFNgIGZvciBtaWxsaXNlY29uZHMKICAgICAgICogKiBgc2AgZm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WlsbGlzZWNvbmRzOiBmYWxzZSwKICAgICAgICAgIHN1cHByZXNzU2Vjb25kczogZmFsc2UsCiAgICAgICAgICBpbmNsdWRlUHJlZml4OiBmYWxzZSwKICAgICAgICAgIGZvcm1hdDogImV4dGVuZGVkIgogICAgICAgIH0sIG9wdHMpOwogICAgICAgIHZhciB2YWx1ZSA9IHRoaXMuc2hpZnRUbygiaG91cnMiLCAibWludXRlcyIsICJzZWNvbmRzIiwgIm1pbGxpc2Vjb25kcyIpOwogICAgICAgIHZhciBmbXQgPSBvcHRzLmZvcm1hdCA9PT0gImJhc2ljIiA/ICJoaG1tIiA6ICJoaDptbSI7CgogICAgICAgIGlmICghb3B0cy5zdXBwcmVzc1NlY29uZHMgfHwgdmFsdWUuc2Vjb25kcyAhPT0gMCB8fCB2YWx1ZS5taWxsaXNlY29uZHMgIT09IDApIHsKICAgICAgICAgIGZtdCArPSBvcHRzLmZvcm1hdCA9PT0gImJhc2ljIiA/ICJzcyIgOiAiOnNzIjsKCiAgICAgICAgICBpZiAoIW9wdHMuc3VwcHJlc3NNaWxsaXNlY29uZHMgfHwgdmFsdWUubWlsbGlzZWNvbmRzICE9PSAwKSB7CiAgICAgICAgICAgIGZtdCArPSAiLlNTUyI7CiAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICB2YXIgc3RyID0gdmFsdWUudG9Gb3JtYXQoZm10KTsKCiAgICAgICAgaWYgKG9wdHMuaW5jbHVkZVByZWZpeCkgewogICAgICAgICAgc3RyID0gIlQiICsgc3RyOwogICAgICAgIH0KCiAgICAgICAgcmV0dXJuIHN0cjsKICAgICAgfQogICAgICAvKioKICAgICAgICogUmV0dXJucyBhbiBJU08gODYwMSByZXByZXNlbnRhdGlvbiBvZiB0aGlzIER1cmF0aW9uIGFwcHJvcHJpYXRlIGZvciB1c2UgaW4gSlNPTi4KICAgICAgICogQHJldHVybiB7c3RyaW5nfQogICAgICAgKi8KICAgICAgOwoKICAgICAgX3Byb3RvLnRvSlNPTiA9IGZ1bmN0aW9uIHRvSlNPTigpIHsKICAgICAgICByZXR1cm4gdGhpcy50b0lTTygpOwogICAgICB9CiAgICAgIC8qKgogICAgICAgKiBSZXR1cm5zIGFuIElTTyA4NjAxIHJlcHJlc2VudGF0aW9uIG9mIHRoaXMgRHVyYXRpb24gYXBwcm9wcmlhdGUgZm9yIHVzZSBpbiBkZWJ1Z2dpbmcuCiAgICAgICAqIEByZXR1cm4ge3N0cmluZ30KICAgICAgICovCiAgICAgIDsKCiAgICAgIF9wcm90by50b1N0cmluZyA9IGZ1bmN0aW9uIHRvU3RyaW5nKCkgewogICAgICAgIHJldHVybiB0aGlzLnRvSVNPKCk7CiAgICAgIH0KICAgICAgLyoqCiAgICAgICAqIFJldHVybnMgYW4gbWlsbGlzZWNvbmRzIHZhbHVlIG9mIHRoaXMgRHVyYXRpb24uCiAgICAgICAqIEByZXR1cm4ge251bWJlcn0KICAgICAgICovCiAgICAgIDsKCiAgICAgIF9wcm90by50b01pbGxpcyA9IGZ1bmN0aW9uIHRvTWlsbGlzKCkgewogICAgICAgIHJldHVybiB0aGlzLmFzKCJtaWxsaXNlY29uZHMiKTsKICAgICAgfQogICAgICAvKioKICAgICAgICogUmV0dXJucyBhbiBtaWxsaXNlY29uZHMgdmFsdWUgb2YgdGhpcyBEdXJhdGlvbi4gQWxpYXMgb2Yge0BsaW5rIHRvTWlsbGlzfQogICAgICAgKiBAcmV0dXJuIHtudW1iZXJ9CiAgICAgICAqLwogICAgICA7CgogICAgICBfcHJvdG8udmFsdWVPZiA9IGZ1bmN0aW9uIHZhbHVlT2YoKSB7CiAgICAgICAgcmV0dXJuIHRoaXMudG9NaWxsaXMoKTsKICAgICAgfQogICAgICAvKioKICAgICAgICogTWFrZSB0aGlzIER1cmF0aW9uIGxvbmdlciBieSB0aGUgc3BlY2lmaWVkIGFtb3VudC4gUmV0dXJuIGEgbmV3bHktY29uc3RydWN0ZWQgRHVyYXRpb24uCiAgICAgICAqIEBwYXJhbSB7RHVyYXRpb258T2JqZWN0fG51bWJlcn0gZHVyYXRpb24gLSBUaGUgYW1vdW50IHRvIGFkZC4gRWl0aGVyIGEgTHV4b24gRHVyYXRpb24sIGEgbnVtYmVyIG9mIG1pbGxpc2Vjb25kcywgdGhlIG9iamVjdCBhcmd1bWVudCB0byBEdXJhdGlvbi5mcm9tT2JqZWN0KCkKICAgICAgICogQHJldHVybiB7RHVyYXRpb259CiAgICAgICAqLwogICAgICA7CgogICAgICBfcHJvdG8ucGx1cyA9IGZ1bmN0aW9uIHBsdXMoZHVyYXRpb24pIHsKICAgICAgICBpZiAoIXRoaXMuaXNWYWxpZCkgcmV0dXJuIHRoaXM7CiAgICAgICAgdmFyIGR1ciA9IGZyaWVuZGx5RHVyYXRpb24oZHVyYXRpb24pLAogICAgICAgICAgICByZXN1bHQgPSB7fTsKCiAgICAgICAgZm9yICh2YXIgX2l0ZXJhdG9yID0gX2NyZWF0ZUZvck9mSXRlcmF0b3JIZWxwZXJMb29zZShvcmRlcmVkVW5pdHMkMSksIF9zdGVwOyAhKF9zdGVwID0gX2l0ZXJhdG9yKCkpLmRvbmU7KSB7CiAgICAgICAgICB2YXIgayA9IF9zdGVwLnZhbHVlOwoKICAgICAgICAgIGlmIChoYXNPd25Qcm9wZXJ0eShkdXIudmFsdWVzLCBrKSB8fCBoYXNPd25Qcm9wZXJ0eSh0aGlzLnZhbHVlcywgaykpIHsKICAgICAgICAgICAgcmVzdWx0W2tdID0gZHVyLmdldChrKSArIHRoaXMuZ2V0KGspOwogICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgcmV0dXJuIGNsb25lJDEodGhpcywgewogICAgICAgICAgdmFsdWVzOiByZXN1bHQKICAgICAgICB9LCB0cnVlKTsKICAgICAgfQogICAgICAvKioKICAgICAgICogTWFrZSB0aGlzIER1cmF0aW9uIHNob3J0ZXIgYnkgdGhlIHNwZWNpZmllZCBhbW91bnQuIFJldHVybiBhIG5ld2x5LWNvbnN0cnVjdGVkIER1cmF0aW9uLgogICA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FyczogMiwgZGF5czogM30pLmdldCgnZGF5cycpIC8vPT4gMwogICAgICAgKiBAcmV0dXJuIHtudW1iZXJ9CiAgICAgICAqLwogICAgICA7CgogICAgICBfcHJvdG8uZ2V0ID0gZnVuY3Rpb24gZ2V0KHVuaXQpIHsKICAgICAgICByZXR1cm4gdGhpc1tEdXJhdGlvbi5ub3JtYWxpemVVbml0KHVuaXQpXTsKICAgICAgfQogICAgICAvKioKICAgICAgICogIlNldCIgdGhlIHZhbHVlcyBvZiBzcGVjaWZpZWQgdW5pdHMuIFJldHVybiBhIG5ld2x5LWNvbnN0cnVjdGVkIER1cmF0aW9uLgogICAgICAgKiBAcGFyYW0ge09iamVjdH0gdmFsdWVzIC0gYSBtYXBwaW5nIG9mIHVuaXRzIHRvIG51bWJlcnMKICAgICAgICogQGV4YW1wbGUgZHVyLnNldCh7IHllYXJzOiAyMDE3IH0pCiAgICAgICAqIEBleGFtcGxlIGR1ci5zZXQoeyBob3VyczogOCwgbWludXRlczogMzAgfSkKICAgICAgICogQHJldHVybiB7RHVyYXRpb259CiAgICAgICAqLwogICAgICA7CgogICAgICBfcHJvdG8uc2V0ID0gZnVuY3Rpb24gc2V0KHZhbHVlcykgewogICAgICAgIGlmICghdGhpcy5pc1ZhbGlkKSByZXR1cm4gdGhpczsKCiAgICAgICAgdmFyIG1peGVkID0gX2V4dGVuZHMoe30sIHRoaXMudmFsdWVzLCBub3JtYWxpemVPYmplY3QodmFsdWVzLCBEdXJhdGlvbi5ub3JtYWxpemVVbml0KSk7CgogICAgICAgIHJldHVybiBjbG9uZSQxKHRoaXMsIHsKICAgICAgICAgIHZhbHVlczogbWl4ZWQKICAgICAgICB9KTsKICAgICAgfQogICAgICAvKioKICAgICAgICogIlNldCIgdGhlIGxvY2FsZSBhbmQvb3IgbnVtYmVyaW5nU3lzdGVtLiAgUmV0dXJucyBhIG5ld2x5LWNvbnN0cnVjdGVkIER1cmF0aW9uLgogICAgICAgKiBAZXhhbXBsZSBkdXIucmVjb25maWd1cmUoeyBsb2NhbGU6ICdlbi1HQicgfSkKICAgICAgICogQHJldHVybiB7RHVyYXRpb259CiAgICAgICAqLwogICAgICA7CgogICAgICBfcHJvdG8ucmVjb25maWd1cmUgPSBmdW5jdGlvbiByZWNvbmZpZ3VyZShfdGVtcCkgewogICAgICAgIHZhciBfcmVmID0gX3RlbXAgPT09IHZvaWQgMCA/IHt9IDogX3RlbXAsCiAgICAgICAgICAgIGxvY2FsZSA9IF9yZWYubG9jYWxlLAogICAgICAgICAgICBudW1iZXJpbmdTeXN0ZW0gPSBfcmVmLm51bWJlcmluZ1N5c3RlbSwKICAgICAgICAgICAgY29udmVyc2lvbkFjY3VyYWN5ID0gX3JlZi5jb252ZXJzaW9uQWNjdXJhY3k7CgogICAgICAgIHZhciBsb2MgPSB0aGlzLmxvYy5jbG9uZSh7CiAgICAgICAgICBsb2NhbGU6IGxvY2FsZSwKICAgICAgICAgIG51bWJlcmluZ1N5c3RlbTogbnVtYmVyaW5nU3lzdGVtCiAgICAgICAgfSksCiAgICAgICAgICAgIG9wdHMgPSB7CiAgICAgICAgICBsb2M6IGxvYwogICAgICAgIH07CgogICAgICAgIGlmIChjb252ZXJzaW9uQWNjdXJhY3kpIHsKICAgICAgICAgIG9wdHMuY29udmVyc2lvbkFjY3VyYWN5ID0gY29udmVyc2lvbkFjY3VyYWN5OwogICAgICAgIH0KCiAgICAgICAgcmV0dXJuIGNsb25lJDEodGhpcywgb3B0cyk7CiAgICAgIH0KICAgICAgLyoqCiAgICAgICAqIFJldHVybiB0aGUgbGVuZ3RoIG9mIHRoZSBkdXJhdGlvbiBpbiB0aGUgc3BlY2lmaWVkIHVuaXQuCiAgICAgICAqIEBwYXJhbSB7c3RyaW5nfSB1bml0IC0gYSB1bml0IHN1Y2ggYXMgJ21pbnV0ZXMnIG9yICdkYXlzJwogICAgICAgKiBAZXhhbXBsZSBEdXJhdGlvbi5mcm9tT2JqZWN0KHt5ZWFyczogMX0pLmFzKCdkYXlzJykgLy89PiAzNjUKICAgICAgICogQGV4YW1wbGUgRHVyYXRpb24uZnJvbU9iamVjdCh7eWVhcnM6IDF9KS5hcygnbW9udGhzJykgLy89PiAxMgogICAgICAgKiBAZXhhbXBsZSBEdXJhdGlvbi5mcm9tT2JqZWN0KHtob3VyczogNjB9KS5hcygnZGF5cycpIC8vPT4gMi41CiAgICAgICAqIEByZXR1cm4ge251bWJlcn0KICAgICAgICovCiAgICAgIDsKCiAgICAgIF9wcm90by5hcyA9IGZ1bmN0aW9uIGFzKHVuaXQpIHsKICAgICAgICByZXR1cm4gdGhpcy5pc1ZhbGlkID8gdGhpcy5zaGlmdFRvKHVuaXQpLmdldCh1bml0KSA6IE5hTjsKICAgICAgfQogICAgICAvKioKICAgICAgICogUmVkdWNlIHRoaXMgRHVyYXRpb24gdG8gaXRzIGNhbm9uaWNhbCByZXByZXNlbnRhdGlvbiBpbiBpdHMgY3VycmVudCB1bml0cy4KICAgICAgICogQGV4YW1wbGUgRHVyYXRpb24uZnJvbU9iamVjdCh7IHllYXJzOiAyLCBkYXlzOiA1MDAwIH0pLm5vcm1hbGl6ZSgpLnRvT2JqZWN0KCkgLy89PiB7IHllYXJzOiAxNSwgZGF5czogMjU1IH0KICAgICAgICogQGV4YW1wbGUgRHVyYXRpb24uZnJvbU9iamVjdCh7IGhvdXJzOiAxMiwgbWludXRlczogLTQ1IH0pLm5vcm1hbGl6ZSgpLnRvT2JqZWN0KCkgLy89PiB7IGhvdXJzOiAxMSwgbWludXRlczogMTUgfQogICAgICAgKiBAcmV0dXJuIHtEdXJhdGlvbn0KICAgICAgICovCiAgICAgIDsKCiAgICAgIF9wcm90by5ub3JtYWxpemUgPSBmdW5jdGlvbiBub3JtYWxpemUoKSB7CiAgICAgICAgaWYgKCF0aGlzLmlzVmFsaWQpIHJldHVybiB0aGlzOwogICAgICAgIHZhciB2YWxzID0gdGhpcy50b09iamVjdCgpOwogICAgICAgIG5vcm1hbGl6ZVZhbHVlcyh0aGlzLm1hdHJpeCwgdmFscyk7CiAgICAgICAgcmV0dXJuIGNsb25lJDEodGhpcywgewogICAgICAgICAgdmFsdWVzOiB2YWxzCiAgICAgICAgfSwgdHJ1ZSk7CiAgICAgIH0KICAgICAgLyoqCiAgICAgICAqIENvbnZlcnQgdGhpcyBEdXJhdGlvbiBpbnRvIGl0cyByZXByZXNlbnRhdGlvbiBpbiBhIGRpZmZlcmVudCBzZXQgb2YgdW5pdHMuCiAgICAgICAqIEBleGFtcGxlIER1cmF0aW9uLmZyb21PYmplY3QoeyBob3VyczogMSwgc2Vjb25kczogMzAgfSkuc2hpZnRUbygnbWludXRlcycsICdtaWxsaXNlY29uZHMnKS50b09iamVjdCgpIC8vPT4geyBtaW51dGVzOiA2MCwgbWlsbGlzZWNvbmRzOiAzMDAwMCB9CiAgICAgICAqIEByZXR1cm4ge0R1cmF0aW9ufQogICAgICAgKi8KICAgICAgOwoKICAgICAgX3Byb3RvLnNoaWZ0VG8gPSBmdW5jdGlvbiBzaGlmdFRvKCkgewogICAgICAgIGZvciAodmFyIF9sZW4gPSBhcmd1bWVudHMubGVuZ3RoLCB1bml0cyA9IG5ldyBBcnJheShfbGVuKSwgX2tleSA9IDA7IF9rZXkgPCBfbGVuOyBfa2V5KyspIHsKICAgICAgICAgIHVuaXRzW19rZXldID0gYXJndW1lbnRzW19rZXldOwogICAgICAgIH0KCiAgICAgICAgaWYgKCF0aGlzLmlzVmFsaWQpIHJldHVybiB0aGlzOwoKICAgICAgICBpZiAodW5pdHMubGVuZ3RoID09PSAwKSB7CiAgICAgICAgICByZXR1cm4gdGhpczsKICAgICAgICB9CgogICAgICAgIHVuaXRzID0gdW5pdHMubWFwKGZ1bmN0aW9uICh1KSB7CiAgICAgICAgICByZXR1cm4gRHVyYXRpb24ubm9ybWFsaXplVW5pdCh1KTsKICAgICAgICB9KTsKICAgICAgICB2YXIgYnVpbHQgPSB7fSwKICAgICAgICAgICAgYWNjdW11bGF0ZWQgPSB7fSwKICAgICAgICAgICAgdmFscyA9IHRoaXMudG9PYmplY3QoKTsKICAgICAgICB2YXIgbGFzdFVuaXQ7CgogICAgICAgIGZvciAodmFyIF9pdGVyYXRvcjIgPSBfY3JlYXRlRm9yT2ZJdGVyYXRvckhlbHBlckxvb3NlKG9yZGVyZWRVbml0cyQxKSwgX3N0ZXAyOyAhKF9zdGVwMiA9IF9pdGVyYXRvcjIoKSkuZG9uZTspIHsKICAgICAgICAgIHZhciBrID0gX3N0ZXAyLnZhbHVlOwoKICAgICAgICAgIGlmICh1bml0cy5pbmRleE9mKGspID49IDApIHsKICAgICAgICAgICAgbGFzdFVuaXQgPSBrOwogICAgICAgICAgICB2YXIgb3duID0gMDsgLy8gYW55dGhpbmcgd2UgaGF2ZW4ndCBib2lsZWQgZG93biB5ZXQgc2hvdWxkIGdldCBib2lsZWQgdG8gdGhpcyB1bml0CgogICAgICAgICAgICBmb3IgKHZhciBhayBpbiBhY2N1bXVsYXRlZCkgewogICAgICAgICAgICAgIG93biArPSB0aGlzLm1hdHJpeFtha11ba10gKiBhY2N1bXVsYXRlZFtha107CiAgICAgICAgICAgICAgYWNjdW11bGF0ZWRbYWtdID0gMDsKICAgICAgICAgICAgfSAvLyBwbHVzIGFueXRoaW5nIHRoYXQncyBhbHJlYWR5IGluIHRoaXMgdW5pdAoKCiAgICAgICAgICAgIGlmIChpc051bWJlcih2YWxzW2tdKSkgewogICAgICAgICAgICAgIG93biArPSB2YWxzW2tdOwogICAgICAgICAgICB9CgogICAgICAgICAgICB2YXIgaSA9IE1hdGgudHJ1bmMob3duKTsKICAgICAgICAgICAgYnVpbHRba10gPSBpOwogICAgICAgICAgICBhY2N1bXVsYXRlZFtrXSA9IG93biAtIGk7IC8vIHdlJ2QgbGlrZSB0byBhYnNvcmIgdGhlc2UgZnJhY3Rpb25zIGluIGFub3RoZXIgdW5pdAogICAgICAgICAgICAvLyBwbHVzIGFueXRoaW5nIGZ1cnRoZXIgZG93biB0aGUgY2hhaW4gdGhhdCBzaG91bGQgYmUgcm9sbGVkIHVwIGluIHRvIHRoaXMKCiAgICAgICAgICAgIGZvciAodmFyIGRvd24gaW4gdmFscykgewogICAgICAgICAgICAgIGlmIChvcmRlcmVkVW5pdHMkMS5pbmRleE9mKGRvd24pID4gb3JkZXJlZFVuaXRzJDEuaW5kZXhPZihrKSkgewogICAgICAgICAgICAgICAgY29udmVydCh0aGlzLm1hdHJpeCwgdmFscywgZG93biwgYnVpbHQsIGspOwogICAgICAgICAgICAgIH0KICAgICAgICAgICAgfSAvLyBvdGhlcndpc2UsIGtlZXAgaXQgaW4gdGhlIHdpbmdzIHRvIGJvaWwgaXQgbGF0ZXIKCiAgICAgICAgICB9IGVsc2UgaWYgKGlzTnVtYmVyKHZhbHNba10pKSB7CiAgICAgICAgICAgIGFjY3VtdWxhdGVkW2tdID0gdmFsc1trXTsKICAgICAgICAgIH0KICAgICAgICB9IC8vIGFueXRoaW5nIGxlZnRvdmVyIGJlY29tZXMgdGhlIGRlY2ltYWwgZm9yIHRoZSBsYXN0IHVuaXQKICAgICAgICAvLyBsYXN0VW5pdCBtdXN0IGJlIGRlZmluZWQgc2luY2UgdW5pdHMgaXMgbm90IGVtcHR5CgoKICAgICAgICBmb3IgKHZhciBrZXkgaW4gYWNjdW11bGF0ZWQpIHsKICAgICAgICAgIGlmIChhY2N1bXVsYXRlZFtrZXldICE9PSAwKSB7CiAgICAgICAgICAgIGJ1aWx0W2xhc3RVbml0XSArPSBrZXkgPT09IGxhc3RVbml0ID8gYWNjdW11bGF0ZWRba2V5XSA6IGFjY3VtdWxhdGVkW2tleV0gLyB0aGlzLm1hdHJpeFtsYXN0VW5pdF1ba2V5XTsKICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIHJldHVybiBjbG9uZSQxKHRoaXMsIHsKICAgICAgICAgIHZhbHVlczogYnVpbHQKICAgICAgICB9LCB0cnVlKS5ub3JtYWxpemUoKTsKICAgICAgfQogICAgICAvKioKICAgICAgICogUmV0dXJuIHRoZSBuZWdhdGl2ZSBvZiB0aGlzIER1cmF0aW9uLgogICAgICAgKiBAZXhhbXBsZSBEdXJhdGlvbi5mcm9tT2JqZWN0KHsgaG91cnM6IDEsIHNlY29uZHM6IDMwIH0pLm5lZ2F0ZSgpLnRvT2JqZWN0KCkgLy89PiB7IGhvdXJzOiAtMSwgc2Vjb25kczogLTMwIH0KICAgICAgICogQHJldHVybiB7RHVyYXRpb259CiAgICAgICAqLwogICAgICA7CgogICAgICBfcHJvdG8ubmVnYXRlID0gZnVuY3Rpb24gbmVnYXRlKCkgewogICAgICAgIGlmICghdGhpcy5pc1ZhbGlkKSByZXR1cm4gdGhpczsKICAgICAgICB2YXIgbmVnYXRlZCA9IHt9OwoKICAgICAgICBmb3IgKHZhciBfaTIgPSAwLCBfT2JqZWN0JGtleXMyID0gT2JqZWN0LmtleXModGhpcy52YWx1ZXMpOyBfaTIgPCBfT2JqZWN0JGtleXMyLmxlbmd0aDsgX2kyKyspIHsKICAgICAgICAgIHZhciBrID0gX09iamVjdCRrZXlzMltfaTJdOwogICAgICAgICAgbmVnYXRlZFtrXSA9IC10aGlzLnZhbHVlc1trXTsKICAgICAgICB9CgogICAgICAgIHJldHVybiBjbG9uZSQxKHRoaXMsIHsKICAgICAgICAgIHZhbHVlczogbmVnYXRlZAogICAgICAgIH0sIHRydWUpOwogICAgICB9CiAgICAgIC8qKgogICAgICAgKiBHZXQgdGhlIHllYXJzLgogICAgICAgKiBAdHlwZSB7bnVtYmVyfQogICAgICAgKi8KICAgICAgOwoKICAgICAgLyoqCiAgICAgICAqIEVxdWFsaXR5IGNoZWNrCiAgICAgICAqIFR3byBEdXJhdGlvbnMgYXJlIGVxdWFsIGlmZiB0aGV5IGhhdmUgdGhlIHNhbWUgdW5pdHMgYW5kIHRoZSBzYW1lIHZhbHVlcyBmb3IgZWFjaCB1bml0LgogICAgICAgKiBAcGFyYW0ge0R1cmF0aW9ufSBvdGhlcgogICAgICAgKiBAcmV0dXJuIHtib29sZWFufQogICAgICAgKi8KICAgICAgX3Byb3RvLmVxdWFscyA9IGZ1bmN0aW9uIGVxdWFscyhvdGhlcikgewogICAgICAgIGlmICghdGhpcy5pc1ZhbGlkIHx8ICFvdGhlci5pc1ZhbGlkKSB7CiAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfQoKICAgICAgICBpZiAoIXRoaXMubG9jLmVxdWFscyhvdGhlci5sb2MpKSB7CiAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfQoKICAgICAgICBmdW5jdGlvbiBlcSh2MSwgdjIpIHsKICAgICAgICAgIC8vIENvbnNpZGVyIDAgYW5kIHVuZGVmaW5lZCBhcyBlcXVhbAogICAgICAgICAgaWYgKHYxID09PSB1bmRlZmluZWQgfHwgdjEgPT09IDApIHJldHVybiB2MiA9PT0gdW5kZWZpbmVkIHx8IHYyID09PSAwOwogICAgICAgICAgcmV0dXJuIHYxID09PSB2MjsKICAgICAgICB9CgogICAgICAgIGZvciAodmFyIF9pdGVyYXRvcjMgPSBfY3JlYXRlRm9yT2ZJdGVyYXRvckhlbHBlckxvb3NlKG9yZGVyZWRVbml0cyQxKSwgX3N0ZXAzOyAhKF9zdGVwMyA9IF9pdGVyYXRvcjMoKSkuZG9uZTspIHsKICAgICAgICAgIHZhciB1ID0gX3N0ZXAzLnZhbHVlOwoKICAgICAgICAgIGlmICghZXEodGhpcy52YWx1ZXNbdV0sIG90aGVyLnZhbHVlc1t1XSkpIHsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgcmV0dXJuIHRydWU7CiAgICAgIH07CgogICAgICBfY3JlYXRlQ2xhc3MoRHVyYXRpb24sIFt7CiAgICAgICAga2V5OiAibG9jYWxlIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiB0aGlzLmlzVmFsaWQgPyB0aGlzLmxvYy5sb2NhbGUgOiBudWxsOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiBHZXQgdGhlIG51bWJlcmluZyBzeXN0ZW0gb2YgYSBEdXJhdGlvbiwgc3VjaCAnYmVuZycuIFRoZSBudW1iZXJpbmcgc3lzdGVtIGlzIHVzZWQgd2hlbiBmb3JtYXR0aW5nIHRoZSBEdXJhdGlvbgogICAgICAgICAqCiAgICAgICAgICogQHR5cGUge3N0cmluZ30KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJudW1iZXJpbmdTeXN0ZW0iLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIHRoaXMuaXNWYWxpZCA/IHRoaXMubG9jLm51bWJlcmluZ1N5c3RlbSA6IG51bGw7CiAgICAgICAgfQogICAgICB9LCB7CiAgICAgICAga2V5OiAieWVhcnMiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIHRoaXMuaXNWYWxpZCA/IHRoaXMudmFsdWVzLnllYXJzIHx8IDAgOiBOYU47CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIEdldCB0aGUgcXVhcnRlcnMuCiAgICAgICAgICogQHR5cGUge251bWJlcn0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJxdWFydGVycyIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gdGhpcy5pc1ZhbGlkID8gdGhpcy52YWx1ZXMucXVhcnRlcnMgfHwgMCA6IE5hTjsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICogR2V0IHRoZSBtb250aHMuCiAgICAgICAgICogQHR5cGUge251bWJlcn0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJtb250aHMiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIHRoaXMuaXNWYWxpZCA/IHRoaXMudmFsdWVzLm1vbnRocyB8fCAwIDogTmFOOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiBHZXQgdGhlIHdlZWtzCiAgICAgICAgICogQHR5cGUge251bWJlcn0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJ3ZWVrcyIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gdGhpcy5pc1ZhbGlkID8gdGhpcy52YWx1ZXMud2Vla3MgfHwgMCA6IE5hTjsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICogR2V0IHRoZSBkYXlzLgogICAgICAgICAqIEB0eXBlIHtudW1iZXJ9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAiZGF5cyIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gdGhpcy5pc1ZhbGlkID8gdGhpcy52YWx1ZXMuZGF5cyB8fCAwIDogTmFOOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiBHZXQgdGhlIGhvdXJzLgogICAgICAgICAqIEB0eXBlIHtudW1iZXJ9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAiaG91cnMiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIHRoaXMuaXNWYWxpZCA/IHRoaXMudmFsdWVzLmhvdXJzIHx8IDAgOiBOYU47CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIEdldCB0aGUgbWludXRlcy4KICAgICAgICAgKiBAdHlwZSB7bnVtYmVyfQogICAgICAgICAqLwoKICAgICAgfSwgewogICAgICAgIGtleTogIm1pbnV0ZXMiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIHRoaXMuaXNWYWxpZCA/IHRoaXMudmFsdWVzLm1pbnV0ZXMgfHwgMCA6IE5hTjsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICogR2V0IHRoZSBzZWNvbmRzLgogICAgICAgICAqIEByZXR1cm4ge251bWJlcn0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJzZWNvbmRzIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiB0aGlzLmlzVmFsaWQgPyB0aGlzLnZhbHVlcy5zZWNvbmRzIHx8IDAgOiBOYU47CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIEdldCB0aGUgbWlsbGlzZWNvbmRzLgogICAgICAgICAqIEByZXR1cm4ge251bWJlcn0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJtaWxsaXNlY29uZHMiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIHRoaXMuaXNWYWxpZCA/IHRoaXMudmFsdWVzLm1pbGxpc2Vjb25kcyB8fCAwIDogTmFOOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiBSZXR1cm5zIHdoZXRoZXIgdGhlIER1cmF0aW9uIGlzIGludmFsaWQuIEludmFsaWQgZHVyYXRpb25zIGFyZSByZXR1cm5lZCBieSBkaWZmIG9wZXJhdGlvbnMKICAgICAgICAgKiBvbiBpbnZhbGlkIERhdGVUaW1lcyBvciBJbnRlcnZhbHMuCiAgICAgICAgICogQHJldHVybiB7Ym9vbGVhbn0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJpc1ZhbGlkIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiB0aGlzLmludmFsaWQgPT09IG51bGw7CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIFJldHVybnMgYW4gZXJyb3IgY29kZSBpZiB0aGlzIER1cmF0aW9uIGJlY2FtZSBpbnZhbGlkLCBvciBudWxsI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EBwcml2YXRlCiAgICAgICAqLwogICAgICBmdW5jdGlvbiBJbnRlcnZhbChjb25maWcpIHsKICAgICAgICAvKioKICAgICAgICAgKiBAYWNjZXNzIHByaXZhdGUKICAgICAgICAgKi8KICAgICAgICB0aGlzLnMgPSBjb25maWcuc3RhcnQ7CiAgICAgICAgLyoqCiAgICAgICAgICogQGFjY2VzcyBwcml2YXRlCiAgICAgICAgICovCgogICAgICAgIHRoaXMuZSA9IGNvbmZpZy5lbmQ7CiAgICAgICAgLyoqCiAgICAgICAgICogQGFjY2VzcyBwcml2YXRlCiAgICAgICAgICovCgogICAgICAgIHRoaXMuaW52YWxpZCA9IGNvbmZpZy5pbnZhbGlkIHx8IG51bGw7CiAgICAgICAgLyoqCiAgICAgICAgICogQGFjY2VzcyBwcml2YXRlCiAgICAgICAgICovCgogICAgICAgIHRoaXMuaXNMdXhvbkludGVydmFsID0gdHJ1ZTsKICAgICAgfQogICAgICAvKioKICAgICAgICogQ3JlYXRlIGFuIGludmFsaWQgSW50ZXJ2YWwuCiAgICAgICAqIEBwYXJhbSB7c3RyaW5nfSByZWFzb24gLSBzaW1wbGUgc3RyaW5nIG9mIHdoeSB0aGlzIEludGVydmFsIGlzIGludmFsaWQuIFNob3VsZCBub3QgY29udGFpbiBwYXJhbWV0ZXJzIG9yIGFueXRoaW5nIGVsc2UgZGF0YS1kZXBlbmRlbnQKICAgICAgICogQHBhcmFtIHtzdHJpbmd9IFtleHBsYW5hdGlvbj1udWxsXSAtIGxvbmdlciBleHBsYW5hdGlvbiwgbWF5IGluY2x1ZGUgcGFyYW1ldGVycyBhbmQgb3RoZXIgdXNlZnVsIGRlYnVnZ2luZyBpbmZvcm1hdGlvbgogICAgICAgKiBAcmV0dXJuIHtJbnRlcnZhbH0KICAgICAgICovCgoKICAgICAgSW50ZXJ2YWwuaW52YWxpZCA9IGZ1bmN0aW9uIGludmFsaWQocmVhc29uLCBleHBsYW5hdGlvbikgewogICAgICAgIGlmIChleHBsYW5hdGlvbiA9PT0gdm9pZCAwKSB7CiAgICAgICAgICBleHBsYW5hdGlvbiA9IG51bGw7CiAgICAgICAgfQoKICAgICAgICBpZiAoIXJlYXNvbikgewogICAgICAgICAgdGhyb3cgbmV3IEludmFsaWRBcmd1bWVudEVycm9yKCJuZWVkIHRvIHNwZWNpZnkgYSByZWFzb24gdGhlIEludGVydmFsIGlzIGludmFsaWQiKTsKICAgICAgICB9CgogICAgICAgIHZhciBpbnZhbGlkID0gcmVhc29uIGluc3RhbmNlb2YgSW52YWxpZCA/IHJlYXNvbiA6IG5ldyBJbnZhbGlkKHJlYXNvbiwgZXhwbGFuYXRpb24pOwoKICAgICAgICBpZiAoU2V0dGluZ3MudGhyb3dPbkludmFsaWQpIHsKICAgICAgICAgIHRocm93IG5ldyBJbnZhbGlkSW50ZXJ2YWxFcnJvcihpbnZhbGlkKTsKICAgICAgICB9IGVsc2UgewogICAgICAgICAgcmV0dXJuIG5ldyBJbnRlcnZhbCh7CiAgICAgICAgICAgIGludmFsaWQ6IGludmFsaWQKICAgICAgICAgIH0pOwogICAgICAgIH0KICAgICAgfQogICAgICAvKioKICAgICAgICogQ3JlYXRlIGFuIEludGVydmFsIGZyb20gYSBzdGFydCBEYXRlVGltZSBhbmQgYW4gZW5kIERhdGVUaW1lLiBJbmNsdXNpdmUgb2YgdGhlIHN0YXJ0IGJ1dCBub3QgdGhlIGVuZC4KICAgICAgICogQHBhcmFtIHtEYXRlVGltZXxEYXRlfE9iamVjdH0gc3RhcnQKICAgICAgICogQHBhcmFtIHtEYXRlVGltZXxEYXRlfE9iamVjdH0gZW5kCiAgICAgICAqIEByZXR1cm4ge0ludGVydmFsfQogICAgICAgKi8KICAgICAgOwoKICAgICAgSW50ZXJ2YWwuZnJvbURhdGVUaW1lcyA9IGZ1bmN0aW9uIGZyb21EYXRlVGltZXMoc3RhcnQsIGVuZCkgewogICAgICAgIHZhciBidWlsdFN0YXJ0ID0gZnJpZW5kbHlEYXRlVGltZShzdGFydCksCiAgICAgICAgICAgIGJ1aWx0RW5kID0gZnJpZW5kbHlEYXRlVGltZShlbmQpOwogICAgICAgIHZhciB2YWxpZGF0ZUVycm9yID0gdmFsaWRhdGVTdGFydEVuZChidWlsdFN0YXJ0LCBidWlsdEVuZCk7CgogICAgICAgIGlmICh2YWxpZGF0ZUVycm9yID09IG51bGwpIHsKICAgICAgICAgIHJldHVybiBuZXcgSW50ZXJ2YWwoewogICAgICAgICAgICBzdGFydDogYnVpbHRTdGFydCwKICAgICAgICAgICAgZW5kOiBidWlsdEVuZAogICAgICAgICAgfSk7CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgIHJldHVybiB2YWxpZGF0ZUVycm9yOwogICAgICAgIH0KICAgICAgfQogICAgICAvKioKICAgICAgICogQ3JlYXRlIGFuIEludGVydmFsIGZyb20gYSBzdGFydCBEYXRlVGltZSBhbmQgYSBEdXJhdGlvbiB0byBleHRlbmQgdG8uCiAgICAgICAqIEBwYXJhbSB7RGF0ZVRpbWV8RGF0ZXxPYmplY3R9IHN0YXJ0CiAgICAgICAqIEBwYXJhbSB7RHVyYXRpb258T2JqZWN0fG51bWJlcn0gZHVyYXRpb24gLSB0aGUgbGVuZ3RoIG9mIHRoZSBJbnRlcnZhbC4KICAgICAgICogQHJldHVybiB7SW50ZXJ2YWx9CiAgICAgICAqLwogICAgICA7CgogICAgICBJbnRlcnZhbC5hZnRlciA9IGZ1bmN0aW9uIGFmdGVyKHN0YXJ0LCBkdXJhdGlvbikgewogICAgICAgIHZhciBkdXIgPSBmcmllbmRseUR1cmF0aW9uKGR1cmF0aW9uKSwKICAgICAgICAgICAgZHQgPSBmcmllbmRseURhdGVUaW1lKHN0YXJ0KTsKICAgICAgICByZXR1cm4gSW50ZXJ2YWwuZnJvbURhdGVUaW1lcyhkdCwgZHQucGx1cyhkdXIpKTsKICAgICAgfQogICAgICAvKioKICAgICAgICogQ3JlYXRlIGFuIEludGVydmFsIGZyb20gYW4gZW5kIERhdGVUaW1lIGFuZCBhIER1cmF0a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iAgICAgIDsKCiAgICAgIEludGVydmFsLmZyb21JU08gPSBmdW5jdGlvbiBmcm9tSVNPKHRleHQsIG9wdHMpIHsKICAgICAgICB2YXIgX3NwbGl0ID0gKHRleHQgfHwgIiIpLnNwbGl0KCIvIiwgMiksCiAgICAgICAgICAgIHMgPSBfc3BsaXRbMF0sCiAgICAgICAgICAgIGUgPSBfc3BsaXRbMV07CgogICAgICAgIGlmIChzICYmIGUpIHsKICAgICAgICAgIHZhciBzdGFydCwgc3RhcnRJc1ZhbGlkOwoKICAgICAgICAgIHRyeSB7CiAgICAgICAgICAgIHN0YXJ0ID0gRGF0ZVRpbWUuZnJvbUlTTyhzLCBvcHRzKTsKICAgICAgICAgICAgc3RhcnRJc1ZhbGlkID0gc3RhcnQuaXNWYWxpZDsKICAgICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgc3RhcnRJc1ZhbGlkID0gZmFsc2U7CiAgICAgICAgICB9CgogICAgICAgICAgdmFyIGVuZCwgZW5kSXNWYWxpZDsKCiAgICAgICAgICB0cnkgewogICAgICAgICAgICBlbmQgPSBEYXRlVGltZS5mcm9tSVNPKGUsIG9wdHMpOwogICAgICAgICAgICBlbmRJc1ZhbGlkID0gZW5kLmlzVmFsaWQ7CiAgICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIGVuZElzVmFsaWQgPSBmYWxzZTsKICAgICAgICAgIH0KCiAgICAgICAgICBpZiAoc3RhcnRJc1ZhbGlkICYmIGVuZElzVmFsaWQpIHsKICAgICAgICAgICAgcmV0dXJuIEludGVydmFsLmZyb21EYXRlVGltZXMoc3RhcnQsIGVuZCk7CiAgICAgICAgICB9CgogICAgICAgICAgaWYgKHN0YXJ0SXNWYWxpZCkgewogICAgICAgICAgICB2YXIgZHVyID0gRHVyYXRpb24uZnJvbUlTTyhlLCBvcHRzKTsKCiAgICAgICAgICAgIGlmIChkdXIuaXNWYWxpZCkgewogICAgICAgICAgICAgIHJldHVybiBJbnRlcnZhbC5hZnRlcihzdGFydCwgZHVyKTsKICAgICAgICAgICAgfQogICAgICAgICAgfSBlbHNlIGlmIChlbmRJc1ZhbGlkKSB7CiAgICAgICAgICAgIHZhciBfZHVyID0gRHVyYXRpb24uZnJvbUlTTyhzLCBvcHRzKTsKCiAgICAgICAgICAgIGlmIChfZHVyLmlzVmFsaWQpIHsKICAgICAgICAgICAgICByZXR1cm4gSW50ZXJ2YWwuYmVmb3JlKGVuZCwgX2R1cik7CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIHJldHVybiBJbnRlcnZhbC5pbnZhbGlkKCJ1bnBhcnNhYmxlIiwgInRoZSBpbnB1dCBcIiIgKyB0ZXh0ICsgIlwiIGNhbid0IGJlIHBhcnNlZCBhcyBJU08gODYwMSIpOwogICAgICB9CiAgICAgIC8qKgogICAgICAgKiBDaGVjayBpZiBhbiBvYmplY3QgaXMgYW4gSW50ZXJ2YWwuIFdvcmtzIGFjcm9zcyBjb250ZXh0IGJvdW5kYXJpZXMKICAgICAgICogQHBhcmFtIHtvYmplY3R9IG8KICAgICAgICogQHJldHVybiB7Ym9vbGVhbn0KICAgICAgICovCiAgICAgIDsKCiAgICAgIEludGVydmFsLmlzSW50ZXJ2YWwgPSBmdW5jdGlvbiBpc0ludGVydmFsKG8pIHsKICAgICAgICByZXR1cm4gbyAmJiBvLmlzTHV4b25JbnRlcnZhbCB8fCBmYWxzZTsKICAgICAgfQogICAgICAvKioKICAgICAgICogUmV0dXJucyB0aGUgc3RhcnQgb2YgdGhlIEludGVydmFsCiAgICAgICAqIEB0eXBlIHtEYXRlVGltZX0KICAgICAgICovCiAgICAgIDsKCiAgICAgIHZhciBfcHJvdG8gPSBJbnRlcnZhbC5wcm90b3R5cGU7CgogICAgICAvKioKICAgICAgICogUmV0dXJucyB0aGUgbGVuZ3RoIG9mIHRoZSBJbnRlcnZhbCBpbiB0aGUgc3BlY2lmaWVkIHVuaXQuCiAgICAgICAqIEBwYXJhbS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XMgSW50ZXJ2YWwgaW50byBzbWFsbGVyIEludGVydmFscywgZWFjaCBvZiB0aGUgc3BlY2lmaWVkIGxlbmd0aC4KICAgICAgICogTGVmdCBvdmVyIHRpbWUgaXMgZ3JvdXBlZCBpbnRvIGEgc21hbGxlciBpbnRlcnZhbAogICAgICAgKiBAcGFyYW0ge0R1cmF0aW9ufE9iamVjdHxudW1iZXJ9IGR1cmF0aW9uIC0gVGhlIGxlbmd0aCBvZiBlYWNoIHJlc3VsdGluZyBpbnRlcnZhbC4KICAgICAgICogQHJldHVybiB7QXJyYXl9CiAgICAgICAqLwogICAgICA7CgogICAgICBfcHJvdG8uc3BsaXRCeSA9IGZ1bmN0aW9uIHNwbGl0QnkoZHVyYXRpb24pIHsKICAgICAgICB2YXIgZHVyID0gZnJpZW5kbHlEdXJhdGlvbihkdXJhdGlvbik7CgogICAgICAgIGlmICghdGhpcy5pc1ZhbGlkIHx8ICFkdXIuaXNWYWxpZCB8fCBkdXIuYXMoIm1pbGxpc2Vjb25kcyIpID09PSAwKSB7CiAgICAgICAgICByZXR1cm4gW107CiAgICAgICAgfQoKICAgICAgICB2YXIgcyA9IHRoaXMucywKICAgICAgICAgICAgaWR4ID0gMSwKICAgICAgICAgICAgbmV4dDsKICAgICAgICB2YXIgcmVzdWx0cyA9IFtdOwoKICAgICAgICB3aGlsZSAocyA8IHRoaXMuZSkgewogICAgICAgICAgdmFyIGFkZGVkID0gdGhpcy5zdGFydC5wbHVzKGR1ci5tYXBVbml0cyhmdW5jdGlvbiAoeCkgewogICAgICAgICAgICByZXR1cm4geCAqIGlkeDsKICAgICAgICAgIH0pKTsKICAgICAgICAgIG5leHQgPSArYWRkZWQgPiArdGhpcy5lID8gdGhpcy5lIDogYWRkZWQ7CiAgICAgICAgICByZXN1bHRzLnB1c2goSW50ZXJ2YWwuZnJvbURhdGVUaW1lcyhzLCBuZXh0KSk7CiAgICAgICAgICBzID0gbmV4dDsKICAgICAgICAgIGlkeCArPSAxOwogICAgICAgIH0KCiAgICAgICAgcmV0dXJuIHJlc3VsdHM7CiAgICAgIH0KICAgICAgLyoqCiAgICAgICAqIFNwbGl0IHRoaXMgSW50ZXJ2YWwgaW50byB0aGUgc3BlY2lmaWVkIG51bWJlciBvZiBzbWFsbGVyIGludGVydmFscy4KICAgICAgICogQHBhcmFtIHtudW1iZXJ9IG51bWJlck9mUGFydHMgLSBUaGUgbnVtYmVyIG9mIEludGVydmFscyB0byBkaXZpZGUgdGhlIEludGVydmFsIGludG8uCiAgICAgICAqIEByZXR1cm4ge0FycmF5fQogICAgICAgKi8KICAgICAgOwoKICAgICAgX3Byb3RvLmRpdmlkZUVxdWFsbHkgPSBmdW5jdGlvbiBkaXZpZGVFcXVhbGx5KG51bWJlck9mUGFydHMpIHsKICAgICAgICBpZiAoIXRoaXMuaXNWYWxpZCkgcmV0dXJuIFtdOwogICAgICAgIHJldHVybiB0aGlzLnNwbGl0QnkodGhpcy5sZW5ndGgoKSAvIG51bWJlck9mUGFydHMpLnNsaWNlKDAsIG51bWJlck9mUGFydHMpOwogICAgICB9CiAgICAgIC8qKgogICAgICAgKiBSZXR1cm4gd2hldGhlciB0aGlzIEludGVydmFsIG92ZXJsYXBzIHdpdGggdGhlIHNwZWNpZmllZCBJbnRlcnZhbAogICAgICAgKiBAcGFyYW0ge0ludGVydmFsfSBvdGhlcgogICAgICAgKiBAcmV0dXJuIHtib29sZWFufQogICAgICAgKi8KICAgICAgOwoKICAgICAgX3Byb3RvLm92ZXJsYXBzID0gZnVuY3Rpb24gb3ZlcmxhcHMob3RoZXIpIHsKICAgICAgICByZXR1cm4gdGhpcy5lID4gb3RoZXIucyAmJiB0aGlzLnMgPCBvdGhlci5lOwogICAgICB9CiAgICAgIC8qKgogICAgICAgKiBSZXR1cm4gd2hldGhlciB0aGlzIEludGVydmFsJ3MgZW5kIGlzIGFkamFjZW50IHRvIHRoZSBzcGVjaWZpZWQgSW50ZXJ2YWwncyBzdGFydC4KICAgICAgICogQHBhcmFtIHtJbnRlcnZhbH0gb3RoZXIKICAgICAgICogQHJldHVybiB7Ym9vbGVhbn0KICAgICAgICovCiAgICAgIDsKCiAgICAgIF9wcm90by5hYnV0c1N0YXJ0ID0gZnVuY3Rpb24gYWJ1dHNTdGFydChvdGhlcikgewogICAgICAgIGlmICghdGhpcy5pc1ZhbGlkKSByZXR1cm4gZmFsc2U7CiAgICAgICAgcmV0dXJuICt0aGlzLmUgPT09ICtvdGhlci5zOwogICAgICB9CiAgICAgIC8qKgogICAgICAgKiBSZXR1cm4gd2hldGhlciB0aGlzIEludGVydmFsJ3Mgc3RhcnQgaXMgYWRqYWNlbnQgdG8gdGhlIHNwZWNpZmllZCBJbnRlcnZhbCdzIGVuZC4KICAgICAgICogQHBhcmFtIHtJbnRlcnZhbH0gb3RoZXIKICAgICAgICogQHJldHVybiB7Ym9vbGVhbn0KICAgICAgICovCiAgICAgIDsKCiAgICAgIF9wcm90by5hYnV0c0VuZCA9IGZ1bmN0aW9uIGFidXRzRW5kKG90aGVyKSB7CiAgICAgICAgaWYgKCF0aGlzLmlzVmFsaWQpIHJldHVybiBmYWxzZTsKICAgICAgICByZXR1cm4gK290aGVyLmUgPT09ICt0aGlzLnM7CiAgICAgIH0KICAgICAgLyoqCiAgICAgICAqIFJldHVybiB3aGV0aGVyIHRoaXMgSW50ZXJ2YWwgZW5ndWxmcyB0aGUgc3RhcnQgYW5kIGVuZCBvZiB0aGUgc3BlY2lmaWVkIEludGVydmFsLgogICAgICAgKiBAcGFyYW0ge0ludGVydmFsfSBvdGhlcgogICAgICAgKiBAcmV0dXJuIHtib29sZWFufQogICAgICAgKi8KICAgICAgOwoKICAgICAgX3Byb3RvLmVuZ3VsZnMgPSBmdW5jdGlvbiBlbmd1bGZzKG90aGVyKSB7CiAgICAgICAgaWYgKCF0aGlzLmlzVmFsaWQpIHJldHVybiBmYWxzZTsKICAgICAgICByZXR1cm4gdGhpcy5zIDw9IG90aGVyLnMgJiYgdGhpcy5lID49IG90aGVyLmU7CiAgICAg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WN0aW9uKG90aGVyKSB7CiAgICAgICAgaWYgKCF0aGlzLmlzVmFsaWQpIHJldHVybiB0aGlzOwogICAgICAgIHZhciBzID0gdGhpcy5zID4gb3RoZXIucyA/IHRoaXMucyA6IG90aGVyLnMsCiAgICAgICAgICAgIGUgPSB0aGlzLmUgPCBvdGhlci5lID8gdGhpcy5lIDogb3RoZXIuZTsKCiAgICAgICAgaWYgKHMgPj0gZSkgewogICAgICAgICAgcmV0dXJuIG51bGw7CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgIHJldHVybiBJbnRlcnZhbC5mcm9tRGF0ZVRpbWVzKHMsIGUpOwogICAgICAgIH0KICAgICAgfQogICAgICAvKioKICAgICAgICogUmV0dXJuIGFuIEludGVydmFsIHJlcHJlc2VudGluZyB0aGUgdW5pb24gb2YgdGhpcyBJbnRlcnZhbCBhbmQgdGhlIHNwZWNpZmllZCBJbnRlcnZhbC4KICAgICAgICogU3BlY2lmaWNhbGx5LCB0aGUgcmVzdWx0aW5nIEludGVydmFsIGhhcyB0aGUgbWluaW11bSBzdGFydCB0aW1lIGFuZCB0aGUgbWF4aW11bSBlbmQgdGltZSBvZiB0aGUgdHdvIEludGVydmFscy4KICAgICAgICogQHBhcmFtIHtJbnRlcnZhbH0gb3RoZXIKICAgICAgICogQHJldHVybiB7SW50ZXJ2YWx9CiAgICAgICAqLwogICAgICA7CgogICAgICBfcHJvdG8udW5pb24gPSBmdW5jdGlvbiB1bmlvbihvdGhlcikgewogICAgICAgIGlmICghdGhpcy5pc1ZhbGlkKSByZXR1cm4gdGhpczsKICAgICAgICB2YXIgcyA9IHRoaXMucyA8IG90aGVyLnMgPyB0aGlzLnMgOiBvdGhlci5zLAogICAgICAgICAgICBlID0gdGhpcy5lID4gb3RoZXIuZSA/IHRoaXMuZSA6IG90aGVyLmU7CiAgICAgICAgcmV0dXJuIEludGVydmFsLmZyb21EYXRlVGltZXMocywgZSk7CiAgICAgIH0KICAgICAgLyoqCiAgICAgICAqIE1lcmdlIGFuIGFycmF5IG9mIEludGVydmFscyBpbnRvIGEgZXF1aXZhbGVudCBtaW5pbWFsIHNldCBvZiBJbnRlcnZhbHMuCiAgICAgICAqIENvbWJpbmVzIG92ZXJsYXBwaW5nIGFuZCBhZGphY2VudCBJbnRlcnZhbHMuCiAgICAgICAqIEBwYXJhbSB7QXJyYXl9IGludGVydmFscwogICAgICAgKiBAcmV0dXJuIHtBcnJheX0KICAgICAgICovCiAgICAgIDsKCiAgICAgIEludGVydmFsLm1lcmdlID0gZnVuY3Rpb24gbWVyZ2UoaW50ZXJ2YWxzKSB7CiAgICAgICAgdmFyIF9pbnRlcnZhbHMkc29ydCRyZWR1YyA9IGludGVydmFscy5zb3J0KGZ1bmN0aW9uIChhLCBiKSB7CiAgICAgICAgICByZXR1cm4gYS5zIC0gYi5zOwogICAgICAgIH0pLnJlZHVjZShmdW5jdGlvbiAoX3JlZjIsIGl0ZW0pIHsKICAgICAgICAgIHZhciBzb2ZhciA9IF9yZWYyWzBdLAogICAgICAgICAgICAgIGN1cnJlbnQgPSBfcmVmMlsxXTsKCiAgICAgICAgICBpZiAoIWN1cnJlbnQpIHsKICAgICAgICAgICAgcmV0dXJuIFtzb2ZhciwgaXRlbV07CiAgICAgICAgICB9IGVsc2UgaWYgKGN1cnJlbnQub3ZlcmxhcHMoaXRlbSkgfHwgY3VycmVudC5hYnV0c1N0YXJ0KGl0ZW0pKSB7CiAgICAgICAgICAgIHJldHVybiBbc29mYXIsIGN1cnJlbnQudW5pb24oaXRlbSldOwogICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgcmV0dXJuIFtzb2Zhci5jb25jYXQoW2N1cnJlbnRdKSwgaXRlbV07CiAgICAgICAgICB9CiAgICAgICAgfSwgW1tdLCBudWxsXSksCiAgICAgICAgICAgIGZvdW5kID0gX2ludGVydmFscyRzb3J0JHJlZHVjWzBdLAogICAgICAgICAgICBmaW5hbCA9IF9pbnRlcnZhbHMkc29ydCRyZWR1Y1sxXTsKCiAgICAgICAgaWYgKGZpbmFsKSB7CiAgICAgICAgICBmb3VuZC5wdXNoKGZpbmFsKTsKICAgICAgICB9CgogICAgICAgIHJldHVybiBmb3VuZDsKICAgICAgfQogICAgICAvKioKICAgICAgICogUmV0dXJuIGFuIGFycmF5IG9mIEludGVydmFscyByZXByZXNlbnRpbmcgdGhlIHNwYW5zIG9mIHRpbWUgdGhhdCBvbmx5IGFwcGVhciBpbiBvbmUgb2YgdGhlIHNwZWNpZmllZCBJbnRlcnZhbHMuCiAgICAgICAqIEBwYXJhbSB7QXJyYXl9IGludGVydmFscwogICAgICAgKiBAcmV0dXJuIHtBcnJheX0KICAgICAgICovCiAgICAgIDsKCiAgICAgIEludGVydmFsLnhvciA9IGZ1bmN0aW9uIHhvcihpbnRlcnZhbHMpIHsKICAgICAgICB2YXIgX0FycmF5JHByb3RvdHlwZTsKCiAgICAgICAgdmFyIHN0YXJ0ID0gbnVsbCwKICAgICAgICAgICAgY3VycmVudENvdW50ID0gMDsKCiAgICAgICAgdmFyIHJlc3VsdHMgPSBbXSwKICAgICAgICAgICAgZW5kcyA9IGludGVydmFscy5tYXAoZnVuY3Rpb24gKGkpIHsKICAgICAgICAgIHJldHVybiBbewogICAgICAgICAgICB0aW1lOiBpLnMsCiAgICAgICAgICAgIHR5cGU6ICJzIgogICAgICAgICAgfSwgewogICAgICAgICAgICB0aW1lOiBpLmUsCiAgICAgICAgICAgIHR5cGU6ICJlIgogICAgICAgICAgfV07CiAgICAgICAgfSksCiAgICAgICAgICAgIGZsYXR0ZW5lZCA9IChfQXJyYXkkcHJvdG90eXBlID0gQXJyYXkucHJvdG90eXBlKS5jb25jYXQuYXBwbHkoX0FycmF5JHByb3RvdHlwZSwgZW5kcyksCiAgICAgICAgICAgIGFyciA9IGZsYXR0ZW5lZC5zb3J0KGZ1bmN0aW9uIChhLCBiKSB7CiAgICAgICAgICByZXR1cm4gYS50aW1lIC0gYi50aW1lOwogICAgICAgIH0pOwoKICAgICAgICBmb3IgKHZhciBfaXRlcmF0b3IgPSBfY3JlYXRlRm9yT2ZJdGVyYXRvckhlbHBlckxvb3NlKGFyciksIF9zdGVwOyAhKF9zdGVwID0gX2l0ZXJhdG9yKCkpLmRvbmU7KSB7CiAgICAgICAgICB2YXIgaSA9IF9zdGVwLnZhbHVlOwogICAgICAgICAgY3VycmVudENvdW50ICs9IGkudHlwZSA9PT0gInMiID8gMSA6IC0xOwoKICAgICAgICAgIGlmIChjdXJyZW50Q291bnQgPT09IDEpIHsKICAgICAgICAgICAgc3RhcnQgPSBpLnRpbWU7CiAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICBpZiAoc3RhcnQgJiYgK3N0YXJ0ICE9PSAraS50aW1lKSB7CiAgICAgICAgICAgICAgcmVzdWx0cy5wdXNoKEludGVydmFsLmZyb21EYXRlVGltZXMoc3RhcnQsIGkudGltZSkpOwogICAgICAgICAgICB9CgogICAgICAgICAgICBzdGFydCA9IG51bGw7CiAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICByZXR1cm4gSW50ZXJ2YWwubWVyZ2UocmVzdWx0cyk7CiAgICAgIH0KICAgICAgLyoqCiAgICAgICAqIFJldHVybiBhbiBJbnRlcnZhbCByZXByZXNlbnRpbmcgdGhlIHNwYW4gb2YgdGltZSBpbiB0aGlzIEludGVydmFsIHRoYXQgZG9lc24ndCBvdmVybGFwIHdpdGggYW55IG9mIHRoZSBzcGVjaWZpZWQgSW50ZXJ2YWxzLgogICAgICAgKiBAcGFyYW0gey4uLkludGVydmFsfSBpbnRlcnZhbHMKICAgICAgICogQHJldHVybiB7QXJyYXl9CiAgICAgICAqLwogICAgICA7CgogICAgICBfcHJvdG8uZGlmZmVyZW5jZSA9IGZ1bmN0aW9uIGRpZmZlcmVuY2UoKSB7CiAgICAgICAgdmFyIF90aGlzMiA9IHRoaXM7CgogICAgICAgIGZvciAodmFyIF9sZW4yID0gYXJndW1lbnRzLmxlbmd0aCwgaW50ZXJ2YWxzID0gbmV3IEFycmF5KF9sZW4yKSwgX2tleTIgPSAwOyBfa2V5MiA8IF9sZW4yOyBfa2V5MisrKSB7CiAgICAgICAgICBpbnRlcnZhbHNbX2tleTJdID0gYXJndW1lbnRzW19rZXkyXTsKICAgICAgICB9CgogICAgICAgIHJldHVybiBJbnRlcnZhbC54b3IoW3RoaXNdLmNvbmNhdChpbnRlcnZhbHMpKS5tYXAoZnVuY3Rpb24gKGkpIHsKICAgICAgICAgIHJldHVybiBfdGhpczIuaW50ZXJzZWN0aW9uKGkpOwogICAgICAgIH0pLmZpbHRlcihmdW5jdGlvbiAoaSkgewogICAgICAgICAgcmV0dXJuIGkgJiYgIWkuaXNFbXB0eSgpOwogICAgICAgIH0pOwogICAgICB9CiAgICAgIC8qKgogICAgICAgKiBSZXR1cm5zIGEgc3RyaW5nIHJlcHJlc2VudGF0aW9uIG9mIHRoaXMgSW50ZXJ2YWwgYXBwcm9wcmlhdGUgZm9yIGRlYnVnZ2luZy4KICAgICAgICogQHJldHVybiB7c3RyaW5nfQogICAgICAgKi8KICAgICAgOwoKICAgICAgX3Byb3RvLnRvU3RyaW5nID0gZnVuY3Rpb24gdG9TdHJpbmcoKSB7CiAgICAgICAgaWYgKCF0aGlzLmlzVmFsaWQpIHJldHVybiBJTlZBTElEJDE7CiAgICAgICAgcmV0dXJuICJbIiArIHRoaXMucy50b0lTTygpICsgIiBcdTIwMTMgIiArIHRoaXMuZS50b0lTTygpICsgIikiOwogICAgICB9CiAgICAgIC8qKgogICAgICAgKiBSZXR1cm5zIGFuIElTTyA4NjAxLWNvbXBsaWFudCBzdHJpbmcgcmVwcmVzZW50YXRpb24gb2YgdGhpcyBJbnRlcnZhbC4KICAgICAgICogQHNlZSBodHRwczovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9JU09fODYwMSNUaW1lX2ludGVydmFscwogICAgICAgKiBAcGFyYW0ge09iamVjdH0gb3B0cyAtIFRoZSBzYW1lIG9wdGlvbnMgYXMge0BsaW5rIERhdGVUaW1lI3RvSVNPfQogICAgICAgKiBAcmV0dXJuIHtzdHJpbmd9CiAgICAgICAqLwogICAgICA7CgogICAgICBfcHJvdG8udG9JU08gPSBmdW5jdGlvbiB0b0lTTyhvcHRzKSB7CiAgICAgICAgaWYgKCF0aGlzLmlzVmFsaWQpIHJldHVybiBJTlZBTElEJDE7CiAgICAgICAgcmV0dXJuIHRoaXMucy50b0lTTyhvcHRzKSArICIvIiArIHRoaXMuZS50b0lTTyhvcHRzKTsKICAgICAgfQogICAgICAvKioKICAgICAgICogUmV0dXJucyBhbiBJU08gODYwMS1jb21wbGlhbnQgc3RyaW5nIHJlcHJlc2VudGF0aW9uIG9mIGRhdGUgb2YgdGhpcyBJbnRlcnZhbC4KICAgICAgICogVGhlIHRpbWUgY29tcG9uZW50cyBhcmUgaWdub3JlZC4KICAgICAgICogQHNlZSBodHRwczovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9JU09fODYwMSNUaW1lX2ludGVydmFscwogICAgICAgKiBAcmV0dXJuIHtzdHJpbmd9CiAgICAgICAqLwogICAgICA7CgogICAgICBfcHJvdG8udG9JU09EYXRlID0gZnVuY3Rpb24gdG9JU09EYXRlKCkgewogICAgICAgIGlmICghdGhpcy5pc1ZhbGlkKSByZXR1cm4gSU5WQUxJRCQxOwogICAgICAgIHJldHVybiB0aGlzLnMudG9JU09EYXRlKCkgKyAiLyIgKyB0aGlzLmUudG9JU09EYXRlKCk7CiAgICAgIH0KICAgICAgLyoqCiAgICAgICAqIFJldHVybnMgYW4gSVNPIDg2MDEtY29tcGxpYW50IHN0cmluZyByZXByZXNlbnRhdGlvbiBvZiB0aW1lIG9mIHRoaXMgSW50ZXJ2YWwuCiAgICAgICAqIFRoZSBkYXRlIGNvbXBvbmVudHMgYXJlIGlnbm9yZWQuCiAgICAgICAqIEBzZWUgaHR0cHM6Ly9lbi53aWtpcGVkaWEub3JnL3dpa2kvSVNPXzg2MDEjVGltZV9pbnRlcnZhbHMKICAgICAgICogQHBhcmFtIHtPYmplY3R9IG9wdHMgLSB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IGlzIGF0IGxlYXN0IGl0cyBzdGFydCwgbWVhbmluZyB0aGF0IHRoZSBJbnRlcnZhbCBpc24ndCAnYmFja3dhcmRzJy4KICAgICAgICAgKiBAdHlwZSB7Ym9vbGVhbn0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJpc1ZhbGlkIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiB0aGlzLmludmFsaWRSZWFzb24gPT09IG51bGw7CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIFJldHVybnMgYW4gZXJyb3IgY29kZSBpZiB0aGlzIEludGVydmFsIGlzIGludmFsaWQsIG9yIG51bGwgaWYgdGhlIEludGVydmFsIGlzIHZhbGlkCiAgICAgICAgICogQHR5cGUge3N0cmluZ30KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJpbnZhbGlkUmVhc29uIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiB0aGlzLmludmFsaWQgPyB0aGlzLmludmFsaWQucmVhc29uIDogbnVsbDsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICogUmV0dXJucyBhbiBleHBsYW5hdGlvbiBvZiB3aHkgdGhpcyBJbnRlcnZhbCBiZWNhbWUgaW52YWxpZCwgb3IgbnVsbCBpZiB0aGUgSW50ZXJ2YWwgaXMgdmFsaWQKICAgICAgICAgKiBAdHlwZSB7c3RyaW5nfQogICAgICAgICAqLwoKICAgICAgfSwgewogICAgICAgIGtleTogImludmFsaWRFeHBsYW5hdGlvbiIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gdGhpcy5pbnZhbGlkID8gdGhpcy5pbnZhbGlkLmV4cGxhbmF0aW9uIDogbnVsbDsKICAgICAgICB9CiAgICAgIH1dKTsKCiAgICAgIHJldHVybiBJbnRlcnZh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Ahem9uZS5pc1VuaXZlcnNhbCAmJiBwcm90by5vZmZzZXQgIT09IHByb3RvLnNldCh7CiAgICAgICAgICBtb250aDogNgogICAgICAgIH0pLm9mZnNldDsKICAgICAgfQogICAgICAvKioKICAgICAgICogUmV0dXJuIHdoZXRoZXIgdGhlIHNwZWNpZmllZCB6b25lIGlzIGEgdmFsaWQgSUFOQSBzcGVjaWZpZXIuCiAgICAgICAqIEBwYXJhbSB7c3RyaW5nfSB6b25lIC0gWm9uZSB0byBjaGVjawogICAgICAgKiBAcmV0dXJuIHtib29sZWFufQogICAgICAgKi8KICAgICAgOwoKICAgICAgSW5mby5pc1ZhbGlkSUFOQVpvbmUgPSBmdW5jdGlvbiBpc1ZhbGlkSUFOQVpvbmUoem9uZSkgewogICAgICAgIHJldHVybiBJQU5BWm9uZS5pc1ZhbGlkU3BlY2lmaWVyKHpvbmUpICYmIElBTkFab25lLmlzVmFsaWRab25lKHpvbmUpOwogICAgICB9CiAgICAgIC8qKgogICAgICAgKiBDb252ZXJ0cyB0aGUgaW5wdXQgaW50byBhIHtAbGluayBab25lfSBpbnN0YW5jZS4KICAgICAgICoKICAgICAgICogKiBJZiBgaW5wdXRgIGlzIGFscmVhZHkgYSBab25lIGluc3RhbmNlLCBpdCBpcyByZXR1cm5lZCB1bmNoYW5nZWQuCiAgICAgICAqICogSWYgYGlucHV0YCBpcyBhIHN0cmluZyBjb250YWluaW5nIGEgdmFsaWQgdGltZSB6b25lIG5hbWUsIGEgWm9uZSBpbnN0YW5jZQogICAgICAgKiAgIHdpdGggdGhhdCBuYW1lIGlzIHJldHVybmVkLgogICAgICAgKiAqIElmIGBpbnB1dGAgaXMgYSBzdHJpbmcgdGhhdCBkb2Vzbid0IHJlZmVyIHRvIGEga25vd24gdGltZSB6b25lLCBhIFpvbmUKICAgICAgICogICBpbnN0YW5jZSB3aXRoIHtAbGluayBab25lLmlzVmFsaWR9ID09IGZhbHNlIGlzIHJldHVybmVkLgogICAgICAgKiAqIElmIGBpbn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ewogICAgICAgICAgdmFyIGNvZGUgPSBzdHIuY2hhckNvZGVBdChpKTsKCiAgICAgICAgICBpZiAoc3RyW2ldLnNlYXJjaChudW1iZXJpbmdTeXN0ZW1zLmhhbmlkZWMpICE9PSAtMSkgewogICAgICAgICAgICB2YWx1ZSArPSBoYW5pZGVjQ2hhcnMuaW5kZXhPZihzdHJbaV0pOwogICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgZm9yICh2YXIga2V5IGluIG51bWJlcmluZ1N5c3RlbXNVVEYxNikgewogICAgICAgICAgICAgIHZhciBfbnVtYmVyaW5nU3lzdGVtc1VURiA9IG51bWJlcmluZ1N5c3RlbXNVVEYxNltrZXldLAogICAgICAgICAgICAgICAgICBtaW4gPSBfbnVtYmVyaW5nU3lzdGVtc1VURlswXSwKICAgICAgICAgICAgICAgICAgbWF4ID0gX251bWJlcmluZ1N5c3RlbXNVVEZbMV07CgogICAgICAgICAgICAgIGlmIChjb2RlID49IG1pbiAmJiBjb2RlIDw9IG1heCkgewogICAgICAgICAgICAgICAgdmFsdWUgKz0gY29kZSAtIG1pbjsKICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIHJldHVybiBwYXJzZUludCh2YWx1ZSwgMTApOwogICAgICB9IGVsc2UgewogICAgICAgIHJldHVybiB2YWx1ZTsKICAgICAgfQogICAgfQogICAgZnVuY3Rpb24gZGlnaXRSZWdleChfcmVmLCBhcHBlbmQpIHsKICAgICAgdmFyIG51bWJlcmluZ1N5c3RlbSA9IF9yZWYubnVtYmVyaW5nU3lzdGVtOwoKICAgICAgaWYgKGFwcGVuZCA9PT0gdm9pZCAwKSB7CiAgICAgICAgYXBwZW5kID0gIiI7CiAgICAgIH0KCiAgICAgIHJldHVybiBuZXcgUmVnRXhwKCIiICsgbnVtYmVyaW5nU3lzdGVtc1tudW1iZXJpbmdTeXN0ZW0gfHwgImxhdG4iXSArIGFwcGVuZCk7CiAgICB9Cgog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2csICIiKSAvLyBpZ25vcmUgZG90cyB0aGF0IHdlcmUgbWFkZSBvcHRpb25hbAogICAgICAucmVwbGFjZShzcGFjZU9yTkJTUFJlZ0V4cCwgIiAiKSAvLyBpbnRlcmNoYW5nZSBzcGFjZSBhbmQgbmJzcAogICAgICAudG9Mb3dlckNhc2UoKTsKICAgIH0KCiAgICBmdW5jdGlvbiBvbmVPZihzdHJpbmdzLCBzdGFydEluZGV4KSB7CiAgICAgIGlmIChzdHJpbmdzID09PSBudWxsKSB7CiAgICAgICAgcmV0dXJuIG51bGw7CiAgICAgIH0gZWxzZSB7CiAgICAgICAgcmV0dXJuIHsKICAgICAgICAgIHJlZ2V4OiBSZWdFeHAoc3RyaW5ncy5tYXAoZml4TGlzdFJlZ2V4KS5qb2luKCJ8IikpLAogICAgICAgICAgZGVzZXI6IGZ1bmN0aW9uIGRlc2VyKF9yZWYyKSB7CiAgICAgICAgICAgIHZhciBzID0gX3JlZjJbMF07CiAgICAgICAgICAgIHJldHVybiBzdHJpbmdzLmZpbmRJbmRleChmdW5jdGlvbiAoaSkgewogICAgICAgICAgICAgIHJldHVybiBzdHJpcEluc2Vuc2l0aXZpdGllcyhzKSA9PT0gc3RyaXBJbnNlbnNpdGl2aXRpZXMoaSk7CiAgICAgICAgICAgIH0pICsgc3RhcnRJbmRleDsKICAgICAgICAgIH0KICAgICAgICB9OwogICAgICB9CiAgICB9CgogICAgZnVuY3Rpb24gb2Zmc2V0KHJlZ2V4LCBncm91cHMpIHsKICAgICAgcmV0dXJuIHsKICAgICAgICByZWdleDogcmVnZXgsCiAgICAgICAgZGVzZXI6IGZ1bmN0aW9uIGRlc2VyKF9yZWYzKSB7CiAgICAgICAgICB2YXIgaCA9IF9yZWYzWzFdLAogICAgICAgICAgICAgIG0gPSBfcmVmM1syXTsKICAgICAgICAgIHJldHVybiBzaWduZWRPZmZzZXQoaCwgbSk7CiAgICAgICAgfSwKICAgICAgICBncm91cHM6IGdyb3VwcwogICAgICB9OwogICAgfQoKICAgIGZ1bmN0aW9uIHNpbXBsZShyZWdleCkgewogICAgICByZXR1cm4gewogICAgICAgIHJlZ2V4OiByZWdleCwKICAgICAgICBkZXNlcjogZnVuY3Rpb24gZGVzZXIoX3JlZjQpIHsKICAgICAgICAgIHZhciBzID0gX3JlZjRbMF07CiAgICAgICAgICByZXR1cm4gczsKICAgICAgICB9CiAgICAgIH07CiAgICB9CgogICAgZnVuY3Rpb24gZXNjYXBlVG9rZW4odmFsdWUpIHsKICAgICAgcmV0dXJuIHZhbHVlLnJlcGxhY2UoL1tcLVxbXF17fSgpKis/LixcXFxeJHwjXHNdL2csICJcXCQmIik7CiAgICB9CgogICAgZnVuY3Rpb24gdW5pdEZvclRva2VuKHRva2VuLCBsb2MpIHsKICAgICAgdmFyIG9uZSA9IGRpZ2l0UmVnZXgobG9jKSwKICAgICAgICAgIHR3byA9IGRpZ2l0UmVnZXgobG9jLCAiezJ9IiksCiAgICAgICAgICB0aHJlZSA9IGRpZ2l0UmVnZXgobG9jLCAiezN9IiksCiAgICAgICAgICBmb3VyID0gZGlnaXRSZWdleChsb2MsICJ7NH0iKSwKICAgICAgICAgIHNpeCA9IGRpZ2l0UmVnZXgobG9jLCAiezZ9IiksCiAgICAgICAgICBvbmVPclR3byA9IGRpZ2l0UmVnZXgobG9jLCAiezEsMn0iKSwKICAgICAgICAgIG9uZVRvVGhyZWUgPSBkaWdpdFJlZ2V4KGxvYywgInsxLDN9IiksCiAgICAgICAgICBvbmVUb1NpeCA9IGRpZ2l0UmVnZXgobG9jLCAiezEsNn0iKSwKICAgICAgICAgIG9uZVRvTmluZSA9IGRpZ2l0UmVnZXgobG9jLCAiezEsOX0iKSwKICAgICAgICAgIHR3b1RvRm91ciA9IGRpZ2l0UmVnZXgobG9jLCAiezIsNH0iKSwKICAgICAgICAgIGZvdXJUb1NpeCA9IGRpZ2l0UmVnZXgobG9jLCAiezQsNn0iKSwKICAgICAgICAgIGxpdGVyYWwgPSBmdW5jdGlvbiBsaXRlcmFsKHQpIHsKICAgICAgICByZXR1cm4gewogICAgICAgICAgcmVnZXg6IFJlZ0V4cChlc2NhcGVUb2tlbih0LnZhbCkpLAogICAgICAgICAgZGVzZXI6IGZ1bmN0aW9uIGRlc2VyKF9yZWY1KSB7CiAgICAgICAgICAgIHZhciBzID0gX3JlZjVbMF07CiAgICAgICAgICAgIHJldHVybiBzOwogICAgICAgICAgfSwKICAgICAgICAgIGxpdGVyYWw6IHRydWUKICAgICAgICB9OwogICAgICB9LAogICAgICAgICAgdW5pdGF0ZSA9IGZ1bmN0aW9uIHVuaXRhdGUodCkgewogICAgICAgIGlmICh0b2tlbi5saXRlcmFsKSB7CiAgICAgICAgICByZXR1cm4gbGl0ZXJhbCh0KTsKICAgICAgICB9CgogICAgICAgIHN3aXRjaCAodC52YWwpIHsKICAgICAgICAgIC8vIGVyYQogICAgICAgICAgY2FzZSAiRyI6CiAgICAgICAgICAgIHJldHVybiBvbmVPZihsb2MuZXJhcygic2hvcnQiLCBmYWxzZSksIDApOwoKICAgICAgICAgIGNhc2UgIkdHIjoKICAgICAgICAgICAgcmV0dXJuIG9uZU9mKGxvYy5lcmFzKCJsb25nIiwgZmFsc2UpLCAwKTsKICAgICAgICAgIC8vIHllYXJzCgogICAgICAgICAgY2FzZSAieSI6CiAgICAgICAgICAgIHJldHVybiBpbnRVbml0KG9uZVRvU2l4KTsKCiAgICAgICAgICBjYXNlICJ5eSI6CiAgICAgICAgICAgIHJldHVybiBpbnRVbml0KHR3b1RvRm91ciwgdW50cnVuY2F0ZVllYXIpOwoKICAgICAgICAgIGNhc2UgInl5eXkiOgogICAgICAgICAgICByZXR1cm4gaW50VW5pdChmb3VyKTsKCiAgICAgICAgICBjYXNlICJ5eXl5eSI6CiAgICAgICAgICAgIHJldHVybiBpbnRVbml0KGZvdXJUb1NpeCk7CgogICAgICAgICAgY2FzZSAieXl5eXl5IjoKICAgICAgICAgICAgcmV0dXJuIGludFVuaXQoc2l4KTsKICAgICAgICAgIC8vIG1vbnRocwoKICAgICAgICAgIGNhc2UgIk0iOgogICAgICAgICAgICByZXR1cm4gaW50VW5pdChvbmVPclR3byk7CgogICAgICAgICAgY2FzZSAiTU0iOgogICAgICAgICAgICByZXR1cm4gaW50VW5pdCh0d28pOwoKICAgICAgICAgIGNhc2UgIk1NTSI6CiAgICAgICAgICAgIHJldHVybiBvbmVPZihsb2MubW9udGhzKCJzaG9ydCIsIHRydWUsIGZhbHNlKSwgMSk7CgogICAgICAgICAgY2FzZSAiTU1NTSI6CiAgICAgICAgICAgIHJldHVybiBvbmVPZihsb2MubW9udGhzKCJsb25nIiwgdHJ1ZSwgZmFsc2UpLCAxKTsKCiAgICAgICAgICBjYXNlICJMIjoKICAgICAgICAgICAgcmV0dXJuIGludFVuaXQob25lT3JUd28pOwoKICAgICAgICAgIGNhc2UgIkxMIjoKICAgICAgICAgICAgcmV0dXJuIGludFVuaXQodHdvKTsKCiAgICAgICAgICBjYXNlICJMTEwiOgogICAgICAgICAgICByZXR1cm4gb25lT2YobG9jLm1vbnRocygic2hvcnQiLCBmYWxzZSwgZmFsc2UpLCAxKTsKCiAgICAgICAgICBjYXNlICJMTExMIjoKICAgICAgICAgICAgcmV0dXJuIG9uZU9mKGxvYy5tb250aHMoImxvbmciLCBmYWxzZSwgZmFsc2UpLCAxKTsKICAgICAgICAgIC8vIGRhdGVzCgogICAgICAgICAgY2FzZSAiZCI6CiAgICAgICAgICAgIHJldHVybiBpbnRVbml0KG9uZU9yVHdvKTsKCiAgICAgICAgICBjYXNlICJkZCI6CiAgICAgICAgICAgIHJldHVybiBpbnRVbml0KHR3byk7CiAgICAgICAgICAvLyBvcmRpbmFscwoKICAgICAgICAgIGNhc2UgIm8iOgogICAgICAgICAgICByZXR1cm4gaW50VW5pdChvbmVUb1RocmVlKTsKCiAgICAgICAgICBjYXNlICJvb28iOgogICAgICAgICAgICByZXR1cm4gaW50VW5pdCh0aHJlZSk7CiAgICAgICAgICAvLyB0aW1lCgogICAgICAgICAgY2FzZSAiSEgiOgogICAgICAgICAgICByZXR1cm4gaW50VW5pdCh0d28pOwoKICAgICAgICAgIGNhc2UgIkgiOgogICAgICAgICAgICByZXR1cm4gaW50VW5pdChvbmVPclR3byk7CgogICAgICAgICAgY2FzZSAiaGgiOgogICAgICAgICAgICByZXR1cm4gaW50VW5pdCh0d28pOwoKICAgICAgICAgIGNhc2UgImgiOgogICAgICAgICAgICByZXR1cm4gaW50VW5pdChvbmVPclR3byk7CgogICAgICAgICAgY2FzZSAibW0iOgogICAgICAgICAgICByZXR1cm4gaW50VW5pdCh0d28pOwoKICAgICAgICAgIGNhc2UgIm0iOgogICAgICAgICAgICByZXR1cm4gaW50VW5pdChvbmVPclR3byk7CgogICAgICAgICAgY2FzZSAicSI6CiAgICAgICAgICAgIHJldHVybiBpbnRVbml0KG9uZU9yVHdvKTsKCiAgICAgICAgICBjYXNlICJxcSI6CiAgICAgICAgICAgIHJldHVybiBpbnRVbml0KHR3byk7CgogICAgICAgICAgY2FzZSAicyI6CiAgICAgICAgICAgIHJldHVybiBpbnRVbml0KG9uZU9yVHdvKTsKCiAgICAgICAgICBjYXNlICJzcyI6CiAgICAgICAgICAgIHJldHVybiBpbnRVbml0KHR3byk7CgogICAgICAgICAgY2FzZSAiUyI6CiAgICAgICAgICAgIHJldHVybiBpbnRVbml0KG9uZVRvVGhyZWUpOwoKICAgICAgICAgIGNhc2UgIlNTUyI6CiAgICAgICAgICAgIHJldHVybiBpbnRVbml0KHRocmVlKTsKCiAgICAgICAgICBjYXNlICJ1IjoKICAgICAgICAgICAgcmV0dXJuIHNpbXBsZShvbmVUb05pbmUpOwogICAgICAgICAgLy8gbWVyaWRpZW0KCiAgICAgICAgICBjYXNlICJhIjoKICAgICAgICAgICAgcmV0dXJuIG9uZU9mKGxvYy5tZXJpZGllbXMoKSwgMCk7CiAgICAgICAgICAvLyB3ZWVrWWVhciAoaykKCiAgICAgICAgICBjYXNlICJra2trIjoKICAgICAgICAgICAgcmV0dXJuIGludFVuaXQoZm91cik7CgogICAgICAgICAgY2FzZSAia2siOgogICAgICAgICAgICByZXR1cm4gaW50VW5pdCh0d29Ub0ZvdXIsIHVudHJ1bmNhdGVZZWFyKTsKICAgICAgICAgIC8vIHdlZWtOdW1iZXIgKFcpCgogICAgICAgICAgY2FzZSAiVyI6CiAgICAgICAgICAgIHJldHVybiBpbnRVbml0KG9uZU9yVHdvKTsKCiAgICAgICAgICBjYXNlICJXVyI6CiAgICAgICAgICAgIHJldHVybiBpbnRVbml0KHR3byk7CiAgICAgICAgICAvLyB3ZWVrZGF5cwoKICAgICAgICAgIGNhc2UgIkUiOgogICAgICAgICAgY2FzZSAiYyI6CiAgICAgICAgICAgIHJldHVybiBpbnRVbml0KG9uZSk7CgogICAgICAgICAgY2FzZSAiRUVFIjoKICAgICAgICAgICAgcmV0dXJuIG9uZU9mKGxvYy53ZWVrZGF5cygic2hvcnQiLCBmYWxzZSwgZmFsc2UpLCAxKTsKCiAgICAgICAgICBjYXNlICJFRUVFIjoKICAgICAgICAgICAgcmV0dXJuIG9uZU9mKGxvYy53ZWVrZGF5cygibG9uZyIsIGZhbHNlLCBmYWxzZSksIDEpOwoKICAgICAgICAgIGNhc2UgImNjYyI6CiAgICAgICAgICAgIHJldHVybiBvbmVPZihsb2Mud2Vla2RheXMoInNob3J0IiwgdHJ1ZSwgZmFsc2UpLCAxKTsKCiAgICAgICAgICBjYXNlICJjY2NjIjoKICAgICAgICAgICAgcmV0dXJuIG9uZU9mKGxvYy53ZWVrZGF5cygibG9uZyIsIHRydWUsIGZhbHNlKSwgMSk7CiAgICAgICAgICAvLyBvZmZzZXQvem9uZQoKICAgICAgICAgIGNhc2UgIloiOgogICAgICAgICAgY2FzZSAiWloiOgogICAgICAgICAgICByZXR1cm4gb2Zmc2V0KG5ldyBSZWdFeHAoIihbKy1dIiArIG9uZU9yVHdvLnNvdXJjZSArICIpKD86OigiICsgdHdvLnNvdXJjZSArICIpKT8iKSwgMik7CgogICAgICAgICAgY2FzZSAiWlpaIjoKICAgICAgICAgICAgcmV0dXJuIG9mZnNldChuZXcgUmVnRXhwKCIoWystXSIgKyBvbmVPclR3by5zb3VyY2UgKyAiKSgiICsgdHdvLnNvdXJjZSArICIpPyIpLCAyKTsKICAgICAgICAgIC8vIHdlIGRvbid0IHN1cHBvcnQgWlpaWiAoUFNUKSBvciBaWlpaWiAoUGFjaWZpYyBTdGFuZGFyZCBUaW1lKSBpbiBwYXJzaW5nCiAgICAgICAgICAvLyBiZWNhdXNlIHdlIGRvbid0IGhhdmUgYW55IHdheSB0byBmaWd1cmUgb3V0IHdoYXQgdGhleSBhcmUKCiAgICAgICAgICBjYXNlICJ6IjoKICAgICAgICAgICAgcmV0dXJuIHNpbXBsZSgvW2Etel8rLS9dezEsMjU2fT8vaSk7CgogICAgICAgICAgZGVmYXVsdDoKICAgICAgICAgICAgcmV0dXJuIGxpdGVyYWwodCk7CiAgICAgICAgfQogICAgICB9OwoKICAgICAgdmFyIHVuaXQgPSB1bml0YXRlKHRva2VuKSB8fCB7CiAgICAgICAgaW52YWxpZFJlYXNvbjogTUlTU0lOR19GVFAKICAgICAgfTsKICAgICAgdW5pdC50b2tlbiA9IHRva2VuOwogICAgICByZXR1cm4gdW5pdDsKICAgIH0KCiAgICB2YXIgcGFydFR5cGVTdHlsZVRvVG9rZW5WYWwgPSB7CiAgICAgIHllYXI6IHsKICAgICAgICAiMi1kaWdpdCI6ICJ5eSIsCiAgICAgICAgbnVtZXJpYzogInl5eXl5IgogICAgICB9LAogICAgICBtb250aDogewogICAgICAgIG51bWVyaWM6ICJNIiwKICAgICAgICAiMi1kaWdpdCI6ICJNTSIsCiAgICAgICAgc2hvcnQ6ICJNTU0iLAogICAgICAgIGxvbmc6ICJNTU1NIgogICAgICB9LAogICAgICBkYXk6IHsKICAgICAgICBudW1lcmljOiAiZCIsCiAgICAgICAgIjItZGlnaXQiOiAiZGQiCiAgICAgIH0sCiAgICAgIHdlZWtkYXk6IHsKICAgICAgICBzaG9ydDogIkVFRSIsCiAgICAgICAgbG9uZzogIkVFRUUiCiAgICAgIH0sCiAgICAgIGRheXBlcmlvZDogImEiLAogICAgICBkYXlQZXJpb2Q6ICJhIiwKICAgICAgaG91cjogewogICAgICAgIG51bWVyaWM6ICJoIiwKICAgICAgICAiMi1kaWdpdCI6ICJoaCIKICAgICAgfSwKICAgICAgbWludXRlOiB7CiAgICAgICAgbnVtZXJpYzogIm0iLAogICAgICAgICIyLWRpZ2l0IjogIm1tIgogICAgICB9LAogICAgICBzZWNvbmQ6IHsKICAgICAgICBudW1lcmljOiAicyIsCiAgICAgICAgIjItZGlnaXQiOiAic3MiCiAgICAgIH0KICAgIH07CgogICAgZnVuY3Rpb24gdG9rZW5Gb3JQYXJ0KHBhcnQsIGxvY2FsZSwgZm9ybWF0T3B0cykgewogICAgICB2YXIgdHlwZSA9IHBhcnQudHlwZSwKICAgICAgICAgIHZhbHVlID0gcGFydC52YWx1ZTsKCiAgICAgIGlmICh0eXBlID09PSAibGl0ZXJhbCIpIHsKICAgICAgICByZXR1cm4gewogICAgICAgICAgbGl0ZXJhbDogdHJ1ZSwKICAgICAgICAgIHZhbDogdmFsdWUKICAgICAgICB9OwogICAgICB9CgogICAgICB2YXIgc3R5bGUgPSBmb3JtYXRPcHRzW3R5cGVdOwogICAgICB2YXIgdmFsID0gcGFydFR5cGVTdHlsZVRvVG9rZW5WYWxbdHlwZV07CgogICAgICBpZiAodHlwZW9mIHZhbCA9PT0gIm9iamVjdCIpIHsKICAgICAgICB2YWwgPSB2YWxbc3R5bGVdOwogICAgICB9CgogICAgICBpZiAodmFsKSB7CiAgICAgICAgcmV0dXJuIHsKICAgICAgICAgIGxpdGVyYWw6IGZhbHNlLAogICAgICAgICAgdmFsOiB2YWwKICAgICAgICB9OwogICAgICB9CgogICAgICByZXR1cm4gdW5kZWZpbmVkOwogICAgfQoKICAgIGZ1bmN0aW9uIGJ1aWxkUmVnZXgodW5pdHMpIHsKICAgICAgdmFyIHJlID0gdW5pdHMubWFwKGZ1bmN0aW9uICh1KSB7CiAgICAgICAgcmV0dXJuIHUucmVnZXg7CiAgICAgIH0pLnJlZHVjZShmdW5jdGlvbiAoZiwgcikgewogICAgICAgIHJldHVybiBmICsgIigiICsgci5zb3VyY2UgKyAiKSI7CiAgICAgIH0sICIiKTsKICAgICAgcmV0dXJuIFsiXiIgKyByZSArICIkIiwgdW5pdHNdOwogICAgfQoKICAgIGZ1bmN0aW9uIG1hdGNoKGlucHV0LCByZWdleCwgaGFuZGxlcnMpIHsKICAgICAgdmFyIG1hdGNoZXMgPSBpbnB1dC5tYXRjaChyZWdleCk7CgogICAgICBpZiAobWF0Y2hlcykgewogICAgICAgIHZhciBhbGwgPSB7fTsKICAgICAgICB2YXIgbWF0Y2hJbmRleCA9IDE7CgogICAgICAgIGZvciAodmFyIGkgaW4gaGFuZGxlcnMpIHsKICAgICAgICAgIGlmIChoYXNPd25Qcm9wZXJ0eShoYW5kbGVycywgaSkpIHsKICAgICAgICAgICAgdmFyIGggPSBoYW5kbGVyc1tpXSwKICAgICAgICAgICAgICAgIGdyb3VwcyA9IGguZ3JvdXBzID8gaC5ncm91cHMgKyAxIDogMTsKCiAgICAgICAgICAgIGlmICghaC5saXRlcmFsICYmIGgudG9rZW4pIHsKICAgICAgICAgICAgICBhbGxbaC50b2tlbi52YWxbMF1dID0gaC5kZXNlcihtYXRjaGVzLnNsaWNlKG1hdGNoSW5kZXgsIG1hdGNoSW5kZXggKyBncm91cHMpKTsKICAgICAgICAgICAgfQoKICAgICAgICAgICAgbWF0Y2hJbmRleCArPSBncm91cHM7CiAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICByZXR1cm4gW21hdGNoZXMsIGFsbF07CiAgICAgIH0gZWxzZSB7CiAgICAgICAgcmV0dXJuIFttYXRjaGVzLCB7fV07CiAgICAgIH0KICAgIH0KCiAgICBmdW5jdGlvbiBkYXRlVGltZUZyb21NYXRjaGVzKG1hdGNoZXMpIHsKICAgICAgdmFyIHRvRmllbGQgPSBmdW5jdGlvbiB0b0ZpZWxkKHRva2VuKSB7CiAgICAgICAgc3dpdGNoICh0b2tlbikgewogICAgICAgICAgY2FzZSAiUyI6CiAgICAgICAgICAgIHJldHVybiAibWlsbGlzZWNvbmQiOwoKICAgICAgICAgIGNhc2UgInMiOgogICAgICAgICAgICByZXR1cm4gInNlY29uZCI7CgogICAgICAgICAgY2FzZSAibSI6CiAgICAgICAgICAgIHJldHVybiAibWludXRlIjsKCiAgICAgICAgICBjYXNlICJoIjoKICAgICAgICAgIGNhc2UgIkgiOgogICAgICAgICAgICByZXR1cm4gImhvdXIiOwoKICAgICAgICAgIGNhc2UgImQiOgogICAgICAgICAgICByZXR1cm4gImRheSI7CgogICAgICAgICAgY2FzZSAibyI6CiAgICAgICAgICAgIHJldHVybiAib3JkaW5hbCI7CgogICAgICAgICAgY2FzZSAiTCI6CiAgICAgICAgICBjYXNlICJNIjoKICAgICAgICAgICAgcmV0dXJuICJtb250aCI7CgogICAgICAgICAgY2FzZSAieSI6CiAgICAgICAgICAgIHJldHVybiAieWVhciI7CgogICAgICAgICAgY2FzZSAiRSI6CiAgICAgICAgICBjYXNlICJjIjoKICAgICAgICAgICAgcmV0dXJuICJ3ZWVrZGF5IjsKCiAgICAgICAgICBjYXNlICJXIjoKICAgICAgICAgICAgcmV0dXJuICJ3ZWVrTnVtYmVyIjsKCiAgICAgICAgICBjYXNlICJrIjoKICAgICAgICAgICAgcmV0dXJuICJ3ZWVrWWVhciI7CgogICAgICAgICAgY2FzZSAicSI6CiAgICAgICAgICAgIHJldHVybiAicXVhcnRlciI7CgogICAgICAgICAgZGVmYXVsdDoKICAgICAgICAgICAgcmV0dXJuIG51bGw7CiAgICAgICAgfQogICAgICB9OwoKICAgICAgdmFyIHpvbmU7CgogICAgICBpZiAoIWlzVW5kZWZpbmVkKG1hdGNoZXMuWikpIHsKICAgICAgICB6b25lID0gbmV3IEZpeGVkT2Zmc2V0Wm9uZShtYXRjaGVzLlopOwogICAgICB9IGVsc2UgaWYgKCFpc1VuZGVmaW5lZChtYXRjaGVzLnopKSB7CiAgICAgICAgem9uZSA9IElBTkFab25lLmNyZWF0ZShtYXRjaGVzLnopOwogICAgICB9IGVsc2UgewogICAgICAgIHpvbmUgPSBudWxsOwogICAgICB9CgogICAgICBpZiAoIWlzVW5kZWZpbmVkKG1hdGNoZXMucSkpIHsKICAgICAgICBtYXRjaGVzLk0gPSAobWF0Y2hlcy5xIC0gMSkgKiAzICsgMTsKICAgICAgfQoKICAgICAgaWYgKCFpc1VuZGVmaW5lZChtYXRjaGVzLmgpKSB7CiAgICAgICAgaWYgKG1hdGNoZXMuaCA8IDEyICYmIG1hdGNoZXMuYSA9PT0gMSkgewogICAgICAgICAgbWF0Y2hlcy5oICs9IDEyOwogICAgICAgIH0gZWxzZSBpZiAobWF0Y2hlcy5oID09PSAxMiAmJiBtYXRjaGVzLmEgPT09IDApIHsKICAgICAgICAgIG1hdGNoZXMuaCA9IDA7CiAgICAgICAgfQogICAgICB9CgogICAgICBpZiAobWF0Y2hlcy5HID09PSAwICYmIG1hdGNoZXMueSkgewogICAgICAgIG1hdGNoZXMueSA9IC1tYXRjaGVzLnk7CiAgICAgIH0KCiAgICAgIGlmICghaXNVbmRlZmluZWQobWF0Y2hlcy51KSkgewogICAgICAgIG1hdGNoZXMuUyA9IHBhcnNlTWlsbGlzKG1hdGNoZXMudSk7CiAgICAgIH0KCiAgICAgIHZhciB2YWxzID0gT2JqZWN0LmtleXMobWF0Y2hlcykucmVkdWNlKGZ1bmN0aW9uIChyLCBrKSB7CiAgICAgICAgdmFyIGYgPSB0b0ZpZWxkKGspOwoKICAgICAgICBpZiAoZikgewogICAgICAgICAgcltmXSA9IG1hdGNoZXNba107CiAgICAgICAgfQoKICAgICAgICByZXR1cm4gcjsKICAgICAgfSwge30pOwogICAgICByZXR1cm4gW3ZhbHMsIHpvbmVdOwogICAgfQoKICAgIHZhciBkdW1teURhdGVUaW1lQ2FjaGUgPSBudWxsOwoKICAgIGZ1bmN0aW9uIGdldER1b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ogICAgZnVuY3Rpb24gdW5jb21wdXRlT3JkaW5hbCh5ZWFyLCBvcmRpbmFsKSB7CiAgICAgIHZhciB0YWJsZSA9IGlzTGVhcFllYXIoeWVhcikgPyBsZWFwTGFkZGVyIDogbm9uTGVhcExhZGRlciwKICAgICAgICAgIG1vbnRoMCA9IHRhYmxlLmZpbmRJbmRleChmdW5jdGlvbiAoaSkgewogICAgICAgIHJldHVybiBpIDwgb3JkaW5hbDsKICAgICAgfSksCiAgICAgICAgICBkYXkgPSBvcmRpbmFsIC0gdGFibGVbbW9udGgwXTsKICAgICAgcmV0dXJuIHsKICAgICAgICBtb250aDogbW9udGgwICsgMSwKICAgICAgICBkYXk6IGRheQogICAgICB9OwogICAgfQogICAgLyoqCiAgICAgKiBAcHJpdmF0ZQogICAgICovCgoKICAgIGZ1bmN0aW9uIGdyZWdvcmlhblRvV2VlayhncmVnT2JqKSB7CiAgICAgIHZhciB5ZWFyID0gZ3JlZ09iai55ZWFyLAogICAgICAgICAgbW9udGggPSBncmVnT2JqLm1vbnRoLAogICAgICAgICAgZGF5ID0gZ3JlZ09iai5kYXksCiAgICAgICAgICBvcmRpbmFsID0gY29tcHV0ZU9yZGluYWwoeWVhciwgbW9udGgsIGRheSksCiAgICAgICAgICB3ZWVrZGF5ID0gZGF5T2ZXZWVrKHllYXIsIG1vbnRoLCBkYXkpOwogICAgICB2YXIgd2Vla051bWJlciA9IE1hdGguZmxvb3IoKG9yZGluYWwgLSB3ZWVrZGF5ICsgMTApIC8gNyksCiAgICAgICAgICB3ZWVrWWVhcjsKCiAgICAgIGlmICh3ZWVrTnVtYmVyIDwgMSkgewogICAgICAgIHdlZWtZZWFyID0geWVhciAtIDE7CiAgICAgICAgd2Vla051bWJlciA9IHdlZWtzSW5XZWVrWWVhcih3ZWVrWWVhcik7CiAgICAgIH0gZWxzZSBpZiAod2Vla051bWJlciA+IHdlZWtzSW5XZWVrWWVhcih5ZWFyKSkgewogICAgICAgIHdlZWtZZWFyID0geWVhciArIDE7CiAgICAgICAgd2Vla051bWJlciA9IDE7CiAgICAgIH0gZWxzZSB7CiAgICAgICAgd2Vla1llYXIgPSB5ZWFyOwogICAgICB9CgogICAgICByZXR1cm4gX2V4dGVuZHMoewogICAgICAgIHdlZWtZZWFyOiB3ZWVrWWVhciwKICAgICAgICB3ZWVrTnVtYmVyOiB3ZWVrTnVtYmVyLAogICAgICAgIHdlZWtkYXk6IHdlZWtkYXkKICAgICAgfSwgdGltZU9iamVjdChncmVnT2JqKSk7CiAgICB9CiAgICBmdW5jdGlvbiB3ZWVrVG9HcmVnb3JpYW4od2Vla0RhdGEpIHsKICAgICAgdmFyIHdlZWtZZWFyID0gd2Vla0RhdGEud2Vla1llYXIsCiAgICAgICAgICB3ZWVrTnVtYmVyID0gd2Vla0RhdGEud2Vla051bWJlciwKICAgICAgICAgIHdlZWtkYXkgPSB3ZWVrRGF0YS53ZWVrZGF5LAogICAgICAgICAgd2Vla2RheU9mSmFuNCA9IGRheU9mV2Vlayh3ZWVrWWVhciwgMSwgNCksCiAgICAgICAgICB5ZWFySW5EYXlzID0gZGF5c0luWWVhcih3ZWVrWWVhcik7CiAgICAgIHZhciBvcmRpbmFsID0gd2Vla051bWJlciAqIDcgKyB3ZWVrZGF5IC0gd2Vla2RheU9mSmFuNCAtIDMsCiAgICAgICAgICB5ZWFyOwoKICAgICAgaWYgKG9yZGluYWwgPCAxKSB7CiAgICAgICAgeWVhciA9IHdlZWtZZWFyIC0gMTsKICAgICAgICBvcmRpbmFsICs9IGRheXNJblllYXIoeWVhcik7CiAgICAgIH0gZWxzZSBpZiAob3JkaW5hbCA+IHllYXJJbkRheXMpIHsKICAgICAgICB5ZWFyID0gd2Vla1llYXIgKyAxOwogICAgICAgIG9yZGluYWwgLT0gZGF5c0luWWVhcih3ZWVrWWVhcik7CiAgICAgIH0gZWxzZSB7CiAgICAgICAgeWVhciA9IHdlZWtZZWFyOwogICAgICB9CgogICAgICB2YXIgX3VuY29tcHV0ZU9yZGluYWwgPSB1bmNvbXB1dGVPcmRpbmFsKHllYXIsIG9yZGluYWwpLAogICAgICAgICAgbW9udGggPSBfdW5jb21wdXRlT3JkaW5hbC5tb250aCwKICAgICAgICAgIGRheSA9IF91bmNvbXB1dGVPcmRpbmFsLmRheTsKCiAgICAgIHJldHVybiBfZXh0ZW5kcyh7CiAgICAgICAgeWVhcjogeWVhciwKICAgICAgICBtb250aDogbW9udGgsCiAgICAgICAgZGF5OiBkYXkKICAgICAgfSwgdGltZU9iamVjdCh3ZWVrRGF0YSkpOwogICAgfQogICAgZnVuY3Rpb24gZ3JlZ29yaWFuVG9PcmRpbmFsKGdyZWdEYXRhKSB7CiAgICAgIHZhciB5ZWFyID0gZ3JlZ0RhdGEueWVhciwKICAgICAgICAgIG1vbnRoID0gZ3JlZ0RhdGEubW9udGgsCiAgICAgICAgICBkYXkgPSBncmVnRGF0YS5kYXk7CiAgICAgIHZhciBvcmRpbmFsID0gY29tcHV0ZU9yZGluYWwoeWVhciwgbW9udGgsIGRheSk7CiAgICAgIHJldHVybiBfZXh0ZW5kcyh7CiAgICAgICAgeWVhcjogeWVhciwKICAgICAgICBvcmRpbmFsOiBvcmRpbmFsCiAgICAgIH0sIHRpbWVPYmplY3QoZ3JlZ0RhdGEpKTsKICAgIH0KICAgIGZ1bmN0aW9uIG9yZGluYWxUb0dyZWdvcmlhbihvcmRpbmFsRGF0YSkgewogICAgICB2YXIgeWVhciA9IG9yZGluYWxEYXRhLnllYXIsCiAgICAgICAgICBvcmRpbmFsID0gb3JkaW5hbERhdGEub3JkaW5hbDsKCiAgICAgIHZhciBfdW5jb21wdXRlT3JkaW5hbDIgPSB1bmNvbXB1dGVPcmRpbmFsKHllYXIsIG9yZGluYWwpLAogICAgICAgICAgbW9udGggPSBfdW5jb21wdXRlT3JkaW5hbDIubW9udGgsCiAgICAgICAgICBkYXkgPSBfdW5jb21wdXRlT3JkaW5hbDIuZGF5OwoKICAgICAgcmV0dXJuIF9leHRlbmRzKHsKICAgICAgICB5ZWFyOiB5ZWFyLAogICAgICAgIG1vbnRoOiBtb250aCwKICAgICAgICBkYXk6IGRheQogICAgICB9LCB0aW1lT2JqZWN0KG9yZGluYWxEYXRhKSk7CiAgICB9CiAgICBmdW5jdGlvbiBoYXNJbnZhbGlkV2Vla0RhdGEob2JqKSB7CiAgICAgIHZhciB2YWxpZFllYXIgPSBpc0ludGVnZXIob2JqLndlZWtZZWFyKSwKICAgICAgICAgIHZhbGlkV2VlayA9IGludGVnZXJCZXR3ZWVuKG9iai53ZWVrTnVtYmVyLCAxLCB3ZWVrc0luV2Vla1llYXIob2JqLndlZWtZZWFyKSksCiAgICAgICAgICB2YWxpZFdlZWtkYXkgPSBpbnRlZ2VyQmV0d2VlbihvYmoud2Vla2RheSwgMSwgNyk7CgogICAgICBpZiAoIXZhbGlkWWVhcikgewogICAgICAgIHJldHVybiB1bml0T3V0T2ZSYW5nZSgid2Vla1llYXIiLCBvYmoud2Vla1llYXIpOwogICAgICB9IGVsc2UgaWYgKCF2YWxpZFdlZWspIHsKICAgICAgICByZXR1cm4gdW5pdE91dE9mUmFuZ2UoIndlZWsiLCBvYmoud2Vlayk7CiAgICAgIH0gZWxzZSBpZiAoIXZhbGlkV2Vla2RheSkgewogICAgICAgIHJldHVybiB1bml0T3V0T2ZSYW5nZSgid2Vla2RheSIsIG9iai53ZWVrZGF5KTsKICAgICAgfSBlbHNlIHJldHVybiBmYWxzZTsKICAgIH0KICAgIGZ1bmN0aW9uIGhhc0ludmFsaWRPcmRpbmFsRGF0YShvYmopIHsKICAgICAgdmFyIHZhbGlkWWVhciA9IGlzSW50ZWdlcihvYmoueWVhciksCiAgICAgICAgICB2YWxpZE9yZGluYWwgPSBpbnRlZ2VyQmV0d2VlbihvYmoub3JkaW5hbCwgMSwgZGF5c0luWWVhcihvYmoueWVhcikpOwoKICAgICAgaWYgKCF2YWxpZFllYXIpIHsKICAgICAgICByZXR1cm4gdW5pdE91dE9mUmFuZ2UoInllYXIiLCBvYmoueWVhcik7CiAgICAgIH0gZWxzZSBpZiAoIXZhbGlkT3JkaW5hbCkgewogICAgICAgIHJldHVybiB1bml0T3V0T2ZSYW5nZSgib3JkaW5hbCIsIG9iai5vcmRpbmFsKTsKICAgICAgfSBlbHNlIHJldHVybiBmYWxzZTsKICAgIH0KICAgIGZ1bmN0aW9uIGhhc0ludmFsaWRHcmVnb3JpYW5EYXRhKG9iaikgewogICAgICB2YXIgdmFsaWRZZWFyID0gaXNJbnRlZ2VyKG9iai55ZWFyKSwKICAgICAgICAgIHZhbGlkTW9udGggPSBpbnRlZ2VyQmV0d2VlbihvYmoubW9udGgsIDEsIDEyKSwKICAgICAgICAgIHZhbGlkRGF5ID0gaW50ZWdlckJldHdlZW4ob2JqLmRheSwgMSwgZGF5c0luTW9udGgob2JqLnllYXIsIG9iai5tb250aCkpOwoKICAgICAgaWYgKCF2YWxpZFllYXIpIHsKICAgICAgICByZXR1cm4gdW5pdE91dE9mUmFuZ2UoInllYXIiLCBvYmoueWVhcik7CiAgICAgIH0gZWxzZSBpZiAoIXZhbGlkTW9udGgpIHsKICAgICAgICByZXR1cm4gdW5pdE91dE9mUmFuZ2UoIm1vbnRoIiwgb2JqLm1vbnRoKTsKICAgICAgfSBlbHNlIGlmICghdmFsaWREYXkpIHsKICAgICAgICByZXR1cm4gdW5pdE91dE9mUmFuZ2UoImRheSIsIG9iai5kYXkpOwogICAgICB9IGVsc2UgcmV0dXJuIGZhbHNlOwogICAgfQogICAgZnVuY3Rpb24gaGFzSW52YWxpZFRpbWVEYXRhKG9iaikgewogICAgICB2YXIgaG91ciA9IG9iai5ob3VyLAogICAgICAgICAgbWludXRlID0gb2JqLm1pbnV0ZSwKICAgICAgICAgIHNlY29uZCA9IG9iai5zZWNvbmQsCiAgICAgICAgICBtaWxsaXNlY29uZCA9IG9iai5taWxsaXNlY29uZDsKICAgICAgdmFyIHZhbGlkSG91ciA9IGludGVnZXJCZXR3ZWVuKGhvdXIsIDAsIDIzKSB8fCBob3VyID09PSAyNCAmJ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C50cnVuYyhkdXIubW9udGhzKSArIE1hdGgudHJ1bmMoZHVyLnF1YXJ0ZXJzKSAqIDMsCiAgICAgICAgICBjID0gX2V4dGVuZHMoe30sIGluc3QuYywgewogICAgICAgIHllYXI6IHllYXIsCiAgICAgICAgbW9udGg6IG1vbnRoLAogICAgICAgIGRheTogTWF0aC5taW4oaW5zdC5jLmRheSwgZGF5c0luTW9udGgoeWVhciwgbW9udGgpKSArIE1hdGgudHJ1bmMoZHVyLmRheXMpICsgTWF0aC50cnVuYyhkdXIud2Vla3MpICogNwogICAgICB9KSwKICAgICAgICAgIG1pbGxpc1RvQWRkID0gRHVyYXRpb24uZnJvbU9iamVjdCh7CiAgICAgICAgeWVhcnM6IGR1ci55ZWFycyAtIE1hdGgudHJ1bmMoZHVyLnllYXJzKSwKICAgICAgICBxdWFydGVyczogZHVyLnF1YXJ0ZXJzIC0gTWF0aC50cnVuYyhkdXIucXVhcnRlcnMpLAogICAgICAgIG1vbnRoczogZHVyLm1vbnRocyAtIE1hdGgudHJ1bmMoZHVyLm1vbnRocyksCiAgICAgICAgd2Vla3M6IGR1ci53ZWVrcyAtIE1hdGgudHJ1bmMoZHVyLndlZWtzKSwKICAgICAgICBkYXlzOiBkdXIuZGF5cyAtIE1hdGgudHJ1bmMoZHVyLmRheXMpLAogICAgICAgIGhvdXJzOiBkdXIuaG91cnMsCiAgICAgICAgbWludXRlczogZHVyLm1pbnV0ZXMsCiAgICAgICAgc2Vjb25kczogZHVyLnNlY29uZHMsCiAgICAgICAgbWlsbGlzZWNvbmRzOiBkdXIubWlsbGlzZWNvbmRzCiAgICAgIH0pLmFzKCJtaWxsaXNlY29uZHMiKSwKICAgICAgICAgIGxvY2FsVFMgPSBvYmpUb0xvY2FsVFMoYyk7CgogICAgICB2YXIgX2ZpeE9mZnNldCA9IGZpeE9mZnNldChsb2NhbFRTLCBvUHJlLCBpbnN0LnpvbmUpLAogICAgICAgICAgdHMgPSBfZml4T2Zmc2V0WzBdLAogICAgICAgIC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ICAgfSwKICAgICAgICBkZWZhdWx0T3JkaW5hbFVuaXRWYWx1ZXMgPSB7CiAgICAgIG9yZGluYWw6IDEsCiAgICAgIGhvdXI6IDAsCiAgICAgIG1pbnV0ZTogMCwKICAgICAgc2Vjb25kOiAwLAogICAgICBtaWxsaXNlY29uZDogMAogICAgfTsgLy8gVW5pdHMgaW4gdGhlIHN1cHBvcnRlZCBjYWxlbmRhcnMsIHNvcnRlZCBieSBiaWduZXNzCgogICAgdmFyIG9yZGVyZWRVbml0cyA9IFsieWVhciIsICJtb250aCIsICJkYXkiLCAiaG91ciIsICJtaW51dGUiLCAic2Vjb25kIiwgIm1pbGxpc2Vjb25kIl0sCiAgICAgICAgb3JkZXJlZFdlZWtVbml0cyA9IFsid2Vla1llYXIiLCAid2Vla051bWJlciIsICJ3ZWVrZGF5IiwgImhvdXIiLCAibWludXRlIiwgInNlY29uZCIsICJtaWxsaXNlY29uZCJdLAogICAgICAgIG9yZGVyZWRPcmRpbmFsVW5pdHMgPSBbInllYXIiLCAib3JkaW5hbCIsICJob3VyIiwgIm1pbnV0ZSIsICJzZWNvbmQiLCAibWlsbGlzZWNvbmQiXTsgLy8gc3RhbmRhcmRpemUgY2FzZSBhbmQgcGx1cmFsaXR5IGluIHVuaXRzCgogICAgZnVuY3Rpb24gbm9ybWFsaXplVW5pdCh1bml0KSB7CiAgICAgIHZhciBub3JtYWxpemVkID0gewogICAgICAgIHllYXI6ICJ5ZWFyIiwKICAgICAgICB5ZWFyczogInllYXIiLAogICAgICAgIG1vbnRoOiAibW9udGgiLAogICAgICAgIG1vbnRoczogIm1vbnRoIiwKICAgICAgICBkYXk6ICJkYXkiLAogICAgICAgIGRheXM6ICJkYXkiLAogICAgICAgIGhvdXI6ICJob3VyIiwKICAgICAgICBob3VyczogImhvdXIiLAogICAgICAgIG1pbnV0ZTogIm1pbnV0ZSIsCiAgICAgICAgbWludXRlczogIm1pbnV0ZSIsCiAgICAgICAgcXVhcnRlcjogInF1YXJ0ZXIiL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b24sIG1ha2VzIGEgYnVuY2ggb2YgYXNzdW1wdGlvbnMgYWJvdXQgd2hhdCB1bml0cwogICAgLy8gYXJlIHByZXNlbnQsIGFuZCBzbyBvbi4KCgogICAgZnVuY3Rpb24gcXVpY2tEVChvYmosIG9wdHMpIHsKICAgICAgdmFyIHpvbmUgPSBub3JtYWxpemVab25lKG9wdHMuem9uZSwgU2V0dGluZ3MuZGVmYXVsdFpvbmUpLAogICAgICAgICAgbG9jID0gTG9jYWxlLmZyb21PYmplY3Qob3B0cyksCiAgICAgICAgICB0c05vdyA9IFNldHRpbmdzLm5vdygpOwogICAgICB2YXIgdHMsIG87IC8vIGFzc3VtZSB3ZSBoYXZlIHRoZSBoaWdoZXItb3JkZXIgdW5pdHMKCiAgICAgIGlmICghaXNVbmRlZmluZWQob2JqLnllYXIpKSB7CiAgICAgICAgZm9yICh2YXIgX2l0ZXJhdG9yID0gX2NyZWF0ZUZvck9mSXRlcmF0b3JIZWxwZXJMb29zZShvcmRlcmVkVW5pdHMpLCBfc3RlcDsgIShfc3RlcCA9IF9pdGVyYXRvcigpKS5kb25lOykgewogICAgICAgICAgdmFyIHUgPSBfc3RlcC52YWx1ZTsKCiAgICAgICAgICBpZiAoaXNVbmRlZmluZWQob2JqW3VdKSkgewogICAgICAgICAgICBvYmpbdV0gPSBkZWZhdWx0VW5pdFZhbHVlc1t1XTsKICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIHZhciBpbnZhbGlkID0gaGFzSW52YWxpZEdyZWdvcmlhbkRhdGEob2JqKSB8fCBoYXNJbnZhbGlkVGltZURhdGEob2JqKTsKCiAgICAgICAgaWYgKGludmFsaWQpIHsKICAgICAgICAgIHJldHVybiBEYXRlVGltZS5pbnZhbGlkKGludmFsaWQpOwogICAgICAgIH0KCiAgICAgICAgdmFyIG9mZnNldFByb3ZpcyA9IHpvbmUub2Zmc2V0KHRzTm93KTsKCiAgICAgICAgdmFyIF9vYmpUb1RTID0gb2JqVG9UUyhvYmosIG9mZnNldFByb3Zpcywgem9uZSk7CgogICAgICAgIHRzID0gX29ialRvVFNbMF07CiAgICAgICAgbyA9IF9vYmpUb1RTWzFdOwogICAgICB9IGVsc2UgewogICAgICAgIHRzID0gdHNOb3c7CiAgICAgIH0KCiAgICAgIHJldHVybiBuZXcgRGF0ZVRpbWUoewogICAgICAgIHRzOiB0cywKICAgICAgICB6b25lOiB6b25lLAogICAgICAgIGxvYzogbG9jLAogICAgICAgIG86IG8KICAgICAgfSk7CiAgICB9CgogICAgZnVuY3Rpb24gZGlmZlJlbGF0aXZlKHN0YXJ0LCBlbmQsIG9wdHMpIHsKICAgICAgdmFyIHJvdW5kID0gaXNVbmRlZmluZWQob3B0cy5yb3VuZCkgPyB0cnVlIDogb3B0cy5yb3VuZCwKICAgICAgICAgIGZvcm1hdCA9IGZ1bmN0aW9uIGZvcm1hdChjLCB1bml0KSB7CiAgICAgICAgYyA9IHJvdW5kVG8oYywgcm91bmQgfHwgb3B0cy5jYWxlbmRhcnkgPyAwIDogMiwgdHJ1ZSk7CiAgICAgICAgdmFyIGZvcm1hdHRlciA9IGVuZC5sb2MuY2xvbmUob3B0cykucmVsRm9ybWF0dGVyKG9wdHMpOwogICAgICAgIHJldHVybiBmb3JtYXR0ZXIuZm9ybWF0KGMsIHVuaXQpOwogICAgICB9LAogICAgICAgICAgZGlmZmVyID0gZnVuY3Rpb24gZGlmZmVyKHVuaXQpIHsKICAgICAgICBpZiAob3B0cy5jYWxlbmRhcnkpIHsKICAgICAgICAgIGlmICghZW5kLmhhc1NhbWUoc3RhcnQsIHVuaXQpKSB7CiAgICAgICAgICAgIHJldHVybiBlbmQuc3RhcnRPZih1bml0KS5kaWZmKHN0YXJ0LnN0YXJ0T2YodW5pdCksIHVuaXQpLmdldCh1bml0KTsKICAgICAgICAgIH0gZWxzZSByZXR1cm4gMDsKICAgICAgICB9IGVsc2UgewogICAgICAgICAgcmV0dXJuIGVuZC5kaWZmKHN0YXJ0LCB1bml0KS5nZXQodW5pdCk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ICAgICAgICAqLwoKICAgICAgICB0aGlzLnRzID0gaXNVbmRlZmluZWQoY29uZmlnLnRzKSA/IFNldHRpbmdzLm5vdygpIDogY29uZmlnLnRzOwogICAgICAgIHZhciBjID0gbnVsbCwKICAgICAgICAgICAgbyA9IG51bGw7CgogICAgICAgIGlmICghaW52YWxpZCkgewogICAgICAgICAgdmFyIHVuY2hhbmdlZCA9IGNvbmZpZy5vbGQgJiYgY29uZmlnLm9sZC50cyA9PT0gdGhpcy50cyAmJiBjb25maWcub2xkLnpvbmUuZXF1YWxzKHpvbmUpOwoKICAgICAgICAgIGlmICh1bmNoYW5nZWQpIHsKICAgICAgICAgICAgdmFyIF9yZWYyID0gW2NvbmZpZy5vbGQuYywgY29uZmlnLm9sZC5vXTsKICAgICAgICAgICAgYyA9IF9yZWYyWzBdOwogICAgICAgICAgICBvID0gX3JlZjJbMV07CiAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICB2YXIgb3QgPSB6b25lLm9mZnNldCh0aGlzLnRzKTsKICAgICAgICAgICAgYyA9IHRzVG9PYmoodGhpcy50cywgb3QpOwogICAgICAgICAgICBpbnZhbGlkID0gTnVtYmVyLmlzTmFOKGMueWVhcikgPyBuZXcgSW52YWxpZCgiaW52YWxpZCBpbnB1dCIpIDogbnVsbDsKICAgICAgICAgICAgYyA9IGludmFsaWQgPyBudWxsIDogYzsKICAgICAgICAgICAgbyA9IGludmFsaWQgPyBudWxsIDogb3Q7CiAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIEBhY2Nlc3MgcHJpdmF0ZQogICAgICAgICAqLwoKCiAgICAgICAgdGhpcy5fem9uZSA9IHpvbmU7CiAgICAgICAgLyoqCiAgICAgICAgICogQGFjY2VzcyBwcml2YXRlCiAgICAgICAgICovCgogICAgICAgIHRoaXMubG9jID0gY29uZmlnLmxvYyB8fCBMb2NhbGUuY3JlYXRlKCk7CiAgICAgICAgLyoqCiAgICAgICAgICogQGFjY2VzcyBwcml2YXRlCiAgICAgICAgICovCgogICAgICAgIHRoaXMuaW52YWxpZCA9IGludmFsaWQ7CiAgICAgICAgLyoqCiAgICAgICAgICogQGFjY2VzcyBwcml2YXRlCiAgICAgICAgICovCgogICAgICAgIHRoaXMud2Vla0RhdGEgPSBudWxsOwogICAgICAgIC8qKgogICAgICAgICAqIEBhY2Nlc3MgcHJpdmF0ZQogICAgICAgICAqLwoKICAgICAgICB0aGlzLmMgPSBjOwogICAgICAgIC8qKgogICAgICAgICAqIEBhY2Nlc3MgcHJpdmF0ZQogICAgICAgICAqLwoKICAgICAgICB0aGlzLm8gPSBvOwogICAgICAgIC8qKgogICAgICAgICAqIEBhY2Nlc3MgcHJpdmF0ZQogICAgICAgICAqLwoKICAgICAgICB0aGlzLmlzTHV4b25EYXRlVGltZSA9IHRydWU7CiAgICAgIH0gLy8gQ09OU1RSVUNUCgogICAgICAvKioKICAgICAgICogQ3JlYXRlIGEgRGF0ZVRpbWUgZm9yIHRoZSBjdXJyZW50IGluc3RhbnQsIGluIHRoZSBzeXN0ZW0ncyB0aW1lIHpvbmUuCiAgICAgICAqCiAgICAgICAqIFVzZSBTZXR0aW5ncyB0byBvdmVycmlkZSB0aGVzZSBkZWZhdWx0IHZhbHVlcyBpZiBuZWVkZWQuCiAgICAgICAqIEBleGFtcGxlIERhdGVUaW1lLm5vdygpLnRvSVNPKCkgLy9+PiBub3cgaW4gdGhlIElTTyBmb3JtYXQKICAgICAgICogQHJldHVybiB7RGF0ZVRpbWV9CiAgICAgICAqLwoKCiAgICAgIERhdGVUaW1lLm5vdyA9IGZ1bmN0aW9uIG5vdygpIHsKICAgICAgICByZXR1cm4gbmV3IERhdGVUaW1lKHt9KTsKICAgICAgfQogICAgICAvKioKICAgICAgICogQ3JlYXRlIGEgbG9jYWwgRGF0ZVRpbWUKICAgICAgICogQHBhcmFtIHtudW1iZXJ9IFt5ZWFyXSAtIFRoZSBjYWxlbmRhciB5ZWFyLiBJZiBvbWl0dGVkIChhcyBpbiw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xhc3RPcHRzWzBdLAogICAgICAgICAgICBhcmdzID0gX2xhc3RPcHRzWzFdLAogICAgICAgICAgICB5ZWFyID0gYXJnc1swXSwKICAgICAgICAgICAgbW9udGggPSBhcmdzWzFdLAogICAgICAgICAgICBkYXkgPSBhcmdzWzJdLAogICAgICAgICAgICBob3VyID0gYXJnc1szXSwKICAgICAgICAgICAgbWludXRlID0gYXJnc1s0XSwKICAgICAgICAgICAgc2Vjb25kID0gYXJnc1s1XSwKICAgICAgICAgICAgbWlsbGlzZWNvbmQgPSBhcmdzWzZdOwoKICAgICAgICByZXR1cm4gcXVpY2tEVCh7CiAgICAgICAgICB5ZWFyOiB5ZWFyLAogICAgICAgICAgbW9udGg6IG1vbnRoLAogICAgICAgICAgZGF5OiBkYXksCiAgICAgICAgICBob3VyOiBob3VyLAogICAgICAgICAgbWludXRlOiBtaW51dGUsCiAgICAgICAgICBzZWNvbmQ6IHNlY29uZCwKICAgICAgICAgIG1pbGxpc2Vjb25kOiBtaWxsaXNlY29uZAogICAgICAgIH0sIG9wdHMpOwogICAgICB9CiAgICAgIC8qKgogICAgICAgKiBDcmVhdGUgYSBEYXRlVGltZSBpbiBVVEMKICAgICAgICogQHBhcmFtIHtudW1iZXJ9IFt5ZWFyXSAtIFRoZSBjYWxlbmRhciB5ZWFyLiBJZiBvbWl0dGVkIChhcyBpbiwgY2FsbCBgdXRjKClgIHdpdGggbm8gYXJndW1lbnRzKSwgdGhlIGN1cnJlbnQgdGltZSB3aWxsIGJlIHVzZWQKICAgICAgICogQHBhcmFtIHtudW1iZXJ9IFttb250aD0xXSAtIFRoZSBtb250aCwgMS1pbmRleGVkCiAgICAgICAqIEBwYXJhbSB7bnVtYmVyfSBbZGF5PTFdIC0gVGhlIGRheSBvZiB0aGUgbW9udGgKICAgICAgICogQHBhcmFtIHtudW1iZXJ9IFtob3VyPTBdIC0gVGhlIGhvdXIgb2YgdGhlIGRheSwgaW4gMjQtaG91ciB0aW1lCiAgICAgICAqIEBwYXJhb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ICAgICAgICAgICAgICAgICAgIC8vfj4gMjAxNy0wMS0wMVQwMDowMDowMFoKICAgICAgICogQGV4YW1wbGUgRGF0ZVRpbWUudXRjKDIwMTcsIDMpICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy9+PiAyMDE3LTAzLTAxVDAwOjAwOjAwWgogICAgICAgKiBAZXhhbXBsZSBEYXRlVGltZS51dGMoMjAxNywgMywgMTIpICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvL34+IDIwMTctMDMtMTJUMDA6MDA6MDBaCiAgICAgICAqIEBleGFtcGxlIERhdGVUaW1lLnV0YygyMDE3LCAzLCAxMiwgNSkgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vfj4gMjAxNy0wMy0xMlQwNTowMDowMFoKICAgICAgICogQGV4YW1wbGUgRGF0ZVRpbWUudXRjKDIwMTcsIDMsIDEyLCA1LCA0NSkgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy9+PiAyMDE3LTAzLTEyVDA1OjQ1OjAwWgogICAgICAgKiBAZXhhbXBsZSBEYXRlVGltZS51dGMoMjAxNywgMywgMTIsIDUsIDQ1LCB7IGxvY2FsZTogImZyIiB9KSAgICAgICAgICAvL34+IDIwMTctMDMtMTJUMDU6NDU6MDBaIHdpdGggYSBGcmVuY2ggbG9jYWxlCiAgICAgICAqIEBleGFtcGxlIERhdGVUaW1lLnV0YygyMDE3LCAzLCAxMiwgNSwgNDUsIDEwKSAgICAgICAgICAgICAgICAgICAgICAgIC8vfj4gMjAxNy0wMy0xMlQwNTo0NToxMFoKICAgICAgICogQGV4YW1wbGUgRGF0ZVRpbWUudXRjKDIwMTcsIDMsIDEyLCA1LCA0NSwgMTAsIDc2NSwgeyBsb2NhbGU6ICJmciIgfSkgLy9+PiAyMDE3LTAzLTEyVDA1OjQ1OjEwLjc2NVogd2l0aCBhIEZyZW5jaCBsb2NhbGUKICAgICAgICogQHJldHVybiB7RGF0ZVRpbWV9CiAgICAgICAqLwogICAgICA7CgogICAgICBEYXRlVGltZS51dGMgPSBmdW5jdGlvbiB1dGMoKSB7CiAgICAgICAgdmFyIF9sYXN0T3B0czIgPSBsYXN0T3B0cyhhcmd1bWVudHMpLAogICAgICAgICAgICBvcHRzID0gX2xhc3RPcHRzMlswXSwKICAgICAgICAgICAgYXJncyA9IF9sYXN0T3B0czJbMV0sCiAgICAgICAgICAgIHllYXIgPSBhcmdzWzBdLAogICAgICAgICAgICBtb250aCA9IGFyZ3NbMV0sCiAgICAgICAgICAgIGRheSA9IGFyZ3NbMl0sCiAgICAgICAgICAgIGhvdXIgPSBhcmdzWzNdLAogICAgICAgICAgICBtaW51dGUgPSBhcmdzWzRdLAogICAgICAgICAgICBzZWNvbmQgPSBhcmdzWzVdLAogICAgICAgICAgICBtaWxsaXNlY29uZCA9IGFyZ3NbNl07CgogICAgICAgIG9wdHMuem9uZSA9IEZpeGVkT2Zmc2V0Wm9uZS51dGNJbnN0YW5jZTsKICAgICAgICByZXR1cm4gcXVpY2tEVCh7CiAgICAgICAgICB5ZWFyOiB5ZWFyLAogICAgICAgICAgbW9udGg6IG1vbnRoLAogICAgICAgICAgZGF5OiBkYXksCiAgICAgICAgICBob3VyOiBob3VyLAogICAgICAgICAgbWludXRlOiBtaW51dGUsCiAgICAgICAgICBzZWNvbmQ6IHNlY29uZCwKICAgICAgICAgIG1pbGxpc2Vjb25kOiBtaWxsaXNlY29uZAogICAgICAgIH0sIG9wdHMpOwogICAgICB9CiAgICAgIC8qKgogICAgICAgKiBDcmVhdGUgYSBEYXRlVGltZSBmcm9tIGEgSmF2YVNjcmlwdCBEYXRlIG9iamVjdC4gVXNlcyB0aGUgZGVmYXVsdCB6b25lLgogICAgICAgKiBAcGFyYW0ge0RhdGV9IGRhdGUgLSBhIEphdmFTY3JpcHQgRGF0ZSBvYmplY3QKICAgICAgICogQHBhcmFtIHtPYmplY3R9IG9wdGlvbnMgLSBjb25maWd1cmF0aW9uIG9wdGlvbnMgZm9yIHRoZSBEYXRlVGltZQogICAgICAgKiBAcGFyYW0ge3N0cmluZ3xab25lfSBbb3B0aW9ucy56b25lPSdsb2NhbCddIC0gdGhlIHpvbmUgdG8gcGxhY2UgdGhlIERhdGVUaW1lIGludG8KICAgICAgICogQHJldHVybiB7RGF0ZVRpbWV9CiAgICAgICAqLwogICAgICA7CgogICAgICBEYXRlVGltZS5mcm9tSlNEYXRlID0gZnVuY3Rpb24gZnJvbUpTRGF0ZShkYXRlLCBvcHRpb25zKSB7CiAgICAgICAgaWYgKG9wdGlvbnMgPT09IHZvaWQgMCkgewogICAgICAgICAgb3B0aW9ucyA9IHt9OwogICAgICAgIH0KCiAgICAgICAgdmFyIHRzID0gaXNEYXRlKGRhdGUpID8gZGF0ZS52YWx1ZU9mKCkgOiBOYU47CgogICAgICAgIGlmIChOdW1iZXIuaXNOYU4odHMpKSB7CiAgICAgICAgICByZXR1cm4gRGF0ZVRpbWUuaW52YWxpZCgiaW52YWxpZCBpbnB1dCIpOwogICAgICAgIH0KCiAgICAgICAgdmFyIHpvbmVUb1VzZSA9IG5vcm1hbGl6ZVpvbmUob3B0aW9ucy56b25lLCBTZXR0aW5ncy5kZWZhdWx0Wm9uZSk7CgogICAgICAgIGlmICghem9uZVRvVXNlLmlzVmFsaWQpIHsKICAgICAgICAgIHJldHVybiBEYXRlVGltZS5pbnZhbGlkKHVuc3VwcG9ydGVkWm9uZSh6b25lVG9Vc2UpKTsKICAgICAgICB9CgogICAgICAgIHJldHVybiBuZXcgRGF0ZVRpbWUoewogICAgICAgICAgdHM6IHRzLAogICAgICAgICAgem9uZTogem9uZVRvVXNlLAogICAgICAgICAgbG9jOiBMb2NhbGUuZnJvbU9iamVjdChvcHRpb25zKQogICAgICAgIH0pOwogICAgICB9CiAgICAgIC8qKgogICAgICAgKiBDcmVhdGUgYSBEYXRlVGltZSBmcm9tIGEgbnVtYmVyIG9mIG1pbGxpc2Vjb25kcyBzaW5jZSB0aGUgZXBvY2ggKG1lYW5pbmcgc2luY2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JzIwMTYtMDEtMTMnCiAgICAgICAqIEByZXR1cm4ge0RhdGVUaW1lfQogICAgICAgKi8KICAgICAgOwoKICAgICAgRGF0ZVRpbWUuZnJvbU9iamVjdCA9IGZ1bmN0aW9uIGZyb21PYmplY3Qob2JqLCBvcHRzKSB7CiAgICAgICAgaWYgKG9wdHMgPT09IHZvaWQgMCkgewogICAgICAgICAgb3B0cyA9IHt9OwogICAgICAgIH0KCiAgICAgICAgb2JqID0gb2JqIHx8IHt9OwogICAgICAgIHZhciB6b25lVG9Vc2UgPSBub3JtYWxpemVab25lKG9wdHMuem9uZSwgU2V0dGluZ3MuZGVmYXVsdFpvbmUpOwoKICAgICAgICBpZiAoIXpvbmVUb1VzZS5pc1ZhbGlkKSB7CiAgICAgICAgICByZXR1cm4gRGF0ZVRpbWUuaW52YWxpZCh1bnN1cHBvcnRlZFpvbmUoem9uZVRvVXNlKSk7CiAgICAgICAgfQoKICAgICAgICB2YXIgdHNOb3cgPSBTZXR0aW5ncy5ub3coKSwKICAgICAgICAgICAgb2Zmc2V0UHJvdmlzID0gem9uZVRvVXNlLm9mZnNldCh0c05vdyksCiAgICAgICAgICAgIG5vcm1hbGl6ZWQgPSBub3JtYWxpemVPYmplY3Qob2JqLCBub3JtYWxpemVVbml0KSwKICAgICAgICAgICAgY29udGFpbnNPcmRpbmFsID0gIWlzVW5kZWZpbmVkKG5vcm1hbGl6ZWQub3JkaW5hbCksCiAgICAgICAgICAgIGNvbnRhaW5zR3JlZ29yWWVhciA9ICFpc1VuZGVmaW5lZChub3JtYWxpemVkLnllYXIpLAogICAgICAgICAgICBjb250YWluc0dyZWdvck1EID0gIWlzVW5kZWZpbmVkKG5vcm1hbGl6ZWQubW9udGgpIHx8ICFpc1VuZGVmaW5lZChub3JtYWxpemVkLmRheSksCiAgICAgICAgICAgIGNvbnRhaW5zR3JlZ29yID0gY29udGFpbnNHcmVnb3JZZWFyIHx8IGNvbnRhaW5zR3JlZ29yTUQsCiAgICAgICAgICAgIGRl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0ge3N0cmluZ30gcmVhc29uIC0gc2ltcGxlIHN0cmluZyBvZiB3aHkgdGhpcyBEYXRlVGltZSBpcyBpbnZhbGlkLiBTaG91bGQgbm90IGNvbnRhaW4gcGFyYW1ldGVycyBvciBhbnl0aGluZyBlbHNlIGRhdGEtZGVwZW5kZW50CiAgICAgICAqIEBwYXJhbSB7c3RyaW5nfSBbZXhwbGFuYXRpb249bnVsbF0gLSBsb25nZXIgZXhwbGFuYXRpb24sIG1heSBpbmNsdWRlIHBhcmFtZXRlcnMgYW5kIG90aGVyIHVzZWZ1bCBkZWJ1Z2dpbmcgaW5mb3JtYXRpb24KICAgICAgICogQHJldHVybiB7RGF0ZVRpbWV9CiAgICAgICAqLwogICAgICA7CgogICAgICBEYXRlVGltZS5pbnZhbGlkID0gZnVuY3Rpb24gaW52YWxpZChyZWFzb24sIGV4cGxhbmF0aW9uKSB7CiAgICAgICAgaWYgKGV4cGxhbmF0aW9uID09PSB2b2lkIDApIHsKICAgICAgICAgIGV4cGxhbmF0aW9uID0gbnVsbDsKICAgICAgICB9CgogICAgICAgIGlmICghcmVhc29uKSB7CiAgICAgICAgICB0aHJvdyBuZXcgSW52YWxpZEFyZ3VtZW50RXJyb3IoIm5lZWQgdG8gc3BlY2lmeSBhIHJlYXNvbiB0aGUgRGF0ZVRpbWUgaXMgaW52YWxpZCIpOwogICAgICAgIH0KCiAgICAgICAgdmFyIGludmFsaWQgPSByZWFzb24gaW5zdGFuY2VvZiBJbnZhbGlkID8gcmVhc29uIDogbmV3IEludmFsaWQocmVhc29uLCBleHBsYW5hdGlvbik7CgogICAgICAgIGlmIChTZXR0aW5ncy50aHJvd09uSW52YWxpZCkgewogICAgICAgICAgdGhyb3cgbmV3IEludmFsaWREYXRlVGltZUVycm9yKGludmFsaWQpOwogICAgICAgIH0gZWxzZSB7CiAgICAgICAgICByZXR1cm4gbmV3IERhdGVUaW1lKHsKICAgICAgICAgICAgaW52YWxpZDogaW52YWxpZAogICAgICAgICAgfSk7CiAgICAgICAgfQogICAgICB9CiAgICAgIC8qKgogICAgICAgKiBDaGVjayBpZiBhbiBvYmplY3QgaXMgYSBEYXRlVGltZS4gV29ya3MgYWNyb3NzIGNvbnRleHQgYm91bmRhcmllcwogICAgICAgKiBAcGFyYW0ge29iamVjdH0gbwogICAgICAgKiBAcmV0dXJuIHtib29sZWFufQogICAgICAgKi8KICAgICAgOwoKICAgICAgRGF0ZVRpbWUuaXNEYXRlVGltZSA9IGZ1bmN0aW9uIGlzRGF0ZVRpbWUobykgewogICAgICAgIHJldHVybiBvICYmIG8uaXNMdXhvbkRhdGVUaW1lIHx8IGZhbHNlOwogICAgICB9IC8vIElORk8KCiAgICAgIC8qKgogICAgICAgKiBHZXQgdGhlIHZhbHVlIG9mIHVuaXQuCiAgICAgICAqIEBwYXJhbSB7c3RyaW5nfSB1bml0IC0gYSB1bml0IHN1Y2ggYXMgJ21pbnV0ZScgb3IgJ2RheScKICAgICAgICogQGV4YW1wbGUgRGF0ZVRpbWUubG9jYWwoMjAxNywgNywgNCkuZ2V0KCdtb250aCcpOyAvLz0+IDcKICAgICAgICogQGV4YW1wbGUgRGF0ZVRpbWUubG9jYWwoMjAxNywgNywgNCkuZ2V0KCdkYXknKTsgLy89PiA0CiAgICAgICAqIEByZXR1cm4ge251bWJlcn0KICAgICAgICovCiAgICAgIDsKCiAgICAgIHZhciBfcHJvdG8gPSBEYXRlVGltZS5wcm90b3R5cGU7CgogICAgICBfcHJvdG8uZ2V0ID0gZnVuY3Rpb24gZ2V0KHVuaXQpIHsKICAgICAgICByZXR1cm4gdGhpc1t1bml0XTsKICAgICAgfQogICAgICAvKioKICAgICAgICogUmV0dXJucyB3aGV0aGVyIHRoZSBEYXRlVGltZSBpcyB2YWxpZC4gSW52YWxpZCBEYXRlVGltZXMgb2NjdXIgd2hlbjoKICAgICAgICogKiBUaGUgRGF0ZVRpbWUgd2FzIGNyZWF0ZWQgZnJvbSBpbnZhbGlkIGNhbGVuZGFyIGluZm9ybWF0aW9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gdm9pZCAwID8gZmFsc2UgOiBfcmVmMyRrZWVwQ2FsZW5kYXJUaW07CgogICAgICAgIHpvbmUgPSBub3JtYWxpemVab25lKHpvbmUsIFNldHRpbmdzLmRlZmF1bHRab25lKTsKCiAgICAgICAgaWYgKHpvbmUuZXF1YWxzKHRoaXMuem9uZSkpIHsKICAgICAgICAgIHJldHVybiB0aGlzOwogICAgICAgIH0gZWxzZSBpZiAoIXpvbmUuaXNWYWxpZCkgewogICAgICAgICAgcmV0dXJuIERhdGVUaW1lLmludmFsaWQodW5zdXBwb3J0ZWRab25lKHpvbmUpKTsKICAgICAgICB9IGVsc2UgewogICAgICAgICAgdmFyIG5ld1RTID0gdGhpcy50czsKCiAgICAgICAgICBpZiAoa2VlcExvY2FsVGltZSB8fCBrZWVwQ2FsZW5kYXJUaW1lKSB7CiAgICAgICAgICAgIHZhciBvZmZzZXRHdWVzcyA9IHpvbmUub2Zmc2V0KHRoaXMudHMpOwogICAgICAgICAgICB2YXIgYXNPYmogPSB0aGlzLnRvT2JqZWN0KCk7CgogICAgICAgICAgICB2YXIgX29ialRvVFMzID0gb2JqVG9UUyhhc09iaiwgb2Zmc2V0R3Vlc3MsIHpvbmUpOwoKICAgICAgICAgICAgbmV3VFMgPSBfb2JqVG9UUzNbMF07CiAgICAgICAgICB9CgogICAgICAgICAgcmV0dXJuIGNsb25lKHRoaXMsIHsKICAgICAgICAgICAgdHM6IG5ld1RTLAogICAgICAgICAgICB6b25lOiB6b25lCiAgICAgICAgICB9KTsKICAgICAgICB9CiAgICAgIH0KICAgICAgLyoqCiAgICAgICAqICJTZXQiIHRoZSBsb2NhbGUsIG51bWJlcmluZ1N5c3RlbSwgb3Igb3V0cHV0Q2FsZW5kYXIuIFJldHVybnMgYSBuZXdseS1jb25zdHJ1Y3RlZCBEYXRlVGltZS4KICAgICAgICogQHBhcmFtIHtPYmplY3R9IHByb3BlcnRpZXMgLSB0aGUgcHJvcGVydGllcyB0byBzZXQKICAgICAgICogQGV4YW1w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RlZmluZWQobm9ybWFsaXplZC53ZWVrWWVhcikgfHwgIWlzVW5kZWZpbmVkKG5vcm1hbGl6ZWQud2Vla051bWJlcikgfHwgIWlzVW5kZWZpbmVkKG5vcm1hbGl6ZWQud2Vla2RheSksCiAgICAgICAgICAgIGNvbnRhaW5zT3JkaW5hbCA9ICFpc1VuZGVmaW5lZChub3JtYWxpemVkLm9yZGluYWwpLAogICAgICAgICAgICBjb250YWluc0dyZWdvclllYXIgPSAhaXNVbmRlZmluZWQobm9ybWFsaXplZC55ZWFyKSwKICAgICAgICAgICAgY29udGFpbnNHcmVnb3JNRCA9ICFpc1VuZGVmaW5lZChub3JtYWxpemVkLm1vbnRoKSB8fCAhaXNVbmRlZmluZWQobm9ybWFsaXplZC5kYXkpLAogICAgICAgICAgICBjb250YWluc0dyZWdvciA9IGNvbnRhaW5zR3JlZ29yWWVhciB8fCBjb250YWluc0dyZWdvck1ELAogICAgICAgICAgICBkZWZpbml0ZVdlZWtEZWYgPSBub3JtYWxpemVkLndlZWtZZWFyIHx8IG5vcm1hbGl6ZWQud2Vla051bWJlcjsKCiAgICAgICAgaWYgKChjb250YWluc0dyZWdvciB8fCBjb250YWluc09yZGluYWwpICYmIGRlZmluaXRlV2Vla0RlZikgewogICAgICAgICAgdGhyb3cgbmV3IENvbmZsaWN0aW5nU3BlY2lmaWNhdGlvbkVycm9yKCJDYW4ndCBtaXggd2Vla1llYXIvd2Vla051bWJlciB1bml0cyB3aXRoIHllYXIvbW9udGgvZGF5IG9yIG9yZGluYWxzIik7CiAgICAgICAgfQoKICAgICAgICBpZiAoY29udGFpbnNHcmVnb3JNRCAmJiBjb250YWluc09yZGluYWwpIHsKICAgICAgICAgIHRocm93IG5ldyBDb25mbGljdGluZ1NwZWNpZmljYXRpb25FcnJvcigiQ2FuJ3QgbWl4IG9yZGluYWwgZGF0ZXMgd2l0aCBtb250aC9kYXkiKTsKICAgICAgICB9CgogICAgICAgIHZhciBtaXhlZDsKCiAgICAgICAgaWYgKH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09UaW1lKCk7IC8vPT4gJzAwOjAwLjAwMC0wNTowMCcKICAgICAgICogQGV4YW1wbGUgRGF0ZVRpbWUubG9jYWwoMjAxNCwgMywgMywgNSwgMzApLnN0YXJ0T2YoJ2hvdXInKS50b0lTT1RpbWUoKTsgLy89PiAnMDU6MDA6MDAuMDAwLTA1OjAwJwogICAgICAgKiBAcmV0dXJuIHtEYXRlVGltZX0KICAgICAgICovCiAgICAgIDsKCiAgICAgIF9wcm90by5zdGFydE9mID0gZnVuY3Rpb24gc3RhcnRPZih1bml0KSB7CiAgICAgICAgaWYgKCF0aGlzLmlzVmFsaWQpIHJldHVybiB0aGlzOwogICAgICAgIHZhciBvID0ge30sCiAgICAgICAgICAgIG5vcm1hbGl6ZWRVbml0ID0gRHVyYXRpb24ubm9ybWFsaXplVW5pdCh1bml0KTsKCiAgICAgICAgc3dpdGNoIChub3JtYWxpemVkVW5pdCkgewogICAgICAgICAgY2FzZSAieWVhcnMiOgogICAgICAgICAgICBvLm1vbnRoID0gMTsKICAgICAgICAgIC8vIGZhbGxzIHRocm91Z2gKCiAgICAgICAgICBjYXNlICJxdWFydGVycyI6CiAgICAgICAgICBjYXNlICJtb250aHMiOgogICAgICAgICAgICBvLmRheSA9IDE7CiAgICAgICAgICAvLyBmYWxscyB0aHJvdWdoCgogICAgICAgICAgY2FzZSAid2Vla3MiOgogICAgICAgICAgY2FzZSAiZGF5cyI6CiAgICAgICAgICAgIG8uaG91ciA9IDA7CiAgICAgICAgICAvLyBmYWxscyB0aHJvdWdoCgogICAgICAgICAgY2FzZSAiaG91cnMiOgogICAgICAgICAgICBvLm1pbnV0ZSA9IDA7CiAgICAgICAgICAvLyBmYWxscyB0aHJvdWdoCgogICAgICAgICAgY2FzZSAibWludXRlcyI6CiAgICAgICAgICAgIG8uc2Vjb25kID0gMDsKICAgICAgICAgIC8vIGZhbGxzIHRocm91Z2gKCiAgICAgICAgICBjYXNlICJzZWNvbmRzIjoKICAgICAgICAgICAgby5taWxsaXNlY29uZCA9IDA7CiAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgLy8gbm8gZGVmYXVsdCwgaW52YWxpZCB1bml0cyB0aHJvdyBpbiBub3JtYWxpemVVbml0KCkKICAgICAgICB9CgogICAgICAgIGlmIChub3JtYWxpemVkVW5pdCA9PT0gIndlZWtzIikgewogICAgICAgICAgby53ZWVrZGF5ID0gMTsKICAgICAgICB9CgogICAgICAgIGlmIChub3JtYWxpemVkVW5pdCA9PT0gInF1YXJ0ZXJzIikgewogICAgICAgICAgdmFyIHEgPSBNYXRoLmNlaWwodGhpcy5tb250aCAvIDMpOwogICAgICAgICAgby5tb250aCA9IChxIC0gMSkgKiAzICsgMTsKICAgICAgICB9CgogICAgICAgIHJldHVybiB0aGlzLnNldChvKTsKICAgICAgfQogICAgICAvKioKICAgICAgICogIlNldCIgdGhpcyBEYXRlVGltZSB0byB0aGUgZW5kIChtZWFuaW5nIHRoZSBsYXN0IG1pbGxpc2Vjb25kKSBvZiBhIHVuaXQgb2YgdGltZQogICAgICAgKiBAcGFyYW0ge3N0cmluZ30gdW5pdCAtIFRoZSB1bml0IHRvIGdvIHRvIHRoZSBlbmQgb2YuIENhbiBiZSAneWVhcicsICdxdWFydGVyJywgJ21vbnRoJywgJ3dlZWsnLCAnZGF5JywgJ2hvdXInLCAnbWludXRlJywgJ3NlY29uZCcsIG9yICdtaWxsaXNlY29uZCcuCiAgICAgICAqIEBleGFtcGxlIERhdGVUaW1lLmxvY2FsKDIwMTQsIDMsIDMpLmVuZE9mKCdtb250aCcpLnRvSVNPKCk7IC8vPT4gJzIwMTQtMDMtMzFUMjM6NTk6NTkuOTk5LTA1OjAwJwogICAgICAgKiBAZXhhbXBsZSBEYXRlVGltZS5sb2NhbCgyMDE0LCAzLCAzKS5lbmRPZigneWVhcicpLnRvSVNPKCk7IC8vPT4gJzIwMTQtMTItMzFUMjM6NTk6NTkuOTk5LTA1OjAwJwogICAgICAgKiBAZXhhbXBsZSBEYXRlVGltZS5sb2Nhb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gb3V0cHV0LgogICAgICAgKiBEZWZhdWx0cyB0byB0aGUgc3lzdGVtJ3MgbG9jYWxlIGlmIG5vIGxvY2FsZSBoYXMgYmVlbiBzcGVjaWZpZWQKICAgICAgICogQHNlZSBodHRwczovL2RldmVsb3Blci5tb3ppbGxhLm9yZy9lbi1VUy9kb2NzL1dlYi9KYXZhU2NyaXB0L1JlZmVyZW5jZS9HbG9iYWxfT2JqZWN0cy9EYXRlVGltZUZvcm1hdC9mb3JtYXRUb1BhcnRzCiAgICAgICAqIEBwYXJhbSBvcHRzIHtPYmplY3R9IC0gSW50bC5EYXRlVGltZUZvcm1hdCBjb25zdHJ1Y3RvciBvcHRpb25zLCBzYW1lIGFzIGB0b0xvY2FsZVN0cmluZ2AuCiAgICAgICAqIEBleGFtcGxlIERhdGVUaW1lLm5vdygpLnRvTG9jYWxlUGFydHMoKTsgLy89PiBbCiAgICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLz0+ICAgeyB0eXBlOiAnZGF5JywgdmFsdWU6ICcyNScgfSwKICAgICAgICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vPT4gICB7IHR5cGU6ICdsaXRlcmFsJywgdmFsdWU6ICcvJyB9LAogICAgICAgKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy89PiAgIHsgdHlwZTogJ21vbnRoJywgdmFsdWU6ICcwNScgfSwKICAgICAgICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vPT4gICB7IHR5cGU6ICdsaXRlcmFsJywgdmFsdWU6ICcvJyB9LAogICAgICAgKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy89PiAgIHsgdHlwZTogJ3llYXInLCB2YWx1ZTogJzE5ODInIH0KICAgICAgICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vPT4gXQogICAgICAgKi8KICAgICAgOwoKICAgICAgX3Byb3RvLnRvTG9jYWxlUGFydHMgPS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QHJldHVybiB7c3RyaW5nfQogICAgICAgKi8KICAgICAgOwoKICAgICAgX3Byb3RvLnRvU1FMID0gZnVuY3Rpb24gdG9TUUwob3B0cykgewogICAgICAgIGlmIChvcHRzID09PSB2b2lkIDApIHsKICAgICAgICAgIG9wdHMgPSB7fTsKICAgICAgICB9CgogICAgICAgIGlmICghdGhpcy5pc1ZhbGlkKSB7CiAgICAgICAgICByZXR1cm4gbnVsbDsKICAgICAgICB9CgogICAgICAgIHJldHVybiB0aGlzLnRvU1FMRGF0ZSgpICsgIiAiICsgdGhpcy50b1NRTFRpbWUob3B0cyk7CiAgICAgIH0KICAgICAgLyoqCiAgICAgICAqIFJldHVybnMgYSBzdHJpbmcgcmVwcmVzZW50YXRpb24gb2YgdGhpcyBEYXRlVGltZSBhcHByb3ByaWF0ZSBmb3IgZGVidWdnaW5nCiAgICAgICAqIEByZXR1cm4ge3N0cmluZ30KICAgICAgICovCiAgICAgIDsKCiAgICAgIF9wcm90by50b1N0cmluZyA9IGZ1bmN0aW9uIHRvU3RyaW5nKCkgewogICAgICAgIHJldHVybiB0aGlzLmlzVmFsaWQgPyB0aGlzLnRvSVNPKCkgOiBJTlZBTElEOwogICAgICB9CiAgICAgIC8qKgogICAgICAgKiBSZXR1cm5zIHRoZSBlcG9jaCBtaWxsaXNlY29uZHMgb2YgdGhpcyBEYXRlVGltZS4gQWxpYXMgb2Yge0BsaW5rIERhdGVUaW1lLnRvTWlsbGlzfQogICAgICAgKiBAcmV0dXJuIHtudW1iZXJ9CiAgICAgICAqLwogICAgICA7CgogICAgICBfcHJvdG8udmFsdWVPZiA9IGZ1bmN0aW9uIHZhbHVlT2YoKSB7CiAgICAgICAgcmV0dXJuIHRoaXMudG9NaWxsaXMoKTsKICAgICAgfQogICAgICAvKioKICAgICAgICogUmV0dXJucyB0aGUgZXBvY2ggbWlsbGlzZWNvbmRzIG9mIHRoaXMgRGF0ZVRpbWUuCiAgICAgICAqIEByZXR1cm4ge251bWJlcn0KICAgICAgICovCiAgICAgIDsKCiAgICAgIF9wcm90by50b01pbGxpcyA9IGZ1bmN0aW9uIHRvTWlsbGlzKCkgewogICAgICAgIHJldHVybiB0aGlzLmlzVmFsaWQgPyB0aGlzLnRzIDogTmFOOwogICAgICB9CiAgICAgIC8qKgogICAgICAgKiBSZXR1cm5zIHRoZSBlcG9jaCBzZWNvbmRzIG9mIHRoaXMgRGF0ZVRpbWUuCiAgICAgICAqIEByZXR1cm4ge251bWJlcn0KICAgICAgICovCiAgICAgIDsKCiAgICAgIF9wcm90by50b1NlY29uZHMgPSBmdW5jdGlvbiB0b1NlY29uZHMoKSB7CiAgICAgICAgcmV0dXJuIHRoaXMuaXNWYWxpZCA/IHRoaXMudHMgLyAxMDAwIDogTmFOOwogICAgICB9CiAgICAgIC8qKgogICAgICAgKiBSZXR1cm5zIGFuIElTTyA4NjAxIHJlcHJlc2VudGF0aW9uIG9mIHRoaXMgRGF0ZVRpbWUgYXBwcm9wcmlhdGUgZm9yIHVzZSBpbiBKU09OLgogICAgICAgKiBAcmV0dXJuIHtzdHJpbmd9CiAgICAgICAqLwogICAgICA7CgogICAgICBfcHJvdG8udG9KU09OID0gZnVuY3Rpb24gdG9KU09OKCkgewogICAgICAgIHJldHVybiB0aGlzLnRvSVNPKCk7CiAgICAgIH0KICAgICAgLyoqCiAgICAgICAqIFJldHVybnMgYSBCU09OIHNlcmlhbGl6YWJsZSBlcXVpdmFsZW50IHRvIHRoaXMgRGF0ZVRpbWUuCiAgICAgICAqIEByZXR1cm4ge0RhdGV9CiAgICAgICAqLwogICAgICA7CgogICAgICBfcHJvdG8udG9CU09OID0gZnVuY3Rpb24gdG9CU09OKCkgewogICAgICAgIHJldHVybiB0aGlzLnRvSlNEYXRlKCk7CiAgICAgIH0KICAgICAgLyoqCiAgICAgICAqIFJldHVybnMgYSBKYXZhU2NyaXB0IG9iamVjdCB3aXRoIHRoaXMgRGF0ZVRpbWUncyB5ZWFyLCBtb250aCwgZGF5LCBhbmQgc28gb24uCiA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ICAgICAgICogaTIuZGlmZihpMSwgJ2hvdXJzJykudG9PYmplY3QoKSAvLz0+IHsgaG91cnM6IDEyMTY4Ljc1IH0KICAgICAgICogaTIuZGlmZihpMSwgWydtb250aHMnLCAnZGF5cyddKS50b09iamVjdCgpIC8vPT4geyBtb250aHM6IDE2LCBkYXlzOiAxOS4wMzEyNSB9CiAgICAgICAqIGkyLmRpZmYoaTEsIFsnbW9udGhzJywgJ2RheXMnLCAnaG91cnMnXSkudG9PYmplY3QoKSAvLz0+IHsgbW9udGhzOiAxNiwgZGF5czogMTksIGhvdXJzOiAwLjc1IH0KICAgICAgICogQHJldHVybiB7RHVyYXRpb259CiAgICAgICAqLwogICAgICA7CgogICAgICBfcHJvdG8uZGlmZiA9IGZ1bmN0aW9uIGRpZmYob3RoZXJEYXRlVGltZSwgdW5pdCwgb3B0cykgewogICAgICAgIGlmICh1bml0ID09PSB2b2lkIDApIHsKICAgICAgICAgIHVuaXQgPSAibWlsbGlzZWNvbmRzIjsKICAgICAgICB9CgogICAgICAgIGlmIChvcHRzID09PSB2b2lkIDApIHsKICAgICAgICAgIG9wdHMgPSB7fTsKICAgICAgICB9CgogICAgICAgIGlmICghdGhpcy5pc1ZhbGlkIHx8ICFvdGhlckRhdGVUaW1lLmlzVmFsaWQpIHsKICAgICAgICAgIHJldHVybiBEdXJhdGlvbi5pbnZhbGlkKCJjcmVhdGVkIGJ5IGRpZmZpbmcgYW4gaW52YWxpZCBEYXRlVGltZSIpOwogICAgICAgIH0KCiAgICAgICAgdmFyIGR1ck9wdHMgPSBfZXh0ZW5kcyh7CiAgICAgICAgICBsb2NhbGU6IHRoaXMubG9jYWxlLAogICAgICAgICAgbnVtYmVyaW5nU3lzdGVtOiB0aGlzLm51bWJlcmluZ1N5c3RlbQogICAgICAgIH0sIG9wdHMpOwoKICAgICAgICB2YXIgdW5pdHMgPSBtYXliZUFycmF5KHVuaXQpLm1hcChEdXJhdGlvbi5ub3JtYWxpemVVbml0KSwKICAgICAgICAgIC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HRpb25zID0ge307CiAgICAgICAgfQoKICAgICAgICBpZiAoIXRoaXMuaXNWYWxpZCkgcmV0dXJuIG51bGw7CiAgICAgICAgdmFyIGJhc2UgPSBvcHRpb25zLmJhc2UgfHwgRGF0ZVRpbWUuZnJvbU9iamVjdCh7fSwgewogICAgICAgICAgem9uZTogdGhpcy56b25lCiAgICAgICAgfSksCiAgICAgICAgICAgIHBhZGRpbmcgPSBvcHRpb25zLnBhZGRpbmcgPyB0aGlzIDwgYmFzZSA/IC1vcHRpb25zLnBhZGRpbmcgOiBvcHRpb25zLnBhZGRpbmcgOiAwOwogICAgICAgIHZhciB1bml0cyA9IFsieWVhcnMiLCAibW9udGhzIiwgImRheXMiLCAiaG91cnMiLCAibWludXRlcyIsICJzZWNvbmRzIl07CiAgICAgICAgdmFyIHVuaXQgPSBvcHRpb25zLnVuaXQ7CgogICAgICAgIGlmIChBcnJheS5pc0FycmF5KG9wdGlvbnMudW5pdCkpIHsKICAgICAgICAgIHVuaXRzID0gb3B0aW9ucy51bml0OwogICAgICAgICAgdW5pdCA9IHVuZGVmaW5lZDsKICAgICAgICB9CgogICAgICAgIHJldHVybiBkaWZmUmVsYXRpdmUoYmFzZSwgdGhpcy5wbHVzKHBhZGRpbmcpLCBfZXh0ZW5kcyh7fSwgb3B0aW9ucywgewogICAgICAgICAgbnVtZXJpYzogImFsd2F5cyIsCiAgICAgICAgICB1bml0czogdW5pdHMsCiAgICAgICAgICB1bml0OiB1bml0CiAgICAgICAgfSkpOwogICAgICB9CiAgICAgIC8qKgogICAgICAgKiBSZXR1cm5zIGEgc3RyaW5nIHJlcHJlc2VudGF0aW9uIG9mIHRoaXMgZGF0ZSByZWxhdGl2ZSB0byB0b2RheSwgc3VjaCBhcyAieWVzdGVyZGF5IiBvciAibmV4dCBtb250aCIuCiAgICAgICAqIE9ubHkgaW50ZXJuYXRpb25hbGl6ZXMgb24gcGxhdGZvcm1zIHRoYXQgc3VwcG9ydHMgSW50bC5SZWxhdGl2ZVRp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yA9IHt9OwogICAgICAgIH0KCiAgICAgICAgdmFyIF9vcHRpb25zID0gb3B0aW9ucywKICAgICAgICAgICAgX29wdGlvbnMkbG9jYWxlID0gX29wdGlvbnMubG9jYWxlLAogICAgICAgICAgICBsb2NhbGUgPSBfb3B0aW9ucyRsb2NhbGUgPT09IHZvaWQgMCA/IG51bGwgOiBfb3B0aW9ucyRsb2NhbGUsCiAgICAgICAgICAgIF9vcHRpb25zJG51bWJlcmluZ1N5cyA9IF9vcHRpb25zLm51bWJlcmluZ1N5c3RlbSwKICAgICAgICAgICAgbnVtYmVyaW5nU3lzdGVtID0gX29wdGlvbnMkbnVtYmVyaW5nU3lzID09PSB2b2lkIDAgPyBudWxsIDogX29wdGlvbnMkbnVtYmVyaW5nU3lzLAogICAgICAgICAgICBsb2NhbGVUb1VzZSA9IExvY2FsZS5mcm9tT3B0cyh7CiAgICAgICAgICBsb2NhbGU6IGxvY2FsZSwKICAgICAgICAgIG51bWJlcmluZ1N5c3RlbTogbnVtYmVyaW5nU3lzdGVtLAogICAgICAgICAgZGVmYXVsdFRvRU46IHRydWUKICAgICAgICB9KTsKICAgICAgICByZXR1cm4gZXhwbGFpbkZyb21Ub2tlbnMobG9jYWxlVG9Vc2UsIHRleHQsIGZtdCk7CiAgICAgIH0KICAgICAgLyoqCiAgICAgICAqIEBkZXByZWNhdGVkIHVzZSBmcm9tRm9ybWF0RXhwbGFpbiBpbnN0ZWFkCiAgICAgICAqLwogICAgICA7CgogICAgICBEYXRlVGltZS5mcm9tU3RyaW5nRXhwbGFpbiA9IGZ1bmN0aW9uIGZyb21TdHJpbmdFeHBsYWluKHRleHQsIGZtdCwgb3B0aW9ucykgewogICAgICAgIGlmIChvcHRpb25zID09PSB2b2lkIDApIHsKICAgICAgICAgIG9wdGlvbnMgPSB7fTsKICAgICAgICB9CgogICAgICAgIHJldHVybiBEYXRlVGltZS5mcm9tRm9ybWF0RXhwbGFpbih0ZXh0LCBmbXQsIG9wdGlvbnMpOwogICAgICB9IC8vIEZPUk1BVCBQUkVTRVRTCgogICAgICAvKioKICAgICAgICoge0BsaW5rIERhdGVUaW1lLnRvTG9jYWxlU3RyaW5nfSBmb3JtYXQgbGlrZSAxMC8xNC8xOTgzCiAgICAgICAqIEB0eXBlIHtPYmplY3R9CiAgICAgICAqLwogICAgICA7CgogICAgICBfY3JlYXRlQ2xhc3MoRGF0ZVRpbWUsIFt7CiAgICAgICAga2V5OiAiaXNWYWxpZCIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gdGhpcy5pbnZhbGlkID09PSBudWxsOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiBSZXR1cm5zIGFuIGVycm9yIGNvZGUgaWYgdGhpcyBEYXRlVGltZSBpcyBpbnZhbGlkLCBvciBudWxsIGlmIHRoZSBEYXRlVGltZSBpcyB2YWxpZAogICAgICAgICAqIEB0eXBlIHtzdHJpbmd9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAiaW52YWxpZFJlYXNvbiIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gdGhpcy5pbnZhbGlkID8gdGhpcy5pbnZhbGlkLnJlYXNvbiA6IG51bGw7CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIFJldHVybnMgYW4gZXhwbGFuYXRpb24gb2Ygd2h5IHRoaXMgRGF0ZVRpbWUgYmVjYW1lIGludmFsaWQsIG9yIG51bGwgaWYgdGhlIERhdGVUaW1lIGlzIHZhbGlkCiAgICAgICAgICogQHR5cGUge3N0cmluZ30KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJpbnZhbGlkRXhwbGFuYXRpb24iLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIHRoaXMuaW52YWxpZCA/IHRoaXMuaW52YWxpZC5leHBsYW5hdGlvb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AgICAgICBrZXk6ICJvdXRwdXRDYWxlbmRhciIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gdGhpcy5pc1ZhbGlkID8gdGhpcy5sb2Mub3V0cHV0Q2FsZW5kYXIgOiBudWxsOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiBHZXQgdGhlIHRpbWUgem9uZSBhc3NvY2lhdGVkIHdpdGggdGhpcyBEYXRlVGltZS4KICAgICAgICAgKiBAdHlwZSB7Wm9uZX0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJ6b25lIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiB0aGlzLl96b25lOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiBHZXQgdGhlIG5hbWUgb2YgdGhlIHRpbWUgem9uZS4KICAgICAgICAgKiBAdHlwZSB7c3RyaW5nfQogICAgICAgICAqLwoKICAgICAgfSwgewogICAgICAgIGtleTogInpvbmVOYW1lIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiB0aGlzLmlzVmFsaWQgPyB0aGlzLnpvbmUubmFtZSA6IG51bGw7CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIEdldCB0aGUgeWVhcgogICAgICAgICAqIEBleGFtcGxlIERhdGVUaW1lLmxvY2FsKDIwMTcsIDUsIDI1KS55ZWFyIC8vPT4gMjAxNwogICAgICAgICAqIEB0eXBlIHtudW1iZXJ9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAieWVhciIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gdGhpcy5pc1ZhbGlkID8gdGhpcy5jLnllYXIgOiBOYU47CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIEdldCB0aGUgcXVhcnRlcgogICAgICAgICAqIEBleGFtcGxlIERhdGVUaW1lLmxvY2FsKDIwMTcsIDUsIDI1KS5xdWFydGVyIC8vPT4gMgogICAgICAgICAqIEB0eXBlIHtudW1iZXJ9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAicXVhcnRlciIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gdGhpcy5pc1ZhbGlkID8gTWF0aC5jZWlsKHRoaXMuYy5tb250aCAvIDMpIDogTmFOOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiBHZXQgdGhlIG1vbnRoICgxLTEyKS4KICAgICAgICAgKiBAZXhhbXBsZSBEYXRlVGltZS5sb2NhbCgyMDE3LCA1LCAyNSkubW9udGggLy89PiA1CiAgICAgICAgICogQHR5cGUge251bWJlcn0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJtb250aCIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gdGhpcy5pc1ZhbGlkID8gdGhpcy5jLm1vbnRoIDogTmFOOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiBHZXQgdGhlIGRheSBvZiB0aGUgbW9udGggKDEtMzBpc2gpLgogICAgICAgICAqIEBleGFtcGxlIERhdGVUaW1lLmxvY2FsKDIwMTcsIDUsIDI1KS5kYXkgLy89PiAyNQogICAgICAgICAqIEB0eXBlIHtudW1iZXJ9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAiZGF5IiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiB0aGlzLmlzVmFsaWQgPyB0aGlzLmMuZGF5IDogTmFOOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiBHZXQgdGhlIGhvdXIgb2YgdGhlIGRheSAoMC0yMykuCiAgICAgICAgICogQGV4YW1wbGUgRGF0ZVRpbWUubG9jYWwoMjAxNywgNSwgMjUsIDkpLmhvdXIgLy89PiA5CiAgICAgICAgICogQHR5cGUge251bWJlcn0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJob3VyIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiB0aGlzLmlzVmFsaWQgPyB0aGlzLmMuaG91ciA6IE5hTjsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICogR2V0IHRoZSBtaW51dGUgb2YgdGhlIGhvdXIgKDAtNTkpLgogICAgICAgICAqIEBleGFtcGxlIERhdGVUaW1lLmxvY2FsKDIwMTcsIDUsIDI1LCA5LCAzMCkubWludXRlIC8vPT4gMzAKICAgICAgICAgKiBAdHlwZSB7bnVtYmVyfQogICAgICAgICAqLwoKICAgICAgfSwgewogICAgICAgIGtleTogIm1pbnV0ZSIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gdGhpcy5pc1ZhbGlkID8gdGhpcy5jLm1pbnV0ZSA6IE5hTjsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICogR2V0IHRoZSBzZWNvbmQgb2YgdGhlIG1pbnV0ZSAoMC01OSkuCiAgICAgICAgICogQGV4YW1wbGUgRGF0ZVRpbWUubG9jYWwoMjAxNywgNSwgMjUsIDksIDMwLCA1Mikuc2Vjb25kIC8vPT4gNTIKICAgICAgICAgKiBAdHlwZSB7bnVtYmVyfQogICAgICAgICAqLwoKICAgICAgfSwgewogICAgICAgIGtleTogInNlY29uZCIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gdGhpcy5pc1ZhbGlkID8gdGhpcy5jLnNlY29uZCA6IE5hTjsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICogR2V0IHRoZSBtaWxsaXNlY29uZCBvZiB0aGUgc2Vjb25kICgwLTk5OSkuCiAgICAgICAgICogQGV4YW1wbGUgRGF0ZVRpbWUubG9jYWwoMjAxNywgNSwgMjUsIDksIDMwLCA1MiwgNjU0KS5taWxsaXNlY29uZCAvLz0+IDY1NAogICAgICAgICAqIEB0eXBlIHtudW1iZXJ9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAibWlsbGlzZWNvbmQiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIHRoaXMuaXNWYWxpZCA/IHRoaXMuYy5taWxsaXNlY29uZCA6IE5hTjsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICogR2V0IHRoZSB3ZWVrIHllYXIKICAgICAgICAgKiBAc2VlIGh0dHBzOi8vZW4ud2lraXBlZGlhLm9yZy93aWtpL0lTT193ZWVrX2RhdGUKICAgICAgICAgKiBAZXhhbXBsZSBEYXRlVGltZS5sb2NhbCgyMDE0LCAxMiwgMzEpLndlZWtZZWFyIC8vPT4gMjAxNQogICAgICAgICAqIEB0eXBlIHtudW1iZXJ9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAid2Vla1llYXIiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIHRoaXMuaXNWYWxpZCA/IHBvc3NpYmx5Q2FjaGVkV2Vla0RhdGEodGhpcykud2Vla1llYXIgOiBOYU47CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIEdldCB0aGUgd2VlayBudW1iZXIgb2YgdGhlIHdlZWsgeWVhciAoMS01MmlzaCkuCiAgICAgICAgICogQHNlZSBodHRwczovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9JU09fd2Vla19kYXRlCiAgICAgICAgICogQGV4YW1wbGUgRGF0ZVRpbWUubG9jYWwoMjAxNywgNSwgMjUpLndlZWtOdW1iZXIgLy89PiAyMQogICAgICAgICAqIEB0eXBlIHtudW1iZXJ9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAid2Vla051bWJlciIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gdGhpcy5pc1ZhbGlkID8gcG9zc2libHlDYWNoZWRXZWVrRGF0YSh0aGlzKS53ZWVrTnVtYmVyIDogTmFOOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiBHZXQgdGhlIGRheSBvZiB0aGUgd2Vlay4KICAgICAgICAgKiAxIGlzIE1vbmRheSBhbmQgNyBpcyBTdW5kYXkKICAgICAgICAgKiBAc2VlIGh0dHBzOi8vZW4ud2lraXBlZGlhLm9yZy93aWtpL0lTT193ZWVrX2RhdGUKICAgICAgICAgKiBAZXhhbXBsZSBEYXRlVGltZS5sb2NhbCgyMDE0LCAxMSwgMzEpLndlZWtkYXkgLy89PiA0CiAgICAgICAgICogQHR5cGUge251bWJlcn0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJ3ZWVrZGF5IiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiB0aGlzLmlzVmFsaWQgPyBwb3NzaWJseUNhY2hlZFdlZWtEYXRhKHRoaXMpLndlZWtkYXkgOiBOYU47CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIEdldCB0aGUgb3JkaW5hbCAobWVhbmluZyB0aGUgZGF5IG9mIHRoZSB5ZWFyKQogICAgICAgICAqIEBleGFtcGxlIERhdGVUaW1lLmxvY2FsKDIwMTcsIDUsIDI1KS5vcmRpbmFsIC8vPT4gMTQ1CiAgICAgICAgICogQHR5cGUge251bWJlcnxEYXRlVGltZX0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJvcmRpbmFsIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiB0aGlzLmlzVmFsaWQgPyBncmVnb3JpYW5Ub09yZGluYWwodGhpcy5jKS5vcmRpbmFsIDogTmFOOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiBHZXQgdGhlIGh1bWFuIHJlYWRhYmxlIHNob3J0IG1vbnRoIG5hbWUsIHN1Y2ggYXMgJ09jdCcuCiAgICAgICAgICogRGVmYXVsdHMgdG8gdGhlIHN5c3RlbSdzIGxvY2FsZSBpZiBubyBsb2NhbGUgaGFzIGJlZW4gc3BlY2lmaWVkCiAgICAgICAgICogQGV4YW1wbGUgRGF0ZVRpbWUubG9jYWwoMjAxNywgMTAsIDMwKS5tb250aFNob3J0IC8vPT4gT2N0CiAgICAgICAgICogQHR5cGUge3N0cmluZ30KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJtb250aFNob3J0IiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiB0aGlzLmlzVmFsaWQgPyBJbmZvLm1vbnRocygic2hvcnQiLCB7CiAgICAgICAgICAgIGxvY09iajogdGhpcy5sb2MKICAgICAgICAgIH0pW3RoaXMubW9udGggLSAxXSA6IG51bGw7CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIEdldCB0aGUgaHVtYW4gcmVhZGFibGUgbG9uZyBtb250aCBuYW1lLCBzdWNoIGFzICdPY3RvYmVyJy4KICAgICAgICAgKiBEZWZhdWx0cyB0byB0aGUgc3lzdGVtJ3MgbG9jYWxlIGlmIG5vIGxvY2FsZSBoYXMgYmVlbiBzcGVjaWZpZWQKICAgICAgICAgKiBAZXhhbXBsZSBEYXRlVGltZS5sb2NhbCgyMDE3LCAxMCwgMzApLm1vbnRoTG9uZyAvLz0+IE9jdG9iZXIKICAgICAgICAgKiBAdHlwZSB7c3RyaW5nfQogICAgICAgICAqLwoKICAgICAgfSwgewogICAgICAgIGtleTogIm1vbnRoTG9uZyIsCiAgICAgICAgZ2V0OiBmdW5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AgICogQHR5cGUge3N0cmluZ30KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJ3ZWVrZGF5TG9uZyIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gdGhpcy5pc1ZhbGlkID8gSW5mby53ZWVrZGF5cygibG9uZyIsIHsKICAgICAgICAgICAgbG9jT2JqOiB0aGlzLmxvYwogICAgICAgICAgfSlbdGhpcy53ZWVrZGF5IC0gMV0gOiBudWxsOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiBHZXQgdGhlIFVUQyBvZmZzZXQgb2YgdGhpcyBEYXRlVGltZSBpbiBtaW51dGVzCiAgICAgICAgICogQGV4YW1wbGUgRGF0ZVRpbWUubm93KCkub2Zmc2V0IC8vPT4gLTI0MAogICAgICAgICAqIEBleGFtcGxlIERhdGVUaW1lLnV0YygpLm9mZnNldCAvLz0+IDAKICAgICAgICAgKiBAdHlwZSB7bnVtYmVyfQogICAgICAgICAqLwoKICAgICAgfSwgewogICAgICAgIGtleTogIm9mZnNldCIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gdGhpcy5pc1ZhbGlkID8gK3RoaXMubyA6IE5hTjsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICogR2V0IHRoZSBzaG9ydCBodW1hbiBuYW1lIGZvciB0aGUgem9uZSdzIGN1cnJlbnQgb2Zmc2V0LCBmb3IgZXhhbXBsZSAiRVNUIiBvciAiRURUIi4KICAgICAgICAgKiBEZWZhdWx0cyB0byB0aGUgc3lzdGVtJ3MgbG9jYWxlIGlmIG5vIGxvY2FsZSBoYXMgYmVlbiBzcGVjaWZpZWQKICAgICAgICAgKiBAdHlwZSB7c3RyaW5nfQogICAgICAgICAqLwoKICAgICAgfSwgewogICAgICAgIGtleTogIm9mZnNldE5hbWVTaG9ydCIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICBpZiAodGhpcy5pc1ZhbGlkKSB7CiAgICAgICAgICAgIHJldHVybiB0aGlzLnpvbmUub2Zmc2V0TmFtZSh0aGlzLnRzLCB7CiAgICAgICAgICAgICAgZm9ybWF0OiAic2hvcnQiLAogICAgICAgICAgICAgIGxvY2FsZTogdGhpcy5sb2NhbGUKICAgICAgICAgICAgfSk7CiAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICByZXR1cm4gbnVsbDsKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICogR2V0IHRoZSBsb25nIGh1bWFuIG5hbWUgZm9yIHRoZSB6b25lJ3MgY3VycmVudCBvZmZzZXQsIGZvciBleGFtcGxlICJFYXN0ZXJuIFN0YW5kYXJkIFRpbWUiIG9yICJFYXN0ZXJuIERheWxpZ2h0IFRpbWUiLgogICAgICAgICAqIERlZmF1bHRzIHRvIHRoZSBzeXN0ZW0ncyBsb2NhbGUgaWYgbm8gbG9jYWxlIGhhcyBiZWVuIHNwZWNpZmllZAogICAgICAgICAqIEB0eXBlIHtzdHJpbmd9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAib2Zmc2V0TmFtZUxvbmciLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgaWYgKHRoaXMuaXNWYWxpZCkgewogICAgICAgICAgICByZXR1cm4gdGhpcy56b25lLm9mZnNldE5hbWUodGhpcy50cywgewogICAgICAgICAgICAgIGZvcm1hdDogImxvbmciLAogICAgICAgICAgICAgIGxvY2FsZTogdGhpcy5sb2NhbGUKICAgICAgICAgICAgfSk7CiAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICByZXR1cm4gbnVsbDsKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICogR2V0IHdoZXRoZXIgdGhpcyB6b25lJ3Mgb2Zmc2V0IGV2ZXIgY2hhbmdlcywgYXMgaW4gYSBEU1QuCiAgICAgICAgICogQHR5cGUge2Jvb2xlYW59CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAiaXNPZmZzZXRGaXhlZCIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gdGhpcy5pc1ZhbGlkID8gdGhpcy56b25lLmlzVW5pdmVyc2FsIDogbnVsbDsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICogR2V0IHdoZXRoZXIgdGhlIERhdGVUaW1lIGlzIGluIGEgRFNULgogICAgICAgICAqIEB0eXBlIHtib29sZWFufQogICAgICAgICAqLwoKICAgICAgfSwgewogICAgICAgIGtleTogImlzSW5EU1QiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgaWYgKHRoaXMuaXNPZmZzZXRGaXhlZCkgewogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICByZXR1cm4gdGhpcy5vZmZzZXQgPiB0aGlzLnNldCh7CiAgICAgICAgICAgICAgbW9udGg6IDEKICAgICAgICAgICAgfSkub2Zmc2V0IHx8IHRoaXMub2Zmc2V0ID4gdGhpcy5zZXQoewogICAgICAgICAgICAgIG1vbnRoOiA1CiAgICAgICAgICAgIH0pLm9mZnNldDsKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICogUmV0dXJucyB0cnVlIGlmIHRoaXMgRGF0ZVRpbWUgaXMgaW4gYSBsZWFwIHllYXIsIGZhbHNlIG90aGVyd2lzZQogICAgICAgICAqIEBleGFtcGxlIERhdGVUaW1lLmxvY2FsKDIwMTYpLmlzSW5MZWFwWWVhciAvLz0+IHRydWUKICAgICAgICAgKiBAZXhhbXBsZSBEYXRlVGltZS5sb2NhbCgyMDEzKS5pc0luTGVhcFllYXIgLy89PiBmYWxzZQogICAgICAgICAqIEB0eXBlIHtib29sZWFufQogICAgICAgICAqLwoKICAgICAgfSwgewogICAgICAgIGtleTogImlzSW5MZWFwWWVhciIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gaXNMZWFwWWVhcih0aGlzLnllYXIpOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiBSZXR1cm5zIHRoZSBudW1iZXIgb2YgZGF5cyBpbiB0aGlzIERhdGVUaW1lJ3MgbW9udGgKICAgICAgICAgKiBAZXhhbXBsZSBEYXRlVGltZS5sb2NhbCgyMDE2LCAyKS5kYXlzSW5Nb250aCAvLz0+IDI5CiAgICAgICAgICogQGV4YW1wbGUgRGF0ZVRpbWUubG9jYWwoMjAxNiwgMykuZGF5c0luTW9udGggLy89PiAzMQogICAgICAgICAqIEB0eXBlIHtudW1iZXJ9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAiZGF5c0luTW9udGgiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIGRheXNJbk1vbnRoKHRoaXMueWVhciwgdGhpcy5tb250aCk7CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIFJldHVybnMgdGhlIG51bWJlciBvZiBkYXlzIGluIHRoaXMgRGF0ZVRpbWUncyB5ZWFyCiAgICAgICAgICogQGV4YW1wbGUgRGF0ZVRpbWUubG9jYWwoMjAxNikuZGF5c0luWWVhciAvLz0+IDM2NgogICAgICAgICAqIEBleGFtcGxlIERhdGVUaW1lLmxvY2FsKDIwMTMpLmRheXNJblllYXIgLy89PiAzNjUKICAgICAgICAgKiBAdHlwZSB7bnVtYmVyfQogICAgICAgICAqLwoKICAgICAgfSwgewogICAgICAgIGtleTogImRheXNJblllYXIiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIHRoaXMuaXNWYWxpZCA/IGRheXNJblllYXIodGhpcy55ZWFyKSA6IE5hTjsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICogUmV0dXJucyB0aGUgbnVtYmVyIG9mIHdlZWtzIGluIHRoaXMgRGF0ZVRpbWUncyB5ZWFyCiAgICAgICAgICogQHNlZSBodHRwczovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9JU09fd2Vla19kYXRlCiAgICAgICAgICogQGV4YW1wbGUgRGF0ZVRpbWUubG9jYWwoMjAwNCkud2Vla3NJbldlZWtZZWFyIC8vPT4gNTMKICAgICAgICAgKiBAZXhhbXBsZSBEYXRlVGltZS5sb2NhbCgyMDEzKS53ZWVrc0luV2Vla1llYXIgLy89PiA1MgogICAgICAgICAqIEB0eXBlIHtudW1iZXJ9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAid2Vla3NJbldlZWtZZWFyIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiB0aGlzLmlzVmFsaWQgPyB3ZWVrc0luV2Vla1llYXIodGhpcy53ZWVrWWVhcikgOiBOYU47CiAgICAgICAgfQogICAgICB9XSwgW3sKICAgICAgICBrZXk6ICJEQVRFX1NIT1JUIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiBEQVRFX1NIT1JUOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiB7QGxpbmsgRGF0ZVRpbWUudG9Mb2NhbGVTdHJpbmd9IGZvcm1hdCBsaWtlICdPY3QgMTQsIDE5ODMnCiAgICAgICAgICogQHR5cGUge09iamVjdH0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJEQVRFX01FRCIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gREFURV9NRUQ7CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIHtAbGluayBEYXRlVGltZS50b0xvY2FsZVN0cmluZ30gZm9ybWF0IGxpa2UgJ0ZyaSwgT2N0IDE0LCAxOTgzJwogICAgICAgICAqIEB0eXBlIHtPYmplY3R9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAiREFURV9NRURfV0lUSF9XRUVLREFZIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiBEQVRFX01FRF9XSVRIX1dFRUtEQVk7CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIHtAbGluayBEYXRlVGltZS50b0xvY2FsZVN0cmluZ30gZm9ybWF0IGxpa2UgJ09jdG9iZXIgMTQsIDE5ODMnCiAgICAgICAgICogQHR5cGUge09iamVjdH0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJEQVRFX0ZVTEwiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIERBVEVfRlVMTDsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICoge0BsaW5rIERhdGVUaW1lLnRvTG9jYWxlU3RyaW5nfSBmb3JtYXQgbGlrZSAnVHVlc2RheSwgT2N0b2JlciAxNCwgMTk4MycKICAgICAgICAgKiBAdHlwZSB7T2JqZWN0fQogICAgICAgICAqLwoKICAgICAgfSwgewogICAgICAgIGtleTogIkRBVEVfSFVHRSIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gREFURV9IVUdFOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiB7QGxpbmsgRGF0ZVRpbWUudG9Mb2NhbGVTdHJpbmd9IGZvcm1hdCBsaWtlICcwOTozMCBBTScuIE9ubHkgMTItaG91ciBpZiB0aGUgbG9jYWxlIGlzLgogICAgICAgICAqIEB0eXBlIHtPYmplY3R9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAiVElNRV9TSU1QTEUiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIFRJTUVfU0lNUExFOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiB7QGxpbmsgRGF0ZVRpbWUudG9Mb2NhbGVTdHJpbmd9IGZvcm1hdCBsaWtlICcwOTozMDoyMyBBTScuIE9ubHkgMTItaG91ciBpZiB0aGUgbG9jYWxlIGlzLgogICAgICAgICAqIEB0eXBlIHtPYmplY3R9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAiVElNRV9XSVRIX1NFQ09ORFMiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIFRJTUVfV0lUSF9TRUNPTkRTOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiB7QGxpbmsgRGF0ZVRpbWUudG9Mb2NhbGVTdHJpbmd9IGZvcm1hdCBsaWtlICcwOTozMDoyMyBBTSBFRFQnLiBPbmx5IDEyLWhvdXIgaWYgdGhlIGxvY2FsZSBpcy4KICAgICAgICAgKiBAdHlwZSB7T2JqZWN0fQogICAgICAgICAqLwoKICAgICAgfSwgewogICAgICAgIGtleTogIlRJTUVfV0lUSF9TSE9SVF9PRkZTRVQiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIFRJTUVfV0lUSF9TSE9SVF9PRkZTRVQ7CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIHtAbGluayBEYXRlVGltZS50b0xvY2FsZVN0cmluZ30gZm9ybWF0IGxpa2UgJzA5OjMwOjIzIEFNIEVhc3Rlcm4gRGF5bGlnaHQgVGltZScuIE9ubHkgMTItaG91ciBpZiB0aGUgbG9jYWxlIGlzLgogICAgICAgICAqIEB0eXBlIHtPYmplY3R9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAiVElNRV9XSVRIX0xPTkdfT0ZGU0VUIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiBUSU1FX1dJVEhfTE9OR19PRkZTRVQ7CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIHtAbGluayBEYXRlVGltZS50b0xvY2FsZVN0cmluZ30gZm9ybWF0IGxpa2UgJzA5OjMwJywgYWx3YXlzIDI0LWhvdXIuCiAgICAgICAgICogQHR5cGUge09iamVjdH0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJUSU1FXzI0X1NJTVBMRSIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gVElNRV8yNF9TSU1QTEU7CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIHtAbGluayBEYXRlVGltZS50b0xvY2FsZVN0cmluZ30gZm9ybWF0IGxpa2UgJzA5OjMwOjIzJywgYWx3YXlzIDI0LWhvdXIuCiAgICAgICAgICogQHR5cGUge09iamVjdH0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJUSU1FXzI0X1dJVEhfU0VDT05EUyIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gVElNRV8yNF9XSVRIX1NFQ09ORFM7CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIHtAbGluayBEYXRlVGltZS50b0xvY2FsZVN0cmluZ30gZm9ybWF0IGxpa2UgJzA5OjMwOjIzIEVEVCcsIGFsd2F5cyAyNC1ob3VyLgogICAgICAgICAqIEB0eXBlIHtPYmplY3R9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAiVElNRV8yNF9XSVRIX1NIT1JUX09GRlNFVCIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gVElNRV8yNF9XSVRIX1NIT1JUX09GRlNFVDsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICoge0BsaW5rIERhdGVUaW1lLnRvTG9jYWxlU3RyaW5nfSBmb3JtYXQgbGlrZSAnMDk6MzA6MjMgRWFzdGVybiBEYXlsaWdodCBUaW1lJywgYWx3YXlzIDI0LWhvdXIuCiAgICAgICAgICogQHR5cGUge09iamVjdH0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJUSU1FXzI0X1dJVEhfTE9OR19PRkZTRVQiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIFRJTUVfMjRfV0lUSF9MT05HX09GRlNFVDsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICoge0BsaW5rIERhdGVUaW1lLnRvTG9jYWxlU3RyaW5nfSBmb3JtYXQgbGlrZSAnMTAvMTQvMTk4MywgOTozMCBBTScuIE9ubHkgMTItaG91ciBpZiB0aGUgbG9jYWxlIGlzLgogICAgICAgICAqIEB0eXBlIHtPYmplY3R9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAiREFURVRJTUVfU0hPUlQiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIERBVEVUSU1FX1NIT1JUOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiB7QGxpbmsgRGF0ZVRpbWUudG9Mb2NhbGVTdHJpbmd9IGZvcm1hdCBsaWtlICcxMC8xNC8xOTgzLCA5OjMwOjMzIEFNJy4gT25seSAxMi1ob3VyIGlmIHRoZSBsb2NhbGUgaXMuCiAgICAgICAgICogQHR5cGUge09iamVjdH0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJEQVRFVElNRV9TSE9SVF9XSVRIX1NFQ09ORFMiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIERBVEVUSU1FX1NIT1JUX1dJVEhfU0VDT05EUzsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICoge0BsaW5rIERhdGVUaW1lLnRvTG9jYWxlU3RyaW5nfSBmb3JtYXQgbGlrZSAnT2N0IDE0LCAxOTgzLCA5OjMwIEFNJy4gT25seSAxMi1ob3VyIGlmIHRoZSBsb2NhbGUgaXMuCiAgICAgICAgICogQHR5cGUge09iamVjdH0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJEQVRFVElNRV9NRUQiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIERBVEVUSU1FX01FRDsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICoge0BsaW5rIERhdGVUaW1lLnRvTG9jYWxlU3RyaW5nfSBmb3JtYXQgbGlrZSAnT2N0IDE0LCAxOTgzLCA5OjMwOjMzIEFNJy4gT25seSAxMi1ob3VyIGlmIHRoZSBsb2NhbGUgaXMuCiAgICAgICAgICogQHR5cGUge09iamVjdH0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJEQVRFVElNRV9NRURfV0lUSF9TRUNPTkRTIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiBEQVRFVElNRV9NRURfV0lUSF9TRUNPTkRTOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiB7QGxpbmsgRGF0ZVRpbWUudG9Mb2NhbGVTdHJpbmd9IGZvcm1hdCBsaWtlICdGcmksIDE0IE9jdCAxOTgzLCA5OjMwIEFNJy4gT25seSAxMi1ob3VyIGlmIHRoZSBsb2NhbGUgaXMuCiAgICAgICAgICogQHR5cGUge09iamVjdH0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJEQVRFVElNRV9NRURfV0lUSF9XRUVLREFZIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiBEQVRFVElNRV9NRURfV0lUSF9XRUVLREFZOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiB7QGxpbmsgRGF0ZVRpbWUudG9Mb2NhbGVTdHJpbmd9IGZvcm1hdCBsaWtlICdPY3RvYmVyIDE0LCAxOTgzLCA5OjMwIEFNIEVEVCcuIE9ubHkgMTItaG91ciBpZiB0aGUgbG9jYWxlIGlzLgogICAgICAgICAqIEB0eXBlIHtPYmplY3R9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAiREFURVRJTUVfRlVMTCIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gREFURVRJTUVfRlVMTDsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICoge0BsaW5rIERhdGVUaW1lLnRvTG9jYWxlU3RyaW5nfSBmb3JtYXQgbGlrZSAnT2N0b2JlciAxNCwgMTk4MywgOTozMDozMyBBTSBFRFQnLiBPbmx5IDEyLWhvdXIgaWYgdGhlIGxvY2FsZSBpcy4KICAgICAgICAgKiBAdHlwZSB7T2JqZWN0fQogICAgICAgICAqLwoKICAgICAgfSwgewogICAgICAgIGtleTogIkRBVEVUSU1FX0ZVTExfV0lUSF9TRUNPTkRTIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiBEQVRFVElNRV9GVUxMX1dJVEhfU0VDT05EUzsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICoge0BsaW5rIERhdGVUaW1lLnRvTG9jYWxlU3RyaW5nfSBmb3JtYXQgbGlrZSAnRnJpZGF5LCBPY3RvYmVyIDE0LCAxOTgzLCA5OjMwIEFNIEVhc3Rlcm4gRGF5bGlnaHQgVGltZScuIE9ubHkgMTItaG91ciBpZiB0aGUgbG9jYWxlIGlzLgogICAgICAgICAqIEB0eXBlIHtPYmplY3R9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiA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AgICAgICAgZmxhdE1hcChmKSB7DQogICAgICAgICAgICByZXR1cm4gZih0aGlzLnZhbHVlKTsNCiAgICAgICAgfQ0KICAgICAgICBvckVsc2UoX3ZhbHVlKSB7DQogICAgICAgICAgICByZXR1cm4gdGhpcy52YWx1ZTsNCiAgICAgICAgfQ0KICAgICAgICBvckVsc2VUaHJvdyhfbWVzc2FnZSkgew0KICAgICAgICAgICAgcmV0dXJuIHRoaXMudmFsdWU7DQogICAgICAgIH0NCiAgICB9DQogICAgY2xhc3MgRmFpbHVyZSB7DQogICAgICAgIGNvbnN0cnVjdG9yKGVycm9yKSB7DQogICAgICAgICAgICB0aGlzLmVycm9yID0gZXJyb3I7DQogICAgICAgICAgICB0aGlzLnN1Y2Nlc3NmdWwgPSBmYWxzZTsNCiAgICAgICAgfQ0KICAgICAgICBtYXAoX2YpIHsNCiAgICAgICAgICAgIHJldHVybiB0aGlzOw0KICAgICAgICB9DQogICAgICAgIGZsYXRNYXAoX2YpIHsNCiAgICAgICAgICAgIHJldHVybiB0aGlzOw0KICAgICAgICB9DQogICAgICAgIG9yRWxzZSh2YWx1ZSkgew0KICAgICAgICAgICAgcmV0dXJuIHZhbHVlOw0KICAgICAgICB9DQogICAgICAgIG9yRWxzZVRocm93KG1lc3NhZ2UpIHsNCiAgICAgICAgICAgIGlmIChtZXNzYWdlKQ0KICAgICAgICAgICAgICAgIHRocm93IG5ldyBFcnJvcihtZXNzYWdlKHRoaXMuZXJyb3IpKTsNCiAgICAgICAgICAgIGVsc2UNCiAgICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IoIiIgKyB0aGlzLmVycm9yKTsNCiAgICAgICAgfQ0KICAgIH0NCiAgICB2YXIgUmVzdWx0Ow0KICAgIChmdW5jdGlvbiAoUmVzdWx0KSB7DQogICAgICAgIGZ1bmN0aW9uIHN1Y2Nlc3ModmFsdWUpIHsNCiAgICAgICAgICAgIHJldHVybiBuZXcgU3VjY2Vzcyh2YWx1ZSk7DQogICAgICAgI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QgbGFzdFdhc1doaXRlc3BhY2UgPSBmYWxzZTsNCiAgICAgICAgZm9yIChsZXQgaW5kZXggPSAwOyBpbmRleCA8IG5hbWUubGVuZ3RoOyBpbmRleCsrKSB7DQogICAgICAgICAgICBsZXQgY2ggPSBuYW1lW2luZGV4XTsNCiAgICAgICAgICAgIGlmIChjaC5tYXRjaChXSElURVNQQUNFKSkgew0KICAgICAgICAgICAgICAgIGlmICghbGFzdFdhc1doaXRlc3BhY2UpDQogICAgICAgICAgICAgICAgICAgIHJlc3VsdCArPSAiLSI7DQogICAgICAgICAgICAgICAgbGFzdFdhc1doaXRlc3BhY2UgPSB0cnVlOw0KICAgICAgICAgICAgICAgIGNvbnRpbnVlOw0KICAgICAgICAgICAgfQ0KICAgICAgICAgICAgbGFzdFdhc1doaXRlc3BhY2UgPSBmYWxzZTsNCiAgICAgICAgICAgIGlmICghY2gubWF0Y2goQUxMT1dBQkxFX1ZBUl9DSEFSQUNURVJTKSkNCiAgICAgICAgICAgICAgICBjb250aW51ZTsNCiAgICAgICAgICAgIHJlc3VsdCArPSBjaC50b0xvY2FsZUxvd2VyQ2FzZSgpOw0KICAgICAgICB9DQogICAgICAgIHJldHVybiByZXN1bHQ7DQogICAgfQoKICAgIC8vLy8vLy8vLy8vLy8vLy8vLy8vDQogICAgLy8gUXVlcnkgU2V0dGluZ3MgLy8NCiAgICAvLy8vLy8vLy8vLy8vLy8vLy8vLw0KICAgIGNvbnN0IERFRkFVTFRfUVVFUllfU0VUVElOR1MgPSB7DQogICAgICAgIHJlbmRlck51bGxBczogIlxcLSIsDQogICAgICAgIHdhcm5PbkVtcHR5UmVzdWx0OiB0cnVlLA0KICAgICAgICByZWZyZXNoSW50ZXJ2YWw6IDEwMDAsDQogICAgICAgIGRlZmF1bHREYXRlRm9ybWF0OiAiTU1NTSBkZCwgeXl5eSIsDQogICAgICAgIGRlZmF1bHREYXRlVGltZUZvcm1hdDogImg6bW0gYSAtIE1NTU0gZGQsIHl5eXkiLA0KICA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F0aWMgZnJvbU9iamVjdChvYmopIHsNCiAgICAgICAgICAgIHJldHVybiBuZXcgVGFzayhvYmopOw0KICAgICAgICB9DQogICAgICAgIGxpbmsoKSB7DQogICAgICAgICAgICByZXR1cm4gYCR7dGhpcy5wYXRofSMke3RoaXMuYmxvY2tJZH1gOw0KICAgICAgICB9DQogICAgICAgIGlkKCkgew0KICAgICAgICAgICAgcmV0dXJuIGAke3RoaXMucGF0aH0tJHt0aGlzLmxpbmV9YDsNCiAgICAgICAgfQ0KICAgICAgICBtYXJrZG93bigpIHsNCiAgICAgICAgICAgIGxldCBidWxsZXRDaGFyID0gYC1gOw0KICAgICAgICAgICAgbGV0IHN0YXRlQ2hhciA9IHRoaXMuY29tcGxldGVkID8gIngiIDogIiAiOw0KICAgICAgICAgICAgbGV0IHJlc3VsdCA9IGAke2J1bGxldENoYXJ9IFske3N0YXRlQ2hhcn1dICR7dGhpcy50ZXh0fWA7DQogICAgICAgICAgICByZXR1cm4gcmVzdWx0Ow0KICAgICAgICB9DQogICAgICAgIHRvT2JqZWN0KCkgew0KICAgICAgICAgICAgbGV0IHJlc3VsdCA9IHsNCiAgICAgICAgICAgICAgICB0ZXh0OiB0aGlzLnRleHQsDQogICAgICAgICAgICAgICAgbGluZTogdGhpcy5saW5lLA0KICAgICAgICAgICAgICAgIHBhdGg6IHRoaXMucGF0aCwNCiAgICAgICAgICAgICAgICBjb21wbGV0ZWQ6IHRoaXMuY29tcGxldGVkLA0KICAgICAgICAgICAgICAgIGZ1bGx5Q29tcGxldGVkOiB0aGlzLmZ1bGx5Q29tcGxldGVkLA0KICAgICAgICAgICAgICAgIHJlYWw6IHRoaXMucmVhbCwNCiAgICAgICAgICAgICAgICBibG9ja0lkOiB0aGlzLmJsb2NrSWQsDQogICAgICAgICAgICAgICAgc3VidGFza3M6IHRoaXMuc3VidGFza3MubWFwKHQgPT4gdC50b09iamVjdCgpKSwNCiAgICAgICAgICAgIH07DQogICAgICAgICAgICBpZiAodGhpcy5jcmVhdGVkRGF0ZSkNCiAgICAgICAgICAgICAgICByZXN1bHQuY3JlYXRlZERhdGUgPSB0aGlzLmNyZWF0ZWREYXRlOw0KICAgICAgICAgICAgaWYgKHRoaXMuZHVlRGF0ZSkNCiAgICAgICAgICAgICAgICByZXN1bHQuZHVlRGF0ZSA9IHRoaXMuZHVlRGF0ZTsNCiAgICAgICAgICAgIGlmICh0aGlzLmNvbXBsZXRlZERhdGUpDQogICAgICAgICAgICAgICAgcmVzdWx0LmNvbXBsZXRlZERhdGUgPSB0aGlzLmNvbXBsZXRlZERhdGU7DQogICAgICAgICAgICByZXR1cm4gcmVzdWx0Ow0KICAgICAgICB9DQogICAgfQ0KICAgIC8qKiBBbiBPYnNpZGlhbiBsaW5rIHdpdGggYWxsIGFzc29jaWF0ZWQgbWV0YWRhdGEuICovDQogICAgY2xhc3MgTGluayB7DQogICAgICAgIGNvbnN0cnVjdG9yKGZpZWxkcykgew0KICAgICAgICAgICAgT2JqZWN0LmFzc2lnbih0aGlzLCBmaWVsZHMpOw0KICAgICAgICB9DQogICAgICAgIHN0YXRpYyBmaWxlKHBhdGgsIGVtYmVkID0gZmFsc2UsIGRpc3BsYXkpIHsNCiAgICAgICAgICAgIHJldHVybiBuZXcgTGluayh7DQogICAgICAgICAgICAgICAgcGF0aCwNCiAgICAgICAgICAgICAgICBlbWJlZCwNCiAgICAgICAgICAgICAgICBkaXNwbGF5LA0KICAgICAgICAgICAgICAgIHR5cGU6ICJmaWxlIiwNCiAgICAgICAgICAgIH0pOw0KICAgICAgICB9DQogICAgICAgIHN0YXRpYyBoZWFkZXIocGF0aCwgaGVhZGVyLCBlbWJlZCwgZGlzcGxheSkgew0KICAgICAgICAgICAgcmV0dXJuIG5ldyBMaW5rKHsNCiAgICAgICAgICAgICAgICBwYXRoLA0KICAgICAgICAgICAgICAgIGVtYmVkLA0KICAgICAgICAgICAgICAgIGRpc3BsYXksDQogICAgICAgICAgICAgICAgc3VicGF0aDogaGVhZGVyLA0KICAgICAgICAgICAgICAgIHR5cGU6ICJoZWFkZXIiLA0KICAgICAgICAgICAgfSk7DQogICAgICAgIH0NCiAgICAgICAgc3RhdGljIGJsb2NrKHBhdGgsIGJsb2NrSWQsIGVtYmVkLCBkaXNwbGF5KSB7DQogICAgICAgICAgICByZXR1cm4gbmV3IExpbmsoew0KICAgICAgICAgICAgICAgIHBhdGgsDQogICAgICAgICAgICAgICAgZW1iZWQsDQogICAgICAgICAgICAgICAgZGlzcGxheSwNCiAgICAgICAgICAgICAgICBzdWJwYXRoOiBibG9ja0lkLA0KICAgICAgICAgICAgICAgIHR5cGU6ICJibG9jayIsDQogICAgICAgICAgICB9KTsNCiAgICAgICAgfQ0KICAgICAgICBzdGF0aWMgZnJvbU9iamVjdChvYmplY3QpIHsNCiAgICAgICAgICAgIHJldHVybiBuZXcgTGluayhvYmplY3QpOw0KICAgICAgICB9DQogICAgICAgIGVxdWFscyhvdGhlcikgew0KICAgICAgICAgICAgcmV0dXJuIHRoaXMucGF0aCA9PSBvdGhlci5wYXRoICYmIHRoaXMudHlwZSA9PSBvdGhlci50eXBlICYmIHRoaXMuc3VicGF0aCA9PSBvdGhlci5zdWJwYXRoOw0KICAgICAgICB9DQogICAgICAgIHRvU3RyaW5nKCkgew0KICAgICAgICAgICAgcmV0dXJuIHRoaXMubWFya2Rvd24oKTsNCiAgICAgICAgfQ0KICAgICAgICAvKiogQ29udmVydCB0aGlzIGxpbmsgdG8gYSByYXcgb2JqZWN0IHdoaWNoICovDQogICAgICAgIHRvT2JqZWN0KCkgew0KICAgICAgICAgICAgcmV0dXJuIHsgcGF0aDogdGhpcy5wYXRoLCB0eXBlOiB0aGlzLnR5cGUsIHN1YnBhdGg6IHRoaXMuc3VicGF0aCwgZGlzcGxheTogdGhpcy5kaXNwbGF5LCBlbWJlZDogdGhpcy5lbWJlZCB9Ow0KICAgICAgICB9DQogICAgICAgIC8qKiBSZXR1cm4gYSBuZXcgbGluayB3aGljaCBwb2ludHMgdG8gdGhlIHNhbWUgbG9jYXRpb24gYnV0IHdpdGggYSBuZXcgZGlzcGxheSB2YWx1ZS4gKi8NCiAgICAgICAgd2l0aERpc3BsYXkoZGlzcGxheSkgew0KICAgICAgICAgICAgcmV0dXJuIG5ldyBMaW5rKE9iamVjdC5hc3NpZ24oe30sIHRoaXMsIHsgZGlzcGxheSB9KSk7DQogICAgICAgIH0NCiAgICAgICAgLyoqIENvbnZlcnQgdGhpcyBsaW5rIHRvIG1hcmtkb3duIHNvIGl0IGNhbiBiZSByZW5kZXJlZC4gKi8NCiAgICAgICAgbWFya2Rvd24oKSB7DQogICAgICAgICAgICBsZXQgcmVzdWx0ID0gKHRoaXMuZW1iZWQgPyAiISIgOiAiIikgKyAiW1siICsgdGhpcy5wYXRoOw0KICAgICAgICAgICAgaWYgKHRoaXMudHlwZSA9PSAiaGVhZGVyIikNCiAgICAgICAgICAgICAgICByZXN1bHQgKz0gIiMiICsgdGhpcy5zdWJwYXRoOw0KICAgICAgICAgICAgZWxzZSBpZiAodGhpcy50eXBlID09ICJibG9jayIpDQogICAgICAgICAgICAgICAgcmVzdWx0ICs9ICJeIiArIHRoaXMuc3VicGF0aDsNCiAgICAgICAgICAgIGlmICh0aGlzLmRpc3BsYXkgJiYgIXRoaXMuZW1iZWQpDQogICAgICAgICAgICAgICAgcmVzdWx0ICs9ICJ8IiArIHRoaXMuZGlzcGxheTsNCiAgICAgICAgICAgIGVsc2UgaWYgKCF0aGlzLmVtYmVkKQ0KICAgICAgICAgICAgICAgIHJlc3VsdCArPSAifCIgKyBnZXRGaWxlVGl0bGUodGhpcy5wYXRoKTsNCiAgICAgICAgICAgIHJlc3VsdCArPSAiXV0iOw0KICAgICAgICAgICAgcmV0dXJuIHJlc3VsdDsNCiAgICAgICAgfQ0KICAgICAgICAvKiogVGhlIHN0cmlwcGVkIG5hbWUgb2YgdGhlIGZpbGUgdGhpcyBsaW5rIHBvaW50cyBpbnRvLiAqLw0KICAgICAgICBmaWxlTmFtZSgpIHsNCiAgICAgICAgICAgIHJldHVybiBnZXRGaWxlVGl0bGUodGhpcy5wYXRoKS5yZXBsYWNlKCIubWQiLCAiIik7DQogICAgICAgIH0NCiAgICB9DQogICAgdmFyIFZhbHVlczsNCiAgICAoZnVuY3Rpb24gKFZhbHVlcykgew0KICAgICAgICAvKiogQ29udmVydCBhbiBhcmJpdGFyeSB2YWx1ZSBpbnRvIGEgcmVhc29uYWJsZSwgTWFya2Rvd24tZnJpZW5kbHkgc3RyaW5nIGlmIHBvc3NpYmxlLiAqLw0KICAgICAgICBmdW5jdGlvbiB0b1N0cmluZyhmaWVsZCwgc2V0dGluZyA9IERFRkFVTFRfUVVFUllfU0VUVElOR1MsIHJlY3Vyc2l2ZSA9IGZhbHNlKSB7DQogICAgICAgICAgICBsZXQgd3JhcHBlZCA9IHdyYXBWYWx1ZShmaWVsZCk7DQogICAgICAgICAgICBpZiAoIXdyYXBwZWQpDQogICAgICAgICAgICAgICAgcmV0dXJuICJudWxsIjsNCiAgICAgICAgICAgIHN3aXRjaCAod3JhcHBlZC50eXBlKSB7DQogICAgICAgICAgICAgICAgY2FzZSAic3RyaW5nIjoNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHdyYXBwZWQudmFsdWU7DQogICAgICAgICAgICAgICAgY2FzZSAibnVtYmVyIjoNCiAgICAgICAgICAgICAgICBjYXNlICJib29sZWFuIjoNCiAgICAgICAgICAgICAgICBjYXNlICJodG1sIjoNCiAgICAgICAgICAgICAgICBjYXNlICJudWxsIjoNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuICIiICsgd3JhcHBlZC52YWx1ZTsNCiAgICAgICAgICAgICAgICBjYXNlICJsaW5rIjoNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHdyYXBwZWQudmFsdWUubWFya2Rvd24oKTsNCiAgICAgICAgICAgICAgICBjYXNlICJ0YXNrIjoNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHdyYXBwZWQudmFsdWUubWFya2Rvd24oKTsNCiAgICAgICAgICAgICAgICBjYXNlICJmdW5jdGlvbiI6DQogICAgICAgICAgICAgICAgICAgIHJldHVybiAiPGZ1bmN0aW9uPiI7DQogICAgICAgICAgICAgICAgY2FzZSAiYXJyYXkiOg0KICAgICAgICAgICAgICAgICAgICBsZXQgcmVzdWx0ID0gIiI7DQogICAgICAgICAgICAgICAgICAgIGlmIChyZWN1cnNpdmUpDQogICAgICAgICAgICAgICAgICAgICAgICByZXN1bHQgKz0gIlsiOw0KICAgICAgICAgICAgICAgICAgICByZXN1bHQgKz0gd3JhcHBlZC52YWx1ZS5tYXAoZiA9PiB0b1N0cmluZyhmLCBzZXR0aW5nLCB0cnVlKSkuam9pbigiLCAiKTsNCiAgICAgICAgICAgICAgICAgICAgaWYgKHJlY3Vyc2l2ZSkNCiAgICAgICAgICAgICAgICAgICAgICAgIHJlc3VsdCArPSAiXSI7DQogICAgICAgICAgICAgICAgICAgIHJldHVybiByZXN1bHQ7DQogICAgICAgICAgICAgICAgY2FzZSAib2JqZWN0IjoNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuICgieyAiICsNCiAgICAgICAgICAgICAgICAgICAgICAgIE9iamVjdC5lbnRyaWVzKHdyYXBwZWQudmFsdWUpDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgLm1hcChlID0+IGVbMF0gKyAiOiAiICsgdG9TdHJpbmcoZVsxXSwgc2V0dGluZywgdHJ1ZSkpDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgLmpvaW4oIiwgIikgKw0KICAgICAgICAgICAgICAgICAgICAgICAgIiB9Iik7DQogICAgICAgICAgICAgICAgY2FzZSAiZGF0ZSI6DQogICAgICAgICAgICAgICAgICAgIGlmICh3cmFwcGVkLnZhbHVlLnNlY29uZCA9PSAwICYmIHdyYXBwZWQudmFsdWUuaG91ciA9PSAwICYmIHdyYXBwZWQudmFsdWUubWludXRlID09IDApIHsNCiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB3cmFwcGVkLnZhbHVlLnRvRm9ybWF0KHNldHRpbmcuZGVmYXVsdERhdGVGb3JtYXQpOw0KICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICAgIHJldHVybiB3cmFwcGVkLnZhbHVlLnRvRm9ybWF0KHNldHRpbmcuZGVmYXVsdERhdGVUaW1lRm9ybWF0KTsNCiAgICAgICAgICAgICAgICBjYXNlICJkdXJhdGlvbiI6DQogICAgICAgICAgICAgICAgICAgIHJldHVybiB3cmFwcGVkLnZhbHVlLnRvSVNPVGltZSgpOw0KICAgICAgICAgICAgfQ0KICAgICAgICB9DQogICAgICAgIFZhbHVlcy50b1N0cmluZyA9IHRvU3RyaW5nOw0KICAgICAgICAvKiogV3JhcCBhIGxpdGVyYWwgdmFsdWUgc28geW91IGNhbiBzd2l0Y2ggb24gaXQgZWFzaWx5LiAqLw0KICAgICAgICBmdW5jdGlvbiB3cmFwVmFsdWUodmFsKSB7DQogICAgICAgICAgICBpZiAoaXNOdWxsKHZhbCkpDQogICAgICAgICAgICAgICAgcmV0dXJuIHsgdHlwZTogIm51bGwiLCB2YWx1ZTogdmFsIH07DQogICAgICAgICAgICBlbHNlIGlmIChpc051bWJlcih2YWwpKQ0KICAgICAgICAgICAgICAgIHJldHVybiB7IHR5cGU6ICJudW1iZXIiLCB2YWx1ZTogdmFsIH07DQogICAgICAgICAgICBlbHNlIGlmIChpc1N0cmluZyh2YWwpKQ0KICAgICAgICAgICAgICAgIHJldHVybiB7IHR5cGU6ICJzdHJpbmciLCB2YWx1ZTogdmFsIH07DQogICAgICAgICAgICBlbHNlIGlmIChpc0Jvb2xlYW4odmFsKSkNCiAgICAgICAgICAgICAgICByZXR1cm4geyB0eXBlOiAiYm9vbGVhbiIsIHZhbHVlOiB2YWwgfTsNCiAgICAgICAgICAgIGVsc2UgaWYgKGlzRHVyYXRpb24odmFsKSkNCiAgICAgICAgICAgICAgICByZXR1cm4geyB0eXBlOiAiZHVyYXRpb24iLCB2YWx1ZTogdmFsIH07DQogICAgICAgICAgICBlb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i8NCiAgICAgICAgZnVuY3Rpb24gY29tcGFyZVZhbHVlKHZhbDEsIHZhbDIsIGxpbmtOb3JtYWxpemVyKSB7DQogICAgICAgICAgICAvLyBIYW5kbGUgdW5kZWZpbmVkL251bGxzIGZpcnN0Lg0KICAgICAgICAgICAgaWYgKHZhbDEgPT09IHVuZGVmaW5lZCkNCiAgICAgICAgICAgICAgICB2YWwxID0gbnVsbDsNCiAgICAgICAgICAgIGlmICh2YWwyID09PSB1bmRlZmluZWQpDQogICAgICAgICAgICAgICAgdmFsMiA9IG51bGw7DQogICAgICAgICAgICBpZiAodmFsMSA9PT0gbnVsbCAmJiB2YWwyID09PSBudWxsKQ0KICAgICAgICAgICAgICAgIHJldHVybiAwOw0KICAgICAgICAgICAgZWxzZSBpZiAodmFsMSA9PT0gbnVsbCkNCiAgICAgICAgICAgICAgICByZXR1cm4gLTE7DQogICAgICAgICAgICBlbHNlIGlmICh2YWwyID09PSBudWxsKQ0KICAgICAgICAgICAgICAgIHJldHVybiAxOw0KICAgICAgICAgICAgLy8gQSBub24tbnVsbCB2YWx1ZSBub3cgd2hpY2ggd2UgY2FuIHdyYXAgJiBjb21wYXJlIG9uLg0KICAgICAgICAgICAgbGV0IHdyYXAxID0gd3JhcFZhbHVlKHZhbDEpOw0KICAgICAgICAgICAgbGV0IHdyYXAyID0gd3JhcFZhbHVlKHZhbDIpOw0KICAgICAgICAgICAgaWYgKHdyYXAxID09PSB1bmRlZmluZWQgJiYgd3JhcDIgPT09IHVuZGVmaW5lZCkNCiAgICAgICAgICAgICAgICByZXR1cm4gMDsNCiAgICAgICAgICAgIGVsc2UgaWYgKHdyYXAxID09PSB1bmRlZmluZWQpDQogICAgICAgICAgICAgICAgcmV0dXJuIC0xOw0KICAgICAgICAgICAgZWxzZSBpZiAod3JhcDIgPT09IHVuZGVmaW5lZCkNCiAgICAgICAgICAgICAgICByZXR1cm4gMTsNCiAgICAgICAgICAgIGlmICh3cmFwMS50eXBlICE9IHdyYXAyLnR5cGUpDQogICAgICAgICAgICAgICAgcmV0dXJuIHdyYXAxLnR5cGUubG9jYWxlQ29tcGFyZSh3cmFwMi50eXBlKTsNCiAgICAgICAgICAgIHN3aXRjaCAod3JhcDEudHlwZSkgew0KICAgICAgICAgICAgICAgIGNhc2UgInN0cmluZyI6DQogICAgICAgICAgICAgICAgICAgIHJldHVybiB3cmFwMS52YWx1ZS5sb2NhbGVDb21wYXJlKHdyYXAyLnZhbHVlKTsNCiAgICAgICAgICAgICAgICBjYXNlICJudW1iZXIiOg0KICAgICAgICAgICAgICAgICAgICBpZiAod3JhcDEudmFsdWUgPCB3cmFwMi52YWx1ZSkNCiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAtMTsNCiAgICAgICAgICAgICAgICAgICAgZWxzZSBpZiAod3JhcDEudmFsdWUgPT0gd3JhcDIudmFsdWUpDQogICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gMDsNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIDE7DQogICAgICAgICAgICAgICAgY2FzZSAibnVsbCI6DQogICAgICAgICAgICAgICAgICAgIHJldHVybiAwOw0KICAgICAgICAgICAgICAgIGNhc2UgImJvb2xlYW4iOg0KICAgICAgICAgICAgICAgICAgICBpZiAod3JhcDEudmFsdWUgPT0gd3JhcDIudmFsdWUpDQogICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gMDsNCiAgICAgICAgICAgICAgICAgICAgZWxzZQ0KICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHdyYXAxLnZhbHVlID8gMSA6IC0xOw0KICAgICAgICAgICAgICAgIGNhc2UgImxpbmsiOg0KICAgICAgICAgICAgICAgICAgICBsZXQgbGluazEgPSB3cmFwMS52YWx1ZTsNCiAgICAgICAgICAgICAgICAgICAgbGV0IGxpbmsyID0gd3JhcDIudmFsdWU7DQogICAgICAgICAgICAgICAgICAgIGxldCBub3JtYWxpemUgPSBsaW5rTm9ybWFsaXplciAhPT0gbnVsbCAmJiBsaW5rTm9ybWFsaXplciAhPT0gdm9pZCAwID8gbGlua05vcm1hbGl6ZXIgOiAoKHgpID0+IHgpOw0KICAgICAgICAgICAgICAgICAgICAvLyBXZSBjYW4ndCBjb21wYXJlIGJ5IGZpbGUgbmFtZSBvciBkaXNwbGF5LCBzaW5jZSB0aGF0IHdvdWxkIGJyZWFrIGxpbmsgZXF1YWxpdHkuDQogICAgICAgICAgICAgICAgICAgIHJldHVybiBub3JtYWxpemUobGluazEucGF0aCkubG9jYWxlQ29tcGFyZShub3JtYWxpemUobGluazIucGF0aCkpOw0KICAgICAgICAgICAgICAgIGNhc2UgInRhc2siOg0KICAgICAgICAgICAgICAgICAgICBsZXQgdGFzazEgPSB3cmFwMS52YWx1ZTsNCiAgICAgICAgICAgICAgICAgICAgbGV0IHRhc2syID0gd3JhcDIudmFsdWU7DQogICAgICAgICAgICAgICAgICAgIC8vIFVzZSBvYmplY3QgY29tcGFyaXNvbiAmIGNvbXBhcmUgdGhlIHVuaXF1ZSBpZGVudGlmaWVycyAocGF0aCwgbGluZSwgYW5kIHRleHQgYXMgYmFja3VwKS4NCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGNvbXBhcmVWYWx1ZSh7IHBhdGg6IHRhc2sxLnBhdGgsIGxpbmU6IHRhc2sxLmxpbmUsIHRleHQ6IHRhc2sxLnRleHQgfSwgeyBwYXRoOiB0YXNrMi5wYXRoLCBsaW5lOiB0YXNrMi5saW5lLCB0ZXh0OiB0YXNrMi50ZXh0IH0pOw0KICAgICAgICAgICAgICAgIGNhc2UgImRhdGUiOg0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gd3JhcDEudmFsdWUgPCB3cmFwMi52YWx1ZQ0KICAgICAgICAgICAgICAgICAgICAgICAgPyAtMQ0KICAgICAgICAgICAgICAgICAgICAgICAgOiB3cmFwMS52YWx1ZS5lcXVhbHMod3JhcDIudmFsdWUpDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgPyAwDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgOiAxOw0KICAgICAgICAgICAgICAgIGNhc2UgImR1cmF0aW9uIjoNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHdyYXAxLnZhbHVlIDwgd3JhcDIudmFsdWUNCiAgICAgICAgICAgICAgICAgICAgICAgID8gLTENCiAgICAgICAgICAgICAgICAgICAgICAgIDogd3JhcDEudmFsdWUuZXF1YWxzKHdyYXAyLnZhbHVlKQ0KICAgICAgICAgICAgICAgICAgICAgICAgICAgID8gMA0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIDogMTsNCiAgICAgICAgICAgICAgICBjYXNlICJhcnJheSI6DQogICAgICAgICAgICAgICAgICAgIGxldCBmMSA9IHdyYXAxLnZhbHVlOw0KICAgICAgICAgICAgICAgICAgICBsZXQgZjIgPSB3cmFwMi52YWx1ZTsNCiAgICAgICAgICAgICAgICAgICAgZm9yIChsZXQgaW5kZXggPSAwOyBpbmRleCA8IE1hdGgubWluKGYxLmxlbmd0aCwgZjIubGVuZ3RoKTsgaW5kZXgrKykgew0KICAgICAgICAgICAgICAgICAgICAgICAgbGV0IGNvbXAgPSBjb21wYXJlVmFsdWUoZjFbaW5kZXhdLCBmMltpbmRleF0pOw0KICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGNvbXAgIT0gMCkNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gY29tcDsNCiAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gZjEubGVuZ3RoIC0gZjIubGVuZ3RoOw0KICAgICAgICAgICAgICAgIGNhc2UgIm9iamVjdCI6DQogICAgICAgICAgICAgICAgICAgIGxldCBvMSA9IHdyYXAxLnZhbHVlOw0KICAgICAgICAgICAgICAgICAgICBsZXQgbzIgPSB3cmFwMi52YWx1ZTsNCiAgICAgICAgICAgICAgICAgICAgbGV0IGsxID0gQXJyYXkuZnJvbShPYmplY3Qua2V5cyhvMSkpOw0KICAgICAgICAgICAgICAgICAgICBsZXQgazIgPSBBcnJheS5mcm9tKE9iamVjdC5rZXlzKG8yKSk7DQogICAgICAgICAgICAgICAgICAgIGsxLnNvcnQoKTsNCiAgICAgICAgICAgICAgICAgICAgazIuc29ydCgpOw0KICAgICAgICAgICAgICAgICAgICBsZXQga2V5Q29tcGFyZSA9IGNvbXBhcmVWYWx1ZShrMSwgazIpOw0KICAgICAgICAgICAgICAgICAgICBpZiAoa2V5Q29tcGFyZSAhPSAwKQ0KICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGtleUNvbXBhcmU7DQogICAgICAgICAgICAgICAgICAgIGZvciAobGV0IGtleSBvZiBrMSkgew0KICAgICAgICAgICAgICAgICAgICAgICAgbGV0IGNvbXAgPSBjb21wYXJlVmFsdWUobzFba2V5XSwgbzJba2V5XSk7DQogICAgICAgICAgICAgICAgICAgICAgICBpZiAoY29tcCAhPSAwKQ0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBjb21wOw0KICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICAgIHJldHVybiAwOw0KICAgICAgICAgICAgICAgIGNhc2UgImh0bWwiOg0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gMDsNCiAgICAgICAgICAgICAgICBjYXNlICJmdW5jdGlvbiI6DQogICAgICAgICAgICAgICAgICAgIHJldHVybiAwOw0KICAgICAgICAgICAgfQ0KICAgICAgICB9DQogICAgICAgIFZhbHVlcy5jb21wYXJlVmFsdWUgPSBjb21wYXJlVmFsdWU7DQogICAgICAgIC8qKiBGaW5kIHRoZSBjb3JyZXNwb25kaW5nIERhdGF2ZWl3IHR5cGUgZm9yIGFuIGFyYml0cmFyeSB2YWx1ZS4gKi8NCiAgICAgICAgZnVuY3Rpb24gdHlwZU9mKHZhbCkgew0KICAgICAgICAgICAgdmFyIF9hOw0KICAgICAgICAgICAgcmV0dXJuIChfYSA9IHdyYXBWYWx1ZSh2YWwpKSA9PT0gbnVsbCB8fCBfYSA9PT0gdm9pZCAwID8gdm9pZCAwIDogX2EudHlwZTsNCiAgICAgICAgfQ0KICAgICAgICBWYWx1ZXMudHlwZU9mID0gdHlwZU9mOw0KICAgICAgICAvKiogRGV0ZXJtaW5lIGlmIHRoZSBnaXZlbiB2YWx1ZSBpcyAidHJ1dGh5IiAoaS5lLiwgaXMgbm9uLW51bGwgYW5kIGhhcyBkYXRhIGluIGl0KS4gKi8NCiAgICAgICAgZnVuY3Rpb24gaXNUcnV0aHkoZmllbGQpIHsNCiAgICAgICAgICAgIGxldCB3cmFwcGVkID0gd3JhcFZhbHVlKGZpZWxkKTsNCiAgICAgICAgICAgIGlmICghd3JhcHBlZCkNCiAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7DQogICAgICAgICAgICBzd2l0Y2ggKHdyYXBwZWQudHlwZSkgew0KICAgICAgICAgICAgICAgIGNhc2UgIm51bWJlciI6DQogICAgICAgICAgICAgICAgICAgIHJldHVybiB3cmFwcGVkLnZhbHVlICE9IDA7DQogICAgICAgICAgICAgICAgY2FzZSAic3RyaW5nIjoNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHdyYXBwZWQudmFsdWUubGVuZ3RoID4gMDsNCiAgICAgICAgICAgICAgICBjYXNlICJib29sZWFuIjoNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHdyYXBwZWQudmFsdWU7DQogICAgICAgICAgICAgICAgY2FzZSAibGluayI6DQogICAgICAgICAgICAgICAgICAgIHJldHVybiAhIXdyYXBwZWQudmFsdWUucGF0aDsNCiAgICAgICAgICAgICAgICBjYXNlICJ0YXNrIjoNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHdyYXBwZWQudmFsdWUudGV4dC5sZW5ndGggPiAwOw0KICAgICAgICAgICAgICAgIGNhc2UgImRhdGUiOg0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gd3JhcHBlZC52YWx1ZS50b01pbGxpcygpICE9IDA7DQogICAgICAgICAgICAgICAgY2FzZSAiZHVyYXRpb24iOg0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gd3JhcHBlZC52YWx1ZS5hcygic2Vjb25kcyIpICE9IDA7DQogICAgICAgICAgICAgICAgY2FzZSAib2JqZWN0IjoNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIE9iamVjdC5rZXlzKHdyYXBwZWQudmFsdWUpLmxlbmd0aCA+IDA7DQogICAgICAgICAgICAgICAgY2FzZSAiYXJyYXkiOg0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gd3JhcHBlZC52YWx1ZS5sZW5ndGggPiAwOw0KICAgICAgICAgICAgICAgIGNhc2UgIm51bGwiOg0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7DQogICAgICAgICAgICAgICAgY2FzZSAiaHRtbCI6DQogICAgICAgICAgICAgICAgICAgIHJldHVybiB0cnVlOw0KICAgICAgICAgICAgICAgIGNhc2UgImZ1bmN0aW9uIjoNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRydWU7DQogICAgICAgICAgICB9DQogICAgICAgIH0NCiAgICAgICAgVmFsdWVzLmlzVHJ1dGh5ID0gaXNUcnV0aHk7DQogICAgICAgIC8qKiBEZWVwIGNvcHkgYSBmaWVsZC4gKi8NCiAgICAgICAgZnVuY3Rpb24gZGVlcENvcHkoZmllbGQpIHsNCiAgICAgICAgICAgIGlmIChmaWVsZCA9PT0gbnVsbCB8fCBmaWVsZCA9PT0gdW5kZWZpbmVkKQ0KICAgICAgICAgICAgICAgIHJldHVybiBmaWVsZDsNCiAgICAgICAgICAgIGlmIChWYWx1ZXMuaXNBcnJheShmaWVsZCkpIHsNCiAgICAgICAgICAgICAgICByZXR1cm4gW10uY29uY2F0KGZpZWxkLm1hcCh2ID0+IGRlZXBDb3B5KHYpKSk7DQogICAgICAgICAgICB9DQogICAgICAgICAgICBlbHNlIGlmIChWYWx1ZXMuaXNPYmplY3QoZmllbGQpKSB7DQogICAgICAgICAgICAgICAgbGV0IHJlc3VsdCA9IHt9Ow0KICAgICAgICAgICAgICAgIGZvciAobGV0IFtrZXksIHZhbHVlXSBvZiBPYmplY3QuZW50cmllcyhmaWVsZCkpDQogICAgICAgICAgICAgICAgICAgIHJlc3VsdFtrZXldID0gZGVlcENvcHkodmFsdWUpOw0KICAgICAgICAgICAgICAgIHJldHVybiByZXN1bHQ7DQogICAgICAgICAgICB9DQogICAgICAgICAgICBlbHNlIHsNCiAgICAgICAgICAgICAgICByZXR1cm4gZmllbGQ7DQogICAgICAgICAgICB9DQogICAgICAgIH0NCiAgICAgICAgVmFsdWVzLmRlZXBDb3B5ID0gZGVlcENvcHk7DQogICAgICAgIGZ1bmN0aW9uIGlzU3RyaW5nKHZhbCkgew0KICAgICAgICAgICAgcmV0dXJuIHR5cGVvZiB2YWwgPT0gInN0cmluZyI7DQogICAgICAgIH0NCiAgICAgICAgVmFsdWVzLmlzU3RyaW5nID0gaXNTdHJpbmc7DQogICAgICAgIGZ1bmN0aW9uIGlzTnVtYmVyKHZhbCkgew0KICAgICAgICAgICAgcmV0dXJuIHR5cGVvZiB2YWwgPT0gIm51bWJlciI7DQogICAgICAgIH0NCiAgICAgICAgVmFsdWVzLmlzTnVtYmVyID0gaXNOdW1iZXI7DQogICAgICAgIGZ1bmN0aW9uIGlzRGF0ZSh2YWwpIHsNCiAgICAgICAgICAgIHJldHVybiB2YWwgaW5zdGFuY2VvZiBEYXRlVGltZV8xOw0KICAgICAgICB9DQogICAgICAgIFZhbHVlcy5pc0RhdGUgPSBpc0RhdGU7DQogICAgICAgIGZ1bmN0aW9uIGlzRHVyYXRpb24odmFsKSB7DQogICAgICAgICAgICByZXR1cm4gdmFsIGluc3RhbmNlb2YgRHVyYXRpb25fMTsNCiAgICAgICAgfQ0KICAgICAgICBWYWx1ZXMuaXNEdXJhdGlvbiA9IGlzRHVyYXRpb247DQogICAgICAgIGZ1bmN0aW9uIGlzTnVsbCh2YWwpIHsNCiAgICAgICAgICAgIHJldHVybiB2YWwgPT09IG51bGwgfHwgdmFsID09PSB1bmRlZmluZWQ7DQogICAgICAgIH0NCiAgICAgICAgVmFsdWVzLmlzTnVsbCA9IGlzTnVsbDsNCiAgICAgICAgZnVuY3Rpb24gaXNBcnJheSh2YWwpIHsNCiAgICAgICAgICAgIHJldHVybiBBcnJheS5pc0FycmF5KHZhbCk7DQogICAgICAgIH0NCiAgICAgICAgVmFsdWVzLmlzQXJyYXkgPSBpc0FycmF5Ow0KICAgICAgICBmdW5jdGlvbiBpc0Jvb2xlYW4odmFsKSB7DQogICAgICAgICAgICByZXR1cm4gdHlwZW9mIHZhbCA9PT0gImJvb2xlYW4iOw0KICAgICAgICB9DQogICAgICAgIFZhbHVlcy5pc0Jvb2xlYW4gPSBpc0Jvb2xlYW47DQogICAgICAgIGZ1bmN0aW9uIGlzTGluayh2YWwpIHsNCiAgICAgICAgICAgIHJldHVybiB2YWwgaW5zdGFuY2VvZiBMaW5rOw0KICAgICAgICB9DQogICAgICAgIFZhbHVlcy5pc0xpbmsgPSBpc0xpbms7DQogICAgICAgIGZ1bmN0aW9uIGlzVGFzayh2YWwpIHsNCiAgICAgICAgICAgIHJldHVybiB2YWwgaW5zdGFuY2VvZiBUYXNrOw0KICAgICAgICB9DQogICAgICAgIFZhbHVlcy5pc1Rhc2sgPSBpc1Rhc2s7DQogICAgICAgIGZ1bmN0aW9uIGlzSHRtbCh2YWwpIHsNCiAgICAgICAgICAgIGlmICh0eXBlb2YgSFRNTEVsZW1lbnQgIT09ICJ1bmRlZmluZWQiKSB7DQogICAgICAgICAgICAgICAgcmV0dXJuIHZhbCBpbnN0YW5jZW9mIEhUTUxFbGVtZW50Ow0KICAgICAgICAgICAgfQ0KICAgICAgICAgICAgZWxzZSB7DQogICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlOw0KICAgICAgICAgICAgfQ0KICAgICAgICB9DQogICAgICAgIFZhbHVlcy5pc0h0bWwgPSBpc0h0bWw7DQogICAgICAgIGZ1bmN0aW9uIGlzT2JqZWN0KHZhbCkgew0KICAgICAgICAgICAgcmV0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AgICAgICAgICBjYXNlICJudWxsIjoNCiAgICAgICAgICAgICAgICBjYXNlICJudW1iZXIiOg0KICAgICAgICAgICAgICAgIGNhc2UgInN0cmluZyI6DQogICAgICAgICAgICAgICAgY2FzZSAiYm9vbGVhbiI6DQogICAgICAgICAgICAgICAgICAgIHJldHVybiB3cmFwcGVkLnZhbHVlOw0KICAgICAgICAgICAgICAgIGNhc2UgImRhdGUiOg0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gew0KICAgICAgICAgICAgICAgICAgICAgICAgIl9fX3RyYW5zZmVyLXR5cGUiOiAiZGF0ZSIsDQogICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZTogd3JhcHBlZC52YWx1ZS50b09iamVjdCgpLA0KICAgICAgICAgICAgICAgICAgICAgICAgb3B0aW9uczogeyB6b25lOiB3cmFwcGVkLnZhbHVlLnpvbmVOYW1lIH0sDQogICAgICAgICAgICAgICAgICAgIH07DQogICAgICAgICAgICAgICAgY2FzZSAiZHVyYXRpb24iOg0KICAgICAgICAgICAgICAgICAgICByZXR1cm4geyAiX19fdHJhbnNmZXItdHlwZSI6ICJkdXJhdGlvbiIsIHZhbHVlOiB3cmFwcGVkLnZhbHVlLnRvT2JqZWN0KCkgfTsNCiAgICAgICAgICAgICAgICBjYXNlICJhcnJheSI6DQogICAgICAgICAgICAgICAgICAgIHJldHVybiB3cmFwcGVkLnZhbHVlLm1hcCh2ID0+IHRyYW5zZmVyYWJsZSh2KSk7DQogICAgICAgICAgICAgICAgY2FzZSAib2JqZWN0IjoNCiAgICAgICAgICAgICAgICAgICAgbGV0IHJlc3VsdCA9IHt9Ow0KICAgICAgICAgICAgICAgICAgICBmb3IgKGxldCBba2V5LCB2YWx1ZV0gb2YgT2JqZWN0LmVudHJpZXMod3JhcHBlZC52YWx1ZSkpDQogICAgICAgICAgICAgICAgICAgICAgICByZXN1bHRba2V5XSA9IHRyYW5zZmVyYWJsZSh2YWx1ZSk7DQogICAgICAgICAgICAgICAgICAgIHJldHVybiByZXN1bHQ7DQogICAgICAgICAgICAgICAgY2FzZSAibGluayI6DQogICAgICAgICAgICAgICAgICAgIHJldHVybiB7ICJfX190cmFuc2Zlci10eXBlIjogImxpbmsiLCB2YWx1ZTogd3JhcHBlZC52YWx1ZS50b09iamVjdCgpIH07DQogICAgICAgICAgICAgICAgY2FzZSAidGFzayI6DQogICAgICAgICAgICAgICAgICAgIHJldHVybiB7ICJfX190cmFuc2Zlci10eXBlIjogInRhc2siLCB2YWx1ZTogdHJhbnNmZXJhYmxlKHdyYXBwZWQudmFsdWUudG9PYmplY3QoKSkgfTsNCiAgICAgICAgICAgICAgICBkZWZhdWx0Og0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gdW5kZWZpbmVkOw0KICAgICAgICAgICAgfQ0KICAgICAgICB9DQogICAgICAgIFRyYW5zZmVyYWJsZVZhbHVlcy50cmFuc2ZlcmFibGUgPSB0cmFuc2ZlcmFibGU7DQogICAgICAgIC8qKiBDb252ZXJ0IGEgdHJhbnNmZXJhYmxlIHZhbHVlIGJhY2sgdG8gYSBsaXRlcmFsIHZhbHVlIHdlIGNhbiB3b3JrIHdpdGguICovDQogICAgICAgIGZ1bmN0aW9uIHZhbHVlKHRyYW5zZmVyYWJsZSkgew0KICAgICAgICAgICAgaWYgKHRyYW5zZmVyYWJsZSA9PT0gbnVsbCB8fCB0cmFuc2ZlcmFibGUgPT09IHVuZGVmaW5lZCkgew0KICAgICAgICAgICAgICAgIHJldHVybiBudWxsOw0KICAgICAgICAgICAgfQ0KICAgICAgICAgICAgZWxzZSBpZiAoQXJyYXkuaXNBcnJheSh0cmFuc2ZlcmFibGUpKSB7DQogICAgICAgICAgICAgICAgcmV0dXJuIHRyYW5zZmVyYWJsZS5tYXAodiA9PiB2YWx1ZSh2KSk7DQogICAgICAgICAgICB9DQogICAgICAgICAgICBlbHNlIGlmICh0eXBlb2YgdHJhbnNmZXJhYmxlID09PSAib2JqZWN0Iikgew0KICAgICAgICAgICAgICAgIGlmICgiX19fdHJhbnNmZXItdHlwZSIgaW4gdHJhbnNmZXJhYmxlKSB7DQogICAgICAgICAgICAgICAgICAgIHN3aXRjaCAodHJhbnNmZXJhYmxlWyJfX190cmFuc2Zlci10eXBlIl0pIHsNCiAgICAgICAgICAgICAgICAgICAgICAgIGNhc2UgImRhdGUiOg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBEYXRlVGltZV8xLmZyb21PYmplY3QodmFsdWUodHJhbnNmZXJhYmxlLnZhbHVlKSwgdmFsdWUodHJhbnNmZXJhYmxlLm9wdGlvbnMgfHwge30pKTsNCiAgICAgICAgICAgICAgICAgICAgICAgIGNhc2UgImR1cmF0aW9uIjoNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gRHVyYXRpb25fMS5mcm9tT2JqZWN0KHZhbHVlKHRyYW5zZmVyYWJsZS52YWx1ZSkpOw0KICAgICAgICAgICAgICAgICAgICAgICAgY2FzZSAibGluayI6DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIExpbmsuZnJvbU9iamVjdCh2YWx1ZSh0cmFuc2ZlcmFibGUudmFsdWUpKTsNCiAgICAgICAgICAgICAgICAgICAgICAgIGNhc2UgInRhc2siOg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBUYXNrLmZyb21PYmplY3QodmFsdWUodHJhbnNmZXJhYmxlLnZhbHVlKSk7DQogICAgICAgICAgICAgICAgICAgICAgICBkZWZhdWx0Og0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRocm93IEVycm9yKGBVbnJlY29nbml6ZWQgdHJhbnNmZXIgdHlwZSAnJHt0cmFuc2ZlcmFibGVbIl9fX3RyYW5zZmVyLXR5cGUiXX1gKTsNCiAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICBsZXQgcmVzdWx0ID0ge307DQogICAgICAgICAgICAgICAgZm9yIChsZXQgW2tleSwgdmFsdWVdIG9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iAgICAvKiogVXRpbGl0eSBmdW5jdGlvbnMgZm9yIGNyZWF0aW5nIGFuZCBtYW5pcHVsYXRpbmcgc291cmNlcy4gKi8NCiAgICB2YXIgU291cmNlczsNCiAgICAoZnVuY3Rpb24gKFNvdXJjZXMpIHsNCiAgICAgICAgZnVuY3Rpb24gdGFnKHRhZykgew0KICAgICAgICAgICAgcmV0dXJuIHsgdHlwZTogInRhZyIsIHRhZyB9Ow0KICAgICAgICB9DQogICAgICAgIFNvdXJjZXMudGFnID0gdGFnOw0KICAgICAgICBmdW5jdGlvbiBjc3YocGF0aCkgew0KICAgICAgICAgICAgcmV0dXJuIHsgdHlwZTogImNzdiIsIHBhdGggfTsNCiAgICAgICAgfQ0KICAgICAgICBTb3VyY2VzLmNzdiA9IGNzdjsNCiAgICAgICAgZnVuY3Rpb24gZm9sZGVyKHByZWZpeCkgew0KICAgICAgICAgICAgcmV0dXJuIHsgdHlwZTogImZvbGRlciIsIGZvbGRlcjogcHJlZml4IH07DQogICAgICAgIH0NCiAgICAgICAgU291cmNlcy5mb2xkZXIgPSBmb2xkZXI7DQogICAgICAgIGZ1bmN0aW9uIGxpbmsoZmlsZSwgaW5jb21pbmcpIHsNCiAgICAgICAgICAgIHJldHVybiB7IHR5cGU6ICJsaW5rIiwgZmlsZSwgZGlyZWN0aW9uOiBpbmNvbWluZyA/ICJpbmNvbWluZyIgOiAib3V0Z29pbmciIH07DQogICAgICAgIH0NCiAgICAgICAgU291cmNlcy5saW5rID0gbGluazsNCiAgICAgICAgZnVuY3Rpb24gYmluYXJ5T3AobGVmdCwgb3AsIHJpZ2h0KSB7DQogICAgICAgICAgICByZXR1cm4geyB0eXBlOiAiYmluYXJ5b3AiLCBsZWZ0LCBvcCwgcmlnaHQgfTsNCiAgICAgICAgfQ0KICAgICAgICBTb3VyY2VzLmJpbmFyeU9wID0gYmluYXJ5T3A7DQogICAgICAgIGZ1bmN0aW9uIG5lZ2F0ZShjaGlsZCkgew0KICAgICAgICAgICAgcmV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Muc2VxKHBhcnNpbW1vbl91bWRfbWluLmV4cG9ydHMub3B0V2hpdGVzcGFjZSwgc2VwLCBwYXJzaW1tb25fdW1kX21pbi5leHBvcnRzLm9wdFdoaXRlc3BhY2UsIGNoaWxkKS5tYW55KCksIChmaXJzdCwgcmVzdCkgPT4gew0KICAgICAgICAgICAgaWYgKHJlc3QubGVuZ3RoID09IDApDQogICAgICAgICAgICAgICAgcmV0dXJuIGZpcnN0Ow0KICAgICAgICAgICAgbGV0IG5vZGUgPSBjb21iaW5lKGZpcnN0LCByZXN0WzBdWzFdLCByZXN0WzBdWzNdKTsNCiAgICAgICAgICAgIGZvciAobGV0IGluZGV4ID0gMTsgaW5kZXggPCByZXN0Lmxlbmd0aDsgaW5kZXgrKykgew0KICAgICAgICAgICAgICAgIG5vZGUgPSBjb21iaW5lKG5vZGUsIHJlc3RbaW5kZXhdWzFdLCByZXN0W2luZGV4XVszXSk7DQogICAgICAgICAgICB9DQogICAgICAgICAgICByZXR1cm4gbm9kZTsNCiAgICAgICAgfSk7DQogICAgfQ0KICAgIGZ1bmN0aW9uIGNoYWluT3B0KGJhc2UsIC4uLmZ1bmNzKSB7DQogICAgICAgIHJldHVybiBwYXJzaW1tb25fdW1kX21pbi5leHBvcnRzLmN1c3RvbSgoc3VjY2VzcywgZmFpbHVyZSkgPT4gew0KICAgICAgICAgICAgcmV0dXJuIChpbnB1dCwgaSkgPT4gew0KICAgICAgICAgICAgICAgIGxldCByZXN1bHQgPSBiYXNlLl8oaW5wdXQsIGkpOw0KICAgICAgICAgICAgICAgIGlmICghcmVzdWx0LnN0YXR1cykNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHJlc3VsdDsNCiAgICAgICAgICAgICAgICBmb3IgKGxldCBmdW5jIG9mIGZ1bmNzKSB7DQogICAgICAgICAgICAgICAgICAgIGxldCBuZXh0ID0gZnVuYyhyZXN1bHQudmFsdWUpLl8oaW5wdXQsIHJlc3VsdC5pbmRleCk7DQogICAgICAgICAgICAgICAgICAgIGlmICghbmV4dC5zdGF0dXMpDQogICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gcmVzdWx0Ow0KICAgICAgICAgICAgICAgICAgICByZXN1bHQgPSBuZXh0Ow0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICByZXR1cm4gcmVzdWx0Ow0KICAgICAgICAgICAgfTsNCiAgICAgICAgfSk7DQogICAgfQ0KICAgIGNvbnN0IEVYUFJFU1NJT04gPSBwYXJzaW1tb25fdW1kX21pbi5leHBvcnRzLmNyZWF0ZUxhbmd1YWdlKHsNCiAgICAgICAgLy8gQSBmbG9hdGluZyBwb2ludCBudW1iZXI7IHRoZSBkZWNpbWFsIHBvaW50IGlzIG9wdGlvbmFsLg0KICAgICAgICBudW1iZXI6IHEgPT4gcGFyc2ltbW9uX3VtZF9taW4uZXhwb3J0cy5yZWdleHAoLy0/WzAtOV0rKFwuWzAtOV0rKT8vKQ0KICAgICAgICAgICAgLm1hcChzdHIgPT4gTnVtYmVyLnBhcnNlRmxvYXQoc3RyKSkNCiAgICAgICAgICAgIC5kZXNjKCJudW1iZXIiKSwNCiAgICAgICAgLy8gQSBxdW90ZS1zdXJyb3VuZGVkIHN0cmluZyB3aGljaCBzdXBwb3J0cyBlc2NhcGUgY2hhcmFjdGVycyAoJ1wnKS4NCiAgICAgICAgc3RyaW5nOiBxID0+IHBhcnNpbW1vbl91bWRfbWluLmV4cG9ydHMuc3RyaW5nKCciJykNCiAgICAgICAgICAgIC50aGVuKHBhcnNpbW1vbl91bWRfbWluLmV4cG9ydHMuYWx0KHEuZXNjYXBlQ2hhcmFjdGVyLCBwYXJzaW1tb25fdW1kX21pbi5leHBvcnRzLm5vbmVPZignIlxcJykpDQogICAgICAgICAgICAuYXRMZWFzdCgwKQ0KICAgICAgICAgICAgLm1hcChjaGFycyA9PiBjaGFycy5qb2luKCIiKSkpDQogICAgICAgICAgICAuc2tpcChwYXJzaW1tb25fdW1kX21pbi5leHBvcnRzLnN0cmluZ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obGlua0lubmVyKSkNCiAgICAgICAgICAgIC5kZXNjKCJmaWxlIGxpbmsiKSwNCiAgICAgICAgZW1iZWRMaW5rOiBxID0+IHBhcnNpbW1vbl91bWRfbWluLmV4cG9ydHMuc2VxTWFwKHBhcnNpbW1vbl91bWRfbWluLmV4cG9ydHMuc3RyaW5nKCIhIikuYXRNb3N0KDEpLCBxLmxpbmssIChwLCBsKSA9PiB7DQogICAgICAgICAgICBpZiAocC5sZW5ndGggPiAwKQ0KICAgICAgICAgICAgICAgIGwuZW1iZWQgPSB0cnVlOw0KICAgICAgICAgICAgcmV0dXJuIGw7DQogICAgICAgIH0pLA0KICAgICAgICAvLyBCaW5hcnkgcGx1cyBvciBtaW51cyBvcGVyYXRvci4NCiAgICAgICAgYmluYXJ5UGx1c01pbnVzOiBxID0+IHBhcnNpbW1vbl91bWRfbWluLmV4cG9ydHMucmVnZXhwKC9cK3wtLykNCiAgICAgICAgICAgIC5tYXAoc3RyID0+IHN0cikNCiAgICAgICAgICAgIC5kZXNjKCInKycgb3IgJy0nIiksDQogICAgICAgIC8vIEJpbmFyeSB0aW1lcyBvciBkaXZpZGUgb3BlcmF0b3IuDQogICAgICAgIGJpbmFyeU11bERpdjogcSA9PiBwYXJzaW1tb25fdW1kX21pbi5leHBvcnRzLnJlZ2V4cCgvXCp8XC8vKQ0KICAgICAgICAgICAgLm1hcChzdHIgPT4gc3RyKQ0KICAgICAgICAgICAgLmRlc2MoIicqJyBvciAnLyciKSwNCiAgICAgICAgLy8gQmluYXJ5IGNvbXBhcmlzb24gb3BlcmF0b3IuDQogICAgICAgIGJpbmFyeUNvbXBhcmVPcDogcSA9PiBwYXJzaW1tb25fdW1kX21pbi5leHBvcnRzLnJlZ2V4cCgvPj18PD18IT18Pnw8fD0vKQ0KICAgICAgICAgICAgLm1hcChzdHIgPT4gc3RyKQ0KICAgICAgICAgICAgLmRlc2MoIic+PScgb3IgJzw9JyBvciAnIT0nIG9yICc9JyBvciAnPicgb3IgJzwnIiksDQogICAgICAgIC8vIEJpbmFyeSBib29sZWFuIGNvbWJpbmF0aW9uIG9wZXJhdG9yLg0KICAgICAgICBiaW5hcnlCb29sZWFuT3A6IHEgPT4gcGFyc2ltbW9uX3VtZF9taW4uZXhwb3J0cy5yZWdleHAoL2FuZHxvcnwmfFx8L2kpDQogICAgICAgICAgICAubWFwKHN0ciA9PiB7DQogICAgICAgICAgICBpZiAoc3RyLnRvTG93ZXJDYXNlKCkgPT0gImFuZCIpDQogICAgICAgICAgICAgICAgcmV0dXJuICImIjsNCiAgICAgICAgICAgIGVsc2UgaWYgKHN0ci50b0xvd2VyQ2FzZSgpID09ICJvciIpDQogICAgICAgICAgICAgICAgcmV0dXJuICJ8IjsNCiAgICAgICAgICAgIGVsc2UNCiAgICAgICAgICAgICAgICByZXR1cm4gc3RyOw0KICAgICAgICB9KQ0KICAgICAgICAgICAgLmRlc2MoIidhbmQnIG9yICdvciciKSwNCiAgICAgICAgLy8gQSBkYXRlIHdoaWNoIGNhbiBiZSBZWVlZLU1NWy1ERFRISDptbTpzc10uDQogICAgICAgIHJvb3REYXRlOiBxID0+IHBhcnNpbW1vbl91bWRfbWluLmV4cG9ydHMuc2VxTWFwKHBhcnNpbW1vbl91bWRfbWluLmV4cG9ydHMucmVnZXhwKC9cZHs0fS8pLCBwYXJzaW1tb25fdW1kX21pbi5leHBvcnRzLnN0cmluZygiLSIpLCBwYXJzaW1tb25fdW1kX21pbi5leHBvcnRzLnJlZ2V4cCgvXGR7Mn0vKSwgKHllYXIsIF8sIG1vbnRoKSA9PiB7DQogICAgICAgICAgICByZXR1cm4gRGF0ZVRpbWVfMS5mcm9tT2JqZWN0KHsgeWVhcjogTnVtYmVyLnBhcnNlSW50KHllYXIpLCBtb250aDogTnVtYmVyLnBhcnNlSW50KG1vbnRoKSB9KTsNCiAgICAgICAgfSkuZGVzYygiZGF0ZSBpbiBmb3JtYXQgWVlZWS1NTVstRERUSEgtTU0tU1MuTVNdIiksDQogICAgICAgIGRhdGU6I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pLA0KICAgICAgICBhdG9tRmllbGQ6IHEgPT4gcGFyc2ltbW9uX3VtZF9taW4uZXhwb3J0cy5hbHQocS5uZWdhdGVkRmllbGQsIHEubGlua0ZpZWxkLCBxLmxpc3RGaWVsZCwgcS5vYmplY3RGaWVsZCwgcS5sYW1iZGFGaWVsZCwgcS5wYXJlbnNGaWVsZCwgcS5ib29sRmllbGQsIHEubnVtYmVyRmllbGQsIHEuc3RyaW5nRmllbGQsIHEuZGF0ZUZpZWxkLCBxLmR1cmF0aW9uRmllbGQsIHEubnVsbEZpZWxkLCBxLnZhcmlhYmxlRmllbGQpLA0KICAgICAgICBpbmRleEZpZWxkOiBxID0+IHBhcnNpbW1vbl91bWRfbWluLmV4cG9ydHMuc2VxTWFwKHEuYXRvbUZpZWxkLCBwYXJzaW1tb25fdW1kX21pbi5leHBvcnRzLmFsdChxLmRvdFBvc3RmaXgsIHEuaW5kZXhQb3N0Zml4LCBxLmZ1bmN0aW9uUG9zdGZpeCkubWFueSgpLCAob2JqLCBwb3N0Zml4ZXMpID0+IHsNCiAgICAgICAgICAgIGxldCByZXN1bHQgPSBvYmo7DQogICAgICAgICAgICBmb3IgKGxldCBwb3N0IG9mIHBvc3RmaXhlcykgew0KICAgICAgICAgICAgICAgIHN3aXRjaCAocG9zdC50eXBlKSB7DQogICAgICAgICAgICAgICAgICAgIGNhc2UgImRvdCI6DQogICAgICAgICAgICAgICAgICAgIGNhc2UgImluZGV4IjoNCiAgICAgICAgICAgICAgICAgICAgICAgIHJlc3VsdCA9IEZpZWxkcy5pbmRleChyZXN1bHQsIHBvc3QuZmllbGQpOw0KICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7DQogICAgICAgICAgICAgICAgICAgIGNhc2UgImZ1bmN0aW9uIjoNCiAgICAgICAgICAgICAgICAgICAgICAgIHJlc3VsdCA9IEZpZWxkcy5mdW5jKHJlc3VsdCwgcG9zdC5maWVsZHMpOw0KICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7D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rczogW10gfSksDQogICAgICAgICAgICAtNCwNCiAgICAgICAgXSk7DQogICAgICAgIGxldCBsaW5lbm8gPSAwOw0KICAgICAgICBmb3IgKGxldCBsaW5lIG9mIGZpbGUucmVwbGFjZSgiXHIiLCAiIikuc3BsaXQoIlxuIikpIHsNCiAgICAgICAgICAgIGxpbmVubyArPSAxOw0KICAgICAgICAgICAgLy8gQ2hlY2sgdGhhdCB3ZSBhcmUgYWN0dWFsbHkgYSBsaXN0IGVsZW1lbnQsIHRvIHNraXAgbGluZXMgd2hpY2ggb2J2aW91c2x5IHdvbid0IG1hdGNoLg0KICAgICAgICAgICAgaWYgKCFsaW5lLmluY2x1ZGVzKCIqIikgJiYgIWxpbmUuaW5jbHVkZXMoIi0iKSkgew0KICAgICAgICAgICAgICAgIHdoaWxlIChzdGFjay5sZW5ndGggPiAxKQ0KICAgICAgICAgICAgICAgICAgICBzdGFjay5wb3AoKTsNCiAgICAgICAgICAgICAgICBjb250aW51ZTsNCiAgICAgICAgICAgIH0NCiAgICAgICAgICAgIGxldCBtYXRjaCA9IFRBU0tfUkVHRVguZXhlYyhsaW5lKTsNCiAgICAgICAgICAgIGlmICghbWF0Y2gpIHsNCiAgICAgICAgICAgICAgICBpZiAobGluZS50cmltKCkubGVuZ3RoID09IDApDQogICAgICAgICAgICAgICAgICAgIGNvbnRpbnVlOw0KICAgICAgICAgICAgICAgIC8vIE5vbi1lbXB0eSBsaW5lIHRoYXQgaXMgbm90IGEgdGFzaywgcmVzZXQuDQogICAgICAgICAgICAgICAgd2hpbGUgKHN0YWNrLmxlbmd0aCA+IDEpDQogICAgICAgICAgICAgICAgICAgIHN0YWNrLnBvcCgpOw0KICAgICAgICAgICAgICAgIGNvbnRpbnVlOw0KICAgICAgICAgICAgfQ0KICAgICAgICAgICAgbGV0IGNyZWF0ZWRNYXRjaCA9IENSRUFURURfREFURV9SRUdFWC5leGVjKGxpbmUpOw0KICAgICAgICAgICAgbGV0IGNyZWF0ZWREYXRlOw0KICAgIC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ICAgICAgICBjb21wbGV0ZWREYXRlOiBjb21wbGV0ZWREYXRlLA0KICAgICAgICAgICAgICAgIGNyZWF0ZWREYXRlOiBjcmVhdGVkRGF0ZSwNCiAgICAgICAgICAgICAgICBkdWVEYXRlOiBkdWVEYXRlLA0KICAgICAgICAgICAgICAgIGZ1bGx5Q29tcGxldGVkOiBpc0NvbXBsZXRlZCwNCiAgICAgICAgICAgICAgICByZWFsOiBpc1JlYWwsDQogICAgICAgICAgICAgICAgcGF0aCwNCiAgICAgICAgICAgICAgICBsaW5lOiBsaW5lbm8sDQogICAgICAgICAgICAgICAgc3VidGFza3M6IFtdLA0KICAgICAgICAgICAgfSk7DQogICAgICAgICAgICB3aGlsZSAoaW5kZW50IDw9ICgoX2IgPSAoX2EgPSBhbGFzdChzdGFjaykpID09PSBudWxsIHx8IF9hID09PSB2b2lkIDAgPyB2b2lkIDAgOiBfYVsxXSkgIT09IG51bGwgJiYgX2IgIT09IHZvaWQgMCA/IF9iIDogLTQpKQ0KICAgICAgICAgICAgICAgIHN0YWNrLnBvcCgpOw0KICAgICAgICAgICAgZm9yIChsZXQgW2VsZW0sIF9dIG9mIHN0YWNrKQ0KICAgICAgICAgICAgICAgIGVsZW0uZnVsbHlDb21wbGV0ZWQgPSBlbGVtLmZ1bGx5Q29tcGxldGVkICYmIHRhc2suZnVsbHlDb21wbGV0ZWQ7DQogICAgICAgICAgICAoX2MgPSBhbGFzdChzdGFjaykpID09PSBudWxsIHx8IF9jID09PSB2b2lkIDAgPyB2b2lkIDAgOiBfY1swXS5zdWJ0YXNrcy5wdXNoKHRhc2spOw0KICAgICAgICAgICAgc3RhY2sucHVzaChbdGFzaywgaW5kZW50XSk7DQogICAgICAgIH0NCiAgICAgICAgLy8gUmV0dXJuIGV2ZXJ5dGhpbmcgdW5kZXIgdGhlIHJvb3QsIHdoaWNoIHNob3VsZCBiZSBhbGwgdGFza3MuDQogICAgICAgIC8vIFN0cmlwIHRyZWVzIG9mIHRhc2tzIHdoaWNoIGFyZSBwdXJlbHkgbm90IHJlYWwgKGxvbD8pLg0KICAgICAgICByZXR1cm4gc3RhY2tbMF1bMF0uc3VidGFza3MuZmlsdGVyKHQgPT4gdGFza0FueSh0LCBzdCA9PiBzdC5yZWFsKSk7DQogICAgfQ0KICAgIGZ1bmN0aW9uIHBhcnNlTWFya2Rvd24ocGF0aCwgY29udGVudHMsIGlubGluZVJlZ2V4KSB7DQogICAgICAgIHZhciBfYSwgX2I7DQogICAgICAgIGxldCBmaWVsZHMgPSBuZXcgTWFwKCk7DQogICAgICAgIC8vIFRyYXdsIHRocm91Z2ggZmlsZSBjb250ZW50cyB0byBsb2NhdGUgY3VzdG9tIGlubGluZSBmaWxlIGNvbnRlbnQuLi4NCiAgICAgICAgZm9yIChsZXQgbGluZSBvZiBjb250ZW50cy5zcGxpdCgiXG4iKSkgew0KICAgICAgICAgICAgLy8gRmFzdCBiYWlsLW91dCBmb3IgbGluZXMgdGhhdCBhcmUgdG9vIGxvbmcuDQogICAgICAgICAgICBpZiAoIWxpbmUuaW5jbHVkZXMoIjo6IikpDQogICAgICAgICAgICAgICAgY29udGludWU7DQogICAgICAgICAgICBsaW5lID0gbGluZS50cmltKCk7DQogICAgICAgICAgICBsZXQgbWF0Y2ggPSBpbmxpbmVSZWdleC5leGVjKGxpbmUpOw0KICAgICAgICAgICAgaWYgKCFtYXRjaCkNCiAgICAgICAgICAgICAgICBjb250aW51ZTsNCiAgICAgICAgICAgIGxldCBuYW1lID0gbWF0Y2hbMV0udHJpbSgpOw0KICAgICAgICAgICAgbGV0IGlubGluZUZpZWxkID0gcGFyc2VJbmxpbmVGaWVsZChtYXRjaFsyXSk7DQogICAgICAgICAgICBmaWVsZHMuc2V0KG5hbWUsICgoX2EgPSBmaWVsZHMuZ2V0KG5hbWUpKSAhPT0gbnVsbCAmJiBfYSAhPT0gdm9pZCAwID8gX2EgOiBbXSkuY29uY2F0KFtpbmxpbmVGaWVsZF0pKTsNCiAgICAgICAgICAgIGxldCBzaW1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go=', null, false);
|
|
|
/* eslint-enable */
|
|
|
|
|
|
var parsimmon_umd_min = {exports: {}};
|
|
|
|
|
|
(function (module, exports) {
|
|
|
!function(n,t){module.exports=t();}("undefined"!=typeof self?self:commonjsGlobal,function(){return function(n){var t={};function r(e){if(t[e])return t[e].exports;var u=t[e]={i:e,l:!1,exports:{}};return n[e].call(u.exports,u,u.exports,r),u.l=!0,u.exports}return r.m=n,r.c=t,r.d=function(n,t,e){r.o(n,t)||Object.defineProperty(n,t,{configurable:!1,enumerable:!0,get:e});},r.r=function(n){Object.defineProperty(n,"__esModule",{value:!0});},r.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(t,"a",t),t},r.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},r.p="",r(r.s=0)}([function(n,t,r){function e(n){if(!(this instanceof e))return new e(n);this._=n;}var u=e.prototype;function o(n,t){for(var r=0;r<n;r++)t(r);}function i(n,t,r){return function(n,t){o(t.length,function(r){n(t[r],r,t);});}(function(r,e,u){t=n(t,r,e,u);},r),t}function f(n,t){return i(function(t,r,e,u){return t.concat([n(r,e,u)])},[],t)}function a(n,t){var r={v:0,buf:t};return o(n,function(){var n;r={v:r.v<<1|(n=r.buf,n[0]>>7),buf:function(n){var t=i(function(n,t,r,e){return n.concat(r===e.length-1?Buffer.from([t,0]).readUInt16BE(0):e.readUInt16BE(r))},[],n);return Buffer.from(f(function(n){return (n<<1&65535)>>8},t))}(r.buf)};}),r}function c(){return "undefined"!=typeof Buffer}function s(){if(!c())throw new Error("Buffer global does not exist; please use webpack if you need to parse Buffers in the browser.")}function l(n){s();var t=i(function(n,t){return n+t},0,n);if(t%8!=0)throw new Error("The bits ["+n.join(", ")+"] add up to "+t+" which is not an even number of bytes; the total should be divisible by 8");var r,u=t/8,o=(r=function(n){return n>48},i(function(n,t){return n||(r(t)?t:n)},null,n));if(o)throw new Error(o+" bit range requested exceeds 48 bit (6 byte) Number max.");return new e(function(t,r){var e=u+r;return e>t.length?x(r,u.toString()+" bytes"):b(e,i(function(n,t){var r=a(t,n.buf);return {coll:n.coll.concat(r.v),buf:r.buf}},{coll:[],buf:t.slice(r,e)},n).coll)})}function p(n,t){return new e(function(r,e){return s(),e+t>r.length?x(e,t+" bytes for "+n):b(e+t,r.slice(e,e+t))})}function h(n,t){if("number"!=typeof(r=t)||Math.floor(r)!==r||t<0||t>6)throw new Error(n+" requires integer length in range [0, 6].");var r;}function d(n){return h("uintBE",n),p("uintBE("+n+")",n).map(function(t){return t.readUIntBE(0,n)})}function v(n){return h("uintLE",n),p("uintLE("+n+")",n).map(function(t){return t.readUIntLE(0,n)})}function g(n){return h("intBE",n),p("intBE("+n+")",n).map(function(t){return t.readIntBE(0,n)})}function m(n){return h("intLE",n),p("intLE("+n+")",n).map(function(t){return t.readIntLE(0,n)})}function y(n){return n instanceof e}function E(n){return "[object Array]"==={}.toString.call(n)}function w(n){return c()&&Buffer.isBuffer(n)}function b(n,t){return {status:!0,index:n,value:t,furthest:-1,expected:[]}}function x(n,t){return E(t)||(t=[t]),{status:!1,index:-1,value:null,furthest:n,expected:t}}function B(n,t){if(!t)return n;if(n.furthest>t.furthest)return n;var r=n.furthest===t.furthest?function(n,t){if(function(){if(void 0!==e._supportsSet)return e._supportsSet;var n="undefined"!=typeof Set;return e._supportsSet=n,n}()&&Array.from){for(var r=new Set(n),u=0;u<t.length;u++)r.add(t[u]);var o=Array.from(r);return o.sort(),o}for(var i={},f=0;f<n.length;f++)i[n[f]]=!0;for(var a=0;a<t.length;a++)i[t[a]]=!0;var c=[];for(var s in i)({}).hasOwnProperty.call(i,s)&&c.push(s);return c.sort(),c}(n.expected,t.expected):t.expected;return {status:n.status,index:n.index,value:n.value,furthest:t.furthest,expected:r}}var j={};function S(n,t){if(w(n))return {offset:t,line:-1,column:-1};n in j||(j[n]={});for(var r=j[n],e=0,u=0,o=0,i=t;i>=0;){if(i in r){e=r[i].line,0===o&&(o=r[i].lineStart);break}"\n"===n.charAt(i)&&(u++,0===o&&(o=i+1)),i--;}var f=e+u,a=t-o;return r[t]={line:f,lineStart:o},{offset:t,line:f+1,column:a+1}}function _(n){if(!y(n))throw new Error("not a parser: "+n)}function L(n,t){return "string"==typeof n?n.charAt(t):n[t]}function O(n){if("number"!=typeof n)throw new Error("not a number: "+n)}function k(n){if("function"!=typeof n)throw new Error("not a function: "+n)}function P(n){if("string"!=typeof n)throw new Error("not a string: "+n)}var q=2,A=3,I=8,F=5*I,M=4*I,z=" ";function R(n,t){return new Array(t+1).join(n)}function U(n,t,r){var e=t-n.length;return e<=0?n:R(r,e)+n}function W(n,t,r,e){return {from:n-t>0?n-t:0,to:n+r>e?e:n+r}}function D(n,t){var r,e,u,o,a,c=t.index,s=c.offset,l=1;if(s===n.length)return "Got the end of the input";if(w(n)){var p=s-s%I,h=s-p,d=W(p,F,M+I,n.length),v=f(function(n){return f(function(n){return U(n.toString(16),2,"0")},n)},function(n,t){var r=n.length,e=[],u=0;if(r<=t)return [n.slice()];for(var o=0;o<r;o++)e[u]||e.push([]),e[u].push(n[o]),(o+1)%t==0&&u++;return e}(n.slice(d.from,d.to).toJSON().data,I));o=function(n){return 0===n.from&&1===n.to?{from:n.from,to:n.to}:{from:n.from/I,to:Math.floor(n.to/I)}}(d),e=p/I,r=3*h,h>=4&&(r+=1),l=2,u=f(function(n){return n.length<=4?n.join(" "):n.slice(0,4).join(" ")+" "+n.slice(4).join(" ")},v),(a=(8*(o.to>0?o.to-1:o.to)).toString(16).length)<2&&(a=2);}else {var g=n.split(/\r\n|[\n\r\u2028\u2029]/);r=c.column-1,e=c.line-1,o=W(e,q,A,g.length),u=g.slice(o.from,o.to),a=o.to.toString().length;}var m=e-o.from;return w(n)&&(a=(8*(o.to>0?o.to-1:o.to)).toString(16).length)<2&&(a=2),i(function(t,e,u){var i,f=u===m,c=f?"> ":z;return i=w(n)?U((8*(o.from+u)).toString(16),a,"0"):U((o.from+u+1).toString(),a," "),[].concat(t,[c+i+" | "+e],f?[z+R(" ",a)+" | "+U("",r," ")+R("^",l)]:[])},[],u).join("\n")}function N(n,t){return ["\n","-- PARSING FAILED "+R("-",50),"\n\n",D(n,t),"\n\n",(r=t.expected,1===r.length?"Expected:\n\n"+r[0]:"Expected one of the following: \n\n"+r.join(", ")),"\n"].join("");var r;}function G(n){return void 0!==n.flags?n.flags:[n.global?"g":"",n.ignoreCase?"i":"",n.multiline?"m":"",n.unicode?"u":"",n.sticky?"y":""].join("")}function C(){for(var n=[].slice.call(arguments),t=n.length,r=0;r<t;r+=1)_(n[r]);return e(function(r,e){for(var u,o=new Array(t),i=0;i<t;i+=1){if(!(u=B(n[i]._(r,e),u)).status)return u;o[i]=u.value,e=u.index;}return B(b(e,o),u)})}function J(){var n=[].slice.call(arguments);if(0===n.length)throw new Error("seqMap needs at least one argument");var t=n.pop();return k(t),C.apply(null,n).map(function(n){return t.apply(null,n)})}function T(){var n=[].slice.call(arguments),t=n.length;if(0===t)return Y("zero alternates");for(var r=0;r<t;r+=1)_(n[r]);return e(function(t,r){for(var e,u=0;u<n.length;u+=1)if((e=B(n[u]._(t,r),e)).status)return e;return e})}function V(n,t){return H(n,t).or(X([]))}function H(n,t){return _(n),_(t),J(n,t.then(n).many(),function(n,t){return [n].concat(t)})}function K(n){P(n);var t="'"+n+"'";return e(function(r,e){var u=e+n.length,o=r.slice(e,u);return o===n?b(u,o):x(e,t)})}function Q(n,t){!function(n){if(!(n instanceof RegExp))throw new Error("not a regexp: "+n);for(var t=G(n),r=0;r<t.length;r++){var e=t.charAt(r);if("i"!==e&&"m"!==e&&"u"!==e&&"s"!==e)throw new Error('unsupported regexp flag "'+e+'": '+n)}}(n),arguments.length>=2?O(t):t=0;var r=function(n){return RegExp("^(?:"+n.source+")",G(n))}(n),u=""+n;return e(function(n,e){var o=r.exec(n.slice(e));if(o){if(0<=t&&t<=o.length){var i=o[0],f=o[t];return b(e+i.length,f)}return x(e,"valid match group (0 to "+o.length+") in "+u)}return x(e,u)})}function X(n){return e(function(t,r){return b(r,n)})}function Y(n){return e(function(t,r){return x(r,n)})}function Z(n){if(y(n))return e(function(t,r){var e=n._(t,r);return e.index=r,e.value="",e});if("string"==typeof n)return Z(K(n));if(n instanceof RegExp)return Z(Q(n));throw new Error("not a string, regexp, or parser: "+n)}function $(n){return _(n),e(function(t,r){var e=n._(t,r),u=t.slice(r,e.index);return e.status?x(r,'not "'+u+'"'):b(r,null)})}function nn(n){return k(n),e(function(t,r){var e=L(t,r);return r<t.length&&n(e)?b(r+1,e):x(r,"a character/byte matching "+n)})}function tn(n,t){arguments.length<2&&(t=n,n=void 0);var r=e(function(n,e){return r._=t()._,r._(n,e)});return n?r.desc(n):r}function rn(){return Y("fantasy-land/empty")}u.parse=function(n){if("string"!=typeof n&&!w(n))throw new Error(".parse must be called with a string or Buffer as its argument");var t,r=this.skip(fn)._(n,0);return t=r.status?{status:!0,value:r.value}:{status:!1,index:S(n,r.furthest),expected:r.expected},delete j[n],t},u.tryParse=function(n){var t=this.parse(n);if(t.status)return t.value;var r=N(n,t),e=new Error(r);throw e.type="ParsimmonError",e.result=t,e},u.assert=function(n,t){return this.chain(function(r){return n(r)?X(r):Y(t)})},u.or=function(n){return T(this,n)},u.trim=function(n){return this.wrap(n,n)},u.wrap=function(n,t){return J(n,this,t,function(n,t){return t})},u.thru=function(n){return n(this)},u.then=function(n){return _(n),C(this,n).map(function(n){return n[1]})},u.many=function(){var n=this;return e(function(t,r){for(var e=[],u=void 0;;){if(!(u=B(n._(t,r),u)).status)return B(b(r,e),u);if(r===u.index)throw new Error("infinite loop detected in .many() parser --- calling .many() on a parser which can accept zero characters is usually the cause");r=u.index,e.push(u.value);}})},u.tieWith=function(n){return P(n),this.map(function(t){if(function(n){if(!E(n))throw new Error("not an array: "+n)}(t),t.length){P(t[0]);for(var r=t[0],e=1;e<t.length;e++)P(t[e]),r+=n+t[e];return r}return ""})},u.tie=function(){return this.tieWith("")},u.times=function(n,t){var r=this;return arguments.length<2&&(t=n),O(n),O(t),e(function(e,u){for(var o=[],i=void 0,f=void 0,a=0;a<n;a+=1){if(f=B(i=r._(e,u),f),!i.status)return f;u=i.index,o.push(i.value);}for(;a<t&&(f=B(i=r._(e,u),f),i.status);a+=1)u=i.index,o.push(i.value);return B(b(u,o),f)})},u.result=function(n){return this.map(function(){return n})},u.atMost=function(n){return this.times(0,n)},u.atLeast=function(n){return J(this.times(n),this.many(),function(n,t){return n.concat(t)})},u.map=function(n){k(n);var t=this;return e(function(r,e){var u=t._(r,e);return u.status?B(b(u.index,n(u.value)),u):u})},u.contramap=function(n){k(n);var t=this;return e(function(r,e){var u=t.parse(n(r.slice(e)));return u.status?b(e+r.length,u.value):u})},u.promap=function(n,t){return k(n),k(t),this.contramap(n).map(t)},u.skip=function(n){return C(this,n).map(function(n){return n[0]})},u.mark=function(){return J(en,this,en,function(n,t,r){return {start:n,value:t,end:r}})},u.node=function(n){return J(en,this,en,function(t,r,e){return {name:n,value:r,start:t,end:e}})},u.sepBy=function(n){return V(this,n)},u.sepBy1=function(n){return H(this,n)},u.lookahead=function(n){return this.skip(Z(n))},u.notFollowedBy=function(n){return this.skip($(n))},u.desc=function(n){E(n)||(n=[n]);var t=this;return e(function(r,e){var u=t._(r,e);return u.status||(u.expected=n),u})},u.fallback=function(n){return this.or(X(n))},u.ap=function(n){return J(n,this,function(n,t){return n(t)})},u.chain=function(n){var t=this;return e(function(r,e){var u=t._(r,e);return u.status?B(n(u.value)._(r,u.index),u):u})},u.concat=u.or,u.empty=rn,u.of=X,u["fantasy-land/ap"]=u.ap,u["fantasy-land/chain"]=u.chain,u["fantasy-land/concat"]=u.concat,u["fantasy-land/empty"]=u.empty,u["fantasy-land/of"]=u.of,u["fantasy-land/map"]=u.map;var en=e(function(n,t){return b(t,S(n,t))}),un=e(function(n,t){return t>=n.length?x(t,"any character/byte"):b(t+1,L(n,t))}),on=e(function(n,t){return b(n.length,n.slice(t))}),fn=e(function(n,t){return t<n.length?x(t,"EOF"):b(t,null)}),an=Q(/[0-9]/).desc("a digit"),cn=Q(/[0-9]*/).desc("optional digits"),sn=Q(/[a-z]/i).desc("a letter"),ln=Q(/[a-z]*/i).desc("optional letters"),pn=Q(/\s*/).desc("optional whitespace"),hn=Q(/\s+/).desc("whitespace"),dn=K("\r"),vn=K("\n"),gn=K("\r\n"),mn=T(gn,vn,dn).desc("newline"),yn=T(mn,fn);e.all=on,e.alt=T,e.any=un,e.cr=dn,e.createLanguage=function(n){var t={};for(var r in n)({}).hasOwnProperty.call(n,r)&&function(r){t[r]=tn(function(){return n[r](t)});}(r);return t},e.crlf=gn,e.custom=function(n){return e(n(b,x))},e.digit=an,e.digits=cn,e.empty=rn,e.end=yn,e.eof=fn,e.fail=Y,e.formatError=N,e.index=en,e.isParser=y,e.lazy=tn,e.letter=sn,e.letters=ln,e.lf=vn,e.lookahead=Z,e.makeFailure=x,e.makeSuccess=b,e.newline=mn,e.noneOf=function(n){return nn(function(t){return n.indexOf(t)<0}).desc("none of '"+n+"'")},e.notFollowedBy=$,e.of=X,e.oneOf=function(n){for(var t=n.split(""),r=0;r<t.length;r++)t[r]="'"+t[r]+"'";return nn(function(t){return n.indexOf(t)>=0}).desc(t)},e.optWhitespace=pn,e.Parser=e,e.range=function(n,t){return nn(function(r){return n<=r&&r<=t}).desc(n+"-"+t)},e.regex=Q,e.regexp=Q,e.sepBy=V,e.sepBy1=H,e.seq=C,e.seqMap=J,e.seqObj=function(){for(var n,t={},r=0,u=(n=arguments,Array.prototype.slice.call(n)),o=u.length,i=0;i<o;i+=1){var f=u[i];if(!y(f)){if(E(f)&&2===f.length&&"string"==typeof f[0]&&y(f[1])){var a=f[0];if(Object.prototype.hasOwnProperty.call(t,a))throw new Error("seqObj: duplicate key "+a);t[a]=!0,r++;continue}throw new Error("seqObj arguments must be parsers or [string, parser] array pairs.")}}if(0===r)throw new Error("seqObj expects at least one named parser, found zero");return e(function(n,t){for(var r,e={},i=0;i<o;i+=1){var f,a;if(E(u[i])?(f=u[i][0],a=u[i][1]):(f=null,a=u[i]),!(r=B(a._(n,t),r)).status)return r;f&&(e[f]=r.value),t=r.index;}return B(b(t,e),r)})},e.string=K,e.succeed=X,e.takeWhile=function(n){return k(n),e(function(t,r){for(var e=r;e<t.length&&n(L(t,e));)e++;return b(e,t.slice(r,e))})},e.test=nn,e.whitespace=hn,e["fantasy-land/empty"]=rn,e["fantasy-land/of"]=X,e.Binary={bitSeq:l,bitSeqObj:function(n){s();var t={},r=0,e=f(function(n){if(E(n)){var e=n;if(2!==e.length)throw new Error("["+e.join(", ")+"] should be length 2, got length "+e.length);if(P(e[0]),O(e[1]),Object.prototype.hasOwnProperty.call(t,e[0]))throw new Error("duplicate key in bitSeqObj: "+e[0]);return t[e[0]]=!0,r++,e}return O(n),[null,n]},n);if(r<1)throw new Error("bitSeqObj expects at least one named pair, got ["+n.join(", ")+"]");var u=f(function(n){return n[0]},e);return l(f(function(n){return n[1]},e)).map(function(n){return i(function(n,t){return null!==t[0]&&(n[t[0]]=t[1]),n},{},f(function(t,r){return [t,n[r]]},u))})},byte:function(n){if(s(),O(n),n>255)throw new Error("Value specified to byte constructor ("+n+"=0x"+n.toString(16)+") is larger in value than a single byte.");var t=(n>15?"0x":"0x0")+n.toString(16);return e(function(r,e){var u=L(r,e);return u===n?b(e+1,u):x(e,t)})},buffer:function(n){return p("buffer",n).map(function(n){return Buffer.from(n)})},encodedString:function(n,t){return p("string",t).map(function(t){return t.toString(n)})},uintBE:d,uint8BE:d(1),uint16BE:d(2),uint32BE:d(4),uintLE:v,uint8LE:v(1),uint16LE:v(2),uint32LE:v(4),intBE:g,int8BE:g(1),int16BE:g(2),int32BE:g(4),intLE:m,int8LE:m(1),int16LE:m(2),int32LE:m(4),floatBE:p("floatBE",4).map(function(n){return n.readFloatBE(0)}),floatLE:p("floatLE",4).map(function(n){return n.readFloatLE(0)}),doubleBE:p("doubleBE",8).map(function(n){return n.readDoubleBE(0)}),doubleLE:p("doubleLE",8).map(function(n){return n.readDoubleLE(0)})},n.exports=e;}])});
|
|
|
}(parsimmon_umd_min));
|
|
|
|
|
|
/** Utility methods for creating & comparing fields. */
|
|
|
var Fields;
|
|
|
(function (Fields) {
|
|
|
function variable(name) {
|
|
|
return { type: "variable", name };
|
|
|
}
|
|
|
Fields.variable = variable;
|
|
|
function literal(value) {
|
|
|
return { type: "literal", value };
|
|
|
}
|
|
|
Fields.literal = literal;
|
|
|
function binaryOp(left, op, right) {
|
|
|
return { type: "binaryop", left, op, right };
|
|
|
}
|
|
|
Fields.binaryOp = binaryOp;
|
|
|
function index(obj, index) {
|
|
|
return { type: "index", object: obj, index };
|
|
|
}
|
|
|
Fields.index = index;
|
|
|
/** Converts a string in dot-notation-format into a variable which indexes. */
|
|
|
function indexVariable(name) {
|
|
|
let parts = name.split(".");
|
|
|
let result = Fields.variable(parts[0]);
|
|
|
for (let index = 1; index < parts.length; index++) {
|
|
|
result = Fields.index(result, Fields.literal(parts[index]));
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
|
Fields.indexVariable = indexVariable;
|
|
|
function lambda(args, value) {
|
|
|
return { type: "lambda", arguments: args, value };
|
|
|
}
|
|
|
Fields.lambda = lambda;
|
|
|
function func(func, args) {
|
|
|
return { type: "function", func, arguments: args };
|
|
|
}
|
|
|
Fields.func = func;
|
|
|
function list(values) {
|
|
|
return { type: "list", values };
|
|
|
}
|
|
|
Fields.list = list;
|
|
|
function object(values) {
|
|
|
return { type: "object", values };
|
|
|
}
|
|
|
Fields.object = object;
|
|
|
function negate(child) {
|
|
|
return { type: "negated", child };
|
|
|
}
|
|
|
Fields.negate = negate;
|
|
|
function isCompareOp(op) {
|
|
|
return op == "<=" || op == "<" || op == ">" || op == ">=" || op == "!=" || op == "=";
|
|
|
}
|
|
|
Fields.isCompareOp = isCompareOp;
|
|
|
Fields.NULL = Fields.literal(null);
|
|
|
})(Fields || (Fields = {}));
|
|
|
|
|
|
/** AST implementation for queries over data sources. */
|
|
|
/** Utility functions for creating and manipulating sources. */
|
|
|
var Sources;
|
|
|
(function (Sources) {
|
|
|
function tag(tag) {
|
|
|
return { type: "tag", tag };
|
|
|
}
|
|
|
Sources.tag = tag;
|
|
|
function csv(path) {
|
|
|
return { type: "csv", path };
|
|
|
}
|
|
|
Sources.csv = csv;
|
|
|
function folder(prefix) {
|
|
|
return { type: "folder", folder: prefix };
|
|
|
}
|
|
|
Sources.folder = folder;
|
|
|
function link(file, incoming) {
|
|
|
return { type: "link", file, direction: incoming ? "incoming" : "outgoing" };
|
|
|
}
|
|
|
Sources.link = link;
|
|
|
function binaryOp(left, op, right) {
|
|
|
return { type: "binaryop", left, op, right };
|
|
|
}
|
|
|
Sources.binaryOp = binaryOp;
|
|
|
function negate(child) {
|
|
|
return { type: "negate", child };
|
|
|
}
|
|
|
Sources.negate = negate;
|
|
|
function empty() {
|
|
|
return { type: "empty" };
|
|
|
}
|
|
|
Sources.empty = empty;
|
|
|
})(Sources || (Sources = {}));
|
|
|
|
|
|
/** Provides a lookup table for unit durations of the given type. */
|
|
|
const DURATION_TYPES = {
|
|
|
year: Duration_1.fromObject({ years: 1 }),
|
|
|
yr: Duration_1.fromObject({ years: 1 }),
|
|
|
month: Duration_1.fromObject({ months: 1 }),
|
|
|
mo: Duration_1.fromObject({ months: 1 }),
|
|
|
week: Duration_1.fromObject({ weeks: 1 }),
|
|
|
wk: Duration_1.fromObject({ weeks: 1 }),
|
|
|
w: Duration_1.fromObject({ weeks: 1 }),
|
|
|
day: Duration_1.fromObject({ days: 1 }),
|
|
|
d: Duration_1.fromObject({ days: 1 }),
|
|
|
hour: Duration_1.fromObject({ hours: 1 }),
|
|
|
hr: Duration_1.fromObject({ hours: 1 }),
|
|
|
h: Duration_1.fromObject({ hours: 1 }),
|
|
|
minute: Duration_1.fromObject({ minutes: 1 }),
|
|
|
min: Duration_1.fromObject({ minutes: 1 }),
|
|
|
m: Duration_1.fromObject({ minutes: 1 }),
|
|
|
second: Duration_1.fromObject({ seconds: 1 }),
|
|
|
sec: Duration_1.fromObject({ seconds: 1 }),
|
|
|
s: Duration_1.fromObject({ seconds: 1 }),
|
|
|
};
|
|
|
/**
|
|
|
* Keywords which cannot be used as variables directly. Use `row.<thing>` if it is a variable you have defined and want
|
|
|
* to access.
|
|
|
*/
|
|
|
const KEYWORDS = ["FROM", "WHERE", "LIMIT", "GROUP", "FLATTEN"];
|
|
|
///////////////
|
|
|
// Utilities //
|
|
|
///////////////
|
|
|
/** Attempt to parse the inside of a link to pull out display name, subpath, etc. */
|
|
|
function parseInnerLink(link) {
|
|
|
let display = undefined;
|
|
|
if (link.includes("|")) {
|
|
|
let split = link.split("|");
|
|
|
link = split[0];
|
|
|
display = split[1];
|
|
|
}
|
|
|
if (link.includes("#")) {
|
|
|
let split = link.split("#");
|
|
|
return Link.header(split[0], split[1], false, display);
|
|
|
}
|
|
|
else if (link.includes("^")) {
|
|
|
let split = link.split("^");
|
|
|
return Link.block(split[0], split[1], false, display);
|
|
|
}
|
|
|
return Link.file(link, false, display);
|
|
|
}
|
|
|
/** Create a left-associative binary parser which parses the given sub-element and separator. Handles whitespace. */
|
|
|
function createBinaryParser(child, sep, combine) {
|
|
|
return parsimmon_umd_min.exports.seqMap(child, parsimmon_umd_min.exports.seq(parsimmon_umd_min.exports.optWhitespace, sep, parsimmon_umd_min.exports.optWhitespace, child).many(), (first, rest) => {
|
|
|
if (rest.length == 0)
|
|
|
return first;
|
|
|
let node = combine(first, rest[0][1], rest[0][3]);
|
|
|
for (let index = 1; index < rest.length; index++) {
|
|
|
node = combine(node, rest[index][1], rest[index][3]);
|
|
|
}
|
|
|
return node;
|
|
|
});
|
|
|
}
|
|
|
function chainOpt(base, ...funcs) {
|
|
|
return parsimmon_umd_min.exports.custom((success, failure) => {
|
|
|
return (input, i) => {
|
|
|
let result = base._(input, i);
|
|
|
if (!result.status)
|
|
|
return result;
|
|
|
for (let func of funcs) {
|
|
|
let next = func(result.value)._(input, result.index);
|
|
|
if (!next.status)
|
|
|
return result;
|
|
|
result = next;
|
|
|
}
|
|
|
return result;
|
|
|
};
|
|
|
});
|
|
|
}
|
|
|
const EXPRESSION = parsimmon_umd_min.exports.createLanguage({
|
|
|
// A floating point number; the decimal point is optional.
|
|
|
number: q => parsimmon_umd_min.exports.regexp(/-?[0-9]+(\.[0-9]+)?/)
|
|
|
.map(str => Number.parseFloat(str))
|
|
|
.desc("number"),
|
|
|
// A quote-surrounded string which supports escape characters ('\').
|
|
|
string: q => parsimmon_umd_min.exports.string('"')
|
|
|
.then(parsimmon_umd_min.exports.alt(q.escapeCharacter, parsimmon_umd_min.exports.noneOf('"\\'))
|
|
|
.atLeast(0)
|
|
|
.map(chars => chars.join("")))
|
|
|
.skip(parsimmon_umd_min.exports.string('"'))
|
|
|
.desc("string"),
|
|
|
escapeCharacter: q => parsimmon_umd_min.exports.string("\\")
|
|
|
.then(parsimmon_umd_min.exports.any)
|
|
|
.map(escaped => {
|
|
|
// If we are escaping a backslash or a quote, pass in on in escaped form
|
|
|
if (escaped === '"')
|
|
|
return '"';
|
|
|
if (escaped === "\\")
|
|
|
return "\\";
|
|
|
else
|
|
|
return "\\" + escaped;
|
|
|
}),
|
|
|
// A boolean true/false value.
|
|
|
bool: q => parsimmon_umd_min.exports.regexp(/true|false|True|False/)
|
|
|
.map(str => str.toLowerCase() == "true")
|
|
|
.desc("boolean ('true' or 'false')"),
|
|
|
// A tag of the form '#stuff/hello-there'.
|
|
|
tag: q => parsimmon_umd_min.exports.regexp(/#[\p{Letter}\p{Extended_Pictographic}\p{Emoji_Component}\w/-]+/u).desc("tag ('#hello/stuff')"),
|
|
|
// A variable identifier, which is alphanumeric and must start with a letter.
|
|
|
identifier: q => parsimmon_umd_min.exports.regexp(/[\p{Letter}\p{Extended_Pictographic}][\p{Letter}\p{Extended_Pictographic}\p{Emoji_Component}\w_-]*/u).desc("variable identifier"),
|
|
|
// A variable identifier, which is alphanumeric and must start with a letter. Can include dots.
|
|
|
identifierDot: q => parsimmon_umd_min.exports.regexp(/[\p{Letter}\p{Extended_Pictographic}][\p{Letter}\p{Extended_Pictographic}\p{Emoji_Component}\.\w_-]*/u).desc("variable identifier"),
|
|
|
// An Obsidian link of the form [[<link>]].
|
|
|
link: q => parsimmon_umd_min.exports.regexp(/\[\[([^\[\]]*?)\]\]/u, 1)
|
|
|
.map(linkInner => parseInnerLink(linkInner))
|
|
|
.desc("file link"),
|
|
|
embedLink: q => parsimmon_umd_min.exports.seqMap(parsimmon_umd_min.exports.string("!").atMost(1), q.link, (p, l) => {
|
|
|
if (p.length > 0)
|
|
|
l.embed = true;
|
|
|
return l;
|
|
|
}),
|
|
|
// Binary plus or minus operator.
|
|
|
binaryPlusMinus: q => parsimmon_umd_min.exports.regexp(/\+|-/)
|
|
|
.map(str => str)
|
|
|
.desc("'+' or '-'"),
|
|
|
// Binary times or divide operator.
|
|
|
binaryMulDiv: q => parsimmon_umd_min.exports.regexp(/\*|\//)
|
|
|
.map(str => str)
|
|
|
.desc("'*' or '/'"),
|
|
|
// Binary comparison operator.
|
|
|
binaryCompareOp: q => parsimmon_umd_min.exports.regexp(/>=|<=|!=|>|<|=/)
|
|
|
.map(str => str)
|
|
|
.desc("'>=' or '<=' or '!=' or '=' or '>' or '<'"),
|
|
|
// Binary boolean combination operator.
|
|
|
binaryBooleanOp: q => parsimmon_umd_min.exports.regexp(/and|or|&|\|/i)
|
|
|
.map(str => {
|
|
|
if (str.toLowerCase() == "and")
|
|
|
return "&";
|
|
|
else if (str.toLowerCase() == "or")
|
|
|
return "|";
|
|
|
else
|
|
|
return str;
|
|
|
})
|
|
|
.desc("'and' or 'or'"),
|
|
|
// A date which can be YYYY-MM[-DDTHH:mm:ss].
|
|
|
rootDate: q => parsimmon_umd_min.exports.seqMap(parsimmon_umd_min.exports.regexp(/\d{4}/), parsimmon_umd_min.exports.string("-"), parsimmon_umd_min.exports.regexp(/\d{2}/), (year, _, month) => {
|
|
|
return DateTime_1.fromObject({ year: Number.parseInt(year), month: Number.parseInt(month) });
|
|
|
}).desc("date in format YYYY-MM[-DDTHH-MM-SS.MS]"),
|
|
|
date: q => chainOpt(q.rootDate, (ym) => parsimmon_umd_min.exports.seqMap(parsimmon_umd_min.exports.string("-"), parsimmon_umd_min.exports.regexp(/\d{2}/), (_, day) => ym.set({ day: Number.parseInt(day) })), (ymd) => parsimmon_umd_min.exports.seqMap(parsimmon_umd_min.exports.string("T"), parsimmon_umd_min.exports.regexp(/\d{2}/), (_, hour) => ymd.set({ hour: Number.parseInt(hour) })), (ymdh) => parsimmon_umd_min.exports.seqMap(parsimmon_umd_min.exports.string(":"), parsimmon_umd_min.exports.regexp(/\d{2}/), (_, minute) => ymdh.set({ minute: Number.parseInt(minute) })), (ymdhm) => parsimmon_umd_min.exports.seqMap(parsimmon_umd_min.exports.string(":"), parsimmon_umd_min.exports.regexp(/\d{2}/), (_, second) => ymdhm.set({ second: Number.parseInt(second) })), (ymdhms) => parsimmon_umd_min.exports.alt(parsimmon_umd_min.exports.seqMap(parsimmon_umd_min.exports.string("."), parsimmon_umd_min.exports.regexp(/\d{3}/), (_, millisecond) => ymdhms.set({ millisecond: Number.parseInt(millisecond) })), parsimmon_umd_min.exports.succeed(ymdhms) // pass
|
|
|
), (dt) => parsimmon_umd_min.exports.alt(parsimmon_umd_min.exports.seqMap(parsimmon_umd_min.exports.string("+").or(parsimmon_umd_min.exports.string("-")), parsimmon_umd_min.exports.regexp(/\d{1,2}(:\d{2})?/), (pm, hr) => dt.setZone("UTC" + pm + hr)), parsimmon_umd_min.exports.seqMap(parsimmon_umd_min.exports.string("Z"), () => dt.setZone("utc")))),
|
|
|
// A date, plus various shorthand times of day it could be.
|
|
|
datePlus: q => parsimmon_umd_min.exports.alt(parsimmon_umd_min.exports.string("now").map(_ => DateTime_1.local()), parsimmon_umd_min.exports.string("today").map(_ => DateTime_1.local().startOf("day")), parsimmon_umd_min.exports.string("tomorrow").map(_ => DateTime_1.local()
|
|
|
.startOf("day")
|
|
|
.plus(Duration_1.fromObject({ days: 1 }))), parsimmon_umd_min.exports.string("som").map(_ => DateTime_1.local().startOf("month")), parsimmon_umd_min.exports.string("soy").map(_ => DateTime_1.local().startOf("year")), parsimmon_umd_min.exports.string("eom").map(_ => DateTime_1.local().endOf("month")), parsimmon_umd_min.exports.string("eoy").map(_ => DateTime_1.local().endOf("year")), q.date),
|
|
|
// A duration of time.
|
|
|
durationType: q => parsimmon_umd_min.exports.alt(...Object.keys(DURATION_TYPES).map(parsimmon_umd_min.exports.string)),
|
|
|
duration: q => parsimmon_umd_min.exports.seqMap(q.number, parsimmon_umd_min.exports.optWhitespace, q.durationType, parsimmon_umd_min.exports.string("s").atMost(1), (count, _, t, _2) => DURATION_TYPES[t].mapUnits(x => x * count)),
|
|
|
// A raw null value.
|
|
|
rawNull: q => parsimmon_umd_min.exports.string("null"),
|
|
|
// Source parsing.
|
|
|
tagSource: q => q.tag.map(tag => Sources.tag(tag)),
|
|
|
csvSource: q => parsimmon_umd_min.exports.seqMap(parsimmon_umd_min.exports.string("csv(").skip(parsimmon_umd_min.exports.optWhitespace), q.string, parsimmon_umd_min.exports.string(")"), (_1, path, _2) => Sources.csv(path)),
|
|
|
linkIncomingSource: q => q.link.map(link => Sources.link(link.path, true)),
|
|
|
linkOutgoingSource: q => parsimmon_umd_min.exports.seqMap(parsimmon_umd_min.exports.string("outgoing(").skip(parsimmon_umd_min.exports.optWhitespace), q.link, parsimmon_umd_min.exports.string(")"), (_1, link, _2) => Sources.link(link.path, false)),
|
|
|
folderSource: q => q.string.map(str => Sources.folder(str)),
|
|
|
parensSource: q => parsimmon_umd_min.exports.seqMap(parsimmon_umd_min.exports.string("("), parsimmon_umd_min.exports.optWhitespace, q.source, parsimmon_umd_min.exports.optWhitespace, parsimmon_umd_min.exports.string(")"), (_1, _2, field, _3, _4) => field),
|
|
|
negateSource: q => parsimmon_umd_min.exports.seqMap(parsimmon_umd_min.exports.alt(parsimmon_umd_min.exports.string("-"), parsimmon_umd_min.exports.string("!")), q.atomSource, (_, source) => Sources.negate(source)),
|
|
|
atomSource: q => parsimmon_umd_min.exports.alt(q.parensSource, q.negateSource, q.linkOutgoingSource, q.linkIncomingSource, q.folderSource, q.tagSource, q.csvSource),
|
|
|
binaryOpSource: q => createBinaryParser(q.atomSource, q.binaryBooleanOp.map(s => s), Sources.binaryOp),
|
|
|
source: q => q.binaryOpSource,
|
|
|
// Field parsing.
|
|
|
variableField: q => q.identifier
|
|
|
.chain(r => {
|
|
|
if (KEYWORDS.includes(r.toUpperCase())) {
|
|
|
return parsimmon_umd_min.exports.fail("Variable fields cannot be a keyword (" + KEYWORDS.join(" or ") + ")");
|
|
|
}
|
|
|
else {
|
|
|
return parsimmon_umd_min.exports.succeed(Fields.variable(r));
|
|
|
}
|
|
|
})
|
|
|
.desc("variable"),
|
|
|
numberField: q => q.number.map(val => Fields.literal(val)).desc("number"),
|
|
|
stringField: q => q.string.map(val => Fields.literal(val)).desc("string"),
|
|
|
boolField: q => q.bool.map(val => Fields.literal(val)).desc("boolean"),
|
|
|
dateField: q => parsimmon_umd_min.exports.seqMap(parsimmon_umd_min.exports.string("date("), parsimmon_umd_min.exports.optWhitespace, q.datePlus, parsimmon_umd_min.exports.optWhitespace, parsimmon_umd_min.exports.string(")"), (prefix, _1, date, _2, postfix) => Fields.literal(date)).desc("date"),
|
|
|
durationField: q => parsimmon_umd_min.exports.seqMap(parsimmon_umd_min.exports.string("dur("), parsimmon_umd_min.exports.optWhitespace, q.duration, parsimmon_umd_min.exports.optWhitespace, parsimmon_umd_min.exports.string(")"), (prefix, _1, dur, _2, postfix) => Fields.literal(dur)).desc("duration"),
|
|
|
nullField: q => q.rawNull.map(_ => Fields.NULL),
|
|
|
linkField: q => q.link.map(f => Fields.literal(f)),
|
|
|
listField: q => q.field
|
|
|
.sepBy(parsimmon_umd_min.exports.string(",").trim(parsimmon_umd_min.exports.optWhitespace))
|
|
|
.wrap(parsimmon_umd_min.exports.string("[").skip(parsimmon_umd_min.exports.optWhitespace), parsimmon_umd_min.exports.optWhitespace.then(parsimmon_umd_min.exports.string("]")))
|
|
|
.map(l => Fields.list(l))
|
|
|
.desc("list ('[1, 2, 3]')"),
|
|
|
objectField: q => parsimmon_umd_min.exports.seqMap(q.identifier.or(q.string), parsimmon_umd_min.exports.string(":").trim(parsimmon_umd_min.exports.optWhitespace), q.field, (name, _sep, value) => {
|
|
|
return { name, value };
|
|
|
})
|
|
|
.sepBy(parsimmon_umd_min.exports.string(",").trim(parsimmon_umd_min.exports.optWhitespace))
|
|
|
.wrap(parsimmon_umd_min.exports.string("{").skip(parsimmon_umd_min.exports.optWhitespace), parsimmon_umd_min.exports.optWhitespace.then(parsimmon_umd_min.exports.string("}")))
|
|
|
.map(vals => {
|
|
|
let res = {};
|
|
|
for (let entry of vals)
|
|
|
res[entry.name] = entry.value;
|
|
|
return Fields.object(res);
|
|
|
})
|
|
|
.desc("object ('{ a: 1, b: 2 }')"),
|
|
|
atomInlineField: q => parsimmon_umd_min.exports.alt(q.date, q.duration.map(d => normalizeDuration(d)), q.string, q.embedLink, q.bool, q.number, q.rawNull),
|
|
|
inlineFieldList: q => q.atomInlineField.sepBy(parsimmon_umd_min.exports.string(",").trim(parsimmon_umd_min.exports.optWhitespace).lookahead(q.atomInlineField)),
|
|
|
inlineField: q => parsimmon_umd_min.exports.alt(parsimmon_umd_min.exports.seqMap(q.atomInlineField, parsimmon_umd_min.exports.string(",").trim(parsimmon_umd_min.exports.optWhitespace), q.inlineFieldList, (f, _s, l) => [f].concat(l)), q.atomInlineField),
|
|
|
atomField: q => parsimmon_umd_min.exports.alt(q.negatedField, q.linkField, q.listField, q.objectField, q.lambdaField, q.parensField, q.boolField, q.numberField, q.stringField, q.dateField, q.durationField, q.nullField, q.variableField),
|
|
|
indexField: q => parsimmon_umd_min.exports.seqMap(q.atomField, parsimmon_umd_min.exports.alt(q.dotPostfix, q.indexPostfix, q.functionPostfix).many(), (obj, postfixes) => {
|
|
|
let result = obj;
|
|
|
for (let post of postfixes) {
|
|
|
switch (post.type) {
|
|
|
case "dot":
|
|
|
case "index":
|
|
|
result = Fields.index(result, post.field);
|
|
|
break;
|
|
|
case "function":
|
|
|
result = Fields.func(result, post.fields);
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
return result;
|
|
|
}),
|
|
|
negatedField: q => parsimmon_umd_min.exports.seqMap(parsimmon_umd_min.exports.string("!"), q.indexField, (_, field) => Fields.negate(field)).desc("negated field"),
|
|
|
parensField: q => parsimmon_umd_min.exports.seqMap(parsimmon_umd_min.exports.string("("), parsimmon_umd_min.exports.optWhitespace, q.field, parsimmon_umd_min.exports.optWhitespace, parsimmon_umd_min.exports.string(")"), (_1, _2, field, _3, _4) => field),
|
|
|
lambdaField: q => parsimmon_umd_min.exports.seqMap(q.identifier
|
|
|
.sepBy(parsimmon_umd_min.exports.string(",").trim(parsimmon_umd_min.exports.optWhitespace))
|
|
|
.wrap(parsimmon_umd_min.exports.string("(").trim(parsimmon_umd_min.exports.optWhitespace), parsimmon_umd_min.exports.string(")").trim(parsimmon_umd_min.exports.optWhitespace)), parsimmon_umd_min.exports.string("=>").trim(parsimmon_umd_min.exports.optWhitespace), q.field, (ident, _ignore, value) => {
|
|
|
return { type: "lambda", arguments: ident, value };
|
|
|
}),
|
|
|
dotPostfix: q => parsimmon_umd_min.exports.seqMap(parsimmon_umd_min.exports.string("."), q.identifier, (_, field) => {
|
|
|
return { type: "dot", field: Fields.literal(field) };
|
|
|
}),
|
|
|
indexPostfix: q => parsimmon_umd_min.exports.seqMap(parsimmon_umd_min.exports.string("["), parsimmon_umd_min.exports.optWhitespace, q.field, parsimmon_umd_min.exports.optWhitespace, parsimmon_umd_min.exports.string("]"), (_, _2, field, _3, _4) => {
|
|
|
return { type: "index", field };
|
|
|
}),
|
|
|
functionPostfix: q => parsimmon_umd_min.exports.seqMap(parsimmon_umd_min.exports.string("("), parsimmon_umd_min.exports.optWhitespace, q.field.sepBy(parsimmon_umd_min.exports.string(",").trim(parsimmon_umd_min.exports.optWhitespace)), parsimmon_umd_min.exports.optWhitespace, parsimmon_umd_min.exports.string(")"), (_, _1, fields, _2, _3) => {
|
|
|
return { type: "function", fields };
|
|
|
}),
|
|
|
// The precedence hierarchy of operators - multiply/divide, add/subtract, compare, and then boolean operations.
|
|
|
binaryMulDivField: q => createBinaryParser(q.indexField, q.binaryMulDiv, Fields.binaryOp),
|
|
|
binaryPlusMinusField: q => createBinaryParser(q.binaryMulDivField, q.binaryPlusMinus, Fields.binaryOp),
|
|
|
binaryCompareField: q => createBinaryParser(q.binaryPlusMinusField, q.binaryCompareOp, Fields.binaryOp),
|
|
|
binaryBooleanField: q => createBinaryParser(q.binaryCompareField, q.binaryBooleanOp, Fields.binaryOp),
|
|
|
binaryOpField: q => q.binaryBooleanField,
|
|
|
field: q => q.binaryOpField,
|
|
|
});
|
|
|
/**
|
|
|
* Attempt to parse a field from the given text, returning a string error if the
|
|
|
* parse failed.
|
|
|
*/
|
|
|
function parseField(text) {
|
|
|
try {
|
|
|
return Result.success(EXPRESSION.field.tryParse(text));
|
|
|
}
|
|
|
catch (error) {
|
|
|
return Result.failure("" + error);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/** All extracted markdown file metadata obtained from a file. */
|
|
|
class PageMetadata {
|
|
|
constructor(path, init) {
|
|
|
this.path = path;
|
|
|
this.fields = new Map();
|
|
|
this.tags = new Set();
|
|
|
this.aliases = new Set();
|
|
|
this.links = [];
|
|
|
Object.assign(this, init);
|
|
|
this.tasks = ((init === null || init === void 0 ? void 0 : init.tasks) || []).map(t => new Task(t));
|
|
|
}
|
|
|
/** Parse all subtags out of the given tag. I.e., #hello/i/am would yield [#hello/i/am, #hello/i, #hello]. */
|
|
|
static parseSubtags(tag) {
|
|
|
let result = [tag];
|
|
|
while (tag.includes("/")) {
|
|
|
tag = tag.substring(0, tag.lastIndexOf("/"));
|
|
|
result.push(tag);
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
|
/** The name (based on path) of this file. */
|
|
|
name() {
|
|
|
return getFileTitle(this.path);
|
|
|
}
|
|
|
/** The containing folder (based on path) of this file. */
|
|
|
folder() {
|
|
|
return getParentFolder(this.path);
|
|
|
}
|
|
|
/** The extension of this file (likely 'md'). */
|
|
|
extension() {
|
|
|
return getExtension(this.path);
|
|
|
}
|
|
|
/** Return a set of tags AND all of their parent tags (so #hello/yes would become #hello, #hello/yes). */
|
|
|
fullTags() {
|
|
|
// TODO: Memoize this, probably.
|
|
|
let result = new Set();
|
|
|
for (let tag of this.tags) {
|
|
|
for (let subtag of PageMetadata.parseSubtags(tag))
|
|
|
result.add(subtag);
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
|
/** Convert all links in this file to file links. */
|
|
|
fileLinks() {
|
|
|
return this.links.map(link => {
|
|
|
switch (link.type) {
|
|
|
case "file":
|
|
|
return link;
|
|
|
case "block":
|
|
|
return {
|
|
|
type: "file",
|
|
|
path: link.path,
|
|
|
display: link.display,
|
|
|
embed: link.embed,
|
|
|
};
|
|
|
case "header":
|
|
|
return {
|
|
|
type: "file",
|
|
|
path: link.path,
|
|
|
display: link.display,
|
|
|
embed: link.embed,
|
|
|
};
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
/** Map this metadata to a full object; uses the index for additional data lookups. */
|
|
|
toObject(index) {
|
|
|
// Static fields first. Note this object should not have any pointers to the original object (so that the
|
|
|
// index cannot accidentally be mutated).
|
|
|
let result = {
|
|
|
file: {
|
|
|
path: this.path,
|
|
|
folder: this.folder(),
|
|
|
name: this.name(),
|
|
|
link: Link.file(this.path, false),
|
|
|
outlinks: this.fileLinks().map(l => Link.file(l.path, false)),
|
|
|
inlinks: Array.from(index.links.getInverse(this.path)).map(l => Link.file(l, false)),
|
|
|
etags: Array.from(this.tags),
|
|
|
tags: Array.from(this.fullTags()),
|
|
|
aliases: Array.from(this.aliases),
|
|
|
tasks: this.tasks.map(t => t.toObject()),
|
|
|
ctime: this.ctime,
|
|
|
cday: DateTime_1.fromObject({ year: this.ctime.year, month: this.ctime.month, day: this.ctime.day }),
|
|
|
mtime: this.mtime,
|
|
|
mday: DateTime_1.fromObject({ year: this.mtime.year, month: this.mtime.month, day: this.mtime.day }),
|
|
|
size: this.size,
|
|
|
ext: this.extension(),
|
|
|
},
|
|
|
};
|
|
|
// Add the current day if present.
|
|
|
if (this.day)
|
|
|
result["file"]["day"] = this.day;
|
|
|
// Then append the computed fields.
|
|
|
for (let [key, value] of this.fields) {
|
|
|
if (key === "file")
|
|
|
continue; // Don't allow fields to override 'file'.
|
|
|
result[key] = value;
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
|
}
|
|
|
/** Convert transfer-friendly markdown to a result we can actually index and use. */
|
|
|
function markdownFromTransferable(parsed) {
|
|
|
let newFields = new Map();
|
|
|
for (let [key, values] of parsed.fields.entries()) {
|
|
|
newFields.set(key, values.map(t => TransferableValues.value(t)));
|
|
|
}
|
|
|
return {
|
|
|
tasks: TransferableValues.value(parsed.tasks),
|
|
|
fields: newFields,
|
|
|
};
|
|
|
}
|
|
|
/** Convert any transferable metadata back to Dataview API friendly data. */
|
|
|
function fromTransferable(value) {
|
|
|
if (value != null && typeof value == "object" && "tasks" in value)
|
|
|
return markdownFromTransferable(value);
|
|
|
else
|
|
|
return TransferableValues.value(value);
|
|
|
}
|
|
|
/** Try to extract a YYYYMMDD date from a string. */
|
|
|
function extractDate(str) {
|
|
|
let dateMatch = /(\d{4})-(\d{2})-(\d{2})/.exec(str);
|
|
|
if (!dateMatch)
|
|
|
dateMatch = /(\d{4})(\d{2})(\d{2})/.exec(str);
|
|
|
if (dateMatch) {
|
|
|
let year = Number.parseInt(dateMatch[1]);
|
|
|
let month = Number.parseInt(dateMatch[2]);
|
|
|
let day = Number.parseInt(dateMatch[3]);
|
|
|
return DateTime_1.fromObject({ year, month, day });
|
|
|
}
|
|
|
return undefined;
|
|
|
}
|
|
|
/** Attempt to find a date associated with the given page from metadata or filenames. */
|
|
|
function findDate(file, fields) {
|
|
|
var _a, _b;
|
|
|
for (let key of fields.keys()) {
|
|
|
if (!(key.toLocaleLowerCase() == "date" || key.toLocaleLowerCase() == "day"))
|
|
|
continue;
|
|
|
let value = fields.get(key);
|
|
|
if (Values.isDate(value))
|
|
|
return value;
|
|
|
else if (Values.isLink(value)) {
|
|
|
let date = extractDate(value.path);
|
|
|
if (date)
|
|
|
return date;
|
|
|
date = extractDate((_a = value.subpath) !== null && _a !== void 0 ? _a : "");
|
|
|
if (date)
|
|
|
return date;
|
|
|
date = extractDate((_b = value.display) !== null && _b !== void 0 ? _b : "");
|
|
|
if (date)
|
|
|
return date;
|
|
|
}
|
|
|
}
|
|
|
return extractDate(getFileTitle(file));
|
|
|
}
|
|
|
/** Recursively convert frontmatter into fields. We have to dance around YAML structure. */
|
|
|
function parseFrontmatter(value) {
|
|
|
if (value == null) {
|
|
|
return null;
|
|
|
}
|
|
|
else if (typeof value === "object") {
|
|
|
if (Array.isArray(value)) {
|
|
|
let result = [];
|
|
|
for (let child of value) {
|
|
|
result.push(parseFrontmatter(child));
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
|
else {
|
|
|
let object = value;
|
|
|
let result = {};
|
|
|
for (let key in object) {
|
|
|
result[key] = parseFrontmatter(object[key]);
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
|
}
|
|
|
else if (typeof value === "number") {
|
|
|
return value;
|
|
|
}
|
|
|
else if (typeof value === "boolean") {
|
|
|
return value;
|
|
|
}
|
|
|
else if (typeof value === "string") {
|
|
|
let dateParse = EXPRESSION.date.parse(value);
|
|
|
if (dateParse.status)
|
|
|
return dateParse.value;
|
|
|
let durationParse = EXPRESSION.duration.parse(value);
|
|
|
if (durationParse.status)
|
|
|
return durationParse.value;
|
|
|
let linkParse = EXPRESSION.embedLink.parse(value);
|
|
|
if (linkParse.status)
|
|
|
return linkParse.value;
|
|
|
return value;
|
|
|
}
|
|
|
// Backup if we don't understand the type.
|
|
|
return null;
|
|
|
}
|
|
|
/** Add an inline field to a nexisting field array, converting a single value into an array if it is present multiple times. */
|
|
|
function addInlineField(fields, name, value) {
|
|
|
if (fields.has(name)) {
|
|
|
let existing = fields.get(name);
|
|
|
if (Values.isArray(existing))
|
|
|
fields.set(name, existing.concat([value]));
|
|
|
else
|
|
|
fields.set(name, [existing, value]);
|
|
|
}
|
|
|
else {
|
|
|
fields.set(name, value);
|
|
|
}
|
|
|
}
|
|
|
/** Matches lines of the form "- [ ] <task thing>". */
|
|
|
const TASK_REGEX = /^(\s*)[-*]\s*(\[[ Xx\.]?\])?\s*([^-*].*)$/iu;
|
|
|
/** Extract markdown metadata from the given Obsidian markdown file. */
|
|
|
function parsePage(file, cache, markdownData) {
|
|
|
var _a;
|
|
|
let tags = new Set();
|
|
|
let aliases = new Set();
|
|
|
let fields = new Map();
|
|
|
// Pull out the easy-to-extract information from the cache first...
|
|
|
let fileCache = cache.getFileCache(file);
|
|
|
if (fileCache) {
|
|
|
// File tags, including front-matter and in-file tags.
|
|
|
(_a = obsidian.getAllTags(fileCache)) === null || _a === void 0 ? void 0 : _a.forEach(t => tags.add(t));
|
|
|
// Front-matter file tags, aliases, AND frontmatter properties.
|
|
|
if (fileCache.frontmatter) {
|
|
|
let frontTags = obsidian.parseFrontMatterTags(fileCache.frontmatter);
|
|
|
if (frontTags) {
|
|
|
for (let tag of frontTags) {
|
|
|
if (!tag.startsWith("#"))
|
|
|
tag = "#" + tag;
|
|
|
tags.add(tag);
|
|
|
}
|
|
|
}
|
|
|
let frontAliases = obsidian.parseFrontMatterAliases(fileCache.frontmatter);
|
|
|
if (frontAliases) {
|
|
|
for (let alias of frontAliases)
|
|
|
aliases.add(alias);
|
|
|
}
|
|
|
let frontFields = parseFrontmatter(fileCache.frontmatter);
|
|
|
for (let [key, value] of Object.entries(frontFields))
|
|
|
fields.set(key, value);
|
|
|
}
|
|
|
}
|
|
|
// Grab links from the frontmatter cache.
|
|
|
let links = [];
|
|
|
if (file.path in cache.resolvedLinks) {
|
|
|
for (let resolved in cache.resolvedLinks[file.path]) {
|
|
|
links.push({
|
|
|
type: "file",
|
|
|
path: resolved,
|
|
|
display: resolved,
|
|
|
embed: false,
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
// Merge frontmatter fields with parsed fields.
|
|
|
for (let [name, values] of markdownData.fields.entries()) {
|
|
|
for (let value of values)
|
|
|
addInlineField(fields, name, value);
|
|
|
}
|
|
|
return new PageMetadata(file.path, {
|
|
|
fields,
|
|
|
tags,
|
|
|
aliases,
|
|
|
links,
|
|
|
tasks: markdownData.tasks,
|
|
|
ctime: DateTime_1.fromMillis(file.stat.ctime),
|
|
|
mtime: DateTime_1.fromMillis(file.stat.mtime),
|
|
|
size: file.stat.size,
|
|
|
day: findDate(file.path, fields),
|
|
|
});
|
|
|
}
|
|
|
|
|
|
var papaparse_min = {exports: {}};
|
|
|
|
|
|
/* @license
|
|
|
Papa Parse
|
|
|
v5.3.1
|
|
|
https://github.com/mholt/PapaParse
|
|
|
License: MIT
|
|
|
*/
|
|
|
|
|
|
(function (module, exports) {
|
|
|
!function(e,t){module.exports=t();}(commonjsGlobal,function s(){var f="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==f?f:{};var n=!f.document&&!!f.postMessage,o=n&&/blob:/i.test((f.location||{}).protocol),a={},h=0,b={parse:function(e,t){var i=(t=t||{}).dynamicTyping||!1;M(i)&&(t.dynamicTypingFunction=i,i={});if(t.dynamicTyping=i,t.transform=!!M(t.transform)&&t.transform,t.worker&&b.WORKERS_SUPPORTED){var r=function(){if(!b.WORKERS_SUPPORTED)return !1;var e=(i=f.URL||f.webkitURL||null,r=s.toString(),b.BLOB_URL||(b.BLOB_URL=i.createObjectURL(new Blob(["(",r,")();"],{type:"text/javascript"})))),t=new f.Worker(e);var i,r;return t.onmessage=_,t.id=h++,a[t.id]=t}();return r.userStep=t.step,r.userChunk=t.chunk,r.userComplete=t.complete,r.userError=t.error,t.step=M(t.step),t.chunk=M(t.chunk),t.complete=M(t.complete),t.error=M(t.error),delete t.worker,void r.postMessage({input:e,config:t,workerId:r.id})}var n=null;b.NODE_STREAM_INPUT,"string"==typeof e?n=t.download?new l(t):new p(t):!0===e.readable&&M(e.read)&&M(e.on)?n=new g(t):(f.File&&e instanceof File||e instanceof Object)&&(n=new c(t));return n.stream(e)},unparse:function(e,t){var n=!1,_=!0,m=",",y="\r\n",s='"',a=s+s,i=!1,r=null,o=!1;!function(){if("object"!=typeof t)return;"string"!=typeof t.delimiter||b.BAD_DELIMITERS.filter(function(e){return -1!==t.delimiter.indexOf(e)}).length||(m=t.delimiter);("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(n=t.quotes);"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(i=t.skipEmptyLines);"string"==typeof t.newline&&(y=t.newline);"string"==typeof t.quoteChar&&(s=t.quoteChar);"boolean"==typeof t.header&&(_=t.header);if(Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");r=t.columns;}void 0!==t.escapeChar&&(a=t.escapeChar+s);"boolean"==typeof t.escapeFormulae&&(o=t.escapeFormulae);}();var h=new RegExp(j(s),"g");"string"==typeof e&&(e=JSON.parse(e));if(Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return u(null,e,i);if("object"==typeof e[0])return u(r||Object.keys(e[0]),e,i)}else if("object"==typeof e)return "string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),u(e.fields||[],e.data||[],i);throw new Error("Unable to serialize unrecognized input");function u(e,t,i){var r="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var n=Array.isArray(e)&&0<e.length,s=!Array.isArray(t[0]);if(n&&_){for(var a=0;a<e.length;a++)0<a&&(r+=m),r+=v(e[a],a);0<t.length&&(r+=y);}for(var o=0;o<t.length;o++){var h=n?e.length:t[o].length,u=!1,f=n?0===Object.keys(t[o]).length:0===t[o].length;if(i&&!n&&(u="greedy"===i?""===t[o].join("").trim():1===t[o].length&&0===t[o][0].length),"greedy"===i&&n){for(var d=[],l=0;l<h;l++){var c=s?e[l]:l;d.push(t[o][c]);}u=""===d.join("").trim();}if(!u){for(var p=0;p<h;p++){0<p&&!f&&(r+=m);var g=n&&s?e[p]:p;r+=v(t[o][g],p);}o<t.length-1&&(!i||0<h&&!f)&&(r+=y);}}return r}function v(e,t){if(null==e)return "";if(e.constructor===Date)return JSON.stringify(e).slice(1,25);!0===o&&"string"==typeof e&&null!==e.match(/^[=+\-@].*$/)&&(e="'"+e);var i=e.toString().replace(h,a),r="boolean"==typeof n&&n||"function"==typeof n&&n(e,t)||Array.isArray(n)&&n[t]||function(e,t){for(var i=0;i<t.length;i++)if(-1<e.indexOf(t[i]))return !0;return !1}(i,b.BAD_DELIMITERS)||-1<i.indexOf(m)||" "===i.charAt(0)||" "===i.charAt(i.length-1);return r?s+i+s:i}}};if(b.RECORD_SEP=String.fromCharCode(30),b.UNIT_SEP=String.fromCharCode(31),b.BYTE_ORDER_MARK="\ufeff",b.BAD_DELIMITERS=["\r","\n",'"',b.BYTE_ORDER_MARK],b.WORKERS_SUPPORTED=!n&&!!f.Worker,b.NODE_STREAM_INPUT=1,b.LocalChunkSize=10485760,b.RemoteChunkSize=5242880,b.DefaultDelimiter=",",b.Parser=E,b.ParserHandle=i,b.NetworkStreamer=l,b.FileStreamer=c,b.StringStreamer=p,b.ReadableStreamStreamer=g,f.jQuery){var d=f.jQuery;d.fn.parse=function(o){var i=o.config||{},h=[];return this.each(function(e){if(!("INPUT"===d(this).prop("tagName").toUpperCase()&&"file"===d(this).attr("type").toLowerCase()&&f.FileReader)||!this.files||0===this.files.length)return !0;for(var t=0;t<this.files.length;t++)h.push({file:this.files[t],inputElem:this,instanceConfig:d.extend({},i)});}),e(),this;function e(){if(0!==h.length){var e,t,i,r,n=h[0];if(M(o.before)){var s=o.before(n.file,n.inputElem);if("object"==typeof s){if("abort"===s.action)return e="AbortError",t=n.file,i=n.inputElem,r=s.reason,void(M(o.error)&&o.error({name:e},t,i,r));if("skip"===s.action)return void u();"object"==typeof s.config&&(n.instanceConfig=d.extend(n.instanceConfig,s.config));}else if("skip"===s)return void u()}var a=n.instanceConfig.complete;n.instanceConfig.complete=function(e){M(a)&&a(e,n.file,n.inputElem),u();},b.parse(n.file,n.instanceConfig);}else M(o.complete)&&o.complete();}function u(){h.splice(0,1),e();}};}function u(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=w(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null);this._handle=new i(t),(this._handle.streamer=this)._config=t;}.call(this,e),this.parseChunk=function(e,t){if(this.isFirstChunk&&M(this._config.beforeFirstChunk)){var i=this._config.beforeFirstChunk(e);void 0!==i&&(e=i);}this.isFirstChunk=!1,this._halted=!1;var r=this._partialLine+e;this._partialLine="";var n=this._handle.parse(r,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var s=n.meta.cursor;this._finished||(this._partialLine=r.substring(s-this._baseIndex),this._baseIndex=s),n&&n.data&&(this._rowCount+=n.data.length);var a=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(o)f.postMessage({results:n,workerId:b.WORKER_ID,finished:a});else if(M(this._config.chunk)&&!t){if(this._config.chunk(n,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);n=void 0,this._completeResults=void 0;}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(n.data),this._completeResults.errors=this._completeResults.errors.concat(n.errors),this._completeResults.meta=n.meta),this._completed||!a||!M(this._config.complete)||n&&n.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),a||n&&n.meta.paused||this._nextChunk(),n}this._halted=!0;},this._sendError=function(e){M(this._config.error)?this._config.error(e):o&&this._config.error&&f.postMessage({workerId:b.WORKER_ID,error:e,finished:!1});};}function l(e){var r;(e=e||{}).chunkSize||(e.chunkSize=b.RemoteChunkSize),u.call(this,e),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded();}:function(){this._readChunk();},this.stream=function(e){this._input=e,this._nextChunk();},this._readChunk=function(){if(this._finished)this._chunkLoaded();else {if(r=new XMLHttpRequest,this._config.withCredentials&&(r.withCredentials=this._config.withCredentials),n||(r.onload=v(this._chunkLoaded,this),r.onerror=v(this._chunkError,this)),r.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var t in e)r.setRequestHeader(t,e[t]);}if(this._config.chunkSize){var i=this._start+this._config.chunkSize-1;r.setRequestHeader("Range","bytes="+this._start+"-"+i);}try{r.send(this._config.downloadRequestBody);}catch(e){this._chunkError(e.message);}n&&0===r.status&&this._chunkError();}},this._chunkLoaded=function(){4===r.readyState&&(r.status<200||400<=r.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:r.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(e){var t=e.getResponseHeader("Content-Range");if(null===t)return -1;return parseInt(t.substring(t.lastIndexOf("/")+1))}(r),this.parseChunk(r.responseText)));},this._chunkError=function(e){var t=r.statusText||e;this._sendError(new Error(t));};}function c(e){var r,n;(e=e||{}).chunkSize||(e.chunkSize=b.LocalChunkSize),u.call(this,e);var s="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,s?((r=new FileReader).onload=v(this._chunkLoaded,this),r.onerror=v(this._chunkError,this)):r=new FileReaderSync,this._nextChunk();},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk();},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var t=Math.min(this._start+this._config.chunkSize,this._input.size);e=n.call(e,this._start,t);}var i=r.readAsText(e,this._config.encoding);s||this._chunkLoaded({target:{result:i}});},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result);},this._chunkError=function(){this._sendError(r.error);};}function p(e){var i;u.call(this,e=e||{}),this.stream=function(e){return i=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,t=this._config.chunkSize;return t?(e=i.substring(0,t),i=i.substring(t)):(e=i,i=""),this._finished=!i,this.parseChunk(e)}};}function g(e){u.call(this,e=e||{});var t=[],i=!0,r=!1;this.pause=function(){u.prototype.pause.apply(this,arguments),this._input.pause();},this.resume=function(){u.prototype.resume.apply(this,arguments),this._input.resume();},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError);},this._checkIsFinished=function(){r&&1===t.length&&(this._finished=!0);},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):i=!0;},this._streamData=v(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(t.shift()));}catch(e){this._streamError(e);}},this),this._streamError=v(function(e){this._streamCleanUp(),this._sendError(e);},this),this._streamEnd=v(function(){this._streamCleanUp(),r=!0,this._streamData("");},this),this._streamCleanUp=v(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError);},this);}function i(m){var a,o,h,r=Math.pow(2,53),n=-r,s=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,u=/^(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))$/,t=this,i=0,f=0,d=!1,e=!1,l=[],c={data:[],errors:[],meta:{}};if(M(m.step)){var p=m.step;m.step=function(e){if(c=e,_())g();else {if(g(),0===c.data.length)return;i+=e.data.length,m.preview&&i>m.preview?o.abort():(c.data=c.data[0],p(c,t));}};}function y(e){return "greedy"===m.skipEmptyLines?""===e.join("").trim():1===e.length&&0===e[0].length}function g(){if(c&&h&&(k("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+b.DefaultDelimiter+"'"),h=!1),m.skipEmptyLines)for(var e=0;e<c.data.length;e++)y(c.data[e])&&c.data.splice(e--,1);return _()&&function(){if(!c)return;function e(e,t){M(m.transformHeader)&&(e=m.transformHeader(e,t)),l.push(e);}if(Array.isArray(c.data[0])){for(var t=0;_()&&t<c.data.length;t++)c.data[t].forEach(e);c.data.splice(0,1);}else c.data.forEach(e);}(),function(){if(!c||!m.header&&!m.dynamicTyping&&!m.transform)return c;function e(e,t){var i,r=m.header?{}:[];for(i=0;i<e.length;i++){var n=i,s=e[i];m.header&&(n=i>=l.length?"__parsed_extra":l[i]),m.transform&&(s=m.transform(s,n)),s=v(n,s),"__parsed_extra"===n?(r[n]=r[n]||[],r[n].push(s)):r[n]=s;}return m.header&&(i>l.length?k("FieldMismatch","TooManyFields","Too many fields: expected "+l.length+" fields but parsed "+i,f+t):i<l.length&&k("FieldMismatch","TooFewFields","Too few fields: expected "+l.length+" fields but parsed "+i,f+t)),r}var t=1;!c.data.length||Array.isArray(c.data[0])?(c.data=c.data.map(e),t=c.data.length):c.data=e(c.data,0);m.header&&c.meta&&(c.meta.fields=l);return f+=t,c}()}function _(){return m.header&&0===l.length}function v(e,t){return i=e,m.dynamicTypingFunction&&void 0===m.dynamicTyping[i]&&(m.dynamicTyping[i]=m.dynamicTypingFunction(i)),!0===(m.dynamicTyping[i]||m.dynamicTyping)?"true"===t||"TRUE"===t||"false"!==t&&"FALSE"!==t&&(function(e){if(s.test(e)){var t=parseFloat(e);if(n<t&&t<r)return !0}return !1}(t)?parseFloat(t):u.test(t)?new Date(t):""===t?null:t):t;var i;}function k(e,t,i,r){var n={type:e,code:t,message:i};void 0!==r&&(n.row=r),c.errors.push(n);}this.parse=function(e,t,i){var r=m.quoteChar||'"';if(m.newline||(m.newline=function(e,t){e=e.substring(0,1048576);var i=new RegExp(j(t)+"([^]*?)"+j(t),"gm"),r=(e=e.replace(i,"")).split("\r"),n=e.split("\n"),s=1<n.length&&n[0].length<r[0].length;if(1===r.length||s)return "\n";for(var a=0,o=0;o<r.length;o++)"\n"===r[o][0]&&a++;return a>=r.length/2?"\r\n":"\r"}(e,r)),h=!1,m.delimiter)M(m.delimiter)&&(m.delimiter=m.delimiter(e),c.meta.delimiter=m.delimiter);else {var n=function(e,t,i,r,n){var s,a,o,h;n=n||[",","\t","|",";",b.RECORD_SEP,b.UNIT_SEP];for(var u=0;u<n.length;u++){var f=n[u],d=0,l=0,c=0;o=void 0;for(var p=new E({comments:r,delimiter:f,newline:t,preview:10}).parse(e),g=0;g<p.data.length;g++)if(i&&y(p.data[g]))c++;else {var _=p.data[g].length;l+=_,void 0!==o?0<_&&(d+=Math.abs(_-o),o=_):o=_;}0<p.data.length&&(l/=p.data.length-c),(void 0===a||d<=a)&&(void 0===h||h<l)&&1.99<l&&(a=d,s=f,h=l);}return {successful:!!(m.delimiter=s),bestDelimiter:s}}(e,m.newline,m.skipEmptyLines,m.comments,m.delimitersToGuess);n.successful?m.delimiter=n.bestDelimiter:(h=!0,m.delimiter=b.DefaultDelimiter),c.meta.delimiter=m.delimiter;}var s=w(m);return m.preview&&m.header&&s.preview++,a=e,o=new E(s),c=o.parse(a,t,i),g(),d?{meta:{paused:!0}}:c||{meta:{paused:!1}}},this.paused=function(){return d},this.pause=function(){d=!0,o.abort(),a=M(m.chunk)?"":a.substring(o.getCharIndex());},this.resume=function(){t.streamer._halted?(d=!1,t.streamer.parseChunk(a,!0)):setTimeout(t.resume,3);},this.aborted=function(){return e},this.abort=function(){e=!0,o.abort(),c.meta.aborted=!0,M(m.complete)&&m.complete(c),a="";};}function j(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function E(e){var S,O=(e=e||{}).delimiter,x=e.newline,I=e.comments,T=e.step,D=e.preview,A=e.fastMode,L=S=void 0===e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(L=e.escapeChar),("string"!=typeof O||-1<b.BAD_DELIMITERS.indexOf(O))&&(O=","),I===O)throw new Error("Comment character same as delimiter");!0===I?I="#":("string"!=typeof I||-1<b.BAD_DELIMITERS.indexOf(I))&&(I=!1),"\n"!==x&&"\r"!==x&&"\r\n"!==x&&(x="\n");var F=0,z=!1;this.parse=function(r,t,i){if("string"!=typeof r)throw new Error("Input must be a string");var n=r.length,e=O.length,s=x.length,a=I.length,o=M(T),h=[],u=[],f=[],d=F=0;if(!r)return C();if(A||!1!==A&&-1===r.indexOf(S)){for(var l=r.split(x),c=0;c<l.length;c++){if(f=l[c],F+=f.length,c!==l.length-1)F+=x.length;else if(i)return C();if(!I||f.substring(0,a)!==I){if(o){if(h=[],k(f.split(O)),R(),z)return C()}else k(f.split(O));if(D&&D<=c)return h=h.slice(0,D),C(!0)}}return C()}for(var p=r.indexOf(O,F),g=r.indexOf(x,F),_=new RegExp(j(L)+j(S),"g"),m=r.indexOf(S,F);;)if(r[F]!==S)if(I&&0===f.length&&r.substring(F,F+a)===I){if(-1===g)return C();F=g+s,g=r.indexOf(x,F),p=r.indexOf(O,F);}else if(-1!==p&&(p<g||-1===g))f.push(r.substring(F,p)),F=p+e,p=r.indexOf(O,F);else {if(-1===g)break;if(f.push(r.substring(F,g)),w(g+s),o&&(R(),z))return C();if(D&&h.length>=D)return C(!0)}else for(m=F,F++;;){if(-1===(m=r.indexOf(S,m+1)))return i||u.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:h.length,index:F}),E();if(m===n-1)return E(r.substring(F,m).replace(_,S));if(S!==L||r[m+1]!==L){if(S===L||0===m||r[m-1]!==L){-1!==p&&p<m+1&&(p=r.indexOf(O,m+1)),-1!==g&&g<m+1&&(g=r.indexOf(x,m+1));var y=b(-1===g?p:Math.min(p,g));if(r[m+1+y]===O){f.push(r.substring(F,m).replace(_,S)),r[F=m+1+y+e]!==S&&(m=r.indexOf(S,F)),p=r.indexOf(O,F),g=r.indexOf(x,F);break}var v=b(g);if(r.substring(m+1+v,m+1+v+s)===x){if(f.push(r.substring(F,m).replace(_,S)),w(m+1+v+s),p=r.indexOf(O,F),m=r.indexOf(S,F),o&&(R(),z))return C();if(D&&h.length>=D)return C(!0);break}u.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:h.length,index:F}),m++;}}else m++;}return E();function k(e){h.push(e),d=F;}function b(e){var t=0;if(-1!==e){var i=r.substring(m+1,e);i&&""===i.trim()&&(t=i.length);}return t}function E(e){return i||(void 0===e&&(e=r.substring(F)),f.push(e),F=n,k(f),o&&R()),C()}function w(e){F=e,k(f),f=[],g=r.indexOf(x,F);}function C(e){return {data:h,errors:u,meta:{delimiter:O,linebreak:x,aborted:z,truncated:!!e,cursor:d+(t||0)}}}function R(){T(C()),h=[],u=[];}},this.abort=function(){z=!0;},this.getCharIndex=function(){return F};}function _(e){var t=e.data,i=a[t.workerId],r=!1;if(t.error)i.userError(t.error,t.file);else if(t.results&&t.results.data){var n={abort:function(){r=!0,m(t.workerId,{data:[],errors:[],meta:{aborted:!0}});},pause:y,resume:y};if(M(i.userStep)){for(var s=0;s<t.results.data.length&&(i.userStep({data:t.results.data[s],errors:t.results.errors,meta:t.results.meta},n),!r);s++);delete t.results;}else M(i.userChunk)&&(i.userChunk(t.results,n,t.file),delete t.results);}t.finished&&!r&&m(t.workerId,t.results);}function m(e,t){var i=a[e];M(i.userComplete)&&i.userComplete(t),i.terminate(),delete a[e];}function y(){throw new Error("Not implemented.")}function w(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var i in e)t[i]=w(e[i]);return t}function v(e,t){return function(){e.apply(t,arguments);}}function M(e){return "function"==typeof e}return o&&(f.onmessage=function(e){var t=e.data;void 0===b.WORKER_ID&&t&&(b.WORKER_ID=t.workerId);if("string"==typeof t.input)f.postMessage({workerId:b.WORKER_ID,results:b.parse(t.input,t.config),finished:!0});else if(f.File&&t.input instanceof File||t.input instanceof Object){var i=b.parse(t.input,t.config);i&&f.postMessage({workerId:b.WORKER_ID,results:i,finished:!0});}}),(l.prototype=Object.create(u.prototype)).constructor=l,(c.prototype=Object.create(u.prototype)).constructor=c,(p.prototype=Object.create(p.prototype)).constructor=p,(g.prototype=Object.create(u.prototype)).constructor=g,b});
|
|
|
}(papaparse_min));
|
|
|
|
|
|
/** Parse a CSV file into a collection of data rows. */
|
|
|
function parseCsv(content) {
|
|
|
let parsed = papaparse_min.exports.parse(content, {
|
|
|
header: true,
|
|
|
skipEmptyLines: true,
|
|
|
comments: true,
|
|
|
dynamicTyping: true,
|
|
|
});
|
|
|
let rows = [];
|
|
|
for (let parsedRow of parsed.data) {
|
|
|
let fields = parseFrontmatter(parsedRow);
|
|
|
let result = {};
|
|
|
for (let [key, value] of Object.entries(fields)) {
|
|
|
result[canonicalizeVarName(key)] = value;
|
|
|
}
|
|
|
rows.push(result);
|
|
|
}
|
|
|
return rows;
|
|
|
}
|
|
|
|
|
|
/** A generic index which indexes variables of the form key -> value[], allowing both forward and reverse lookups. */
|
|
|
class IndexMap {
|
|
|
/** Create a new, empty index map. */
|
|
|
constructor() {
|
|
|
this.map = new Map();
|
|
|
this.invMap = new Map();
|
|
|
}
|
|
|
/** Returns all values for the given key. */
|
|
|
get(key) {
|
|
|
let result = this.map.get(key);
|
|
|
if (result) {
|
|
|
return new Set(result);
|
|
|
}
|
|
|
else {
|
|
|
return new Set();
|
|
|
}
|
|
|
}
|
|
|
/** Returns all keys that reference the given key. */
|
|
|
getInverse(value) {
|
|
|
let result = this.invMap.get(value);
|
|
|
if (result) {
|
|
|
return new Set(result);
|
|
|
}
|
|
|
else {
|
|
|
return new Set();
|
|
|
}
|
|
|
}
|
|
|
set(key, values) {
|
|
|
var _a;
|
|
|
if (this.map.has(key))
|
|
|
this.delete(key);
|
|
|
this.map.set(key, values);
|
|
|
for (let value of values) {
|
|
|
if (!this.invMap.has(value))
|
|
|
this.invMap.set(value, new Set());
|
|
|
(_a = this.invMap.get(value)) === null || _a === void 0 ? void 0 : _a.add(key);
|
|
|
}
|
|
|
return this;
|
|
|
}
|
|
|
/** Clears all values for the given key so they can be re-added. */
|
|
|
delete(key) {
|
|
|
var _a;
|
|
|
let oldValues = this.map.get(key);
|
|
|
if (!oldValues)
|
|
|
return false;
|
|
|
this.map.delete(key);
|
|
|
for (let value of oldValues) {
|
|
|
(_a = this.invMap.get(value)) === null || _a === void 0 ? void 0 : _a.delete(key);
|
|
|
}
|
|
|
return true;
|
|
|
}
|
|
|
/** Rename all references to the given key to a new value. */
|
|
|
rename(oldKey, newKey) {
|
|
|
let oldValues = this.map.get(oldKey);
|
|
|
if (!oldValues)
|
|
|
return false;
|
|
|
this.delete(oldKey);
|
|
|
this.set(newKey, oldValues);
|
|
|
return true;
|
|
|
}
|
|
|
/** Clear the entire index. */
|
|
|
clear() {
|
|
|
this.map.clear();
|
|
|
this.invMap.clear();
|
|
|
}
|
|
|
}
|
|
|
/** Multi-threaded file parser which debounces queues automatically. */
|
|
|
class BackgroundFileParser {
|
|
|
constructor(numWorkers, vault) {
|
|
|
this.numWorkers = numWorkers;
|
|
|
this.vault = vault;
|
|
|
this.workers = [];
|
|
|
this.nextWorkerId = 0;
|
|
|
this.reloadQueue = new Map();
|
|
|
this.waitingCallbacks = new Map();
|
|
|
this.pastPromises = new Map();
|
|
|
for (let index = 0; index < numWorkers; index++) {
|
|
|
let worker = new WorkerFactory({ name: "Dataview Indexer" });
|
|
|
worker.onmessage = evt => {
|
|
|
let callbacks = this.pastPromises.get(evt.data.path);
|
|
|
let parsed = fromTransferable(evt.data.result);
|
|
|
if (callbacks && callbacks.length > 0) {
|
|
|
for (let callback of callbacks)
|
|
|
callback(parsed);
|
|
|
}
|
|
|
this.pastPromises.delete(evt.data.path);
|
|
|
};
|
|
|
this.workers.push(worker);
|
|
|
}
|
|
|
this.reloadHandler = window.setInterval(() => {
|
|
|
var _a, _b;
|
|
|
let queueCopy = Array.from(this.reloadQueue.values());
|
|
|
this.reloadQueue.clear();
|
|
|
for (let [key, value] of this.waitingCallbacks.entries()) {
|
|
|
if (this.pastPromises.has(key))
|
|
|
this.pastPromises.set(key, (_b = (_a = this.pastPromises.get(key)) === null || _a === void 0 ? void 0 : _a.concat(value)) !== null && _b !== void 0 ? _b : []);
|
|
|
else
|
|
|
this.pastPromises.set(key, value);
|
|
|
}
|
|
|
this.waitingCallbacks.clear();
|
|
|
for (let file of queueCopy) {
|
|
|
let workerId = this.nextWorkerId;
|
|
|
this.vault.read(file).then(c => this.workers[workerId].postMessage({ path: file.path, contents: c }));
|
|
|
this.nextWorkerId = (this.nextWorkerId + 1) % this.numWorkers;
|
|
|
}
|
|
|
}, BackgroundFileParser.QUEUE_TIMEOUT);
|
|
|
}
|
|
|
reload(file) {
|
|
|
this.reloadQueue.set(file.path, file);
|
|
|
return new Promise((resolve, _reject) => {
|
|
|
var _a;
|
|
|
if (this.waitingCallbacks.has(file.path))
|
|
|
(_a = this.waitingCallbacks.get(file.path)) === null || _a === void 0 ? void 0 : _a.push(resolve);
|
|
|
else
|
|
|
this.waitingCallbacks.set(file.path, [resolve]);
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
/** Time in milliseconds before a file is allowed to be requeued after being queued. */
|
|
|
BackgroundFileParser.QUEUE_TIMEOUT = 500;
|
|
|
/** Aggregate index which has several sub-indices and will initialize all of them. */
|
|
|
class FullIndex {
|
|
|
/** Construct a new index over the given vault and metadata cache. */
|
|
|
constructor(plugin) {
|
|
|
this.plugin = plugin;
|
|
|
this.pages = new Map();
|
|
|
this.tags = new IndexMap();
|
|
|
this.etags = new IndexMap();
|
|
|
this.links = new IndexMap();
|
|
|
this.folders = new IndexMap();
|
|
|
this.revision = 0;
|
|
|
// The metadata cache is updated on file changes.
|
|
|
this.metadataCache.on("changed", file => this.reload(file));
|
|
|
// Renames do not set off the metadata cache; catch these explicitly.
|
|
|
this.vault.on("rename", (file, oldPath) => {
|
|
|
this.folders.delete(oldPath);
|
|
|
if (file instanceof obsidian.TFile) {
|
|
|
this.pages.delete(oldPath);
|
|
|
this.tags.delete(oldPath);
|
|
|
this.etags.delete(oldPath);
|
|
|
this.links.delete(oldPath);
|
|
|
this.reload(file);
|
|
|
}
|
|
|
this.revision += 1;
|
|
|
this.plugin.trigger("dataview:metadata-change", "rename", file, oldPath);
|
|
|
});
|
|
|
// File creation does cause a metadata change, but deletes do not. Clear the caches for this.
|
|
|
this.vault.on("delete", af => {
|
|
|
if (!(af instanceof obsidian.TFile))
|
|
|
return;
|
|
|
let file = af;
|
|
|
this.pages.delete(file.path);
|
|
|
this.tags.delete(file.path);
|
|
|
this.etags.delete(file.path);
|
|
|
this.links.delete(file.path);
|
|
|
this.folders.delete(file.path);
|
|
|
this.revision += 1;
|
|
|
this.plugin.trigger("dataview:metadata-change", "delete", file);
|
|
|
});
|
|
|
}
|
|
|
/** Generate a full index from the given vault. */
|
|
|
static generate(plugin) {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
let index = new FullIndex(plugin);
|
|
|
yield index.initialize();
|
|
|
return Promise.resolve(index);
|
|
|
});
|
|
|
}
|
|
|
get vault() {
|
|
|
return this.plugin.app.vault;
|
|
|
}
|
|
|
get metadataCache() {
|
|
|
return this.plugin.app.metadataCache;
|
|
|
}
|
|
|
/** I am not a fan of a separate "construct/initialize" step, but constructors cannot be async. */
|
|
|
initialize() {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
this.backgroundParser = new BackgroundFileParser(4, this.vault);
|
|
|
// Prefix listens to file creation/deletion/rename, and not modifies, so we let it set up it's own listeners.
|
|
|
this.prefix = yield PrefixIndex.generate(this.vault, () => (this.revision += 1));
|
|
|
// The CSV cache also needs to listen to filesystem events for cache invalidation.
|
|
|
this.csv = new CsvCache(this.vault);
|
|
|
// Traverse all markdown files & fill in initial data.
|
|
|
let start = new Date().getTime();
|
|
|
this.vault.getMarkdownFiles().forEach(file => this.reload(file));
|
|
|
console.log("Dataview: Task & metadata parsing queued in %.3fs.", (new Date().getTime() - start) / 1000.0);
|
|
|
});
|
|
|
}
|
|
|
/** Queue a file for reloading; this is done asynchronously in the background and may take a few seconds. */
|
|
|
reload(file) {
|
|
|
this.backgroundParser.reload(file).then(r => this.reloadInternal(file, r));
|
|
|
}
|
|
|
reloadInternal(file, parsed) {
|
|
|
let meta = parsePage(file, this.metadataCache, parsed);
|
|
|
this.pages.set(file.path, meta);
|
|
|
this.tags.set(file.path, meta.fullTags());
|
|
|
this.etags.set(file.path, meta.tags);
|
|
|
this.links.set(file.path, new Set(meta.links.map(l => l.path)));
|
|
|
this.folders.set(file.path, new Set([getParentFolder(file.path)]));
|
|
|
this.revision += 1;
|
|
|
this.metadataCache.trigger("dataview:metadata-change", "update", file);
|
|
|
}
|
|
|
}
|
|
|
/** A node in the prefix tree. */
|
|
|
class PrefixIndexNode {
|
|
|
constructor(element) {
|
|
|
this.element = element;
|
|
|
this.files = new Set();
|
|
|
this.totalCount = 0;
|
|
|
this.children = new Map();
|
|
|
}
|
|
|
static add(root, path) {
|
|
|
let parts = path.split("/");
|
|
|
let node = root;
|
|
|
for (let index = 0; index < parts.length - 1; index++) {
|
|
|
if (!node.children.has(parts[index]))
|
|
|
node.children.set(parts[index], new PrefixIndexNode(parts[index]));
|
|
|
node.totalCount += 1;
|
|
|
node = node.children.get(parts[index]);
|
|
|
}
|
|
|
node.totalCount += 1;
|
|
|
node.files.add(path);
|
|
|
}
|
|
|
static remove(root, path) {
|
|
|
let parts = path.split("/");
|
|
|
let node = root;
|
|
|
let nodes = [];
|
|
|
for (let index = 0; index < parts.length - 1; index++) {
|
|
|
if (!node.children.has(parts[index]))
|
|
|
return;
|
|
|
nodes.push(node);
|
|
|
node = node.children.get(parts[index]);
|
|
|
}
|
|
|
if (!node.files.has(path))
|
|
|
return;
|
|
|
node.files.delete(path);
|
|
|
node.totalCount -= 1;
|
|
|
for (let p of nodes)
|
|
|
p.totalCount -= 1;
|
|
|
}
|
|
|
static find(root, prefix) {
|
|
|
if (prefix.length == 0 || prefix == "/")
|
|
|
return root;
|
|
|
let parts = prefix.split("/");
|
|
|
let node = root;
|
|
|
for (let index = 0; index < parts.length; index++) {
|
|
|
if (!node.children.has(parts[index]))
|
|
|
return null;
|
|
|
node = node.children.get(parts[index]);
|
|
|
}
|
|
|
return node;
|
|
|
}
|
|
|
/** Gather all files at and under the given node, optionally filtering the result by the given filter. */
|
|
|
static gather(root, filter) {
|
|
|
let result = new Set();
|
|
|
PrefixIndexNode.gatherRec(root, result);
|
|
|
if (filter) {
|
|
|
return new Set(Array.from(result).filter(filter));
|
|
|
}
|
|
|
else {
|
|
|
return result;
|
|
|
}
|
|
|
}
|
|
|
static gatherRec(root, output) {
|
|
|
for (let file of root.files)
|
|
|
output.add(file);
|
|
|
for (let child of root.children.values())
|
|
|
this.gatherRec(child, output);
|
|
|
}
|
|
|
}
|
|
|
/** Indexes files by their full prefix - essentially a simple prefix tree. */
|
|
|
class PrefixIndex {
|
|
|
constructor(vault, root, updateRevision) {
|
|
|
this.vault = vault;
|
|
|
this.root = root;
|
|
|
this.updateRevision = updateRevision;
|
|
|
// TODO: I'm not sure if there is an event for all files in a folder, or just the folder.
|
|
|
// I'm assuming the former naively for now until I inevitably fix it.
|
|
|
this.vault.on("delete", file => {
|
|
|
PrefixIndexNode.remove(this.root, file.path);
|
|
|
updateRevision();
|
|
|
});
|
|
|
this.vault.on("create", file => {
|
|
|
PrefixIndexNode.add(this.root, file.path);
|
|
|
updateRevision();
|
|
|
});
|
|
|
this.vault.on("rename", (file, old) => {
|
|
|
PrefixIndexNode.remove(this.root, old);
|
|
|
PrefixIndexNode.add(this.root, file.path);
|
|
|
updateRevision();
|
|
|
});
|
|
|
}
|
|
|
static generate(vault, updateRevision) {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
let root = new PrefixIndexNode("");
|
|
|
let timeStart = new Date().getTime();
|
|
|
for (let file of vault.getFiles()) {
|
|
|
PrefixIndexNode.add(root, file.path);
|
|
|
}
|
|
|
console.log("Dataview: File prefix tree built in %.3fs.", (new Date().getTime() - timeStart) / 1000.0);
|
|
|
return new PrefixIndex(vault, root, updateRevision);
|
|
|
});
|
|
|
}
|
|
|
/** Get the list of all files under the given path. */
|
|
|
get(prefix, filter) {
|
|
|
let node = PrefixIndexNode.find(this.root, prefix);
|
|
|
if (node == null || node == undefined)
|
|
|
return new Set();
|
|
|
return PrefixIndexNode.gather(node, filter);
|
|
|
}
|
|
|
/** Determines if the given path exists in the prefix index. */
|
|
|
exists(path) {
|
|
|
let node = PrefixIndexNode.find(this.root, getParentFolder(path));
|
|
|
return node != null && node.files.has(path);
|
|
|
}
|
|
|
/**
|
|
|
* Use the in-memory prefix index to convert a relative path to an absolute one.
|
|
|
*/
|
|
|
resolveRelative(path, origin) {
|
|
|
if (!origin)
|
|
|
return path;
|
|
|
else if (path.startsWith("/"))
|
|
|
return path.substring(1);
|
|
|
let relativePath = getParentFolder(origin) + "/" + path;
|
|
|
if (this.exists(relativePath))
|
|
|
return relativePath;
|
|
|
else
|
|
|
return path;
|
|
|
}
|
|
|
}
|
|
|
/** Simple path filters which filter file types. */
|
|
|
var PathFilters;
|
|
|
(function (PathFilters) {
|
|
|
function csv(path) {
|
|
|
return path.toLowerCase().endsWith(".csv");
|
|
|
}
|
|
|
PathFilters.csv = csv;
|
|
|
function markdown(path) {
|
|
|
let lcPath = path.toLowerCase();
|
|
|
return lcPath.endsWith(".md") || lcPath.endsWith(".markdown");
|
|
|
}
|
|
|
PathFilters.markdown = markdown;
|
|
|
})(PathFilters || (PathFilters = {}));
|
|
|
/**
|
|
|
* Caches in-use CSVs to make high-frequency reloads (such as actively looking at a document
|
|
|
* that uses CSV) fast.
|
|
|
*
|
|
|
* Encapsulates logic for fetching CSV
|
|
|
*/
|
|
|
class CsvCache {
|
|
|
constructor(vault) {
|
|
|
this.vault = vault;
|
|
|
this.cache = new Map();
|
|
|
this.cacheClearInterval = window.setInterval(() => {
|
|
|
this.clearOldEntries();
|
|
|
}, 60 * 1000);
|
|
|
}
|
|
|
/** Load a CSV file from the cache, doing a fresh load if it has not been loaded. */
|
|
|
get(path) {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
let existing = this.cache.get(path);
|
|
|
if (existing)
|
|
|
return Result.success(existing.data);
|
|
|
else {
|
|
|
let value = yield this.load(path);
|
|
|
if (value.successful)
|
|
|
this.cache.set(path, { data: value.value, loadTime: DateTime_1.now() });
|
|
|
return value;
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
/** Do the actual raw loading of a CSV path (which is either local or an HTTP request). */
|
|
|
load(path) {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
// Allow http://, https://, and file:// prefixes which use AJAX.
|
|
|
if (path.startsWith("http://") || path.startsWith("https://") || path.startsWith("file://")) {
|
|
|
try {
|
|
|
let result = yield fetch(path, {
|
|
|
method: "GET",
|
|
|
mode: "no-cors",
|
|
|
redirect: "follow",
|
|
|
});
|
|
|
return Result.success(parseCsv(yield result.text()));
|
|
|
}
|
|
|
catch (ex) {
|
|
|
return Result.failure("" + ex + "\n\n" + ex.stack);
|
|
|
}
|
|
|
}
|
|
|
// Otherwise, assume it is a fully-qualified file path.
|
|
|
try {
|
|
|
let fileData = yield this.vault.adapter.read(path);
|
|
|
return Result.success(parseCsv(fileData));
|
|
|
}
|
|
|
catch (ex) {
|
|
|
return Result.failure(`Failed to load data from path '${path}'.`);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
/** Clear old entries in the cache (as measured by insertion time). */
|
|
|
clearOldEntries() {
|
|
|
let currentTime = DateTime_1.now();
|
|
|
let keysToRemove = new Set();
|
|
|
for (let [key, value] of this.cache.entries()) {
|
|
|
let entryAge = Math.abs(currentTime.diff(value.loadTime, "seconds").seconds);
|
|
|
if (entryAge > CsvCache.CACHE_EXPIRY_SECONDS)
|
|
|
keysToRemove.add(key);
|
|
|
}
|
|
|
keysToRemove.forEach(key => this.cache.delete(key));
|
|
|
}
|
|
|
}
|
|
|
/** How long until a CSV cache entry is timed out, in seconds. */
|
|
|
CsvCache.CACHE_EXPIRY_SECONDS = 5 * 60;
|
|
|
|
|
|
/** Holds DOM events for a rendered task view, including check functionality. */
|
|
|
class TaskViewLifecycle extends obsidian.MarkdownRenderChild {
|
|
|
constructor(vault, container) {
|
|
|
super(container);
|
|
|
this.vault = vault;
|
|
|
this.containerEl = container;
|
|
|
}
|
|
|
onload() {
|
|
|
let checkboxes = this.containerEl.querySelectorAll("input");
|
|
|
for (let index = 0; index < checkboxes.length; index++) {
|
|
|
const checkbox = checkboxes.item(index);
|
|
|
this.registerHandler(checkbox);
|
|
|
}
|
|
|
}
|
|
|
registerHandler(checkbox) {
|
|
|
this.registerDomEvent(checkbox, "click", event => {
|
|
|
var _a, _b, _c, _d;
|
|
|
let file = checkbox.dataset["file"];
|
|
|
let lineno = checkbox.dataset["lineno"];
|
|
|
let text = checkbox.dataset["text"];
|
|
|
if (!file || !lineno || !text)
|
|
|
return;
|
|
|
if (!checkbox.hasAttribute("checked")) {
|
|
|
let newCheckbox = createCheckbox(file, parseInt(lineno), text, true);
|
|
|
(_a = checkbox.parentElement) === null || _a === void 0 ? void 0 : _a.addClass("is-checked");
|
|
|
(_b = checkbox.parentElement) === null || _b === void 0 ? void 0 : _b.replaceChild(newCheckbox, checkbox);
|
|
|
this.registerHandler(newCheckbox);
|
|
|
setTaskCheckedInFile(this.vault, file, parseInt(lineno), text, false, true);
|
|
|
}
|
|
|
else {
|
|
|
let newCheckbox = createCheckbox(file, parseInt(lineno), text, false);
|
|
|
(_c = checkbox.parentElement) === null || _c === void 0 ? void 0 : _c.removeClass("is-checked");
|
|
|
(_d = checkbox.parentElement) === null || _d === void 0 ? void 0 : _d.replaceChild(newCheckbox, checkbox);
|
|
|
this.registerHandler(newCheckbox);
|
|
|
setTaskCheckedInFile(this.vault, file, parseInt(lineno), text, true, false);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
/** Render a task grouping (indenting nested groupings for clarity). */
|
|
|
function renderTasks(container, tasks, originFile, component, settings) {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
switch (tasks.type) {
|
|
|
case "base":
|
|
|
yield renderTaskList(container, tasks.value);
|
|
|
break;
|
|
|
case "grouped":
|
|
|
for (let { key, value } of tasks.groups) {
|
|
|
let header = container.createEl("h4");
|
|
|
yield renderValue(key, header, originFile, component, settings);
|
|
|
let div = container.createDiv({ cls: ["dataview", "result-group"] });
|
|
|
yield renderTasks(div, value, originFile, component, settings);
|
|
|
}
|
|
|
break;
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
/** Render a list of tasks as a single list. */
|
|
|
function renderTaskList(container, tasks) {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
let ul = container.createEl("ul", { cls: "contains-task-list" });
|
|
|
for (let task of tasks) {
|
|
|
let li = ul.createEl("li");
|
|
|
if (task.real) {
|
|
|
li.addClass("task-list-item");
|
|
|
if (task.completed)
|
|
|
li.addClass("is-checked");
|
|
|
}
|
|
|
// Render the text as markdown so that bolds, links, and other things work properly.
|
|
|
yield obsidian.MarkdownRenderer.renderMarkdown(task.text, li, task.path, new obsidian.Component());
|
|
|
// Unwrap the paragraph element that is created.
|
|
|
let paragraph = li.querySelector("p");
|
|
|
if (paragraph) {
|
|
|
li.innerHTML = paragraph.innerHTML;
|
|
|
paragraph.remove();
|
|
|
}
|
|
|
if (task.real) {
|
|
|
let check = createCheckbox(task.path, task.line, task.text, task.completed);
|
|
|
li.prepend(check);
|
|
|
}
|
|
|
if (task.subtasks.length > 0) {
|
|
|
renderTaskList(li, task.subtasks);
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
function createCheckbox(file, line, text, checked) {
|
|
|
let check = document.createElement("input");
|
|
|
check.addClass("task-list-item-checkbox");
|
|
|
check.type = "checkbox";
|
|
|
check.dataset["file"] = file;
|
|
|
check.dataset["lineno"] = "" + line;
|
|
|
// This field is technically optional, but is provided to double-check
|
|
|
// we are editing the right line!
|
|
|
check.dataset["text"] = text;
|
|
|
if (checked) {
|
|
|
check.setAttribute("checked", "");
|
|
|
}
|
|
|
return check;
|
|
|
}
|
|
|
/** Check a task in a file by rewriting it. */
|
|
|
function setTaskCheckedInFile(vault, path, taskLine, taskText, wasChecked, check) {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
if (check == wasChecked)
|
|
|
return;
|
|
|
let text = yield vault.adapter.read(path);
|
|
|
let splitText = text.replace("\r", "").split("\n");
|
|
|
if (splitText.length < taskLine)
|
|
|
return;
|
|
|
let match = TASK_REGEX.exec(splitText[taskLine - 1]);
|
|
|
if (!match)
|
|
|
return;
|
|
|
let foundText = match[3];
|
|
|
let foundCompleted = match[2] == "X" || match[2] == "x";
|
|
|
if (taskText.trim() != foundText.trim())
|
|
|
return;
|
|
|
if (wasChecked != foundCompleted)
|
|
|
return;
|
|
|
if (check) {
|
|
|
splitText[taskLine - 1] = splitText[taskLine - 1]
|
|
|
.replace("- [ ]", "- [x]")
|
|
|
.replace("- []", "- [x]")
|
|
|
.replace("-[]", "- [x]");
|
|
|
}
|
|
|
else {
|
|
|
splitText[taskLine - 1] = splitText[taskLine - 1]
|
|
|
.replace("- [X]", "- [ ]")
|
|
|
.replace("-[X]", "- [ ]")
|
|
|
.replace("- [x]", "- [ ]")
|
|
|
.replace("-[x]", "- [ ]");
|
|
|
}
|
|
|
let hasRn = text.contains("\r");
|
|
|
if (hasRn) {
|
|
|
let final = splitText.join("\r\n");
|
|
|
yield vault.adapter.write(path, final);
|
|
|
}
|
|
|
else {
|
|
|
let final = splitText.join("\n");
|
|
|
yield vault.adapter.write(path, final);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
/** Utility functions for quickly creating fields. */
|
|
|
var QueryFields;
|
|
|
(function (QueryFields) {
|
|
|
function named(name, field) {
|
|
|
return { name, field };
|
|
|
}
|
|
|
QueryFields.named = named;
|
|
|
function sortBy(field, dir) {
|
|
|
return { field, direction: dir };
|
|
|
}
|
|
|
QueryFields.sortBy = sortBy;
|
|
|
})(QueryFields || (QueryFields = {}));
|
|
|
|
|
|
/** A parsimmon-powered parser-combinator implementation of the query language. */
|
|
|
const QUERY_LANGUAGE = parsimmon_umd_min.exports.createLanguage({
|
|
|
// Simple atom parsing, like words, identifiers, numbers.
|
|
|
queryType: q => parsimmon_umd_min.exports.alt(parsimmon_umd_min.exports.regexp(/TABLE|LIST|TASK/i))
|
|
|
.map(str => str.toLowerCase())
|
|
|
.desc("query type ('TABLE', 'LIST', or 'TASK')"),
|
|
|
explicitNamedField: q => parsimmon_umd_min.exports.seqMap(EXPRESSION.field.skip(parsimmon_umd_min.exports.whitespace), parsimmon_umd_min.exports.regexp(/AS/i).skip(parsimmon_umd_min.exports.whitespace), EXPRESSION.identifier.or(EXPRESSION.string), (field, _as, ident) => QueryFields.named(ident, field)),
|
|
|
namedField: q => parsimmon_umd_min.exports.alt(q.explicitNamedField, EXPRESSION.identifierDot.map(ident => QueryFields.named(ident, Fields.indexVariable(ident)))),
|
|
|
sortField: q => parsimmon_umd_min.exports.seqMap(EXPRESSION.field.skip(parsimmon_umd_min.exports.optWhitespace), parsimmon_umd_min.exports.regexp(/ASCENDING|DESCENDING|ASC|DESC/i).atMost(1), (field, dir) => {
|
|
|
let direction = dir.length == 0 ? "ascending" : dir[0].toLowerCase();
|
|
|
if (direction == "desc")
|
|
|
direction = "descending";
|
|
|
if (direction == "asc")
|
|
|
direction = "ascending";
|
|
|
return {
|
|
|
field: field,
|
|
|
direction: direction,
|
|
|
};
|
|
|
}),
|
|
|
headerClause: q => q.queryType.skip(parsimmon_umd_min.exports.whitespace).chain(qtype => {
|
|
|
switch (qtype) {
|
|
|
case "table":
|
|
|
return parsimmon_umd_min.exports.seqMap(parsimmon_umd_min.exports.regexp(/WITHOUT\s+ID/i)
|
|
|
.skip(parsimmon_umd_min.exports.optWhitespace)
|
|
|
.atMost(1), parsimmon_umd_min.exports.sepBy(q.namedField, parsimmon_umd_min.exports.string(",").trim(parsimmon_umd_min.exports.optWhitespace)), (withoutId, fields) => {
|
|
|
return { type: "table", fields, showId: withoutId.length == 0 };
|
|
|
});
|
|
|
case "list":
|
|
|
return parsimmon_umd_min.exports.seqMap(parsimmon_umd_min.exports.regexp(/WITHOUT\s+ID/i)
|
|
|
.skip(parsimmon_umd_min.exports.optWhitespace)
|
|
|
.atMost(1), EXPRESSION.field.atMost(1), (withoutId, format) => {
|
|
|
return {
|
|
|
type: "list",
|
|
|
format: format.length == 1 ? format[0] : undefined,
|
|
|
showId: withoutId.length == 0,
|
|
|
};
|
|
|
});
|
|
|
case "task":
|
|
|
return parsimmon_umd_min.exports.succeed({ type: "task" });
|
|
|
default:
|
|
|
return parsimmon_umd_min.exports.fail(`Unrecognized query type '${qtype}'`);
|
|
|
}
|
|
|
}),
|
|
|
fromClause: q => parsimmon_umd_min.exports.seqMap(parsimmon_umd_min.exports.regexp(/FROM/i), parsimmon_umd_min.exports.whitespace, EXPRESSION.source, (_1, _2, source) => source),
|
|
|
whereClause: q => parsimmon_umd_min.exports.seqMap(parsimmon_umd_min.exports.regexp(/WHERE/i), parsimmon_umd_min.exports.whitespace, EXPRESSION.field, (where, _, field) => {
|
|
|
return { type: "where", clause: field };
|
|
|
}),
|
|
|
sortByClause: q => parsimmon_umd_min.exports.seqMap(parsimmon_umd_min.exports.regexp(/SORT/i), parsimmon_umd_min.exports.whitespace, q.sortField.sepBy1(parsimmon_umd_min.exports.string(",").trim(parsimmon_umd_min.exports.optWhitespace)), (sort, _1, fields) => {
|
|
|
return { type: "sort", fields };
|
|
|
}),
|
|
|
limitClause: q => parsimmon_umd_min.exports.seqMap(parsimmon_umd_min.exports.regexp(/LIMIT/i), parsimmon_umd_min.exports.whitespace, EXPRESSION.field, (limit, _1, field) => {
|
|
|
return { type: "limit", amount: field };
|
|
|
}),
|
|
|
flattenClause: q => parsimmon_umd_min.exports.seqMap(parsimmon_umd_min.exports.regexp(/FLATTEN/i).skip(parsimmon_umd_min.exports.whitespace), q.namedField, (_, field) => {
|
|
|
return { type: "flatten", field };
|
|
|
}),
|
|
|
groupByClause: q => parsimmon_umd_min.exports.seqMap(parsimmon_umd_min.exports.regexp(/GROUP BY/i).skip(parsimmon_umd_min.exports.whitespace), q.namedField, (_, field) => {
|
|
|
return { type: "group", field };
|
|
|
}),
|
|
|
// Full query parsing.
|
|
|
clause: q => parsimmon_umd_min.exports.alt(q.fromClause, q.whereClause, q.sortByClause, q.limitClause, q.groupByClause, q.flattenClause),
|
|
|
query: q => parsimmon_umd_min.exports.seqMap(q.headerClause.trim(parsimmon_umd_min.exports.optWhitespace), q.fromClause.trim(parsimmon_umd_min.exports.optWhitespace).atMost(1), q.clause.trim(parsimmon_umd_min.exports.optWhitespace).many(), (header, from, clauses) => {
|
|
|
return {
|
|
|
header,
|
|
|
source: from.length == 0 ? Sources.folder("") : from[0],
|
|
|
operations: clauses,
|
|
|
settings: DEFAULT_QUERY_SETTINGS,
|
|
|
};
|
|
|
}),
|
|
|
});
|
|
|
/**
|
|
|
* Attempt to parse a query from the given query text, returning a string error
|
|
|
* if the parse failed.
|
|
|
*/
|
|
|
function parseQuery(text) {
|
|
|
try {
|
|
|
let query = QUERY_LANGUAGE.query.tryParse(text);
|
|
|
return Result.success(query);
|
|
|
}
|
|
|
catch (error) {
|
|
|
return Result.failure("" + error);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/** Provides a global dispatch table for evaluating binary operators, including comparison. */
|
|
|
/** Provides implementations for binary operators on two types using a registry. */
|
|
|
class BinaryOpHandler {
|
|
|
constructor() {
|
|
|
this.map = new Map();
|
|
|
}
|
|
|
static create() {
|
|
|
return new BinaryOpHandler();
|
|
|
}
|
|
|
register(left, op, right, func) {
|
|
|
this.map.set(BinaryOpHandler.repr(op, left, right), func);
|
|
|
return this;
|
|
|
}
|
|
|
registerComm(left, op, right, func) {
|
|
|
return this.register(left, op, right, func).register(right, op, left, (a, b, ctx) => func(b, a, ctx));
|
|
|
}
|
|
|
/** Implement a comparison function. */
|
|
|
compare(type, compare) {
|
|
|
return this.register(type, "<", type, (a, b, ctx) => compare(a, b, ctx) < 0)
|
|
|
.register(type, "<=", type, (a, b, ctx) => compare(a, b, ctx) <= 0)
|
|
|
.register(type, ">", type, (a, b, ctx) => compare(a, b, ctx) > 0)
|
|
|
.register(type, ">=", type, (a, b, ctx) => compare(a, b, ctx) >= 0)
|
|
|
.register(type, "=", type, (a, b, ctx) => compare(a, b, ctx) == 0)
|
|
|
.register(type, "!=", type, (a, b, ctx) => compare(a, b, ctx) != 0);
|
|
|
}
|
|
|
/** Attempt to evaluate the given binary operator on the two literal fields. */
|
|
|
evaluate(op, left, right, ctx) {
|
|
|
let leftType = Values.typeOf(left);
|
|
|
let rightType = Values.typeOf(right);
|
|
|
if (!leftType)
|
|
|
return Result.failure(`Unrecognized value '${left}'`);
|
|
|
else if (!rightType)
|
|
|
return Result.failure(`Unrecognized value '${right}'`);
|
|
|
let handler = this.map.get(BinaryOpHandler.repr(op, leftType, rightType));
|
|
|
if (handler)
|
|
|
return Result.success(handler(left, right, ctx));
|
|
|
// Right-'*' fallback:
|
|
|
let handler2 = this.map.get(BinaryOpHandler.repr(op, leftType, "*"));
|
|
|
if (handler2)
|
|
|
return Result.success(handler2(left, right, ctx));
|
|
|
// Left-'*' fallback:
|
|
|
let handler3 = this.map.get(BinaryOpHandler.repr(op, "*", rightType));
|
|
|
if (handler3)
|
|
|
return Result.success(handler3(left, right, ctx));
|
|
|
// Double '*' fallback.
|
|
|
let handler4 = this.map.get(BinaryOpHandler.repr(op, "*", "*"));
|
|
|
if (handler4)
|
|
|
return Result.success(handler4(left, right, ctx));
|
|
|
return Result.failure(`Operator '${op}' is not supported for '${leftType}' and '${rightType}`);
|
|
|
}
|
|
|
/** Create a string representation of the given triplet for unique lookup in the map. */
|
|
|
static repr(op, left, right) {
|
|
|
return `${left},${op},${right}`;
|
|
|
}
|
|
|
}
|
|
|
/** Configure and create a binary OP handler with the given parameters. */
|
|
|
function createBinaryOps(linkNormalizer) {
|
|
|
return (BinaryOpHandler.create()
|
|
|
// TODO: Consider not using a universal comparison function.
|
|
|
.compare("*", (a, b) => Values.compareValue(a, b, linkNormalizer))
|
|
|
// Global boolean operations.
|
|
|
.register("*", "&", "*", (a, b) => Values.isTruthy(a) && Values.isTruthy(b))
|
|
|
.register("*", "|", "*", (a, b) => Values.isTruthy(a) || Values.isTruthy(b))
|
|
|
// Number implementations.
|
|
|
.register("number", "+", "number", (a, b) => a + b)
|
|
|
.register("number", "-", "number", (a, b) => a - b)
|
|
|
.register("number", "*", "number", (a, b) => a * b)
|
|
|
.register("number", "/", "number", (a, b) => a / b)
|
|
|
// String implementations.
|
|
|
.register("string", "+", "*", (a, b, ctx) => a + Values.toString(b, ctx.settings))
|
|
|
.register("*", "+", "string", (a, b, ctx) => Values.toString(a, ctx.settings) + b)
|
|
|
.registerComm("string", "*", "number", (a, b) => (b < 0 ? "" : a.repeat(b)))
|
|
|
// Date Operations.
|
|
|
.register("date", "-", "date", (a, b) => {
|
|
|
return normalizeDuration(a.diff(b, ["years", "months", "days", "hours", "minutes", "seconds", "milliseconds"]));
|
|
|
})
|
|
|
.register("date", "-", "duration", (a, b) => a.minus(b))
|
|
|
.registerComm("date", "+", "duration", (a, b) => a.plus(b))
|
|
|
// Duration Operations.
|
|
|
.register("duration", "+", "duration", (a, b) => normalizeDuration(a.plus(b)))
|
|
|
.register("duration", "-", "duration", (a, b) => normalizeDuration(a.minus(b)))
|
|
|
// Array operations.
|
|
|
.register("array", "+", "array", (a, b) => [].concat(a).concat(b))
|
|
|
// Object operations.
|
|
|
.register("object", "+", "object", (a, b) => Object.assign({}, a, b)));
|
|
|
}
|
|
|
|
|
|
/** Default function implementations for the expression evaluator. */
|
|
|
/**
|
|
|
* Allows for the creation of functions that check the number and type of their arguments, and dispatch
|
|
|
* to different implemenations based on the types of the inputs.
|
|
|
*/
|
|
|
class FunctionBuilder {
|
|
|
constructor(name) {
|
|
|
this.name = name;
|
|
|
this.variants = [];
|
|
|
this.vectorized = {};
|
|
|
}
|
|
|
/** Add a general function variant which accepts any number of arguments of any type. */
|
|
|
vararg(impl) {
|
|
|
this.variants.push({ args: [], varargs: true, impl });
|
|
|
return this;
|
|
|
}
|
|
|
/** Add a function variant which takes in a single argument. */
|
|
|
add1(argType, impl) {
|
|
|
this.variants.push({
|
|
|
args: [argType],
|
|
|
varargs: false,
|
|
|
impl: (c, ...rest) => impl(rest[0], c),
|
|
|
});
|
|
|
return this;
|
|
|
}
|
|
|
/** Add a function variant which takes in two typed arguments. */
|
|
|
add2(arg1, arg2, impl) {
|
|
|
this.variants.push({
|
|
|
args: [arg1, arg2],
|
|
|
varargs: false,
|
|
|
impl: (c, ...rest) => impl(rest[0], rest[1], c),
|
|
|
});
|
|
|
return this;
|
|
|
}
|
|
|
/** Add a function variant which takes in three typed arguments. */
|
|
|
add3(arg1, arg2, arg3, impl) {
|
|
|
this.variants.push({
|
|
|
args: [arg1, arg2, arg3],
|
|
|
varargs: false,
|
|
|
impl: (c, ...rest) => impl(rest[0], rest[1], rest[2], c),
|
|
|
});
|
|
|
return this;
|
|
|
}
|
|
|
/** Add vectorized variants which accept the given number of arguments and delegate. */
|
|
|
vectorize(numArgs, positions) {
|
|
|
this.vectorized[numArgs] = positions;
|
|
|
return this;
|
|
|
}
|
|
|
/** Return a function which checks the number and type of arguments, passing them on to the first matching variant. */
|
|
|
build() {
|
|
|
let self = (context, ...args) => {
|
|
|
let types = [];
|
|
|
for (let arg of args) {
|
|
|
let argType = Values.typeOf(arg);
|
|
|
if (!argType)
|
|
|
throw Error(`Unrecognized argument type for argument '${arg}'`);
|
|
|
types.push(argType);
|
|
|
}
|
|
|
// Handle vectorization, possibly in multiple fields.
|
|
|
if (this.vectorized[types.length]) {
|
|
|
let vectorizedPositions = this.vectorized[types.length].filter(k => types[k] == "array");
|
|
|
if (vectorizedPositions.length > 0) {
|
|
|
let minLength = vectorizedPositions
|
|
|
.map(p => args[p].length)
|
|
|
.reduce((p, c) => Math.min(p, c));
|
|
|
// Call the subfunction for each element in the longest array.
|
|
|
// If you call a vectorized function with different-length arrays,
|
|
|
// the output is limited by the length of the shortest array.
|
|
|
let result = [];
|
|
|
for (let vpos = 0; vpos < minLength; vpos++) {
|
|
|
let subargs = [];
|
|
|
for (let index = 0; index < args.length; index++) {
|
|
|
if (vectorizedPositions.includes(index)) {
|
|
|
let arr = args[index];
|
|
|
subargs.push(arr[vpos]);
|
|
|
}
|
|
|
else {
|
|
|
subargs.push(args[index]);
|
|
|
}
|
|
|
}
|
|
|
result.push(self(context, ...subargs));
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
|
}
|
|
|
outer: for (let variant of this.variants) {
|
|
|
if (variant.varargs)
|
|
|
return variant.impl(context, ...args);
|
|
|
if (variant.args.length != types.length)
|
|
|
continue;
|
|
|
for (let index = 0; index < variant.args.length; index++) {
|
|
|
if (variant.args[index] != "*" && variant.args[index] != types[index])
|
|
|
continue outer;
|
|
|
}
|
|
|
return variant.impl(context, ...args);
|
|
|
}
|
|
|
throw Error(`No implementation of '${this.name}' found for arguments: ${types.join(", ")}`);
|
|
|
};
|
|
|
return self;
|
|
|
}
|
|
|
}
|
|
|
/** Utilities for managing function implementations. */
|
|
|
var Functions;
|
|
|
(function (Functions) {
|
|
|
/** Bind a context to a function implementation, yielding a function which does not need the context argument. */
|
|
|
function bind(func, context) {
|
|
|
return (...args) => func(context, ...args);
|
|
|
}
|
|
|
Functions.bind = bind;
|
|
|
/** Bind a context to all functions in the given map, yielding a new map of bound functions. */
|
|
|
function bindAll(funcs, context) {
|
|
|
let result = {};
|
|
|
for (let [key, func] of Object.entries(funcs)) {
|
|
|
result[key] = Functions.bind(func, context);
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
|
Functions.bindAll = bindAll;
|
|
|
})(Functions || (Functions = {}));
|
|
|
/**
|
|
|
* Collection of all defined functions; defined here so that they can be called from within dataview,
|
|
|
* and test code.
|
|
|
*/
|
|
|
var DefaultFunctions;
|
|
|
(function (DefaultFunctions) {
|
|
|
/** Compute the length of a data type. */
|
|
|
DefaultFunctions.length = new FunctionBuilder("length")
|
|
|
.add1("array", a => a.length)
|
|
|
.add1("object", a => Object.keys(a).length)
|
|
|
.add1("string", a => a.length)
|
|
|
.add1("null", _a => 0)
|
|
|
.build();
|
|
|
/** List constructor function. */
|
|
|
DefaultFunctions.list = (_context, ...args) => args;
|
|
|
/** Object constructor function. */
|
|
|
DefaultFunctions.object = (_context, ...args) => {
|
|
|
if (args.length % 2 != 0)
|
|
|
throw Error("object() requires an even number of arguments");
|
|
|
let result = {};
|
|
|
for (let index = 0; index < args.length; index += 2) {
|
|
|
let key = args[index];
|
|
|
if (!Values.isString(key))
|
|
|
throw Error("keys should be of type string for object(key1, value1, ...)");
|
|
|
result[key] = args[index + 1];
|
|
|
}
|
|
|
return result;
|
|
|
};
|
|
|
/** Internal link constructor function. */
|
|
|
DefaultFunctions.link = new FunctionBuilder("link")
|
|
|
.add1("string", (a, c) => Link.file(c.linkHandler.normalize(a), false))
|
|
|
.add1("link", a => a)
|
|
|
.add1("null", _a => null)
|
|
|
.vectorize(1, [0])
|
|
|
.add2("string", "string", (t, d, c) => Link.file(c.linkHandler.normalize(t), false, d))
|
|
|
.add2("link", "string", (t, d) => t.withDisplay(d))
|
|
|
.add2("null", "*", () => null)
|
|
|
.add2("*", "null", (t, _n, c) => DefaultFunctions.link(c, t))
|
|
|
.vectorize(2, [0, 1])
|
|
|
.build();
|
|
|
/** External link constructor function. */
|
|
|
DefaultFunctions.elink = new FunctionBuilder("elink")
|
|
|
.add2("string", "string", (a, d) => {
|
|
|
let elem = document.createElement("a");
|
|
|
elem.textContent = d;
|
|
|
elem.rel = "noopener";
|
|
|
elem.target = "_blank";
|
|
|
elem.classList.add("external-link");
|
|
|
elem.href = a;
|
|
|
return elem;
|
|
|
})
|
|
|
.add2("string", "null", (s, _n, c) => DefaultFunctions.elink(c, s, s))
|
|
|
.add2("null", "*", () => null)
|
|
|
.vectorize(2, [0])
|
|
|
.add1("string", (a, c) => DefaultFunctions.elink(c, a, a))
|
|
|
.add1("null", () => null)
|
|
|
.vectorize(1, [0])
|
|
|
.build();
|
|
|
/** Date constructor function. */
|
|
|
DefaultFunctions.date = new FunctionBuilder("date")
|
|
|
.add1("string", str => {
|
|
|
let parsedDate = EXPRESSION.date.parse(str);
|
|
|
if (parsedDate.status)
|
|
|
return parsedDate.value;
|
|
|
else
|
|
|
return null;
|
|
|
})
|
|
|
.add1("date", d => d)
|
|
|
.add1("link", (link, c) => {
|
|
|
var _c, _d, _e, _f;
|
|
|
// Try to parse from the display...
|
|
|
if (link.display) {
|
|
|
let parsedDate = EXPRESSION.date.parse(link.display);
|
|
|
if (parsedDate.status)
|
|
|
return parsedDate.value;
|
|
|
}
|
|
|
// Then try to parse from the path...
|
|
|
let parsedDate = EXPRESSION.date.parse(link.path);
|
|
|
if (parsedDate.status)
|
|
|
return parsedDate.value;
|
|
|
// Then pull it from the file.
|
|
|
let resolved = c.linkHandler.resolve(link.path);
|
|
|
if (resolved && ((_d = (_c = resolved) === null || _c === void 0 ? void 0 : _c.file) === null || _d === void 0 ? void 0 : _d.day)) {
|
|
|
return (_f = (_e = resolved) === null || _e === void 0 ? void 0 : _e.file) === null || _f === void 0 ? void 0 : _f.day;
|
|
|
}
|
|
|
return null;
|
|
|
})
|
|
|
.add1("null", () => null)
|
|
|
.vectorize(1, [0])
|
|
|
.build();
|
|
|
/** Format a date using a luxon/moment-style date format. */
|
|
|
DefaultFunctions.dateformat = new FunctionBuilder("dateformat")
|
|
|
.add2("date", "string", (date, format) => date.toFormat(format, { locale: currentLocale() }))
|
|
|
.vectorize(2, [0])
|
|
|
.build();
|
|
|
const NUMBER_REGEX = /-?[0-9]+(\.[0-9]+)?/;
|
|
|
/** Number constructor function. */
|
|
|
DefaultFunctions.number = new FunctionBuilder("number")
|
|
|
.add1("number", a => a)
|
|
|
.add1("string", str => {
|
|
|
let match = NUMBER_REGEX.exec(str);
|
|
|
if (match)
|
|
|
return Number.parseFloat(match[0]);
|
|
|
else
|
|
|
return null;
|
|
|
})
|
|
|
.add1("null", () => null)
|
|
|
.vectorize(1, [0])
|
|
|
.build();
|
|
|
DefaultFunctions.round = new FunctionBuilder("round")
|
|
|
.add1("number", n => Math.round(n))
|
|
|
.add1("null", () => null)
|
|
|
.vectorize(1, [0])
|
|
|
.add2("number", "number", (n, p) => {
|
|
|
if (p <= 0)
|
|
|
return Math.round(n);
|
|
|
return parseFloat(n.toFixed(p));
|
|
|
})
|
|
|
.add2("number", "null", n => Math.round(n))
|
|
|
.add2("null", "*", () => null)
|
|
|
.vectorize(2, [0])
|
|
|
.build();
|
|
|
DefaultFunctions.min = new FunctionBuilder("min")
|
|
|
.add2("*", "null", (a, _n) => a)
|
|
|
.add2("null", "*", (_n, a) => a)
|
|
|
.add2("*", "*", (a, b, ctx) => (Values.compareValue(a, b, ctx.linkHandler.normalize) <= 0 ? a : b))
|
|
|
.add1("array", (a, ctx) => DefaultFunctions.min(ctx, ...a))
|
|
|
.vararg((ctx, ...args) => (args.length == 0 ? null : args.reduce((p, c) => DefaultFunctions.min(ctx, p, c))))
|
|
|
.build();
|
|
|
DefaultFunctions.max = new FunctionBuilder("max")
|
|
|
.add2("*", "null", (a, _n) => a)
|
|
|
.add2("null", "*", (_n, a) => a)
|
|
|
.add2("*", "*", (a, b, ctx) => (Values.compareValue(a, b, ctx.linkHandler.normalize) > 0 ? a : b))
|
|
|
.add1("array", (a, ctx) => DefaultFunctions.max(ctx, ...a))
|
|
|
.vararg((ctx, ...args) => (args.length == 0 ? null : args.reduce((p, c) => DefaultFunctions.max(ctx, p, c))))
|
|
|
.build();
|
|
|
DefaultFunctions.minby = new FunctionBuilder("minby")
|
|
|
.add2("array", "function", (arr, func, ctx) => {
|
|
|
if (arr.length == 0)
|
|
|
return null;
|
|
|
let values = arr.map(v => {
|
|
|
return { value: v, mapped: func(ctx, v) };
|
|
|
});
|
|
|
let filtered = values.filter(v => !Values.isNull(v.mapped));
|
|
|
if (filtered.length == 0)
|
|
|
return arr[0];
|
|
|
return filtered.reduce((p, c) => {
|
|
|
if (Values.compareValue(p.mapped, c.mapped, ctx.linkHandler.normalize) <= 0)
|
|
|
return p;
|
|
|
else
|
|
|
return c;
|
|
|
}).value;
|
|
|
})
|
|
|
.build();
|
|
|
DefaultFunctions.maxby = new FunctionBuilder("maxby")
|
|
|
.add2("array", "function", (arr, func, ctx) => {
|
|
|
if (arr.length == 0)
|
|
|
return null;
|
|
|
let values = arr.map(v => {
|
|
|
return { value: v, mapped: func(ctx, v) };
|
|
|
});
|
|
|
let filtered = values.filter(v => !Values.isNull(v.mapped));
|
|
|
if (filtered.length == 0)
|
|
|
return arr[0];
|
|
|
return filtered.reduce((p, c) => {
|
|
|
if (Values.compareValue(p.mapped, c.mapped, ctx.linkHandler.normalize) > 0)
|
|
|
return p;
|
|
|
else
|
|
|
return c;
|
|
|
}).value;
|
|
|
})
|
|
|
.build();
|
|
|
DefaultFunctions.striptime = new FunctionBuilder("striptime")
|
|
|
.add1("date", d => DateTime_1.fromObject({ year: d.year, month: d.month, day: d.day }))
|
|
|
.add1("null", _n => null)
|
|
|
.vectorize(1, [0])
|
|
|
.build();
|
|
|
// Default contains, which looks through data structures recursively.
|
|
|
DefaultFunctions.contains = new FunctionBuilder("contains")
|
|
|
.add2("array", "*", (l, elem, context) => l.some(e => DefaultFunctions.contains(context, e, elem)))
|
|
|
.add2("string", "string", (haystack, needle) => haystack.includes(needle))
|
|
|
.add2("object", "string", (obj, key) => key in obj)
|
|
|
.add2("*", "*", (elem1, elem2, context) => context.evaluate(Fields.binaryOp(Fields.literal(elem1), "=", Fields.literal(elem2))).orElseThrow())
|
|
|
.vectorize(2, [1])
|
|
|
.build();
|
|
|
// Case insensitive version of contains.
|
|
|
DefaultFunctions.icontains = new FunctionBuilder("icontains")
|
|
|
.add2("array", "*", (l, elem, context) => l.some(e => DefaultFunctions.icontains(context, e, elem)))
|
|
|
.add2("string", "string", (haystack, needle) => haystack.toLocaleLowerCase().includes(needle.toLocaleLowerCase()))
|
|
|
.add2("object", "string", (obj, key) => key in obj)
|
|
|
.add2("*", "*", (elem1, elem2, context) => context.evaluate(Fields.binaryOp(Fields.literal(elem1), "=", Fields.literal(elem2))).orElseThrow())
|
|
|
.vectorize(2, [1])
|
|
|
.build();
|
|
|
// "exact" contains, does not look recursively.
|
|
|
DefaultFunctions.econtains = new FunctionBuilder("econtains")
|
|
|
.add2("array", "*", (l, elem, context) => l.some(e => context.evaluate(Fields.binaryOp(Fields.literal(elem), "=", Fields.literal(e))).orElseThrow()))
|
|
|
.add2("string", "string", (haystack, needle) => haystack.includes(needle))
|
|
|
.add2("object", "string", (obj, key) => key in obj)
|
|
|
.add2("*", "*", (elem1, elem2, context) => context.evaluate(Fields.binaryOp(Fields.literal(elem1), "=", Fields.literal(elem2))).orElseThrow())
|
|
|
.vectorize(2, [1])
|
|
|
.build();
|
|
|
// Case insensitive contains which looks for exact word matches (i.e., boundry-to-boundry match).
|
|
|
DefaultFunctions.containsword = new FunctionBuilder("containsword")
|
|
|
.add2("string", "string", (hay, needle) => !!hay.match(new RegExp(".*\\b" + escapeRegex(needle) + "\\b.*", "i")))
|
|
|
.add2("null", "*", (_a, _b) => null)
|
|
|
.add2("*", "null", (_a, _b) => null)
|
|
|
.vectorize(2, [0, 1])
|
|
|
.build();
|
|
|
/** Extract 0 or more keys from a given object via indexing. */
|
|
|
DefaultFunctions.extract = (context, ...args) => {
|
|
|
if (args.length == 0)
|
|
|
return "extract(object, key1, ...) requires at least 1 argument";
|
|
|
// Manually handle vectorization in the first argument.
|
|
|
let object = args[0];
|
|
|
if (Values.isArray(object))
|
|
|
return object.map(v => DefaultFunctions.extract(context, v, ...args.slice(1)));
|
|
|
let result = {};
|
|
|
for (let index = 1; index < args.length; index++) {
|
|
|
let key = args[index];
|
|
|
if (!Values.isString(key))
|
|
|
throw Error("extract(object, key1, ...) must be called with string keys");
|
|
|
result[key] = context.evaluate(Fields.index(Fields.literal(object), Fields.literal(key))).orElseThrow();
|
|
|
}
|
|
|
return result;
|
|
|
};
|
|
|
// Reverse aan array or string.
|
|
|
DefaultFunctions.reverse = new FunctionBuilder("reverse")
|
|
|
.add1("array", l => {
|
|
|
let result = [];
|
|
|
for (let index = l.length - 1; index >= 0; index--)
|
|
|
result.push(l[index]);
|
|
|
return result;
|
|
|
})
|
|
|
.add1("string", l => {
|
|
|
let result = "";
|
|
|
for (let c = 0; c < l.length; c++)
|
|
|
result += l[l.length - c - 1];
|
|
|
return result;
|
|
|
})
|
|
|
.add1("*", e => e)
|
|
|
.build();
|
|
|
// Sort an array; if given two arguments, sorts by the key returned.
|
|
|
DefaultFunctions.sort = new FunctionBuilder("sort")
|
|
|
.add1("array", (list, context) => DefaultFunctions.sort(context, list, (_ctx, a) => a))
|
|
|
.add2("array", "function", (list, key, context) => {
|
|
|
let result = [].concat(list);
|
|
|
result.sort((a, b) => {
|
|
|
let akey = key(context, a);
|
|
|
let bkey = key(context, b);
|
|
|
let le = context
|
|
|
.evaluate(Fields.binaryOp(Fields.literal(akey), "<", Fields.literal(bkey)))
|
|
|
.orElseThrow();
|
|
|
if (Values.isTruthy(le))
|
|
|
return -1;
|
|
|
let eq = context
|
|
|
.evaluate(Fields.binaryOp(Fields.literal(akey), "=", Fields.literal(bkey)))
|
|
|
.orElseThrow();
|
|
|
if (Values.isTruthy(eq))
|
|
|
return 0;
|
|
|
return 1;
|
|
|
});
|
|
|
return result;
|
|
|
})
|
|
|
.add1("*", e => e)
|
|
|
.build();
|
|
|
DefaultFunctions.regexmatch = new FunctionBuilder("regexmatch")
|
|
|
.add2("string", "string", (pattern, field) => {
|
|
|
if (!pattern.startsWith("^") && !pattern.endsWith("$"))
|
|
|
pattern = "^" + pattern + "$";
|
|
|
return !!field.match(pattern);
|
|
|
})
|
|
|
.add2("null", "*", (_n, _a) => false)
|
|
|
.add2("*", "null", (_a, _n) => false)
|
|
|
.vectorize(2, [0, 1])
|
|
|
.build();
|
|
|
DefaultFunctions.regexreplace = new FunctionBuilder("regexreplace")
|
|
|
.add3("string", "string", "string", (field, pat, rep) => {
|
|
|
try {
|
|
|
let reg = new RegExp(pat, "g");
|
|
|
return field.replace(reg, rep);
|
|
|
}
|
|
|
catch (ex) {
|
|
|
throw Error(`Invalid regexp '${pat}' in regexreplace`);
|
|
|
}
|
|
|
})
|
|
|
.add3("null", "*", "*", () => null)
|
|
|
.add3("*", "null", "*", () => null)
|
|
|
.add3("*", "*", "null", () => null)
|
|
|
.vectorize(3, [0, 1, 2])
|
|
|
.build();
|
|
|
DefaultFunctions.lower = new FunctionBuilder("lower")
|
|
|
.add1("string", s => s.toLocaleLowerCase())
|
|
|
.add1("null", () => null)
|
|
|
.vectorize(1, [0])
|
|
|
.build();
|
|
|
DefaultFunctions.upper = new FunctionBuilder("upper")
|
|
|
.add1("string", s => s.toLocaleUpperCase())
|
|
|
.add1("null", () => null)
|
|
|
.vectorize(1, [0])
|
|
|
.build();
|
|
|
DefaultFunctions.replace = new FunctionBuilder("replace")
|
|
|
.add3("string", "string", "string", (str, pat, repr) => str.split(pat).join(repr))
|
|
|
.add3("null", "*", "*", () => null)
|
|
|
.add3("*", "null", "*", () => null)
|
|
|
.add3("*", "*", "null", () => null)
|
|
|
.vectorize(3, [0, 1, 2])
|
|
|
.build();
|
|
|
DefaultFunctions.fdefault = new FunctionBuilder("default")
|
|
|
.add2("*", "*", (v, bk) => (Values.isNull(v) ? bk : v))
|
|
|
.vectorize(2, [0, 1])
|
|
|
.build();
|
|
|
DefaultFunctions.ldefault = new FunctionBuilder("ldefault")
|
|
|
.add2("*", "*", (v, bk) => (Values.isNull(v) ? bk : v))
|
|
|
.build();
|
|
|
DefaultFunctions.choice = new FunctionBuilder("choice")
|
|
|
.add3("*", "*", "*", (b, left, right) => (Values.isTruthy(b) ? left : right))
|
|
|
.vectorize(3, [0])
|
|
|
.build();
|
|
|
DefaultFunctions.reduce = new FunctionBuilder("reduce")
|
|
|
.add2("array", "string", (lis, op, context) => {
|
|
|
if (lis.length == 0)
|
|
|
return null;
|
|
|
if (op != "+" && op != "-" && op != "*" && op != "/" && op != "&" && op != "|")
|
|
|
throw Error("reduce(array, op) supports '+', '-', '/', '*', '&', and '|'");
|
|
|
let value = lis[0];
|
|
|
for (let index = 1; index < lis.length; index++) {
|
|
|
value = context
|
|
|
.evaluate(Fields.binaryOp(Fields.literal(value), op, Fields.literal(lis[index])))
|
|
|
.orElseThrow();
|
|
|
}
|
|
|
return value;
|
|
|
})
|
|
|
.add2("array", "function", (lis, op, context) => {
|
|
|
if (lis.length == 0)
|
|
|
return null;
|
|
|
let value = lis[0];
|
|
|
for (let index = 1; index < lis.length; index++) {
|
|
|
// Skip null values to reduce the pain of summing over fields that may or may not exist.
|
|
|
if (Values.isNull(lis[index]))
|
|
|
continue;
|
|
|
value = op(context, value, lis[index]);
|
|
|
}
|
|
|
return value;
|
|
|
})
|
|
|
.add2("null", "*", () => null)
|
|
|
.add2("*", "null", () => null)
|
|
|
.vectorize(2, [1])
|
|
|
.build();
|
|
|
DefaultFunctions.sum = new FunctionBuilder("sum")
|
|
|
.add1("array", (arr, c) => DefaultFunctions.reduce(c, arr, "+"))
|
|
|
.add1("*", e => e)
|
|
|
.build();
|
|
|
DefaultFunctions.product = new FunctionBuilder("product")
|
|
|
.add1("array", (arr, c) => DefaultFunctions.reduce(c, arr, "*"))
|
|
|
.add1("*", e => e)
|
|
|
.build();
|
|
|
DefaultFunctions.join = new FunctionBuilder("join")
|
|
|
.add2("array", "string", (arr, sep, ctx) => arr.map(e => Values.toString(e, ctx.settings)).join(sep))
|
|
|
.add2("array", "null", (arr, _s, context) => DefaultFunctions.join(context, arr, ", "))
|
|
|
.add2("*", "string", (elem, sep, ctx) => Values.toString(elem, ctx.settings))
|
|
|
.add1("array", (arr, context) => DefaultFunctions.join(context, arr, ", "))
|
|
|
.add1("*", (e, ctx) => Values.toString(e, ctx.settings))
|
|
|
.vectorize(2, [1])
|
|
|
.build();
|
|
|
DefaultFunctions.any = new FunctionBuilder("any")
|
|
|
.add1("array", arr => arr.some(v => Values.isTruthy(v)))
|
|
|
.add2("array", "function", (arr, f, ctx) => arr.some(v => Values.isTruthy(f(ctx, v))))
|
|
|
.vararg((_ctx, ...args) => args.some(v => Values.isTruthy(v)))
|
|
|
.build();
|
|
|
DefaultFunctions.all = new FunctionBuilder("all")
|
|
|
.add1("array", arr => arr.every(v => Values.isTruthy(v)))
|
|
|
.add2("array", "function", (arr, f, ctx) => arr.every(v => Values.isTruthy(f(ctx, v))))
|
|
|
.vararg((_ctx, ...args) => args.every(v => Values.isTruthy(v)))
|
|
|
.build();
|
|
|
DefaultFunctions.none = new FunctionBuilder("all")
|
|
|
.add1("array", arr => !arr.some(v => Values.isTruthy(v)))
|
|
|
.add2("array", "function", (arr, f, ctx) => !arr.some(v => Values.isTruthy(f(ctx, v))))
|
|
|
.vararg((_ctx, ...args) => !args.some(v => Values.isTruthy(v)))
|
|
|
.build();
|
|
|
DefaultFunctions.filter = new FunctionBuilder("filter")
|
|
|
.add2("array", "function", (arr, f, ctx) => arr.filter(v => Values.isTruthy(f(ctx, v))))
|
|
|
.add2("null", "*", () => null)
|
|
|
.build();
|
|
|
DefaultFunctions.map = new FunctionBuilder("map")
|
|
|
.add2("array", "function", (arr, f, ctx) => arr.map(v => f(ctx, v)))
|
|
|
.add2("null", "*", () => null)
|
|
|
.build();
|
|
|
DefaultFunctions.nonnull = new FunctionBuilder("nonnull")
|
|
|
.vararg((_ctx, ...args) => args.filter(v => Values.typeOf(v) != "null"))
|
|
|
.build();
|
|
|
})(DefaultFunctions || (DefaultFunctions = {}));
|
|
|
/** Default function implementations for the expression evaluator. */
|
|
|
const DEFAULT_FUNCTIONS = {
|
|
|
// Constructors.
|
|
|
list: DefaultFunctions.list,
|
|
|
array: DefaultFunctions.list,
|
|
|
link: DefaultFunctions.link,
|
|
|
elink: DefaultFunctions.elink,
|
|
|
date: DefaultFunctions.date,
|
|
|
dateformat: DefaultFunctions.dateformat,
|
|
|
number: DefaultFunctions.number,
|
|
|
object: DefaultFunctions.object,
|
|
|
// Math Operations.
|
|
|
round: DefaultFunctions.round,
|
|
|
min: DefaultFunctions.min,
|
|
|
max: DefaultFunctions.max,
|
|
|
minby: DefaultFunctions.minby,
|
|
|
maxby: DefaultFunctions.maxby,
|
|
|
// String operations.
|
|
|
regexreplace: DefaultFunctions.regexreplace,
|
|
|
regexmatch: DefaultFunctions.regexmatch,
|
|
|
replace: DefaultFunctions.replace,
|
|
|
lower: DefaultFunctions.lower,
|
|
|
upper: DefaultFunctions.upper,
|
|
|
// Date Operations.
|
|
|
striptime: DefaultFunctions.striptime,
|
|
|
// List operations.
|
|
|
length: DefaultFunctions.length,
|
|
|
contains: DefaultFunctions.contains,
|
|
|
icontains: DefaultFunctions.icontains,
|
|
|
econtains: DefaultFunctions.econtains,
|
|
|
containsword: DefaultFunctions.containsword,
|
|
|
reverse: DefaultFunctions.reverse,
|
|
|
sort: DefaultFunctions.sort,
|
|
|
// Aggregation operations like reduce.
|
|
|
reduce: DefaultFunctions.reduce,
|
|
|
join: DefaultFunctions.join,
|
|
|
sum: DefaultFunctions.sum,
|
|
|
product: DefaultFunctions.product,
|
|
|
all: DefaultFunctions.all,
|
|
|
any: DefaultFunctions.any,
|
|
|
none: DefaultFunctions.none,
|
|
|
filter: DefaultFunctions.filter,
|
|
|
map: DefaultFunctions.map,
|
|
|
nonnull: DefaultFunctions.nonnull,
|
|
|
// Object/Utility operations.
|
|
|
extract: DefaultFunctions.extract,
|
|
|
default: DefaultFunctions.fdefault,
|
|
|
ldefault: DefaultFunctions.ldefault,
|
|
|
choice: DefaultFunctions.choice,
|
|
|
};
|
|
|
|
|
|
/** Core implementation of the query language evaluation engine. */
|
|
|
/**
|
|
|
* Evaluation context that expressions can be evaluated in. Includes global state, as well as available functions and a handler
|
|
|
* for binary operators.
|
|
|
*/
|
|
|
class Context {
|
|
|
/**
|
|
|
* Create a new context with the given namespace of globals, as well as optionally with custom binary operator, function,
|
|
|
* and link handlers.
|
|
|
*/
|
|
|
constructor(linkHandler, settings, globals = {}, binaryOps = createBinaryOps(linkHandler.normalize), functions = DEFAULT_FUNCTIONS) {
|
|
|
this.linkHandler = linkHandler;
|
|
|
this.settings = settings;
|
|
|
this.globals = globals;
|
|
|
this.binaryOps = binaryOps;
|
|
|
this.functions = functions;
|
|
|
}
|
|
|
/** Set a global value in this context. */
|
|
|
set(name, value) {
|
|
|
this.globals[name] = value;
|
|
|
return this;
|
|
|
}
|
|
|
/** Get the value of a global variable by name. Returns null if not present. */
|
|
|
get(name) {
|
|
|
var _a;
|
|
|
return (_a = this.globals[name]) !== null && _a !== void 0 ? _a : null;
|
|
|
}
|
|
|
/** Try to evaluate an arbitary field in this context, raising an exception on failure. */
|
|
|
tryEvaluate(field, data = {}) {
|
|
|
return this.evaluate(field, data).orElseThrow();
|
|
|
}
|
|
|
/** Evaluate an arbitrary field in this context. */
|
|
|
evaluate(field, data = {}) {
|
|
|
var _a, _b;
|
|
|
switch (field.type) {
|
|
|
case "literal":
|
|
|
return Result.success(field.value);
|
|
|
case "variable":
|
|
|
if (field.name in data)
|
|
|
return Result.success(data[field.name]);
|
|
|
else if (field.name in this.globals)
|
|
|
return Result.success(this.globals[field.name]);
|
|
|
else
|
|
|
return Result.success(null);
|
|
|
case "negated":
|
|
|
return this.evaluate(field.child, data).map(s => !Values.isTruthy(s));
|
|
|
case "binaryop":
|
|
|
return Result.flatMap2(this.evaluate(field.left, data), this.evaluate(field.right, data), (a, b) => this.binaryOps.evaluate(field.op, a, b, this));
|
|
|
case "list":
|
|
|
let result = [];
|
|
|
for (let child of field.values) {
|
|
|
let subeval = this.evaluate(child, data);
|
|
|
if (!subeval.successful)
|
|
|
return subeval;
|
|
|
result.push(subeval.value);
|
|
|
}
|
|
|
return Result.success(result);
|
|
|
case "object":
|
|
|
let objResult = {};
|
|
|
for (let [key, child] of Object.entries(field)) {
|
|
|
let subeval = this.evaluate(child, data);
|
|
|
if (!subeval.successful)
|
|
|
return subeval;
|
|
|
objResult[key] = subeval.value;
|
|
|
}
|
|
|
return Result.success(objResult);
|
|
|
case "lambda":
|
|
|
// Just relying on JS to capture 'data' for us implicitly; unsure
|
|
|
// if this is correct thing to do. Could cause wierd behaviors.
|
|
|
return Result.success((ctx, ...args) => {
|
|
|
let copy = Object.assign({}, data);
|
|
|
for (let arg = 0; arg < Math.min(args.length, field.arguments.length); arg++) {
|
|
|
copy[field.arguments[arg]] = args[arg];
|
|
|
}
|
|
|
return ctx.evaluate(field.value, copy).orElseThrow();
|
|
|
});
|
|
|
case "function":
|
|
|
let rawFunc = field.func.type == "variable"
|
|
|
? Result.success(field.func.name)
|
|
|
: this.evaluate(field.func, data);
|
|
|
if (!rawFunc.successful)
|
|
|
return rawFunc;
|
|
|
let func = rawFunc.value;
|
|
|
let args = [];
|
|
|
for (let arg of field.arguments) {
|
|
|
let resolved = this.evaluate(arg, data);
|
|
|
if (!resolved.successful)
|
|
|
return resolved;
|
|
|
args.push(resolved.value);
|
|
|
}
|
|
|
let call;
|
|
|
if (Values.isFunction(func))
|
|
|
call = func;
|
|
|
else if (Values.isString(func) && func in this.functions)
|
|
|
call = this.functions[func];
|
|
|
else if (Values.isString(func))
|
|
|
return Result.failure(`Unrecognized function name '${func}'`);
|
|
|
else
|
|
|
return Result.failure(`Cannot call type '${Values.typeOf(func)}' as a function`);
|
|
|
try {
|
|
|
return Result.success(call(this, ...args));
|
|
|
}
|
|
|
catch (e) {
|
|
|
return Result.failure(e.message);
|
|
|
}
|
|
|
case "index":
|
|
|
// TODO: Will move this out to an 'primitives' module and add more content to it.
|
|
|
let literalIndex = field.index.type == "variable"
|
|
|
? Result.success(field.index.name)
|
|
|
: this.evaluate(field.index, data);
|
|
|
let checkedIndex = literalIndex.flatMap(s => Values.isString(s) || Values.isNumber(s)
|
|
|
? Result.success(s)
|
|
|
: Result.failure("Can only index with a string, variable, or number"));
|
|
|
if (!checkedIndex.successful)
|
|
|
return checkedIndex;
|
|
|
let index = checkedIndex.value;
|
|
|
let checkedObject = field.object.type == "variable" && field.object.name == "row"
|
|
|
? Result.success(Object.assign({}, this.globals, data))
|
|
|
: this.evaluate(field.object, data);
|
|
|
if (!checkedObject.successful)
|
|
|
return checkedObject;
|
|
|
let object = Values.wrapValue(checkedObject.value);
|
|
|
if (!object)
|
|
|
return Result.failure("Unrecognized object to index into: " + object);
|
|
|
switch (object.type) {
|
|
|
case "object":
|
|
|
if (!Values.isString(index))
|
|
|
return Result.failure('can only index into objects with strings (a.b or a["b"])');
|
|
|
return Result.success((_a = object.value[index]) !== null && _a !== void 0 ? _a : null);
|
|
|
case "link":
|
|
|
if (!Values.isString(index))
|
|
|
return Result.failure('can only index into links with strings (a.b or a["b"])');
|
|
|
let linkValue = this.linkHandler.resolve(object.value.path);
|
|
|
if (Values.isNull(linkValue))
|
|
|
return Result.success(null);
|
|
|
return Result.success((_b = linkValue[index]) !== null && _b !== void 0 ? _b : null);
|
|
|
case "array":
|
|
|
if (Values.isNumber(index)) {
|
|
|
if (index >= object.value.length || index < 0)
|
|
|
return Result.success(null);
|
|
|
else
|
|
|
return Result.success(object.value[index]);
|
|
|
}
|
|
|
else if (Values.isString(index)) {
|
|
|
let result = [];
|
|
|
for (let value of object.value) {
|
|
|
let next = this.evaluate(Fields.index(Fields.literal(value), Fields.literal(index)));
|
|
|
if (!next.successful)
|
|
|
continue;
|
|
|
result.push(next.value);
|
|
|
}
|
|
|
return Result.success(result);
|
|
|
}
|
|
|
else {
|
|
|
return Result.failure("Array indexing requires either a number (to get a specific element), or a string (to map all elements inside the array)");
|
|
|
}
|
|
|
case "string":
|
|
|
if (!Values.isNumber(index))
|
|
|
return Result.failure("string indexing requires a numeric index (string[index])");
|
|
|
if (index >= object.value.length || index < 0)
|
|
|
return Result.success(null);
|
|
|
return Result.success(object.value[index]);
|
|
|
case "date":
|
|
|
if (!Values.isString(index))
|
|
|
return Result.failure("date indexing requires a string representing the unit");
|
|
|
switch (index) {
|
|
|
case "year":
|
|
|
return Result.success(object.value.year);
|
|
|
case "month":
|
|
|
return Result.success(object.value.month);
|
|
|
case "weekyear":
|
|
|
return Result.success(object.value.weekNumber);
|
|
|
case "week":
|
|
|
return Result.success(Math.floor(object.value.day / 7) + 1);
|
|
|
case "weekday":
|
|
|
return Result.success(object.value.weekday);
|
|
|
case "day":
|
|
|
return Result.success(object.value.day);
|
|
|
case "hour":
|
|
|
return Result.success(object.value.hour);
|
|
|
case "minute":
|
|
|
return Result.success(object.value.minute);
|
|
|
case "second":
|
|
|
return Result.success(object.value.second);
|
|
|
case "millisecond":
|
|
|
return Result.success(object.value.millisecond);
|
|
|
default:
|
|
|
return Result.success(null);
|
|
|
}
|
|
|
case "duration":
|
|
|
if (!Values.isString(index))
|
|
|
return Result.failure("duration indexing requires a string representing the unit");
|
|
|
switch (index) {
|
|
|
case "year":
|
|
|
case "years":
|
|
|
return Result.success(object.value.years);
|
|
|
case "month":
|
|
|
case "months":
|
|
|
return Result.success(object.value.months);
|
|
|
case "weeks":
|
|
|
return Result.success(object.value.weeks);
|
|
|
case "day":
|
|
|
case "days":
|
|
|
return Result.success(object.value.days);
|
|
|
case "hour":
|
|
|
case "hours":
|
|
|
return Result.success(object.value.hours);
|
|
|
case "minute":
|
|
|
case "minutes":
|
|
|
return Result.success(object.value.minutes);
|
|
|
case "second":
|
|
|
case "seconds":
|
|
|
return Result.success(object.value.seconds);
|
|
|
case "millisecond":
|
|
|
case "milliseconds":
|
|
|
return Result.success(object.value.milliseconds);
|
|
|
default:
|
|
|
return Result.success(null);
|
|
|
}
|
|
|
default:
|
|
|
return Result.success(null);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/** Collect data matching a source query. */
|
|
|
/** Find source paths which match the given source. */
|
|
|
function matchingSourcePaths(source, index, originFile = "") {
|
|
|
var _a;
|
|
|
switch (source.type) {
|
|
|
case "empty":
|
|
|
return Result.success(new Set());
|
|
|
case "tag":
|
|
|
return Result.success(index.tags.getInverse(source.tag));
|
|
|
case "csv":
|
|
|
return Result.success(new Set([index.prefix.resolveRelative(source.path, originFile)]));
|
|
|
case "folder":
|
|
|
return Result.success(index.prefix.get(source.folder, PathFilters.markdown));
|
|
|
case "link":
|
|
|
let fullPath = (_a = index.metadataCache.getFirstLinkpathDest(source.file, originFile)) === null || _a === void 0 ? void 0 : _a.path;
|
|
|
if (!fullPath)
|
|
|
return Result.failure(`Could not resolve link "${source.file}" during link lookup - does it exist?`);
|
|
|
if (source.direction === "incoming") {
|
|
|
// To find all incoming links (i.e., things that link to this), use the index that Obsidian provides.
|
|
|
// TODO: Use an actual index so this isn't a fullscan.
|
|
|
let resolved = index.metadataCache.resolvedLinks;
|
|
|
let incoming = new Set();
|
|
|
for (let [key, value] of Object.entries(resolved)) {
|
|
|
if (fullPath in value)
|
|
|
incoming.add(key);
|
|
|
}
|
|
|
return Result.success(incoming);
|
|
|
}
|
|
|
else {
|
|
|
let resolved = index.metadataCache.resolvedLinks;
|
|
|
if (!(fullPath in resolved))
|
|
|
return Result.failure(`Could not find file "${source.file}" during link lookup - does it exist?`);
|
|
|
return Result.success(new Set(Object.keys(index.metadataCache.resolvedLinks[fullPath])));
|
|
|
}
|
|
|
case "binaryop":
|
|
|
return Result.flatMap2(matchingSourcePaths(source.left, index, originFile), matchingSourcePaths(source.right, index, originFile), (left, right) => {
|
|
|
if (source.op == "&") {
|
|
|
let result = new Set();
|
|
|
for (let elem of right) {
|
|
|
if (left.has(elem))
|
|
|
result.add(elem);
|
|
|
}
|
|
|
return Result.success(result);
|
|
|
}
|
|
|
else if (source.op == "|") {
|
|
|
let result = new Set(left);
|
|
|
for (let elem of right)
|
|
|
result.add(elem);
|
|
|
return Result.success(result);
|
|
|
}
|
|
|
else {
|
|
|
return Result.failure(`Unrecognized operator '${source.op}'.`);
|
|
|
}
|
|
|
});
|
|
|
case "negate":
|
|
|
return matchingSourcePaths(source.child, index, originFile).map(child => {
|
|
|
// TODO: This is obviously very inefficient. Can be improved by complicating the
|
|
|
// return type of this function & optimizing 'and' / 'or'.
|
|
|
let allFiles = new Set(index.vault.getMarkdownFiles().map(f => f.path));
|
|
|
child.forEach(f => allFiles.delete(f));
|
|
|
return allFiles;
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
/** Convert a path to the data for that path; usually markdown pages, but could also be other file types (like CSV). */
|
|
|
function resolvePathData(path, index) {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
if (PathFilters.csv(path))
|
|
|
return resolveCsvData(path, index);
|
|
|
else
|
|
|
return resolveMarkdownData(path, index);
|
|
|
});
|
|
|
}
|
|
|
// TODO: We shouldn't be doing path normalization here relative to an origin file,
|
|
|
/** Convert a CSV path to the data in the CSV (in dataview format). */
|
|
|
function resolveCsvData(path, index) {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
let rawData = yield index.csv.get(path);
|
|
|
return rawData.map(rows => {
|
|
|
return rows.map((row, index) => {
|
|
|
return {
|
|
|
id: `${path}#${index}`,
|
|
|
data: row,
|
|
|
};
|
|
|
});
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
/** Convert a path pointing to a markdown page, into the associated metadata. */
|
|
|
function resolveMarkdownData(path, index) {
|
|
|
let page = index.pages.get(path);
|
|
|
if (!page)
|
|
|
return Result.success([]);
|
|
|
return Result.success([
|
|
|
{
|
|
|
id: Link.file(path),
|
|
|
data: page.toObject(index),
|
|
|
},
|
|
|
]);
|
|
|
}
|
|
|
/** Resolve a source to the collection of data rows that it matches. */
|
|
|
function resolveSource(source, index, originFile = "") {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
let paths = matchingSourcePaths(source, index, originFile);
|
|
|
if (!paths.successful)
|
|
|
return Result.failure(paths.error);
|
|
|
let result = [];
|
|
|
for (let path of paths.value) {
|
|
|
let resolved = yield resolvePathData(path, index);
|
|
|
if (!resolved.successful)
|
|
|
return resolved;
|
|
|
for (let val of resolved.value)
|
|
|
result.push(val);
|
|
|
}
|
|
|
return Result.success(result);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function iden(x) {
|
|
|
return x;
|
|
|
}
|
|
|
/** Shared execution code which just takes in arbitrary data, runs operations over it, and returns it + per-row errors. */
|
|
|
function executeCore(rows, context, ops) {
|
|
|
let diagnostics = [];
|
|
|
let identMeaning = { type: "path" };
|
|
|
let startTime = new Date().getTime();
|
|
|
for (let op of ops) {
|
|
|
let opStartTime = new Date().getTime();
|
|
|
let incomingRows = rows.length;
|
|
|
let errors = [];
|
|
|
switch (op.type) {
|
|
|
case "where":
|
|
|
let whereResult = [];
|
|
|
for (let index = 0; index < rows.length; index++) {
|
|
|
let row = rows[index];
|
|
|
let value = context.evaluate(op.clause, row.data);
|
|
|
if (!value.successful)
|
|
|
errors.push({ index, message: value.error });
|
|
|
else if (Values.isTruthy(value.value))
|
|
|
whereResult.push(row);
|
|
|
}
|
|
|
rows = whereResult;
|
|
|
break;
|
|
|
case "sort":
|
|
|
let sortFields = op.fields;
|
|
|
let taggedData = [];
|
|
|
outer: for (let index = 0; index < rows.length; index++) {
|
|
|
let row = rows[index];
|
|
|
let rowSorts = [];
|
|
|
for (let sIndex = 0; sIndex < sortFields.length; sIndex++) {
|
|
|
let value = context.evaluate(sortFields[sIndex].field, row.data);
|
|
|
if (!value.successful) {
|
|
|
errors.push({ index, message: value.error });
|
|
|
continue outer;
|
|
|
}
|
|
|
rowSorts.push(value.value);
|
|
|
}
|
|
|
taggedData.push({ data: row, fields: rowSorts });
|
|
|
}
|
|
|
// Sort rows by the sort fields, and then return the finished result.
|
|
|
taggedData.sort((a, b) => {
|
|
|
for (let index = 0; index < sortFields.length; index++) {
|
|
|
let factor = sortFields[index].direction === "ascending" ? 1 : -1;
|
|
|
let le = context.binaryOps
|
|
|
.evaluate("<", a.fields[index], b.fields[index], context)
|
|
|
.orElse(false);
|
|
|
if (Values.isTruthy(le))
|
|
|
return factor * -1;
|
|
|
let ge = context.binaryOps
|
|
|
.evaluate(">", a.fields[index], b.fields[index], context)
|
|
|
.orElse(false);
|
|
|
if (Values.isTruthy(ge))
|
|
|
return factor * 1;
|
|
|
}
|
|
|
return 0;
|
|
|
});
|
|
|
rows = taggedData.map(v => v.data);
|
|
|
break;
|
|
|
case "limit":
|
|
|
let limiting = context.evaluate(op.amount);
|
|
|
if (!limiting.successful)
|
|
|
return Result.failure("Failed to execute 'limit' statement: " + limiting.error);
|
|
|
if (!Values.isNumber(limiting.value))
|
|
|
return Result.failure(`Failed to execute 'limit' statement: limit should be a number, but got '${Values.typeOf(limiting.value)}' (${limiting.value})`);
|
|
|
rows = rows.slice(0, limiting.value);
|
|
|
break;
|
|
|
case "group":
|
|
|
let groupData = [];
|
|
|
for (let index = 0; index < rows.length; index++) {
|
|
|
let value = context.evaluate(op.field.field, rows[index].data);
|
|
|
if (!value.successful) {
|
|
|
errors.push({ index, message: value.error });
|
|
|
continue;
|
|
|
}
|
|
|
groupData.push({ data: rows[index], key: value.value });
|
|
|
}
|
|
|
// Sort by the key, which we will group on shortly.
|
|
|
groupData.sort((a, b) => {
|
|
|
let le = context.binaryOps.evaluate("<", a.key, b.key, context).orElse(false);
|
|
|
if (Values.isTruthy(le))
|
|
|
return -1;
|
|
|
let ge = context.binaryOps.evaluate(">", a.key, b.key, context).orElse(false);
|
|
|
if (Values.isTruthy(ge))
|
|
|
return 1;
|
|
|
return 0;
|
|
|
});
|
|
|
// Then walk through and find fields that are equal.
|
|
|
let finalGroupData = [];
|
|
|
if (groupData.length > 0)
|
|
|
finalGroupData.push({
|
|
|
key: groupData[0].key,
|
|
|
rows: [groupData[0].data.data],
|
|
|
[op.field.name]: groupData[0].key,
|
|
|
});
|
|
|
for (let index = 1; index < groupData.length; index++) {
|
|
|
let curr = groupData[index], prev = groupData[index - 1];
|
|
|
if (context.binaryOps.evaluate("=", curr.key, prev.key, context).orElse(false)) {
|
|
|
finalGroupData[finalGroupData.length - 1].rows.push(curr.data.data);
|
|
|
}
|
|
|
else {
|
|
|
finalGroupData.push({
|
|
|
key: curr.key,
|
|
|
rows: [curr.data.data],
|
|
|
[op.field.name]: curr.key,
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
rows = finalGroupData.map(d => {
|
|
|
return { id: d.key, data: d };
|
|
|
});
|
|
|
identMeaning = { type: "group", name: op.field.name, on: identMeaning };
|
|
|
break;
|
|
|
case "flatten":
|
|
|
let flattenResult = [];
|
|
|
for (let index = 0; index < rows.length; index++) {
|
|
|
let row = rows[index];
|
|
|
let value = context.evaluate(op.field.field, row.data);
|
|
|
if (!value.successful) {
|
|
|
errors.push({ index, message: value.error });
|
|
|
continue;
|
|
|
}
|
|
|
let datapoints = Values.isArray(value.value) ? value.value : [value.value];
|
|
|
for (let v of datapoints) {
|
|
|
let copy = Values.deepCopy(row);
|
|
|
copy.data[op.field.name] = v;
|
|
|
flattenResult.push(copy);
|
|
|
}
|
|
|
}
|
|
|
rows = flattenResult;
|
|
|
if (identMeaning.type == "group" && identMeaning.name == op.field.name)
|
|
|
identMeaning = identMeaning.on;
|
|
|
break;
|
|
|
default:
|
|
|
return Result.failure("Unrecognized query operation '" + op.type + "'");
|
|
|
}
|
|
|
if (errors.length >= incomingRows && incomingRows > 0) {
|
|
|
return Result.failure(`Every row during operation '${op.type}' failed with an error; first ${Math.min(3, errors.length)}:\n
|
|
|
${errors
|
|
|
.slice(0, 3)
|
|
|
.map(d => "- " + d.message)
|
|
|
.join("\n")}`);
|
|
|
}
|
|
|
diagnostics.push({
|
|
|
incomingRows,
|
|
|
errors,
|
|
|
outgoingRows: rows.length,
|
|
|
timeMs: new Date().getTime() - opStartTime,
|
|
|
});
|
|
|
}
|
|
|
return Result.success({
|
|
|
data: rows,
|
|
|
idMeaning: identMeaning,
|
|
|
ops,
|
|
|
diagnostics,
|
|
|
timeMs: new Date().getTime() - startTime,
|
|
|
});
|
|
|
}
|
|
|
/** Expanded version of executeCore which adds an additional "extraction" step to the pipeline. */
|
|
|
function executeCoreExtract(rows, context, ops, fields) {
|
|
|
let internal = executeCore(rows, context, ops);
|
|
|
if (!internal.successful)
|
|
|
return internal;
|
|
|
let core = internal.value;
|
|
|
let startTime = new Date().getTime();
|
|
|
let errors = [];
|
|
|
let res = [];
|
|
|
outer: for (let index = 0; index < core.data.length; index++) {
|
|
|
let page = { id: core.data[index].id, data: {} };
|
|
|
for (let [name, field] of Object.entries(fields)) {
|
|
|
let value = context.evaluate(field, core.data[index].data);
|
|
|
if (!value.successful) {
|
|
|
errors.push({ index: index, message: value.error });
|
|
|
continue outer;
|
|
|
}
|
|
|
page.data[name] = value.value;
|
|
|
}
|
|
|
res.push(page);
|
|
|
}
|
|
|
if (errors.length >= core.data.length && core.data.length > 0) {
|
|
|
return Result.failure(`Every row during final data extraction failed with an error; first ${Math.max(errors.length, 3)}:\n
|
|
|
${errors
|
|
|
.slice(0, 3)
|
|
|
.map(d => "- " + d.message)
|
|
|
.join("\n")}`);
|
|
|
}
|
|
|
let execTime = new Date().getTime() - startTime;
|
|
|
return Result.success({
|
|
|
data: res,
|
|
|
idMeaning: core.idMeaning,
|
|
|
diagnostics: core.diagnostics.concat([
|
|
|
{
|
|
|
timeMs: execTime,
|
|
|
incomingRows: core.data.length,
|
|
|
outgoingRows: res.length,
|
|
|
errors,
|
|
|
},
|
|
|
]),
|
|
|
ops: core.ops.concat([{ type: "extract", fields }]),
|
|
|
timeMs: core.timeMs + execTime,
|
|
|
});
|
|
|
}
|
|
|
/** Execute a list-based query, returning the final results. */
|
|
|
function executeList(query, index, origin, settings) {
|
|
|
var _a, _b;
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
// Start by collecting all of the files that match the 'from' queries.
|
|
|
let fileset = yield resolveSource(query.source, index, origin);
|
|
|
if (!fileset.successful)
|
|
|
return Result.failure(fileset.error);
|
|
|
// Extract information about the origin page to add to the root context.
|
|
|
let rootContext = new Context(defaultLinkHandler(index, origin), settings, {
|
|
|
this: (_b = (_a = index.pages.get(origin)) === null || _a === void 0 ? void 0 : _a.toObject(index)) !== null && _b !== void 0 ? _b : {},
|
|
|
});
|
|
|
let targetField = query.header.format;
|
|
|
let fields = targetField ? { target: targetField } : {};
|
|
|
return executeCoreExtract(fileset.value, rootContext, query.operations, fields).map(core => {
|
|
|
let data = core.data.map(p => {
|
|
|
var _a;
|
|
|
return iden({
|
|
|
primary: p.id,
|
|
|
value: (_a = p.data["target"]) !== null && _a !== void 0 ? _a : undefined,
|
|
|
});
|
|
|
});
|
|
|
return { primaryMeaning: core.idMeaning, core, data };
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
/** Execute a table query. */
|
|
|
function executeTable(query, index, origin, settings) {
|
|
|
var _a, _b;
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
// Start by collecting all of the files that match the 'from' queries.
|
|
|
let fileset = yield resolveSource(query.source, index, origin);
|
|
|
if (!fileset.successful)
|
|
|
return Result.failure(fileset.error);
|
|
|
// Extract information about the origin page to add to the root context.
|
|
|
let rootContext = new Context(defaultLinkHandler(index, origin), settings, {
|
|
|
this: (_b = (_a = index.pages.get(origin)) === null || _a === void 0 ? void 0 : _a.toObject(index)) !== null && _b !== void 0 ? _b : {},
|
|
|
});
|
|
|
let targetFields = query.header.fields;
|
|
|
let fields = {};
|
|
|
for (let field of targetFields)
|
|
|
fields[field.name] = field.field;
|
|
|
return executeCoreExtract(fileset.value, rootContext, query.operations, fields).map(core => {
|
|
|
let names = targetFields.map(f => f.name);
|
|
|
let data = core.data.map(p => iden({
|
|
|
id: p.id,
|
|
|
values: targetFields.map(f => p.data[f.name]),
|
|
|
}));
|
|
|
return { core, names, data, idMeaning: core.idMeaning };
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
/** Maps a raw core execution result to a task grouping which is much easier to */
|
|
|
function extractTaskGroupings(id, rows) {
|
|
|
switch (id.type) {
|
|
|
case "path":
|
|
|
return { type: "base", value: rows.map(r => Task.fromObject(r)) };
|
|
|
case "group":
|
|
|
let key = id.name;
|
|
|
return {
|
|
|
type: "grouped",
|
|
|
groups: rows.map(r => iden({
|
|
|
key: r[key],
|
|
|
value: extractTaskGroupings(id.on, r.rows),
|
|
|
})),
|
|
|
};
|
|
|
}
|
|
|
}
|
|
|
/** Execute a task query, returning all matching tasks. */
|
|
|
function executeTask(query, origin, index, settings) {
|
|
|
var _a, _b;
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
let fileset = matchingSourcePaths(query.source, index, origin);
|
|
|
if (!fileset.successful)
|
|
|
return Result.failure(fileset.error);
|
|
|
// Collect tasks from pages which match.
|
|
|
let incomingTasks = [];
|
|
|
for (let path of fileset.value) {
|
|
|
let page = index.pages.get(path);
|
|
|
if (!page)
|
|
|
continue;
|
|
|
let rpage = page;
|
|
|
let pageData = rpage.toObject(index);
|
|
|
let pageTasks = page.tasks.map(t => {
|
|
|
let copy = t.toObject();
|
|
|
if (!copy.createdDate)
|
|
|
copy.createdDate = stripTime(rpage.ctime);
|
|
|
if (copy.completed && !copy.completedDate)
|
|
|
copy.completedDate = stripTime(rpage.mtime);
|
|
|
// Copy 'file' metadata so you can also access page data from each task.
|
|
|
copy.file = pageData;
|
|
|
return { id: `${rpage.path}#${t.line}`, data: copy };
|
|
|
});
|
|
|
for (let task of pageTasks)
|
|
|
incomingTasks.push(task);
|
|
|
}
|
|
|
// Extract information about the origin page to add to the root context.
|
|
|
let rootContext = new Context(defaultLinkHandler(index, origin), settings, {
|
|
|
this: (_b = (_a = index.pages.get(origin)) === null || _a === void 0 ? void 0 : _a.toObject(index)) !== null && _b !== void 0 ? _b : {},
|
|
|
});
|
|
|
return executeCore(incomingTasks, rootContext, query.operations).map(core => {
|
|
|
return {
|
|
|
core,
|
|
|
tasks: extractTaskGroupings(core.idMeaning, core.data.map(r => r.data)),
|
|
|
};
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
/** Execute a single field inline a file, returning the evaluated result. */
|
|
|
function executeInline(field, origin, index, settings) {
|
|
|
var _a, _b;
|
|
|
return new Context(defaultLinkHandler(index, origin), settings, {
|
|
|
this: (_b = (_a = index.pages.get(origin)) === null || _a === void 0 ? void 0 : _a.toObject(index)) !== null && _b !== void 0 ? _b : {},
|
|
|
}).evaluate(field);
|
|
|
}
|
|
|
/** The default link resolver used when creating contexts. */
|
|
|
function defaultLinkHandler(index, origin) {
|
|
|
return {
|
|
|
resolve: link => {
|
|
|
let realFile = index.metadataCache.getFirstLinkpathDest(link, origin);
|
|
|
if (!realFile)
|
|
|
return null;
|
|
|
let realPage = index.pages.get(realFile.path);
|
|
|
if (!realPage)
|
|
|
return null;
|
|
|
return realPage.toObject(index);
|
|
|
},
|
|
|
normalize: link => {
|
|
|
var _a;
|
|
|
let realFile = index.metadataCache.getFirstLinkpathDest(link, origin);
|
|
|
return (_a = realFile === null || realFile === void 0 ? void 0 : realFile.path) !== null && _a !== void 0 ? _a : link;
|
|
|
},
|
|
|
exists: link => {
|
|
|
let realFile = index.metadataCache.getFirstLinkpathDest(link, origin);
|
|
|
return !!realFile;
|
|
|
},
|
|
|
};
|
|
|
}
|
|
|
|
|
|
/** Wait for a given predicate (querying at the given interval). */
|
|
|
function waitFor(interval, predicate, cancel) {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
if (cancel())
|
|
|
return false;
|
|
|
const wait = (ms) => new Promise((re, rj) => setTimeout(re, ms));
|
|
|
while (!predicate()) {
|
|
|
if (cancel())
|
|
|
return false;
|
|
|
yield wait(interval);
|
|
|
}
|
|
|
return true;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
/** The general, externally accessible plugin API (available at `app.plugins.plugins.dataview.api`). */
|
|
|
/** Asynchronous API calls related to file / system IO. */
|
|
|
class DataviewIOApi {
|
|
|
constructor(api) {
|
|
|
this.api = api;
|
|
|
}
|
|
|
/** Load the contents of a CSV asynchronously, returning a data array of rows (or undefined if it does not exist). */
|
|
|
csv(path, originFile) {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
if (!(typeof path === "string")) {
|
|
|
throw Error(`dv.csv only handles string paths; was provided type '${typeof path}'.`);
|
|
|
}
|
|
|
let data = yield this.api.index.csv.get(this.api.index.prefix.resolveRelative(path, originFile));
|
|
|
if (data.successful)
|
|
|
return DataArray.from(data.value, this.api.settings);
|
|
|
else
|
|
|
throw Error(`Could not find CSV for path '${path}' (relative to origin '${originFile !== null && originFile !== void 0 ? originFile : "/"}')`);
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
class DataviewApi {
|
|
|
constructor(app, index, settings) {
|
|
|
this.app = app;
|
|
|
this.index = index;
|
|
|
this.settings = settings;
|
|
|
/** Value utility functions for comparisons and type-checking. */
|
|
|
this.value = Values;
|
|
|
this.evaluationContext = new Context(defaultLinkHandler(index, ""), settings);
|
|
|
this.func = Functions.bindAll(DEFAULT_FUNCTIONS, this.evaluationContext);
|
|
|
this.io = new DataviewIOApi(this);
|
|
|
}
|
|
|
/////////////////////////////
|
|
|
// Index + Data Collection //
|
|
|
/////////////////////////////
|
|
|
/** Return an array of paths (as strings) corresponding to pages which match the query. */
|
|
|
pagePaths(query, originFile) {
|
|
|
let source;
|
|
|
try {
|
|
|
if (!query || query.trim() === "")
|
|
|
source = Sources.folder("");
|
|
|
else
|
|
|
source = EXPRESSION.source.tryParse(query);
|
|
|
}
|
|
|
catch (ex) {
|
|
|
throw new Error(`Failed to parse query in 'pagePaths': ${ex}`);
|
|
|
}
|
|
|
return matchingSourcePaths(source, this.index, originFile)
|
|
|
.map(s => DataArray.from(s, this.settings))
|
|
|
.orElseThrow();
|
|
|
}
|
|
|
/** Map a page path to the actual data contained within that page. */
|
|
|
page(path, originFile) {
|
|
|
if (!(typeof path === "string") && !Values.isLink(path)) {
|
|
|
throw Error("dv.page only handles string and link paths; was provided type '" + typeof path + "'");
|
|
|
}
|
|
|
let rawPath = path instanceof Link ? path.path : path;
|
|
|
let normPath = this.app.metadataCache.getFirstLinkpathDest(rawPath, originFile !== null && originFile !== void 0 ? originFile : "");
|
|
|
if (!normPath)
|
|
|
return undefined;
|
|
|
let pageObject = this.index.pages.get(normPath.path);
|
|
|
if (!pageObject)
|
|
|
return undefined;
|
|
|
return pageObject.toObject(this.index);
|
|
|
}
|
|
|
/** Return an array of page objects corresponding to pages which match the query. */
|
|
|
pages(query, originFile) {
|
|
|
return this.pagePaths(query, originFile).flatMap(p => {
|
|
|
let res = this.page(p, originFile);
|
|
|
return res ? [res] : [];
|
|
|
});
|
|
|
}
|
|
|
/////////////
|
|
|
// Utility //
|
|
|
/////////////
|
|
|
/**
|
|
|
* Convert an input element or array into a Dataview data-array. If the input is already a data array,
|
|
|
* it is returned unchanged.
|
|
|
*/
|
|
|
array(raw) {
|
|
|
if (DataArray.isDataArray(raw))
|
|
|
return raw;
|
|
|
if (Array.isArray(raw))
|
|
|
return DataArray.wrap(raw, this.settings);
|
|
|
return DataArray.wrap([raw], this.settings);
|
|
|
}
|
|
|
/** Return true if theg given value is a javascript array OR a dataview data array. */
|
|
|
isArray(raw) {
|
|
|
return DataArray.isDataArray(raw) || Array.isArray(raw);
|
|
|
}
|
|
|
/** Create a dataview file link to the given path. */
|
|
|
fileLink(path, embed = false, display) {
|
|
|
return Link.file(path, embed, display);
|
|
|
}
|
|
|
/** Attempt to extract a date from a string, link or date. */
|
|
|
date(pathlike) {
|
|
|
return this.func.date(pathlike);
|
|
|
}
|
|
|
/**
|
|
|
* Compare two arbitrary JavaScript values using Dataview's default comparison rules. Returns a negative value if
|
|
|
* a < b, 0 if a = b, and a positive value if a > b.
|
|
|
*/
|
|
|
compare(a, b) {
|
|
|
return Values.compareValue(a, b);
|
|
|
}
|
|
|
/** Return true if the two given JavaScript values are equal using Dataview's default comparison rules. */
|
|
|
equal(a, b) {
|
|
|
return this.compare(a, b) == 0;
|
|
|
}
|
|
|
///////////////
|
|
|
// Rendering //
|
|
|
///////////////
|
|
|
/** Render a dataview list of the given values. */
|
|
|
list(values, container, component, filePath) {
|
|
|
if (!values)
|
|
|
return;
|
|
|
if (DataArray.isDataArray(values))
|
|
|
values = values.array();
|
|
|
renderList(container, values, component, filePath, this.settings);
|
|
|
}
|
|
|
/** Render a dataview table with the given headers, and the 2D array of values. */
|
|
|
table(headers, values, container, component, filePath) {
|
|
|
if (!values)
|
|
|
values = [];
|
|
|
if (DataArray.isDataArray(values))
|
|
|
values = values.array();
|
|
|
renderTable(container, headers, values, component, filePath, this.settings);
|
|
|
}
|
|
|
/** Render a dataview task view with the given tasks. */
|
|
|
taskList(tasks, groupByFile = true, container, component, filePath = "") {
|
|
|
var _a;
|
|
|
if (DataArray.isDataArray(tasks))
|
|
|
tasks = tasks.array();
|
|
|
if (groupByFile) {
|
|
|
let byFile = new Map();
|
|
|
for (let task of tasks) {
|
|
|
if (!byFile.has(task.path))
|
|
|
byFile.set(task.path, []);
|
|
|
(_a = byFile.get(task.path)) === null || _a === void 0 ? void 0 : _a.push(task);
|
|
|
}
|
|
|
let groupings = Groupings.grouped(Array.from(byFile.entries()).map(([path, tasks]) => {
|
|
|
return { key: Link.file(path), value: Groupings.base(tasks) };
|
|
|
}));
|
|
|
let subcontainer = container.createDiv();
|
|
|
(() => __awaiter(this, void 0, void 0, function* () {
|
|
|
yield renderTasks(subcontainer, groupings, filePath, component, this.settings);
|
|
|
component.addChild(new TaskViewLifecycle(this.app.vault, subcontainer));
|
|
|
}))();
|
|
|
}
|
|
|
else {
|
|
|
let subcontainer = container.createDiv();
|
|
|
(() => __awaiter(this, void 0, void 0, function* () {
|
|
|
yield renderTasks(subcontainer, Groupings.base(tasks), filePath, component, this.settings);
|
|
|
component.addChild(new TaskViewLifecycle(this.app.vault, subcontainer));
|
|
|
}))();
|
|
|
}
|
|
|
}
|
|
|
/** Render an arbitrary value into a container. */
|
|
|
renderValue(value, container, component, filePath, inline = false) {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
yield renderValue(value, container, filePath, component, this.settings, inline);
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/** Fancy wrappers for the JavaScript API, used both by external plugins AND by the dataview javascript view. */
|
|
|
/** Asynchronous API calls related to file / system IO. */
|
|
|
class DataviewInlineIOApi {
|
|
|
constructor(api) {
|
|
|
this.api = api;
|
|
|
}
|
|
|
/** Load the contents of a CSV asynchronously, returning a data array of rows (or undefined if it does not exist). */
|
|
|
csv(path, originFile) {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
return this.api.csv(path, originFile);
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
class DataviewInlineApi {
|
|
|
constructor(index, component, container, app, settings, currentFilePath) {
|
|
|
var _a, _b;
|
|
|
/** Value utilities which allow for type-checking and comparisons. */
|
|
|
this.value = Values;
|
|
|
this.index = index;
|
|
|
this.component = component;
|
|
|
this.container = container;
|
|
|
this.app = app;
|
|
|
this.currentFilePath = currentFilePath;
|
|
|
this.settings = settings;
|
|
|
this.api = new DataviewApi(this.app, this.index, this.settings);
|
|
|
this.io = new DataviewInlineIOApi(this.api.io);
|
|
|
// Set up the evaluation context with variables from the current file.
|
|
|
let fileMeta = (_b = (_a = this.index.pages.get(this.currentFilePath)) === null || _a === void 0 ? void 0 : _a.toObject(this.index)) !== null && _b !== void 0 ? _b : {};
|
|
|
this.evaluationContext = new Context(defaultLinkHandler(this.index, this.currentFilePath), settings, fileMeta);
|
|
|
this.func = Functions.bindAll(DEFAULT_FUNCTIONS, this.evaluationContext);
|
|
|
}
|
|
|
/////////////////////////////
|
|
|
// Index + Data Collection //
|
|
|
/////////////////////////////
|
|
|
/** Return an array of paths (as strings) corresponding to pages which match the query. */
|
|
|
pagePaths(query) {
|
|
|
return this.api.pagePaths(query, this.currentFilePath);
|
|
|
}
|
|
|
/** Map a page path to the actual data contained within that page. */
|
|
|
page(path) {
|
|
|
return this.api.page(path, this.currentFilePath);
|
|
|
}
|
|
|
/** Return an array of page objects corresponding to pages which match the query. */
|
|
|
pages(query) {
|
|
|
return this.api.pages(query, this.currentFilePath);
|
|
|
}
|
|
|
/** Return the information about the current page. */
|
|
|
current() {
|
|
|
return this.page(this.currentFilePath);
|
|
|
}
|
|
|
/////////////
|
|
|
// Utility //
|
|
|
/////////////
|
|
|
/**
|
|
|
* Convert an input element or array into a Dataview data-array. If the input is already a data array,
|
|
|
* it is returned unchanged.
|
|
|
*/
|
|
|
array(raw) {
|
|
|
return this.api.array(raw);
|
|
|
}
|
|
|
/** Return true if theg given value is a javascript array OR a dataview data array. */
|
|
|
isArray(raw) {
|
|
|
return this.api.isArray(raw);
|
|
|
}
|
|
|
/** Create a dataview file link to the given path. */
|
|
|
fileLink(path, embed = false, display) {
|
|
|
return Link.file(path, embed, display);
|
|
|
}
|
|
|
/** Attempt to extract a date from a string, link or date. */
|
|
|
date(pathlike) {
|
|
|
return this.api.date(pathlike);
|
|
|
}
|
|
|
/**
|
|
|
* Compare two arbitrary JavaScript values using Dataview's default comparison rules. Returns a negative value if
|
|
|
* a < b, 0 if a = b, and a positive value if a > b.
|
|
|
*/
|
|
|
compare(a, b) {
|
|
|
return Values.compareValue(a, b);
|
|
|
}
|
|
|
/** Return true if the two given JavaScript values are equal using Dataview's default comparison rules. */
|
|
|
equal(a, b) {
|
|
|
return this.compare(a, b) == 0;
|
|
|
}
|
|
|
/////////////////////////
|
|
|
// Rendering Functions //
|
|
|
/////////////////////////
|
|
|
/** Render an HTML header; the level can be anything from 1 - 6. */
|
|
|
header(level, text) {
|
|
|
let headerType;
|
|
|
switch (level) {
|
|
|
case 1:
|
|
|
headerType = "h1";
|
|
|
break;
|
|
|
case 2:
|
|
|
headerType = "h2";
|
|
|
break;
|
|
|
case 3:
|
|
|
headerType = "h3";
|
|
|
break;
|
|
|
case 4:
|
|
|
headerType = "h4";
|
|
|
break;
|
|
|
case 5:
|
|
|
headerType = "h5";
|
|
|
break;
|
|
|
case 6:
|
|
|
headerType = "h6";
|
|
|
break;
|
|
|
default:
|
|
|
throw new Error(`Invalid header level ${level}`);
|
|
|
}
|
|
|
let wrapped = Values.wrapValue(text);
|
|
|
if (wrapped === null || wrapped === undefined) {
|
|
|
this.container.createEl(headerType, { text });
|
|
|
return;
|
|
|
}
|
|
|
let header = this.container.createEl(headerType);
|
|
|
renderValue(wrapped.value, header, this.currentFilePath, this.component, this.settings, false);
|
|
|
}
|
|
|
/** Render an HTML paragraph, containing arbitrary text. */
|
|
|
paragraph(text) {
|
|
|
let wrapped = Values.wrapValue(text);
|
|
|
if (wrapped === null || wrapped === undefined) {
|
|
|
this.container.createEl("p", { text });
|
|
|
return;
|
|
|
}
|
|
|
let p = this.container.createEl("p");
|
|
|
renderValue(wrapped.value, p, this.currentFilePath, this.component, this.settings, true);
|
|
|
}
|
|
|
/** Render an inline span, containing arbitrary text. */
|
|
|
span(text) {
|
|
|
let wrapped = Values.wrapValue(text);
|
|
|
if (wrapped === null || wrapped === undefined) {
|
|
|
this.container.createEl("span", { text });
|
|
|
return;
|
|
|
}
|
|
|
let span = this.container.createEl("span");
|
|
|
renderValue(wrapped.value, span, this.currentFilePath, this.component, this.settings, true);
|
|
|
}
|
|
|
/**
|
|
|
* Render HTML from the output of a template "view" saved as a file in the vault.
|
|
|
* Takes a filename and arbitrary input data.
|
|
|
*/
|
|
|
view(viewName, input) {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
// Look for `${viewName}.js` first, then for `${viewName}/view.js`.
|
|
|
let simpleViewFile = this.app.metadataCache.getFirstLinkpathDest(viewName + ".js", this.currentFilePath);
|
|
|
if (simpleViewFile) {
|
|
|
let contents = yield this.app.vault.read(simpleViewFile);
|
|
|
let func = new Function("dv", "input", contents);
|
|
|
try {
|
|
|
// This may directly render, in which case it will likely return undefined or null.
|
|
|
let result = func(this, input);
|
|
|
if (result)
|
|
|
renderValue(result, this.container, this.currentFilePath, this.component, this.settings, true);
|
|
|
}
|
|
|
catch (ex) {
|
|
|
renderErrorPre(this.container, `Dataview: Failed to execute view '${simpleViewFile.path}'.\n\n${ex}`);
|
|
|
}
|
|
|
return;
|
|
|
}
|
|
|
// No `{viewName}.js`, so look for a folder instead.
|
|
|
let viewPath = `${viewName}/view.js`;
|
|
|
let viewFile = this.app.metadataCache.getFirstLinkpathDest(viewPath, this.currentFilePath);
|
|
|
if (!viewFile) {
|
|
|
renderErrorPre(this.container, `Dataview: custom view not found for '${viewPath}' or '${viewName}.js'.`);
|
|
|
return;
|
|
|
}
|
|
|
let viewContents = yield this.app.vault.read(viewFile);
|
|
|
let viewFunction = new Function("dv", "input", viewContents);
|
|
|
try {
|
|
|
let result = viewFunction(this, input);
|
|
|
if (result)
|
|
|
renderValue(result, this.container, this.currentFilePath, this.component, this.settings, true);
|
|
|
}
|
|
|
catch (ex) {
|
|
|
renderErrorPre(this.container, `Dataview: Error while executing view '${viewFile.path}'.\n\n${ex}`);
|
|
|
}
|
|
|
// Check for optional CSS.
|
|
|
let cssFile = this.app.metadataCache.getFirstLinkpathDest(`${viewName}/view.css`, this.currentFilePath);
|
|
|
if (!cssFile)
|
|
|
return;
|
|
|
let cssContents = yield this.app.vault.read(cssFile);
|
|
|
this.container.createEl("style", { text: cssContents, attr: { scope: " " } });
|
|
|
});
|
|
|
}
|
|
|
/** Render a dataview list of the given values. */
|
|
|
list(values) {
|
|
|
return this.api.list(values, this.container, this.component, this.currentFilePath);
|
|
|
}
|
|
|
/** Render a dataview table with the given headers, and the 2D array of values. */
|
|
|
table(headers, values) {
|
|
|
return this.api.table(headers, values, this.container, this.component, this.currentFilePath);
|
|
|
}
|
|
|
/** Render a dataview task view with the given tasks. */
|
|
|
taskList(tasks, groupByFile = true) {
|
|
|
return this.api.taskList(tasks, groupByFile, this.container, this.component, this.currentFilePath);
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* Evaluate a script where 'this' for the script is set to the given context. Allows you to define global variables.
|
|
|
*/
|
|
|
function evalInContext(script, context) {
|
|
|
return function () {
|
|
|
return eval(script);
|
|
|
}.call(context);
|
|
|
}
|
|
|
/**
|
|
|
* Evaluate a script possibly asynchronously, if the script contains `async/await` blocks.
|
|
|
*/
|
|
|
function asyncEvalInContext(script, context) {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
if (script.includes("await")) {
|
|
|
return evalInContext("(async () => { " + script + " })()", context);
|
|
|
}
|
|
|
else {
|
|
|
return Promise.resolve(evalInContext(script, context));
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
/** Make a full API context which a script can be evaluted in. */
|
|
|
function makeApiContext(index, component, app, settings, container, originFile) {
|
|
|
return new DataviewInlineApi(index, component, container, app, settings, originFile);
|
|
|
}
|
|
|
|
|
|
class DataviewPlugin extends obsidian.Plugin {
|
|
|
trigger(name, ...data) {
|
|
|
this.app.metadataCache.trigger(name, ...data);
|
|
|
}
|
|
|
onload() {
|
|
|
var _a;
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
// Settings initialization; write defaults first time around.
|
|
|
this.settings = Object.assign(DEFAULT_SETTINGS, (_a = (yield this.loadData())) !== null && _a !== void 0 ? _a : {});
|
|
|
this.addSettingTab(new DataviewSettingsTab(this.app, this));
|
|
|
console.log("Dataview: Version 0.4.x Loaded");
|
|
|
if (!this.app.workspace.layoutReady) {
|
|
|
this.app.workspace.onLayoutReady(() => __awaiter(this, void 0, void 0, function* () { return this.prepareIndexes(); }));
|
|
|
}
|
|
|
else {
|
|
|
this.prepareIndexes();
|
|
|
}
|
|
|
// Dataview query language code blocks.
|
|
|
this.registerHighPriorityCodeblockProcessor("dataview", (source, el, ctx) => __awaiter(this, void 0, void 0, function* () {
|
|
|
let maybeQuery = tryOrPropogate(() => parseQuery(source));
|
|
|
// In case of parse error, just render the error.
|
|
|
if (!maybeQuery.successful) {
|
|
|
renderErrorPre(el, "Dataview: " + maybeQuery.error);
|
|
|
return;
|
|
|
}
|
|
|
let query = maybeQuery.value;
|
|
|
switch (query.header.type) {
|
|
|
case "task":
|
|
|
ctx.addChild(this.wrapWithEnsureIndex(ctx, el, () => new DataviewTaskRenderer(query, el, this.index, ctx.sourcePath, this.app.vault, this.settings)));
|
|
|
break;
|
|
|
case "list":
|
|
|
ctx.addChild(this.wrapWithEnsureIndex(ctx, el, () => new DataviewListRenderer(query, el, this.index, ctx.sourcePath, this.settings)));
|
|
|
break;
|
|
|
case "table":
|
|
|
ctx.addChild(this.wrapWithEnsureIndex(ctx, el, () => new DataviewTableRenderer(query, el, this.index, ctx.sourcePath, this.settings)));
|
|
|
break;
|
|
|
}
|
|
|
}));
|
|
|
// DataviewJS codeblocks.
|
|
|
this.registerHighPriorityCodeblockProcessor("dataviewjs", (source, el, ctx) => __awaiter(this, void 0, void 0, function* () {
|
|
|
ctx.addChild(this.wrapWithEnsureIndex(ctx, el, () => new DataviewJSRenderer(source, el, this.app, this.index, ctx.sourcePath, this.settings)));
|
|
|
}));
|
|
|
// Dataview inline queries.
|
|
|
this.registerMarkdownPostProcessor((el, ctx) => __awaiter(this, void 0, void 0, function* () {
|
|
|
// Search for <code> blocks inside this element; for each one, look for things of the form `= ...`.
|
|
|
let codeblocks = el.querySelectorAll("code");
|
|
|
for (let index = 0; index < codeblocks.length; index++) {
|
|
|
let codeblock = codeblocks.item(index);
|
|
|
let text = codeblock.innerText.trim();
|
|
|
if (text.startsWith(this.settings.inlineJsQueryPrefix)) {
|
|
|
let code = text.substring(this.settings.inlineJsQueryPrefix.length).trim();
|
|
|
ctx.addChild(this.wrapInlineWithEnsureIndex(ctx, codeblock, () => new DataviewInlineJSRenderer(code, el, codeblock, this.app, this.index, ctx.sourcePath, this.settings)));
|
|
|
}
|
|
|
else if (text.startsWith(this.settings.inlineQueryPrefix)) {
|
|
|
let potentialField = text.substring(this.settings.inlineQueryPrefix.length).trim();
|
|
|
let field = tryOrPropogate(() => parseField(potentialField));
|
|
|
if (!field.successful) {
|
|
|
let errorBlock = el.createEl("div");
|
|
|
renderErrorPre(errorBlock, `Dataview (inline field '${potentialField}'): ${field.error}`);
|
|
|
}
|
|
|
else {
|
|
|
let fieldValue = field.value;
|
|
|
ctx.addChild(this.wrapInlineWithEnsureIndex(ctx, codeblock, () => new DataviewInlineRenderer(fieldValue, text, el, codeblock, this.index, ctx.sourcePath, this.settings)));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}));
|
|
|
});
|
|
|
}
|
|
|
/**
|
|
|
* Utility function for registering high priority codeblocks which run before any other post processing, such as
|
|
|
* emoji-twitter.
|
|
|
*/
|
|
|
registerHighPriorityCodeblockProcessor(language, processor) {
|
|
|
let postProcess = (el, ctx) => __awaiter(this, void 0, void 0, function* () {
|
|
|
let codeblocks = el.querySelectorAll("pre > code");
|
|
|
if (!codeblocks)
|
|
|
return;
|
|
|
for (let index = 0; index < codeblocks.length; index++) {
|
|
|
let codeblock = codeblocks.item(index);
|
|
|
let clanguages = Array.from(codeblock.classList)
|
|
|
.filter(c => c.startsWith("language-"))
|
|
|
.map(c => c.substring("language-".length));
|
|
|
clanguages = clanguages.concat(Array.from(codeblock.classList)
|
|
|
.filter(c => c.startsWith(":"))
|
|
|
.map(c => c.substring(":".length)));
|
|
|
if (!clanguages.contains(language))
|
|
|
continue;
|
|
|
if (!codeblock.parentElement)
|
|
|
continue;
|
|
|
let code = codeblock.innerText;
|
|
|
// We know the parent element is a pre, replace it.
|
|
|
let replacement = document.createElement("div");
|
|
|
codeblock.parentElement.replaceWith(replacement);
|
|
|
yield processor(code, replacement, ctx);
|
|
|
}
|
|
|
});
|
|
|
postProcess.sortOrder = -100;
|
|
|
this.registerMarkdownPostProcessor(postProcess);
|
|
|
}
|
|
|
onunload() { }
|
|
|
/** Prepare all dataview indices. */
|
|
|
prepareIndexes() {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
let index = yield FullIndex.generate(this);
|
|
|
this.index = index;
|
|
|
this.api = new DataviewApi(this.app, this.index, this.settings);
|
|
|
this.trigger("dataview:api-ready", this.api);
|
|
|
});
|
|
|
}
|
|
|
/** Update plugin settings. */
|
|
|
updateSettings(settings) {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
Object.assign(this.settings, settings);
|
|
|
yield this.saveData(this.settings);
|
|
|
});
|
|
|
}
|
|
|
wrapWithEnsureIndex(ctx, container, success) {
|
|
|
return new EnsurePredicateRenderer(ctx, container, () => this.index != undefined && this.index.pages && this.index.pages.size > 0, success);
|
|
|
}
|
|
|
wrapInlineWithEnsureIndex(ctx, container, success) {
|
|
|
return new EnsureInlinePredicateRenderer(ctx, container, () => this.index != undefined && this.index.pages && this.index.pages.size > 0, success);
|
|
|
}
|
|
|
// User-facing utility functions.
|
|
|
/** Call the given callback when the dataview API has initialized. */
|
|
|
withApi(callback) {
|
|
|
if (this.api)
|
|
|
callback(this.api);
|
|
|
else
|
|
|
this.app.metadataCache.on("dataview:api-ready", callback);
|
|
|
}
|
|
|
}
|
|
|
/** All of the dataview settings in a single, nice tab. */
|
|
|
class DataviewSettingsTab extends obsidian.PluginSettingTab {
|
|
|
constructor(app, plugin) {
|
|
|
super(app, plugin);
|
|
|
this.plugin = plugin;
|
|
|
}
|
|
|
display() {
|
|
|
this.containerEl.empty();
|
|
|
this.containerEl.createEl("h2", { text: "Dataview Codeblock Settings" });
|
|
|
new obsidian.Setting(this.containerEl)
|
|
|
.setName("Inline Query Prefix")
|
|
|
.setDesc("The prefix to inline queries (to mark them as Dataview queries). Defaults to '='.")
|
|
|
.addText(text => text
|
|
|
.setPlaceholder("=")
|
|
|
.setValue(this.plugin.settings.inlineQueryPrefix)
|
|
|
.onChange((value) => __awaiter(this, void 0, void 0, function* () { return yield this.plugin.updateSettings({ inlineQueryPrefix: value }); })));
|
|
|
new obsidian.Setting(this.containerEl)
|
|
|
.setName("JavaScript Inline Query Prefix")
|
|
|
.setDesc("The prefix to JavaScript inline queries (to mark them as DataviewJS queries). Defaults to '$='.")
|
|
|
.addText(text => text
|
|
|
.setPlaceholder("$=")
|
|
|
.setValue(this.plugin.settings.inlineJsQueryPrefix)
|
|
|
.onChange((value) => __awaiter(this, void 0, void 0, function* () { return yield this.plugin.updateSettings({ inlineJsQueryPrefix: value }); })));
|
|
|
new obsidian.Setting(this.containerEl)
|
|
|
.setName("Enable JavaScript Queries")
|
|
|
.setDesc("Enable or disable executing DataviewJS queries.")
|
|
|
.addToggle(toggle => toggle
|
|
|
.setValue(this.plugin.settings.enableDataviewJs)
|
|
|
.onChange((value) => __awaiter(this, void 0, void 0, function* () { return yield this.plugin.updateSettings({ enableDataviewJs: value }); })));
|
|
|
this.containerEl.createEl("h2", { text: "Query Settings" });
|
|
|
new obsidian.Setting(this.containerEl)
|
|
|
.setName("Render Null As")
|
|
|
.setDesc("What null/non-existent should show up as in tables, by default.")
|
|
|
.addText(text => text
|
|
|
.setPlaceholder("-")
|
|
|
.setValue(this.plugin.settings.renderNullAs)
|
|
|
.onChange((value) => __awaiter(this, void 0, void 0, function* () { return yield this.plugin.updateSettings({ renderNullAs: value }); })));
|
|
|
new obsidian.Setting(this.containerEl)
|
|
|
.setName("Warn on Empty Result")
|
|
|
.setDesc("If set, queries which return 0 results will render a warning message.")
|
|
|
.addToggle(toggle => toggle
|
|
|
.setValue(this.plugin.settings.warnOnEmptyResult)
|
|
|
.onChange((value) => __awaiter(this, void 0, void 0, function* () { return yield this.plugin.updateSettings({ warnOnEmptyResult: value }); })));
|
|
|
new obsidian.Setting(this.containerEl)
|
|
|
.setName("Dataview Refresh Interval (milliseconds)")
|
|
|
.setDesc("How frequently dataviews are updated in preview mode when files are changing.")
|
|
|
.addText(text => text
|
|
|
.setPlaceholder("5000")
|
|
|
.setValue("" + this.plugin.settings.refreshInterval)
|
|
|
.onChange((value) => __awaiter(this, void 0, void 0, function* () {
|
|
|
let parsed = parseInt(value);
|
|
|
if (isNaN(parsed))
|
|
|
return;
|
|
|
parsed = parsed < 100 ? 100 : parsed;
|
|
|
yield this.plugin.updateSettings({ refreshInterval: parsed });
|
|
|
})));
|
|
|
let dformat = new obsidian.Setting(this.containerEl)
|
|
|
.setName("Date Format")
|
|
|
.setDesc("The default date format (see Luxon date format options)." +
|
|
|
" Currently: " +
|
|
|
DateTime_1.now().toFormat(this.plugin.settings.defaultDateFormat, { locale: currentLocale() }))
|
|
|
.addText(text => text
|
|
|
.setPlaceholder(DEFAULT_QUERY_SETTINGS.defaultDateFormat)
|
|
|
.setValue(this.plugin.settings.defaultDateFormat)
|
|
|
.onChange((value) => __awaiter(this, void 0, void 0, function* () {
|
|
|
dformat.setDesc("The default date format (see Luxon date format options)." +
|
|
|
" Currently: " +
|
|
|
DateTime_1.now().toFormat(value, { locale: currentLocale() }));
|
|
|
yield this.plugin.updateSettings({ defaultDateFormat: value });
|
|
|
})));
|
|
|
let dtformat = new obsidian.Setting(this.containerEl)
|
|
|
.setName("Datetime Format")
|
|
|
.setDesc("The default date and time format (see Luxon date format options)." +
|
|
|
" Currently: " +
|
|
|
DateTime_1.now().toFormat(this.plugin.settings.defaultDateTimeFormat, { locale: currentLocale() }))
|
|
|
.addText(text => text
|
|
|
.setPlaceholder(DEFAULT_QUERY_SETTINGS.defaultDateTimeFormat)
|
|
|
.setValue(this.plugin.settings.defaultDateTimeFormat)
|
|
|
.onChange((value) => __awaiter(this, void 0, void 0, function* () {
|
|
|
dtformat.setDesc("The default date and time format (see Luxon date format options)." +
|
|
|
" Currently: " +
|
|
|
DateTime_1.now().toFormat(value, { locale: currentLocale() }));
|
|
|
yield this.plugin.updateSettings({ defaultDateTimeFormat: value });
|
|
|
})));
|
|
|
}
|
|
|
}
|
|
|
/** A generic renderer which waits for a predicate, only continuing on success. */
|
|
|
class EnsurePredicateRenderer extends obsidian.MarkdownRenderChild {
|
|
|
constructor(ctx, container, update, success) {
|
|
|
super(container);
|
|
|
this.ctx = ctx;
|
|
|
this.container = container;
|
|
|
this.update = update;
|
|
|
this.success = success;
|
|
|
this.ctx = ctx;
|
|
|
this.container = container;
|
|
|
this.update = update;
|
|
|
this.success = success;
|
|
|
this.dead = false;
|
|
|
}
|
|
|
onload() {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
let loadContainer = renderErrorPre(this.container, "Dataview indices are loading");
|
|
|
// Wait for the given predicate to finally pass...
|
|
|
yield waitFor(EnsurePredicateRenderer.CHECK_INTERVAL_MS, () => {
|
|
|
loadContainer.innerText += ".";
|
|
|
return this.update();
|
|
|
}, () => this.dead);
|
|
|
// Clear the container before passing it off to the child.
|
|
|
this.container.innerHTML = "";
|
|
|
// And then pass off rendering to a child context.
|
|
|
this.ctx.addChild(this.success());
|
|
|
});
|
|
|
}
|
|
|
onunload() {
|
|
|
this.dead = true;
|
|
|
}
|
|
|
}
|
|
|
EnsurePredicateRenderer.CHECK_INTERVAL_MS = 1000;
|
|
|
/** Inline version of EnsurePredicateRenderer; renders it's loading message differently. */
|
|
|
class EnsureInlinePredicateRenderer extends obsidian.MarkdownRenderChild {
|
|
|
constructor(ctx, container, update, success) {
|
|
|
super(container);
|
|
|
this.ctx = ctx;
|
|
|
this.container = container;
|
|
|
this.update = update;
|
|
|
this.success = success;
|
|
|
this.ctx = ctx;
|
|
|
this.container = container;
|
|
|
this.update = update;
|
|
|
this.success = success;
|
|
|
this.dead = false;
|
|
|
}
|
|
|
onload() {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
this.container.innerHTML = "<Indices loading>";
|
|
|
// Wait for the given predicate to finally pass...
|
|
|
yield waitFor(EnsurePredicateRenderer.CHECK_INTERVAL_MS, () => {
|
|
|
return this.update();
|
|
|
}, () => this.dead);
|
|
|
// Clear the container before passing it off to the child.
|
|
|
this.container.innerHTML = "";
|
|
|
// And then pass off rendering to a child context.
|
|
|
this.ctx.addChild(this.success());
|
|
|
});
|
|
|
}
|
|
|
onunload() {
|
|
|
this.dead = true;
|
|
|
}
|
|
|
}
|
|
|
EnsureInlinePredicateRenderer.CHECK_INTERVAL_MS = 1000;
|
|
|
/** Renders a list dataview for the given query. */
|
|
|
class DataviewListRenderer extends obsidian.MarkdownRenderChild {
|
|
|
constructor(query, container, index, origin, settings) {
|
|
|
super(container);
|
|
|
this.query = query;
|
|
|
this.container = container;
|
|
|
this.index = index;
|
|
|
this.origin = origin;
|
|
|
this.settings = settings;
|
|
|
}
|
|
|
onload() {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
yield this.render();
|
|
|
onIndexChange(this.index, this.settings.refreshInterval, this, () => __awaiter(this, void 0, void 0, function* () {
|
|
|
this.container.innerHTML = "";
|
|
|
yield this.render();
|
|
|
}));
|
|
|
});
|
|
|
}
|
|
|
render() {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
let maybeResult = yield asyncTryOrPropogate(() => executeList(this.query, this.index, this.origin, this.settings));
|
|
|
if (!maybeResult.successful) {
|
|
|
renderErrorPre(this.container, "Dataview: " + maybeResult.error);
|
|
|
return;
|
|
|
}
|
|
|
else if (maybeResult.value.data.length == 0 && this.settings.warnOnEmptyResult) {
|
|
|
renderErrorPre(this.container, "Dataview: Query returned 0 results.");
|
|
|
return;
|
|
|
}
|
|
|
let showId = this.query.header.showId;
|
|
|
let showValue = !!this.query.header.format;
|
|
|
let result = maybeResult.value;
|
|
|
let rendered = [];
|
|
|
for (let row of result.data) {
|
|
|
if (showValue && showId) {
|
|
|
let span = document.createElement("span");
|
|
|
yield renderValue(row.primary, span, this.origin, this, this.settings, false, "list");
|
|
|
span.appendText(": ");
|
|
|
yield renderValue(row.value || null, span, this.origin, this, this.settings, true, "list");
|
|
|
rendered.push(span);
|
|
|
}
|
|
|
else if (showId) {
|
|
|
rendered.push(row.primary);
|
|
|
}
|
|
|
else if (showValue) {
|
|
|
rendered.push(row.value || null);
|
|
|
}
|
|
|
}
|
|
|
yield renderList(this.container, rendered, this, this.origin, this.settings);
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
class DataviewTableRenderer extends obsidian.MarkdownRenderChild {
|
|
|
constructor(query, container, index, origin, settings) {
|
|
|
super(container);
|
|
|
this.query = query;
|
|
|
this.container = container;
|
|
|
this.index = index;
|
|
|
this.origin = origin;
|
|
|
this.settings = settings;
|
|
|
}
|
|
|
onload() {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
yield this.render();
|
|
|
onIndexChange(this.index, this.settings.refreshInterval, this, () => __awaiter(this, void 0, void 0, function* () {
|
|
|
this.container.innerHTML = "";
|
|
|
yield this.render();
|
|
|
}));
|
|
|
});
|
|
|
}
|
|
|
render() {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
let maybeResult = yield asyncTryOrPropogate(() => executeTable(this.query, this.index, this.origin, this.settings));
|
|
|
if (!maybeResult.successful) {
|
|
|
renderErrorPre(this.container, "Dataview: " + maybeResult.error);
|
|
|
return;
|
|
|
}
|
|
|
let result = maybeResult.value;
|
|
|
if (this.query.header.showId) {
|
|
|
let dataWithNames = [];
|
|
|
for (let entry of result.data) {
|
|
|
dataWithNames.push([entry.id].concat(entry.values));
|
|
|
}
|
|
|
let name = result.idMeaning.type === "group" ? "Group" : "File";
|
|
|
yield renderTable(this.container, [name].concat(result.names), dataWithNames, this, this.origin, this.settings);
|
|
|
}
|
|
|
else {
|
|
|
yield renderTable(this.container, result.names, result.data.map(v => v.values), this, this.origin, this.settings);
|
|
|
}
|
|
|
// Render after the empty table, so the table header still renders.
|
|
|
if (result.data.length == 0 && this.settings.warnOnEmptyResult) {
|
|
|
renderErrorPre(this.container, "Dataview: Query returned 0 results.");
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
class DataviewTaskRenderer extends obsidian.MarkdownRenderChild {
|
|
|
constructor(query, container, index, origin, vault, settings) {
|
|
|
super(container);
|
|
|
this.query = query;
|
|
|
this.container = container;
|
|
|
this.index = index;
|
|
|
this.origin = origin;
|
|
|
this.vault = vault;
|
|
|
this.settings = settings;
|
|
|
}
|
|
|
onload() {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
yield this.render();
|
|
|
onIndexChange(this.index, this.settings.refreshInterval, this, () => __awaiter(this, void 0, void 0, function* () {
|
|
|
if (this.taskView)
|
|
|
this.removeChild(this.taskView);
|
|
|
this.container.innerHTML = "";
|
|
|
yield this.render();
|
|
|
}));
|
|
|
});
|
|
|
}
|
|
|
render() {
|
|
|
var _a;
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
let result = yield asyncTryOrPropogate(() => executeTask(this.query, this.origin, this.index, this.settings));
|
|
|
if (!result.successful) {
|
|
|
renderErrorPre(this.container, "Dataview: " + result.error);
|
|
|
}
|
|
|
else {
|
|
|
// If there is no grouping going on, group by the file path by default.
|
|
|
let tasks = result.value.tasks;
|
|
|
if (tasks.type == "base") {
|
|
|
let byFile = new Map();
|
|
|
for (let task of tasks.value) {
|
|
|
if (!byFile.has(task.path))
|
|
|
byFile.set(task.path, []);
|
|
|
(_a = byFile.get(task.path)) === null || _a === void 0 ? void 0 : _a.push(task);
|
|
|
}
|
|
|
tasks = Groupings.grouped(Array.from(byFile.entries()).map(([path, tasks]) => {
|
|
|
return { key: Link.file(path), value: Groupings.base(tasks) };
|
|
|
}));
|
|
|
}
|
|
|
yield renderTasks(this.container, tasks, this.origin, this, this.settings);
|
|
|
// TODO: Merge this into this renderer.
|
|
|
this.addChild((this.taskView = new TaskViewLifecycle(this.vault, this.container)));
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
/** Renders inline query results. */
|
|
|
class DataviewInlineRenderer extends obsidian.MarkdownRenderChild {
|
|
|
constructor(field, fieldText, container, target, index, origin, settings) {
|
|
|
super(container);
|
|
|
this.field = field;
|
|
|
this.fieldText = fieldText;
|
|
|
this.container = container;
|
|
|
this.target = target;
|
|
|
this.index = index;
|
|
|
this.origin = origin;
|
|
|
this.settings = settings;
|
|
|
}
|
|
|
onload() {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
yield this.render();
|
|
|
onIndexChange(this.index, this.settings.refreshInterval, this, () => __awaiter(this, void 0, void 0, function* () {
|
|
|
var _a;
|
|
|
(_a = this.errorbox) === null || _a === void 0 ? void 0 : _a.remove();
|
|
|
yield this.render();
|
|
|
}));
|
|
|
});
|
|
|
}
|
|
|
render() {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
let result = tryOrPropogate(() => executeInline(this.field, this.origin, this.index, this.settings));
|
|
|
if (!result.successful) {
|
|
|
this.errorbox = this.container.createEl("div");
|
|
|
renderErrorPre(this.errorbox, "Dataview (for inline query '" + this.fieldText + "'): " + result.error);
|
|
|
}
|
|
|
else {
|
|
|
let temp = document.createElement("span");
|
|
|
yield renderValue(result.value, temp, this.origin, this, this.settings, false);
|
|
|
this.target.replaceWith(temp);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
class DataviewJSRenderer extends obsidian.MarkdownRenderChild {
|
|
|
constructor(script, container, app, index, origin, settings) {
|
|
|
super(container);
|
|
|
this.script = script;
|
|
|
this.container = container;
|
|
|
this.app = app;
|
|
|
this.index = index;
|
|
|
this.origin = origin;
|
|
|
this.settings = settings;
|
|
|
}
|
|
|
onload() {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
yield this.render();
|
|
|
onIndexChange(this.index, this.settings.refreshInterval, this, () => __awaiter(this, void 0, void 0, function* () {
|
|
|
this.container.innerHTML = "";
|
|
|
yield this.render();
|
|
|
}));
|
|
|
});
|
|
|
}
|
|
|
render() {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
if (!this.settings.enableDataviewJs) {
|
|
|
this.containerEl.innerHTML = "";
|
|
|
renderErrorPre(this.container, "Dataview JS queries are disabled.");
|
|
|
return;
|
|
|
}
|
|
|
// Assume that the code is javascript, and try to eval it.
|
|
|
try {
|
|
|
yield asyncEvalInContext(DataviewJSRenderer.PREAMBLE + this.script, makeApiContext(this.index, this, this.app, this.settings, this.container, this.origin));
|
|
|
}
|
|
|
catch (e) {
|
|
|
this.containerEl.innerHTML = "";
|
|
|
renderErrorPre(this.container, "Evaluation Error: " + e.stack);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
DataviewJSRenderer.PREAMBLE = "const dataview = this;const dv = this;";
|
|
|
/** Inline JS renderer accessible using '=$' by default. */
|
|
|
class DataviewInlineJSRenderer extends obsidian.MarkdownRenderChild {
|
|
|
constructor(script, container, target, app, index, origin, settings) {
|
|
|
super(container);
|
|
|
this.script = script;
|
|
|
this.container = container;
|
|
|
this.target = target;
|
|
|
this.app = app;
|
|
|
this.index = index;
|
|
|
this.origin = origin;
|
|
|
this.settings = settings;
|
|
|
}
|
|
|
onload() {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
yield this.render();
|
|
|
onIndexChange(this.index, this.settings.refreshInterval, this, () => __awaiter(this, void 0, void 0, function* () {
|
|
|
var _a;
|
|
|
(_a = this.errorbox) === null || _a === void 0 ? void 0 : _a.remove();
|
|
|
yield this.render();
|
|
|
}));
|
|
|
});
|
|
|
}
|
|
|
render() {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
if (!this.settings.enableDataviewJs) {
|
|
|
let temp = document.createElement("span");
|
|
|
temp.innerText = "<disabled>";
|
|
|
this.target.replaceWith(temp);
|
|
|
this.target = temp;
|
|
|
return;
|
|
|
}
|
|
|
// Assume that the code is javascript, and try to eval it.
|
|
|
try {
|
|
|
let temp = document.createElement("span");
|
|
|
let result = yield asyncEvalInContext(DataviewInlineJSRenderer.PREAMBLE + this.script, makeApiContext(this.index, this, this.app, this.settings, temp, this.origin));
|
|
|
this.target.replaceWith(temp);
|
|
|
this.target = temp;
|
|
|
if (result === undefined)
|
|
|
return;
|
|
|
renderValue(result, temp, this.origin, this, this.settings, false);
|
|
|
}
|
|
|
catch (e) {
|
|
|
this.errorbox = this.container.createEl("div");
|
|
|
renderErrorPre(this.errorbox, "Dataview (for inline JS query '" + this.script + "'): " + e);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
DataviewInlineJSRenderer.PREAMBLE = "const dataview = this;const dv=this;";
|
|
|
function onIndexChange(index, interval, component, action) {
|
|
|
let lastReload = index.revision;
|
|
|
component.registerInterval(window.setInterval(() => {
|
|
|
// If the index revision has changed recently, then queue a reload.
|
|
|
if (lastReload != index.revision) {
|
|
|
action();
|
|
|
lastReload = index.revision;
|
|
|
}
|
|
|
}, interval));
|
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