|
|
'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: "\\-",
|
|
|
taskLinkLocation: "end",
|
|
|
taskLinkText: "🔗",
|
|
|
warnOnEmptyResult: true,
|
|
|
refreshInterval: 250,
|
|
|
defaultDateFormat: "MMMM dd, yyyy",
|
|
|
defaultDateTimeFormat: "h:mm a - MMMM dd, yyyy",
|
|
|
maxRecursiveRenderDepth: 6,
|
|
|
tableIdColumnName: "File",
|
|
|
tableGroupColumnName: "Group",
|
|
|
};
|
|
|
/** Default settings for dataview on install. */
|
|
|
const DEFAULT_SETTINGS = Object.assign(Object.assign({}, DEFAULT_QUERY_SETTINGS), {
|
|
|
inlineQueryPrefix: "=",
|
|
|
inlineJsQueryPrefix: "$=",
|
|
|
enableDataviewJs: false,
|
|
|
enableInlineDataviewJs: false,
|
|
|
prettyRenderInlineFields: 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,
|
|
|
});
|
|
|
}
|
|
|
/** 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;
|
|
|
}
|
|
|
/** 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));
|
|
|
}
|
|
|
/** Create a task from a record. */
|
|
|
static fromObject(obj) {
|
|
|
return new Task(obj);
|
|
|
}
|
|
|
id() {
|
|
|
return `${this.path}-${this.line}`;
|
|
|
}
|
|
|
markdown() {
|
|
|
let result = `- [${this.completed ? "x" : " "}] ${this.text}`;
|
|
|
return result;
|
|
|
}
|
|
|
/** Return a new task where the created and completed fields are assigned to the given defaults if not present. */
|
|
|
withDefaultDates(defaultCreated, defaultCompleted) {
|
|
|
var _a, _b;
|
|
|
let newTask = new Task(this);
|
|
|
newTask.created = (_a = newTask.created) !== null && _a !== void 0 ? _a : defaultCreated;
|
|
|
if (newTask.completed)
|
|
|
newTask.completion = (_b = newTask.completion) !== null && _b !== void 0 ? _b : defaultCompleted;
|
|
|
newTask.subtasks = newTask.subtasks.map(t => t.withDefaultDates(defaultCreated, defaultCompleted));
|
|
|
return newTask;
|
|
|
}
|
|
|
toObject(inlineAnnotations = true) {
|
|
|
let result = {
|
|
|
text: this.text,
|
|
|
line: this.line,
|
|
|
path: this.path,
|
|
|
completed: this.completed,
|
|
|
fullyCompleted: this.fullyCompleted,
|
|
|
real: this.real,
|
|
|
blockId: this.blockId,
|
|
|
link: this.link,
|
|
|
subtasks: this.subtasks.map(t => t.toObject(inlineAnnotations)),
|
|
|
annotated: !!this.due || !!this.completion || (!!this.annotations && Object.keys(this.annotations).length > 0),
|
|
|
};
|
|
|
if (this.created)
|
|
|
result.created = this.created;
|
|
|
if (this.due)
|
|
|
result.due = this.due;
|
|
|
if (this.completion)
|
|
|
result.completion = this.completion;
|
|
|
if (this.annotations) {
|
|
|
if (inlineAnnotations) {
|
|
|
for (let [key, value] of Object.entries(this.annotations)) {
|
|
|
if (key in result)
|
|
|
continue;
|
|
|
result[key] = value;
|
|
|
}
|
|
|
}
|
|
|
else {
|
|
|
result.annotations = this.annotations;
|
|
|
}
|
|
|
}
|
|
|
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 into an embedded link. */
|
|
|
toEmbed() {
|
|
|
if (this.embed)
|
|
|
return this;
|
|
|
else {
|
|
|
let link = new Link(this);
|
|
|
link.embed = true;
|
|
|
return link;
|
|
|
}
|
|
|
}
|
|
|
/** 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 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) {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
let subcontainer = container.createSpan();
|
|
|
yield obsidian.MarkdownRenderer.renderMarkdown(markdown, subcontainer, sourcePath, component);
|
|
|
let paragraph = subcontainer.querySelector("p");
|
|
|
if (subcontainer.children.length == 1 && paragraph) {
|
|
|
while (paragraph.firstChild) {
|
|
|
subcontainer.appendChild(paragraph.firstChild);
|
|
|
}
|
|
|
subcontainer.removeChild(paragraph);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
/** 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));
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
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);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/** Parse inline fields and other embedded metadata in a line. */
|
|
|
/** The wrapper characters that can be used to define an inline field. */
|
|
|
const INLINE_FIELD_WRAPPERS = Object.freeze({
|
|
|
"[": "]",
|
|
|
"(": ")",
|
|
|
});
|
|
|
/**
|
|
|
* Find a matching closing bracket that occurs at or after `start`, respecting nesting and escapes. If found,
|
|
|
* returns the value contained within and the string index after the end of the value.
|
|
|
*/
|
|
|
function findClosing(line, start, open, close) {
|
|
|
let nesting = 0;
|
|
|
let escaped = false;
|
|
|
for (let index = start; index < line.length; index++) {
|
|
|
let char = line.charAt(index);
|
|
|
// Allows for double escapes like '\\' to be rendered normally.
|
|
|
if (char == "\\") {
|
|
|
escaped = !escaped;
|
|
|
continue;
|
|
|
}
|
|
|
if (escaped) {
|
|
|
escaped = false;
|
|
|
continue;
|
|
|
}
|
|
|
if (char == open)
|
|
|
nesting++;
|
|
|
else if (char == close)
|
|
|
nesting--;
|
|
|
// Only occurs if we are on a close character and trhere is no more nesting.
|
|
|
if (nesting < 0)
|
|
|
return { value: line.substring(start, index).trim(), endIndex: index + 1 };
|
|
|
escaped = false;
|
|
|
}
|
|
|
return undefined;
|
|
|
}
|
|
|
/** Find the '::' separator in an inline field. */
|
|
|
function findSeparator(line, start) {
|
|
|
let sep = line.indexOf("::", start);
|
|
|
let key = line.substring(start, sep);
|
|
|
// Fail the match if we find any separator characters (not allowed in keys).
|
|
|
for (let sep of Object.keys(INLINE_FIELD_WRAPPERS).concat(Object.values(INLINE_FIELD_WRAPPERS))) {
|
|
|
if (key.includes(sep))
|
|
|
return undefined;
|
|
|
}
|
|
|
return { key: key.trim(), valueIndex: sep + 2 };
|
|
|
}
|
|
|
/** Try to completely parse an inline field starting at the given position. Assuems `start` is on a wrapping character. */
|
|
|
function findSpecificInlineField(line, start) {
|
|
|
let open = line.charAt(start);
|
|
|
let key = findSeparator(line, start + 1);
|
|
|
if (key === undefined)
|
|
|
return undefined;
|
|
|
let value = findClosing(line, key.valueIndex, open, INLINE_FIELD_WRAPPERS[open]);
|
|
|
if (value === undefined)
|
|
|
return undefined;
|
|
|
return {
|
|
|
key: key.key,
|
|
|
value: value.value,
|
|
|
start: start,
|
|
|
startValue: key.valueIndex,
|
|
|
end: value.endIndex,
|
|
|
wrapping: open,
|
|
|
};
|
|
|
}
|
|
|
/** Parse a textual inline field value into something we can work with. */
|
|
|
function parseInlineValue(value) {
|
|
|
// The stripped literal field parser understands all of the non-array/non-object fields and can parse them for us.
|
|
|
// Inline field objects are not currently supported; inline array objects have to be handled by the parser
|
|
|
// separately.
|
|
|
let inline = EXPRESSION.inlineField.parse(value);
|
|
|
if (inline.status)
|
|
|
return inline.value;
|
|
|
else
|
|
|
return value;
|
|
|
}
|
|
|
/** Extracts inline fields of the form '[key:: value]' from a line of text. This is done in a relatively
|
|
|
* "robust" way to avoid failing due to bad nesting or other interfering Markdown symbols:
|
|
|
*
|
|
|
* - Look for any wrappers ('[' and '(') in the line, trying to parse whatever comes after it as an inline key::.
|
|
|
* - If successful, scan until you find a matching end bracket, and parse whatever remains as an inline value.
|
|
|
*/
|
|
|
function extractInlineFields(line) {
|
|
|
let fields = [];
|
|
|
for (let wrapper of Object.keys(INLINE_FIELD_WRAPPERS)) {
|
|
|
let foundIndex = line.indexOf(wrapper);
|
|
|
while (foundIndex >= 0) {
|
|
|
let parsedField = findSpecificInlineField(line, foundIndex);
|
|
|
if (!parsedField) {
|
|
|
foundIndex = line.indexOf(wrapper, foundIndex + 1);
|
|
|
continue;
|
|
|
}
|
|
|
fields.push(parsedField);
|
|
|
foundIndex = line.indexOf(wrapper, parsedField.end);
|
|
|
}
|
|
|
}
|
|
|
return fields;
|
|
|
}
|
|
|
|
|
|
/** 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 = [];
|
|
|
this.tasks = [];
|
|
|
Object.assign(this, init);
|
|
|
}
|
|
|
/** 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 => Link.file(link.path));
|
|
|
}
|
|
|
/** 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(),
|
|
|
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: stripTime(this.ctime),
|
|
|
mtime: this.mtime,
|
|
|
mday: stripTime(this.mtime),
|
|
|
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;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/** Importer for markdown documents. */
|
|
|
/** 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(Link.file(resolved));
|
|
|
}
|
|
|
// Merge frontmatter fields with parsed fields.
|
|
|
for (let [name, values] of markdownData.fields.entries()) {
|
|
|
for (let value of values)
|
|
|
addInlineField(fields, name, value);
|
|
|
}
|
|
|
// Add task defaults; this should probably be done in the task parsing directly
|
|
|
// once the parser has access to the common file metadata.
|
|
|
let pageCtime = DateTime_1.fromMillis(file.stat.ctime);
|
|
|
let fixedTasks = markdownData.tasks.map(t => t.withDefaultDates(pageCtime, undefined));
|
|
|
return new PageMetadata(file.path, {
|
|
|
fields,
|
|
|
tags,
|
|
|
aliases,
|
|
|
links,
|
|
|
tasks: fixedTasks,
|
|
|
ctime: pageCtime,
|
|
|
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[key] = value;
|
|
|
result[canonicalizeVarName(key)] = value;
|
|
|
}
|
|
|
rows.push(result);
|
|
|
}
|
|
|
return rows;
|
|
|
}
|
|
|
|
|
|
var Transferable;
|
|
|
(function (Transferable) {
|
|
|
/** Convert a literal value to a serializer-friendly transferable value. Does not work for all types. */
|
|
|
function transferable(value) {
|
|
|
// Handle non-dataview values first.
|
|
|
if (value instanceof Map) {
|
|
|
let copied = new Map();
|
|
|
for (let [key, val] of value.entries())
|
|
|
copied.set(transferable(key), transferable(val));
|
|
|
return copied;
|
|
|
}
|
|
|
else if (value instanceof Set) {
|
|
|
let copied = new Set();
|
|
|
for (let val of value)
|
|
|
copied.add(transferable(val));
|
|
|
return copied;
|
|
|
}
|
|
|
let wrapped = Values.wrapValue(value);
|
|
|
if (wrapped === undefined)
|
|
|
throw Error("Unrecognized transferable value: " + value);
|
|
|
switch (wrapped.type) {
|
|
|
case "null":
|
|
|
case "number":
|
|
|
case "string":
|
|
|
case "boolean":
|
|
|
return wrapped.value;
|
|
|
case "date":
|
|
|
return {
|
|
|
"___transfer-type": "date",
|
|
|
value: transferable(wrapped.value.toObject()),
|
|
|
options: { zone: wrapped.value.zoneName },
|
|
|
};
|
|
|
case "duration":
|
|
|
return { "___transfer-type": "duration", value: transferable(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: transferable(wrapped.value.toObject()) };
|
|
|
case "task":
|
|
|
return { "___transfer-type": "task", value: transferable(wrapped.value.toObject(false)) };
|
|
|
default:
|
|
|
throw Error("Unrecognized transferable literal value: " + value);
|
|
|
}
|
|
|
}
|
|
|
Transferable.transferable = transferable;
|
|
|
/** Convert a transferable value back to a literal value we can work with. */
|
|
|
function value(transferable) {
|
|
|
if (transferable === null) {
|
|
|
return null;
|
|
|
}
|
|
|
else if (transferable === undefined) {
|
|
|
return undefined;
|
|
|
}
|
|
|
else if (transferable instanceof Map) {
|
|
|
let real = new Map();
|
|
|
for (let [key, val] of transferable.entries())
|
|
|
real.set(value(key), value(val));
|
|
|
return real;
|
|
|
}
|
|
|
else if (transferable instanceof Set) {
|
|
|
let real = new Set();
|
|
|
for (let val of transferable)
|
|
|
real.add(value(val));
|
|
|
return real;
|
|
|
}
|
|
|
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":
|
|
|
let rawDate = DateTime_1.fromObject(value(transferable.value));
|
|
|
let dateOpts = value(transferable.options);
|
|
|
if (dateOpts.zone)
|
|
|
rawDate.setZone(dateOpts.zone);
|
|
|
return rawDate;
|
|
|
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, val] of Object.entries(transferable))
|
|
|
result[key] = value(val);
|
|
|
return result;
|
|
|
}
|
|
|
return transferable;
|
|
|
}
|
|
|
Transferable.value = value;
|
|
|
})(Transferable || (Transferable = {}));
|
|
|
|
|
|
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('Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwooZnVuY3Rpb24gKCkgewogICAgJ3VzZSBzdHJpY3QnOwoKICAgIC8qISAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKg0KICAgIENvcHlyaWdodCAoYykgTWljcm9zb2Z0IENvcnBvcmF0aW9uLg0KDQogICAgUGVybWlzc2lvbiB0byB1c2UsIGNvcHksIG1vZGlmeSwgYW5kL29yIGRpc3RyaWJ1dGUgdGhpcyBzb2Z0d2FyZSBmb3IgYW55DQogICAgcHVycG9zZSB3aXRoIG9yIHdpdGhvdXQgZmVlIGlzIGhlcmVieSBncmFudGVkLg0KDQogICAgVEhFIFNPRlRXQVJFIElTIFBST1ZJREVEICJBUyBJUyIgQU5EIFRIRSBBVVRIT1IgRElTQ0xBSU1TIEFMTCBXQVJSQU5USUVTIFdJVEgNCiAgICBSRUdBUkQgVE8gVEhJUyBTT0ZUV0FSRSBJTkNMVURJTkcgQUxMIElNUExJRUQgV0FSUkFOVElFUyBPRiBNRVJDSEFOVEFCSUxJVFkNCiAgICBBTkQgRklUTkVTUy4gSU4gTk8gRVZFTlQgU0hBTEwgVEhFIEFVVEhPUiBCRSBMSUFCTEUgRk9SIEFOWSBTUEVDSUFMLCBESVJFQ1QsDQogICAgSU5ESVJFQ1QsIE9SIENPTlNFUVVFTlRJQUwgREFNQUdFUyBPUiBBTlkgREFNQUdFUyBXSEFUU09FVkVSIFJFU1VMVElORyBGUk9NDQogICAgTE9TUyBPRiBVU0UsIERBVEEgT1IgUFJPRklUUywgV0hFVEhFUiBJTiBBTiBBQ1RJT04gT0YgQ09OVFJBQ1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SB7CiAgICAgICAgaWYgKENsYXNzID09PSBudWxsIHx8ICFfaXNOYXRpdmVGdW5jdGlvbihDbGFzcykpIHJldHVybiBDbGFzczsKCiAgICAgICAgaWYgKHR5cGVvZiBDbGFzcyAhPT0gImZ1bmN0aW9uIikgewogICAgICAgICAgdGhyb3cgbmV3IFR5cGVFcnJvcigiU3VwZXIgZXhwcmVzc2lvbiBtdXN0IGVpdGhlciBiZSBudWxsIG9yIGEgZnVuY3Rpb24iKTsKICAgICAgICB9CgogICAgICAgIGlmICh0eXBlb2YgX2NhY2hlICE9PSAidW5kZWZpbmVkIikgewogICAgICAgICAgaWYgKF9jYWNoZS5oYXMoQ2xhc3MpKSByZXR1cm4gX2NhY2hlLmdldChDbGFzcyk7CgogICAgICAgICAgX2NhY2hlLnNldChDbGFzcywgV3JhcHBlcik7CiAgICAgICAgfQoKICAgICAgICBmdW5jdGlvbiBXcmFwcGVyKCkgewogICAgICAgICAgcmV0dXJuIF9jb25zdHJ1Y3QoQ2xhc3MsIGFyZ3VtZW50cywgX2dldFByb3RvdHlwZU9mKHRoaXMpLmNvbnN0cnVjdG9yKTsKICAgICAgICB9CgogICAgICAgIFdyYXBwZXIucHJvdG90eXBlID0gT2JqZWN0LmNyZWF0ZShDbGFzcy5wcm90b3R5cGUsIHsKICAgICAgICAgIGNvbnN0cnVjdG9yOiB7CiAgICAgICAgICAgIHZhbHVlOiBXcmFwcGVyLAogICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwKICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsCiAgICAgICAgICAgIGNvbmZpZ3VyYWJsZTogdHJ1ZQogICAgICAgICAgfQogICAgICAgIH0pOwogICAgICAgIHJldHVybiBfc2V0UHJvdG90eXBlT2YoV3JhcHBlciwgQ2xhc3MpOwogICAgICB9OwoKICAgICAgcmV0dXJuIF93cmFwTmF0aXZlU3VwZXIoQ2xhc3MpOwogICAgfQoKICAgIGZ1bmN0aW9uIF9vYmplY3RXaXRob3V0U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wogICAgLyoqCiAgICAgKiBAcHJpdmF0ZQogICAgICovCgogICAgdmFyIEludmFsaWRJbnRlcnZhbEVycm9yID0gLyojX19QVVJFX18qL2Z1bmN0aW9uIChfTHV4b25FcnJvcjIpIHsKICAgICAgX2luaGVyaXRzTG9vc2UoSW52YWxpZEludGVydmFsRXJyb3IsIF9MdXhvbkVycm9yMik7CgogICAgICBmdW5jdGlvbiBJbnZhbGlkSW50ZXJ2YWxFcnJvcihyZWFzb24pIHsKICAgICAgICByZXR1cm4gX0x1eG9uRXJyb3IyLmNhbGwodGhpcywgIkludmFsaWQgSW50ZXJ2YWw6ICIgKyByZWFzb24udG9NZXNzYWdlKCkpIHx8IHRoaXM7CiAgICAgIH0KCiAgICAgIHJldHVybiBJbnZhbGlkSW50ZXJ2YWxFcnJvcjsKICAgIH0oTHV4b25FcnJvcik7CiAgICAvKioKICAgICAqIEBwcml2YXRlCiAgICAgKi8KCiAgICB2YXIgSW52YWxpZER1cmF0aW9uRXJyb3IgPSAvKiNfX1BVUkVfXyovZnVuY3Rpb24gKF9MdXhvbkVycm9yMykgewogICAgICBfaW5oZXJpdHNMb29zZShJbnZhbGlkRHVyYXRpb25FcnJvciwgX0x1eG9uRXJyb3IzKTsKCiAgICAgIGZ1bmN0aW9uIEludmFsaWREdXJhdGlvbkVycm9yKHJlYXNvbikgewogICAgICAgIHJldHVybiBfTHV4b25FcnJvcjMuY2FsbCh0aGlzLCAiSW52YWxpZCBEdXJhdGlvbjogIiArIHJlYXNvbi50b01lc3NhZ2UoKSkgfHwgdGhpczsKICAgICAgfQoKICAgICAgcmV0dXJuIEludmFsaWREdXJhdGlvbkVycm9yOwogICAgfShMdXhvbkVycm9yKTsKICAgIC8qKgogICAgICogQHByaXZhdGUKICAgICAqLwoKICAgIHZhciBDb25mbGljdGluZ1NwZWNpZmljYXRpb25FcnJvciA9IC8qI19fUFVSRV9fKi9mdW5jdGlvbiAoX0x1eG9uRXJyb3I0KSB7CiAgICAgIF9pbmhlcml0c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JuIEludmFsaWRBcmd1bWVudEVycm9yOwogICAgfShMdXhvbkVycm9yKTsKICAgIC8qKgogICAgICogQHByaXZhdGUKICAgICAqLwoKICAgIHZhciBab25lSXNBYnN0cmFjdEVycm9yID0gLyojX19QVVJFX18qL2Z1bmN0aW9uIChfTHV4b25FcnJvcjcpIHsKICAgICAgX2luaGVyaXRzTG9vc2UoWm9uZUlzQWJzdHJhY3RFcnJvciwgX0x1eG9uRXJyb3I3KTsKCiAgICAgIGZ1bmN0aW9uIFpvbmVJc0Fic3RyYWN0RXJyb3IoKSB7CiAgICAgICAgcmV0dXJuIF9MdXhvbkVycm9yNy5jYWxsKHRoaXMsICJab25lIGlzIGFuIGFic3RyYWN0IGNsYXNzIikgfHwgdGhpczsKICAgICAgfQoKICAgICAgcmV0dXJuIFpvbmVJc0Fic3RyYWN0RXJyb3I7CiAgICB9KEx1eG9uRXJyb3IpOwoKICAgIC8qKgogICAgICogQHByaXZhdGUKICAgICAqLwogICAgdmFyIG4gPSAibnVtZXJpYyIsCiAgICAgICAgcyA9ICJzaG9ydCIsCiAgICAgICAgbCA9ICJsb25nIjsKICAgIHZhciBEQVRFX1NIT1JUID0gewogICAgICB5ZWFyOiBuLAogICAgICBtb250aDogbiwKICAgICAgZGF5OiBuCiAgICB9OwogICAgdmFyIERBVEVfTUVEID0gewogICAgICB5ZWFyOiBuLAogICAgICBtb250aDogcywKICAgICAgZGF5OiBuCiAgICB9OwogICAgdmFyIERBVEVfTUVEX1dJVEhfV0VFS0RBWSA9IHsKICAgICAgeWVhcjogbiwKICAgICAgbW9udGg6IHMsCiAgICAgIGRheTogbiwKICAgICAgd2Vla2RheTogcwogICAgfTsKICAgIHZhciBEQVRFX0ZVTEwgPSB7CiAgICAgIHllYXI6IG4sCiAgICAgIG1vbnRoOiBsLAogICAgICBkYXk6IG4KICAgIH07CiAgICB2YXIgREFURV9IVUdFID0gewogICAgICB5ZWFyOiBuLAogICAgICBtb250aDogbCwKICAgICAgZGF5OiBuLAogICAgICB3ZWVrZGF5OiBsCiAgICB9OwogICAgdmFyIFRJTUVfU0lNUExFID0gewogICAgICBob3VyOiBuLAogICAgICBtaW51dGU6IG4KICAgIH07CiAgICB2YXIgVElNRV9XSVRIX1NFQ09ORFMgPSB7CiAgICAgIGhvdXI6IG4sCiAgICAgIG1pbnV0ZTogbiwKICAgICAgc2Vjb25kOiBuCiAgICB9OwogICAgdmFyIFRJTUVfV0lUSF9TSE9SVF9PRkZTRVQgPSB7CiAgICAgIGhvdXI6IG4sCiAgICAgIG1pbnV0ZTogbiwKICAgICAgc2Vjb25kOiBuLAogICAgICB0aW1lWm9uZU5hbWU6IHMKICAgIH07CiAgICB2YXIgVElNRV9XSVRIX0xPTkdfT0ZGU0VUID0gewogICAgICBob3VyOiBuLAogICAgICBtaW51dGU6IG4sCiAgICAgIHNlY29uZDogbiwKICAgICAgdGltZVpvbmVOYW1lOiBsCiAgICB9OwogICAgdmFyIFRJTUVfMjRfU0lNUExFID0gewogICAgICBob3VyOiBuLAogICAgICBtaW51dGU6IG4sCiAgICAgIGhvdXJDeWNsZTogImgyMyIKICAgIH07CiAgICB2YXIgVElNRV8yNF9XSVRIX1NFQ09ORFMgPSB7CiAgICAgIGhvdXI6IG4sCiAgICAgIG1pbnV0ZTogbiwKICAgICAgc2Vjb25kOiBuLAogICAgICBob3VyQ3ljbGU6ICJoMjMiCiAgICB9OwogICAgdmFyIFRJTUVfMjRfV0lUSF9TSE9SVF9PRkZTRVQgPSB7CiAgICAgIGhvdXI6IG4sCiAgICAgIG1pbnV0ZTogbiwKICAgICAgc2Vjb25kOiBuLAogICAgICBob3VyQ3ljbGU6ICJoMjMiLAogICAgICB0aW1lWm9uZU5hbWU6IHMKICAgIH07CiAgICB2YXIgVElNRV8yNF9XSVRIX0xPTkdfT0ZGU0VUID0gewogICAgICBob3VyOiBuLAogICAgICBtaW51dGU6IG4sCiAgICAgIHNlY29uZDogbiwKICAgICAgaG91ckN5Y2xlOiAiaDIzIiwKICAgICAgdGltZVpvbmVOYW1lOiBsCiAgICB9OwogICAgdmFyIERBVEVUSU1FX1NIT1JUID0gewogICAgICB5ZWFyOiBuLAogICAgICBtb250aDogbiwKICAgICAgZGF5OiBuLAogICAgICBob3VyOiBuLAogICAgICBtaW51dGU6IG4KICAgIH07CiAgICB2YXIgREFURVRJTUVfU0hPUlRfV0lUSF9TRUNPTkRTID0gewogICAgICB5ZWFyOiBuLAogICAgICBtb250aDogbiwKICAgICAgZGF5OiBuLAogICAgICBob3VyOiBuLAogICAgICBtaW51dGU6IG4sCiAgICAgIHNlY29uZDogbgogICAgfTsKICAgIHZhciBEQVRFVElNRV9NRUQgPSB7CiAgICAgIHllYXI6IG4sCiAgICAgIG1vbnRoOiBzLAogICAgICBkYXk6IG4sCiAgICAgIGhvdXI6IG4sCiAgICAgIG1pbnV0ZTogbgogICAgfTsKICAgIHZhciBEQVRFVElNRV9NRURfV0lUSF9TRUNPTkRTID0gewogICAgICB5ZWFyOiBuLAogICAgICBtb250aDogcywKICAgICAgZGF5OiBuLAogICAgICBob3VyOiBuLAogICAgICBtaW51dGU6IG4sCiAgICAgIHNlY29uZDogbgogICAgfTsKICAgIHZhciBEQVRFVElNRV9NRURfV0lUSF9XRUVLREFZID0gewogICAgICB5ZWFyOiBuLAogICAgICBtb250aDogcywKICAgICAgZGF5OiBuLAogICAgICB3ZWVrZGF5OiBzLAogICAgICBob3VyOiBuLAogICAgICBtaW51dGU6IG4KICAgIH07CiAgICB2YXIgREFURVRJTUVfRlVMTCA9IHsKICAgICAgeWVhcjogbiwKICAgICAgbW9udGg6IGwsCiAgICAgIGRheTogbiwKICAgICAgaG91cjogbiwKICAgICAgbWludXRlOiBuLAogICAgICB0aW1lWm9uZU5hbWU6IHMKICAgIH07CiAgICB2YXIgREFURVRJTUVfRlVMTF9XSVRIX1NFQ09ORFMgPSB7CiAgICAgIHllYXI6IG4sCiAgICAgIG1vbnRoOiBsLAogICAgICBkYXk6IG4sCiAgICAgIGhvdXI6IG4sCiAgICAgIG1pbnV0ZTogbiwKICAgICAgc2Vjb25kOiBuLAogICAgICB0aW1lWm9uZU5hbWU6IHMKICAgIH07CiAgICB2YXIgREFURVRJTUVfSFVHRSA9IHsKICAgICAgeWVhcjogbiwKICAgICAgbW9udGg6IGwsCiAgICAgIGRheTogbiwKICAgICAgd2Vla2RheTogbCwKICAgICAgaG91cjogbiwKICAgICAgbWludXRlOiBuLAogICAgICB0aW1lWm9uZU5hbWU6IGwKICAgIH07CiAgICB2YXIgREFURVRJTUVfSFVHRV9XSVRIX1NFQ09ORFMgPSB7CiAgICAgIHllYXI6IG4sCiAgICAgIG1vbnRoOiBsLAogICAgICBkYXk6IG4sCiAgICAgIHdlZWtkYXk6IGwsCiAgICAgIGhvdXI6IG4sCiAgICAgIG1pbnV0ZTogbiwKICAgICAgc2Vjb25kOiBuLAogICAgICB0aW1lWm9uZU5hbWU6IGwKICAgIH07CgogICAgLyoqCiAgICAgKiBAcHJpdmF0ZQogICAgICovCiAgICAvLyBUWVBFUwoKICAgIGZ1bmN0aW9uIGlzVW5kZWZpbmVkKG8pIHsKICAgICAgcmV0dXJuIHR5cGVvZiBvID09PSAidW5kZWZpbmVkIjsKICAgIH0KICAgIGZ1bmN0aW9uIGlzTnVtYmVyKG8pIHsKICAgICAgcmV0dXJuIHR5cGVvZiBvID09PSAibnVtYmVyIjsKICAgIH0KICAgIGZ1bmN0aW9uIGlzSW50ZWdlcihvKSB7CiAgICAgIHJldHVybiB0eXBlb2YgbyA9PT0gIm51bWJlciIgJiYgbyAlIDEgPT09IDA7CiAgICB9CiAgICBmdW5jdGlvbiBpc1N0cmluZyhvKSB7CiAgICAgIHJldHVybiB0eXBlb2YgbyA9PT0gInN0cmluZyI7CiAgICB9CiAgICBmdW5jdGlvbiBpc0RhdGUobykgewogICAgICByZXR1cm4gT2JqZWN0LnByb3RvdHlwZS50b1N0cmluZy5jYWxsKG8pID09PSAiW29iamVjdCBEYXRlXSI7CiAgICB9IC8vIENBUEFCSUxJVElFUwoKICAgIGZ1bmN0aW9uIGhhc1JlbGF0aXZlKCkgewogICAgICB0cnkgewogICAgICAgIHJldHVybiB0eXBlb2YgSW50bCAhPT0gInVuZGVmaW5lZCIgJiYgISFJbnRsLlJlbGF0aXZlVGltZUZvcm1hdDsKICAgICAgfSBjYXRjaCAoZSkgewogICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgfQogICAgfSAvLyBPQkpFQ1RTIEFORCBBUlJBWVMKCiAgICBmdW5jdGlvbiBtYXliZUFycmF5KHRoaW5nKSB7CiAgICAgIHJldHVybiBBcnJheS5pc0FycmF5KHRoaW5nKSA/IHRoaW5nIDogW3RoaW5nXTsKICAgIH0KICAgIGZ1bmN0aW9uIGJlc3RCeShhcnIsIGJ5LCBjb21wYXJlKSB7CiAgICAgIGlmIChhcnIubGVuZ3RoID09PSAwKSB7CiAgICAgICAgcmV0dXJuIHVuZGVmaW5lZDsKICAgICAgfQoKICAgICAgcmV0dXJuIGFyci5yZWR1Y2UoZnVuY3Rpb24gKGJlc3QsIG5leHQpIHsKICAgICAgICB2YXIgcGFpciA9IFtieShuZXh0KSwgbmV4dF07CgogICAgICAgIGlmICghYmVzdCkgewogICAgICAgICAgcmV0dXJuIHBhaXI7CiAgICAgICAgfSBlbHNlIGlmIChjb21wYXJlKGJlc3RbMF0sIHBhaXJbMF0pID09PSBiZXN0WzBdKSB7CiAgICAgICAgICByZXR1cm4gYmVzdDsKICAgICAgICB9IGVsc2UgewogICAgICAgICAgcmV0dXJuIHBhaXI7CiAgICAgICAgfQogICAgICB9LCBudWxsKVsxXTsKICAgIH0KICAgIGZ1bmN0aW9uIHBpY2sob2JqLCBrZXlzKSB7CiAgICAgIHJldHVybiBrZXlzLnJlZHVjZShmdW5jdGlvbiAoYSwgaykgewogICAgICAgIGFba10gPSBvYmpba107CiAgICAgICAgcmV0dXJuIGE7CiAgICAgIH0sIHt9KTsKICAgIH0KICAgIGZ1bmN0aW9uIGhhc093blByb3BlcnR5KG9iaiwgcHJvcCk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gcmV0dXJuICtkOwogICAgfQogICAgZnVuY3Rpb24gd2Vla3NJbldlZWtZZWFyKHdlZWtZZWFyKSB7CiAgICAgIHZhciBwMSA9ICh3ZWVrWWVhciArIE1hdGguZmxvb3Iod2Vla1llYXIgLyA0KSAtIE1hdGguZmxvb3Iod2Vla1llYXIgLyAxMDApICsgTWF0aC5mbG9vcih3ZWVrWWVhciAvIDQwMCkpICUgNywKICAgICAgICAgIGxhc3QgPSB3ZWVrWWVhciAtIDEsCiAgICAgICAgICBwMiA9IChsYXN0ICsgTWF0aC5mbG9vcihsYXN0IC8gNCkgLSBNYXRoLmZsb29yKGxhc3QgLyAxMDApICsgTWF0aC5mbG9vcihsYXN0IC8gNDAwKSkgJSA3OwogICAgICByZXR1cm4gcDEgPT09IDQgfHwgcDIgPT09IDMgPyA1MyA6IDUyOwogICAgfQogICAgZnVuY3Rpb24gdW50cnVuY2F0ZVllYXIoeWVhcikgewogICAgICBpZiAoeWVhciA+IDk5KSB7CiAgICAgICAgcmV0dXJuIHllYXI7CiAgICAgIH0gZWxzZSByZXR1cm4geWVhciA+IDYwID8gMTkwMCArIHllYXIgOiAyMDAwICsgeWVhcjsKICAgIH0gLy8gUEFSU0lORwoKICAgIGZ1bmN0aW9uIHBhcnNlWm9uZUluZm8odHMsIG9mZnNldEZvcm1hdCwgbG9jYWxlLCB0aW1lWm9uZSkgewogICAgICBpZiAodGltZVpvbmUgPT09IHZvaWQgMCkgewogICAgICAgIHRpbWVab25lID0gbnVsbDsKICAgICAgfQoKICAgICAgdmFyIGRhdGUgPSBuZXcgRGF0ZSh0cyksCiAgICAgICAgICBpbnRsT3B0cyA9IHsKICAgICAgICBob3VyQ3ljbGU6ICJoMjMiLAogICAgICAgIHllYXI6ICJudW1lcmljIiwKICAgICAgICBtb250aDogIjItZGlnaXQiLAogICAgICAgIGRheTogIjItZGlnaXQiLAogICAgICAgIGhvdXI6ICIyLWRpZ2l0IiwKICAgICAgICBtaW51dGU6ICIyLWRpZ2l0Ig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dWciLCAiU2VwIiwgIk9jdCIsICJOb3YiLCAiRGVjIl07CiAgICB2YXIgbW9udGhzTmFycm93ID0gWyJKIiwgIkYiLCAiTSIsICJBIiwgIk0iLCAiSiIsICJKIiwgIkEiLCAiUyIsICJPIiwgIk4iLCAiRCJdOwogICAgZnVuY3Rpb24gbW9udGhzKGxlbmd0aCkgewogICAgICBzd2l0Y2ggKGxlbmd0aCkgewogICAgICAgIGNhc2UgIm5hcnJvdyI6CiAgICAgICAgICByZXR1cm4gW10uY29uY2F0KG1vbnRoc05hcnJvdyk7CgogICAgICAgIGNhc2UgInNob3J0IjoKICAgICAgICAgIHJldHVybiBbXS5jb25jYXQobW9udGhzU2hvcnQpOwoKICAgICAgICBjYXNlICJsb25nIjoKICAgICAgICAgIHJldHVybiBbXS5jb25jYXQobW9udGhzTG9uZyk7CgogICAgICAgIGNhc2UgIm51bWVyaWMiOgogICAgICAgICAgcmV0dXJuIFsiMSIsICIyIiwgIjMiLCAiNCIsICI1IiwgIjYiLCAiNyIsICI4IiwgIjkiLCAiMTAiLCAiMTEiLCAiMTIiXTsKCiAgICAgICAgY2FzZSAiMi1kaWdpdCI6CiAgICAgICAgICByZXR1cm4gWyIwMSIsICIwMiIsICIwMyIsICIwNCIsICIwNSIsICIwNiIsICIwNyIsICIwOCIsICIwOSIsICIxMCIsICIxMSIsICIxMiJdOwoKICAgICAgICBkZWZhdWx0OgogICAgICAgICAgcmV0dXJuIG51bGw7CiAgICAgIH0KICAgIH0KICAgIHZhciB3ZWVrZGF5c0xvbmcgPSBbIk1vbmRheSIsICJUdWVzZGF5IiwgIldlZG5lc2RheSIsICJUaHVyc2RheSIsICJGcmlkYXkiLCAiU2F0dXJkYXkiLCAiU3VuZGF5Il07CiAgICB2YXIgd2Vla2RheXNTaG9ydCA9IFsiTW9uIiwgIlR1ZSIsICJXZWQiLCAiVGh1IiwgIkZyaSIsICJTYXQiLCAiU3VuIl07CiAgICB2YXIgd2Vla2RheXNOYXJyb3cgPSBbIk0iLCAiVCIsICJXIiwgIlQiLCAiRiIsICJTIiwgIlMiXTsKICAgIGZ1bmN0aW9uIHdlZWtkYXlzKGxlbmd0aCkgewogICAgICBzd2l0Y2ggKGxlbmd0aCkgewogICAgICAgIGNhc2UgIm5hcnJvdyI6CiAgICAgICAgICByZXR1cm4gW10uY29uY2F0KHdlZWtkYXlzTmFycm93KTsKCiAgICAgICAgY2FzZSAic2hvcnQiOgogICAgICAgICAgcmV0dXJuIFtdLmNvbmNhdCh3ZWVrZGF5c1Nob3J0KTsKCiAgICAgICAgY2FzZSAibG9uZyI6CiAgICAgICAgICByZXR1cm4gW10uY29uY2F0KHdlZWtkYXlzTG9uZyk7CgogICAgICAgIGNhc2UgIm51bWVyaWMiOgogICAgICAgICAgcmV0dXJuIFsiMSIsICIyIiwgIjMiLCAiNCIsICI1IiwgIjYiLCAiNyJdOwoKICAgICAgICBkZWZhdWx0OgogICAgICAgICAgcmV0dXJuIG51bGw7CiAgICAgIH0KICAgIH0KICAgIHZhciBtZXJpZGllbXMgPSBbIkFNIiwgIlBNIl07CiAgICB2YXIgZXJhc0xvbmcgPSBbIkJlZm9yZSBDaHJpc3QiLCAiQW5ubyBEb21pbmkiXTsKICAgIHZhciBlcmFzU2hvcnQgPSBbIkJDIiwgIkFEIl07CiAgICB2YXIgZXJhc05hcnJvdyA9IFsiQiIsICJBIl07CiAgICBmdW5jdGlvbiBlcmFzKGxlbmd0aCkgewogICAgICBzd2l0Y2ggKGxlbmd0aCkgewogICAgICAgIGNhc2UgIm5hcnJvdyI6CiAgICAgICAgICByZXR1cm4gW10uY29uY2F0KGVyYXNOYXJyb3cpOwoKICAgICAgICBjYXNlICJzaG9ydCI6CiAgICAgICAgICByZXR1cm4gW10uY29uY2F0KGVyYXNTaG9ydCk7CgogICAgICAgIGNhc2UgImxvbmciOgogICAgICAgICAgcmV0dXJuIFtdLmNvbmNhdChlcmFzTG9uZyk7CgogICAgICAgIGRlZmF1bHQ6CiAgICAgICAgICByZXR1cm4gbnVsbDsKICAgICAgfQogICAgfQogICAgZnVuY3Rpb24gbWVyaWRpZW1Gb3JEYXRlVGltZShkdCkgewogICAgICByZXR1cm4gbWVyaWRpZW1zW2R0LmhvdXIgPCAxMiA/IDAgOiAxXTsKICAgIH0KICAgIGZ1bmN0aW9uIHdlZWtkYXlGb3JEYXRlVGltZShkdCwgbGVuZ3RoKSB7CiAgICAgIHJldHVybiB3ZWVrZGF5cyhsZW5ndGgpW2R0LndlZWtkYXkgLSAxXTsKICAgIH0KICAgIGZ1bmN0aW9uIG1vbnRoRm9yRGF0ZVRpbWUoZHQsIGxlbmd0aCkgewogICAgICByZXR1cm4gbW9udGhzKGxlbmd0aClbZHQubW9udGggLSAxXTsKICAgIH0KICAgIGZ1bmN0aW9uIGVyYUZvckRhdGVUaW1lKGR0LCBsZW5ndGgpIHsKICAgICAgcmV0dXJuIGVyYXMobGVuZ3RoKVtkdC55ZWFyIDwgMCA/IDAgOiAxXTsKICAgIH0KICAgIGZ1bmN0aW9uIGZvcm1hdFJlbGF0aXZlVGltZSh1bml0LCBjb3VudCwgbnVtZXJpYywgbmFycm93KSB7CiAgICAgIGlmIChudW1lcmljID09PSB2b2lkIDApIHsKICAgICAgICBudW1lcmljID0gImFsd2F5cyI7CiAgICAgIH0KCiAgICAgIGlmIChuYXJyb3cgPT09IHZvaWQgMCkgewogICAgICAgIG5hcnJvdyA9IGZhbHNlOwogICAgICB9CgogICAgICB2YXIgdW5pdHMgPSB7CiAgICAgICAgeWVhcnM6IFsieWVhciIsICJ5ci4iXSwKICAgICAgICBxdWFydGVyczogWyJxdWFydGVyIiwgInF0ci4iXSwKICAgICAgICBtb250aHM6IFsibW9udGgiLCAibW8uIl0sCiAgICAgICAgd2Vla3M6IFsid2VlayIsICJ3ay4iXSwKICAgICAgICBkYXlzOiBbImRheSIsICJkYXkiLCAiZGF5cyJdLAogICAgICAgIGhvdXJzOiBbImhvdXIiLCAiaHIuIl0sCiAgICAgICAgbWludXRlczogWyJtaW51dGUiLCAibWluLiJdLAogICAgICAgIHNlY29uZHM6IFsic2Vjb25kIiwgInNlYy4iXQogICAgICB9OwogICAgICB2YXIgbGFzdGFibGUgPSBbImhvdXJzIiwgIm1pbnV0ZXMiLCAic2Vjb25kcyJdLmluZGV4T2YodW5pdCkgPT09IC0xOwoKICAgICAgaWYgKG51bWVyaWMgPT09ICJhdXRvIiAmJiBsYXN0YWJsZSkgewogICAgICAgIHZhciBpc0RheSA9IHVuaXQgPT09ICJkYXlzIjsKCiAgICAgICAgc3dpdGNoIChjb3VudCkgewogICAgICAgICAgY2FzZSAxOgogICAgICAgICAgICByZXR1cm4gaXNEYXkgPyAidG9tb3Jyb3ciIDogIm5leHQgIiArIHVuaXRzW3VuaXRdWzBdOwoKICAgICAgICAgIGNhc2UgLTE6CiAgICAgICAgICAgIHJldHVybiBpc0RheSA/ICJ5ZXN0ZXJkYXkiIDogImxhc3QgIiArIHVuaXRzW3VuaXRdWzBdOwoKICAgICAgICAgIGNhc2UgMDoKICAgICAgICAgICAgcmV0dXJuIGlzRGF5ID8gInRvZGF5IiA6ICJ0aGlzICIgKyB1bml0c1t1bml0XVswXTsKCiAgICAgICAgfQogICAgICB9CgogICAgICB2YXIgaXNJblBhc3QgPSBPYmplY3QuaXMoY291bnQsIC0wKSB8fCBjb3VudCA8IDAsCiAgICAgICAgICBmbXRWYWx1ZSA9IE1hdGguYWJzKGNvdW50KSwKICAgICAgICAgIHNpbmd1bGFyID0gZm10VmFsdWUgPT09IDEsCiAgICAgICAgICBsaWxVbml0cyA9IHVuaXRzW3VuaXRdLAogICAgICAgICAgZm10VW5pdCA9IG5hcnJvdyA/IHNpbmd1bGFyID8gbGlsVW5pdHNbMV0gOiBsaWxVbml0c1syXSB8fCBsaWxVbml0c1sxXSA6IHNpbmd1bGFyID8gdW5pdHNbdW5pdF1bMF0gOiB1bml0OwogICAgICByZXR1cm4gaXNJblBhc3QgPyBmbXRWYWx1ZSArICIgIiArIGZtdFVuaXQgKyAiIGFnbyI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AgZmZmOiBEQVRFVElNRV9GVUxMLAogICAgICBmZmZmOiBEQVRFVElNRV9IVUdFLAogICAgICBGOiBEQVRFVElNRV9TSE9SVF9XSVRIX1NFQ09ORFMsCiAgICAgIEZGOiBEQVRFVElNRV9NRURfV0lUSF9TRUNPTkRTLAogICAgICBGRkY6IERBVEVUSU1FX0ZVTExfV0lUSF9TRUNPTkRTLAogICAgICBGRkZGOiBEQVRFVElNRV9IVUdFX1dJVEhfU0VDT05EUwogICAgfTsKICAgIC8qKgogICAgICogQHByaXZhdGUKICAgICAqLwoKICAgIHZhciBGb3JtYXR0ZXIgPSAvKiNfX1BVUkVfXyovZnVuY3Rpb24gKCkgewogICAgICBGb3JtYXR0ZXIuY3JlYXRlID0gZnVuY3Rpb24gY3JlYXRlKGxvY2FsZSwgb3B0cykgewogICAgICAgIGlmIChvcHRzID09PSB2b2lkIDApIHsKICAgICAgICAgIG9wdHMgPSB7fTsKICAgICAgICB9CgogICAgICAgIHJldHVybiBuZXcgRm9ybWF0dGVyKGxvY2FsZSwgb3B0cyk7CiAgICAgIH07CgogICAgICBGb3JtYXR0ZXIucGFyc2VGb3JtYXQgPSBmdW5jdGlvbiBwYXJzZUZvcm1hdChmbXQpIHsKICAgICAgICB2YXIgY3VycmVudCA9IG51bGwsCiAgICAgICAgICAgIGN1cnJlbnRGdWxsID0gIiIsCiAgICAgICAgICAgIGJyYWNrZXRlZCA9IGZhbHNlOwogICAgICAgIHZhciBzcGxpdHMgPSBbXTsKCiAgICAgICAgZm9yICh2YXIgaSA9IDA7IGkgPCBmbXQubGVuZ3RoOyBpKyspIHsKICAgICAgICAgIHZhciBjID0gZm10LmNoYXJBdChpKTsKCiAgICAgICAgICBpZiAoYyA9PT0gIiciKSB7CiAgICAgICAgICAgIGlmIChjdXJyZW50RnVsbC5sZW5ndGggPiAwKSB7CiAgICAgICAgICAgICAgc3BsaXRzLnB1c2goewogICAgICAgICAgICAgICAgbGl0ZXJhbDogYnJhY2tldGVkLAogICAgICAgICAgICAgICAgdmFsOiBjdXJyZW50RnVsbAogICAgICAgICAgICAgIH0pOwogICAgICAgICAgICB9CgogICAgICAgICAgICBjdXJyZW50ID0gbnVsbDsKICAgICAgICAgICAgY3VycmVudEZ1bGwgPSAiIjsKICAgICAgICAgICAgYnJhY2tldGVkID0gIWJyYWNrZXRlZDsKICAgICAgICAgIH0gZWxzZSBpZiAoYnJhY2tldGVkKSB7CiAgICAgICAgICAgIGN1cnJlbnRGdWxsICs9IGM7CiAgICAgICAgICB9IGVsc2UgaWYgKGMgPT09IGN1cnJlbnQpIHsKICAgICAgICAgICAgY3VycmVudEZ1bGwgKz0gYzsKICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgIGlmIChjdXJyZW50RnVsbC5sZW5ndGggPiAwKSB7CiAgICAgICAgICAgICAgc3BsaXRzLnB1c2goewogICAgICAgICAgICAgICAgbGl0ZXJhbDogZmFsc2UsCiAgICAgICAgICAgICAgICB2YWw6IGN1cnJlbnRGdWxsCiAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIH0KCiAgICAgICAgICAgIGN1cnJlbnRGdWxsID0gYzsKICAgICAgICAgICAgY3VycmVudCA9IGM7CiAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICBpZiAoY3VycmVudEZ1bGwubGVuZ3RoID4gMCkgewogICAgICAgICAgc3BsaXRzLnB1c2goewogICAgICAgICAgICBsaXRlcmFsOiBicmFja2V0ZWQsCiAgICAgICAgICAgIHZhbDogY3VycmVudEZ1bGwKICAgICAgICAgIH0pOwogICAgICAgIH0KCiAgICAgICAgcmV0dXJuIHNwbGl0czsKICAgICAgfTsKCiAgICAgIEZvcm1hdHRlci5tYWNyb1Rva2VuVG9Gb3JtYXRPcHRzID0gZnVuY3Rpb24gbWFjcm9Ub2tlblRvRm9ybWF0T3B0cyh0b2tlbikgewogICAgICAgIHJldHVybiBfbWFjcm9Ub2tlblRvRm9ybWF0T3B0c1t0b2tlbl07CiAgICAgIH07CgogICAgICBm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hdGVUaW1lRnJvbVN0cmluZyA9IGZ1bmN0aW9uIGZvcm1hdERhdGVUaW1lRnJvbVN0cmluZyhkdCwgZm10KSB7CiAgICAgICAgdmFyIF90aGlzID0gdGhpczsKCiAgICAgICAgdmFyIGtub3duRW5nbGlzaCA9IHRoaXMubG9jLmxpc3RpbmdNb2RlKCkgPT09ICJlbiIsCiAgICAgICAgICAgIHVzZURhdGVUaW1lRm9ybWF0dGVyID0gdGhpcy5sb2Mub3V0cHV0Q2FsZW5kYXIgJiYgdGhpcy5sb2Mub3V0cHV0Q2FsZW5kYXIgIT09ICJncmVnb3J5IiwKICAgICAgICAgICAgc3RyaW5nID0gZnVuY3Rpb24gc3RyaW5nKG9wdHMsIGV4dHJhY3QpIHsKICAgICAgICAgIHJldHVybiBfdGhpcy5sb2MuZXh0cmFjdChkdCwgb3B0cywgZXh0cmFjdCk7CiAgICAgICAgfSwKICAgICAgICAgICAgZm9ybWF0T2Zmc2V0ID0gZnVuY3Rpb24gZm9ybWF0T2Zmc2V0KG9wdHMpIHsKICAgICAgICAgIGlmIChkdC5pc09mZnNldEZpeGVkICYmIGR0Lm9mZnNldCA9PT0gMCAmJiBvcHRzLmFsbG93WikgewogICAgICAgICAgICByZXR1cm4gIloiOwogICAgICAgICAgfQoKICAgICAgICAgIHJldHVybiBkdC5pc1ZhbGlkID8gZHQuem9uZS5mb3JtYXRPZmZzZXQoZHQudHMsIG9wdHMuZm9ybWF0KSA6ICIiOwogICAgICAgIH0sCiAgICAgICAgICAgIG1lcmlkaWVtID0gZnVuY3Rpb24gbWVyaWRpZW0oKSB7CiAgICAgICAgICByZXR1cm4ga25vd25FbmdsaXNoID8gbWVyaWRpZW1Gb3JEYXRlVGltZShkdCkgOiBzdHJpbmcoewogICAgICAgICAgICBob3VyOiAibnVtZXJpYyIsCiAgICAgICAgICAgIGhvdXJDeWNsZTogImgxMiIKICAgICAgICAgIH0sICJkYXlwZXJpb2QiKTsKICAgICAgICB9LAogICAgICAgICAgICBtb250aCA9IGZ1bmN0aW9uIG1vbnRoKGxlbmd0aCwgc3RhbmRhbG9uZSkgewogICAgICAgICAgcmV0dXJuIGtub3duRW5nbGlzaCA/IG1vbnRoRm9yRGF0ZVRpbWUoZHQsIGxlbmd0aCkgOiBzdHJpbmcoc3RhbmRhbG9uZSA/IHsKICAgICAgICAgICAgbW9udGg6IGxlbmd0aAogICAgICAgICAgfSA6IHsKICAgICAgICAgICAgbW9udGg6IGxlbmd0aCwKICAgICAgICAgICAgZGF5OiAibnVtZXJpYyIKICAgICAgICAgIH0sICJtb250aCIpOwogICAgICAgIH0sCiAgICAgICAgICAgIHdlZWtkYXkgPSBmdW5jdGlvbiB3ZWVrZGF5KGxlbmd0aCwgc3RhbmRhbG9uZSkgewogICAgICAgICAgcmV0dXJuIGtub3duRW5nbGlzaCA/IHdlZWtkYXlGb3JEYXRlVGltZShkdCwgbGVuZ3RoKSA6IHN0cmluZyhzdGFuZGFsb25lID8gewogICAgICAgICAgICB3ZWVrZGF5OiBsZW5ndGgKICAgICAgICAgIH0gOiB7CiAgICAgICAgICAgIHdlZWtkYXk6IGxlbmd0aCwKICAgICAgICAgICAgbW9udGg6ICJsb25nIiwKICAgICAgICAgICAgZGF5OiAibnVtZXJpYyIKICAgICAgICAgIH0sICJ3ZWVrZGF5Iik7CiAgICAgICAgfSwKICAgICAgICAgICAgbWF5YmVNYWNybyA9IGZ1bmN0aW9uIG1heWJlTWFjcm8odG9rZW4pIHsKICAgICAgICAgIHZhciBmb3JtYXRPcHRzID0gRm9ybWF0dGVyLm1hY3JvVG9rZW5Ub0Zvcm1hdE9wdHModG9rZW4pOwoKICAgICAgICAgIGlmIChmb3JtYXRPcHRzKSB7CiAgICAgICAgICAgIHJldHVybiBfdGhpcy5mb3JtYXRXaXRoU3lzdGVtRGVmYXVsdChkdCwgZm9ybWF0T3B0cyk7CiAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICByZXR1cm4gdG9rZW47CiAgICAgICAgICB9CiAgICAgICAgfSwKICAgICAgICAgICAgZXJhID0gZnVuY3Rpb24gZXJhKGxlbmd0aCkgewogICAgICAgICAgcmV0dXJuIGtub3duRW5nbGlzaCA/IGVyYUZvckRhdGVUaW1lKGR0LCBsZW5ndGgpIDogc3RyaW5nKHsKICAgICAgICAgICAgZXJhOiBsZW5ndGgKICAgICAgICAgIH0sICJlcmEiKTsKICAgICAgICB9LAogICAgICAgICAgICB0b2tlblRvU3RyaW5nID0gZnVuY3Rpb24gdG9rZW5Ub1N0cmluZyh0b2tlbikgewogICAgICAgICAgLy8gV2hlcmUgcG9zc2libGU6IGh0dHA6Ly9jbGRyLnVuaWNvZGUub3JnL3RyYW5zbGF0aW9uL2RhdGUtdGltZS0xL2RhdGUtdGltZSNUT0MtU3RhbmRhbG9uZS12cy4tRm9ybWF0LVN0eWxlcwogICAgICAgICAgc3dpdGNoICh0b2tlbikgewogICAgICAgICAgICAvLyBtcwogICAgICAgICAgICBjYXNlICJTIjoKICAgICAgICAgICAgICByZXR1cm4gX3RoaXMubnVtKGR0Lm1pbGxpc2Vjb25kKTsKCiAgICAgICAgICAgIGNhc2UgInUiOiAvLyBmYWxscyB0aHJvdWdoCgogICAgICAgICAgICBjYXNlICJTU1MiOgogICAgICAgICAgICAgIHJldHVybiBfdGhpcy5udW0oZHQubWlsbGlzZWNvbmQsIDMpOwogICAgICAgICAgICAvLyBzZWNvbmRzCgogICAgICAgICAgICBjYXNlICJzIjoKICAgICAgICAgICAgICByZXR1cm4gX3RoaXMubnVtKGR0LnNlY29uZCk7CgogICAgICAgICAgICBjYXNlICJzcyI6CiAgICAgICAgICAgICAgcmV0dXJuIF90aGlzLm51bShkdC5zZWNvbmQsIDIpOwogICAgICAgICAgICAvLyBtaW51dGVzCgogICAgICAgICAgICBjYXNlICJtIjoKICAgICAgICAgICAgICByZXR1cm4gX3RoaXMubnVtKGR0Lm1pbnV0ZSk7CgogICAgICAgICAgICBjYXNlICJtbSI6CiAgICAgICAgICAgICAgcmV0dXJuIF90aGlzLm51bShkdC5taW51dGUsIDIpOwogICAgICAgICAgICAvLyBob3VycwoKICAgICAgICAgICAgY2FzZSAiaCI6CiAgICAgICAgICAgICAgcmV0dXJuIF90aGlzLm51bShkdC5ob3VyICUgMTIgPT09IDAgPyAxMiA6IGR0LmhvdXIgJSAxMik7CgogICAgICAgICAgICBjYXNlICJoaCI6CiAgICAgICAgICAgICAgcmV0dXJuIF90aGlzLm51bShkdC5ob3VyICUgMTIgPT09IDAgPyAxMiA6IGR0LmhvdXIgJSAxMiwgMik7CgogICAgICAgICAgICBjYXNlICJIIjoKICAgICAgICAgICAgICByZXR1cm4gX3RoaXMubnVtKGR0LmhvdXIpOwoKICAgICAgICAgICAgY2FzZSAiSEgiOgogICAgICAgICAgICAgIHJldHVybiBfdGhpcy5udW0oZHQuaG91ciwgMik7CiAgICAgICAgICAgIC8vIG9mZnNldAoKICAgICAgICAgICAgY2FzZSAiWiI6CiAgICAgICAgICAgICAgLy8gbGlrZSArNgogICAgICAgICAgICAgIHJldHVybiBmb3JtYXRPZmZzZXQoewogICAgICAgICAgICAgICAgZm9ybWF0OiAibmFycm93IiwKICAgICAgICAgICAgICAgIGFsbG93WjogX3RoaXMub3B0cy5hbGxvd1oKICAgICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIGNhc2UgIlpaIjoKICAgICAgICAgICAgICAvLyBsaWtlICswNjowMAogICAgICAgICAgICAgIHJldHVybiBmb3JtYXRPZmZzZXQoewogICAgICAgICAgICAgICAgZm9ybWF0OiAic2hvcnQiLAogICAgICAgICAgICAgICAgYWxsb3daOiBfdGhpcy5vcHRzLmFsbG93WgogICAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgY2FzZSAiWlpaIjoKICAgICAgICAgICAgICAvLyBsaWtlICswNjAwCiAgICAgICAgICAgICAgcmV0dXJuIGZvcm1hdE9mZnNldCh7CiAgICAgICAgICAgICAgICBmb3JtYXQ6ICJ0ZWNoaWUiLAogICAgICAgICAgICAgICAgYWxsb3daOiBfdGhpcy5vcHRzLmFsbG93WgogICAgICAgICAgICAgIH0pOwoKICAgICAgICAgICAgY2FzZSAiWlpaWiI6CiAgICAgICAgICAgICAgLy8gbGlrZSBFU1QKICAgICAgICAgICAgICByZXR1cm4gZHQuem9uZS5vZmZzZXROYW1lKGR0LnRzLCB7CiAgICAgICAgICAgICAgICBmb3JtYXQ6ICJzaG9ydCIsCiAgICAgICAgICAgICAgICBsb2NhbGU6IF90aGlzLmxvYy5sb2NhbGUKICAgICAgICAgICAgICB9KTsKCiAgICAgICAgICAgIGNhc2UgIlpaWlpaIjoKICAgICAgICAgICAgICAvLyBsaWtlIEVhc3Rlcm4gU3RhbmRhcmQgVGltZQogICAgICAgICAgICAgIHJldHVybiBkdC56b25lLm9mZnNldE5hbWUoZHQudHMsIHsKICAgICAgICAgICAgICAgIGZvcm1hdDogImxvbmciLAogICAgICAgICAgICAgICAgbG9jYWxlOiBfdGhpcy5sb2MubG9jYWxlCiAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgIC8vIHpvbmUKCiAgICAgICAgICAgIGNhc2UgInoiOgogICAgICAgICAgICAgIC8vIGxpa2UgQW1lcmljYS9OZXdfWW9yawogICAgICAgICAgICAgIHJldHVybiBkdC56b25lTmFtZTsKICAgICAgICAgICAgLy8gbWVyaWRpZW1zCgogICAgICAgICAgICBjYXNlICJhIjoKICAgICAgICAgICAgICByZXR1cm4gbWVyaWRpZW0oKTsKICAgICAgICAgICAgLy8gZGF0ZXMKCiAgICAgICAgICAgIGNhc2UgImQiOgogICAgICAgICAgICAgIHJldHVybiB1c2VEYXRlVGltZUZvcm1hdHRlciA/IHN0cmluZyh7CiAgICAgICAgICAgICAgICBkYXk6ICJudW1lcmljIgogICAgICAgICAgICAgIH0sICJkYXkiKSA6IF90aGlzLm51bShkdC5kYXkpOwoKICAgICAgICAgICAgY2FzZSAiZGQiOgogICAgICAgICAgICAgIHJldHVybiB1c2VEYXRlVGltZUZvcm1hdHRlciA/IHN0cmluZyh7CiAgICAgICAgICAgICAgICBkYXk6ICIyLWRpZ2l0IgogICAgICAgICAgICAgIH0sICJkYXkiKSA6IF90aGlzLm51bShkdC5kYXksIDIpOwogICAgICAgICAgICAvLyB3ZWVrZGF5cyAtIHN0YW5kYWxvbmUKCiAgICAgICAgICAgIGNhc2UgImMiOgogICAgICAgICAgICAgIC8vIGxpa2UgMQogICAgICAgICAgICAgIHJldHVybiBfdGhpcy5udW0oZHQud2Vla2RheSk7CgogICAgICAgICAgICBjYXNlICJjY2MiOgogICAgICAgICAgICAgIC8vIGxpa2UgJ1R1ZXMnCiAgICAgICAgICAgICAgcmV0dXJuIHdlZWtkYXkoInNob3J0IiwgdHJ1ZSk7CgogICAgICAgICAgICBjYXNlICJjY2NjIjoKICAgICAgICAgICAgICAvLyBsaWtlICdUdWVzZGF5JwogICAgICAgICAgICAgIHJldHVybiB3ZWVrZGF5KCJsb25nIiwgdHJ1ZSk7CgogICAgICAgICAgICBjYXNlICJjY2NjYyI6CiAgICAgICAgICAgICAgLy8gbGlrZSAnVCcKICAgICAgICAgICAgICByZXR1cm4gd2Vla2RheSgibmFycm93IiwgdHJ1ZSk7CiAgICAgICAgICAgIC8vIHdlZWtkYXlzIC0gZm9ybWF0CgogICAgICAgICAgICBjYXNlICJFIjoKICAgICAgICAgICAgICAvLyBsaWtlIDEKICAgICAgICAgICAgICByZXR1cm4gX3RoaXMubnVtKGR0LndlZWtkYXkpOwoKICAgICAgICAgICAgY2FzZSAiRUVFIjoKICAgICAgICAgICAgICAvLyBsaWtlICdUdWVzJwogICAgICAgICAgICAgIHJldHVybiB3ZWVrZGF5KCJzaG9ydCIsIGZhbHNlKTsKCiAgICAgICAgICAgIGNhc2UgIkVFRUUiOgogICAgICAgICAgICAgIC8vIGxpa2UgJ1R1ZXNkYXknCiAgICAgICAgICAgICAgcmV0dXJuIHdlZWtkYXkoImxvbmciLCBmYWxzZSk7CgogICAgICAgICAgICBjYXNlICJFRUVFRSI6CiAgICAgICAgICAgICAgLy8gbGlrZSAnVCcKICAgICAgICAgICAgICByZXR1cm4gd2Vla2RheSgibmFycm93IiwgZmFsc2UpOwogICAgICAgICAgICAvLyBtb250aHMgLSBzdGFuZGFsb25lCgogICAgICAgICAgICBjYXNlICJMIjoKICAgICAgICAgICAgICAvLyBsaWtlIDEKICAgICAgICAgICAgICByZXR1cm4gdXNlRGF0ZVRpbWVGb3JtYXR0ZXIgPyBzdHJpbmcoewogICAgICAgICAgICAgICAgbW9udGg6ICJudW1lcmljIiwKICAgICAgICAgICAgICAgIGRheTogIm51bWVyaWMiCiAgICAgICAgICAgICAgfSwgIm1vbnRoIikgOiBfdGhpcy5udW0oZHQubW9udGgpOwoKICAgICAgICAgICAgY2FzZSAiTEwiOgogICAgICAgICAgICAgIC8vIGxpa2UgMDEsIGRvZXNuJ3Qgc2VlbSB0byB3b3JrCiAgICAgICAgICAgICAgcmV0dXJuIHVzZURhdGVUaW1lRm9ybWF0dGVyID8gc3RyaW5nKHsKICAgICAgICAgICAgICAgIG1vbnRoOiAiMi1kaWdpdCIsCiAgICAgICAgICAgICAgICBkYXk6ICJudW1lcmljIgogICAgICAgICAgICAgIH0sICJtb250aCIpIDogX3RoaXMubnVtKGR0Lm1vbnRoLCAyKTsKCiAgICAgICAgICAgIGNhc2UgIkxMTCI6CiAgICAgICAgICAgICAgLy8gbGlrZSBKYW4KICAgICAgICAgICAgICByZXR1cm4gbW9udGgoInNob3J0IiwgdHJ1ZSk7CgogICAgICAgICAgICBjYXNlICJMTExMIjoKICAgICAgICAgICAgICAvLyBsaWtlIEphbnVhcnkKICAgICAgICAgICAgICByZXR1cm4gbW9udGgoImxvbmciLCB0cnVlKTsKCiAgICAgICAgICAgIGNhc2UgIkxMTExMIjoKICAgICAgICAgICAgICAvLyBsaWtlIEoKICAgICAgICAgICAgICByZXR1cm4gbW9udGgoIm5hcnJvdyIsIHRydWUpOwogICAgICAgICAgICAvLyBtb250aHMgLSBmb3JtYXQKCiAgICAgICAgICAgIGNhc2UgIk0iOgogICAgICAgICAgICAgIC8vIGxpa2UgMQogICAgICAgICAgICAgIHJldHVybiB1c2VEYXRlVGltZUZvcm1hdHRlciA/IHN0cmluZyh7CiAgICAgICAgICAgICAgICBtb250aDogIm51bWVyaWMiCiAgICAgICAgICAgICAgfSwgIm1vbnRoIikgOiBfdGhpcy5udW0oZHQubW9udGgpOwoKICAgICAgICAgICAgY2FzZSAiTU0iOgogICAgICAgICAgICAgIC8vIGxpa2UgMDEKICAgICAgICAgICAgICByZXR1cm4gdXNlRGF0ZVRpbWVGb3JtYXR0ZXIgPyBzdHJpbmcoewogICAgICAgICAgICAgICAgbW9udGg6ICIyLWRpZ2l0IgogICAgICAgICAgICAgIH0sICJtb250aCIpIDogX3RoaXMubnVtKGR0Lm1vbnRoLCAyKTsKCiAgICAgICAgICAgIGNhc2UgIk1NTSI6CiAgICAgICAgICAgICAgLy8gbGlrZSBKYW4KICAgICAgICAgICAgICByZXR1cm4gbW9udGgoInNob3J0IiwgZmFsc2UpOwoKICAgICAgICAgICAgY2FzZSAiTU1NTSI6CiAgICAgICAgICAgICAgLy8gbGlrZSBKYW51YXJ5CiAgICAgICAgICAgICAgcmV0dXJuIG1vbnRoKCJsb25nIiwgZmFsc2UpOwoKICAgICAgICAgICAgY2FzZSAiTU1NTU0iOgogICAgICAgICAgICAgIC8vIGxpa2UgSgogICAgICAgICAgICAgIHJldHVybiBtb250aCgibmFycm93IiwgZmFsc2UpOwogICAgICAgICAgICAvLyB5ZWFycwoKICAgICAgICAgICAgY2FzZSAieSI6CiAgICAgICAgICAgICAgLy8gbGlrZSAyMDE0CiAgICAgICAgICAgICAgcmV0dXJuIHVzZURhdGVUaW1lRm9ybWF0dGVyID8gc3RyaW5nKHsKICAgICAgICAgICAgICAgIHllYXI6ICJudW1lcmljIgogICAgICAgICAgICAgIH0sICJ5ZWFyIikgOiBfdGhpcy5udW0oZHQueWVhcik7CgogICAgICAgICAgICBjYXNlICJ5eSI6CiAgICAgICAgICAgICAgLy8gbGlrZSAxNAogICAgICAgICAgICAgIHJldHVybiB1c2VEYXRlVGltZUZvcm1hdHRlciA/IHN0cmluZyh7CiAgICAgICAgICAgICAgICB5ZWFyOiAiMi1kaWdpdCIKICAgICAgICAgICAgICB9LCAieWVhciIpIDogX3RoaXMubnVtKGR0LnllYXIudG9TdHJpbmcoKS5zbGljZSgtMiksIDIpOwoKICAgICAgICAgICAgY2FzZSAieXl5eSI6CiAgICAgICAgICAgICAgLy8gbGlrZSAwMDEyCiAgICAgICAgICAgICAgcmV0dXJuIHVzZURhdGVUaW1lRm9ybWF0dGVyID8gc3RyaW5nKHsKICAgICAgICAgICAgICAgIHllYXI6ICJudW1lcmljIgogICAgICAgICAgICAgIH0sICJ5ZWFyIikgOiBfdGhpcy5udW0oZHQueWVhciwgNCk7CgogICAgICAgICAgICBjYXNlICJ5eXl5eXkiOgogICAgICAgICAgICAgIC8vIGxpa2UgMDAwMDEyCiAgICAgICAgICAgICAgcmV0dXJuIHVzZURhdGVUaW1lRm9ybWF0dGVyID8gc3RyaW5nKHsKICAgICAgICAgICAgICAgIHllYXI6ICJudW1lcmljIgogICAgICAgICAgICAgIH0sICJ5ZWFyIikgOiBfdGhpcy5udW0oZHQueWVhciwgNik7CiAgICAgICAgICAgIC8vIGVyYXMKCiAgICAgICAgICAgIGNhc2UgIkciOgogICAgICAgICAgICAgIC8vIGxpa2UgQUQKICAgICAgICAgICAgICByZXR1cm4gZXJhKCJzaG9ydCIpOwoKICAgICAgICAgICAgY2FzZSAiR0ciOgogICAgICAgICAgICAgIC8vIGxpa2UgQW5ubyBEb21pbmkKICAgICAgICAgICAgICByZXR1cm4gZXJhKCJsb25nIik7CgogICAgICAgICAgICBjYXNlICJHR0dHRyI6CiAgICAgICAgICAgICAgcmV0dXJuIGVyYSgibmFycm93Iik7CgogICAgICAgICAgICBjYXNlICJrayI6CiAgICAgICAgICAgICAgcmV0dXJuIF90aGlzLm51bShkdC53ZWVrWWVhci50b1N0cmluZygpLnNsaWNlKC0yKSwgMik7CgogICAgICAgICAgICBjYXNlICJra2trIjoKICAgICAgICAgICAgICByZXR1cm4gX3RoaXMubnVtKGR0LndlZWtZZWFyLCA0KTsKCiAgICAgICAgICAgIGNhc2UgIlciOgogICAgICAgICAgICAgIHJldHVybiBfdGhpcy5udW0oZHQud2Vla051bWJlcik7CgogICAgICAgICAgICBjYXNlICJXVyI6CiAgICAgICAgICAgICAgcmV0dXJuIF90aGlzLm51bShkdC53ZWVrTnVtYmVyLCAyKTsKCiAgICAgICAgICAgIGNhc2UgIm8iOgogICAgICAgICAgICAgIHJldHVybiBfdGhpcy5udW0oZHQub3JkaW5hbCk7CgogICAgICAgICAgICBjYXNlICJvb28iOgogICAgICAgICAgICAgIHJldHVybiBfdGhpcy5udW0oZHQub3JkaW5hbCwgMyk7CgogICAgICAgICAgICBjYXNlICJxIjoKICAgICAgICAgICAgICAvLyBsaWtlIDEKICAgICAgICAgICAgICByZXR1cm4gX3RoaXMubnVtKGR0LnF1YXJ0ZXIpOwoKICAgICAgICAgICAgY2FzZSAicXEiOgogICAgICAgICAgICAgIC8vIGxpa2UgMDEKICAgICAgICAgICAgICByZXR1cm4gX3RoaXMubnVtKGR0LnF1YXJ0ZXIsIDIpOwoKICAgICAgICAgICAgY2FzZSAiWCI6CiAgICAgICAgICAgICAgcmV0dXJuIF90aGlzLm51bShNYXRoLmZsb29yKGR0LnRzIC8gMTAwMCkpOwoKICAgICAgICAgICAgY2FzZSAieCI6CiAgICAgICAgICAgICAgcmV0dXJuIF90aGlzLm51bShkdC50cyk7CgogICAgICAgICAgICBkZWZhdWx0OgogICAgICAgICAgICAgIHJldHVybiBtYXliZU1hY3JvKHRva2VuKTsKICAgICAgICAgIH0KICAgICAgICB9OwoKICAgICAgICByZXR1cm4gc3RyaW5naWZ5VG9rZW5zKEZvcm1hdHRlci5wYXJzZUZvcm1hdChmbXQpLCB0b2tlblRvU3RyaW5nKTsKICAgICAgfTsKCiAgICAgIF9wcm90by5mb3JtYXREdXJhdGlvbkZyb21TdHJpbmcgPSBmdW5jdGlvbiBmb3JtYXREdXJhdGlvbkZyb21TdHJpbmcoZHVyLCBmbXQpIHsKICAgICAgICB2YXIgX3RoaXMyID0gdGhpczsKCiAgICAgICAgdmFyIHRva2VuVG9GaWVsZCA9IGZ1bmN0aW9uIHRva2VuVG9GaWVsZCh0b2tlbikgewogICAgICAgICAgc3dpdGNoICh0b2tlblswXSkgewogICAgICAgICAgICBjYXNlICJTIjoKICAgICAgICAgICAgICByZXR1cm4gIm1pbGxpc2Vjb25kIjsKCiAgICAgICAgICAgIGNhc2UgInMiOgogICAgICAgICAgICAgIHJldHVybiAic2Vjb25kIjsKCiAgICAgICAgICAgIGNhc2UgIm0iOgogICAgICAgICAgICAgIHJldHVybiAibWludXRlIjsKCiAgICAgICAgICAgIGNhc2UgImgiOgogICAgICAgICAgICAgIHJldHVybiAiaG91ciI7CgogICAgICAgICAgICBjYXNlICJkIjoKICAgICAgICAgICAgICByZXR1cm4gImRheSI7CgogICAgICAgICAgICBjYXNlICJNIjoKICAgICAgICAgICAgICByZXR1cm4gIm1vbnRoIjsKCiAgICAgICAgICAgIGNhc2UgInkiOgogICAgICAgICAgICAgIHJldHVybiAieWVhciI7CgogICAgICAgICAgICBkZWZhdWx0OgogICAgICAgICAgICAgIHJldHVybiBudWxsOwogICAgICAgICAgfQogICAgICAgIH0sCiAgICAgICAgICAgIHRva2VuVG9TdHJpbmcgPSBmdW5jdGlvbiB0b2tlblRvU3RyaW5nKGxpbGR1cikgewogICAgICAgICAgcmV0dXJuIGZ1bmN0aW9uICh0b2tlbikgewogICAgICAgICAgICB2YXIgbWFwcGVkID0gdG9rZW5Ub0ZpZWxkKHRva2VuKTsKCiAgICAgICAgICAgIGlmIChtYXBwZWQpIHsKICAgICAgICAgICAgICByZXR1cm4gX3RoaXMyLm51bShsaWxkdXIuZ2V0KG1hcHBlZCksIHRva2VuLmxlbmd0aCk7CiAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgcmV0dXJuIHRva2VuOwogICAgICAgICAgICB9CiAgICAgICAgICB9OwogICAgICAgIH0sCiAgICAgICAgICAgIHRva2VucyA9IEZvcm1hdHRlci5wYXJzZUZvcm1hdChmbXQpLAogICAgICAgICAgICByZWFsVG9rZW5zID0gdG9rZW5zLnJlZHVjZShmdW5jdGlvbiAoZm91bmQsIF9yZWYpIHsKICAgICAgICAgIHZhciBsaXRlcmFsID0gX3JlZi5saXRlcmFsLAogICAgICAgICAgICAgIHZhbCA9IF9yZWYudmFsOwogICAgICAgICAgcmV0dXJuIGxpdGVyYWwgPyBmb3VuZCA6IGZvdW5kLmNvbmNhdCh2YWwpOwogICAgICAgIH0sIFtdKSwKICAgICAgICAgICAgY29sbGFwc2VkID0gZHVyLnNoaWZ0VG8uYXBwbHkoZHVyLCByZWFsVG9rZW5zLm1hcCh0b2tlblRvRmllbGQpLmZpbHRlcihmdW5jdGlvbiAodCkgewogICAgICAgICAgcmV0dXJuIHQ7CiAgICAgICAgfSkpOwoKICAgICAgICByZXR1cm4gc3RyaW5naWZ5VG9rZW5zKHRva2VucywgdG9rZW5Ub1N0cmluZyhjb2xsYXBzZWQpKTsKICAgICAgfTsKCiAgICAgIHJldHVybiBGb3JtYXR0ZXI7CiAgICB9KCk7CgogICAgdmFyIEludmFsaWQgPSAvKiNfX1BVUkVfXyovZnVuY3Rpb24gKCkgewogICAgICBmdW5jdGlvbiBJbnZhbGlkKHJlYXNvbiwgZXhwbGFuYXRpb24pIHsKICAgICAgICB0aGlzLnJlYXNvbiA9IHJlYXNvbjsKICAgICAgICB0aGlzLmV4cGxhbmF0aW9uID0gZXhwbGFuYXRpb247CiAgICAgIH0KCiAgICAgIHZhciBfcHJvdG8gPSBJbnZhbGlkLnByb3RvdHlwZTsKCiAgICAgIF9wcm90by50b01lc3NhZ2UgPSBmdW5jdGlvbiB0b01lc3NhZ2UoKSB7CiAgICAgICAgaWYgKHRoaXMuZXhwbGFuYXRpb24pIHsKICAgICAgICAgIHJldHVybiB0aGlzL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sKICAgICAgfQogICAgICAvKioKICAgICAgICogUmV0dXJuIHdoZXRoZXIgdGhpcyBab25lIGlzIGVxdWFsIHRvIGFub3RoZXIgem9uZQogICAgICAgKiBAYWJzdHJhY3QKICAgICAgICogQHBhcmFtIHtab25lfSBvdGhlclpvbmUgLSB0aGUgem9uZSB0byBjb21wYXJlCiAgICAgICAqIEByZXR1cm4ge2Jvb2xlYW59CiAgICAgICAqLwogICAgICA7CgogICAgICBfcHJvdG8uZXF1YWxzID0gZnVuY3Rpb24gZXF1YWxzKG90aGVyWm9uZSkgewogICAgICAgIHRocm93IG5ldyBab25lSXNBYnN0cmFjdEVycm9yKCk7CiAgICAgIH0KICAgICAgLyoqCiAgICAgICAqIFJldHVybiB3aGV0aGVyIHRoaXMgWm9uZSBpcyB2YWxpZC4KICAgICAgICogQGFic3RyYWN0CiAgICAgICAqIEB0eXBlIHtib29sZWFufQogICAgICAgKi8KICAgICAgOwoKICAgICAgX2NyZWF0ZUNsYXNzKFpvbmUsIFt7CiAgICAgICAga2V5OiAidHlwZSIsCiAgICAgICAgZ2V0OgogICAgICAgIC8qKgogICAgICAgICAqIFRoZSB0eXBlIG9mIHpvbmUKICAgICAgICAgKiBAYWJzdHJhY3QKICAgICAgICAgKiBAdHlwZSB7c3RyaW5nfQogICAgICAgICAqLwogICAgICAgIGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHRocm93IG5ldyBab25lSXNBYnN0cmFjdEVycm9yKCk7CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIFRoZSBuYW1lIG9mIHRoaXMgem9uZS4KICAgICAgICAgKiBAYWJzdHJhY3QKICAgICAgICAgKiBAdHlwZSB7c3RyaW5nfQogICAgICAgICAqLwoKICAgICAgfSwgewogICAgICAgIGtleTogIm5hbWUiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgdGhyb3cgbmV3IFpvbmVJc0Fic3RyYWN0RXJyb3IoKTsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICogUmV0dXJucyB3aGV0aGVyIHRoZSBvZmZzZXQgaXMga25vd24gdG8gYmUgZml4ZWQgZm9yIHRoZSB3aG9sZSB5ZWFyLgogICAgICAgICAqIEBhYnN0cmFjdAogICAgICAgICAqIEB0eXBlIHtib29sZWFufQogICAgICAgICAqLwoKICAgICAgfSwgewogICAgICAgIGtleTogImlzVW5pdmVyc2FsIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHRocm93IG5ldyBab25lSXNBYnN0cmFjdEVycm9yKCk7CiAgICAgICAgfQogICAgICB9LCB7CiAgICAgICAga2V5OiAiaXNWYWxpZCIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICB0aHJvdyBuZXcgWm9uZUlzQWJzdHJhY3RFcnJvcigpOwogICAgICAgIH0KICAgICAgfV0pOwoKICAgICAgcmV0dXJuIFpvbmU7CiAgICB9KCk7CgogICAgdmFyIHNpbmdsZXRvbiQxID0gbnVsbDsKICAgIC8qKgogICAgICogUmVwcmVzZW50cyB0aGUgbG9jYWwgem9uZSBmb3IgdGhpcyBKYXZhU2NyaXB0IGVudmlyb25tZW50LgogICAgICogQGltcGxlbWVudHMge1pvbmV9CiAgICAgKi8KCiAgICB2YXIgU3lzdGVtWm9uZSA9IC8qI19fUFVSRV9fKi9mdW5jdGlvbiAoX1pvbmUpIHsKICAgICAgX2luaGVyaXRzTG9vc2UoU3lzdGVtWm9uZSwgX1pvbmUpOwoKICAgICAgZnVuY3Rpb24gU3lzdGVtWm9uZSgpIHsKICAgICAgICByZXR1cm4gX1pvbmUuYXBwbHkodGhpcywgYXJndW1lbnRzKSB8fCB0aGlzOwogICAgICB9CgogICAgICB2YXIgX3Byb3RvID0gU3lzdGVtWm9uZS5wcm90b3R5cGU7CgogICAgICAvKiogQG92ZXJyaWRlICoqLwogICAgICBfcHJvdG8ub2Zmc2V0TmFtZSA9IGZ1bmN0aW9uIG9mZnNldE5hbWUodHMsIF9yZWYpIHsKICAgICAgICB2YXIgZm9ybWF0ID0gX3JlZi5mb3JtYXQsCiAgICAgICAgICAgIGxvY2FsZSA9IF9yZWYubG9jYWxlOwogICAgICAgIHJldHVybiBwYXJzZVpvbmVJbmZvKHRzLCBmb3JtYXQsIGxvY2FsZSk7CiAgICAgIH0KICAgICAgLyoqIEBvdmVycmlkZSAqKi8KICAgICAgOwoKICAgICAgX3Byb3RvLmZvcm1hdE9mZnNldCA9IGZ1bmN0aW9uIGZvcm1hdE9mZnNldCQxKHRzLCBmb3JtYXQpIHsKICAgICAgICByZXR1cm4gZm9ybWF0T2Zmc2V0KHRoaXMub2Zmc2V0KHRzKSwgZm9ybWF0KTsKICAgICAgfQogICAgICAvKiogQG92ZXJyaWRlICoqLwogICAgICA7CgogICAgICBfcHJvdG8ub2Zmc2V0ID0gZnVuY3Rpb24gb2Zmc2V0KHRzKSB7CiAgICAgICAgcmV0dXJuIC1uZXcgRGF0ZSh0cykuZ2V0VGltZXpvbmVPZmZzZXQoKTsKICAgICAgfQogICAgICAvKiogQG92ZXJyaWRlICoqLwogICAgICA7CgogICAgICBfcHJvdG8uZXF1YWxzID0gZnVuY3Rpb24gZXF1YWxzKG90aGVyWm9uZSkgewogICAgICAgIHJldHVybiBvdGhlclpvbmUudHlwZSA9PT0gInN5c3RlbSI7CiAgICAgIH0KICAgICAgLyoqIEBvdmVycmlkZSAqKi8KICAgICAgOwoKICAgICAgX2NyZWF0ZUNsYXNzKFN5c3RlbVpvbmUsIFt7CiAgICAgICAga2V5OiAidHlwZSIsCiAgICAgICAgZ2V0OgogICAgICAgIC8qKiBAb3ZlcnJpZGUgKiovCiAgICAgICAgZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuICJzeXN0ZW0iOwogICAgICAgIH0KICAgICAgICAvKiogQG92ZXJyaWRlICoqLwoKICAgICAgfSwgewogICAgICAgIGtleTogIm5hbWUiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIG5ldyBJbnRsLkRhdGVUaW1lRm9ybWF0KCkucmVzb2x2ZWRPcHRpb25zKCkudGltZVpvbmU7CiAgICAgICAgfQogICAgICAgIC8qKiBAb3ZlcnJpZGUgKiovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAiaXNVbml2ZXJzYWwiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgIH0KICAgICAgfSwgewogICAgICAgIGtleTogImlzVmFsaWQiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIHRydWU7CiAgICAgICAgfQogICAgICB9XSwgW3sKICAgICAgICBrZXk6ICJpbnN0YW5jZSIsCiAgICAgICAgZ2V0OgogICAgICAgIC8qKgogICAgICAgICAqIEdldCBhIHNpbmdsZXRvbiBpbnN0YW5jZSBvZiB0aGUgbG9jYWwgem9uZQogICAgICAgICAqIEByZXR1cm4ge1N5c3RlbVpvbmV9CiAgICAgICAgICovCiAgICAgICAgZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgaWYgKHNpbmdsZXRvbiQxID09PSBudWxsKSB7CiAgICAgICAgICAgIHNpbmdsZXRvbiQxID0gbmV3IFN5c3RlbVpvbmUoKTsKICAgICAgICAgIH0KCiAgICAgICAgICByZXR1cm4gc2luZ2xldG9uJDE7CiAgICAgICAgfQogICAgICB9XSk7CgogICAgICByZXR1cm4gU3lzdGVtWm9uZTsKICAgIH0oWm9uZSk7CgogICAgdmFyIG1hdGNoaW5nUmVnZXggPSBSZWdFeHAoIl4iICsgaWFuYVJlZ2V4LnNvdXJjZSArICIkIik7CiAgICB2YXIgZHRmQ2FjaGUgPSB7fTsKCiAgICBmdW5jdGlvbiBtYWtlRFRGKHpvbmUpIHsKICAgICAgaWYgKCFkdGZDYWNoZVt6b25lXSkgewogICAgICAgIGR0ZkNhY2hlW3pvbmVdID0gbmV3IEludGwuRGF0ZVRpbWVGb3JtYXQoImVuLVVTIiwgewogICAgICAgICAgaG91ckN5Y2xlOiAiaDIzIiwKICAgICAgICAgIHRpbWVab25lOiB6b25lLAogICAgICAgICAgeWVhcjogIm51bWVyaWMiLAogICAgICAgICAgbW9udGg6ICIyLWRpZ2l0IiwKICAgICAgICAgIGRheTogIjItZGlnaXQiLAogICAgICAgICAgaG91cjogIjItZGlnaXQiLAogICAgICAgICAgbWludXRlOiAiMi1kaWdpdCIsCiAgICAgICAgICBzZWNvbmQ6ICIyLWRpZ2l0IgogICAgICAgIH0pOwogICAgICB9CgogICAgICByZXR1cm4gZHRmQ2FjaGVbem9uZV07CiAgICB9CgogICAgdmFyIHR5cGVUb1BvcyA9IHsKICAgICAgeWVhcjogMCwKICAgICAgbW9udGg6IDEsCiAgICAgIGRheTogMiwKICAgICAgaG91cjogMywKICAgICAgbWludXRlOiA0LAogICAgICBzZWNvbmQ6IDUKICAgIH07CgogICAgZnVuY3Rpb24gaGFja3lPZmZzZXQoZHRmLCBkYXRlKSB7CiAgICAgIHZhciBmb3JtYXR0ZWQgPSBkdGYuZm9ybWF0KGRhdGUpLnJlcGxhY2UoL1x1MjAwRS9nLCAiIiksCiAgICAgICAgICBwYXJzZWQgPSAvKFxkKylcLyhcZCspXC8oXGQrKSw/IChcZCspOihcZCspOihcZCspLy5leGVjKGZvcm1hdHRlZCksCiAgICAgICAgICBmTW9udGggPSBwYXJzZWRbMV0sCiAgICAgICAgICBmRGF5ID0gcGFyc2VkWzJdLAogICAgICAgICAgZlllYXIgPSBwYXJzZWRbM10sCiAgICAgICAgICBmSG91ciA9IHBhcnNlZFs0XSwKICAgICAgICAgIGZNaW51dGUgPSBwYXJzZWRbNV0sCiAgICAgICAgICBmU2Vjb25kID0gcGFyc2VkWzZdOwogICAgICByZXR1cm4gW2ZZZWFyLCBmTW9udGgsIGZEYXksIGZIb3VyLCBmTWludXRlLCBmU2Vjb25kXTsKICAgIH0KC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c2UKICAgICAgICogQHJldHVybiB7Ym9vbGVhbn0KICAgICAgICovCiAgICAgIDsKCiAgICAgIElBTkFab25lLmlzVmFsaWRTcGVjaWZpZXIgPSBmdW5jdGlvbiBpc1ZhbGlkU3BlY2lmaWVyKHMpIHsKICAgICAgICByZXR1cm4gISEocyAmJiBzLm1hdGNoKG1hdGNoaW5nUmVnZXgpKTsKICAgICAgfQogICAgICAvKioKICAgICAgICogUmV0dXJucyB3aGV0aGVyIHRoZSBwcm92aWRlZCBzdHJpbmcgaWRlbnRpZmllcyBhIHJlYWwgem9uZQogICAgICAgKiBAcGFyYW0ge3N0cmluZ30gem9uZSAtIFRoZSBzdHJpbmcgdG8gY2hlY2sKICAgICAgICogQGV4YW1wbGUgSUFOQVpvbmUuaXNWYWxpZFpvbmUoIkFtZXJpY2EvTmV3X1lvcmsiKSAvLz0+IHRydWUKICAgICAgICogQGV4YW1wbGUgSUFOQVpvbmUuaXNWYWxpZFpvbmUoIkZhbnRhc2lhL0Nhc3RsZSIpIC8vPT4gZmFsc2UKICAgICAgICogQGV4YW1wbGUgSUFOQVpvbmUuaXNWYWxpZFpvbmUoIlNwb3J0fn5ibG9ycCIpIC8vPT4gZmFsc2UKICAgICAgICogQHJldHVybiB7Ym9vbGVhbn0KICAgICAgICovCiAgICAgIDsKCiAgICAgIElBTkFab25lLmlzVmFsaWRab25lID0gZnVuY3Rpb24gaXNWYWxpZFpvbmUoem9uZSkgewogICAgICAgIHRyeSB7CiAgICAgICAgICBuZXcgSW50bC5EYXRlVGltZUZvcm1hdCgiZW4tVVMiLCB7CiAgICAgICAgICAgIHRpbWVab25lOiB6b25lCiAgICAgICAgICB9KS5mb3JtYXQoKTsKICAgICAgICAgIHJldHVybiB0cnVlOwogICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgIHJldHVybiBmYWxzZTsKICAgICAgICB9CiAgICAgIH0gLy8gRXRjL0dNVCs4IC0+IC00ODAKCiAgICAgIC8qKiBAaWdub3JlICovCiAgICAgIDsKCiAgICAgIElBTkFab25lLnBhcnNlR01UT2Zmc2V0ID0gZnVuY3Rpb24gcGFyc2VHTVRPZmZzZXQoc3BlY2lmaWVyKSB7CiAgICAgICAgaWYgKHNwZWNpZmllcikgewogICAgICAgICAgdmFyIG1hdGNoID0gc3BlY2lmaWVyLm1hdGNoKC9eRXRjXC9HTVQoMHxbKy1dXGR7MSwyfSkkL2kpOwoKICAgICAgICAgIGlmIChtYXRjaCkgewogICAgICAgICAgICByZXR1cm4gLTYwICogcGFyc2VJbnQobWF0Y2hbMV0pOwogICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgcmV0dXJuIG51bGw7CiAgICAgIH07CgogICAgICBmdW5jdGlvbiBJQU5BWm9uZShuYW1lKSB7CiAgICAgICAgdmFyIF90aGlzOwoKICAgICAgICBfdGhpcyA9IF9ab25lLmNhbGwodGhpcykgfHwgdGhpczsKICAgICAgICAvKiogQHByaXZhdGUgKiovCgogICAgICAgIF90aGlzLnpvbmVOYW1lID0gbmFtZTsKICAgICAgICAvKiogQHByaXZhdGUgKiovCgogICAgICAgIF90aGlzLnZhbGlkID0gSUFOQVpvbmUuaXNWYWxpZFpvbmUobmFtZSk7CiAgICAgICAgcmV0dXJuIF90aGlzOwogICAgICB9CiAgICAgIC8qKiBAb3ZlcnJpZGUgKiovCgoKICAgICAgdmFyIF9wcm90byA9IElBTkFab25lLnByb3RvdHlwZTsKCiAgICAgIC8qKiBAb3ZlcnJpZGUgKiovCiAgICAgIF9wcm90by5vZmZzZXROYW1lID0gZnVuY3Rpb24gb2Zmc2V0TmFtZSh0cywgX3JlZikgewogICAgICAgIHZhciBmb3JtYXQgPSBfcmVmLmZvcm1hdCwKICAgICAgICAgICAgbG9jYWxlID0gX3JlZi5sb2NhbGU7CiAgICAgICAgcmV0dXJuIHBhcnNlWm9uZUluZm8odHMsIGZvcm1hdCwgbG9jYWxlLCB0aGlzLm5hbWUpOwogICAgICB9CiAgICAgIC8qKiBAb3ZlcnJpZGUgKiovCiAgICAgIDsKCiAgICAgIF9wcm90by5mb3JtYXRPZmZzZXQgPSBmdW5jdGlvbiBmb3JtYXRPZmZzZXQkMSh0cywgZm9ybWF0KSB7CiAgICAgICAgcmV0dXJuIGZvcm1hdE9mZnNldCh0aGlzLm9mZnNldCh0cyksIGZvcm1hdCk7CiAgICAgIH0KICAgICAgLyoqIEBvdmVycmlkZSAqKi8KICAgICAgOwoKICAgICAgX3Byb3RvLm9mZnNldCA9IGZ1bmN0aW9uIG9mZnNldCh0cykgewogICAgICAgIHZhciBkYXRlID0gbmV3IERhdGUodHMpOwogICAgICAgIGlmIChpc05hTihkYXRlKSkgcmV0dXJuIE5hTjsKCiAgICAgICAgdmFyIGR0ZiA9IG1ha2VEVEYodGhpcy5uYW1lKSwKICAgICAgICAgICAgX3JlZjIgPSBkdGYuZm9ybWF0VG9QYXJ0cyA/IHBhcnRzT2Zmc2V0KGR0ZiwgZGF0ZSkgOiBoYWNreU9mZnNldChkdGYsIGRhdGUpLAogICAgICAgICAgICB5ZWFyID0gX3JlZjJbMF0sCiAgICAgICAgICAgIG1vbnRoID0gX3JlZjJbMV0sCiAgICAgICAgICAgIGRheSA9IF9yZWYyWzJdLAogICAgICAgICAgICBob3VyID0gX3JlZjJbM10sCiAgICAgICAgICAgIG1pbnV0ZSA9IF9yZWYyWzRdLAogICAgICAgICAgICBzZWNvbmQgPSBfcmVmMls1XTsKCiAgICAgICAgdmFyIGFzVVRDID0gb2JqVG9Mb2NhbFRTKHsKICAgICAgICAgIHllYXI6IHllYXIsCiAgICAgICAgICBtb250aDogbW9udGgsCiAgICAgICAgICBkYXk6IGRheSwKICAgICAgICAgIGhvdXI6IGhvdXIsCiAgICAgICAgICBtaW51dGU6IG1pbnV0ZSwKICAgICAgICAgIHNlY29uZDogc2Vjb25kLAogICAgICAgICAgbWlsbGlzZWNvbmQ6IDAKICAgICAgICB9KTsKICAgICAgICB2YXIgYXNUUyA9ICtkYXRlOwogICAgICAgIHZhciBvdmVyID0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WF0T2Zmc2V0JDEodHMsIGZvcm1hdCkgewogICAgICAgIHJldHVybiBmb3JtYXRPZmZzZXQodGhpcy5maXhlZCwgZm9ybWF0KTsKICAgICAgfQogICAgICAvKiogQG92ZXJyaWRlICoqLwogICAgICA7CgogICAgICAvKiogQG92ZXJyaWRlICoqLwogICAgICBfcHJvdG8ub2Zmc2V0ID0gZnVuY3Rpb24gb2Zmc2V0KCkgewogICAgICAgIHJldHVybiB0aGlzLmZpeGVkOwogICAgICB9CiAgICAgIC8qKiBAb3ZlcnJpZGUgKiovCiAgICAgIDsKCiAgICAgIF9wcm90by5lcXVhbHMgPSBmdW5jdGlvbiBlcXVhbHMob3RoZXJab25lKSB7CiAgICAgICAgcmV0dXJuIG90aGVyWm9uZS50eXBlID09PSAiZml4ZWQiICYmIG90aGVyWm9uZS5maXhlZCA9PT0gdGhpcy5maXhlZDsKICAgICAgfQogICAgICAvKiogQG92ZXJyaWRlICoqLwogICAgICA7CgogICAgICBfY3JlYXRlQ2xhc3MoRml4ZWRPZmZzZXRab25lLCBbewogICAgICAgIGtleTogInR5cGUiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuICJmaXhlZCI7CiAgICAgICAgfQogICAgICAgIC8qKiBAb3ZlcnJpZGUgKiovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAibmFtZSIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gdGhpcy5maXhlZCA9PT0gMCA/ICJVVEMiIDogIlVUQyIgKyBmb3JtYXRPZmZzZXQodGhpcy5maXhlZCwgIm5hcnJvdyIpOwogICAgICAgIH0KICAgICAgfSwgewogICAgICAgIGtleTogImlzVW5pdmVyc2FsIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiB0cnVlOwogICAgICAgIH0KICAgICAgfSwgewogICAgICAgIGtleTogImlzVmFsaWQiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIHRydWU7CiAgICAgICAgfQogICAgICB9XSwgW3sKICAgICAgICBrZXk6ICJ1dGNJbnN0YW5jZSIsCiAgICAgICAgZ2V0OgogICAgICAgIC8qKgogICAgICAgICAqIEdldCBhIHNpbmdsZXRvbiBpbnN0YW5jZSBvZiBVVEMKICAgICAgICAgKiBAcmV0dXJuIHtGaXhlZE9mZnNldFpvbmV9CiAgICAgICAgICovCiAgICAgICAgZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgaWYgKHNpbmdsZXRvbiA9PT0gbnVsbCkgewogICAgICAgICAgICBzaW5nbGV0b24gPSBuZXcgRml4ZWRPZmZzZXRab25lKDApOwogICAgICAgICAgfQoKICAgICAgICAgIHJldHVybiBzaW5nbGV0b247CiAgICAgICAgfQogICAgICB9XSk7CgogICAgICByZXR1cm4gRml4ZWRPZmZzZXRab25lOwogICAgfShab25lKTsKCiAgICAvKioKICAgICAqIEEgem9uZSB0aGF0IGZhaWxlZCB0byBwYXJzZS4gWW91IHNob3VsZCBuZXZlciBuZWVkIHRvIGluc3RhbnRpYXRlIHRoaXMuCiAgICAgKiBAaW1wbGVtZW50cyB7Wm9uZX0KICAgICAqLwoKICAgIHZhciBJbnZhbGlkWm9uZSA9IC8qI19fUFVSRV9fKi9mdW5jdGlvbiAoX1pvbmUpIHsKICAgICAgX2luaGVyaXRzTG9vc2UoSW52YWxpZFpvbmUsIF9ab25lKTsKCiAgICAgIGZ1bmN0aW9uIEludmFsaWRab25lKHpvbmVOYW1lKSB7CiAgICAgICAgdmFyIF90aGlzOwoKICAgICAgICBfdGhpcyA9IF9ab25lLmNhbGwodGhpcykgfHwgdGhpczsKICAgICAgICAvKiogIEBwcml2YXRlICovCgogICAgICAgIF90aGlzLnpvbmVOYW1lID0gem9uZU5hbWU7CiAgICAgICAgcmV0dXJuIF90aGlzOwogICAgICB9CiAgICAgIC8qKiBAb3ZlcnJpZGUgKiovCgoKICAgICAgdmFyIF9wcm90byA9IEludmFsaWRab25lLnByb3RvdHlwZTsKCiAgICAgIC8qKiBAb3ZlcnJpZGUgKiovCiAgICAgIF9wcm90by5vZmZzZXROYW1lID0gZnVuY3Rpb24gb2Zmc2V0TmFtZSgpIHsKICAgICAgICByZXR1cm4gbnVsbDsKICAgICAgfQogICAgICAvKiogQG92ZXJyaWRlICoqLwogICAgICA7CgogICAgICBfcHJvdG8uZm9ybWF0T2Zmc2V0ID0gZnVuY3Rpb24gZm9ybWF0T2Zmc2V0KCkgewogICAgICAgIHJldHVybiAiIjsKICAgICAgfQogICAgICAvKiogQG92ZXJyaWRlICoqLwogICAgICA7CgogICAgICBfcHJvdG8ub2Zmc2V0ID0gZnVuY3Rpb24gb2Zmc2V0KCkgewogICAgICAgIHJldHVybiBOYU47CiAgICAgIH0KICAgICAgLyoqIEBvdmVycmlkZSAqKi8KICAgICAgOwoKICAgICAgX3Byb3RvLmVxdWFscyA9IGZ1bmN0aW9uIGVxdWFscygpIHsKICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgIH0KICAgICAgLyoqIEBvdmVycmlkZSAqKi8KICAgICAgOwoKICAgICAgX2NyZWF0ZUNsYXNzKEludmFsaWRab25lLCBbewogICAgICAgIGtleTogInR5cGUiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuICJpbnZhbGlkIjsKICAgICAgICB9CiAgICAgICAgLyoqIEBvdmVycmlkZSAqKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJuYW1lIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiB0aGlzLnpvbmVOYW1lOwogICAgICAgIH0KICAgICAgICAvKiogQG92ZXJyaWRlICoqLwoKICAgICAgfSwgewogICAgICAgIGtleTogImlzVW5pdmVyc2FsIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgI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ub3QgYWZmZWN0IGV4aXN0aW5nIGluc3RhbmNlcy4KICAgICAgICAgKiBAdHlwZSB7c3RyaW5nfQogICAgICAgICAqLwoKICAgICAgfSwgewogICAgICAgIGtleTogImRlZmF1bHROdW1iZXJpbmdTeXN0ZW0iLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIGRlZmF1bHROdW1iZXJpbmdTeXN0ZW07CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIFNldCB0aGUgZGVmYXVsdCBudW1iZXJpbmcgc3lzdGVtIHRvIGNyZWF0ZSBEYXRlVGltZXMgd2l0aC4gRG9lcyBub3QgYWZmZWN0IGV4aXN0aW5nIGluc3RhbmNlcy4KICAgICAgICAgKiBAdHlwZSB7c3RyaW5nfQogICAgICAgICAqLwogICAgICAgICwKICAgICAgICBzZXQ6IGZ1bmN0aW9uIHNldChudW1iZXJpbmdTeXN0ZW0pIHsKICAgICAgICAgIGRlZmF1bHROdW1iZXJpbmdTeXN0ZW0gPSBudW1iZXJpbmdTeXN0ZW07CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIEdldCB0aGUgZGVmYXVsdCBvdXRwdXQgY2FsZW5kYXIgdG8gY3JlYXRlIERhdGVUaW1lcyB3aXRoLiBEb2VzIG5vdCBhZmZlY3QgZXhpc3RpbmcgaW5zdGFuY2VzLgogICAgICAgICAqIEB0eXBlIHtzdHJpbmd9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAiZGVmYXVsdE91dHB1dENhbGVuZGFyIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiBkZWZhdWx0T3V0cHV0Q2FsZW5kYXI7CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIFNldCB0aGUgZGVmYXVsdCBvdXRwdXQgY2FsZW5kYXIgdG8gY3JlYXRlIERhdGVUaW1lcyB3aXRoLiBEb2VzIG5vdCBhZmZlY3QgZXhpc3RpbmcgaW5zdGFuY2VzLgogICAgICAgICAqIEB0eXBlIHtzdHJpbmd9CiAgICAgICAgICovCiAgICAgICAgLAogICAgICAgIHNldDogZnVuY3Rpb24gc2V0KG91dHB1dENhbGVuZGFyKSB7CiAgICAgICAgICBkZWZhdWx0T3V0cHV0Q2FsZW5kYXIgPSBvdXRwdXRDYWxlbmRhcjsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICogR2V0IHdoZXRoZXIgTHV4b24gd2lsbCB0aHJvdyB3aGVuIGl0IGVuY291bnRlcnMgaW52YWxpZCBEYXRlVGltZXMsIER1cmF0aW9ucywgb3IgSW50ZXJ2YWxzCiAgICAgICAgICogQHR5cGUge2Jvb2xlYW59CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAidGhyb3dPbkludmFsaWQiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIHRocm93T25JbnZhbGlkOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiBTZXQgd2hldGhlciBMdXhvbiB3aWxsIHRocm93IHdoZW4gaXQgZW5jb3VudGVycyBpbnZhbGlkIERhdGVUaW1lcywgRHVyYXRpb25zLCBvciBJbnRlcnZhbHMKICAgICAgICAgKiBAdHlwZSB7Ym9vbGVhbn0KICAgICAgICAgKi8KICAgICAgICAsCiAgICAgICAgc2V0OiBmdW5jdGlvbiBzZXQodCkgewogICAgICAgICAgdGhyb3dPbkludmFsaWQgPSB0OwogICAgICAgIH0KICAgICAgfV0pOwoKICAgICAgcmV0dXJuIFNldHRpbmdzOwogICAgfSgpOwoKICAgIHZhciBfZXhjbHVkZWQgPSBbImJhc2UiXTsKICAgIHZhciBpbnRsRFRDYWNoZSA9IHt9OwoKICAgIGZ1bmN0aW9uIGdldENhY2hlZERURihsb2NTdHJpbmcsIG9wdHMpIHsKICAgICAgaWYgKG9wdHMgPT09IHZvaWQgMCkgewogICAgICAgIG9wdHMgPSB7fTsKICAgICAgfQoKICAgICAgdmFyIGtleSA9IEpTT04uc3RyaW5naWZ5KFtsb2NTdHJpbmcsIG9wdHNdKTsKICAgICAgdmFyIGR0ZiA9IGludGxEVENhY2hlW2tleV07CgogICAgICBpZiAoIWR0ZikgewogICAgICAgIGR0ZiA9IG5ldyBJbnRsLkRhdGVUaW1lRm9ybWF0KGxvY1N0cmluZywgb3B0cyk7CiAgICAgICAgaW50bERUQ2FjaGVba2V5XSA9IGR0ZjsKICAgICAgfQoKICAgICAgcmV0dXJuIGR0ZjsKICAgIH0KCiAgICB2YXIgaW50bE51bUNhY2hlID0ge307CgogICAgZnVuY3Rpb24gZ2V0Q2FjaGVkSU5GKGxvY1N0cmluZywgb3B0cykgewogICAgICBpZiAob3B0cyA9PT0gdm9pZCAwKSB7CiAgICAgICAgb3B0cyA9IHt9OwogICAgICB9CgogICAgICB2YXIga2V5ID0gSlNPTi5zdHJpbmdpZnkoW2xvY1N0cmluZywgb3B0c10pOwogICAgICB2YXIgaW5mID0gaW50bE51bUNhY2hlW2tleV07CgogICAgICBpZiAoIWluZikgewogICAgICAgIGluZiA9IG5ldyBJbnRsLk51bWJlckZvcm1hdChsb2NTdHJpbmcsIG9wdHMpOwogICAgICAgIGludGxOdW1DYWNoZVtrZXldID0gaW5mOwogICAgICB9CgogICAgICByZXR1cm4gaW5mOwogICAgfQoKICAgIHZhciBpbnRsUmVsQ2FjaGUgPSB7fTsKCiAgICBmdW5jdGlvbiBnZXRDYWNoZWRSVEYobG9jU3RyaW5nLCBvcHRzKSB7CiAgICAgIGlmIChvcHRzID09PSB2b2lkIDApIHsKICAgICAgICBvcHRzID0ge307CiAgICAgIH0KCiAgICAgIHZhciBfb3B0cyA9IG9wdHM7CiAgICAgICAgICBfb3B0cy5iYXNlOwogICAgICAgICAgdmFyIGNhY2hlS2V5T3B0cyA9IF9vYmplY3RXaXRob3V0UHJvcGVydGllc0xvb3NlKF9vcHRzLCBfZXhjbHVkZ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IHsKICAgICAgICBsb2NhbGVTdHIgKz0gIi11IjsKCiAgICAgICAgaWYgKG91dHB1dENhbGVuZGFyKSB7CiAgICAgICAgICBsb2NhbGVTdHIgKz0gIi1jYS0iICsgb3V0cHV0Q2FsZW5kYXI7CiAgICAgICAgfQoKICAgICAgICBpZiAobnVtYmVyaW5nU3lzdGVtKSB7CiAgICAgICAgICBsb2NhbGVTdHIgKz0gIi1udS0iICsgbnVtYmVyaW5nU3lzdGVtOwogICAgICAgIH0KCiAgICAgICAgcmV0dXJuIGxvY2FsZVN0cjsKICAgICAgfSBlbHNlIHsKICAgICAgICByZXR1cm4gbG9jYWxlU3RyOwogICAgICB9CiAgICB9CgogICAgZnVuY3Rpb24gbWFwTW9udGhzKGYpIHsKICAgICAgdmFyIG1zID0gW107CgogICAgICBmb3IgKHZhciBpID0gMTsgaSA8PSAxMjsgaSsrKSB7CiAgICAgICAgdmFyIGR0ID0gRGF0ZVRpbWUudXRjKDIwMTYsIGksIDEpOwogICAgICAgIG1zLnB1c2goZihkdCkpOwogICAgICB9CgogICAgICByZXR1cm4gbXM7CiAgICB9CgogICAgZnVuY3Rpb24gbWFwV2Vla2RheXMoZikgewogICAgICB2YXIgbXMgPSBbXTsKCiAgICAgIGZvciAodmFyIGkgPSAxOyBpIDw9IDc7IGkrKykgewogICAgICAgIHZhciBkdCA9IERhdGVUaW1lLnV0YygyMDE2LCAxMSwgMTMgKyBpKTsKICAgICAgICBtcy5wdXNoKGYoZHQpKTsKICAgICAgfQoKICAgICAgcmV0dXJuIG1zOwogICAgfQoKICAgIGZ1bmN0aW9uIGxpc3RTdHVmZihsb2MsIGxlbmd0aCwgZGVmYXVsdE9LLCBlbmdsaXNoRm4sIGludGxGbikgewogICAgICB2YXIgbW9kZSA9IGxvYy5saXN0aW5nTW9kZShkZWZhdWx0T0spOwoKICAgICAgaWYgKG1vZGUgPT09ICJlcnJvciIpIHsKICAgICAgICByZXR1cm4gbnVsbDsKICAgICAgfSBlbHNlIGlmICht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RhciB8fCBudWxsOwogICAgICAgIHRoaXMuaW50bCA9IGludGxDb25maWdTdHJpbmcodGhpcy5sb2NhbGUsIHRoaXMubnVtYmVyaW5nU3lzdGVtLCB0aGlzLm91dHB1dENhbGVuZGFyKTsKICAgICAgICB0aGlzLndlZWtkYXlzQ2FjaGUgPSB7CiAgICAgICAgICBmb3JtYXQ6IHt9LAogICAgICAgICAgc3RhbmRhbG9uZToge30KICAgICAgICB9OwogICAgICAgIHRoaXMubW9udGhzQ2FjaGUgPSB7CiAgICAgICAgICBmb3JtYXQ6IHt9LAogICAgICAgICAgc3RhbmRhbG9uZToge30KICAgICAgICB9OwogICAgICAgIHRoaXMubWVyaWRpZW1DYWNoZSA9IG51bGw7CiAgICAgICAgdGhpcy5lcmFDYWNoZSA9IHt9OwogICAgICAgIHRoaXMuc3BlY2lmaWVkTG9jYWxlID0gc3BlY2lmaWVkTG9jYWxlOwogICAgICAgIHRoaXMuZmFzdE51bWJlcnNDYWNoZWQgPSBudWxsOwogICAgICB9CgogICAgICB2YXIgX3Byb3RvNCA9IExvY2FsZS5wcm90b3R5cGU7CgogICAgICBfcHJvdG80Lmxpc3RpbmdNb2RlID0gZnVuY3Rpb24gbGlzdGluZ01vZGUoZGVmYXVsdE9LKSB7CgogICAgICAgIHZhciBpc0FjdHVhbGx5RW4gPSB0aGlzLmlzRW5nbGlzaCgpOwogICAgICAgIHZhciBoYXNOb1dlaXJkbmVzcyA9ICh0aGlzLm51bWJlcmluZ1N5c3RlbSA9PT0gbnVsbCB8fCB0aGlzLm51bWJlcmluZ1N5c3RlbSA9PT0gImxhdG4iKSAmJiAodGhpcy5vdXRwdXRDYWxlbmRhciA9PT0gbnVsbCB8fCB0aGlzLm91dHB1dENhbGVuZGFyID09PSAiZ3JlZ29yeSIpOwogICAgICAgIHJldHVybiBpc0FjdHVhbGx5RW4gJiYgaGFzTm9XZWlyZG5lc3MgPyAiZW4iIDogImludGwiOwogICAgICB9OwoKICAgICAgX3Byb3RvNC5jbG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uZ3RoLCBmb3JtYXQsIGRlZmF1bHRPSykgewogICAgICAgIHZhciBfdGhpcyA9IHRoaXM7CgogICAgICAgIGlmIChmb3JtYXQgPT09IHZvaWQgMCkgewogICAgICAgICAgZm9ybWF0ID0gZmFsc2U7CiAgICAgICAgfQoKICAgICAgICBpZiAoZGVmYXVsdE9LID09PSB2b2lkIDApIHsKICAgICAgICAgIGRlZmF1bHRPSyA9IHRydWU7CiAgICAgICAgfQoKICAgICAgICByZXR1cm4gbGlzdFN0dWZmKHRoaXMsIGxlbmd0aCwgZGVmYXVsdE9LLCBtb250aHMsIGZ1bmN0aW9uICgpIHsKICAgICAgICAgIHZhciBpbnRsID0gZm9ybWF0ID8gewogICAgICAgICAgICBtb250aDogbGVuZ3RoLAogICAgICAgICAgICBkYXk6ICJudW1lcmljIgogICAgICAgICAgfSA6IHsKICAgICAgICAgICAgbW9udGg6IGxlbmd0aAogICAgICAgICAgfSwKICAgICAgICAgICAgICBmb3JtYXRTdHIgPSBmb3JtYXQgPyAiZm9ybWF0IiA6ICJzdGFuZGFsb25lIjsKCiAgICAgICAgICBpZiAoIV90aGlzLm1vbnRoc0NhY2hlW2Zvcm1hdFN0cl1bbGVuZ3RoXSkgewogICAgICAgICAgICBfdGhpcy5tb250aHNDYWNoZVtmb3JtYXRTdHJdW2xlbmd0aF0gPSBtYXBNb250aHMoZnVuY3Rpb24gKGR0KSB7CiAgICAgICAgICAgICAgcmV0dXJuIF90aGlzLmV4dHJhY3QoZHQsIGludGwsICJtb250aCIpOwogICAgICAgICAgICB9KTsKICAgICAgICAgIH0KCiAgICAgICAgICByZXR1cm4gX3RoaXMubW9udGhzQ2FjaGVbZm9ybWF0U3RyXVtsZW5ndGhdOwogICAgICAgIH0pOwogICAgICB9OwoKICAgICAgX3Byb3RvNC53ZWVrZGF5cyA9IGZ1bmN0aW9uIHdlZWtkYXlzJDEobGVuZ3RoLCBmb3JtYXQsIGRlZmF1bHRPSykgewogICAgICAgIHZhciBfdGhpczIgPSB0aGlzOwoKICAgICAgICBpZiAoZm9ybWF0ID09PSB2b2lkIDApIHsKICAgICAgICAgIGZvcm1hdCA9IGZhbHNlOwogICAgICAgIH0KCiAgICAgICAgaWYgKGRlZmF1bHRPSyA9PT0gdm9pZCAwKSB7CiAgICAgICAgICBkZWZhdWx0T0sgPSB0cnVlOwogICAgICAgIH0KCiAgICAgICAgcmV0dXJuIGxpc3RTdHVmZih0aGlzLCBsZW5ndGgsIGRlZmF1bHRPSywgd2Vla2RheXMsIGZ1bmN0aW9uICgpIHsKICAgICAgICAgIHZhciBpbnRsID0gZm9ybWF0ID8gewogICAgICAgICAgICB3ZWVrZGF5OiBsZW5ndGgsCiAgICAgICAgICAgIHllYXI6ICJudW1lcmljIiwKICAgICAgICAgICAgbW9udGg6ICJsb25nIiwKICAgICAgICAgICAgZGF5OiAibnVtZXJpYyIKICAgICAgICAgIH0gOiB7CiAgICAgICAgICAgIHdlZWtkYXk6IGxlbmd0aAogICAgICAgICAgfSwKICAgICAgICAgICAgICBmb3JtYXRTdHIgPSBmb3JtYXQgPyAiZm9ybWF0IiA6ICJzdGFuZGFsb25lIjsKCiAgICAgICAgICBpZiAoIV90aGlzMi53ZWVrZGF5c0NhY2hlW2Zvcm1hdFN0cl1bbGVuZ3RoXSkgewogICAgICAgICAgICBfdGhpczIud2Vla2RheXNDYWNoZVtmb3JtYXRTdHJdW2xlbmd0aF0gPSBtYXBXZWVrZGF5cyhmdW5jdGlvbiAoZHQpIHsKICAgICAgICAgICAgICByZXR1cm4gX3RoaXMyLmV4dHJhY3QoZHQsIGludGwsICJ3ZWVrZGF5Iik7CiAgICAgICAgICAgIH0pOwogICAgICAgICAgfQoKICAgICAgICAgIHJldHVybiBfdGhpczIud2Vla2RheXNDYWNoZVtmb3JtYXRTdHJdW2xlbmd0aF07CiAgICAgICAgfSk7CiAgICAgIH07CgogICAgICBfcHJvdG80Lm1lcmlkaWVtcyA9IGZ1bmN0aW9uIG1lcmlkaWVtcyQxKGRlZmF1bHRPSykgewogICAgICAgIHZhciBfdGhpczMgPSB0aGlzOwoKICAgICAgICBpZiAoZGVmYXVsdE9LID09PSB2b2lkIDApIHsKICAgICAgICAgIGRlZmF1bHRPSyA9IHRydWU7CiAgICAgICAgfQoKICAgICAgICByZXR1cm4gbGlzdFN0dWZmKHRoaXMsIHVuZGVmaW5lZCwgZGVmYXVsdE9LLCBmdW5jdGlvbiAoKSB7CiAgICAgICAgICByZXR1cm4gbWVyaWRpZW1zOwogICAgICAgIH0sIGZ1bmN0aW9uICgpIHsKICAgICAgICAgIC8vIEluIHRoZW9yeSB0aGVyZSBjb3VsZCBiZSBhcmliaXRyYXJ5IGRheSBwZXJpb2RzLiBXZSdyZSBnb25uYSBhc3N1bWUgdGhlcmUgYXJlIGV4YWN0bHkgdHdvCiAgICAgICAgICAvLyBmb3IgQU0gYW5kIFBNLiBUaGlzIGlzIHByb2JhYmx5IHdyb25nLCBidXQgaXQncyBtYWtlcyBwYXJzaW5nIHdheSBlYXNpZXIuCiAgICAgICAgICBpZiAoIV90aGlzMy5tZXJpZGllbUNhY2hlKSB7CiAgICAgICAgICAgIHZhciBpbnRsID0gewogICAgICAgICAgICAgIGhvdXI6ICJudW1lcmljIiwKICAgICAgICAgICAgICBob3VyQ3ljbGU6ICJoMTIiCiAgICAgICAgICAgIH07CiAgICAgICAgICAgIF90aGlzMy5tZXJpZGllbUNhY2hlID0gW0RhdGVUaW1lLnV0YygyMDE2LCAxMSwgMTMsIDkpLCBEYXRlVGltZS51dGMoMjAxNiwgMTEsIDEzLCAxOSldLm1hcChmdW5jdGlvbiAoZHQpIHsKICAgICAgICAgICAgICByZXR1cm4gX3RoaXMzLmV4dHJhY3QoZHQsIGludGwsICJkYXlwZXJpb2QiKTsKICAgICAgICAgICAgfSk7CiAgICAgICAgICB9CgogICAgICAgICAgcmV0dXJuIF90aGlzMy5tZXJpZGllbUNhY2hlOwogICAgICAgIH0pOwogICAgICB9OwoKICAgICAgX3Byb3RvNC5lcmFzID0gZn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R0LCBpbnRsT3B0cyksCiAgICAgICAgICAgIHJlc3VsdHMgPSBkZi5mb3JtYXRUb1BhcnRzKCksCiAgICAgICAgICAgIG1hdGNoaW5nID0gcmVzdWx0cy5maW5kKGZ1bmN0aW9uIChtKSB7CiAgICAgICAgICByZXR1cm4gbS50eXBlLnRvTG93ZXJDYXNlKCkgPT09IGZpZWxkOwogICAgICAgIH0pOwogICAgICAgIHJldHVybiBtYXRjaGluZyA/IG1hdGNoaW5nLnZhbHVlIDogbnVsbDsKICAgICAgfTsKCiAgICAgIF9wcm90bzQubnVtYmVyRm9ybWF0dGVyID0gZnVuY3Rpb24gbnVtYmVyRm9ybWF0dGVyKG9wdHMpIHsKICAgICAgICBpZiAob3B0cyA9PT0gdm9pZCAwKSB7CiAgICAgICAgICBvcHRzID0ge307CiAgICAgICAgfQoKICAgICAgICAvLyB0aGlzIGZvcmNlc2ltcGxlIG9wdGlvbiBpcyBuZXZlciB1c2VkICh0aGUgb25seSBjYWxsZXIgc2hvcnQtY2lyY3VpdHMgb24gaXQsIGJ1dCBpdCBzZWVtcyBzYWZlciB0byBsZWF2ZSkKICAgICAgICAvLyAoaW4gY29udHJhc3QsIHRoZSByZXN0IG9mIHRoZSBjb25kaXRpb24gaXMgdXNlZCBoZWF2aWx5KQogICAgICAgIHJldHVybiBuZXcgUG9seU51bWJlckZvcm1hdHRlcih0aGlzLmludGwsIG9wdHMuZm9yY2VTaW1wbGUgfHwgdGhpcy5mYXN0TnVtYmVycywgb3B0cyk7CiAgICAgIH07CgogICAgICBfcHJvdG80LmR0Rm9ybWF0dGVyID0gZnVuY3Rpb24gZHRGb3JtYXR0ZXIoZHQsIGludGxPcHRzKSB7CiAgICAgICAgaWYgKGludGxPcHRzID09PSB2b2lkIDApIHsKICAgICAgICAgIGludGxPcHRzID0ge307CiAgICAgICAgfQoKICAgICAgICByZXR1cm4gbmV3IFBvbHlEYXRlRm9ybWF0dGVyKGR0LCB0aGlzLmludGwsIGludGxPcHRzKTsKICAg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LAogICAgICAgICAgICAgIHZhbCA9IF9leFswXSwKICAgICAgICAgICAgICB6b25lID0gX2V4WzFdLAogICAgICAgICAgICAgIG5leHQgPSBfZXhbMl07CgogICAgICAgICAgcmV0dXJuIFtfZXh0ZW5kcyh7fSwgbWVyZ2VkVmFscywgdmFsKSwgbWVyZ2VkWm9uZSB8fCB6b25lLCBuZXh0XTsKICAgICAgICB9LCBbe30sIG51bGwsIDFdKS5zbGljZSgwLCAyKTsKICAgICAgfTsKICAgIH0KCiAgICBmdW5jdGlvbiBwYXJzZShzKSB7CiAgICAgIGlmIChzID09IG51bGwpIHsKICAgICAgICByZXR1cm4gW251bGwsIG51bGxdOwogICAgICB9CgogICAgICBmb3IgKHZhciBfbGVuMyA9IGFyZ3VtZW50cy5sZW5ndGgsIHBhdHRlcm5zID0gbmV3IEFycmF5KF9sZW4zID4gMSA/IF9sZW4zIC0gMSA6IDApLCBfa2V5MyA9IDE7IF9rZXkzIDwgX2xlbjM7IF9rZXkzKyspIHsKICAgICAgICBwYXR0ZXJuc1tfa2V5MyAtIDFdID0gYXJndW1lbnRzW19rZXkzXTsKICAgICAgfQoKICAgICAgZm9yICh2YXIgX2kgPSAwLCBfcGF0dGVybnMgPSBwYXR0ZXJuczsgX2kgPCBfcGF0dGVybnMubGVuZ3RoOyBfaSsrKSB7CiAgICAgICAgdmFyIF9wYXR0ZXJucyRfaSA9IF9wYXR0ZXJuc1tfaV0sCiAgICAgICAgICAgIHJlZ2V4ID0gX3BhdHRlcm5zJF9pWzBdLAogICAgICAgICAgICBleHRyYWN0b3IgPSBfcGF0dGVybnMkX2lbMV07CiAgICAgICAgdmFyIG0gPSByZWdleC5leGVjKHMpOwoKICAgICAgICBpZiAobSkgewogICAgICAgICAgcmV0dXJuIGV4dHJhY3RvcihtKTsKICAgICAgICB9CiAgICAgIH0KCiAgICAgIHJldHVybiBbbnVsbCwgbnVsbF07CiAgICB9CgogICAgZnVuY3Rpb24gc2ltcGxlUGFyc2UoKSB7CiAgIC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XGQpKT8vLAogICAgICAgIGlzb09yZGluYWxSZWdleCA9IC8oXGR7NH0pLT8oXGR7M30pLywKICAgICAgICBleHRyYWN0SVNPV2Vla0RhdGEgPSBzaW1wbGVQYXJzZSgid2Vla1llYXIiLCAid2Vla051bWJlciIsICJ3ZWVrRGF5IiksCiAgICAgICAgZXh0cmFjdElTT09yZGluYWxEYXRhID0gc2ltcGxlUGFyc2UoInllYXIiLCAib3JkaW5hbCIpLAogICAgICAgIHNxbFltZFJlZ2V4ID0gLyhcZHs0fSktKFxkXGQpLShcZFxkKS8sCiAgICAgICAgLy8gZHVtYmVkLWRvd24gdmVyc2lvbiBvZiB0aGUgSVNPIG9uZQogICAgc3FsVGltZVJlZ2V4ID0gUmVnRXhwKGlzb1RpbWVCYXNlUmVnZXguc291cmNlICsgIiA/KD86IiArIG9mZnNldFJlZ2V4LnNvdXJjZSArICJ8KCIgKyBpYW5hUmVnZXguc291cmNlICsgIikpPyIpLAogICAgICAgIHNxbFRpbWVFeHRlbnNpb25SZWdleCA9IFJlZ0V4cCgiKD86ICIgKyBzcWxUaW1lUmVnZXguc291cmNlICsgIik/Iik7CgogICAgZnVuY3Rpb24gaW50KG1hdGNoLCBwb3MsIGZhbGxiYWNrKSB7CiAgICAgIHZhciBtID0gbWF0Y2hbcG9zXTsKICAgICAgcmV0dXJuIGlzVW5kZWZpbmVkKG0pID8gZmFsbGJhY2sgOiBwYXJzZUludGVnZXIobSk7CiAgICB9CgogICAgZnVuY3Rpb24gZXh0cmFjdElTT1ltZChtYXRjaCwgY3Vyc29yKSB7CiAgICAgIHZhciBpdGVtID0gewogICAgICAgIHllYXI6IGludChtYXRjaCwgY3Vyc29yKSwKICAgICAgICBtb250aDogaW50KG1hdGNoLCBjdXJzb3IgKyAxLCAxKSwKICAgICAgICBkYXk6IGludChtYXRjaCwgY3Vyc29yICsgMiwgMSkKICAgICAgfTsKICAgICAgcmV0dXJuIFtpdGVtLCBudWxsLCBjdXJzb3IgKyAzXTsKICAgIH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czogMjQsCiAgICAgICAgbWludXRlczogMjQgKiA2MCwKICAgICAgICBzZWNvbmRzOiAyNCAqIDYwICogNjAsCiAgICAgICAgbWlsbGlzZWNvbmRzOiAyNCAqIDYwICogNjAgKiAxMDAwCiAgICAgIH0sCiAgICAgIGhvdXJzOiB7CiAgICAgICAgbWludXRlczogNjAsCiAgICAgICAgc2Vjb25kczogNjAgKiA2MCwKICAgICAgICBtaWxsaXNlY29uZHM6IDYwICogNjAgKiAxMDAwCiAgICAgIH0sCiAgICAgIG1pbnV0ZXM6IHsKICAgICAgICBzZWNvbmRzOiA2MCwKICAgICAgICBtaWxsaXNlY29uZHM6IDYwICogMTAwMAogICAgICB9LAogICAgICBzZWNvbmRzOiB7CiAgICAgICAgbWlsbGlzZWNvbmRzOiAxMDAwCiAgICAgIH0KICAgIH0sCiAgICAgICAgY2FzdWFsTWF0cml4ID0gX2V4dGVuZHMoewogICAgICB5ZWFyczogewogICAgICAgIHF1YXJ0ZXJzOiA0LAogICAgICAgIG1vbnRoczogMTIsCiAgICAgICAgd2Vla3M6IDUyLAogICAgICAgIGRheXM6IDM2NSwKICAgICAgICBob3VyczogMzY1ICogMjQsCiAgICAgICAgbWludXRlczogMzY1ICogMjQgKiA2MCwKICAgICAgICBzZWNvbmRzOiAzNjUgKiAyNCAqIDYwICogNjAsCiAgICAgICAgbWlsbGlzZWNvbmRzOiAzNjUgKiAyNCAqIDYwICogNjAgKiAxMDAwCiAgICAgIH0sCiAgICAgIHF1YXJ0ZXJzOiB7CiAgICAgICAgbW9udGhzOiAzLAogICAgICAgIHdlZWtzOiAxMywKICAgICAgICBkYXlzOiA5MSwKICAgICAgICBob3VyczogOTEgKiAyNCwKICAgICAgICBtaW51dGVzOiA5MSAqIDI0ICogNjAsCiAgICAgICAgc2Vjb25kczogOTEgKiAyNCAqIDYwICogNjAsCiAgICAgICAgbWlsbGlzZWNvbmRzOiA5MSAqIDI0ICogNjAgKiA2MCAqIDEwMDAKICAgICAgfSwKICAgICAgbW9udGhzOiB7CiAgICAgICAgd2Vla3M6IDQsCiAgICAgICAgZGF5czogMzAsCiAgICAgICAgaG91cnM6IDMwICogMjQsCiAgICAgICAgbWludXRlczogMzAgKiAyNCAqIDYwLAogICAgICAgIHNlY29uZHM6IDMwICogMjQgKiA2MCAqIDYwLAogICAgICAgIG1pbGxpc2Vjb25kczogMzAgKiAyNCAqIDYwICogNjAgKiAxMDAwCiAgICAgIH0KICAgIH0sIGxvd09yZGVyTWF0cml4KSwKICAgICAgICBkYXlzSW5ZZWFyQWNjdXJhdGUgPSAxNDYwOTcuMCAvIDQwMCwKICAgICAgICBkYXlzSW5Nb250aEFjY3VyYXRlID0gMTQ2MDk3LjAgLyA0ODAwLAogICAgICAgIGFjY3VyYXRlTWF0cml4ID0gX2V4dGVuZHMoewogICAgICB5ZWFyczogewogICAgICAgIHF1YXJ0ZXJzOiA0LAogICAgICAgIG1vbnRoczogMTIsCiAgICAgICAgd2Vla3M6IGRheXNJblllYXJBY2N1cmF0ZSAvIDcsCiAgICAgICAgZGF5czogZGF5c0luWWVhckFjY3VyYXRlLAogICAgICAgIGhvdXJzOiBkYXlzSW5ZZWFyQWNjdXJhdGUgKiAyNCwKICAgICAgICBtaW51dGVzOiBkYXlzSW5ZZWFyQWNjdXJhdGUgKiAyNCAqIDYwLAogICAgICAgIHNlY29uZHM6IGRheXNJblllYXJBY2N1cmF0ZSAqIDI0ICogNjAgKiA2MCwKICAgICAgICBtaWxsaXNlY29uZHM6IGRheXNJblllYXJBY2N1cmF0ZSAqIDI0ICogNjAgKiA2MCAqIDEwMDAKICAgICAgfSwKICAgICAgcXVhcnRlcnM6IHsKICAgICAgICBtb250aHM6IDMsCiAgICAgICAgd2Vla3M6IGRheXNJblllYXJBY2N1cmF0ZSAvIDI4LAogICAgICAgIGRheXM6IGRheXNJblllYXJBY2N1cmF0ZSAvIDQsCiAgICAgICAgaG91cnM6IGRheXNJblllYXJBY2N1cmF0ZSAqIDI0IC8gNCwKICAgICAgICBtaW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gOiBuZXcgSW52YWxpZChyZWFzb24sIGV4cGxhbmF0aW9uKTsKCiAgICAgICAgaWYgKFNldHRpbmdzLnRocm93T25JbnZhbGlkKSB7CiAgICAgICAgICB0aHJvdyBuZXcgSW52YWxpZER1cmF0aW9uRXJyb3IoaW52YWxpZCk7CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgIHJldHVybiBuZXcgRHVyYXRpb24oewogICAgICAgICAgICBpbnZhbGlkOiBpbnZhbGlkCiAgICAgICAgICB9KTsKICAgICAgICB9CiAgICAgIH0KICAgICAgLyoqCiAgICAgICAqIEBwcml2YXRlCiAgICAgICAqLwogICAgICA7CgogICAgICBEdXJhdGlvbi5ub3JtYWxpemVVbml0ID0gZnVuY3Rpb24gbm9ybWFsaXplVW5pdCh1bml0KSB7CiAgICAgICAgdmFyIG5vcm1hbGl6ZWQgPSB7CiAgICAgICAgICB5ZWFyOiAieWVhcnMiLAogICAgICAgICAgeWVhcnM6ICJ5ZWFycyIsCiAgICAgICAgICBxdWFydGVyOiAicXVhcnRlcnMiLAogICAgICAgICAgcXVhcnRlcnM6ICJxdWFydGVycyIsCiAgICAgICAgICBtb250aDogIm1vbnRocyIsCiAgICAgICAgICBtb250aHM6ICJtb250aHMiLAogICAgICAgICAgd2VlazogIndlZWtzIiwKICAgICAgICAgIHdlZWtzOiAid2Vla3MiLAogICAgICAgICAgZGF5OiAiZGF5cyIsCiAgICAgICAgICBkYXlzOiAiZGF5cyIsCiAgICAgICAgICBob3VyOiAiaG91cnMiLAogICAgICAgICAgaG91cnM6ICJob3VycyIsCiAgICAgICAgICBtaW51dGU6ICJtaW51dGVzIiwKICAgICAgICAgIG1pbnV0ZXM6ICJtaW51dGVzIiwKICAgICAgICAgIHNlY29uZDogInNlY29uZHMiLAogICAgICAgICAgc2Vjb25kczogInNlY29uZHMiLAogICAgICAgICAgbWlsbGlzZWNvbmQ6ICJtaWxsaXNlY29uZHMiLAogICAgICAgICAgbWlsbGlzZWNvbmRzOiAibWlsbGlzZWNvbmRzIgogICAgICAgIH1bdW5pdCA/IHVuaXQudG9Mb3dlckNhc2UoKSA6IHVuaXRdOwogICAgICAgIGlmICghbm9ybWFsaXplZCkgdGhyb3cgbmV3IEludmFsaWRVbml0RXJyb3IodW5pdCk7CiAgICAgICAgcmV0dXJuIG5vcm1hbGl6ZWQ7CiAgICAgIH0KICAgICAgLyoqCiAgICAgICAqIENoZWNrIGlmIGFuIG9iamVjdCBpcyBhIER1cmF0aW9uLiBXb3JrcyBhY3Jvc3MgY29udGV4dCBib3VuZGFyaWVzCiAgICAgICAqIEBwYXJhbSB7b2JqZWN0fSBvCiAgICAgICAqIEByZXR1cm4ge2Jvb2xlYW59CiAgICAgICAqLwogICAgICA7CgogICAgICBEdXJhdGlvbi5pc0R1cmF0aW9uID0gZnVuY3Rpb24gaXNEdXJhdGlvbihvKSB7CiAgICAgICAgcmV0dXJuIG8gJiYgby5pc0x1eG9uRHVyYXRpb24gfHwgZmFsc2U7CiAgICAgIH0KICAgICAgLyoqCiAgICAgICAqIEdldCAgdGhlIGxvY2FsZSBvZiBhIER1cmF0aW9uLCBzdWNoICdlbi1HQicKICAgICAgICogQHR5cGUge3N0cmluZ30KICAgICAgICovCiAgICAgIDsKCiAgICAgIHZhciBfcHJvdG8gPSBEdXJhdGlvbi5wcm90b3R5cGU7CgogICAgICAvKioKICAgICAgICogUmV0dXJucyBhIHN0cmluZyByZXByZXNlbnRhdGlvbiBvZiB0aGlzIER1cmF0aW9uIGZvcm1hdHRlZCBhY2NvcmRpbmcgdG8gdGhlIHNwZWNpZmllZCBmb3JtYXQgc3RyaW5nLiBZb3UgbWF5IHVzZSB0aGVzZSB0b2tlbnM6CiAgICAgICAqICogYFNgIGZvciBtaWxsaXNlY29uZHMKICAgICAgICogKiBgc2AgZm9yIHNlY29uZHMKICAgICAgICogKiBgbWAgZm9yIG1pbnV0ZXMKICAgICAgICogKiBgaGAgZm9yIGhvdXJzCiAgICAgICAqICogYGRgIGZvciBkYXlzCiAgIC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AgICAgICAgIGZvcm1hdDogImV4dGVuZGVkIgogICAgICAgIH0sIG9wdHMpOwogICAgICAgIHZhciB2YWx1ZSA9IHRoaXMuc2hpZnRUbygiaG91cnMiLCAibWludXRlcyIsICJzZWNvbmRzIiwgIm1pbGxpc2Vjb25kcyIpOwogICAgICAgIHZhciBmbXQgPSBvcHRzLmZvcm1hdCA9PT0gImJhc2ljIiA/ICJoaG1tIiA6ICJoaDptbSI7CgogICAgICAgIGlmICghb3B0cy5zdXBwcmVzc1NlY29uZHMgfHwgdmFsdWUuc2Vjb25kcyAhPT0gMCB8fCB2YWx1ZS5taWxsaXNlY29uZHMgIT09IDApIHsKICAgICAgICAgIGZtdCArPSBvcHRzLmZvcm1hdCA9PT0gImJhc2ljIiA/ICJzcyIgOiAiOnNzIjsKCiAgICAgICAgICBpZiAoIW9wdHMuc3VwcHJlc3NNaWxsaXNlY29uZHMgfHwgdmFsdWUubWlsbGlzZWNvbmRzICE9PSAwKSB7CiAgICAgICAgICAgIGZtdCArPSAiLlNTUyI7CiAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICB2YXIgc3RyID0gdmFsdWUudG9Gb3JtYXQoZm10KTsKCiAgICAgICAgaWYgKG9wdHMuaW5jbHVkZVByZWZpeCkgewogICAgICAgICAgc3RyID0gIlQiICsgc3RyOwogICAgICAgIH0KCiAgICAgICAgcmV0dXJuIHN0cjsKICAgICAgfQogICAgICAvKioKICAgICAgICogUmV0dXJucyBhbiBJU08gODYwMSByZXByZXNlbnRhdGlvbiBvZiB0aGlzIER1cmF0aW9uIGFwcHJvcHJpYXRlIGZvciB1c2UgaW4gSlNPTi4KICAgICAgICogQHJldHVybiB7c3RyaW5nfQogICAgICAgKi8KICAgICAgOwoKICAgICAgX3Byb3RvLnRvSlNPTiA9IGZ1bmN0aW9uIHRvSlNPTigpIHsKICAgICAgICByZXR1cm4gdGhpcy50b0lTTygpOwogICAgICB9CiAgICAgIC8qKgogICAgICAgKiBSZXR1cm5zIGFuIElTT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AgfQogICAgICAgKiBAcmV0dXJuIHtEdXJhdGlvbn0KICAgICAgICovCiAgICAgIDsKCiAgICAgIF9wcm90by5tYXBVbml0cyA9IGZ1bmN0aW9uIG1hcFVuaXRzKGZuKSB7CiAgICAgICAgaWYgKCF0aGlzLmlzVmFsaWQpIHJldHVybiB0aGlzOwogICAgICAgIHZhciByZXN1bHQgPSB7fTsKCiAgICAgICAgZm9yICh2YXIgX2kgPSAwLCBfT2JqZWN0JGtleXMgPSBPYmplY3Qua2V5cyh0aGlzLnZhbHVlcyk7IF9pIDwgX09iamVjdCRrZXlzLmxlbmd0aDsgX2krKykgewogICAgICAgICAgdmFyIGsgPSBfT2JqZWN0JGtleXNbX2ldOwogICAgICAgICAgcmVzdWx0W2tdID0gYXNOdW1iZXIoZm4odGhpcy52YWx1ZXNba10sIGspKTsKICAgICAgICB9CgogICAgICAgIHJldHVybiBjbG9uZSQxKHRoaXMsIHsKICAgICAgICAgIHZhbHVlczogcmVzdWx0CiAgICAgICAgfSwgdHJ1ZSk7CiAgICAgIH0KICAgICAgLyoqCiAgICAgICAqIEdldCB0aGUgdmFsdWUgb2YgdW5pdC4KICAgICAgICogQHBhcmFtIHtzdHJpbmd9IHVuaXQgLSBhIHVuaXQgc3VjaCBhcyAnbWludXRlJyBvciAnZGF5JwogICAgICAgKiBAZXhhbXBsZSBEdXJhdGlvbi5mcm9tT2JqZWN0KHt5ZWFyczogMiwgZGF5czogM30pLmdldCgneWVhcnMnKSAvLz0+IDIKICAgICAgICogQGV4YW1wbGUgRHVyYXRpb24uZnJvbU9iamVjdCh7eWVhcnM6IDIsIGRheXM6IDN9KS5nZXQoJ21vbnRocycpIC8vPT4gMAogICAgICAgKiBAZXhhbXBsZSBEdXJhdGlvbi5mcm9tT2JqZWN0KHt5ZWFyczogMiwgZGF5czogM30pLmdldCgnZGF5cycpIC8vPT4gMwogICAgICAgKiBAcmV0dXJuIHtudW1iZXJ9CiAgICAgICAqLwogICAgICA7CgogICAgICBfcHJvdG8uZ2V0ID0gZnVuY3Rpb24gZ2V0KHVuaXQpIHsKICAgICAgICByZXR1cm4gdGhpc1tEdXJhdGlvbi5ub3JtYWxpemVVbml0KHVuaXQpXTsKICAgICAgfQogICAgICAvKioKICAgICAgICogIlNldCIgdGhlIHZhbHVlcyBvZiBzcGVjaWZpZWQgdW5pdHMuIFJldHVybiBhIG5ld2x5LWNvbnN0cnVjdGVkIER1cmF0aW9uLgogICAgICAgKiBAcGFyYW0ge09iamVjdH0gdmFsdWVzIC0gYSBtYXBwaW5nIG9mIHVuaXRzIHRvIG51bWJlcnMKICAgICAgICogQGV4YW1wbGUgZHVyLnNldCh7IHllYXJzOiAyMDE3IH0pCiAgICAgICAqIEBleGFtcGxlIGR1ci5zZXQoeyBob3VyczogOCwgbWludXRlczogMzAgfSkKICAgICAgICogQHJldHVybiB7RHVyYXRpb259CiAgICAgICAqLwogICAgICA7CgogICAgICBfcHJvdG8uc2V0ID0gZnVuY3Rpb24gc2V0KHZhbHVlcykgewogICAgICAgIGlmICghdGhpcy5pc1ZhbGlkKSByZXR1cm4gdGhpczsKCiAgICAgICAgdmFyIG1peGVkID0gX2V4dGVuZHMoe30sIHRoaXMudmFsdWVzLCBub3JtYWxpemVPYmplY3QodmFsdWVzLCBEdXJhdGlvbi5ub3JtYWxpemVVbml0KSk7CgogICAgICAgIHJldHVybiBjbG9uZSQxKHRoaXMsIHsKICAgICAgICAgIHZhbHVlczogbWl4ZWQKICAgICAgICB9KTsKICAgICAgfQogICAgICAvKioKICAgICAgICogIlNldCIgdGhlIGxvY2FsZSBhbmQvb3IgbnVtYmVyaW5nU3lzdGVtLiAgUmV0dXJucyBhIG5ld2x5LWNvbnN0cnVjdGVkIER1cmF0aW9uLgogICAgICAgKiBAZXhhbXBsZSBkdXIucmVjb25maWd1cmUoeyBsb2NhbGU6ICdlbi1HQicgfSkKICAgICAgICogQHJldHVybiB7RHVyYXRpb259CiAgICAgICAqLwogICAgICA7CgogICAgICBfcHJvdG8ucmVjb25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hbXBsZSBEdXJhdGlvbi5mcm9tT2JqZWN0KHtob3VyczogNjB9KS5hcygnZGF5cycpIC8vPT4gMi41CiAgICAgICAqIEByZXR1cm4ge251bWJlcn0KICAgICAgICovCiAgICAgIDsKCiAgICAgIF9wcm90by5hcyA9IGZ1bmN0aW9uIGFzKHVuaXQpIHsKICAgICAgICByZXR1cm4gdGhpcy5pc1ZhbGlkID8gdGhpcy5zaGlmdFRvKHVuaXQpLmdldCh1bml0KSA6IE5hTjsKICAgICAgfQogICAgICAvKioKICAgICAgICogUmVkdWNlIHRoaXMgRHVyYXRpb24gdG8gaXRzIGNhbm9uaWNhbCByZXByZXNlbnRhdGlvbiBpbiBpdHMgY3VycmVudCB1bml0cy4KICAgICAgICogQGV4YW1wbGUgRHVyYXRpb24uZnJvbU9iamVjdCh7IHllYXJzOiAyLCBkYXlzOiA1MDAwIH0pLm5vcm1hbGl6ZSgpLnRvT2JqZWN0KCkgLy89PiB7IHllYXJzOiAxNSwgZGF5czogMjU1IH0KICAgICAgICogQGV4YW1wbGUgRHVyYXRpb24uZnJvbU9iamVjdCh7IGhvdXJzOiAxMiwgbWludXRlczogLTQ1IH0pLm5vcm1hbGl6ZSgpLnRvT2JqZWN0KCkgLy89PiB7IGhvdXJzOiAxMSwgbWludXRlczogMTUgfQogICAgICAgKiBAcmV0dXJuIHtEdXJhdGlvbn0KICAgICAgICovCiAgICAgIDsKCiAgICAgIF9wcm90by5ub3JtYWxpemUgPSBmdW5jdGlvbiBub3JtYWxpemUoKSB7CiAgICAgICAgaWYgKCF0aGlzLmlzVmFsaWQpIHJldHVybiB0aGlzOwogICAgICAgIHZhciB2YWxzID0gdGhpcy50b09iamVjdCgpOwogICAgICAgIG5vcm1hbGl6ZVZhbHVlcyh0aGlzLm1hdHJpeCwgdmFscyk7CiAgICAgICAgcmV0dXJuIGNsb25lJDEodGhpcywgewogICAgICAgICAgdmFsdWVzOiB2YWxzCiAgICAgICAgfSwgdHJ1ZSk7CiAgICAgIH0KICAgICAgLyoqCiAgICAgICAqIENvbnZlcnQgdGhpcyBEdXJhdGlvbiBpbnRvIGl0cyByZXByZXNlbnRhdGlvbiBpbiBhIGRpZmZlcmVudCBzZXQgb2YgdW5pdHMuCiAgICAgICAqIEBleGFtcGxlIER1cmF0aW9uLmZyb21PYmplY3QoeyBob3VyczogMSwgc2Vjb25kczogMzAgfSkuc2hpZnRUbygnbWludXRlcycsICdtaWxsaXNlY29uZHMnKS50b09iamVjdCgpIC8vPT4geyBtaW51dGVzOiA2MCwgbWlsbGlzZWNvbmRzOiAzMDAwMCB9CiAgICAgICAqIEByZXR1cm4ge0R1cmF0aW9ufQogICAgICAgKi8KICAgICAgOwoKICAgICAgX3Byb3RvLnNoaWZ0VG8gPSBmdW5jdGlvbiBzaGlmdFRvKCkgewogICAgICAgIGZvciAodmFyIF9sZW4gPSBhcmd1bWVudHMubGVuZ3RoLCB1bml0cyA9IG5ldyBBcnJheShfbGVuKSwgX2tleSA9IDA7IF9rZXkgPCBfbGVuOyBfa2V5KyspIHsKICAgICAgICAgIHVuaXRzW19rZXldID0gYXJndW1lbnRzW19rZXldOwogICAgICAgIH0KCiAgICAgICAgaWYgKCF0aGlzLmlzVmFsaWQpIHJldHVybiB0aGlzOwoKICAgICAgICBpZiAodW5pdHMubGVuZ3RoID09PSAwKSB7CiAgICAgICAgICByZXR1cm4gdGhpczsKICAgICAgICB9CgogICAgICAgIHVuaXRzID0gdW5pdHMubWFwKGZ1bmN0aW9uICh1KSB7CiAgICAgICAgICByZXR1cm4gRHVyYXRpb24ubm9ybWFsaXplVW5pdCh1KTsKICAgICAgICB9KTsKICAgICAgICB2YXIgYnVpbHQgPSB7fSwKICAgICAgICAgICAgYWNjdW11bGF0ZWQgPSB7fSwKICAgICAgICAgICAgdmFscyA9IHRoaXMudG9PYmplY3QoKTsKICAgICAgICB2YXIgbGFzdFVuaXQ7CgogICAgICAgIGZvciAodmFyIF9pdGVyYXRvcjIgPSBfY3JlYXRlRm9yT2ZJdGVyYXRvckhlbHBlckxvb3NlKG9yZGVyZWRVbml0cyQxKSwgX3N0ZXAyOyAhKF9zdGVwMiA9IF9pdGVyYXRvcjIoKSkuZG9uZTspIHsKICAgICAgICAgIHZhciBrID0gX3N0ZXAyLnZhbHVlOwoKICAgICAgICAgIGlmICh1bml0cy5pbmRleE9mKGspID49IDApIHsKICAgICAgICAgICAgbGFzdFVuaXQgPSBrOwogICAgICAgICAgICB2YXIgb3duID0gMDsgLy8gYW55dGhpbmcgd2UgaGF2ZW4ndCBib2lsZWQgZG93biB5ZXQgc2hvdWxkIGdldCBib2lsZWQgdG8gdGhpcyB1bml0CgogICAgICAgICAgICBmb3IgKHZhciBhayBpbiBhY2N1bXVsYXRlZCkgewogICAgICAgICAgICAgIG93biArPSB0aGlzLm1hdHJpeFtha11ba10gKiBhY2N1bXVsYXRlZFtha107CiAgICAgICAgICAgICAgYWNjdW11bGF0ZWRbYWtdID0gMDsKICAgICAgICAgICAgfSAvLyBwbHVzIGFueXRoaW5nIHRoYXQncyBhbHJlYWR5IGluIHRoaXMgdW5pdAoKCiAgICAgICAgICAgIGlmIChpc051bWJlcih2YWxzW2tdKSkgewogICAgICAgICAgICAgIG93biArPSB2YWxzW2tdOwogICAgICAgICAgICB9CgogICAgICAgICAgICB2YXIgaSA9IE1hdGgudHJ1bmMob3duKTsKICAgICAgICAgICAgYnVpbHRba10gPSBpOwogICAgICAgICAgICBhY2N1bXVsYXRlZFtrXSA9IG93biAtIGk7IC8vIHdlJ2QgbGlrZSB0byBhYnNvcmIgdGhlc2UgZnJhY3Rpb25zIGluIGFub3RoZXIgdW5pdAogICAgICAgICAgICAvLyBwbHVzIGFueXRoaW5nIGZ1cnRoZXIgZG93biB0aGUgY2hhaW4gdGhhdCBzaG91bGQgYmUgcm9sbGVkIHVwIGluIHRvIHRoaXMKCiAgICAgICAgICAgIGZvciAodmFyIGRvd24gaW4gdmFscykgewogICAgICAgICAgICAgIGlmIChvcmRlcmVkVW5pdHMkMS5pbmRleE9m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gpLnRvT2JqZWN0KCkgLy89PiB7IGhvdXJzOiAtMSwgc2Vjb25kczogLTMwIH0KICAgICAgICogQHJldHVybiB7RHVyYXRpb259CiAgICAgICAqLwogICAgICA7CgogICAgICBfcHJvdG8ubmVnYXRlID0gZnVuY3Rpb24gbmVnYXRlKCkgewogICAgICAgIGlmICghdGhpcy5pc1ZhbGlkKSByZXR1cm4gdGhpczsKICAgICAgICB2YXIgbmVnYXRlZCA9IHt9OwoKICAgICAgICBmb3IgKHZhciBfaTIgPSAwLCBfT2JqZWN0JGtleXMyID0gT2JqZWN0LmtleXModGhpcy52YWx1ZXMpOyBfaTIgPCBfT2JqZWN0JGtleXMyLmxlbmd0aDsgX2kyKyspIHsKICAgICAgICAgIHZhciBrID0gX09iamVjdCRrZXlzMltfaTJdOwogICAgICAgICAgbmVnYXRlZFtrXSA9IC10aGlzLnZhbHVlc1trXTsKICAgICAgICB9CgogICAgICAgIHJldHVybiBjbG9uZSQxKHRoaXMsIHsKICAgICAgICAgIHZhbHVlczogbmVnYXRlZAogICAgICAgIH0sIHRydWUpOwogICAgICB9CiAgICAgIC8qKgogICAgICAgKiBHZXQgdGhlIHllYXJzLgogICAgICAgKiBAdHlwZSB7bnVtYmVyfQogICAgICAgKi8KICAgICAgOwoKICAgICAgLyoqCiAgICAgICAqIEVxdWFsaXR5IGNoZWNrCiAgICAgICAqIFR3byBEdXJhdGlvbnMgYXJlIGVxdWFsIGlmZiB0aGV5IGhhdmUgdGhlIHNhbWUgdW5pdHMgYW5kIHRoZSBzYW1lIHZhbHVlcyBmb3IgZWFjaCB1bml0LgogICAgICAgKiBAcGFyYW0ge0R1cmF0aW9ufSBvdGhlcgogICAgICAgKiBAcmV0dXJuIHtib29sZWFufQogICAgICAgKi8KICAgICAgX3Byb3RvLmVxdWFscyA9IGZ1bmN0aW9uIGVxdWFscyhvdGhlcikgewogICAgICAgIGlmICghdGhpcy5pc1ZhbGlkIHx8ICFvdGhlci5pc1ZhbGlkKSB7CiAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfQoKICAgICAgICBpZiAoIXRoaXMubG9jLmVxdWFscyhvdGhlci5sb2MpKSB7CiAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgfQoKICAgICAgICBmdW5jdGlvbiBlcSh2MSwgdjIpIHsKICAgICAgICAgIC8vIENvbnNpZGVyIDAgYW5kIHVuZGVmaW5lZCBhcyBlcXVhbAogICAgICAgICAgaWYgKHYxID09PSB1bmRlZmluZWQgfHwgdjEgPT09IDApIHJldHVybiB2MiA9PT0gdW5kZWZpbmVkIHx8IHYyID09PSAwOwogICAgICAgICAgcmV0dXJuIHYxID09PSB2MjsKICAgICAgICB9CgogICAgICAgIGZvciAodmFyIF9pdGVyYXRvcjMgPSBfY3JlYXRlRm9yT2ZJdGVyYXRvckhlbHBlckxvb3NlKG9yZGVyZWRVbml0cyQxKSwgX3N0ZXAzOyAhKF9zdGVwMyA9IF9pdGVyYXRvcjMoKSkuZG9uZTspIHsKICAgICAgICAgIHZhciB1ID0gX3N0ZXAzLnZhbHVlOwoKICAgICAgICAgIGlmICghZXEodGhpcy52YWx1ZXNbdV0sIG90aGVyLnZhbHVlc1t1XSkpIHsKICAgICAgICAgICAgcmV0dXJuIGZhbHNlOwogICAgICAgICAgfQogICAgICAgIH0KCiAgICAgICAgcmV0dXJuIHRydWU7CiAgICAgIH07CgogICAgICBfY3JlYXRlQ2xhc3MoRHVyYXRpb24sIFt7CiAgICAgICAga2V5OiAibG9jYWxlIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiB0aGlzLmlzVmFsaWQgPyB0aGlzLmxvYy5sb2NhbGUgOiBudWxsOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiBHZXQgdGhlIG51bWJlcmluZyBzeXN0ZW0gb2YgYSBEdXJhdGlvbiwgc3VjaCAnYmVuZycuIFRoZSBudW1iZXJpbmcgc3lzdGVtIGlzIHVzZWQgd2hlbiBmb3JtYXR0aW5nIHRoZSBEdXJhdGlvbgogICAgICAgICAqCiAgICAgICAgICogQHR5cGUge3N0cmluZ30KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJudW1iZXJpbmdTeXN0ZW0iLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIHRoaXMuaXNWYWxpZCA/IHRoaXMubG9jLm51bWJlcmluZ1N5c3RlbSA6IG51bGw7CiAgICAgICAgfQogICAgICB9LCB7CiAgICAgICAga2V5OiAieWVhcnMiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIHRoaXMuaXNWYWxpZCA/IHRoaXMudmFsdWVzLnllYXJzIHx8IDAgOiBOYU47CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIEdldCB0aGUgcXVhcnRlcnMuCiAgICAgICAgICogQHR5cGUge251bWJlcn0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJxdWFydGVycyIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gdGhpcy5pc1ZhbGlkID8gdGhpcy52YWx1ZXMucXVhcnRlcnMgfHwgMCA6IE5hTjsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICogR2V0IHRoZSBtb250aHMuCiAgICAgICAgICogQHR5cGUge251bWJlcn0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJtb250aHMiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIHRoaXMuaXNWYWxpZCA/IHRoaXMudmFsdWVzLm1vbnRocyB8fCAwIDogTmFOOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiBHZXQgdGhlIHdlZWtzCiAgICAgICAgICogQHR5cGUge251bWJlcn0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJ3ZWVrcyIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gdGhpcy5pc1ZhbGlkID8gdGhpcy52YWx1ZXMud2Vla3MgfHwgMCA6IE5hTjsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICogR2V0IHRoZSBkYXlzLgogICAgICAgICAqIEB0eXBlIHtudW1iZXJ9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAiZGF5cyIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gdGhpcy5pc1ZhbGlkID8gdGhpcy52YWx1ZXMuZGF5cyB8fCAwIDogTmFOOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiBHZXQgdGhlIGhvdXJzLgogICAgICAgICAqIEB0eXBlIHtudW1iZXJ9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAiaG91cnMiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIHRoaXMuaXNWYWxpZCA/IHRoaXMudmFsdWVzLmhvdXJzIHx8IDAgOiBOYU47CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIEdldCB0aGUgbWludXRlcy4KICAgICAgICAgKiBAdHlwZSB7bnVtYmVyfQogICAgICAgICAqLwoKICAgICAgfSwgewogICAgICAgIGtleTogIm1pbnV0ZXMiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIHRoaXMuaXNWYWxpZCA/IHRoaXMudmFsdWVzLm1pbnV0ZXMgfHwgMCA6IE5hTjsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICogR2V0IHRoZSBzZWNvbmRzLgogICAgICAgICAqIEByZXR1cm4ge251bWJlcn0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJzZWNvbmRzIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiB0aGlzLmlzVmFsaWQgPyB0aGlzLnZhbHVlcy5zZWNvbmRzIHx8IDAgOiBOYU47CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIEdldCB0aGUgbWlsbGlzZWNvbmRzLgogICAgICAgICAqIEByZXR1cm4ge251bWJlcn0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJtaWxsaXNlY29uZHMiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIHRoaXMuaXNWYWxpZCA/IHRoaXMudmFsdWVzLm1pbGxpc2Vjb25kcyB8fCAwIDogTmFOOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiBSZXR1cm5zIHdoZXRoZXIgdGhlIER1cmF0aW9uIGlzIGludmFsaWQuIEludmFsaWQgZHVyYXRpb25zIGFyZSByZXR1cm5lZCBieSBkaWZmIG9wZXJhdGlvbnMKICAgICAgICAgKiBvbiBpbnZhbGlkIERhdGVUaW1lcyBvciBJbnRlcnZhbHMuCiAgICAgICAgICogQHJldHVybiB7Ym9vbGVhbn0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJpc1ZhbGlkIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiB0aGlzLmludmFsaWQgPT09IG51bGw7CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIFJldHVybnMgYW4gZXJyb3IgY29kZSBpZiB0aGlzIER1cmF0aW9uIGJlY2FtZSBpbnZhbGlkLCBvciBudWxsIGlmIHRoZSBEdXJhdGlvbiBpcyB2YWxpZAogICAgICAgICAqIEByZXR1cm4ge3N0cmluZ30KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJpbnZhbGlkUmVhc29uIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiB0aGlzLmludmFsaWQgPyB0aGlzLmludmFsaWQucmVhc29uIDogbnVsbDsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICogUmV0dXJucyBhbiBleHBsYW5hdGlvbiBvZiB3aHkgdGhpcyBEdXJhdGlvbiBiZWNhbWUgaW52YWxpZCwgb3IgbnVsbCBpZiB0aGUgRHVyYXRpb24gaXMgdmFsaWQKICAgICAgICAgKiBAdHlwZSB7c3RyaW5nfQogICAgICAgICAqLwoKICAgICAgfSwgewogICAgICAgIGtleTogImludmFsaWRFeHBsYW5hdGlvbiIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gdGhpcy5pbnZhbGlkID8gdGhpcy5pbnZhbGlkLmV4cGxhbmF0aW9uIDogbnVsbDsKICAgICAgICB9CiAgICAgIH1dKTsKCiAgICAgIHJldHVybiBEdXJhdGlvbjsKICAgIH0oKTsKICAgIGZ1bmN0aW9uIGZyaWVuZGx5RHVyYXRpb24oZHVyYXRpb25pc2gpIHsKICAgICAgaWYgKGlzTnVtYmVyKGR1cmF0aW9uaXNoKSkgewogICAgICAgIHJldHVybiBEdXJhdGlvbi5mcm9tTWlsbGlzKGR1cmF0aW9uaXNoKTsKICAgICAgfSBlbHNlIGlmIChEdXJhdGlvbi5pc0R1cmF0aW9uKGR1cmF0aW9uaXNoKSkgewogICAgICAgIHJldHVybiBkdXJhdGlvbmlzaDsKICAgICAgfSBlbHNlIGlmICh0eXBlb2YgZHVyYXRpb25pc2ggPT09ICJvYmplY3QiKSB7CiAgICAgICAgcmV0dXJuIER1cmF0aW9uLmZyb21PYmplY3QoZHVyYXRpb25pc2gpOwogICAgICB9IGVsc2UgewogICAgICAgIHRocm93IG5ldyBJbnZhbGlkQXJndW1lbnRFcnJvcigiVW5rbm93biBkdXJhd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ICAgICAgICAgKi8KICAgICAgICB0aGlzLnMgPSBjb25maWcuc3RhcnQ7CiAgICAgICAgLyoqCiAgICAgICAgICogQGFjY2VzcyBwcml2YXRlCiAgICAgICAgICovCgogICAgICAgIHRoaXMuZSA9IGNvbmZpZy5lbmQ7CiAgICAgICAgLyoqCiAgICAgICAgICogQGFjY2VzcyBwcml2YXRlCiAgICAgICAgICovCgogICAgICAgIHRoaXMuaW52YWxpZCA9IGNvbmZpZy5pbnZhbGlkIHx8IG51bGw7CiAgICAgICAgLyoqCiAgICAgICAgICogQGFjY2VzcyBwcml2YXRlCiAgICAgICAgICovCgogICAgICAgIHRoaXMuaXNMdXhvbkludGVydmFsID0gdHJ1ZTsKICAgICAgfQogICAgICAvKioKICAgICAgICogQ3JlYXRlIGFuIGludmFsaWQgSW50ZXJ2YWwuCiAgICAgICAqIEBwYXJhbSB7c3RyaW5nfSByZWFzb24gLSBzaW1wbGUgc3RyaW5nIG9mIHdoeSB0aGlzIEludGVydmFsIGlzIGludmFsaWQuIFNob3VsZCBub3QgY29udGFpbiBwYXJhbWV0ZXJzIG9yIGFueXRoaW5nIGVsc2UgZGF0YS1kZXBlbmRlbnQKICAgICAgICogQHBhcmFtIHtzdHJpbmd9IFtleHBsYW5hdGlvbj1udWxsXSAtIGxvbmdlciBleHBsYW5hdGlvbiwgbWF5IGluY2x1ZGUgcGFyYW1ldGVycyBhbmQgb3RoZXIgdXNlZnVsIGRlYnVnZ2luZyBpbmZvcm1hdGlvbgogICAgICAgKiBAcmV0dXJuIHtJbnRlcnZhbH0KICAgICAgICovCgoKICAgICAgSW50ZXJ2YWwuaW52YWxpZCA9IGZ1bmN0aW9uIGludmFsaWQocmVhc29uLCBleHBsYW5hdGlvbikgewogICAgICAgIGlmIChleHBsYW5hdGlvbiA9PT0gdm9pZCAwKSB7CiAgICAgICAgICBleHBsYW5hdGlvbiA9IG51bGw7CiAgICAgICAgfQoKICAgICAgICBpZiAoIXJlYXNvbikgewogICAgICAgICAgdGhyb3cgbmV3IEludmFsaWRBcmd1bWVudEVycm9yKCJuZWVkIHRvIHNwZWNpZnkgYSByZWFzb24gdGhlIEludGVydmFsIGlzIGludmFsaWQiKTsKICAgICAgICB9CgogICAgICAgIHZhciBpbnZhbGlkID0gcmVhc29uIGluc3RhbmNlb2YgSW52YWxpZCA/IHJlYXNvbiA6IG5ldyBJbnZhbGlkKHJlYXNvbiwgZXhwbGFuYXRpb24pOwoKICAgICAgICBpZiAoU2V0dGluZ3MudGhyb3dPbkludmFsaWQpIHsKICAgICAgICAgIHRocm93IG5ldyBJbnZhbGlkSW50ZXJ2YWxFcnJvcihpbnZhbGlkKTsKICAgICAgICB9IGVsc2UgewogICAgICAgICAgcmV0dXJuIG5ldyBJbnRlcnZhbCh7CiAgICAgICAgICAgIGludmFsaWQ6IGludmFsaWQKICAgICAgICAgIH0pOwogICAgICAgIH0KICAgICAgfQogICAgICAvKioKICAgICAgICogQ3JlYXRlIGFuIEludGVydmFsIGZyb20gYSBzdGFydCBEYXRlVGltZSBhbmQgYW4gZW5kIERhdGVUaW1lLiBJbmNsdXNpdmUgb2YgdGhlIHN0YXJ0IGJ1dCBub3QgdGhlIGVuZC4KICAgICAgICogQHBhcmFtIHtEYXRlVGltZXxEYXRlfE9iamVjdH0gc3RhcnQKICAgICAgICogQHBhcmFtIHtEYXRlVGltZXxEYXRlfE9iamVjdH0gZW5kCiAgICAgICAqIEByZXR1cm4ge0ludGVydmFsfQogICAgICAgKi8KICAgICAgOwoKICAgICAgSW50ZXJ2YWwuZnJvbURhdGVUaW1lcyA9IGZ1bmN0aW9uIGZyb21EYXRlVGltZXMoc3RhcnQsIGVuZCkgewogICAgICAgIHZhciBidWlsdFN0YXJ0ID0gZnJpZW5kbHlEYXRlVGltZShzdGFydCksCiAgICAgICAgICAgIGJ1aWx0RW5kID0gZnJpZW5kbHlEYXRlVGltZShlbmQpOwogICAgICAgIHZhciB2YWxpZGF0ZUVycm9yID0gdmFsaWRhdGVTdGFydEVuZChidWlsdFN0YXJ0LCBidWlsdEVuZCk7CgogICAgICAgIGlmICh2YWxpZGF0ZUVycm9yID09IG51bGwpIHsKICAgICAgICAgIHJldHVybiBuZXcgSW50ZXJ2YWwoewogICAgICAgICAgICBzdGFydDogYnVpbHRTdGFydCwKICAgICAgICAgICAgZW5kOiBidWlsdEVuZAogICAgICAgICAgfSk7CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgIHJldHVybiB2YWxpZGF0ZUVycm9yOwogICAgICAgIH0KICAgICAgfQogICAgICAvKioKICAgICAgICogQ3JlYXRlIGFuIEludGVydmFsIGZyb20gYSBzdGFydCBEYXRlVGltZSBhbmQgYSBEdXJhdGlvbiB0byBleHRlbmQgdG8uCiAgICAgICAqIEBwYXJhbSB7RGF0ZVRpbWV8RGF0ZXxPYmplY3R9IHN0YXJ0CiAgICAgICAqIEBwYXJhbSB7RHVyYXRpb258T2JqZWN0fG51bWJlcn0gZHVyYXRpb24gLSB0aGUgbGVuZ3RoIG9mIHRoZSBJbnRlcnZhbC4KICAgICAgICogQHJldHVybiB7SW50ZXJ2YWx9CiAgICAgICAqLwogICAgICA7CgogICAgICBJbnRlcnZhbC5hZnRlciA9IGZ1bmN0aW9uIGFmdGVyKHN0YXJ0LCBkdXJhdGlvbikgewogICAgICAgIHZhciBkdXIgPSBmcmllbmRseUR1cmF0aW9uKGR1cmF0aW9uKSwKICAgICAgICAgICAgZHQgPSBmcmllbmRseURhdGVUaW1lKHN0YXJ0KTsKICAgICAgICByZXR1cm4gSW50ZXJ2YWwuZnJvbURhdGVUaW1lcyhkdCwgZHQucGx1cyhkdXIpKTsKICAgICAgfQogICAgICAvKioKICAgICAgICogQ3JlYXRlIGFuIEludGVydmFsIGZyb20gYW4gZW5kIERhdGVUaW1lIGFuZCBhIER1cmF0aW9uIHRvIGV4dGVuZCBiYWNrd2FyZHMgdG8uCiAgICAgICAqIEBwYXJhbSB7RGF0ZVRpbWV8RGF0ZXxPYmplY3R9IGVuZAogICAgICAgKiBAcGF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RleHQgfHwgIiIpLnNwbGl0KCIvIiwgMiksCiAgICAgICAgICAgIHMgPSBfc3BsaXRbMF0sCiAgICAgICAgICAgIGUgPSBfc3BsaXRbMV07CgogICAgICAgIGlmIChzICYmIGUpIHsKICAgICAgICAgIHZhciBzdGFydCwgc3RhcnRJc1ZhbGlkOwoKICAgICAgICAgIHRyeSB7CiAgICAgICAgICAgIHN0YXJ0ID0gRGF0ZVRpbWUuZnJvbUlTTyhzLCBvcHRzKTsKICAgICAgICAgICAgc3RhcnRJc1ZhbGlkID0gc3RhcnQuaXNWYWxpZDsKICAgICAgICAgIH0gY2F0Y2ggKGUpIHsKICAgICAgICAgICAgc3RhcnRJc1ZhbGlkID0gZmFsc2U7CiAgICAgICAgICB9CgogICAgICAgICAgdmFyIGVuZCwgZW5kSXNWYWxpZDsKCiAgICAgICAgICB0cnkgewogICAgICAgICAgICBlbmQgPSBEYXRlVGltZS5mcm9tSVNPKGUsIG9wdHMpOwogICAgICAgICAgICBlbmRJc1ZhbGlkID0gZW5kLmlzVmFsaWQ7CiAgICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIGVuZElzVmFsaWQgPSBmYWxzZTsKICAgICAgICAgIH0KCiAgICAgICAgICBpZiAoc3RhcnRJc1ZhbGlkICYmIGVuZElzVmFsaWQpIHsKICAgICAgICAgICAgcmV0dXJuIEludGVydmFsLmZyb21EYXRlVGltZXMoc3RhcnQsIGVuZCk7CiAgICAgICAgICB9CgogICAgICAgICAgaWYgKHN0YXJ0SXNWYWxpZCkgewogICAgICAgICAgICB2YXIgZHVyID0gRHVyYXRpb24uZnJvbUlTTyhlLCBvcHRzKTsKCiAgICAgICAgICAgIGlmIChkdXIuaXNWYWxpZCkgewogICAgICAgICAgICAgIHJldHVybiBJbnRlcnZhbC5hZnRlcihzdGFydCwgZHVyKTsKICAgICAgICAgICAgfQogICAgICAgICAgfSBlbHNlIGlmIChlbmRJc1ZhbGlkKSB7CiAgICAgICAgICAgIHZhciBfZHVyID0gRHVyYXRpb24uZnJvbUlTTyhzLCBvcHRzKTsKCiAgICAgICAgICAgIGlmIChfZHVyLmlzVmFsaWQpIHsKICAgICAgICAgICAgICByZXR1cm4gSW50ZXJ2YWwuYmVmb3JlKGVuZCwgX2R1cik7CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIHJldHVybiBJbnRlcnZhbC5pbnZhbGlkKCJ1bnBhcnNhYmxlIiwgInRoZSBpbnB1dCBcIiIgKyB0ZXh0ICsgIlwiIGNhbid0IGJlIHBhcnNlZCBhcyBJU08gODYwMSIpOwogICAgICB9CiAgICAgIC8qKgogICAgICAgKiBDaGVjayBpZiBhbiBvYmplY3QgaXMgYW4gSW50ZXJ2YWwuIFdvcmtzIGFjcm9zcyBjb250ZXh0IGJvdW5kYXJpZXMKICAgICAgICogQHBhcmFtIHtvYmplY3R9IG8KICAgICAgICogQHJldHVybiB7Ym9vbGVhbn0KICAgICAgICovCiAgICAgIDsKCiAgICAgIEludGVydmFsLmlzSW50ZXJ2YWwgPSBmdW5jdGlvbiBpc0ludGVydmFsKG8pIHsKICAgICAgICByZXR1cm4gbyAmJiBvLmlzTHV4b25JbnRlcnZhbCB8fCBmYWxzZTsKICAgICAgfQogICAgICAvKioKICAgICAgICogUmV0dXJucyB0aGUgc3RhcnQgb2YgdGhlIEludGVydmFsCiAgICAgICAqIEB0eXBlIHtEYXRlVGltZX0KICAgICAgICovCiAgICAgIDsKCiAgICAgIHZhciBfcHJvdG8gPSBJbnRlcnZhbC5wcm90b3R5cGU7CgogICAgICAvKioKICAgICAgICogUmV0dXJucyB0aGUgbGVuZ3RoIG9mIHRoZSBJbnRlcnZhbCBpbiB0aGUgc3BlY2lmaWVkIHVuaXQuCiAgICAgICAqIEBwYXJhbSB7c3RyaW5nfSB1bml0IC0gdGhlIHVuaXQgKHN1Y2ggYXMgJ2hvdXJzJyBvciAnZGF5cycpIHRvIHJldHVybiB0aGUgbGVuZ3RoIGluLgogICAgIC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WUgaXMgZ3JvdXBlZCBpbnRvIGEgc21hbGxlciBpbnRlcnZhbAogICAgICAgKiBAcGFyYW0ge0R1cmF0aW9ufE9iamVjdHxudW1iZXJ9IGR1cmF0aW9uIC0gVGhlIGxlbmd0aCBvZiBlYWNoIHJlc3VsdGluZyBpbnRlcnZhbC4KICAgICAgICogQHJldHVybiB7QXJyYXl9CiAgICAgICAqLwogICAgICA7CgogICAgICBfcHJvdG8uc3BsaXRCeSA9IGZ1bmN0aW9uIHNwbGl0QnkoZHVyYXRpb24pIHsKICAgICAgICB2YXIgZHVyID0gZnJpZW5kbHlEdXJhdGlvbihkdXJhdGlvbik7CgogICAgICAgIGlmICghdGhpcy5pc1ZhbGlkIHx8ICFkdXIuaXNWYWxpZCB8fCBkdXIuYXMoIm1pbGxpc2Vjb25kcyIpID09PSAwKSB7CiAgICAgICAgICByZXR1cm4gW107CiAgICAgICAgfQoKICAgICAgICB2YXIgcyA9IHRoaXMucywKICAgICAgICAgICAgaWR4ID0gMSwKICAgICAgICAgICAgbmV4dDsKICAgICAgICB2YXIgcmVzdWx0cyA9IFtdOwoKICAgICAgICB3aGlsZSAocyA8IHRoaXMuZSkgewogICAgICAgICAgdmFyIGFkZGVkID0gdGhpcy5zdGFydC5wbHVzKGR1ci5tYXBVbml0cyhmdW5jdGlvbiAoeCkgewogICAgICAgICAgICByZXR1cm4geCAqIGlkeDsKICAgICAgICAgIH0pKTsKICAgICAgICAgIG5leHQgPSArYWRkZWQgPiArdGhpcy5lID8gdGhpcy5lIDogYWRkZWQ7CiAgICAgICAgICByZXN1bHRzLnB1c2goSW50ZXJ2YWwuZnJvbURhdGVUaW1lcyhzLCBuZXh0KSk7CiAgICAgICAgICBzID0gbmV4dDsKICAgICAgICAgIGlkeCArPSAxOwogICAgICAgIH0KCiAgICAgICAgcmV0dXJuIHJlc3VsdHM7CiAgICAgIH0KICAgICAgLyoqCiAgICAgICAqIFNwbGl0IHRoaXMgSW50ZXJ2YWwgaW50byB0aGUgc3BlY2lmaWVkIG51bWJlciBvZiBzbWFsbGVyIGludGVydmFscy4KICAgICAgICogQHBhcmFtIHtudW1iZXJ9IG51bWJlck9mUGFydHMgLSBUaGUgbnVtYmVyIG9mIEludGVydmFscyB0byBkaXZpZGUgdGhlIEludGVydmFsIGludG8uCiAgICAgICAqIEByZXR1cm4ge0FycmF5fQogICAgICAgKi8KICAgICAgOwoKICAgICAgX3Byb3RvLmRpdmlkZUVxdWFsbHkgPSBmdW5jdGlvbiBkaXZpZGVFcXVhbGx5KG51bWJlck9mUGFydHMpIHsKICAgICAgICBpZiAoIXRoaXMuaXNWYWxpZCkgcmV0dXJuIFtdOwogICAgICAgIHJldHVybiB0aGlzLnNwbGl0QnkodGhpcy5sZW5ndGgoKSAvIG51bWJlck9mUGFydHMpLnNsaWNlKDAsIG51bWJlck9mUGFydHMpOwogICAgICB9CiAgICAgIC8qKgogICAgICAgKiBSZXR1cm4gd2hldGhlciB0aGlzIEludGVydmFsIG92ZXJsYXBzIHdpdGggdGhlIHNwZWNpZmllZCBJbnRlcnZhbAogICAgICAgKiBAcGFyYW0ge0ludGVydmFsfSBvdGhlcgogICAgICAgKiBAcmV0dXJuIHtib29sZWFufQogICAgICAgKi8KICAgICAgOwoKICAgICAgX3Byb3RvLm92ZXJsYXBzID0gZnVuY3Rpb24gb3ZlcmxhcHMob3RoZXIpIHsKICAgICAgICByZXR1cm4gdGhpcy5lID4gb3RoZXIucyAmJiB0aGlzLnMgPCBvdGhlci5lOwogICAgICB9CiAgICAgIC8qKgogICAgICAgKiBSZXR1cm4gd2hldGhlciB0aGlzIEludGVydmFsJ3MgZW5kIGlzIGFkamFjZW50IHRvIHRoZSBzcGVjaWZpZWQgSW50ZXJ2YWwncyBzdGFydC4KICAgICAgICogQHBhcmFtIHtJbnRlcnZhbH0gb3RoZXIKICAgICAgICogQHJldHVybiB7Ym9vbGVhbn0KICAgICAgICovCiAgICAgIDsKCiAgICAgIF9wcm90by5hYnV0c1N0YXJ0ID0gZnVuY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/IHRoaXMucyA6IG90aGVyLnMsCiAgICAgICAgICAgIGUgPSB0aGlzLmUgPCBvdGhlci5lID8gdGhpcy5lIDogb3RoZXIuZTsKCiAgICAgICAgaWYgKHMgPj0gZSkgewogICAgICAgICAgcmV0dXJuIG51bGw7CiAgICAgICAgfSBlbHNlIHsKICAgICAgICAgIHJldHVybiBJbnRlcnZhbC5mcm9tRGF0ZVRpbWVzKHMsIGUpOwogICAgICAgIH0KICAgICAgfQogICAgICAvKioKICAgICAgICogUmV0dXJuIGFuIEludGVydmFsIHJlcHJlc2VudGluZyB0aGUgdW5pb24gb2YgdGhpcyBJbnRlcnZhbCBhbmQgdGhlIHNwZWNpZmllZCBJbnRlcnZhbC4KICAgICAgICogU3BlY2lmaWNhbGx5LCB0aGUgcmVzdWx0aW5nIEludGVydmFsIGhhcyB0aGUgbWluaW11bSBzdGFydCB0aW1lIGFuZCB0aGUgbWF4aW11bSBlbmQgdGltZSBvZiB0aGUgdHdvIEludGVydmFscy4KICAgICAgICogQHBhcmFtIHtJbnRlcnZhbH0gb3RoZXIKICAgICAgICogQHJldHVybiB7SW50ZXJ2YWx9CiAgICAgICAqLwogICAgICA7CgogICAgICBfcHJvdG8udW5pb24gPSBmdW5jdGlvbiB1bmlvbihvdGhlcikgewogICAgICAgIGlmICghdGhpcy5pc1ZhbGlkKSByZXR1cm4gdGhpczsKICAgICAgICB2YXIgcyA9IHRoaXMucyA8IG90aGVyLnMgPyB0aGlzLnMgOiBvdGhlci5zLAogICAgICAgICAgICBlID0gdGhpcy5lID4gb3RoZXIuZSA/IHRoaXMuZSA6IG90aGVyLmU7CiAgICAgICAgcmV0dXJuIEludGVydmFsLmZyb21EYXRlVGltZXMocywgZSk7CiAgICAgIH0KICAgICAgLyoqCiAgICAgICAqIE1lcmdlIGFuIGFycmF5IG9mIEludGVydmFscyBpbnRvIGEgZXF1aXZhbGVudCBtaW5pbWFsIHNldCBvZiBJbnRlcnZhbHMuCiAgICAgICAqIENvbWJpbmVzIG92ZXJsYXBwaW5nIGFuZCBhZGphY2VudCBJbnRlcnZhbHMuCiAgICAgICAqIEBwYXJhbSB7QXJyYXl9IGludGVydmFscwogICAgICAgKiBAcmV0dXJuIHtBcnJheX0KICAgICAgICovCiAgICAgIDsKCiAgICAgIEludGVydmFsLm1lcmdlID0gZnVuY3Rpb24gbWVyZ2UoaW50ZXJ2YWxzKSB7CiAgICAgICAgdmFyIF9pbnRlcnZhbHMkc29ydCRyZWR1YyA9IGludGVydmFscy5zb3J0KGZ1bmN0aW9uIChhLCBiKSB7CiAgICAgICAgICByZXR1cm4gYS5zIC0gYi5zOwogICAgICAgIH0pLnJlZHVjZShmdW5jdGlvbiAoX3JlZjIsIGl0ZW0pIHsKICAgICAgICAgIHZhciBzb2ZhciA9IF9yZWYyWzBdLAogICAgICAgICAgICAgIGN1cnJlbnQgPSBfcmVmMlsxXTsKCiAgICAgICAgICBpZiAoIWN1cnJlbnQpIHsKICAgICAgICAgICAgcmV0dXJuIFtzb2ZhciwgaXRlbV07CiAgICAgICAgICB9IGVsc2UgaWYgKGN1cnJlbnQub3ZlcmxhcHMoaXRlbSkgfHwgY3VycmVudC5hYnV0c1N0YXJ0KGl0ZW0pKSB7CiAgICAgICAgICAgIHJldHVybiBbc29mYXIsIGN1cnJlbnQudW5pb24oaXRlbSldOwogICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgcmV0dXJuIFtzb2Zhci5jb25jYXQoW2N1cnJlbnRdKSwgaXRlbV07CiAgICAgICAgICB9CiAgICAgICAgfSwgW1tdLCBudWxsXSksCiAgICAgICAgICAgIGZvdW5kID0gX2ludGVydmFscyRzb3J0JHJlZHVjWzBdLAogICAgICAgICAgICBmaW5hbCA9IF9pbnRlcnZhbHMkc29ydCRyZWR1Y1sxXTsKCiAgICAgICAgaWYgKGZpbmFsKSB7CiAgICAgICAgICBmb3VuZC5wdXNoKGZpbmFsKTsKICAgICAgICB9CgogICAgICAgIHJldHVybiBmb3VuZDsKICAgICAgfQogICAgICAvKioKICAgICAgICogUmV0dXJuIGFuIGFycmF5IG9mIEludGVydmFscyByZXByZXNlbnRpbmcgdGhlIHNwYW5zIG9mIHRpbWUgdGhhdCBvbmx5IGFwcGVhciBpbiBvbmUgb2YgdGhlIHNwZWNpZmllZCBJbnRlcnZhbHMuCiAgICAgICAqIEBwYXJhbSB7QXJyYXl9IGludGVydmFscwogICAgICAgKiBAcmV0dXJuIHtBcnJheX0KICAgICAgICovCiAgICAgIDsKCiAgICAgIEludGVydmFsLnhvciA9IGZ1bmN0aW9uIHhvcihpbnRlcnZhbHMpIHsKICAgICAgICB2YXIgX0FycmF5JHByb3RvdHlwZTsKCiAgICAgICAgdmFyIHN0YXJ0ID0gbnVsbCwKICAgICAgICAgICAgY3VycmVudENvdW50ID0gMDsKCiAgICAgICAgdmFyIHJlc3VsdHMgPSBbXSwKICAgICAgICAgICAgZW5kcyA9IGludGVydmFscy5tYXAoZnVuY3Rpb24gKGkpIHsKICAgICAgICAgIHJldHVybiBbewogICAgICAgICAgICB0aW1lOiBpLnMsCiAgICAgICAgICAgIHR5cGU6ICJzIgogICAgICAgICAgfSwgewogICAgICAgICAgICB0aW1lOiBpLmUsCiAgICAgICAgICAgIHR5cGU6ICJlIgogICAgICAgICAgfV07CiAgICAgICAgfSksCiAgICAgICAgICAgIGZsYXR0ZW5lZCA9IChfQXJyYXkkcHJvdG90eXBlID0gQXJyYXkucHJvdG90eXBlKS5jb25jYXQuYXBwbHkoX0FycmF5JHByb3RvdHlwZSwgZW5kcyksCiAgICAgICAgICAgIGFyciA9IGZsYXR0ZW5lZC5zb3J0KGZ1bmN0aW9uIChhLCBiKSB7CiAgICAgICAgICByZXR1cm4gYS50aW1lIC0gYi50aW1lOwogICAgICAgIH0pOwoKICAgICAgICBmb3IgKHZhciBfaXRlcmF0b3IgPSBfY3JlYXRlRm9yT2ZJdGVyYXRvckhlbHBlckxvb3NlKGFyciksIF9zdGVwOyAhKF9zdGVwID0gX2l0ZXJhdG9yKCkpLmRvbmU7KSB7CiAgICAgICAgICB2YXIgaSA9IF9zdGVwLnZhbHVlOwogICAgICAgICAgY3VycmVudENvdW50ICs9IGkudHlwZSA9PT0gInMiID8gMSA6IC0xOwoKICAgICAgICAgIGlmIChjdXJyZW50Q291bnQgPT09IDEpIHsKICAgICAgICAgICAgc3RhcnQgPSBpLnRpbWU7CiAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICBpZiAoc3RhcnQgJiYgK3N0YXJ0ICE9PSAraS50aW1lKSB7CiAgICAgICAgICAgICAgcmVzdWx0cy5wdXNoKEludGVydmFsLmZyb21EYXRlVGltZXMoc3RhcnQsIGkudGltZSkpOwogICAgICAgICAgICB9CgogICAgICAgICAgICBzdGFydCA9IG51bGw7CiAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICByZXR1cm4gSW50ZXJ2YWwubWVyZ2UocmVzdWx0cyk7CiAgICAgIH0KICAgICAgLyoqCiAgICAgICAqIFJldHVybiBhbiBJbnRlcnZhbCByZXByZXNlbnRpbmcgdGhlIHNwYW4gb2YgdGltZSBpbiB0aGlzIEludGVydmFsIHRoYXQgZG9lc24ndCBvdmVybGFwIHdpdGggYW55IG9mIHRoZSBzcGVjaWZpZWQgSW50ZXJ2YWxzLgogICAgICAgKiBAcGFyYW0gey4uLkludGVydmFsfSBpbnRlcnZhbHMKICAgICAgICogQHJldHVybiB7QXJyYXl9CiAgICAgICAqLwogICAgICA7CgogICAgICBfcHJvdG8uZGlmZmVyZW5jZSA9IGZ1bmN0aW9uIGRpZmZlcmVuY2UoKSB7CiAgICAgICAgdmFyIF90aGlzMiA9IHRoaXM7CgogICAgICAgIGZvciAodmFyIF9sZW4yID0gYXJndW1lbnRzLmxlbmd0aCwgaW50ZXJ2YWxzID0gbmV3IEFycmF5KF9sZW4yKSwgX2tleTIgPSAwOyBfa2V5MiA8IF9sZW4yOyBfa2V5MisrKSB7CiAgICAgICAgICBpbnRlcnZhbHNbX2tleTJdID0gYXJndW1lbnRzW19rZXkyXTsKICAgICAgICB9CgogICAgICAgIHJldHVybiBJbnRlcnZhbC54b3IoW3RoaXNdLmNvbmNhdChpbnRlcnZhbHMpKS5tYXAoZnVuY3Rpb24gKGkpIHsKICAgICAgICAgIHJldHVybiBfdGhpczIuaW50ZXJzZWN0aW9uKGkpOwogICAgICAgIH0pLmZpbHRlcihmdW5jdGlvbiAoaSkgewogICAgICAgICAgcmV0dXJuIGkgJiYgIWkuaXNFbXB0eSgpOwogICAgICAgIH0pOwogICAgICB9CiAgICAgIC8qKgogICAgICAgKiBSZXR1cm5zIGEgc3RyaW5nIHJlcHJlc2VudGF0aW9uIG9mIHRoaXMgSW50ZXJ2YWwgYXBwcm9wcmlhdGUgZm9yIGRlYnVnZ2luZy4KICAgICAgICogQHJldHVybiB7c3RyaW5nfQogICAgICAgKi8KICAgICAgOwoKICAgICAgX3Byb3RvLnRvU3RyaW5nID0gZnVuY3Rpb24gdG9TdHJpbmcoKSB7CiAgICAgICAgaWYgKCF0aGlzLmlzVmFsaWQpIHJldHVybiBJTlZBTElEJDE7CiAgICAgICAgcmV0dXJuICJbIiArIHRoaXMucy50b0lTTygpICsgIiBcdTIwMTMgIiArIHRoaXMuZS50b0lTTygpICsgIikiOwogICAgICB9CiAgICAgIC8qKgogICAgICAgKiBSZXR1cm5zIGFuIElTTyA4NjAxLWNvbXBsaWFudCBzdHJpbmcgcmVwcmVzZW50YXRpb24gb2YgdGhpcyBJbnRlcnZhbC4KICAgICAgICogQHNlZSBodHRwczovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9JU09fODYwMSNUaW1lX2ludGVydmFscwogICAgICAgKiBAcGFyYW0ge09iamVjdH0gb3B0cyAtIFRoZSBzYW1lIG9wdGlvbnMgYXMge0BsaW5rIERhdGVUaW1lI3RvSVNPfQogICAgICAgKiBAcmV0dXJuIHtzdHJpbmd9CiAgICAgICAqLwogICAgICA7CgogICAgICBfcHJvdG8udG9JU08gPSBmdW5jdGlvbiB0b0lTTyhvcHRzKSB7CiAgICAgICAgaWYgKCF0aGlzLmlzVmFsaWQpIHJldHVybiBJTlZBTElEJDE7CiAgICAgICAgcmV0dXJuIHRoaXMucy50b0lTTyhvcHRzKSArICIvIiArIHRoaXMuZS50b0lTTyhvcHRzKTsKICAgICAgfQogICAgICAvKioKICAgICAgICogUmV0dXJucyBhbiBJU08gODYwMS1jb21wbGlhbnQgc3RyaW5nIHJlcHJlc2VudGF0aW9uIG9mIGRhdGUgb2YgdGhpcyBJbnRlcnZhbC4KICAgICAgICogVGhlIHRpbWUgY29tcG9uZW50cyBhcmUgaWdub3JlZC4KICAgICAgICogQHNlZSBodHRwczovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9JU09fODYwMSNUaW1lX2ludGVydmFscwogICAgICAgKiBAcmV0dXJuIHtzdHJpbmd9CiAgICAgICAqLwogICAgICA7CgogICAgICBfcHJvdG8udG9JU09EYXRlID0gZnVuY3Rpb24gdG9JU09EYXRlKCkgewogICAgICAgIGlmICghdGhpcy5pc1ZhbGlkKSByZXR1cm4gSU5WQUxJRCQxOwogICAgICAgIHJldHVybiB0aGlzLnMudG9JU09EYXRlKCkgKyAiLyIgKyB0aGlzLmUudG9JU09EYXRlKCk7CiAgICAgIH0KICAgICAgLyoqCiAgICAgICAqIFJldHVybnMgYW4gSVNPIDg2MDEtY29tcGxpYW50IHN0cmluZyByZXByZXNlbnRhdGlvbiBvZiB0aW1lIG9mIHRoaXMgSW50ZXJ2YWwuCiAgICAgICAqIFRoZSBkYXRlIGNvbXBvbmVudHMgYXJlIGlnbm9yZWQuCiAgICAgICAqIEBzZWUgaHR0cHM6Ly9lbi53aWtpcGVkaWEub3JnL3dpa2kvSVNPXzg2MDEjVGltZV9pbnRlcnZhbHMKICAgICAgICogQHBhcmFtIHtPYmplY3R9IG9wdHMgLSBUaGUgc2FtZSBvcHRpb25zIGFzIHtAbGluayBEYXRlVGltZS50b0lTT30KICAgICAgICogQHJldHVybiB7c3RyaW5nfQogICAgICAgKi8KICAgICAgOwoKICAgICAg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SB7Ym9vbGVhbn0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJpc1ZhbGlkIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiB0aGlzLmludmFsaWRSZWFzb24gPT09IG51bGw7CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIFJldHVybnMgYW4gZXJyb3IgY29kZSBpZiB0aGlzIEludGVydmFsIGlzIGludmFsaWQsIG9yIG51bGwgaWYgdGhlIEludGVydmFsIGlzIHZhbGlkCiAgICAgICAgICogQHR5cGUge3N0cmluZ30KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJpbnZhbGlkUmVhc29uIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiB0aGlzLmludmFsaWQgPyB0aGlzLmludmFsaWQucmVhc29uIDogbnVsbDsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICogUmV0dXJucyBhbiBleHBsYW5hdGlvbiBvZiB3aHkgdGhpcyBJbnRlcnZhbCBiZWNhbWUgaW52YWxpZCwgb3IgbnVsbCBpZiB0aGUgSW50ZXJ2YWwgaXMgdmFsaWQKICAgICAgICAgKiBAdHlwZSB7c3RyaW5nfQogICAgICAgICAqLwoKICAgICAgfSwgewogICAgICAgIGtleTogImludmFsaWRFeHBsYW5hdGlvbiIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gdGhpcy5pbnZhbGlkID8gdGhpcy5pbnZhbGlkLmV4cGxhbmF0aW9uIDogbnVsbDsKICAgICAgICB9CiAgICAgIH1dKTsKCiAgICAgIHJldHVybiBJbnRlcnZhbDsKICAgIH0oKTsKCiAgICAvKioKICAgICAqIFRoZSBJbmZvIGNsYXNzIGNvbnRhaW5zIHN0YXRpYyBtZXRob2RzIGZvciByZXRyaWV2aW5nIGdlbm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AgfQogICAgICAvKioKICAgICAgICogUmV0dXJuIHdoZXRoZXIgdGhlIHNwZWNpZmllZCB6b25lIGlzIGEgdmFsaWQgSUFOQSBzcGVjaWZpZXIuCiAgICAgICAqIEBwYXJhbSB7c3RyaW5nfSB6b25lIC0gWm9uZSB0byBjaGVjawogICAgICAgKiBAcmV0dXJuIHtib29sZWFufQogICAgICAgKi8KICAgICAgOwoKICAgICAgSW5mby5pc1ZhbGlkSUFOQVpvbmUgPSBmdW5jdGlvbiBpc1ZhbGlkSUFOQVpvbmUoem9uZSkgewogICAgICAgIHJldHVybiBJQU5BWm9uZS5pc1ZhbGlkU3BlY2lmaWVyKHpvbmUpICYmIElBTkFab25lLmlzVmFsaWRab25lKHpvbmUpOwogICAgICB9CiAgICAgIC8qKgogICAgICAgKiBDb252ZXJ0cyB0aGUgaW5wdXQgaW50byBhIHtAbGluayBab25lfSBpbnN0YW5jZS4KICAgICAgICoKICAgICAgICogKiBJZiBgaW5wdXRgIGlzIGFscmVhZHkgYSBab25lIGluc3RhbmNlLCBpdCBpcyByZXR1cm5lZCB1bmNoYW5nZWQuCiAgICAgICAqICogSWYgYGlucHV0YCBpcyBhIHN0cmluZyBjb250YWluaW5nIGEgdmFsaWQgdGltZSB6b25lIG5hbWUsIGEgWm9uZSBpbnN0YW5jZQogICAgICAgKiAgIHdpdGggdGhhdCBuYW1lIGlzIHJldHVybmVkLgogICAgICAgKiAqIElmIGBpbnB1dGAgaXMgYSBzdHJpbmcgdGhhdCBkb2Vzbid0IHJlZmVyIHRvIGEga25vd24gdGltZSB6b25lLCBhIFpvbmUKICAgICAgICogICBpbnN0YW5jZSB3aXRoIHtAbGluayBab25lLmlzVmFsaWR9ID09IGZhbHNlIGlzIHJldHVybmVkLgogICAgICAgKiAqIElmIGBpbnB1dCBpcyBhIG51bWJlciwgYSBab25lIGluc3RhbmNlIHdpdGggdGhlIHNwZWNpZmllZCBmaXhlZCBvZmZzZXQKICAgICAgICogICBpbiBtaW51dGVzIGlzI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mhhbmlkZWMpICE9PSAtMSkgewogICAgICAgICAgICB2YWx1ZSArPSBoYW5pZGVjQ2hhcnMuaW5kZXhPZihzdHJbaV0pOwogICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgZm9yICh2YXIga2V5IGluIG51bWJlcmluZ1N5c3RlbXNVVEYxNikgewogICAgICAgICAgICAgIHZhciBfbnVtYmVyaW5nU3lzdGVtc1VURiA9IG51bWJlcmluZ1N5c3RlbXNVVEYxNltrZXldLAogICAgICAgICAgICAgICAgICBtaW4gPSBfbnVtYmVyaW5nU3lzdGVtc1VURlswXSwKICAgICAgICAgICAgICAgICAgbWF4ID0gX251bWJlcmluZ1N5c3RlbXNVVEZbMV07CgogICAgICAgICAgICAgIGlmIChjb2RlID49IG1pbiAmJiBjb2RlIDw9IG1heCkgewogICAgICAgICAgICAgICAgdmFsdWUgKz0gY29kZSAtIG1pbjsKICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIHJldHVybiBwYXJzZUludCh2YWx1ZSwgMTApOwogICAgICB9IGVsc2UgewogICAgICAgIHJldHVybiB2YWx1ZTsKICAgICAgfQogICAgfQogICAgZnVuY3Rpb24gZGlnaXRSZWdleChfcmVmLCBhcHBlbmQpIHsKICAgICAgdmFyIG51bWJlcmluZ1N5c3RlbSA9IF9yZWYubnVtYmVyaW5nU3lzdGVtOwoKICAgICAgaWYgKGFwcGVuZCA9PT0gdm9pZCAwKSB7CiAgICAgICAgYXBwZW5kID0gIiI7CiAgICAgIH0KCiAgICAgIHJldHVybiBuZXcgUmVnRXhwKCIiICsgbnVtYmVyaW5nU3lzdGVtc1tudW1iZXJpbmdTeXN0ZW0gfHwgImxhdG4iXSArIGFwcGVuZCk7CiAgICB9CgogICAgdmFyIE1JU1NJTkdfRlRQID0gIm1pc3NpbmcgSW50bC5EYXRlVGltZUZvcm1hdC5mb3JtYXRUb1BhcnRzIHN1cHBvcnQiOwoKICAgIGZ1bm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vLyBpbnRlcmNoYW5nZSBzcGFjZSBhbmQgbmJzcAogICAgICAudG9Mb3dlckNhc2UoKTsKICAgIH0KCiAgICBmdW5jdGlvbiBvbmVPZihzdHJpbmdzLCBzdGFydEluZGV4KSB7CiAgICAgIGlmIChzdHJpbmdzID09PSBudWxsKSB7CiAgICAgICAgcmV0dXJuIG51bGw7CiAgICAgIH0gZWxzZSB7CiAgICAgICAgcmV0dXJuIHsKICAgICAgICAgIHJlZ2V4OiBSZWdFeHAoc3RyaW5ncy5tYXAoZml4TGlzdFJlZ2V4KS5qb2luKCJ8IikpLAogICAgICAgICAgZGVzZXI6IGZ1bmN0aW9uIGRlc2VyKF9yZWYyKSB7CiAgICAgICAgICAgIHZhciBzID0gX3JlZjJbMF07CiAgICAgICAgICAgIHJldHVybiBzdHJpbmdzLmZpbmRJbmRleChmdW5jdGlvbiAoaSkgewogICAgICAgICAgICAgIHJldHVybiBzdHJpcEluc2Vuc2l0aXZpdGllcyhzKSA9PT0gc3RyaXBJbnNlbnNpdGl2aXRpZXMoaSk7CiAgICAgICAgICAgIH0pICsgc3RhcnRJbmRleDsKICAgICAgICAgIH0KICAgICAgICB9OwogICAgICB9CiAgICB9CgogICAgZnVuY3Rpb24gb2Zmc2V0KHJlZ2V4LCBncm91cHMpIHsKICAgICAgcmV0dXJuIHsKICAgICAgICByZWdleDogcmVnZXgsCiAgICAgICAgZGVzZXI6IGZ1bmN0aW9uIGRlc2VyKF9yZWYzKSB7CiAgICAgICAgICB2YXIgaCA9IF9yZWYzWzFdLAogICAgICAgICAgICAgIG0gPSBfcmVmM1syXTsKICAgICAgICAgIHJldHVybiBzaWduZWRPZmZzZXQoaCwgbSk7CiAgICAgICAgfSwKICAgICAgICBncm91cHM6IGdyb3VwcwogICAgICB9OwogICAgfQoKICAgIGZ1bmN0aW9uIHNpbXBsZShyZWdleCkgewogICAgICByZXR1cm4gewogICAgICAgIHJlZ2V4OiByZWdleCwKICAgICAgICBkZXNlcjogZnVuY3Rpb24g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mN0aW9uIGRlc2VyKF9yZWY1KSB7CiAgICAgICAgICAgIHZhciBzID0gX3JlZjVbMF07CiAgICAgICAgICAgIHJldHVybiBzOwogICAgICAgICAgfSwKICAgICAgICAgIGxpdGVyYWw6IHRydWUKICAgICAgICB9OwogICAgICB9LAogICAgICAgICAgdW5pdGF0ZSA9IGZ1bmN0aW9uIHVuaXRhdGUodCkgewogICAgICAgIGlmICh0b2tlbi5saXRlcmFsKSB7CiAgICAgICAgICByZXR1cm4gbGl0ZXJhbCh0KTsKICAgICAgICB9CgogICAgICAgIHN3aXRjaCAodC52YWwpIHsKICAgICAgICAgIC8vIGVyYQogICAgICAgICAgY2FzZSAiRyI6CiAgICAgICAgICAgIHJldHVybiBvbmVPZihsb2MuZXJhcygic2hvcnQiLCBmYWxzZSksIDApOwoKICAgICAgICAgIGNhc2UgIkdHIjoKICAgICAgICAgICAgcmV0dXJuIG9uZU9mKGxvYy5lcmFzKCJsb25nIiwgZmFsc2UpLCAwKTsKICAgICAgICAgIC8vIHllYXJzCgogICAgICAgICAgY2FzZSAieSI6CiAgICAgICAgICAgIHJldHVybiBpbnRVbml0KG9uZVRvU2l4KTsKCiAgICAgICAgICBjYXNlICJ5eSI6CiAgICAgICAgICAgIHJldHVybiBpbnRVbml0KHR3b1RvRm91ciwgdW50cnVuY2F0ZVllYXIpOwoKICAgICAgICAgIGNhc2UgInl5eXkiOgogICAgICAgICAgICByZXR1cm4gaW50VW5pdChmb3VyKTsKCiAgICAgICAgICBjYXNlICJ5eXl5eSI6CiAgICAgICAgICAgIHJldHVybiBpbnRVbml0KGZvdXJUb1NpeCk7CgogICAgICAgICAgY2FzZSAieXl5eXl5IjoKICAgICAgICAgICAgcmV0dXJuIGludFVuaXQoc2l4KTsKICAgICAgICAgIC8vIG1vbnRocwoKICAgICAgICAgIGNhc2UgIk0iOgogICAgICAgICAgICByZXR1cm4gaW50VW5pdChvbmVPclR3byk7CgogICAgICAgICAgY2FzZSAiTU0iOgogICAgICAgICAgICByZXR1cm4gaW50VW5pdCh0d28pOwoKICAgICAgICAgIGNhc2UgIk1NTSI6CiAgICAgICAgICAgIHJldHVybiBvbmVPZihsb2MubW9udGhzKCJzaG9ydCIsIHRydWUsIGZhbHNlKSwgMSk7CgogICAgICAgICAgY2FzZSAiTU1NTSI6CiAgICAgICAgICAgIHJldHVybiBvbmVPZihsb2MubW9udGhzKCJsb25nIiwgdHJ1ZSwgZmFsc2UpLCAxKTsKCiAgICAgICAgICBjYXNlICJMIjoKICAgICAgICAgICAgcmV0dXJuIGludFVuaXQob25lT3JUd28pOwoKICAgICAgICAgIGNhc2UgIkxMIjoKICAgICAgICAgICAgcmV0dXJuIGludFVuaXQodHdvKTsKCiAgICAgICAgICBjYXNlICJMTEwiOgogICAgICAgICAgICByZXR1cm4gb25lT2YobG9jLm1vbnRocygic2hvcnQiLCBmYWxzZSwgZmFsc2UpLCAxKTsKCiAgICAgICAgICBjYXNlICJMTExMIjoKICAgICAgICAgICAgcmV0dXJuIG9uZU9mKGxvYy5tb250aHMoImxvbmciLCBmYWxzZSwgZmFsc2UpLCAxKTsKICAgICAgICAgIC8vIGRhdGVzCgogICAgICAgICAgY2FzZSAiZCI6CiAgICAgICAgICAgIHJldHVybiBpbnRVbml0KG9uZU9yVHdvKTsKCiAgICAgICAgICBjYXNlICJkZCI6CiAgICAgICAgICAgIHJldHVybiBpbnRVbml0KHR3byk7CiAgICAgICAgICAvLyBvcmRpbmFscwoKICAgICAgICAgIGNhc2UgIm8iOgogICAgICAgICAgICByZXR1cm4gaW50VW5pdChvbmVUb1RocmVlKTsKCiAgICAgICAgICBjYXNlICJvb28iOgogICAgICAgICAgICByZXR1cm4gaW50VW5pdCh0aHJlZSk7CiAgICAgICAgICAvLyB0aW1lCgogICAgICAgICAgY2FzZSAiSEgiOgogICAgICAgICAgICByZXR1cm4gaW50VW5pdCh0d28pOwoKICAgICAgICAgIGNhc2UgIkgiOgogICAgICAgICAgICByZXR1cm4gaW50VW5pdChvbmVPclR3byk7CgogICAgICAgICAgY2FzZSAiaGgiOgogICAgICAgICAgICByZXR1cm4gaW50VW5pdCh0d28pOwoKICAgICAgICAgIGNhc2UgImgiOgogICAgICAgICAgICByZXR1cm4gaW50VW5pdChvbmVPclR3byk7CgogICAgICAgICAgY2FzZSAibW0iOgogICAgICAgICAgICByZXR1cm4gaW50VW5pdCh0d28pOwoKICAgICAgICAgIGNhc2UgIm0iOgogICAgICAgICAgICByZXR1cm4gaW50VW5pdChvbmVPclR3byk7CgogICAgICAgICAgY2FzZSAicSI6CiAgICAgICAgICAgIHJldHVybiBpbnRVbml0KG9uZU9yVHdvKTsKCiAgICAgICAgICBjYXNlICJxcSI6CiAgICAgICAgICAgIHJldHVybiBpbnRVbml0KHR3byk7CgogICAgICAgICAgY2FzZSAicyI6CiAgICAgICAgICAgIHJldHVybiBpbnRVbml0KG9uZU9yVHdvKTsKCiAgICAgICAgICBjYXNlICJzcyI6CiAgICAgICAgICAgIHJldHVybiBpbnRVbml0KHR3byk7CgogICAgICAgICAgY2FzZSAiUyI6CiAgICAgICAgICAgIHJldHVybiBpbnRVbml0KG9uZVRvVGhyZWUpOwoKICAgICAgICAgIGNhc2UgIlNTUyI6CiAgICAgICAgICAgIHJldHVybiBpbnRVbml0KHRocmVlKTsKCiAgICAgICAgICBjYXNlICJ1IjoKICAgICAgICAgICAgcmV0dXJuIHNpbXBsZShvbmVUb05pbmUpOwogICAgICAgICAgLy8gbWVyaWRpZW0KCiAgICAgICAgICBjYXNlICJhIjoKICAgICAgICAgICAgcmV0dXJuIG9uZU9mKGxvYy5tZXJpZGllbXMoKSwgMCk7CiAgICAgICAgICAvLyB3ZWVrWWVhciAoaykKCiAgICAgICAgICBjYXNlICJra2trIjoKICAgICAgICAgICAgcmV0dXJuIGludFVuaXQoZm91cik7CgogICAgICAgICAgY2FzZSAia2siOgogICAgICAgICAgICByZXR1cm4gaW50VW5pdCh0d29Ub0ZvdXIsIHVudHJ1bmNhdGVZZWFyKTsKICAgICAgICAgIC8vIHdlZWtOdW1iZXIgKFcpCgogICAgICAgICAgY2FzZSAiVyI6CiAgICAgICAgICAgIHJldHVybiBpbnRVbml0KG9uZU9yVHdvKTsKCiAgICAgICAgICBjYXNlICJXVyI6CiAgICAgICAgICAgIHJldHVybiBpbnRVbml0KHR3byk7CiAgICAgICAgICAvLyB3ZWVrZGF5cwoKICAgICAgICAgIGNhc2UgIkUiOgogICAgICAgICAgY2FzZSAiYyI6CiAgICAgICAgICAgIHJldHVybiBpbnRVbml0KG9uZSk7CgogICAgICAgICAgY2FzZSAiRUVFIjoKICAgICAgICAgICAgcmV0dXJuIG9uZU9mKGxvYy53ZWVrZGF5cygic2hvcnQiLCBmYWxzZSwgZmFsc2UpLCAxKTsKCiAgICAgICAgICBjYXNlICJFRUVFIjoKICAgICAgICAgICAgcmV0dXJuIG9uZU9mKGxvYy53ZWVrZGF5cygibG9uZyIsIGZhbHNlLCBmYWxzZSksIDEpOwoKICAgICAgICAgIGNhc2UgImNjYyI6CiAgICAgICAgICAgIHJldHVybiBvbmVPZihsb2Mud2Vla2RheXMoInNob3J0IiwgdHJ1ZSwgZmFsc2UpLCAxKTsKCiAgICAgICAgICBjYXNlICJjY2NjIjoKICAgICAgICAgICAgcmV0dXJuIG9uZU9mKGxvYy53ZWVrZGF5cygibG9uZyIsIHRydWUsIGZhbHNlKSwgMSk7CiAgICAgICAgICAvLyBvZmZzZXQvem9uZQoKICAgICAgICAgIGNhc2UgIloiOgogICAgICAgICAgY2FzZSAiWloiOgogICAgICAgICAgICByZXR1cm4gb2Zmc2V0KG5ldyBSZWdFeHAoIihbKy1dIiArIG9uZU9yVHdvLnNvdXJjZSArICIpKD86OigiICsgdHdvLnNvdXJjZSArICIpKT8iKSwgMik7CgogICAgICAgICAgY2FzZSAiWlpaIjoKICAgICAgICAgICAgcmV0dXJuIG9mZnNldChuZXcgUmVnRXhwKCIoWystXSIgKyBvbmVPclR3by5zb3VyY2UgKyAiKSgiICsgdHdvLnNvdXJjZSArICIpPyIpLCAyKTsKICAgICAgICAgIC8vIHdlIGRvbid0IHN1cHBvcnQgWlpaWiAoUFNUKSBvciBaWlpaWiAoUGFjaWZpYyBTdGFuZGFyZCBUaW1lKSBpbiBwYXJzaW5nCiAgICAgICAgICAvLyBiZWNhdXNlIHdlIGRvbid0IGhhdmUgYW55IHdheSB0byBmaWd1cmUgb3V0IHdoYXQgdGhleSBhcmUKCiAgICAgICAgICBjYXNlICJ6IjoKICAgICAgICAgICAgcmV0dXJuIHNpbXBsZSgvW2Etel8rLS9dezEsMjU2fT8vaSk7CgogICAgICAgICAgZGVmYXVsdDoKICAgICAgICAgICAgcmV0dXJuIGxpdGVyYWwodCk7CiAgICAgICAgfQogICAgICB9OwoKICAgICAgdmFyIHVuaXQgPSB1bml0YXRlKHRva2VuKSB8fCB7CiAgICAgICAgaW52YWxpZFJlYXNvbjogTUlTU0lOR19GVFAKICAgICAgfTsKICAgICAgdW5pdC50b2tlbiA9IHRva2VuOwogICAgICByZXR1cm4gdW5pdDsKICAgIH0KCiAgICB2YXIgcGFydFR5cGVTdHlsZVRvVG9rZW5WYWwgPSB7CiAgICAgIHllYXI6IHsKICAgICAgICAiMi1kaWdpdCI6ICJ5eSIsCiAgICAgICAgbnVtZXJpYzogInl5eXl5IgogICAgICB9LAogICAgICBtb250aDogewogICAgICAgIG51bWVyaWM6ICJNIiwKICAgICAgICAiMi1kaWdpdCI6ICJNTSIsCiAgICAgICAgc2hvcnQ6ICJNTU0iLAogICAgICAgIGxvbmc6ICJNTU1NIgogICAgICB9LAogICAgICBkYXk6IHsKICAgICAgICBudW1lcmljOiAiZCIsCiAgICAgICAgIjItZGlnaXQiOiAiZGQiCiAgICAgIH0sCiAgICAgIHdlZWtkYXk6IHsKICAgICAgICBzaG9ydDogIkVFRSIsCiAgICAgICAgbG9uZzogIkVFRUUiCiAgICAgIH0sCiAgICAgIGRheXBlcmlvZDogImEiLAogICAgICBkYXlQZXJpb2Q6ICJhIiwKICAgICAgaG91cjogewogICAgICAgIG51bWVyaWM6ICJoIiwKICAgICAgICAiMi1kaWdpdCI6ICJoaCIKICAgICAgfSwKICAgICAgbWludXRlOiB7CiAgICAgICAgbnVtZXJpYzogIm0iLAogICAgICAgICIyLWRpZ2l0IjogIm1tIgogICAgICB9LAogICAgICBzZWNvbmQ6IHsKICAgICAgICBudW1lcmljOiAicyIsCiAgICAgICAgIjItZGlnaXQiOiAic3MiCiAgICAgIH0KICAgIH07CgogICAgZnVuY3Rpb24gdG9rZW5Gb3JQYXJ0KHBhcnQsIGxvY2FsZSwgZm9ybWF0T3B0cykgewogICAgICB2YXIgdHlwZSA9IHBhcnQudHlwZSwKICAgICAgICAgIHZhbHVlID0gcGFydC52YWx1ZTsKCiAgICAgIGlmICh0eXBlID09PSAibGl0ZXJhbCIpIHsKICAgICAgICByZXR1cm4gewogICAgICAgICAgbGl0ZXJhbDogdHJ1ZSwKICAgICAgICAgIHZhbDogdmFsdWUKICAgICAgICB9OwogICAgICB9CgogICAgICB2YXIgc3R5bGUgPSBmb3JtYXRPcHRzW3R5cGVdOwogICAgICB2YXIgdmFsID0gcGFydFR5cGVTdHlsZVRvVG9rZW5WYWxbdHlwZV07CgogICAgICBpZiAodHlwZW9mIHZhbCA9PT0gIm9iamVjdCIpIHsKICAgICAgICB2YWwgPSB2YWxbc3R5bGVdOwogICAgICB9CgogICAgICBpZiAodmFsKSB7CiAgICAgICAgcmV0dXJuIHsKICAgICAgICAgIGxpdGVyYWw6IGZhbHNlLAogICAgICAgICAgdmFsOiB2YWwKICAgICAgICB9OwogICAgICB9CgogICAgICByZXR1cm4gdW5kZWZpbmVkOwogICAgfQoKICAgIGZ1bmN0aW9uIGJ1aWxkUmVnZXgodW5pdHMpIHsKICAgICAgdmFyIHJlID0gdW5pdHMubWFwKGZ1bmN0aW9uICh1KSB7CiAgICAgICAgcmV0dXJuIHUucmVnZXg7CiAgICAgIH0pLnJlZHVjZShmdW5jdGlvbiAoZiwgcikgewogICAgICAgIHJldHVybiBmICsgIigiICsgci5zb3VyY2UgKyAiKSI7CiAgICAgIH0sICIiKTsKICAgICAgcmV0dXJuIFsiXiIgKyByZSArICIkIiwgdW5pdHNdOwogICAgfQoKICAgIGZ1bmN0aW9uIG1hdGNoKGlucHV0LCByZWdleCwgaGFuZGxlcnMpIHsKICAgICAgdmFyIG1hdGNoZXMgPSBpbnB1dC5tYXRjaChyZWdleCk7CgogICAgICBpZiAobWF0Y2hlcykgewogICAgICAgIHZhciBhbGwgPSB7fTsKICAgICAgICB2YXIgbWF0Y2hJbmRleCA9IDE7CgogICAgICAgIGZvciAodmFyIGkgaW4gaGFuZGxlcnMpIHsKICAgICAgICAgIGlmIChoYXNPd25Qcm9wZXJ0eShoYW5kbGVycywgaSkpIHsKICAgICAgICAgICAgdmFyIGggPSBoYW5kbGVyc1tpXSwKICAgICAgICAgICAgICAgIGdyb3VwcyA9IGguZ3JvdXBzID8gaC5ncm91cHMgKyAxIDogMTsKCiAgICAgICAgICAgIGlmICghaC5saXRlcmFsICYmIGgudG9rZW4pIHsKICAgICAgICAgICAgICBhbGxbaC50b2tlbi52YWxbMF1dID0gaC5kZXNlcihtYXRjaGVzLnNsaWNlKG1hdGNoSW5kZXgsIG1hdGNoSW5kZXggKyBncm91cHMpKTsKICAgICAgICAgICAgfQoKICAgICAgICAgICAgbWF0Y2hJbmRleCArPSBncm91cHM7CiAgICAgICAgICB9CiAgICAgICAgfQoKICAgICAgICByZXR1cm4gW21hdGNoZXMsIGFsbF07CiAgICAgIH0gZWxzZSB7CiAgICAgICAgcmV0dXJuIFttYXRjaGVzLCB7fV07CiAgICAgIH0KICAgIH0KCiAgICBmdW5jdGlvbiBkYXRlVGltZUZyb21NYXRjaGVzKG1hdGNoZXMpIHsKICAgICAgdmFyIHRvRmllbGQgPSBmdW5jdGlvbiB0b0ZpZWxkKHRva2VuKSB7CiAgICAgICAgc3dpdGNoICh0b2tlbikgewogICAgICAgICAgY2FzZSAiUyI6CiAgICAgICAgICAgIHJldHVybiAibWlsbGlzZWNvbmQiOwoKICAgICAgICAgIGNhc2UgInMiOgogICAgICAgICAgICByZXR1cm4gInNlY29uZCI7CgogICAgICAgICAgY2FzZSAibSI6CiAgICAgICAgICAgIHJldHVybiAibWludXRlIjsKCiAgICAgICAgICBjYXNlICJoIjoKICAgICAgICAgIGNhc2UgIkgiOgogICAgICAgICAgICByZXR1cm4gImhvdXIiOwoKICAgICAgICAgIGNhc2UgImQiOgogICAgICAgICAgICByZXR1cm4gImRheSI7CgogICAgICAgICAgY2FzZSAibyI6CiAgICAgICAgICAgIHJldHVybiAib3JkaW5hbCI7CgogICAgICAgICAgY2FzZSAiTCI6CiAgICAgICAgICBjYXNlICJNIjoKICAgICAgICAgICAgcmV0dXJuICJtb250aCI7CgogICAgICAgICAgY2FzZSAieSI6CiAgICAgICAgICAgIHJldHVybiAieWVhciI7CgogICAgICAgICAgY2FzZSAiRSI6CiAgICAgICAgICBjYXNlICJjIjoKICAgICAgICAgICAgcmV0dXJuICJ3ZWVrZGF5IjsKCiAgICAgICAgICBjYXNlICJXIjoKICAgICAgICAgICAgcmV0dXJuICJ3ZWVrTnVtYmVyIjsKCiAgICAgICAgICBjYXNlICJrIjoKICAgICAgICAgICAgcmV0dXJuICJ3ZWVrWWVhciI7CgogICAgICAgICAgY2FzZSAicSI6CiAgICAgICAgICAgIHJldHVybiAicXVhcnRlciI7CgogICAgICAgICAgZGVmYXVsdDoKICAgICAgICAgICAgcmV0dXJuIG51bGw7CiAgICAgICAgfQogICAgICB9OwoKICAgICAgdmFyIHpvbmU7CgogICAgICBpZiAoIWlzVW5kZWZpbmVkKG1hdGNoZXMuWikpIHsKICAgICAgICB6b25lID0gbmV3IEZpeGVkT2Zmc2V0Wm9uZShtYXRjaGVzLlopOwogICAgICB9IGVsc2UgaWYgKCFpc1VuZGVmaW5lZChtYXRjaGVzLnopKSB7CiAgICAgICAgem9uZSA9IElBTkFab25lLmNyZWF0ZShtYXRjaGVzLnopOwogICAgICB9IGVsc2UgewogICAgICAgIHpvbmUgPSBudWxsOwogICAgICB9CgogICAgICBpZiAoIWlzVW5kZWZpbmVkKG1hdGNoZXMucSkpIHsKICAgICAgICBtYXRjaGVzLk0gPSAobWF0Y2hlcy5xIC0gMSkgKiAzICsgMTsKICAgICAgfQoKICAgICAgaWYgKCFpc1VuZGVmaW5lZChtYXRjaGVzLmgpKSB7CiAgICAgICAgaWYgKG1hdGNoZXMuaCA8IDEyICYmIG1hdGNoZXMuYSA9PT0gMSkgewogICAgICAgICAgbWF0Y2hlcy5oICs9IDEyOwogICAgICAgIH0gZWxzZSBpZiAobWF0Y2hlcy5oID09PSAxMiAmJiBtYXRjaGVzLmEgPT09IDApIHsKICAgICAgICAgIG1hdGNoZXMuaCA9IDA7CiAgICAgICAgfQogICAgICB9CgogICAgICBpZiAobWF0Y2hlcy5HID09PSAwICYmIG1hdGNoZXMueSkgewogICAgICAgIG1hdGNoZXMueSA9IC1tYXRjaGVzLnk7CiAgICAgIH0KCiAgICAgIGlmICghaXNVbmRlZmluZWQobWF0Y2hlcy51KSkgewogICAgICAgIG1hdGNoZXMuUyA9IHBhcnNlTWlsbGlzKG1hdGNoZXMudSk7CiAgICAgIH0KCiAgICAgIHZhciB2YWxzID0gT2JqZWN0LmtleXMobWF0Y2hlcykucmVkdWNlKGZ1bmN0aW9uIChyLCBrKSB7CiAgICAgICAgdmFyIGYgPSB0b0ZpZWxkKGspOwoKICAgICAgICBpZiAoZikgewogICAgICAgICAgcltmXSA9IG1hdGNoZXNba107CiAgICAgICAgfQoKICAgICAgICByZXR1cm4gcjsKICAgICAgfSwge30pOwogICAgICByZXR1cm4gW3ZhbHMsIHpvbmVdOwogICAgfQoKICAgIHZhciBkdW1teURhdGVUaW1lQ2FjaGUgPSBudWxsOwoKICAgIGZ1bmN0aW9uIGdldER1bW15RGF0ZVRpbWUoKSB7CiAgICAgIGlmICghZHVtbXlEYXRlVGltZUNhY2hlKSB7CiAgICAgICAgZHVtbXlEYXRlVGltZUNhY2hlID0gRGF0ZVRpbW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BsZWFwTGFkZGVyIDogbm9uTGVhcExhZGRlciwKICAgICAgICAgIG1vbnRoMCA9IHRhYmxlLmZpbmRJbmRleChmdW5jdGlvbiAoaSkgewogICAgICAgIHJldHVybiBpIDwgb3JkaW5hbDsKICAgICAgfSksCiAgICAgICAgICBkYXkgPSBvcmRpbmFsIC0gdGFibGVbbW9udGgwXTsKICAgICAgcmV0dXJuIHsKICAgICAgICBtb250aDogbW9udGgwICsgMSwKICAgICAgICBkYXk6IGRheQogICAgICB9OwogICAgfQogICAgLyoqCiAgICAgKiBAcHJpdmF0ZQogICAgICovCgoKICAgIGZ1bmN0aW9uIGdyZWdvcmlhblRvV2VlayhncmVnT2JqKSB7CiAgICAgIHZhciB5ZWFyID0gZ3JlZ09iai55ZWFyLAogICAgICAgICAgbW9udGggPSBncmVnT2JqLm1vbnRoLAogICAgICAgICAgZGF5ID0gZ3JlZ09iai5kYXksCiAgICAgICAgICBvcmRpbmFsID0gY29tcHV0ZU9yZGluYWwoeWVhciwgbW9udGgsIGRheSksCiAgICAgICAgICB3ZWVrZGF5ID0gZGF5T2ZXZWVrKHllYXIsIG1vbnRoLCBkYXkpOwogICAgICB2YXIgd2Vla051bWJlciA9IE1hdGguZmxvb3IoKG9yZGluYWwgLSB3ZWVrZGF5ICsgMTApIC8gNyksCiAgICAgICAgICB3ZWVrWWVhcjsKCiAgICAgIGlmICh3ZWVrTnVtYmVyIDwgMSkgewogICAgICAgIHdlZWtZZWFyID0geWVhciAtIDE7CiAgICAgICAgd2Vla051bWJlciA9IHdlZWtzSW5XZWVrWWVhcih3ZWVrWWVhcik7CiAgICAgIH0gZWxzZSBpZiAod2Vla051bWJlciA+IHdlZWtzSW5XZWVrWWVhcih5ZWFyKSkgewogICAgICAgIHdlZWtZZWFyID0geWVhciArIDE7CiAgICAgICAgd2Vla051bWJlciA9IDE7CiAgICAgIH0gZWxzZSB7CiAgICAgICAgd2Vla1llYXIgPSB5ZWFyOwogICAgICB9CgogICAgICByZXR1cm4gX2V4dGVuZHMoewogICAgICAgIHdlZWtZZWFyOiB3ZWVrWWVhciwKICAgICAgICB3ZWVrTnVtYmVyOiB3ZWVrTnVtYmVyLAogICAgICAgIHdlZWtkYXk6IHdlZWtkYXkKICAgICAgfSwgdGltZU9iamVjdChncmVnT2JqKSk7CiAgICB9CiAgICBmdW5jdGlvbiB3ZWVrVG9HcmVnb3JpYW4od2Vla0RhdGEpIHsKICAgICAgdmFyIHdlZWtZZWFyID0gd2Vla0RhdGEud2Vla1llYXIsCiAgICAgICAgICB3ZWVrTnVtYmVyID0gd2Vla0RhdGEud2Vla051bWJlciwKICAgICAgICAgIHdlZWtkYXkgPSB3ZWVrRGF0YS53ZWVrZGF5LAogICAgICAgICAgd2Vla2RheU9mSmFuNCA9IGRheU9mV2Vlayh3ZWVrWWVhciwgMSwgNCksCiAgICAgICAgICB5ZWFySW5EYXlzID0gZGF5c0luWWVhcih3ZWVrWWVhcik7CiAgICAgIHZhciBvcmRpbmFsID0gd2Vla051bWJlciAqIDcgKyB3ZWVrZGF5IC0gd2Vla2RheU9mSmFuNCAtIDMsCiAgICAgICAgICB5ZWFyOwoKICAgICAgaWYgKG9yZGluYWwgPCAxKSB7CiAgICAgICAgeWVhciA9IHdlZWtZZWFyIC0gMTsKICAgICAgICBvcmRpbmFsICs9IGRheXNJblllYXIoeWVhcik7CiAgICAgIH0gZWxzZSBpZiAob3JkaW5hbCA+IHllYXJJbkRheXMpIHsKICAgICAgICB5ZWFyID0gd2Vla1llYXIgKyAxOwogICAgICAgIG9yZGluYWwgLT0gZGF5c0luWWVhcih3ZWVrWWVhcik7CiAgICAgIH0gZWxzZSB7CiAgICAgICAgeWVhciA9IHdlZWtZZWFyOwogICAgICB9CgogICAgICB2YXIgX3VuY29tcHV0ZU9yZGluYWwgPSB1bmNvbXB1dGVPcmRpbmFsKHllYXIsIG9yZGluYWwpLAogICAgICAgICAgbW9udGggPSBfdW5jb21wdXRlT3JkaW5hbC5tb250aCwKICAgICAgICAgIGRheSA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sKICAgICAgfSBlbHNlIHJldHVybiBmYWxzZTsKICAgIH0KICAgIGZ1bmN0aW9uIGhhc0ludmFsaWRHcmVnb3JpYW5EYXRhKG9iaikgewogICAgICB2YXIgdmFsaWRZZWFyID0gaXNJbnRlZ2VyKG9iai55ZWFyKSwKICAgICAgICAgIHZhbGlkTW9udGggPSBpbnRlZ2VyQmV0d2VlbihvYmoubW9udGgsIDEsIDEyKSwKICAgICAgICAgIHZhbGlkRGF5ID0gaW50ZWdlckJldHdlZW4ob2JqLmRheSwgMSwgZGF5c0luTW9udGgob2JqLnllYXIsIG9iai5tb250aCkpOwoKICAgICAgaWYgKCF2YWxpZFllYXIpIHsKICAgICAgICByZXR1cm4gdW5pdE91dE9mUmFuZ2UoInllYXIiLCBvYmoueWVhcik7CiAgICAgIH0gZWxzZSBpZiAoIXZhbGlkTW9udGgpIHsKICAgICAgICByZXR1cm4gdW5pdE91dE9mUmFuZ2UoIm1vbnRoIiwgb2JqLm1vbnRoKTsKICAgICAgfSBlbHNlIGlmICghdmFsaWREYXkpIHsKICAgICAgICByZXR1cm4gdW5pdE91dE9mUmFuZ2UoImRheSIsIG9iai5kYXkpOwogICAgICB9IGVsc2UgcmV0dXJuIGZhbHNlOwogICAgfQogICAgZnVuY3Rpb24gaGFzSW52YWxpZFRpbWVEYXRhKG9iaikgewogICAgICB2YXIgaG91ciA9IG9iai5ob3VyLAogICAgICAgICAgbWludXRlID0gb2JqLm1pbnV0ZSwKICAgICAgICAgIHNlY29uZCA9IG9iai5zZWNvbmQsCiAgICAgICAgICBtaWxsaXNlY29uZCA9IG9iai5taWxsaXNlY29uZDsKICAgICAgdmFyIHZhbGlkSG91ciA9IGludGVnZXJCZXR3ZWVuKGhvdXIsIDAsIDIzKSB8fCBob3VyID09PSAyNCAmJiBtaW51dGUgPT09IDAgJiYgc2Vjb25kID09PSAwICYmIG1pbGxpc2Vjb25kID09PSAwLAogICAgICAgICAgdmFsaWRNaW51dGUgPSBpbnRlZ2VyQmV0d2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ewogICAgICAgIHllYXI6IHllYXIsCiAgICAgICAgbW9udGg6IG1vbnRoLAogICAgICAgIGRheTogTWF0aC5taW4oaW5zdC5jLmRheSwgZGF5c0luTW9udGgoeWVhciwgbW9udGgpKSArIE1hdGgudHJ1bmMoZHVyLmRheXMpICsgTWF0aC50cnVuYyhkdXIud2Vla3MpICogNwogICAgICB9KSwKICAgICAgICAgIG1pbGxpc1RvQWRkID0gRHVyYXRpb24uZnJvbU9iamVjdCh7CiAgICAgICAgeWVhcnM6IGR1ci55ZWFycyAtIE1hdGgudHJ1bmMoZHVyLnllYXJzKSwKICAgICAgICBxdWFydGVyczogZHVyLnF1YXJ0ZXJzIC0gTWF0aC50cnVuYyhkdXIucXVhcnRlcnMpLAogICAgICAgIG1vbnRoczogZHVyLm1vbnRocyAtIE1hdGgudHJ1bmMoZHVyLm1vbnRocyksCiAgICAgICAgd2Vla3M6IGR1ci53ZWVrcyAtIE1hdGgudHJ1bmMoZHVyLndlZWtzKSwKICAgICAgICBkYXlzOiBkdXIuZGF5cyAtIE1hdGgudHJ1bmMoZHVyLmRheXMpLAogICAgICAgIGhvdXJzOiBkdXIuaG91cnMsCiAgICAgICAgbWludXRlczogZHVyLm1pbnV0ZXMsCiAgICAgICAgc2Vjb25kczogZHVyLnNlY29uZHMsCiAgICAgICAgbWlsbGlzZWNvbmRzOiBkdXIubWlsbGlzZWNvbmRzCiAgICAgIH0pLmFzKCJtaWxsaXNlY29uZHMiKSwKICAgICAgICAgIGxvY2FsVFMgPSBvYmpUb0xvY2FsVFMoYyk7CgogICAgICB2YXIgX2ZpeE9mZnNldCA9IGZpeE9mZnNldChsb2NhbFRTLCBvUHJlLCBpbnN0LnpvbmUpLAogICAgICAgICAgdHMgPSBfZml4T2Zmc2V0WzBdLAogICAgICAgICAgbyA9IF9maXhPZmZzZXRbMV07CgogICAgICBpZiAobWlsbGlzVG9BZGQgIT09IDApIHsKICAgICAgICB0cyArPSBtaWxsaXNUb0FkZDsgLy8gdGhhdCBj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nV0ZTogMCwKICAgICAgc2Vjb25kOiAwLAogICAgICBtaWxsaXNlY29uZDogMAogICAgfTsgLy8gVW5pdHMgaW4gdGhlIHN1cHBvcnRlZCBjYWxlbmRhcnMsIHNvcnRlZCBieSBiaWduZXNzCgogICAgdmFyIG9yZGVyZWRVbml0cyA9IFsieWVhciIsICJtb250aCIsICJkYXkiLCAiaG91ciIsICJtaW51dGUiLCAic2Vjb25kIiwgIm1pbGxpc2Vjb25kIl0sCiAgICAgICAgb3JkZXJlZFdlZWtVbml0cyA9IFsid2Vla1llYXIiLCAid2Vla051bWJlciIsICJ3ZWVrZGF5IiwgImhvdXIiLCAibWludXRlIiwgInNlY29uZCIsICJtaWxsaXNlY29uZCJdLAogICAgICAgIG9yZGVyZWRPcmRpbmFsVW5pdHMgPSBbInllYXIiLCAib3JkaW5hbCIsICJob3VyIiwgIm1pbnV0ZSIsICJzZWNvbmQiLCAibWlsbGlzZWNvbmQiXTsgLy8gc3RhbmRhcmRpemUgY2FzZSBhbmQgcGx1cmFsaXR5IGluIHVuaXRzCgogICAgZnVuY3Rpb24gbm9ybWFsaXplVW5pdCh1bml0KSB7CiAgICAgIHZhciBub3JtYWxpemVkID0gewogICAgICAgIHllYXI6ICJ5ZWFyIiwKICAgICAgICB5ZWFyczogInllYXIiLAogICAgICAgIG1vbnRoOiAibW9udGgiLAogICAgICAgIG1vbnRoczogIm1vbnRoIiwKICAgICAgICBkYXk6ICJkYXkiLAogICAgICAgIGRheXM6ICJkYXkiLAogICAgICAgIGhvdXI6ICJob3VyIiwKICAgICAgICBob3VyczogImhvdXIiLAogICAgICAgIG1pbnV0ZTogIm1pbnV0ZSIsCiAgICAgICAgbWludXRlczogIm1pbnV0ZSIsCiAgICAgICAgcXVhcnRlcjogInF1YXJ0ZXIiLAogICAgICAgIHF1YXJ0ZXJzOiAicXVhcnRlciIsCiAgICAgICAgc2Vjb25kOiAic2Vjb25kIiwKICAgICAgICBzZWNvbmRzOiAic2Vjb25kIiwKICAgICA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ICAgZnVuY3Rpb24gcXVpY2tEVChvYmosIG9wdHMpIHsKICAgICAgdmFyIHpvbmUgPSBub3JtYWxpemVab25lKG9wdHMuem9uZSwgU2V0dGluZ3MuZGVmYXVsdFpvbmUpLAogICAgICAgICAgbG9jID0gTG9jYWxlLmZyb21PYmplY3Qob3B0cyksCiAgICAgICAgICB0c05vdyA9IFNldHRpbmdzLm5vdygpOwogICAgICB2YXIgdHMsIG87IC8vIGFzc3VtZSB3ZSBoYXZlIHRoZSBoaWdoZXItb3JkZXIgdW5pdHMKCiAgICAgIGlmICghaXNVbmRlZmluZWQob2JqLnllYXIpKSB7CiAgICAgICAgZm9yICh2YXIgX2l0ZXJhdG9yID0gX2NyZWF0ZUZvck9mSXRlcmF0b3JIZWxwZXJMb29zZShvcmRlcmVkVW5pdHMpLCBfc3RlcDsgIShfc3RlcCA9IF9pdGVyYXRvcigpKS5kb25lOykgewogICAgICAgICAgdmFyIHUgPSBfc3RlcC52YWx1ZTsKCiAgICAgICAgICBpZiAoaXNVbmRlZmluZWQob2JqW3VdKSkgewogICAgICAgICAgICBvYmpbdV0gPSBkZWZhdWx0VW5pdFZhbHVlc1t1XTsKICAgICAgICAgIH0KICAgICAgICB9CgogICAgICAgIHZhciBpbnZhbGlkID0gaGFzSW52YWxpZEdyZWdvcmlhbkRhdGEob2JqKSB8fCBoYXNJbnZhbGlkVGltZURhdGEob2JqKTsKCiAgICAgICAgaWYgKGludmFsaWQpIHsKICAgICAgICAgIHJldHVybiBEYXRlVGltZS5pbnZhbGlkKGludmFsaWQpOwogICAgICAgIH0KCiAgICAgICAgdmFyIG9mZnNldFByb3ZpcyA9IHpvbmUub2Zmc2V0KHRzTm93KTsKCiAgICAgICAgdmFyIF9vYmpUb1RTID0gb2JqVG9UUyhvYmosIG9mZnNldFByb3Zpcywgem9uZSk7CgogICAgICAgIHRzID0gX29ialRvVFNbMF07CiAgICAgICAgbyA9IF9vYmpUb1RTWzFdOwogICAgICB9IGVsc2UgewogICAgICAgIHRzID0gdHNOb3c7CiAgICAgIH0KCiAgICAgIHJldHVybiBuZXcgRGF0ZVRpbWUoewogICAgICAgIHRzOiB0cywKICAgICAgICB6b25lOiB6b25lLAogICAgICAgIGxvYzogbG9jLAogICAgICAgIG86IG8KICAgICAgfSk7CiAgICB9CgogICAgZnVuY3Rpb24gZGlmZlJlbGF0aXZlKHN0YXJ0LCBlbmQsIG9wdHMpIHsKICAgICAgdmFyIHJvdW5kID0gaXNVbmRlZmluZWQob3B0cy5yb3VuZCkgPyB0cnVlIDogb3B0cy5yb3VuZCwKICAgICAgICAgIGZvcm1hdCA9IGZ1bmN0aW9uIGZvcm1hdChjLCB1bml0KSB7CiAgICAgICAgYyA9IHJvdW5kVG8oYywgcm91bmQgfHwgb3B0cy5jYWxlbmRhcnkgPyAwIDogMiwgdHJ1ZSk7CiAgICAgICAgdmFyIGZvcm1hdHRlciA9IGVuZC5sb2MuY2xvbmUob3B0cykucmVsRm9ybWF0dGVyKG9wdHMpOwogICAgICAgIHJldHVybiBmb3JtYXR0ZXIuZm9ybWF0KGMsIHVuaXQpOwogICAgICB9LAogICAgICAgICAgZGlmZmVyID0gZnVuY3Rpb24gZGlmZmVyKHVuaXQpIHsKICAgICAgICBpZiAob3B0cy5jYWxlbmRhcnkpIHsKICAgICAgICAgIGlmICghZW5kLmhhc1NhbWUoc3RhcnQsIHVuaXQpKSB7CiAgICAgICAgICAgIHJldHVybiBlbmQuc3RhcnRPZih1bml0KS5kaWZmKHN0YXJ0LnN0YXJ0T2YodW5pdCksIHVuaXQpLmdldCh1bml0KTsKICAgICAgICAgIH0gZWxzZSByZXR1cm4gMDsKICAgICAgICB9IGVsc2UgewogICAgICAgICAgcmV0dXJuIGVuZC5kaWZmKHN0YXJ0LCB1bml0KS5nZXQodW5pdCk7CiAgICAgICAgfQogICAgICB9OwoKICAgICAgaWYgKG9wdHMudW5pdCkgewogICAgICAgIHJldHVybiBmb3JtYXQoZGlmZmVyKG9wdHMudW5pdCksIG9wdHMudW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ZhciBjID0gbnVsbCwKICAgICAgICAgICAgbyA9IG51bGw7CgogICAgICAgIGlmICghaW52YWxpZCkgewogICAgICAgICAgdmFyIHVuY2hhbmdlZCA9IGNvbmZpZy5vbGQgJiYgY29uZmlnLm9sZC50cyA9PT0gdGhpcy50cyAmJiBjb25maWcub2xkLnpvbmUuZXF1YWxzKHpvbmUpOwoKICAgICAgICAgIGlmICh1bmNoYW5nZWQpIHsKICAgICAgICAgICAgdmFyIF9yZWYyID0gW2NvbmZpZy5vbGQuYywgY29uZmlnLm9sZC5vXTsKICAgICAgICAgICAgYyA9IF9yZWYyWzBdOwogICAgICAgICAgICBvID0gX3JlZjJbMV07CiAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICB2YXIgb3QgPSB6b25lLm9mZnNldCh0aGlzLnRzKTsKICAgICAgICAgICAgYyA9IHRzVG9PYmoodGhpcy50cywgb3QpOwogICAgICAgICAgICBpbnZhbGlkID0gTnVtYmVyLmlzTmFOKGMueWVhcikgPyBuZXcgSW52YWxpZCgiaW52YWxpZCBpbnB1dCIpIDogbnVsbDsKICAgICAgICAgICAgYyA9IGludmFsaWQgPyBudWxsIDogYzsKICAgICAgICAgICAgbyA9IGludmFsaWQgPyBudWxsIDogb3Q7CiAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIEBhY2Nlc3MgcHJpdmF0ZQogICAgICAgICAqLwoKCiAgICAgICAgdGhpcy5fem9uZSA9IHpvbmU7CiAgICAgICAgLyoqCiAgICAgICAgICogQGFjY2VzcyBwcml2YXRlCiAgICAgICAgICovCgogICAgICAgIHRoaXMubG9jID0gY29uZmlnLmxvYyB8fCBMb2NhbGUuY3JlYXRlKCk7CiAgICAgICAgLyoqCiAgICAgICAgICogQGFjY2VzcyBwcml2YXRlCiAgICAgICAgICovCgogICAgICAgIHRoaXMuaW52YWxpZCA9IGludmFsaWQ7CiAgICAgICAgLyoqCiAgICAgICAgICogQGFjY2VzcyBwcml2YXRlCiAgICAgICAgICovCgogICAgICAgIHRoaXMud2Vla0RhdGEgPSBudWxsOwogICAgICAgIC8qKgogICAgICAgICAqIEBhY2Nlc3MgcHJpdmF0ZQogICAgICAgICAqLwoKICAgICAgICB0aGlzLmMgPSBjOwogICAgICAgIC8qKgogICAgICAgICAqIEBhY2Nlc3MgcHJpdmF0ZQogICAgICAgICAqLwoKICAgICAgICB0aGlzLm8gPSBvOwogICAgICAgIC8qKgogICAgICAgICAqIEBhY2Nlc3MgcHJpdmF0ZQogICAgICAgICAqLwoKICAgICAgICB0aGlzLmlzTHV4b25EYXRlVGltZSA9IHRydWU7CiAgICAgIH0gLy8gQ09OU1RSVUNUCgogICAgICAvKioKICAgICAgICogQ3JlYXRlIGEgRGF0ZVRpbWUgZm9yIHRoZSBjdXJyZW50IGluc3RhbnQsIGluIHRoZSBzeXN0ZW0ncyB0aW1lIHpvbmUuCiAgICAgICAqCiAgICAgICAqIFVzZSBTZXR0aW5ncyB0byBvdmVycmlkZSB0aGVzZSBkZWZhdWx0IHZhbHVlcyBpZiBuZWVkZWQuCiAgICAgICAqIEBleGFtcGxlIERhdGVUaW1lLm5vdygpLnRvSVNPKCkgLy9+PiBub3cgaW4gdGhlIElTTyBmb3JtYXQKICAgICAgICogQHJldHVybiB7RGF0ZVRpbWV9CiAgICAgICAqLwoKCiAgICAgIERhdGVUaW1lLm5vdyA9IGZ1bmN0aW9uIG5vdygpIHsKICAgICAgICByZXR1cm4gbmV3IERhdGVUaW1lKHt9KTsKICAgICAgfQogICAgICAvKioKICAgICAgICogQ3JlYXRlIGEgbG9jYWwgRGF0ZVRpbWUKICAgICAgICogQHBhcmFtIHtudW1iZXJ9IFt5ZWFyXSAtIFRoZSBjYWxlbmRhciB5ZWFyLiBJZiBvbWl0dGVkIChhcyBpbiwgY2FsbCBgbG9jYWwoKWAgd2l0aCBubyBhcmd1bWVudHMpLCB0aGUgY3VycmVudCB0aW1lIHdpbGwgYmUgdXNlZAogICAgICAgKiBAcGFyYW0ge251bW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wMDowMDowMAogICAgICAgKiBAZXhhbXBsZSBEYXRlVGltZS5sb2NhbCgyMDE3LCAzLCAxMiwgeyBsb2NhbGU6ICJmciIgfSkgICAgIC8vfj4gMjAxNy0wMy0xMlQwMDowMDowMCwgd2l0aCBhIEZyZW5jaCBsb2NhbGUKICAgICAgICogQGV4YW1wbGUgRGF0ZVRpbWUubG9jYWwoMjAxNywgMywgMTIsIDUpICAgICAgICAgICAgICAgICAgICAvL34+IDIwMTctMDMtMTJUMDU6MDA6MDAKICAgICAgICogQGV4YW1wbGUgRGF0ZVRpbWUubG9jYWwoMjAxNywgMywgMTIsIDUsIHsgem9uZTogInV0YyIgfSkgICAvL34+IDIwMTctMDMtMTJUMDU6MDA6MDAsIGluIFVUQwogICAgICAgKiBAZXhhbXBsZSBEYXRlVGltZS5sb2NhbCgyMDE3LCAzLCAxMiwgNSwgNDUpICAgICAgICAgICAgICAgIC8vfj4gMjAxNy0wMy0xMlQwNTo0NTowMAogICAgICAgKiBAZXhhbXBsZSBEYXRlVGltZS5sb2NhbCgyMDE3LCAzLCAxMiwgNSwgNDUsIDEwKSAgICAgICAgICAgIC8vfj4gMjAxNy0wMy0xMlQwNTo0NToxMAogICAgICAgKiBAZXhhbXBsZSBEYXRlVGltZS5sb2NhbCgyMDE3LCAzLCAxMiwgNSwgNDUsIDEwLCA3NjUpICAgICAgIC8vfj4gMjAxNy0wMy0xMlQwNTo0NToxMC43NjUKICAgICAgICogQHJldHVybiB7RGF0ZVRpbWV9CiAgICAgICAqLwogICAgICA7CgogICAgICBEYXRlVGltZS5sb2NhbCA9IGZ1bmN0aW9uIGxvY2FsKCkgewogICAgICAgIHZhciBfbGFzdE9wdHMgPSBsYXN0T3B0cyhhcmd1bWVudHMpLAogICAgICAgICAgICBvcHRzID0gX2xhc3RPcHRzWzBdLAogICAgICAgICAgICBhcmdzID0gX2xhc3RPcHRzWzFdLAogICAgICAgICAgICB5ZWFyID0gYXJnc1swXSwKICAgICAgICAgICAgbW9udGggPSBhcmdzWzFdLAogICAgICAgICAgICBkYXkgPSBhcmdzWzJdLAogICAgICAgICAgICBob3VyID0gYXJnc1szXSwKICAgICAgICAgICAgbWludXRlID0gYXJnc1s0XSwKICAgICAgICAgICAgc2Vjb25kID0gYXJnc1s1XSwKICAgICAgICAgICAgbWlsbGlzZWNvbmQgPSBhcmdzWzZdOwoKICAgICAgICByZXR1cm4gcXVpY2tEVCh7CiAgICAgICAgICB5ZWFyOiB5ZWFyLAogICAgICAgICAgbW9udGg6IG1vbnRoLAogICAgICAgICAgZGF5OiBkYXksCiAgICAgICAgICBob3VyOiBob3VyLAogICAgICAgICAgbWludXRlOiBtaW51dGUsCiAgICAgICAgICBzZWNvbmQ6IHNlY29uZCwKICAgICAgICAgIG1pbGxpc2Vjb25kOiBtaWxsaXNlY29uZAogICAgICAgIH0sIG9wdHMpOwogICAgICB9CiAgICAgIC8qKgogICAgICAgKiBDcmVhdGUgYSBEYXRlVGltZSBpbiBVVEMKICAgICAgICogQHBhcmFtIHtudW1iZXJ9IFt5ZWFyXSAtIFRoZSBjYWxlbmRhciB5ZWFyLiBJZiBvbWl0dGVkIChhcyBpbiwgY2FsbCBgdXRjKClgIHdpdGggbm8gYXJndW1lbnRzKSwgdGhlIGN1cnJlbnQgdGltZSB3aWxsIGJlIHVzZWQKICAgICAgICogQHBhcmFtIHtudW1iZXJ9IFttb250aD0xXSAtIFRoZSBtb250aCwgMS1pbmRleGVkCiAgICAgICAqIEBwYXJhbSB7bnVtYmVyfSBbZGF5PTFdIC0gVGhlIGRheSBvZiB0aGUgbW9udGgKICAgICAgICogQHBhcmFtIHtudW1iZXJ9IFtob3VyPTBdIC0gVGhlIGhvdXIgb2YgdGhlIGRheSwgaW4gMjQtaG91ciB0aW1lCiAgICAgICAqIEBwYXJhbSB7bnVtYmVyfSBbbWludXRlPTBdIC0gVGhlIG1pbnV0ZSBvZiB0aGUgaG91ciwgbWVhbmluZyBhIG51bWJlciBiZXR3ZWVuIDAgYW5kIDU5CiA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ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy9+PiAyMDE3LTAzLTAxVDAwOjAwOjAwWgogICAgICAgKiBAZXhhbXBsZSBEYXRlVGltZS51dGMoMjAxNywgMywgMTIpICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvL34+IDIwMTctMDMtMTJUMDA6MDA6MDBaCiAgICAgICAqIEBleGFtcGxlIERhdGVUaW1lLnV0YygyMDE3LCAzLCAxMiwgNSkgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vfj4gMjAxNy0wMy0xMlQwNTowMDowMFoKICAgICAgICogQGV4YW1wbGUgRGF0ZVRpbWUudXRjKDIwMTcsIDMsIDEyLCA1LCA0NSkgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy9+PiAyMDE3LTAzLTEyVDA1OjQ1OjAwWgogICAgICAgKiBAZXhhbXBsZSBEYXRlVGltZS51dGMoMjAxNywgMywgMTIsIDUsIDQ1LCB7IGxvY2FsZTogImZyIiB9KSAgICAgICAgICAvL34+IDIwMTctMDMtMTJUMDU6NDU6MDBaIHdpdGggYSBGcmVuY2ggbG9jYWxlCiAgICAgICAqIEBleGFtcGxlIERhdGVUaW1lLnV0YygyMDE3LCAzLCAxMiwgNSwgNDUsIDEwKSAgICAgICAgICAgICAgICAgICAgICAgIC8vfj4gMjAxNy0wMy0xMlQwNTo0NToxMFoKICAgICAgICogQGV4YW1wbGUgRGF0ZVRpbWUudXRjKDIwMTcsIDMsIDEyLCA1LCA0NSwgMTAsIDc2NSwgeyBsb2NhbGU6ICJmciIgfSkgLy9+PiAyMDE3LTAzLTEyVDA1OjQ1OjEwLjc2NVogd2l0aCBhIEZyZW5jaCBsb2NhbGUKICAgICAgICogQHJldHVybiB7RGF0ZVRpbWV9CiAgICAgICAqLwogICAgICA7CgogICAgICBEYXRlVGltZS51dGMgPSBmdW5jdGlvbiB1dGMoKSB7CiAgICAgICAgdmFyIF9sYXN0T3B0czIgPSBsYXN0T3B0cyhhcmd1bWVudHMpLAogICAgICAgICAgICBvcHRzID0gX2xhc3RPcHRzMlswXSwKICAgICAgICAgICAgYXJncyA9IF9sYXN0T3B0czJbMV0sCiAgICAgICAgICAgIHllYXIgPSBhcmdzWzBdLAogICAgICAgICAgICBtb250aCA9IGFyZ3NbMV0sCiAgICAgICAgICAgIGRheSA9IGFyZ3NbMl0sCiAgICAgICAgICAgIGhvdXIgPSBhcmdzWzNdLAogICAgICAgICAgICBtaW51dGUgPSBhcmdzWzRdLAogICAgICAgICAgICBzZWNvbmQgPSBhcmdzWzVdLAogICAgICAgICAgICBtaWxsaXNlY29uZCA9IGFyZ3NbNl07CgogICAgICAgIG9wdHMuem9uZSA9IEZpeGVkT2Zmc2V0Wm9uZS51dGNJbnN0YW5jZTsKICAgICAgICByZXR1cm4gcXVpY2tEVCh7CiAgICAgICAgICB5ZWFyOiB5ZWFyLAogICAgICAgICAgbW9udGg6IG1vbnRoLAogICAgICAgICAgZGF5OiBkYXksCiAgICAgICAgICBob3VyOiBob3VyLAogICAgICAgICAgbWludXRlOiBtaW51dGUsCiAgICAgICAgICBzZWNvbmQ6IHNlY29uZCwKICAgICAgICAgIG1pbGxpc2Vjb25kOiBtaWxsaXNlY29uZAogICAgICAgIH0sIG9wdHMpOwogICAgICB9CiAgICAgIC8qKgogICAgICAgKiBDcmVhdGUgYSBEYXRlVGltZSBmcm9tIGEgSmF2YVNjcmlwdCBEYXRlIG9iamVjdC4gVXNlcyB0aGUgZGVmYXVsdCB6b25lLgogICAgICAgKiBAcGFyYW0ge0RhdGV9IGRhdGUgLSBhIEphdmFTY3JpcHQgRGF0ZSBvYmplY3QKICAgICAgICogQHBhcmFtIHtPYmplY3R9IG9wdGlvbnMgLSBjb25maWd1cmF0aW9uIG9wdGlvbnMgZm9yIHRoZSBEYXRlVGltZQogICAgICAgKiBAcGFyYW0ge3N0cmluZ3xab25lfSBbb3B0aW9ucy56b25lPSdsb2NhbCddIC0gdGhlIHpvbmUgdG8gcGxhY2UgdGhlIERhdGVUaW1lIGludG8KICAgICAgICogQHJldHVybiB7RGF0ZVRpbWV9CiAgICAgICAqLwogICAgICA7CgogICAgICBEYXRlVGltZS5mcm9tSlNEYXRlID0gZnVuY3Rpb24gZnJvbUpTRGF0ZShkYXRlLCBvcHRpb25zKSB7CiAgICAgICAgaWYgKG9wdGlvbnMgPT09IHZvaWQgMCkgewogICAgICAgICAgb3B0aW9ucyA9IHt9OwogICAgICAgIH0KCiAgICAgICAgdmFyIHRzID0gaXNEYXRlKGRhdGUpID8gZGF0ZS52YWx1ZU9mKCkgOiBOYU47CgogICAgICAgIGlmIChOdW1iZXIuaXNOYU4odHMpKSB7CiAgICAgICAgICByZXR1cm4gRGF0ZVRpbWUuaW52YWxpZCgiaW52YWxpZCBpbnB1dCIpOwogICAgICAgIH0KCiAgICAgICAgdmFyIHpvbmVUb1VzZSA9IG5vcm1hbGl6ZVpvbmUob3B0aW9ucy56b25lLCBTZXR0aW5ncy5kZWZhdWx0Wm9uZSk7CgogICAgICAgIGlmICghem9uZVRvVXNlLmlzVmFsaWQpIHsKICAgICAgICAgIHJldHVybiBEYXRlVGltZS5pbnZhbGlkKHVuc3VwcG9ydGVkWm9uZSh6b25lVG9Vc2UpKTsKICAgICAgICB9CgogICAgICAgIHJldHVybiBuZXcgRGF0ZVRpbWUoewogICAgICAgICAgdHM6IHRzLAogICAgICAgICAgem9uZTogem9uZVRvVXNlLAogICAgICAgICAgbG9jOiBMb2NhbGUuZnJvbU9iamVjdChvcHRpb25zKQogICAgICAgIH0pOwogICAgICB9CiAgICAgIC8qKgogICAgICAgKiBDcmVhdGUgYSBEYXRlVGltZSBmcm9tIGEgbnVtYmVyIG9mIG1pbGxpc2Vjb25kcyBzaW5jZSB0aGUgZXBvY2ggKG1lYW5pbmcgc2luY2UgMSBKYW51YXJ5IDE5NzAgMDA6MDA6MDAgVVRDKS4gVXNlcyB0aGUgZGVmYXVsdCB6b25lLgogICAgICAgKiBAcGFyYW0ge251bWJlcn0gbWlsbG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4gcGFyYW1ldGVycyBvciBhbnl0aGluZyBlbHNlIGRhdGEtZGVwZW5kZW50CiAgICAgICAqIEBwYXJhbSB7c3RyaW5nfSBbZXhwbGFuYXRpb249bnVsbF0gLSBsb25nZXIgZXhwbGFuYXRpb24sIG1heSBpbmNsdWRlIHBhcmFtZXRlcnMgYW5kIG90aGVyIHVzZWZ1bCBkZWJ1Z2dpbmcgaW5mb3JtYXRpb24KICAgICAgICogQHJldHVybiB7RGF0ZVRpbWV9CiAgICAgICAqLwogICAgICA7CgogICAgICBEYXRlVGltZS5pbnZhbGlkID0gZnVuY3Rpb24gaW52YWxpZChyZWFzb24sIGV4cGxhbmF0aW9uKSB7CiAgICAgICAgaWYgKGV4cGxhbmF0aW9uID09PSB2b2lkIDApIHsKICAgICAgICAgIGV4cGxhbmF0aW9uID0gbnVsbDsKICAgICAgICB9CgogICAgICAgIGlmICghcmVhc29uKSB7CiAgICAgICAgICB0aHJvdyBuZXcgSW52YWxpZEFyZ3VtZW50RXJyb3IoIm5lZWQgdG8gc3BlY2lmeSBhIHJlYXNvbiB0aGUgRGF0ZVRpbWUgaXMgaW52YWxpZCIpOwogICAgICAgIH0KCiAgICAgICAgdmFyIGludmFsaWQgPSByZWFzb24gaW5zdGFuY2VvZiBJbnZhbGlkID8gcmVhc29uIDogbmV3IEludmFsaWQocmVhc29uLCBleHBsYW5hdGlvbik7CgogICAgICAgIGlmIChTZXR0aW5ncy50aHJvd09uSW52YWxpZCkgewogICAgICAgICAgdGhyb3cgbmV3IEludmFsaWREYXRlVGltZUVycm9yKGludmFsaWQpOwogICAgICAgIH0gZWxzZSB7CiAgICAgICAgICByZXR1cm4gbmV3IERhdGVUaW1lKHsKICAgICAgICAgICAgaW52YWxpZDogaW52YWxpZAogICAgICAgICAgfSk7CiAgICAgICAgfQogICAgICB9CiAgICAgIC8qKgogICAgICAgKiBDaGVjayBpZiBhbiBvYmplY3QgaXMgYSBEYXRlVGltZS4gV29ya3MgYWNyb3NzIGNvbnRleH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RlZmF1bHRab25lKTsKCiAgICAgICAgaWYgKHpvbmUuZXF1YWxzKHRoaXMuem9uZSkpIHsKICAgICAgICAgIHJldHVybiB0aGlzOwogICAgICAgIH0gZWxzZSBpZiAoIXpvbmUuaXNWYWxpZCkgewogICAgICAgICAgcmV0dXJuIERhdGVUaW1lLmludmFsaWQodW5zdXBwb3J0ZWRab25lKHpvbmUpKTsKICAgICAgICB9IGVsc2UgewogICAgICAgICAgdmFyIG5ld1RTID0gdGhpcy50czsKCiAgICAgICAgICBpZiAoa2VlcExvY2FsVGltZSB8fCBrZWVwQ2FsZW5kYXJUaW1lKSB7CiAgICAgICAgICAgIHZhciBvZmZzZXRHdWVzcyA9IHpvbmUub2Zmc2V0KHRoaXMudHMpOwogICAgICAgICAgICB2YXIgYXNPYmogPSB0aGlzLnRvT2JqZWN0KCk7CgogICAgICAgICAgICB2YXIgX29ialRvVFMzID0gb2JqVG9UUyhhc09iaiwgb2Zmc2V0R3Vlc3MsIHpvbmUpOwoKICAgICAgICAgICAgbmV3VFMgPSBfb2JqVG9UUzNbMF07CiAgICAgICAgICB9CgogICAgICAgICAgcmV0dXJuIGNsb25lKHRoaXMsIHsKICAgICAgICAgICAgdHM6IG5ld1RTLAogICAgICAgICAgICB6b25lOiB6b25lCiAgICAgICAgICB9KTsKICAgICAgICB9CiAgICAgIH0KICAgICAgLyoqCiAgICAgICAqICJTZXQiIHRoZSBsb2NhbGUsIG51bWJlcmluZ1N5c3RlbSwgb3Igb3V0cHV0Q2FsZW5kYXIuIFJldHVybnMgYSBuZXdseS1jb25zdHJ1Y3RlZCBEYXRlVGltZS4KICAgICAgICogQHBhcmFtIHtPYmplY3R9IHByb3BlcnRpZXMgLSB0aGUgcHJvcGVydGllcyB0byBzZXQKICAgICAgICogQGV4YW1wbGUgRGF0ZVRpbWUubG9jYWwoMjAxNywgNSwgMjUpLnJlY29uZmlndXJlKHsgbG9jYWxlOiAnZW4tR0InIH0pCiAgICAgICAqIEByZXR1cm4ge0RhdGVUaW1lfQogICAgICAgKi8KICAgICAgOwoKICAgICAgX3Byb3RvLnJlY29uZmlndXJlID0gZnVuY3Rpb24gcmVjb25maWd1cmUoX3RlbXAyKSB7CiAgICAgICAgdmFyIF9yZWY0ID0gX3RlbXAyID09PSB2b2lkIDAgPyB7fSA6IF90ZW1wMiwKICAgICAgICAgICAgbG9jYWxlID0gX3JlZjQubG9jYWxlLAogICAgICAgICAgICBudW1iZXJpbmdTeXN0ZW0gPSBfcmVmNC5udW1iZXJpbmdTeXN0ZW0sCiAgICAgICAgICAgIG91dHB1dENhbGVuZGFyID0gX3JlZjQub3V0cHV0Q2FsZW5kYXI7CgogICAgICAgIHZhciBsb2MgPSB0aGlzLmxvYy5jbG9uZSh7CiAgICAgICAgICBsb2NhbGU6IGxvY2FsZSwKICAgICAgICAgIG51bWJlcmluZ1N5c3RlbTogbnVtYmVyaW5nU3lzdGVtLAogICAgICAgICAgb3V0cHV0Q2FsZW5kYXI6IG91dHB1dENhbGVuZGFyCiAgICAgICAgfSk7CiAgICAgICAgcmV0dXJuIGNsb25lKHRoaXMsIHsKICAgICAgICAgIGxvYzogbG9jCiAgICAgICAgfSk7CiAgICAgIH0KICAgICAgLyoqCiAgICAgICAqICJTZXQiIHRoZSBsb2NhbGUuIFJldHVybnMgYSBuZXdseS1jb25zdHJ1Y3RlZCBEYXRlVGltZS4KICAgICAgICogSnVzdCBhIGNvbnZlbmllbnQgYWxpYXMgZm9yIHJlY29uZmlndXJlKHsgbG9jYWxlIH0pCiAgICAgICAqIEBleGFtcGxlIERhdGVUaW1lLmxvY2FsKDIwMTcsIDUsIDI1KS5zZXRMb2NhbGUoJ2VuLUdCJykKICAgICAgICogQHJldHVybiB7RGF0ZVRpbWV9CiAgICAgICAqLwogICAgICA7CgogICAgICBfcHJvdG8uc2V0TG9jYWxlID0gZnVuY3Rpb24gc2V0TG9jYWxlKGxvY2FsZSkgewogICAgICAgIHJldHVybiB0aGlzLnJlY29uZmlndXJlKHsKICAgICAgICA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vcm1hbGl6ZWQud2Vla2RheSksCiAgICAgICAgICAgIGNvbnRhaW5zT3JkaW5hbCA9ICFpc1VuZGVmaW5lZChub3JtYWxpemVkLm9yZGluYWwpLAogICAgICAgICAgICBjb250YWluc0dyZWdvclllYXIgPSAhaXNVbmRlZmluZWQobm9ybWFsaXplZC55ZWFyKSwKICAgICAgICAgICAgY29udGFpbnNHcmVnb3JNRCA9ICFpc1VuZGVmaW5lZChub3JtYWxpemVkLm1vbnRoKSB8fCAhaXNVbmRlZmluZWQobm9ybWFsaXplZC5kYXkpLAogICAgICAgICAgICBjb250YWluc0dyZWdvciA9IGNvbnRhaW5zR3JlZ29yWWVhciB8fCBjb250YWluc0dyZWdvck1ELAogICAgICAgICAgICBkZWZpbml0ZVdlZWtEZWYgPSBub3JtYWxpemVkLndlZWtZZWFyIHx8IG5vcm1hbGl6ZWQud2Vla051bWJlcjsKCiAgICAgICAgaWYgKChjb250YWluc0dyZWdvciB8fCBjb250YWluc09yZGluYWwpICYmIGRlZmluaXRlV2Vla0RlZikgewogICAgICAgICAgdGhyb3cgbmV3IENvbmZsaWN0aW5nU3BlY2lmaWNhdGlvbkVycm9yKCJDYW4ndCBtaXggd2Vla1llYXIvd2Vla051bWJlciB1bml0cyB3aXRoIHllYXIvbW9udGgvZGF5IG9yIG9yZGluYWxzIik7CiAgICAgICAgfQoKICAgICAgICBpZiAoY29udGFpbnNHcmVnb3JNRCAmJiBjb250YWluc09yZGluYWwpIHsKICAgICAgICAgIHRocm93IG5ldyBDb25mbGljdGluZ1NwZWNpZmljYXRpb25FcnJvcigiQ2FuJ3QgbWl4IG9yZGluYWwgZGF0ZXMgd2l0aCBtb250aC9kYXkiKTsKICAgICAgICB9CgogICAgICAgIHZhciBtaXhlZDsKCiAgICAgICAgaWYgKHNldHRpbmdXZWVrU3R1ZmYpIHsKICAgICAgICAgIG1peGVkID0gd2Vla1RvR3JlZ29yaWFuKF9leHRlbmRzKHt9LCBncmVnb3JpYW5Ub1dlZWsodGh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YXJ0T2YoJ2hvdXInKS50b0lTT1RpbWUoKTsgLy89PiAnMDU6MDA6MDAuMDAwLTA1OjAwJwogICAgICAgKiBAcmV0dXJuIHtEYXRlVGltZX0KICAgICAgICovCiAgICAgIDsKCiAgICAgIF9wcm90by5zdGFydE9mID0gZnVuY3Rpb24gc3RhcnRPZih1bml0KSB7CiAgICAgICAgaWYgKCF0aGlzLmlzVmFsaWQpIHJldHVybiB0aGlzOwogICAgICAgIHZhciBvID0ge30sCiAgICAgICAgICAgIG5vcm1hbGl6ZWRVbml0ID0gRHVyYXRpb24ubm9ybWFsaXplVW5pdCh1bml0KTsKCiAgICAgICAgc3dpdGNoIChub3JtYWxpemVkVW5pdCkgewogICAgICAgICAgY2FzZSAieWVhcnMiOgogICAgICAgICAgICBvLm1vbnRoID0gMTsKICAgICAgICAgIC8vIGZhbGxzIHRocm91Z2gKCiAgICAgICAgICBjYXNlICJxdWFydGVycyI6CiAgICAgICAgICBjYXNlICJtb250aHMiOgogICAgICAgICAgICBvLmRheSA9IDE7CiAgICAgICAgICAvLyBmYWxscyB0aHJvdWdoCgogICAgICAgICAgY2FzZSAid2Vla3MiOgogICAgICAgICAgY2FzZSAiZGF5cyI6CiAgICAgICAgICAgIG8uaG91ciA9IDA7CiAgICAgICAgICAvLyBmYWxscyB0aHJvdWdoCgogICAgICAgICAgY2FzZSAiaG91cnMiOgogICAgICAgICAgICBvLm1pbnV0ZSA9IDA7CiAgICAgICAgICAvLyBmYWxscyB0aHJvdWdoCgogICAgICAgICAgY2FzZSAibWludXRlcyI6CiAgICAgICAgICAgIG8uc2Vjb25kID0gMDsKICAgICAgICAgIC8vIGZhbGxzIHRocm91Z2gKCiAgICAgICAgICBjYXNlICJzZWNvbmRzIjoKICAgICAgICAgICAgby5taWxsaXNlY29uZCA9IDA7CiAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgLy8gbm8gZGVmYXVsdCwgaW52YWxpZCB1bml0cyB0aHJvdyBpbiBub3JtYWxpemVVbml0KCkKICAgICAgICB9CgogICAgICAgIGlmIChub3JtYWxpemVkVW5pdCA9PT0gIndlZWtzIikgewogICAgICAgICAgby53ZWVrZGF5ID0gMTsKICAgICAgICB9CgogICAgICAgIGlmIChub3JtYWxpemVkVW5pdCA9PT0gInF1YXJ0ZXJzIikgewogICAgICAgICAgdmFyIHEgPSBNYXRoLmNlaWwodGhpcy5tb250aCAvIDMpOwogICAgICAgICAgby5tb250aCA9IChxIC0gMSkgKiAzICsgMTsKICAgICAgICB9CgogICAgICAgIHJldHVybiB0aGlzLnNldChvKTsKICAgICAgfQogICAgICAvKioKICAgICAgICogIlNldCIgdGhpcyBEYXRlVGltZSB0byB0aGUgZW5kIChtZWFuaW5nIHRoZSBsYXN0IG1pbGxpc2Vjb25kKSBvZiBhIHVuaXQgb2YgdGltZQogICAgICAgKiBAcGFyYW0ge3N0cmluZ30gdW5pdCAtIFRoZSB1bml0IHRvIGdvIHRvIHRoZSBlbmQgb2YuIENhbiBiZSAneWVhcicsICdxdWFydGVyJywgJ21vbnRoJywgJ3dlZWsnLCAnZGF5JywgJ2hvdXInLCAnbWludXRlJywgJ3NlY29uZCcsIG9yICdtaWxsaXNlY29uZCcuCiAgICAgICAqIEBleGFtcGxlIERhdGVUaW1lLmxvY2FsKDIwMTQsIDMsIDMpLmVuZE9mKCdtb250aCcpLnRvSVNPKCk7IC8vPT4gJzIwMTQtMDMtMzFUMjM6NTk6NTkuOTk5LTA1OjAwJwogICAgICAgKiBAZXhhbXBsZSBEYXRlVGltZS5sb2NhbCgyMDE0LCAzLCAzKS5lbmRPZigneWVhcicpLnRvSVNPKCk7IC8vPT4gJzIwMTQtMTItMzFUMjM6NTk6NTkuOTk5LTA1OjAwJwogICAgICAgKiBAZXhhbXBsZSBEYXRlVGltZS5sb2NhbCgyMDE0LCAzLCAzKS5lbmRPZignd2VlaycpLnRvSVNPKCk7IC8vID0+ICcyMDE0LTAzLTA5VDIzOjU5OjU5Ljk5OS0wNTowMCcsIHdlZWtzIHN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ICAgICAgICogQHNlZSBodHRwczovL2RldmVsb3Blci5tb3ppbGxhLm9yZy9lbi1VUy9kb2NzL1dlYi9KYXZhU2NyaXB0L1JlZmVyZW5jZS9HbG9iYWxfT2JqZWN0cy9EYXRlVGltZUZvcm1hdC9mb3JtYXRUb1BhcnRzCiAgICAgICAqIEBwYXJhbSBvcHRzIHtPYmplY3R9IC0gSW50bC5EYXRlVGltZUZvcm1hdCBjb25zdHJ1Y3RvciBvcHRpb25zLCBzYW1lIGFzIGB0b0xvY2FsZVN0cmluZ2AuCiAgICAgICAqIEBleGFtcGxlIERhdGVUaW1lLm5vdygpLnRvTG9jYWxlUGFydHMoKTsgLy89PiBbCiAgICAgICAqICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvLz0+ICAgeyB0eXBlOiAnZGF5JywgdmFsdWU6ICcyNScgfSwKICAgICAgICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vPT4gICB7IHR5cGU6ICdsaXRlcmFsJywgdmFsdWU6ICcvJyB9LAogICAgICAgKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy89PiAgIHsgdHlwZTogJ21vbnRoJywgdmFsdWU6ICcwNScgfSwKICAgICAgICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vPT4gICB7IHR5cGU6ICdsaXRlcmFsJywgdmFsdWU6ICcvJyB9LAogICAgICAgKiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLy89PiAgIHsgdHlwZTogJ3llYXInLCB2YWx1ZTogJzE5ODInIH0KICAgICAgICogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8vPT4gXQogICAgICAgKi8KICAgICAgOwoKICAgICAgX3Byb3RvLnRvTG9jYWxlUGFydHMgPSBmdW5jdGlvbiB0b0xvY2FsZVBhcnRzKG9wdHMpIHsKICAgICAgICBpZiAob3B0cyA9PT0gdm9pZCAwKSB7CiAgICAgICAgICBvcHRzID0ge307CiAgICA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vcHRzID09PSB2b2lkIDApIHsKICAgICAgICAgIG9wdHMgPSB7fTsKICAgICAgICB9CgogICAgICAgIGlmICghdGhpcy5pc1ZhbGlkKSB7CiAgICAgICAgICByZXR1cm4gbnVsbDsKICAgICAgICB9CgogICAgICAgIHJldHVybiB0aGlzLnRvU1FMRGF0ZSgpICsgIiAiICsgdGhpcy50b1NRTFRpbWUob3B0cyk7CiAgICAgIH0KICAgICAgLyoqCiAgICAgICAqIFJldHVybnMgYSBzdHJpbmcgcmVwcmVzZW50YXRpb24gb2YgdGhpcyBEYXRlVGltZSBhcHByb3ByaWF0ZSBmb3IgZGVidWdnaW5nCiAgICAgICAqIEByZXR1cm4ge3N0cmluZ30KICAgICAgICovCiAgICAgIDsKCiAgICAgIF9wcm90by50b1N0cmluZyA9IGZ1bmN0aW9uIHRvU3RyaW5nKCkgewogICAgICAgIHJldHVybiB0aGlzLmlzVmFsaWQgPyB0aGlzLnRvSVNPKCkgOiBJTlZBTElEOwogICAgICB9CiAgICAgIC8qKgogICAgICAgKiBSZXR1cm5zIHRoZSBlcG9jaCBtaWxsaXNlY29uZHMgb2YgdGhpcyBEYXRlVGltZS4gQWxpYXMgb2Yge0BsaW5rIERhdGVUaW1lLnRvTWlsbGlzfQogICAgICAgKiBAcmV0dXJuIHtudW1iZXJ9CiAgICAgICAqLwogICAgICA7CgogICAgICBfcHJvdG8udmFsdWVPZiA9IGZ1bmN0aW9uIHZhbHVlT2YoKSB7CiAgICAgICAgcmV0dXJuIHRoaXMudG9NaWxsaXMoKTsKICAgICAgfQogICAgICAvKioKICAgICAgICogUmV0dXJucyB0aGUgZXBvY2ggbWlsbGlzZWNvbmRzIG9mIHRoaXMgRGF0ZVRpbWUuCiAgICAgICAqIEByZXR1cm4ge251bWJlcn0KICAgICAgICovCiAgICAgIDsKCiAgICAgIF9wcm90by50b01pbGxpcyA9IGZ1bmN0aW9uIHRvTWlsbGlzKCkgewogICAgICAgIHJldHVybiB0aGlzLmlzVmFsaWQgPyB0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tb250aHMnLCAnZGF5cyddKS50b09iamVjdCgpIC8vPT4geyBtb250aHM6IDE2LCBkYXlzOiAxOS4wMzEyNSB9CiAgICAgICAqIGkyLmRpZmYoaTEsIFsnbW9udGhzJywgJ2RheXMnLCAnaG91cnMnXSkudG9PYmplY3QoKSAvLz0+IHsgbW9udGhzOiAxNiwgZGF5czogMTksIGhvdXJzOiAwLjc1IH0KICAgICAgICogQHJldHVybiB7RHVyYXRpb259CiAgICAgICAqLwogICAgICA7CgogICAgICBfcHJvdG8uZGlmZiA9IGZ1bmN0aW9uIGRpZmYob3RoZXJEYXRlVGltZSwgdW5pdCwgb3B0cykgewogICAgICAgIGlmICh1bml0ID09PSB2b2lkIDApIHsKICAgICAgICAgIHVuaXQgPSAibWlsbGlzZWNvbmRzIjsKICAgICAgICB9CgogICAgICAgIGlmIChvcHRzID09PSB2b2lkIDApIHsKICAgICAgICAgIG9wdHMgPSB7fTsKICAgICAgICB9CgogICAgICAgIGlmICghdGhpcy5pc1ZhbGlkIHx8ICFvdGhlckRhdGVUaW1lLmlzVmFsaWQpIHsKICAgICAgICAgIHJldHVybiBEdXJhdGlvbi5pbnZhbGlkKCJjcmVhdGVkIGJ5IGRpZmZpbmcgYW4gaW52YWxpZCBEYXRlVGltZSIpOwogICAgICAgIH0KCiAgICAgICAgdmFyIGR1ck9wdHMgPSBfZXh0ZW5kcyh7CiAgICAgICAgICBsb2NhbGU6IHRoaXMubG9jYWxlLAogICAgICAgICAgbnVtYmVyaW5nU3lzdGVtOiB0aGlzLm51bWJlcmluZ1N5c3RlbQogICAgICAgIH0sIG9wdHMpOwoKICAgICAgICB2YXIgdW5pdHMgPSBtYXliZUFycmF5KHVuaXQpLm1hcChEdXJhdGlvbi5ub3JtYWxpemVVbml0KSwKICAgICAgICAgICAgb3RoZXJJc0xhdGVyID0gb3RoZXJEYXRlVGltZS52YWx1ZU9mKCkgPiB0aGlzLnZhbHVlT2YoKSwKICAgICAgICAgICAgZWFybGllciA9IG90aGVySXN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LmJhc2UgfHwgRGF0ZVRpbWUuZnJvbU9iamVjdCh7fSwgewogICAgICAgICAgem9uZTogdGhpcy56b25lCiAgICAgICAgfSksCiAgICAgICAgICAgIHBhZGRpbmcgPSBvcHRpb25zLnBhZGRpbmcgPyB0aGlzIDwgYmFzZSA/IC1vcHRpb25zLnBhZGRpbmcgOiBvcHRpb25zLnBhZGRpbmcgOiAwOwogICAgICAgIHZhciB1bml0cyA9IFsieWVhcnMiLCAibW9udGhzIiwgImRheXMiLCAiaG91cnMiLCAibWludXRlcyIsICJzZWNvbmRzIl07CiAgICAgICAgdmFyIHVuaXQgPSBvcHRpb25zLnVuaXQ7CgogICAgICAgIGlmIChBcnJheS5pc0FycmF5KG9wdGlvbnMudW5pdCkpIHsKICAgICAgICAgIHVuaXRzID0gb3B0aW9ucy51bml0OwogICAgICAgICAgdW5pdCA9IHVuZGVmaW5lZDsKICAgICAgICB9CgogICAgICAgIHJldHVybiBkaWZmUmVsYXRpdmUoYmFzZSwgdGhpcy5wbHVzKHBhZGRpbmcpLCBfZXh0ZW5kcyh7fSwgb3B0aW9ucywgewogICAgICAgICAgbnVtZXJpYzogImFsd2F5cyIsCiAgICAgICAgICB1bml0czogdW5pdHMsCiAgICAgICAgICB1bml0OiB1bml0CiAgICAgICAgfSkpOwogICAgICB9CiAgICAgIC8qKgogICAgICAgKiBSZXR1cm5zIGEgc3RyaW5nIHJlcHJlc2VudGF0aW9uIG9mIHRoaXMgZGF0ZSByZWxhdGl2ZSB0byB0b2RheSwgc3VjaCBhcyAieWVzdGVyZGF5IiBvciAibmV4dCBtb250aCIuCiAgICAgICAqIE9ubHkgaW50ZXJuYXRpb25hbGl6ZXMgb24gcGxhdGZvcm1zIHRoYXQgc3VwcG9ydHMgSW50bC5SZWxhdGl2ZVRpbWVGb3JtYXQuCiAgICAgICAqIEBwYXJhbSB7T2JqZWN0fSBvcHRpb25zIC0gb3B0aW9ucyB0aGF0IGFmZmVjdCB0aGUgb3V0cHV0CiAgICAgICA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FyZ3VtZW50c1tfa2V5Ml07CiAgICAgICAgfQoKICAgICAgICBpZiAoIWRhdGVUaW1lcy5ldmVyeShEYXRlVGltZS5pc0RhdGVUaW1lKSkgewogICAgICAgICAgdGhyb3cgbmV3IEludmFsaWRBcmd1bWVudEVycm9yKCJtYXggcmVxdWlyZXMgYWxsIGFyZ3VtZW50cyBiZSBEYXRlVGltZXMiKTsKICAgICAgICB9CgogICAgICAgIHJldHVybiBiZXN0QnkoZGF0ZVRpbWVzLCBmdW5jdGlvbiAoaSkgewogICAgICAgICAgcmV0dXJuIGkudmFsdWVPZigpOwogICAgICAgIH0sIE1hdGgubWF4KTsKICAgICAgfSAvLyBNSVNDCgogICAgICAvKioKICAgICAgICogRXhwbGFpbiBob3cgYSBzdHJpbmcgd291bGQgYmUgcGFyc2VkIGJ5IGZyb21Gb3JtYXQoKQogICAgICAgKiBAcGFyYW0ge3N0cmluZ30gdGV4dCAtIHRoZSBzdHJpbmcgdG8gcGFyc2UKICAgICAgICogQHBhcmFtIHtzdHJpbmd9IGZtdCAtIHRoZSBmb3JtYXQgdGhlIHN0cmluZyBpcyBleHBlY3RlZCB0byBiZSBpbiAoc2VlIGRlc2NyaXB0aW9uKQogICAgICAgKiBAcGFyYW0ge09iamVjdH0gb3B0aW9ucyAtIG9wdGlvbnMgdGFrZW4gYnkgZnJvbUZvcm1hdCgpCiAgICAgICAqIEByZXR1cm4ge09iamVjdH0KICAgICAgICovCiAgICAgIDsKCiAgICAgIERhdGVUaW1lLmZyb21Gb3JtYXRFeHBsYWluID0gZnVuY3Rpb24gZnJvbUZvcm1hdEV4cGxhaW4odGV4dCwgZm10LCBvcHRpb25zKSB7CiAgICAgICAgaWYgKG9wdGlvbnMgPT09IHZvaWQgMCkgewogICAgICAgICAgb3B0aW9ucyA9IHt9OwogICAgICAgIH0KCiAgICAgICAgdmFyIF9vcHRpb25zID0gb3B0aW9ucywKICAgICAgICAgICAgX29wdGlvbnMkbG9jYWxlID0gX29wdGlvbnMubG9jYWxlLAogICAgICAgICAgICBsb2NhbGUgPSBfb3B0aW9ucyRsb2NhbGUgPT09IHZvaWQgMCA/IG51bGwgOiBfb3B0aW9ucyRsb2NhbGUsCiAgICAgICAgICAgIF9vcHRpb25zJG51bWJlcmluZ1N5cyA9IF9vcHRpb25zLm51bWJlcmluZ1N5c3RlbSwKICAgICAgICAgICAgbnVtYmVyaW5nU3lzdGVtID0gX29wdGlvbnMkbnVtYmVyaW5nU3lzID09PSB2b2lkIDAgPyBudWxsIDogX29wdGlvbnMkbnVtYmVyaW5nU3lzLAogICAgICAgICAgICBsb2NhbGVUb1VzZSA9IExvY2FsZS5mcm9tT3B0cyh7CiAgICAgICAgICBsb2NhbGU6IGxvY2FsZSwKICAgICAgICAgIG51bWJlcmluZ1N5c3RlbTogbnVtYmVyaW5nU3lzdGVtLAogICAgICAgICAgZGVmYXVsdFRvRU46IHRydWUKICAgICAgICB9KTsKICAgICAgICByZXR1cm4gZXhwbGFpbkZyb21Ub2tlbnMobG9jYWxlVG9Vc2UsIHRleHQsIGZtdCk7CiAgICAgIH0KICAgICAgLyoqCiAgICAgICAqIEBkZXByZWNhdGVkIHVzZSBmcm9tRm9ybWF0RXhwbGFpbiBpbnN0ZWFkCiAgICAgICAqLwogICAgICA7CgogICAgICBEYXRlVGltZS5mcm9tU3RyaW5nRXhwbGFpbiA9IGZ1bmN0aW9uIGZyb21TdHJpbmdFeHBsYWluKHRleHQsIGZtdCwgb3B0aW9ucykgewogICAgICAgIGlmIChvcHRpb25zID09PSB2b2lkIDApIHsKICAgICAgICAgIG9wdGlvbnMgPSB7fTsKICAgICAgICB9CgogICAgICAgIHJldHVybiBEYXRlVGltZS5mcm9tRm9ybWF0RXhwbGFpbih0ZXh0LCBmbXQsIG9wdGlvbnMpOwogICAgICB9IC8vIEZPUk1BVCBQUkVTRVRTCgogICAgICAvKioKICAgICAgICoge0BsaW5rIERhdGVUaW1lLnRvTG9jYWxlU3RyaW5nfSBmb3JtYXQgbGlrZSAxMC8xNC8xOTgzCiAgICAgICAqIEB0eXBlIHtPYmplY3R9CiAgICAgICAqLwogICAgICA7CgogICAgICBfY3JlYXRlQ2xhc3MoRGF0ZVRpbWUsIFt7CiAgICAgICAga2V5OiAiaXNWYWxpZCIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gdGhpcy5pbnZhbGlkID09PSBudWxsOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiBSZXR1cm5zIGFuIGVycm9yIGNvZGUgaWYgdGhpcyBEYXRlVGltZSBpcyBpbnZhbGlkLCBvciBudWxsIGlmIHRoZSBEYXRlVGltZSBpcyB2YWxpZAogICAgICAgICAqIEB0eXBlIHtzdHJpbmd9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAiaW52YWxpZFJlYXNvbiIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gdGhpcy5pbnZhbGlkID8gdGhpcy5pbnZhbGlkLnJlYXNvbiA6IG51bGw7CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIFJldHVybnMgYW4gZXhwbGFuYXRpb24gb2Ygd2h5IHRoaXMgRGF0ZVRpbWUgYmVjYW1lIGludmFsaWQsIG9yIG51bGwgaWYgdGhlIERhdGVUaW1lIGlzIHZhbGlkCiAgICAgICAgICogQHR5cGUge3N0cmluZ30KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJpbnZhbGlkRXhwbGFuYXRpb24iLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIHRoaXMuaW52YWxpZCA/IHRoaXMuaW52YWxpZC5leHBsYW5hdGlvbiA6IG51bGw7CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIEdldCB0aGUgbG9jYWxlIG9mIGEgRGF0ZVRpbWUsIHN1Y2ggJ2VuLUdCJy4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hbGlkID8gdGhpcy5sb2Mub3V0cHV0Q2FsZW5kYXIgOiBudWxsOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiBHZXQgdGhlIHRpbWUgem9uZSBhc3NvY2lhdGVkIHdpdGggdGhpcyBEYXRlVGltZS4KICAgICAgICAgKiBAdHlwZSB7Wm9uZX0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJ6b25lIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiB0aGlzLl96b25lOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiBHZXQgdGhlIG5hbWUgb2YgdGhlIHRpbWUgem9uZS4KICAgICAgICAgKiBAdHlwZSB7c3RyaW5nfQogICAgICAgICAqLwoKICAgICAgfSwgewogICAgICAgIGtleTogInpvbmVOYW1lIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiB0aGlzLmlzVmFsaWQgPyB0aGlzLnpvbmUubmFtZSA6IG51bGw7CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIEdldCB0aGUgeWVhcgogICAgICAgICAqIEBleGFtcGxlIERhdGVUaW1lLmxvY2FsKDIwMTcsIDUsIDI1KS55ZWFyIC8vPT4gMjAxNwogICAgICAgICAqIEB0eXBlIHtudW1iZXJ9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAieWVhciIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gdGhpcy5pc1ZhbGlkID8gdGhpcy5jLnllYXIgOiBOYU47CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIEdldCB0aGUgcXVhcnRlcgogICAgICAgICAqIEBleGFtcGxlIERhdGVUaW1lLmxvY2FsKDIwMTcsIDUsIDI1KS5xdWFydGVyIC8vPT4gMgogICAgICAgICAqIEB0eXBlIHtudW1iZXJ9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAicXVhcnRlciIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gdGhpcy5pc1ZhbGlkID8gTWF0aC5jZWlsKHRoaXMuYy5tb250aCAvIDMpIDogTmFOOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiBHZXQgdGhlIG1vbnRoICgxLTEyKS4KICAgICAgICAgKiBAZXhhbXBsZSBEYXRlVGltZS5sb2NhbCgyMDE3LCA1LCAyNSkubW9udGggLy89PiA1CiAgICAgICAgICogQHR5cGUge251bWJlcn0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJtb250aCIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gdGhpcy5pc1ZhbGlkID8gdGhpcy5jLm1vbnRoIDogTmFOOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiBHZXQgdGhlIGRheSBvZiB0aGUgbW9udGggKDEtMzBpc2gpLgogICAgICAgICAqIEBleGFtcGxlIERhdGVUaW1lLmxvY2FsKDIwMTcsIDUsIDI1KS5kYXkgLy89PiAyNQogICAgICAgICAqIEB0eXBlIHtudW1iZXJ9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAiZGF5IiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiB0aGlzLmlzVmFsaWQgPyB0aGlzLmMuZGF5IDogTmFOOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiBHZXQgdGhlIGhvdXIgb2YgdGhlIGRheSAoMC0yMykuCiAgICAgICAgICogQGV4YW1wbGUgRGF0ZVRpbWUubG9jYWwoMjAxNywgNSwgMjUsIDkpLmhvdXIgLy89PiA5CiAgICAgICAgICogQHR5cGUge251bWJlcn0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJob3VyIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiB0aGlzLmlzVmFsaWQgPyB0aGlzLmMuaG91ciA6IE5hTjsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICogR2V0IHRoZSBtaW51dGUgb2YgdGhlIGhvdXIgKDAtNTkpLgogICAgICAgICAqIEBleGFtcGxlIERhdGVUaW1lLmxvY2FsKDIwMTcsIDUsIDI1LCA5LCAzMCkubWludXRlIC8vPT4gMzAKICAgICAgICAgKiBAdHlwZSB7bnVtYmVyfQogICAgICAgICAqLwoKICAgICAgfSwgewogICAgICAgIGtleTogIm1pbnV0ZSIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gdGhpcy5pc1ZhbGlkID8gdGhpcy5jLm1pbnV0ZSA6IE5hTjsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICogR2V0IHRoZSBzZWNvbmQgb2YgdGhlIG1pbnV0ZSAoMC01OSkuCiAgICAgICAgICogQGV4YW1wbGUgRGF0ZVRpbWUubG9jYWwoMjAxNywgNSwgMjUsIDksIDMwLCA1Mikuc2Vjb25kIC8vPT4gNTIKICAgICAgICAgKiBAdHlwZSB7bnVtYmVyfQogICAgICAgICAqLwoKICAgICAgfSwgewogICAgICAgIGtleTogInNlY29uZCIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gdGhpcy5pc1ZhbGlkID8gdGhpcy5jLnNlY29uZCA6IE5hTjsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICogR2V0IHRoZSBtaWxsaXNlY29uZCBvZiB0aGUgc2Vjb25kICgwLTk5OSkuCiAgICAgICAgICogQGV4YW1wbGUgRGF0ZVRpbWUubG9jYWwoMjAxNywgNSwgMjUsIDksIDMwLCA1MiwgNjU0KS5taWxsaXNlY29uZCAvLz0+IDY1NAogICAgICAgICAqIEB0eXBlIHtudW1iZXJ9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAibWlsbGlzZWNvbmQiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIHRoaXMuaXNWYWxpZCA/IHRoaXMuYy5taWxsaXNlY29uZCA6IE5hTjsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICogR2V0IHRoZSB3ZWVrIHllYXIKICAgICAgICAgKiBAc2VlIGh0dHBzOi8vZW4ud2lraXBlZGlhLm9yZy93aWtpL0lTT193ZWVrX2RhdGUKICAgICAgICAgKiBAZXhhbXBsZSBEYXRlVGltZS5sb2NhbCgyMDE0LCAxMiwgMzEpLndlZWtZZWFyIC8vPT4gMjAxNQogICAgICAgICAqIEB0eXBlIHtudW1iZXJ9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAid2Vla1llYXIiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIHRoaXMuaXNWYWxpZCA/IHBvc3NpYmx5Q2FjaGVkV2Vla0RhdGEodGhpcykud2Vla1llYXIgOiBOYU47CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIEdldCB0aGUgd2VlayBudW1iZXIgb2YgdGhlIHdlZWsgeWVhciAoMS01MmlzaCkuCiAgICAgICAgICogQHNlZSBodHRwczovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9JU09fd2Vla19kYXRlCiAgICAgICAgICogQGV4YW1wbGUgRGF0ZVRpbWUubG9jYWwoMjAxNywgNSwgMjUpLndlZWtOdW1iZXIgLy89PiAyMQogICAgICAgICAqIEB0eXBlIHtudW1iZXJ9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAid2Vla051bWJlciIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gdGhpcy5pc1ZhbGlkID8gcG9zc2libHlDYWNoZWRXZWVrRGF0YSh0aGlzKS53ZWVrTnVtYmVyIDogTmFOOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiBHZXQgdGhlIGRheSBvZiB0aGUgd2Vlay4KICAgICAgICAgKiAxIGlzIE1vbmRheSBhbmQgNyBpcyBTdW5kYXkKICAgICAgICAgKiBAc2VlIGh0dHBzOi8vZW4ud2lraXBlZGlhLm9yZy93aWtpL0lTT193ZWVrX2RhdGUKICAgICAgICAgKiBAZXhhbXBsZSBEYXRlVGltZS5sb2NhbCgyMDE0LCAxMSwgMzEpLndlZWtkYXkgLy89PiA0CiAgICAgICAgICogQHR5cGUge251bWJlcn0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJ3ZWVrZGF5IiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiB0aGlzLmlzVmFsaWQgPyBwb3NzaWJseUNhY2hlZFdlZWtEYXRhKHRoaXMpLndlZWtkYXkgOiBOYU47CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIEdldCB0aGUgb3JkaW5hbCAobWVhbmluZyB0aGUgZGF5IG9mIHRoZSB5ZWFyKQogICAgICAgICAqIEBleGFtcGxlIERhdGVUaW1lLmxvY2FsKDIwMTcsIDUsIDI1KS5vcmRpbmFsIC8vPT4gMTQ1CiAgICAgICAgICogQHR5cGUge251bWJlcnxEYXRlVGltZX0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJvcmRpbmFsIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiB0aGlzLmlzVmFsaWQgPyBncmVnb3JpYW5Ub09yZGluYWwodGhpcy5jKS5vcmRpbmFsIDogTmFOOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiBHZXQgdGhlIGh1bWFuIHJlYWRhYmxlIHNob3J0IG1vbnRoIG5hbWUsIHN1Y2ggYXMgJ09jdCcuCiAgICAgICAgICogRGVmYXVsdHMgdG8gdGhlIHN5c3RlbSdzIGxvY2FsZSBpZiBubyBsb2NhbGUgaGFzIGJlZW4gc3BlY2lmaWVkCiAgICAgICAgICogQGV4YW1wbGUgRGF0ZVRpbWUubG9jYWwoMjAxNywgMTAsIDMwKS5tb250aFNob3J0IC8vPT4gT2N0CiAgICAgICAgICogQHR5cGUge3N0cmluZ30KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJtb250aFNob3J0IiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiB0aGlzLmlzVmFsaWQgPyBJbmZvLm1vbnRocygic2hvcnQiLCB7CiAgICAgICAgICAgIGxvY09iajogdGhpcy5sb2MKICAgICAgICAgIH0pW3RoaXMubW9udGggLSAxXSA6IG51bGw7CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIEdldCB0aGUgaHVtYW4gcmVhZGFibGUgbG9uZyBtb250aCBuYW1lLCBzdWNoIGFzICdPY3RvYmVyJy4KICAgICAgICAgKiBEZWZhdWx0cyB0byB0aGUgc3lzdGVtJ3MgbG9jYWxlIGlmIG5vIGxvY2FsZSBoYXMgYmVlbiBzcGVjaWZpZWQKICAgICAgICAgKiBAZXhhbXBsZSBEYXRlVGltZS5sb2NhbCgyMDE3LCAxMCwgMzApLm1vbnRoTG9uZyAvLz0+IE9jdG9iZXIKICAgICAgICAgKiBAdHlwZSB7c3RyaW5nfQogICAgICAgICAqLwoKICAgICAgfSwgewogICAgICAgIGtleTogIm1vbnRoTG9uZyIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gdGhpcy5pc1ZhbGlkID8gSW5mby5tb250aHMoImxvbmciLCB7CiAgICAgICAgICAgIGxvY09iajogdGhp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5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gdGhpcy5pc1ZhbGlkID8gSW5mby53ZWVrZGF5cygibG9uZyIsIHsKICAgICAgICAgICAgbG9jT2JqOiB0aGlzLmxvYwogICAgICAgICAgfSlbdGhpcy53ZWVrZGF5IC0gMV0gOiBudWxsOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiBHZXQgdGhlIFVUQyBvZmZzZXQgb2YgdGhpcyBEYXRlVGltZSBpbiBtaW51dGVzCiAgICAgICAgICogQGV4YW1wbGUgRGF0ZVRpbWUubm93KCkub2Zmc2V0IC8vPT4gLTI0MAogICAgICAgICAqIEBleGFtcGxlIERhdGVUaW1lLnV0YygpLm9mZnNldCAvLz0+IDAKICAgICAgICAgKiBAdHlwZSB7bnVtYmVyfQogICAgICAgICAqLwoKICAgICAgfSwgewogICAgICAgIGtleTogIm9mZnNldCIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gdGhpcy5pc1ZhbGlkID8gK3RoaXMubyA6IE5hTjsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICogR2V0IHRoZSBzaG9ydCBodW1hbiBuYW1lIGZvciB0aGUgem9uZSdzIGN1cnJlbnQgb2Zmc2V0LCBmb3IgZXhhbXBsZSAiRVNUIiBvciAiRURUIi4KICAgICAgICAgKiBEZWZhdWx0cyB0byB0aGUgc3lzdGVtJ3MgbG9jYWxlIGlmIG5vIGxvY2FsZSBoYXMgYmVlbiBzcGVjaWZpZWQKICAgICAgICAgKiBAdHlwZSB7c3RyaW5nfQogICAgICAgICAqLwoKICAgICAgfSwgewogICAgICAgIGtleTogIm9mZnNldE5hbWVTaG9ydCIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICBpZiAodGhpcy5pc1ZhbGlkKSB7CiAgICAgICAgICAgIHJldHVybiB0aGlzLnpvbmUub2Zmc2V0TmFtZSh0aGlzLnRzLCB7CiAgICAgICAgICAgICAgZm9ybWF0OiAic2hvcnQiLAogICAgICAgICAgICAgIGxvY2FsZTogdGhpcy5sb2NhbGUKICAgICAgICAgICAgfSk7CiAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICByZXR1cm4gbnVsbDsKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICogR2V0IHRoZSBsb25nIGh1bWFuIG5hbWUgZm9yIHRoZSB6b25lJ3MgY3VycmVudCBvZmZzZXQsIGZvciBleGFtcGxlICJFYXN0ZXJuIFN0YW5kYXJkIFRpbWUiIG9yICJFYXN0ZXJuIERheWxpZ2h0IFRpbWUiLgogICAgICAgICAqIERlZmF1bHRzIHRvIHRoZSBzeXN0ZW0ncyBsb2NhbGUgaWYgbm8gbG9jYWxlIGhhcyBiZWVuIHNwZWNpZmllZAogICAgICAgICAqIEB0eXBlIHtzdHJpbmd9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAib2Zmc2V0TmFtZUxvbmciLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgaWYgKHRoaXMuaXNWYWxpZCkgewogICAgICAgICAgICByZXR1cm4gdGhpcy56b25lLm9mZnNldE5hbWUodGhpcy50cywgewogICAgICAgICAgICAgIGZvcm1hdDogImxvbmciLAogICAgICAgICAgICAgIGxvY2FsZTogdGhpcy5sb2NhbGUKICAgICAgICAgICAgfSk7CiAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICByZXR1cm4gbnVsbDsKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICogR2V0IHdoZXRoZXIgdGhpcyB6b25lJ3Mgb2Zmc2V0IGV2ZXIgY2hhbmdlcywgYXMgaW4gYSBEU1QuCiAgICAgICAgICogQHR5cGUge2Jvb2xlYW59CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAiaXNPZmZzZXRGaXhlZCIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gdGhpcy5pc1ZhbGlkID8gdGhpcy56b25lLmlzVW5pdmVyc2FsIDogbnVsbDsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICogR2V0IHdoZXRoZXIgdGhlIERhdGVUaW1lIGlzIGluIGEgRFNULgogICAgICAgICAqIEB0eXBlIHtib29sZWFufQogICAgICAgICAqLwoKICAgICAgfSwgewogICAgICAgIGtleTogImlzSW5EU1QiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgaWYgKHRoaXMuaXNPZmZzZXRGaXhlZCkgewogICAgICAgICAgICByZXR1cm4gZmFsc2U7CiAgICAgICAgICB9IGVsc2UgewogICAgICAgICAgICByZXR1cm4gdGhpcy5vZmZzZXQgPiB0aGlzLnNldCh7CiAgICAgICAgICAgICAgbW9udGg6IDEKICAgICAgICAgICAgfSkub2Zmc2V0IHx8IHRoaXMub2Zmc2V0ID4gdGhpcy5zZXQoewogICAgICAgICAgICAgIG1vbnRoOiA1CiAgICAgICAgICAgIH0pLm9mZnNldDsKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICogUmV0dXJucyB0cnVlIGlmIHRoaXMgRGF0ZVRpbWUgaXMgaW4gYSBsZWFwIHllYXIsIGZhbHNlIG90aGVyd2lzZQogICAgICAgICAqIEBleGFtcGxlIERhdGVUaW1lLmxvY2FsKDIwMTYpLmlzSW5MZWFwWWVhciAvLz0+IHRydWUKICAgICAgICAgKiBAZXhhbXBsZSBEYXRlVGltZS5sb2NhbCgyMDEzKS5pc0luTGVhcFllYXIgLy89PiBmYWxzZQogICAgICAgICAqIEB0eXBlIHtib29sZWFufQogICAgICAgICAqLwoKICAgICAgfSwgewogICAgICAgIGtleTogImlzSW5MZWFwWWVhciIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gaXNMZWFwWWVhcih0aGlzLnllYXIpOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiBSZXR1cm5zIHRoZSBudW1iZXIgb2YgZGF5cyBpbiB0aGlzIERhdGVUaW1lJ3MgbW9udGgKICAgICAgICAgKiBAZXhhbXBsZSBEYXRlVGltZS5sb2NhbCgyMDE2LCAyKS5kYXlzSW5Nb250aCAvLz0+IDI5CiAgICAgICAgICogQGV4YW1wbGUgRGF0ZVRpbWUubG9jYWwoMjAxNiwgMykuZGF5c0luTW9udGggLy89PiAzMQogICAgICAgICAqIEB0eXBlIHtudW1iZXJ9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAiZGF5c0luTW9udGgiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIGRheXNJbk1vbnRoKHRoaXMueWVhciwgdGhpcy5tb250aCk7CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIFJldHVybnMgdGhlIG51bWJlciBvZiBkYXlzIGluIHRoaXMgRGF0ZVRpbWUncyB5ZWFyCiAgICAgICAgICogQGV4YW1wbGUgRGF0ZVRpbWUubG9jYWwoMjAxNikuZGF5c0luWWVhciAvLz0+IDM2NgogICAgICAgICAqIEBleGFtcGxlIERhdGVUaW1lLmxvY2FsKDIwMTMpLmRheXNJblllYXIgLy89PiAzNjUKICAgICAgICAgKiBAdHlwZSB7bnVtYmVyfQogICAgICAgICAqLwoKICAgICAgfSwgewogICAgICAgIGtleTogImRheXNJblllYXIiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIHRoaXMuaXNWYWxpZCA/IGRheXNJblllYXIodGhpcy55ZWFyKSA6IE5hTjsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICogUmV0dXJucyB0aGUgbnVtYmVyIG9mIHdlZWtzIGluIHRoaXMgRGF0ZVRpbWUncyB5ZWFyCiAgICAgICAgICogQHNlZSBodHRwczovL2VuLndpa2lwZWRpYS5vcmcvd2lraS9JU09fd2Vla19kYXRlCiAgICAgICAgICogQGV4YW1wbGUgRGF0ZVRpbWUubG9jYWwoMjAwNCkud2Vla3NJbldlZWtZZWFyIC8vPT4gNTMKICAgICAgICAgKiBAZXhhbXBsZSBEYXRlVGltZS5sb2NhbCgyMDEzKS53ZWVrc0luV2Vla1llYXIgLy89PiA1MgogICAgICAgICAqIEB0eXBlIHtudW1iZXJ9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAid2Vla3NJbldlZWtZZWFyIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiB0aGlzLmlzVmFsaWQgPyB3ZWVrc0luV2Vla1llYXIodGhpcy53ZWVrWWVhcikgOiBOYU47CiAgICAgICAgfQogICAgICB9XSwgW3sKICAgICAgICBrZXk6ICJEQVRFX1NIT1JUIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiBEQVRFX1NIT1JUOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiB7QGxpbmsgRGF0ZVRpbWUudG9Mb2NhbGVTdHJpbmd9IGZvcm1hdCBsaWtlICdPY3QgMTQsIDE5ODMnCiAgICAgICAgICogQHR5cGUge09iamVjdH0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJEQVRFX01FRCIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gREFURV9NRUQ7CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIHtAbGluayBEYXRlVGltZS50b0xvY2FsZVN0cmluZ30gZm9ybWF0IGxpa2UgJ0ZyaSwgT2N0IDE0LCAxOTgzJwogICAgICAgICAqIEB0eXBlIHtPYmplY3R9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAiREFURV9NRURfV0lUSF9XRUVLREFZIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiBEQVRFX01FRF9XSVRIX1dFRUtEQVk7CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIHtAbGluayBEYXRlVGltZS50b0xvY2FsZVN0cmluZ30gZm9ybWF0IGxpa2UgJ09jdG9iZXIgMTQsIDE5ODMnCiAgICAgICAgICogQHR5cGUge09iamVjdH0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJEQVRFX0ZVTEwiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIERBVEVfRlVMTDsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICoge0BsaW5rIERhdGVUaW1lLnRvTG9jYWxlU3RyaW5nfSBmb3JtYXQgbGlrZSAnVHVlc2RheSwgT2N0b2JlciAxNCwgMTk4MycKICAgICAgICAgKiBAdHlwZSB7T2JqZWN0fQogICAgICAgICAqLwoKICAgICAgfSwgewogICAgICAgIGtleTogIkRBVEVfSFVHRSIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gREFURV9IVUdFOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiB7QGxpbmsgRGF0ZVRpbWUudG9Mb2NhbGVTdHJpbmd9IGZvcm1hdCBsaWtlICcwOTozMCBBTScuIE9ubHkgMTItaG91ciBpZiB0aGUgbG9jYWxlIGlzLgogICAgICAgICAqIEB0eXBlIHtPYmplY3R9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAiVElNRV9TSU1QTEUiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIFRJTUVfU0lNUExFOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiB7QGxpbmsgRGF0ZVRpbWUudG9Mb2NhbGVTdHJpbmd9IGZvcm1hdCBsaWtlICcwOTozMDoyMyBBTScuIE9ubHkgMTItaG91ciBpZiB0aGUgbG9jYWxlIGlzLgogICAgICAgICAqIEB0eXBlIHtPYmplY3R9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAiVElNRV9XSVRIX1NFQ09ORFMiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIFRJTUVfV0lUSF9TRUNPTkRTOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiB7QGxpbmsgRGF0ZVRpbWUudG9Mb2NhbGVTdHJpbmd9IGZvcm1hdCBsaWtlICcwOTozMDoyMyBBTSBFRFQnLiBPbmx5IDEyLWhvdXIgaWYgdGhlIGxvY2FsZSBpcy4KICAgICAgICAgKiBAdHlwZSB7T2JqZWN0fQogICAgICAgICAqLwoKICAgICAgfSwgewogICAgICAgIGtleTogIlRJTUVfV0lUSF9TSE9SVF9PRkZTRVQiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIFRJTUVfV0lUSF9TSE9SVF9PRkZTRVQ7CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIHtAbGluayBEYXRlVGltZS50b0xvY2FsZVN0cmluZ30gZm9ybWF0IGxpa2UgJzA5OjMwOjIzIEFNIEVhc3Rlcm4gRGF5bGlnaHQgVGltZScuIE9ubHkgMTItaG91ciBpZiB0aGUgbG9jYWxlIGlzLgogICAgICAgICAqIEB0eXBlIHtPYmplY3R9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAiVElNRV9XSVRIX0xPTkdfT0ZGU0VUIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiBUSU1FX1dJVEhfTE9OR19PRkZTRVQ7CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIHtAbGluayBEYXRlVGltZS50b0xvY2FsZVN0cmluZ30gZm9ybWF0IGxpa2UgJzA5OjMwJywgYWx3YXlzIDI0LWhvdXIuCiAgICAgICAgICogQHR5cGUge09iamVjdH0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJUSU1FXzI0X1NJTVBMRSIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gVElNRV8yNF9TSU1QTEU7CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIHtAbGluayBEYXRlVGltZS50b0xvY2FsZVN0cmluZ30gZm9ybWF0IGxpa2UgJzA5OjMwOjIzJywgYWx3YXlzIDI0LWhvdXIuCiAgICAgICAgICogQHR5cGUge09iamVjdH0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJUSU1FXzI0X1dJVEhfU0VDT05EUyIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gVElNRV8yNF9XSVRIX1NFQ09ORFM7CiAgICAgICAgfQogICAgICAgIC8qKgogICAgICAgICAqIHtAbGluayBEYXRlVGltZS50b0xvY2FsZVN0cmluZ30gZm9ybWF0IGxpa2UgJzA5OjMwOjIzIEVEVCcsIGFsd2F5cyAyNC1ob3VyLgogICAgICAgICAqIEB0eXBlIHtPYmplY3R9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAiVElNRV8yNF9XSVRIX1NIT1JUX09GRlNFVCIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gVElNRV8yNF9XSVRIX1NIT1JUX09GRlNFVDsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICoge0BsaW5rIERhdGVUaW1lLnRvTG9jYWxlU3RyaW5nfSBmb3JtYXQgbGlrZSAnMDk6MzA6MjMgRWFzdGVybiBEYXlsaWdodCBUaW1lJywgYWx3YXlzIDI0LWhvdXIuCiAgICAgICAgICogQHR5cGUge09iamVjdH0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJUSU1FXzI0X1dJVEhfTE9OR19PRkZTRVQiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIFRJTUVfMjRfV0lUSF9MT05HX09GRlNFVDsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICoge0BsaW5rIERhdGVUaW1lLnRvTG9jYWxlU3RyaW5nfSBmb3JtYXQgbGlrZSAnMTAvMTQvMTk4MywgOTozMCBBTScuIE9ubHkgMTItaG91ciBpZiB0aGUgbG9jYWxlIGlzLgogICAgICAgICAqIEB0eXBlIHtPYmplY3R9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAiREFURVRJTUVfU0hPUlQiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIERBVEVUSU1FX1NIT1JUOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiB7QGxpbmsgRGF0ZVRpbWUudG9Mb2NhbGVTdHJpbmd9IGZvcm1hdCBsaWtlICcxMC8xNC8xOTgzLCA5OjMwOjMzIEFNJy4gT25seSAxMi1ob3VyIGlmIHRoZSBsb2NhbGUgaXMuCiAgICAgICAgICogQHR5cGUge09iamVjdH0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJEQVRFVElNRV9TSE9SVF9XSVRIX1NFQ09ORFMiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIERBVEVUSU1FX1NIT1JUX1dJVEhfU0VDT05EUzsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICoge0BsaW5rIERhdGVUaW1lLnRvTG9jYWxlU3RyaW5nfSBmb3JtYXQgbGlrZSAnT2N0IDE0LCAxOTgzLCA5OjMwIEFNJy4gT25seSAxMi1ob3VyIGlmIHRoZSBsb2NhbGUgaXMuCiAgICAgICAgICogQHR5cGUge09iamVjdH0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJEQVRFVElNRV9NRUQiLAogICAgICAgIGdldDogZnVuY3Rpb24gZ2V0KCkgewogICAgICAgICAgcmV0dXJuIERBVEVUSU1FX01FRDsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICoge0BsaW5rIERhdGVUaW1lLnRvTG9jYWxlU3RyaW5nfSBmb3JtYXQgbGlrZSAnT2N0IDE0LCAxOTgzLCA5OjMwOjMzIEFNJy4gT25seSAxMi1ob3VyIGlmIHRoZSBsb2NhbGUgaXMuCiAgICAgICAgICogQHR5cGUge09iamVjdH0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJEQVRFVElNRV9NRURfV0lUSF9TRUNPTkRTIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiBEQVRFVElNRV9NRURfV0lUSF9TRUNPTkRTOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiB7QGxpbmsgRGF0ZVRpbWUudG9Mb2NhbGVTdHJpbmd9IGZvcm1hdCBsaWtlICdGcmksIDE0IE9jdCAxOTgzLCA5OjMwIEFNJy4gT25seSAxMi1ob3VyIGlmIHRoZSBsb2NhbGUgaXMuCiAgICAgICAgICogQHR5cGUge09iamVjdH0KICAgICAgICAgKi8KCiAgICAgIH0sIHsKICAgICAgICBrZXk6ICJEQVRFVElNRV9NRURfV0lUSF9XRUVLREFZIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiBEQVRFVElNRV9NRURfV0lUSF9XRUVLREFZOwogICAgICAgIH0KICAgICAgICAvKioKICAgICAgICAgKiB7QGxpbmsgRGF0ZVRpbWUudG9Mb2NhbGVTdHJpbmd9IGZvcm1hdCBsaWtlICdPY3RvYmVyIDE0LCAxOTgzLCA5OjMwIEFNIEVEVCcuIE9ubHkgMTItaG91ciBpZiB0aGUgbG9jYWxlIGlzLgogICAgICAgICAqIEB0eXBlIHtPYmplY3R9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAiREFURVRJTUVfRlVMTCIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gREFURVRJTUVfRlVMTDsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICoge0BsaW5rIERhdGVUaW1lLnRvTG9jYWxlU3RyaW5nfSBmb3JtYXQgbGlrZSAnT2N0b2JlciAxNCwgMTk4MywgOTozMDozMyBBTSBFRFQnLiBPbmx5IDEyLWhvdXIgaWYgdGhlIGxvY2FsZSBpcy4KICAgICAgICAgKiBAdHlwZSB7T2JqZWN0fQogICAgICAgICAqLwoKICAgICAgfSwgewogICAgICAgIGtleTogIkRBVEVUSU1FX0ZVTExfV0lUSF9TRUNPTkRTIiwKICAgICAgICBnZXQ6IGZ1bmN0aW9uIGdldCgpIHsKICAgICAgICAgIHJldHVybiBEQVRFVElNRV9GVUxMX1dJVEhfU0VDT05EUzsKICAgICAgICB9CiAgICAgICAgLyoqCiAgICAgICAgICoge0BsaW5rIERhdGVUaW1lLnRvTG9jYWxlU3RyaW5nfSBmb3JtYXQgbGlrZSAnRnJpZGF5LCBPY3RvYmVyIDE0LCAxOTgzLCA5OjMwIEFNIEVhc3Rlcm4gRGF5bGlnaHQgVGltZScuIE9ubHkgMTItaG91ciBpZiB0aGUgbG9jYWxlIGlzLgogICAgICAgICAqIEB0eXBlIHtPYmplY3R9CiAgICAgICAgICovCgogICAgICB9LCB7CiAgICAgICAga2V5OiAiREFURVRJTUVfSFVHRSIsCiAgICAgICAgZ2V0OiBmdW5jdGlvbiBnZXQoKSB7CiAgICAgICAgICByZXR1cm4gREFURVRJTUVfSFVHRTsKICAgICAgICB9C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gICAgb3JFbHNlKF92YWx1ZSkgew0KICAgICAgICAgICAgcmV0dXJuIHRoaXMudmFsdWU7DQogICAgICAgIH0NCiAgICAgICAgb3JFbHNlVGhyb3coX21lc3NhZ2UpIHsNCiAgICAgICAgICAgIHJldHVybiB0aGlzLnZhbHVlOw0KICAgICAgICB9DQogICAgfQ0KICAgIGNsYXNzIEZhaWx1cmUgew0KICAgICAgICBjb25zdHJ1Y3RvcihlcnJvcikgew0KICAgICAgICAgICAgdGhpcy5lcnJvciA9IGVycm9yOw0KICAgICAgICAgICAgdGhpcy5zdWNjZXNzZnVsID0gZmFsc2U7DQogICAgICAgIH0NCiAgICAgICAgbWFwKF9mKSB7DQogICAgICAgICAgICByZXR1cm4gdGhpczsNCiAgICAgICAgfQ0KICAgICAgICBmbGF0TWFwKF9mKSB7DQogICAgICAgICAgICByZXR1cm4gdGhpczsNCiAgICAgICAgfQ0KICAgICAgICBvckVsc2UodmFsdWUpIHsNCiAgICAgICAgICAgIHJldHVybiB2YWx1ZTsNCiAgICAgICAgfQ0KICAgICAgICBvckVsc2VUaHJvdyhtZXNzYWdlKSB7DQogICAgICAgICAgICBpZiAobWVzc2FnZSkNCiAgICAgICAgICAgICAgICB0aHJvdyBuZXcgRXJyb3IobWVzc2FnZSh0aGlzLmVycm9yKSk7DQogICAgICAgICAgICBlbHNlDQogICAgICAgICAgICAgICAgdGhyb3cgbmV3IEVycm9yKCIiICsgdGhpcy5lcnJvcik7DQogICAgICAgIH0NCiAgICB9DQogICAgdmFyIFJlc3VsdDsNCiAgICAoZnVuY3Rpb24gKFJlc3VsdCkgew0KICAgICAgICBmdW5jdGlvbiBzdWNjZXNzKHZhbHVlKSB7DQogICAgICAgICAgICByZXR1cm4gbmV3IFN1Y2Nlc3ModmFsdWUpOw0KICAgICAgICB9DQogICAgICAgIFJlc3VsdC5zdWNjZXNzID0gc3VjY2VzczsNCiAgICAgICAgZnVuY3Rpb24gZmFpbHVyZShlcnJvcikgew0KICAgICAgICAgICAgcmV0dXJuIG5ldyBGYWlsdXJlKGVycm9yKTsNCiAgICAgICAgfQ0KICAgICAgICBSZXN1bHQuZmFpbHVyZSA9IGZhaWx1cmU7DQogICAgICAgIGZ1bmN0aW9uIGZsYXRNYXAyKGZpcnN0LCBzZWNvbmQsIGYpIHsNCiAgICAgICAgICAgIGlmIChmaXJzdC5zdWNjZXNzZnVsKSB7DQogICAgICAgICAgICAgICAgaWYgKHNlY29uZC5zdWNjZXNzZnVsKQ0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gZihmaXJzdC52YWx1ZSwgc2Vjb25kLnZhbHVlKTsNCiAgICAgICAgICAgICAgICBlbHNlDQogICAgICAgICAgICAgICAgICAgIHJldHVybiBmYWlsdXJlKHNlY29uZC5lcnJvcik7DQogICAgICAgICAgICB9DQogICAgICAgICAgICBlbHNlIHsNCiAgICAgICAgICAgICAgICByZXR1cm4gZmFpbHVyZShmaXJzdC5lcnJvcik7DQogICAgICAgICAgICB9DQogICAgICAgIH0NCiAgICAgICAgUmVzdWx0LmZsYXRNYXAyID0gZmxhdE1hcDI7DQogICAgICAgIGZ1bmN0aW9uIG1hcDIoZmlyc3QsIHNlY29uZCwgZikgew0KICAgICAgICAgICAgcmV0dXJuIGZsYXRNYXAyKGZpcnN0LCBzZWNvbmQsIChhLCBiKSA9PiBzdWNjZXNzKGYoYSwgYikpKTsNCiAgICAgICAgfQ0KICAgICAgICBSZXN1bHQubWFwMiA9IG1hcDI7DQogICAgfSkoUmVzdWx0IHx8IChSZXN1bHQgPSB7fSkpOwoKICAgIC8qKiBOb3JtYWxpemUgYSBkdXJhdGlvbiB0byBhbGwgb2YgdGhlIHByb3BlciB1bml0cy4gKi8NCiAgICBmdW5jdGlvbiBub3JtYWxpemVEdXJhdGlvbihkdXIpIHsNCiAgICAgICAgcmV0dXJuIGR1ci5zaGlmdFRvKCJ5ZWFycyIsICJtb250aHMiLCAid2Vla3MiLCAiZGF5cyIsICJob3VycyIsICJtaW51dGVzIiwgInNlY29uZ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KICAgICAgICAgICAgbGV0IGNoID0gbmFtZVtpbmRleF07DQogICAgICAgICAgICBpZiAoY2gubWF0Y2goV0hJVEVTUEFDRSkpIHsNCiAgICAgICAgICAgICAgICBpZiAoIWxhc3RXYXNXaGl0ZXNwYWNlKQ0KICAgICAgICAgICAgICAgICAgICByZXN1bHQgKz0gIi0iOw0KICAgICAgICAgICAgICAgIGxhc3RXYXNXaGl0ZXNwYWNlID0gdHJ1ZTsNCiAgICAgICAgICAgICAgICBjb250aW51ZTsNCiAgICAgICAgICAgIH0NCiAgICAgICAgICAgIGxhc3RXYXNXaGl0ZXNwYWNlID0gZmFsc2U7DQogICAgICAgICAgICBpZiAoIWNoLm1hdGNoKEFMTE9XQUJMRV9WQVJfQ0hBUkFDVEVSUykpDQogICAgICAgICAgICAgICAgY29udGludWU7DQogICAgICAgICAgICByZXN1bHQgKz0gY2gudG9Mb2NhbGVMb3dlckNhc2UoKTsNCiAgICAgICAgfQ0KICAgICAgICByZXR1cm4gcmVzdWx0Ow0KICAgIH0KCiAgICAvKiogQSBzcGVjaWZpYyB0YXNrLiAqLw0KICAgIGNsYXNzIFRhc2sgew0KICAgICAgICBjb25zdHJ1Y3Rvcihpbml0KSB7DQogICAgICAgICAgICBPYmplY3QuYXNzaWduKHRoaXMsIGluaXQpOw0KICAgICAgICAgICAgdGhpcy5zdWJ0YXNrcyA9ICh0aGlzLnN1YnRhc2tzIHx8IFtdKS5tYXAodCA9PiBuZXcgVGFzayh0KSk7DQogICAgICAgIH0NCiAgICAgICAgLyoqIENyZWF0ZSBhIHRhc2sgZnJvbSBhIHJlY29yZC4gKi8NCiAgICAgICAgc3RhdGljIGZyb21PYmplY3Qob2JqKSB7DQogICAgICAgICAgICByZXR1cm4gbmV3IFRhc2sob2JqKTsNCiAgICAgICAgfQ0KICAgICAgICBpZCgpIHsNCiAgICAgICAgICAgIHJldHVybiBgJHt0aGlzLnBhdGh9LSR7dGhpcy5saW5lfWA7DQogICAgICAgIH0NCiAgICAgICA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0cnVlKSB7DQogICAgICAgICAgICBsZXQgcmVzdWx0ID0gew0KICAgICAgICAgICAgICAgIHRleHQ6IHRoaXMudGV4dCwNCiAgICAgICAgICAgICAgICBsaW5lOiB0aGlzLmxpbmUsDQogICAgICAgICAgICAgICAgcGF0aDogdGhpcy5wYXRoLA0KICAgICAgICAgICAgICAgIGNvbXBsZXRlZDogdGhpcy5jb21wbGV0ZWQsDQogICAgICAgICAgICAgICAgZnVsbHlDb21wbGV0ZWQ6IHRoaXMuZnVsbHlDb21wbGV0ZWQsDQogICAgICAgICAgICAgICAgcmVhbDogdGhpcy5yZWFsLA0KICAgICAgICAgICAgICAgIGJsb2NrSWQ6IHRoaXMuYmxvY2tJZCwNCiAgICAgICAgICAgICAgICBsaW5rOiB0aGlzLmxpbmssDQogICAgICAgICAgICAgICAgc3VidGFza3M6IHRoaXMuc3VidGFza3MubWFwKHQgPT4gdC50b09iamVjdChpbmxpbmVBbm5vdGF0aW9ucykpLA0KICAgICAgICAgICAgICAgIGFubm90YXRlZDogISF0aGlzLmR1ZSB8fCAhIXRoaXMuY29tcGxldGlvbiB8fCAoISF0aGlzLmFubm90YXRpb25zICYmIE9iamVjdC5rZXlzKHRoaXMuYW5ub3RhdGlvbnMpLmxlbmd0aCA+IDApLA0KICAgICAgICAgICAgfTsNCiAgICAgICAgICAgIGlmICh0aGlzLmNyZWF0ZWQpDQogICAgICAgICAgICAgICAgcmVzdWx0LmNyZWF0ZWQgPSB0aGlzLmNyZWF0ZWQ7DQogICAgICAgICAgICBpZiAodGhpcy5kdWUpDQogICAgICAgICAgICAgICAgcmVzdWx0LmR1ZSA9IHRoaXMuZHVlOw0KICAgICAgICAgICAgaWYgKHRoaXMuY29tcGxldGlvbikNCiAgICAgICAgICAgICAgICByZXN1bHQuY29tcGxldGlvbiA9IHRoaXMuY29tcGxldGlvbjsNCiAgICAgICAgICAgIGlmICh0aGlzLmFubm90YXRpb25zKSB7DQogICAgICAgICAgICAgICAgaWYgKGlubGluZUFubm90YXRpb25zKSB7DQogICAgICAgICAgICAgICAgICAgIGZvciAobGV0IFtrZXksIHZhbHVlXSBvZiBPYmplY3QuZW50cmllcyh0aGlzLmFubm90YXRpb25zKSkgew0KICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGtleSBpbiByZXN1bHQpDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgY29udGludWU7DQogICAgICAgICAgICAgICAgICAgICAgICByZXN1bHRba2V5XSA9IHZhbHVlOw0KICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgIGVsc2Ugew0KICAgICAgICAgICAgICAgICAgICByZXN1bHQuYW5ub3RhdGlvbnMgPSB0aGlzLmFubm90YXRpb25zOw0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgIH0NCiAgICAgICAgICAgIHJldHVybiByZXN1bHQ7DQogICAgICAgIH0NCiAgICB9DQogICAgLyoqIEFuIE9ic2lkaWFuIGxpbmsgd2l0aCBhbGwgYXNzb2NpYXRlZCBtZXRhZGF0YS4gKi8NCiAgICBjbGFzcyBMaW5rIHsNCiAgICAgICAgY29uc3RydWN0b3IoZmllbGRzKSB7DQogICAgICAgICAgICBPYmplY3QuYXNzaWduKHRoaXMsIGZpZWxkcyk7DQogICAgICAgIH0NCiAgICAgICAgc3RhdGljIGZpbGUocGF0aCwgZW1iZWQgPSBmYWxzZSwgZGlzcGxheSkgew0KICAgICAgICAgICAgcmV0dXJuIG5ldyBMaW5rKHsNCiAgICAgICAgICAgICAgICBwYXRoLA0KICAgICAgICAgICAgICAgIGVtYmVkLA0KICAgICAgICAgICAgICAgIGRpc3BsYXksDQogICAgICAgICAgICAgICAgdHlwZTogImZpbGUiLA0KICAgICAgICAgICAgfSk7DQogICAgICAgIH0NCiAgICAgICAgc3RhdGljIGhlYWRlcihwYXRoLCBoZWFkZXIsIGVtYmVkLCBkaXNwbGF5KSB7DQogICAgICAgICAgICByZXR1cm4gbmV3IExpbmsoew0KICAgICAgICAgICAgICAgIHBhdGgsDQogICAgICAgICAgICAgICAgZW1iZWQsDQogICAgICAgICAgICAgICAgZGlzcGxheSwNCiAgICAgICAgICAgICAgICBzdWJwYXRoOiBoZWFkZXIsDQogICAgICAgICAgICAgICAgdHlwZTogImhlYWRlciIsDQogICAgICAgICAgICB9KTsNCiAgICAgICAgfQ0KICAgICAgICBzdGF0aWMgYmxvY2socGF0aCwgYmxvY2tJZCwgZW1iZWQsIGRpc3BsYXkpIHsNCiAgICAgICAgICAgIHJldHVybiBuZXcgTGluayh7DQogICAgICAgICAgICAgICAgcGF0aCwNCiAgICAgICAgICAgICAgICBlbWJlZCwNCiAgICAgICAgICAgICAgICBkaXNwbGF5LA0KICAgICAgICAgICAgICAgIHN1YnBhdGg6IGJsb2NrSWQsDQogICAgICAgICAgICAgICAgdHlwZTogImJsb2NrIiwNCiAgICAgICAgICAgIH0pOw0KICAgICAgICB9DQogICAgICAgIHN0YXRpYyBmcm9tT2JqZWN0KG9iamVjdCkgew0KICAgICAgICAgICAgcmV0dXJuIG5ldyBMaW5rKG9iamVjdCk7DQogICAgICAgIH0NCiAgICAgICAgZXF1YWxzKG90aGVyKSB7DQogICAgICAgICAgICByZXR1cm4gdGhpcy5wYXRoID09IG90aGVyLnBhdGggJiYgdGhpcy50eXBlID09IG90aGVyLnR5cGUgJiYgdGhpcy5zdWJwYXRoID09IG90aGVyLnN1YnBhdGg7DQogICAgICAgIH0NCiAgICAgICAgdG9TdHJpbmcoKSB7DQogICAgICAgICAgICByZXR1cm4gdGhpcy5tYXJrZG93bigpOw0KICAgICAgICB9DQogICAgICAgIC8qKiBDb252ZXJ0IHRoaXMgbGluayB0byBhIHJhdyBvYmplY3Qgd2hpY2ggKi8NCiAgICAgICAgdG9PYmplY3QoKSB7DQogICAgICAgICAgICByZXR1cm4geyBwYXRoOiB0aGlzLnBhdGgsIHR5cGU6IHRoaXMudHlwZSwgc3VicGF0aDogdGhpcy5zdWJwYXRoLCBkaXNwbGF5OiB0aGlzLmRpc3BsYXksIGVtYmVkOiB0aGlzLmVtYmVkIH07DQogICAgICAgIH0NCiAgICAgICAgLyoqIFJldHVybiBhIG5ldyBsaW5rIHdoaWNoIHBvaW50cyB0byB0aGUgc2FtZSBsb2NhdGlvbiBidXQgd2l0aCBhIG5ldyBkaXNwbGF5IHZhbHVlLiAqLw0KICAgICAgICB3aXRoRGlzcGxheShkaXNwbGF5KSB7DQogICAgICAgICAgICByZXR1cm4gbmV3IExpbmsoT2JqZWN0LmFzc2lnbih7fSwgdGhpcywgeyBkaXNwbGF5IH0pKTsNCiAgICAgICAgfQ0KICAgICAgICAvKiogQ29udmVydCB0aGlzIGxpbmsgaW50byBhbiBlbWJlZGRlZCBsaW5rLiAqLw0KICAgICAgICB0b0VtYmVkKCkgew0KICAgICAgICAgICAgaWYgKHRoaXMuZW1iZWQpDQogICAgICAgICAgICAgICAgcmV0dXJuIHRoaXM7DQogICAgICAgICAgICBlbHNlIHsNCiAgICAgICAgICAgICAgICBsZXQgbGluayA9IG5ldyBMaW5rKHRoaXMpOw0KICAgICAgICAgICAgICAgIGxpbmsuZW1iZWQgPSB0cnVlOw0KICAgICAgICAgICAgICAgIHJldHVybiBsaW5rOw0KICAgICAgICAgICAgfQ0KICAgICAgICB9DQogICAgICAgIC8qKiBDb252ZXJ0IHRoaXMgbGluayB0byBtYXJrZG93biBzbyBpdCBjYW4gYmUgcmVuZGVyZWQuICovDQogICAgICAgIG1hcmtkb3duKCkgew0KICAgICAgICAgICAgbGV0IHJlc3VsdCA9ICh0aGlzLmVtYmVkID8gIiEiIDogIiIpICsgIltbIiArIHRoaXMucGF0aDsNCiAgICAgICAgICAgIGlmICh0aGlzLnR5cGUgPT0gImhlYWRlciIpDQogICAgICAgICAgICAgICAgcmVzdWx0ICs9ICIjIiArIHRoaXMuc3VicGF0aDsNCiAgICAgICAgICAgIGVsc2UgaWYgKHRoaXMudHlwZSA9PSAiYmxvY2siKQ0KICAgICAgICAgICAgICAgIHJlc3VsdCArPSAiI14iICsgdGhpcy5zdWJwYXRoOw0KICAgICAgICAgICAgaWYgKHRoaXMuZGlzcGxheSAmJiAhdGhpcy5lbWJlZCkNCiAgICAgICAgICAgICAgICByZXN1bHQgKz0gInwiICsgdGhpcy5kaXNwbGF5Ow0KICAgICAgICAgICAgZWxzZSBpZiAoIXRoaXMuZW1iZWQpDQogICAgICAgICAgICAgICAgcmVzdWx0ICs9ICJ8IiArIGdldEZpbGVUaXRsZSh0aGlzLnBhdGgpOw0KICAgICAgICAgICAgcmVzdWx0ICs9ICJdXSI7DQogICAgICAgICAgICByZXR1cm4gcmVzdWx0Ow0KICAgICAgICB9DQogICAgICAgIC8qKiBUaGUgc3RyaXBwZWQgbmFtZSBvZiB0aGUgZmlsZSB0aGlzIGxpbmsgcG9pbnRzIGludG8uICovDQogICAgICAgIGZpbGVOYW1lKCkgew0KICAgICAgICAgICAgcmV0dXJuIGdldEZpbGVUaXRsZSh0aGlzLnBhdGgpLnJlcGxhY2UoIi5tZCIsICIiKTsNCiAgICAgICAgfQ0KICAgIH0NCiAgICB2YXIgVmFsdWVzOw0KICAgIChmdW5jdGlvbiAoVmFsdWVzKSB7DQogICAgICAgIC8qKiBDb252ZXJ0IGFuIGFyYml0YXJ5IHZhbHVlIGludG8gYSByZWFzb25hYmxlLCBNYXJrZG93bi1mcmllbmRseSBzdHJpbmcgaWYgcG9zc2libGUuICovDQogICAgICAgIGZ1bmN0aW9uIHRvU3RyaW5nKGZpZWxkLCBzZXR0aW5nID0gREVGQVVMVF9RVUVSWV9TRVRUSU5HUywgcmVjdXJzaXZlID0gZmFsc2UpIHsNCiAgICAgICAgICAgIGxldCB3cmFwcGVkID0gd3JhcFZhbHVlKGZpZWxkKTsNCiAgICAgICAgICAgIGlmICghd3JhcHBlZCkNCiAgICAgICAgICAgICAgICByZXR1cm4gIm51bGwiOw0KICAgICAgICAgICAgc3dpdGNoICh3cmFwcGVkLnR5cGUpIHsNCiAgICAgICAgICAgICAgICBjYXNlICJzdHJpbmciOg0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gd3JhcHBlZC52YWx1ZTsNCiAgICAgICAgICAgICAgICBjYXNlICJudW1iZXIiOg0KICAgICAgICAgICAgICAgIGNhc2UgImJvb2xlYW4iOg0KICAgICAgICAgICAgICAgIGNhc2UgImh0bWwiOg0KICAgICAgICAgICAgICAgIGNhc2UgIm51bGwiOg0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gIiIgKyB3cmFwcGVkLnZhbHVlOw0KICAgICAgICAgICAgICAgIGNhc2UgImxpbmsiOg0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gd3JhcHBlZC52YWx1ZS5tYXJrZG93bigpOw0KICAgICAgICAgICAgICAgIGNhc2UgInRhc2siOg0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gd3JhcHBlZC52YWx1ZS5tYXJrZG93bigpOw0KICAgICAgICAgICAgICAgIGNhc2UgImZ1bmN0aW9uIjoNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuICI8ZnVuY3Rpb24+IjsNCiAgICAgICAgICAgICAgICBjYXNlICJhcnJheSI6DQogICAgICAgICAgICAgICAgICAgIGxldCByZXN1bHQgPSAiIjsNCiAgICAgICAgICAgICAgICAgICAgaWYgKHJlY3Vyc2l2ZSkNCiAgICAgICAgICAgICAgICAgICAgICAgIHJlc3VsdCArPSAiWyI7DQogICAgICAgICAgICAgICAgICAgIHJlc3VsdCArPSB3cmFwcGVkLnZhbHVlLm1hcChmID0+IHRvU3RyaW5nKGYsIHNldHRpbmcsIHRydWUpKS5qb2luKCIsICIpOw0KICAgICAgICAgICAgICAgICAgICBpZiAocmVjdXJzaXZlKQ0KICAgICAgICAgICAgICAgICAgICAgICAgcmVzdWx0ICs9ICJdIjsNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHJlc3VsdDsNCiAgICAgICAgICAgICAgICBjYXNlICJvYmplY3QiOg0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gKCJ7ICIgKw0KICAgICAgICAgICAgICAgICAgICAgICAgT2JqZWN0LmVudHJpZXMod3JhcHBlZC52YWx1ZSkNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAubWFwKGUgPT4gZVswXSArICI6ICIgKyB0b1N0cmluZyhlWzFdLCBzZXR0aW5nLCB0cnVlKSkNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAuam9pbigiLCAiKSArDQogICAgICAgICAgICAgICAgICAgICAgICAiIH0iKTsNCiAgICAgICAgICAgICAgICBjYXNlICJkYXRlIjoNCiAgICAgICAgICAgICAgICAgICAgaWYgKHdyYXBwZWQudmFsdWUuc2Vjb25kID09IDAgJiYgd3JhcHBlZC52YWx1ZS5ob3VyID09IDAgJiYgd3JhcHBlZC52YWx1ZS5taW51dGUgPT0gMCkgew0KICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHdyYXBwZWQudmFsdWUudG9Gb3JtYXQoc2V0dGluZy5kZWZhdWx0RGF0ZUZvcm1hdCk7DQogICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHdyYXBwZWQudmFsdWUudG9Gb3JtYXQoc2V0dGluZy5kZWZhdWx0RGF0ZVRpbWVGb3JtYXQpOw0KICAgICAgICAgICAgICAgIGNhc2UgImR1cmF0aW9uIjoNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHdyYXBwZWQudmFsdWUudG9JU09UaW1lKCk7DQogICAgICAgICAgICB9DQogICAgICAgIH0NCiAgICAgICAgVmFsdWVzLnRvU3RyaW5nID0gdG9TdHJpbmc7DQogICAgICAgIC8qKiBXcmFwIGEgbGl0ZXJhbCB2YWx1ZSBzbyB5b3UgY2FuIHN3aXRjaCBvbiBpdCBlYXNpbHkuICovDQogICAgICAgIGZ1bmN0aW9uIHdyYXBWYWx1ZSh2YWwpIHsNCiAgICAgICAgICAgIGlmIChpc051bGwodmFsKSkNCiAgICAgICAgICAgICAgICByZXR1cm4geyB0eXBlOiAibnVsbCIsIHZhbHVlOiB2YWwgfTsNCiAgICAgICAgICAgIGVsc2UgaWYgKGlzTnVtYmVyKHZhbCkpDQogICAgICAgICAgICAgICAgcmV0dXJuIHsgdHlwZTogIm51bWJlciIsIHZhbHVlOiB2YWwgfTsNCiAgICAgICAgICAgIGVsc2UgaWYgKGlzU3RyaW5nKHZhbCkpDQogICAgICAgICAgICAgICAgcmV0dXJuIHsgdHlwZTogInN0cmluZyIsIHZhbHVlOiB2YWwgfTsNCiAgICAgICAgICAgIGVsc2UgaWYgKGlzQm9vbGVhbih2YWwpKQ0KICAgICAgICAgICAgICAgIHJldHVybiB7IHR5cGU6ICJib29sZWFuIiwgdmFsdWU6IHZhbCB9Ow0KICAgICAgICAgICAgZWxzZSBpZiAoaXNEdXJhdGlvbih2YWwpKQ0KICAgICAgICAgICAgICAgIHJldHVybiB7IHR5cGU6ICJkdXJhdGlvbiIsIHZhbHVlOiB2YWwgfTsNCiAgICAgICAgICAgIGVsc2UgaWYgKGlzRGF0ZSh2YWwpKQ0KICAgICAgICAgICAgICAgIHJldHVybiB7IHR5cGU6ICJkYXRlIiwgdmFsdWU6IHZhbCB9Ow0KICAgICAgICAgICAgZWxzZSBpZiAoaXNIdG1sKHZhbCkpDQogICAgICAgICAgICAgICAgcmV0dXJuIHsgdHlwZTogImh0bWwiLCB2YWx1ZTogdmFsIH07DQogICAgICAgICAgICBlbHNlIGlmIChpc0FycmF5KHZhbCkpDQogICAgICAgICAgICAgICAgcmV0dXJuIHsgdHlwZTogImFycmF5IiwgdmFsdWU6IHZhbCB9Ow0KICAgICAgICAgICAgZWxzZSBpZiAoaXNMaW5rKHZhbCkpDQogICAgICAgICAgICAgICAgcmV0dXJuIHsgdHlwZTogImxpbmsiLCB2YWx1ZTogdmFsIH07DQogICAgICAgICAgICBlbHNlIGlmIChpc1Rhc2sodmFsKSkNCiAgICAgICAgICAgICAgICByZXR1cm4geyB0eXBlOiAidGFzayIsIHZhbHVlOiB2YWwgfTsNCiAgICAgICAgICAgIGVsc2UgaWYgKGlzRnVuY3Rpb24odmFsKSkNCiAgICAgICAgICAgICAgICByZXR1cm4geyB0eXBlOiAiZnVuY3Rpb24iLCB2YWx1ZTogdmFsIH07DQogICAgICAgICAgICBlbHNlIGlmIChpc09iamVjdCh2YWwpKQ0KICAgICAgICAgICAgICAgIHJldHVybiB7IHR5cGU6ICJvYmplY3QiLCB2YWx1ZTogdmFsIH07DQogICAgICAgICAgICBlbHNlDQogICAgICAgICAgICAgICAgcmV0dXJuIHVuZGVmaW5lZDsNCiAgICAgICAgfQ0KICAgICAgICBWYWx1ZXMud3JhcFZhbHVlID0gd3JhcFZhbHVlOw0KICAgICAgICAvKiogQ29tcGFyZSB0d28gYXJiaXRyYXJ5IEphdmFTY3JpcHQgdmFsdWVzLiBQcm9kdWNlcyBhIHRvdGFsIG9yZGVyaW5nIG92ZXIgQU5ZIHBvc3NpYmxlIGRhdGF2aWV3IHZhbHVlLiAqLw0KICAgICAgICBmdW5jdGlvbiBjb21wYXJlVmFsdWUodmFsMSwgdmFsMiwgbGlua05vcm1hbGl6ZXIpIHsNCiAgICAgICAgICAgIC8vIEhhbmRsZSB1bmRlZmluZWQvbnVsbHMgZmlyc3QuDQogICAgICAgICAgICBpZiAodmFsMSA9PT0gdW5kZWZpbmVkKQ0KICAgICAgICAgICAgICAgIHZhbDEgPSBudWxsOw0KICAgICAgICAgICAgaWYgKHZhbDIgPT09IHVuZGVmaW5lZCkNCiAgICAgICAgICAgICAgICB2YWwyID0gbnVsbDsNCiAgICAgICAgICAgIGlmICh2YWwxID09PSBudWxsICYmIHZhbDIgPT09IG51bGwpDQogICAgICAgICAgICAgICAgcmV0dXJuIDA7DQogICAgICAgICAgICBlbHNlIGlmICh2YWwxID09PSBudWxsKQ0KICAgICAgICAgICAgICAgIHJldHVybiAtMTsNCiAgICAgICAgICAgIGVsc2UgaWYgKHZhbDIgPT09IG51bGwpDQogICAgICAgICAgICAgICAgcmV0dXJuIDE7DQogICAgICAgICAgICAvLyBBIG5vbi1udWxsIHZhbHVlIG5vdyB3aGljaCB3ZSBjYW4gd3JhcCAmIGNvbXBhcmUgb24uDQogICAgICAgICAgICBsZXQgd3JhcDEgPSB3cmFwVmFsdWUodmFsMSk7DQogICAgICAgICAgICBsZXQgd3JhcDIgPSB3cmFwVmFsdWUodmFsMik7DQogICAgICAgICAgICBpZiAod3JhcDEgPT09IHVuZGVmaW5lZCAmJiB3cmFwMiA9PT0gdW5kZWZpbmVkKQ0KICAgICAgICAgICAgICAgIHJldHVybiAwOw0KICAgICAgICAgICAgZWxzZSBpZiAod3JhcDEgPT09IHVuZGVmaW5lZCkNCiAgICAgICAgICAgICAgICByZXR1cm4gLTE7DQogICAgICAgICAgICBlbHNlIGlmICh3cmFwMiA9PT0gdW5kZWZpbmVkKQ0KICAgICAgICAgICAgICAgIHJldHVybiAxOw0KICAgICAgICAgICAgaWYgKHdyYXAxLnR5cGUgIT0gd3JhcDIudHlwZSkNCiAgICAgICAgICAgICAgICByZXR1cm4gd3JhcDEudHlwZS5sb2NhbGVDb21wYXJlKHdyYXAyLnR5cGUpOw0KICAgICAgICAgICAgc3dpdGNoICh3cmFwMS50eXBlKSB7DQogICAgICAgICAgICAgICAgY2FzZSAic3RyaW5nIjoNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHdyYXAxLnZhbHVlLmxvY2FsZUNvbXBhcmUod3JhcDIudmFsdWUpOw0KICAgICAgICAgICAgICAgIGNhc2UgIm51bWJlciI6DQogICAgICAgICAgICAgICAgICAgIGlmICh3cmFwMS52YWx1ZSA8IHdyYXAyLnZhbHVlKQ0KICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIC0xOw0KICAgICAgICAgICAgICAgICAgICBlbHNlIGlmICh3cmFwMS52YWx1ZSA9PSB3cmFwMi52YWx1ZSkNCiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAwOw0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gMTsNCiAgICAgICAgICAgICAgICBjYXNlICJudWxsIjoNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIDA7DQogICAgICAgICAgICAgICAgY2FzZSAiYm9vbGVhbiI6DQogICAgICAgICAgICAgICAgICAgIGlmICh3cmFwMS52YWx1ZSA9PSB3cmFwMi52YWx1ZSkNCiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAwOw0KICAgICAgICAgICAgICAgICAgICBlbHNlDQogICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gd3JhcDEudmFsdWUgPyAxIDogLTE7DQogICAgICAgICAgICAgICAgY2FzZSAibGluayI6DQogICAgICAgICAgICAgICAgICAgIGxldCBsaW5rMSA9IHdyYXAxLnZhbHVlOw0KICAgICAgICAgICAgICAgICAgICBsZXQgbGluazIgPSB3cmFwMi52YWx1ZTsNCiAgICAgICAgICAgICAgICAgICAgbGV0IG5vcm1hbGl6ZSA9IGxpbmtOb3JtYWxpemVyICE9PSBudWxsICYmIGxpbmtOb3JtYWxpemVyICE9PSB2b2lkIDAgPyBsaW5rTm9ybWFsaXplciA6ICgoeCkgPT4geCk7DQogICAgICAgICAgICAgICAgICAgIC8vIFdlIGNhbid0IGNvbXBhcmUgYnkgZmlsZSBuYW1lIG9yIGRpc3BsYXksIHNpbmNlIHRoYXQgd291bGQgYnJlYWsgbGluayBlcXVhbGl0eS4NCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIG5vcm1hbGl6ZShsaW5rMS5wYXRoKS5sb2NhbGVDb21wYXJlKG5vcm1hbGl6ZShsaW5rMi5wYXRoKSk7DQogICAgICAgICAgICAgICAgY2FzZSAidGFzayI6DQogICAgICAgICAgICAgICAgICAgIGxldCB0YXNrMSA9IHdyYXAxLnZhbHVlOw0KICAgICAgICAgICAgICAgICAgICBsZXQgdGFzazIgPSB3cmFwMi52YWx1ZTsNCiAgICAgICAgICAgICAgICAgICAgLy8gVXNlIG9iamVjdCBjb21wYXJpc29uICYgY29tcGFyZSB0aGUgdW5pcXVlIGlkZW50aWZpZXJzIChwYXRoLCBsaW5lLCBhbmQgdGV4dCBhcyBiYWNrdXApLg0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gY29tcGFyZVZhbHVlKHsgcGF0aDogdGFzazEucGF0aCwgbGluZTogdGFzazEubGluZSwgdGV4dDogdGFzazEudGV4dCB9LCB7IHBhdGg6IHRhc2syLnBhdGgsIGxpbmU6IHRhc2syLmxpbmUsIHRleHQ6IHRhc2syLnRleHQgfSk7DQogICAgICAgICAgICAgICAgY2FzZSAiZGF0ZSI6DQogICAgICAgICAgICAgICAgICAgIHJldHVybiB3cmFwMS52YWx1ZSA8IHdyYXAyLnZhbHVlDQogICAgICAgICAgICAgICAgICAgICAgICA/IC0xDQogICAgICAgICAgICAgICAgICAgICAgICA6IHdyYXAxLnZhbHVlLmVxdWFscyh3cmFwMi52YWx1ZSkNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICA/IDANCiAgICAgICAgICAgICAgICAgICAgICAgICAgICA6IDE7DQogICAgICAgICAgICAgICAgY2FzZSAiZHVyYXRpb24iOg0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gd3JhcDEudmFsdWUgPCB3cmFwMi52YWx1ZQ0KICAgICAgICAgICAgICAgICAgICAgICAgPyAtMQ0KICAgICAgICAgICAgICAgICAgICAgICAgOiB3cmFwMS52YWx1ZS5lcXVhbHMod3JhcDIudmFsdWUpDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgPyAwDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgOiAxOw0KICAgICAgICAgICAgICAgIGNhc2UgImFycmF5IjoNCiAgICAgICAgICAgICAgICAgICAgbGV0IGYxID0gd3JhcDEudmFsdWU7DQogICAgICAgICAgICAgICAgICAgIGxldCBmMiA9IHdyYXAyLnZhbHVlOw0KICAgICAgICAgICAgICAgICAgICBmb3IgKGxldCBpbmRleCA9IDA7IGluZGV4IDwgTWF0aC5taW4oZjEubGVuZ3RoLCBmMi5sZW5ndGgpOyBpbmRleCsrKSB7DQogICAgICAgICAgICAgICAgICAgICAgICBsZXQgY29tcCA9IGNvbXBhcmVWYWx1ZShmMVtpbmRleF0sIGYyW2luZGV4XSk7DQogICAgICAgICAgICAgICAgICAgICAgICBpZiAoY29tcCAhPSAwKQ0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBjb21wOw0KICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICAgIHJldHVybiBmMS5sZW5ndGggLSBmMi5sZW5ndGg7DQogICAgICAgICAgICAgICAgY2FzZSAib2JqZWN0IjoNCiAgICAgICAgICAgICAgICAgICAgbGV0IG8xID0gd3JhcDEudmFsdWU7DQogICAgICAgICAgICAgICAgICAgIGxldCBvMiA9IHdyYXAyLnZhbHVlOw0KICAgICAgICAgICAgICAgICAgICBsZXQgazEgPSBBcnJheS5mcm9tKE9iamVjdC5rZXlzKG8xKSk7DQogICAgICAgICAgICAgICAgICAgIGxldCBrMiA9IEFycmF5LmZyb20oT2JqZWN0LmtleXMobzIpKTsNCiAgICAgICAgICAgICAgICAgICAgazEuc29ydCgpOw0KICAgICAgICAgICAgICAgICAgICBrMi5zb3J0KCk7DQogICAgICAgICAgICAgICAgICAgIGxldCBrZXlDb21wYXJlID0gY29tcGFyZVZhbHVlKGsxLCBrMik7DQogICAgICAgICAgICAgICAgICAgIGlmIChrZXlDb21wYXJlICE9IDApDQogICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4ga2V5Q29tcGFyZTsNCiAgICAgICAgICAgICAgICAgICAgZm9yIChsZXQga2V5IG9mIGsxKSB7DQogICAgICAgICAgICAgICAgICAgICAgICBsZXQgY29tcCA9IGNvbXBhcmVWYWx1ZShvMVtrZXldLCBvMltrZXldKTsNCiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChjb21wICE9IDApDQogICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGNvbXA7DQogICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIDA7DQogICAgICAgICAgICAgICAgY2FzZSAiaHRtbCI6DQogICAgICAgICAgICAgICAgICAgIHJldHVybiAwOw0KICAgICAgICAgICAgICAgIGNhc2UgImZ1bmN0aW9uIjoNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIDA7DQogICAgICAgICAgICB9DQogICAgICAgIH0NCiAgICAgICAgVmFsdWVzLmNvbXBhcmVWYWx1ZSA9IGNvbXBhcmVWYWx1ZTsNCiAgICAgICAgLyoqIEZpbmQgdGhlIGNvcnJlc3BvbmRpbmcgRGF0YXZlaXcgdHlwZSBmb3IgYW4gYXJiaXRyYXJ5IHZhbHVlLiAqLw0KICAgICAgICBmdW5jdGlvbiB0eXBlT2YodmFsKSB7DQogICAgICAgICAgICB2YXIgX2E7DQogICAgICAgICAgICByZXR1cm4gKF9hID0gd3JhcFZhbHVlKHZhbCkpID09PSBudWxsIHx8IF9hID09PSB2b2lkIDAgPyB2b2lkIDAgOiBfYS50eXBlOw0KICAgICAgICB9DQogICAgICAgIFZhbHVlcy50eXBlT2YgPSB0eXBlT2Y7DQogICAgICAgIC8qKiBEZXRlcm1pbmUgaWYgdGhlIGdpdmVuIHZhbHVlIGlzICJ0cnV0aHkiIChpLmUuLCBpcyBub24tbnVsbCBhbmQgaGFzIGRhdGEgaW4gaXQpLiAqLw0KICAgICAgICBmdW5jdGlvbiBpc1RydXRoeShmaWVsZCkgew0KICAgICAgICAgICAgbGV0IHdyYXBwZWQgPSB3cmFwVmFsdWUoZmllbGQpOw0KICAgICAgICAgICAgaWYgKCF3cmFwcGVkKQ0KICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTsNCiAgICAgICAgICAgIHN3aXRjaCAod3JhcHBlZC50eXBlKSB7DQogICAgICAgICAgICAgICAgY2FzZSAibnVtYmVyIjoNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHdyYXBwZWQudmFsdWUgIT0gMDsNCiAgICAgICAgICAgICAgICBjYXNlICJzdHJpbmciOg0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gd3JhcHBlZC52YWx1ZS5sZW5ndGggPiAwOw0KICAgICAgICAgICAgICAgIGNhc2UgImJvb2xlYW4iOg0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gd3JhcHBlZC52YWx1ZTsNCiAgICAgICAgICAgICAgICBjYXNlICJsaW5rIjoNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuICEhd3JhcHBlZC52YWx1ZS5wYXRoOw0KICAgICAgICAgICAgICAgIGNhc2UgInRhc2siOg0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gd3JhcHBlZC52YWx1ZS50ZXh0Lmxlbmd0aCA+IDA7DQogICAgICAgICAgICAgICAgY2FzZSAiZGF0ZSI6DQogICAgICAgICAgICAgICAgICAgIHJldHVybiB3cmFwcGVkLnZhbHVlLnRvTWlsbGlzKCkgIT0gMDsNCiAgICAgICAgICAgICAgICBjYXNlICJkdXJhdGlvbiI6DQogICAgICAgICAgICAgICAgICAgIHJldHVybiB3cmFwcGVkLnZhbHVlLmFzKCJzZWNvbmRzIikgIT0gMDsNCiAgICAgICAgICAgICAgICBjYXNlICJvYmplY3QiOg0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gT2JqZWN0LmtleXMod3JhcHBlZC52YWx1ZSkubGVuZ3RoID4gMDsNCiAgICAgICAgICAgICAgICBjYXNlICJhcnJheSI6DQogICAgICAgICAgICAgICAgICAgIHJldHVybiB3cmFwcGVkLnZhbHVlLmxlbmd0aCA+IDA7DQogICAgICAgICAgICAgICAgY2FzZSAibnVsbCI6DQogICAgICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZTsNCiAgICAgICAgICAgICAgICBjYXNlICJodG1sIjoNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRydWU7DQogICAgICAgICAgICAgICAgY2FzZSAiZnVuY3Rpb24iOg0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gdHJ1ZTsNCiAgICAgICAgICAgIH0NCiAgICAgICAgfQ0KICAgICAgICBWYWx1ZXMuaXNUcnV0aHkgPSBpc1RydXRoeTsNCiAgICAgICAgLyoqIERlZXAgY29weSBhIGZpZWxkLiAqLw0KICAgICAgICBmdW5jdGlvbiBkZWVwQ29weShmaWVsZCkgew0KICAgICAgICAgICAgaWYgKGZpZWxkID09PSBudWxsIHx8IGZpZWxkID09PSB1bmRlZmluZWQpDQogICAgICAgICAgICAgICAgcmV0dXJuIGZpZWxkOw0KICAgICAgICAgICAgaWYgKFZhbHVlcy5pc0FycmF5KGZpZWxkKSkgew0KICAgICAgICAgICAgICAgIHJldHVybiBbXS5jb25jYXQoZmllbGQubWFwKHYgPT4gZGVlcENvcHkodikpKTsNCiAgICAgICAgICAgIH0NCiAgICAgICAgICAgIGVsc2UgaWYgKFZhbHVlcy5pc09iamVjdChmaWVsZCkpIHsNCiAgICAgICAgICAgICAgICBsZXQgcmVzdWx0ID0ge307DQogICAgICAgICAgICAgICAgZm9yIChsZXQgW2tleSwgdmFsdWVdIG9mIE9iamVjdC5lbnRyaWVzKGZpZWxkKSkNCiAgICAgICAgICAgICAgICAgICAgcmVzdWx0W2tleV0gPSBkZWVwQ29weSh2YWx1ZSk7DQogICAgICAgICAgICAgICAgcmV0dXJuIHJlc3VsdDsNCiAgICAgICAgICAgIH0NCiAgICAgICAgICAgIGVsc2Ugew0KICAgICAgICAgICAgICAgIHJldHVybiBmaWVsZDsNCiAgICAgICAgICAgIH0NCiAgICAgICAgfQ0KICAgICAgICBWYWx1ZXMuZGVlcENvcHkgPSBkZWVwQ29weTsNCiAgICAgICAgZnVuY3Rpb24gaXNTdHJpbmcodmFsKSB7DQogICAgICAgICAgICByZXR1cm4gdHlwZW9mIHZhbCA9PSAic3RyaW5nIjsNCiAgICAgICAgfQ0KICAgICAgICBWYWx1ZXMuaXNTdHJpbmcgPSBpc1N0cmluZzsNCiAgICAgICAgZnVuY3Rpb24gaXNOdW1iZXIodmFsKSB7DQogICAgICAgICAgICByZXR1cm4gdHlwZW9mIHZhbCA9PSAibnVtYmVyIjsNCiAgICAg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ICAgcmV0dXJuIHZhbCBpbnN0YW5jZW9mIFRhc2s7DQogICAgICAgIH0NCiAgICAgICAgVmFsdWVzLmlzVGFzayA9IGlzVGFzazsNCiAgICAgICAgZnVuY3Rpb24gaXNIdG1sKHZhbCkgew0KICAgICAgICAgICAgaWYgKHR5cGVvZiBIVE1MRWxlbWVudCAhPT0gInVuZGVmaW5lZCIpIHsNCiAgICAgICAgICAgICAgICByZXR1cm4gdmFsIGluc3RhbmNlb2YgSFRNTEVsZW1lbnQ7DQogICAgICAgICAgICB9DQogICAgICAgICAgICBlbHNlIHsNCiAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7DQogICAgICAgICAgICB9DQogICAgICAgIH0NCiAgICAgICAgVmFsdWVzLmlzSHRtbCA9IGlzSHRtbDsNCiAgICAgICAgZnVuY3Rpb24gaXNPYmplY3QodmFsKSB7DQogICAgICAgICAgICByZXR1cm4gKHR5cGVvZiB2YWwgPT0gIm9iamVjdCIgJiYNCiAgICAgICAgICAgICAgICAhaXNIdG1sKHZhbCkgJiYNCiAgICAgICAgICAgICAgICAhaXNBcnJheSh2YWwpICYmDQogICAgICAgICAgICAgICAgIWlzRHVyYXRpb24odmFsKSAmJg0KICAgICAgICAgICAgICAgICFpc0RhdGUodmFsKSAmJg0KICAgICAgICAgICAgICAgICFpc0xpbmsodmFsKSAmJg0KICAgICAgICAgICAgICAgICFpc1Rhc2sodmFsKSk7DQogICAgICAgIH0NCiAgICAgICAgVmFsdWVzLmlzT2JqZWN0ID0gaXNPYmplY3Q7DQogICAgICAgIGZ1bmN0aW9uIGlzRnVuY3Rpb24odmFsKSB7DQogICAgICAgICAgICByZXR1cm4gdHlwZW9mIHZhbCA9PSAiZnVuY3Rpb24iOw0KICAgICAgICB9DQogICAgICAgIFZhbHVlcy5pc0Z1bmN0aW9uID0gaXNGdW5jdGlvbjsNCiAgICB9KShWYWx1ZXMgfHwgKFZhbHVlcyA9IHt9KSk7DQogICAgdmFyIEdyb3VwaW5nczsNCiAg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ICAgICAgICAgICAgICAgIG5vZGUgPSBjb21iaW5lKG5vZGUsIHJlc3RbaW5kZXhdWzFdLCByZXN0W2luZGV4XVszXSk7DQogICAgICAgICAgICB9DQogICAgICAgICAgICByZXR1cm4gbm9kZTsNCiAgICAgICAgfSk7DQogICAgfQ0KICAgIGZ1bmN0aW9uIGNoYWluT3B0KGJhc2UsIC4uLmZ1bmNzKSB7DQogICAgICAgIHJldHVybiBwYXJzaW1tb25fdW1kX21pbi5leHBvcnRzLmN1c3RvbSgoc3VjY2VzcywgZmFpbHVyZSkgPT4gew0KICAgICAgICAgICAgcmV0dXJuIChpbnB1dCwgaSkgPT4gew0KICAgICAgICAgICAgICAgIGxldCByZXN1bHQgPSBiYXNlLl8oaW5wdXQsIGkpOw0KICAgICAgICAgICAgICAgIGlmICghcmVzdWx0LnN0YXR1cykNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHJlc3VsdDsNCiAgICAgICAgICAgICAgICBmb3IgKGxldCBmdW5jIG9mIGZ1bmNzKSB7DQogICAgICAgICAgICAgICAgICAgIGxldCBuZXh0ID0gZnVuYyhyZXN1bHQudmFsdWUpLl8oaW5wdXQsIHJlc3VsdC5pbmRleCk7DQogICAgICAgICAgICAgICAgICAgIGlmICghbmV4dC5zdGF0dXMpDQogICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gcmVzdWx0Ow0KICAgICAgICAgICAgICAgICAgICByZXN1bHQgPSBuZXh0Ow0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICByZXR1cm4gcmVzdWx0Ow0KICAgICAgICAgICAgfTsNCiAgICAgICAgfSk7DQogICAgfQ0KICAgIGNvbnN0IEVYUFJFU1NJT04gPSBwYXJzaW1tb25fdW1kX21pbi5leHBvcnRzLmNyZWF0ZUxhbmd1YWdlKHsNCiAgICAgICAgLy8gQSBmbG9hdGluZyBwb2ludCBudW1iZXI7IHRoZSBkZWNpbWFsIHBvaW50IGlzIG9wdGlvbmFsLg0KICAgICAgIC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mluYXJ5UGx1c01pbnVzOiBxID0+IHBhcnNpbW1vbl91bWRfbWluLmV4cG9ydHMucmVnZXhwKC9cK3wtLykNCiAgICAgICAgICAgIC5tYXAoc3RyID0+IHN0cikNCiAgICAgICAgICAgIC5kZXNjKCInKycgb3IgJy0nIiksDQogICAgICAgIC8vIEJpbmFyeSB0aW1lcyBvciBkaXZpZGUgb3BlcmF0b3IuDQogICAgICAgIGJpbmFyeU11bERpdjogcSA9PiBwYXJzaW1tb25fdW1kX21pbi5leHBvcnRzLnJlZ2V4cCgvXCp8XC8vKQ0KICAgICAgICAgICAgLm1hcChzdHIgPT4gc3RyKQ0KICAgICAgICAgICAgLmRlc2MoIicqJyBvciAnLyciKSwNCiAgICAgICAgLy8gQmluYXJ5IGNvbXBhcmlzb24gb3BlcmF0b3IuDQogICAgICAgIGJpbmFyeUNvbXBhcmVPcDogcSA9PiBwYXJzaW1tb25fdW1kX21pbi5leHBvcnRzLnJlZ2V4cCgvPj18PD18IT18Pnw8fD0vKQ0KICAgICAgICAgICAgLm1hcChzdHIgPT4gc3RyKQ0KICAgICAgICAgICAgLmRlc2MoIic+PScgb3IgJzw9JyBvciAnIT0nIG9yICc9JyBvciAnPicgb3IgJzwnIiksDQogICAgICAgIC8vIEJpbmFyeSBib29sZWFuIGNvbWJpbmF0aW9uIG9wZXJhdG9yLg0KICAgICAgICBiaW5hcnlCb29sZWFuT3A6IHEgPT4gcGFyc2ltbW9uX3VtZF9taW4uZXhwb3J0cy5yZWdleHAoL2FuZHxvcnwmfFx8L2kpDQogICAgICAgICAgICAubWFwKHN0ciA9PiB7DQogICAgICAgICAgICBpZiAoc3RyLnRvTG93ZXJDYXNlKCkgPT0gImFuZCIpDQogICAgICAgICAgICAgICAgcmV0dXJuICImIjsNCiAgICAgICAgICAgIGVsc2UgaWYgKHN0ci50b0xvd2VyQ2FzZSgpID09ICJvciIpDQogICAgICAgICAgICAgICAgcmV0dXJuICJ8IjsNCiAgICAgICAgICAgIGVsc2UNCiA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XRvbUZpZWxkLCBwYXJzaW1tb25fdW1kX21pbi5leHBvcnRzLmFsdChxLmRvdFBvc3RmaXgsIHEuaW5kZXhQb3N0Zml4LCBxLmZ1bmN0aW9uUG9zdGZpeCkubWFueSgpLCAob2JqLCBwb3N0Zml4ZXMpID0+IHsNCiAgICAgICAgICAgIGxldCByZXN1bHQgPSBvYmo7DQogICAgICAgICAgICBmb3IgKGxldCBwb3N0IG9mIHBvc3RmaXhlcykgew0KICAgICAgICAgICAgICAgIHN3aXRjaCAocG9zdC50eXBlKSB7DQogICAgICAgICAgICAgICAgICAgIGNhc2UgImRvdCI6DQogICAgICAgICAgICAgICAgICAgIGNhc2UgImluZGV4IjoNCiAgICAgICAgICAgICAgICAgICAgICAgIHJlc3VsdCA9IEZpZWxkcy5pbmRleChyZXN1bHQsIHBvc3QuZmllbGQpOw0KICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7DQogICAgICAgICAgICAgICAgICAgIGNhc2UgImZ1bmN0aW9uIjoNCiAgICAgICAgICAgICAgICAgICAgICAgIHJlc3VsdCA9IEZpZWxkcy5mdW5jKHJlc3VsdCwgcG9zdC5maWVsZHMpOw0KICAgICAgICAgICAgICAgICAgICAgICAgYnJlYWs7DQogICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgfQ0KICAgICAgICAgICAgcmV0dXJuIHJlc3VsdDsNCiAgICAgICAgfSksDQogICAgICAgIG5lZ2F0ZWRGaWVsZDogcSA9PiBwYXJzaW1tb25fdW1kX21pbi5leHBvcnRzLnNlcU1hcChwYXJzaW1tb25fdW1kX21pbi5leHBvcnRzLnN0cmluZygiISIpLCBxLmluZGV4RmllbGQsIChfLCBmaWVsZCkgPT4gRmllbGRzLm5lZ2F0ZShmaWVsZCkpLmRlc2MoIm5lZ2F0ZWQgZmllbGQiKSwNCiAgICAgICAgcGFyZW5zRmllbGQ6IHEgPT4gcGFyc2ltbW9uX3VtZF9taW4uZXhwb3J0cy5zZXFNYXAocGFyc2ltbW9uX3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ICBlc2NhcGVkID0gZmFsc2U7DQogICAgICAgICAgICAgICAgY29udGludWU7DQogICAgICAgICAgICB9DQogICAgICAgICAgICBpZiAoY2hhciA9PSBvcGVuKQ0KICAgICAgICAgICAgICAgIG5lc3RpbmcrKzsNCiAgICAgICAgICAgIGVsc2UgaWYgKGNoYXIgPT0gY2xvc2UpDQogICAgICAgICAgICAgICAgbmVzdGluZy0tOw0KICAgICAgICAgICAgLy8gT25seSBvY2N1cnMgaWYgd2UgYXJlIG9uIGEgY2xvc2UgY2hhcmFjdGVyIGFuZCB0cmhlcmUgaXMgbm8gbW9yZSBuZXN0aW5nLg0KICAgICAgICAgICAgaWYgKG5lc3RpbmcgPCAwKQ0KICAgICAgICAgICAgICAgIHJldHVybiB7IHZhbHVlOiBsaW5lLnN1YnN0cmluZyhzdGFydCwgaW5kZXgpLnRyaW0oKSwgZW5kSW5kZXg6IGluZGV4ICsgMSB9Ow0KICAgICAgICAgICAgZXNjYXBlZCA9IGZhbHNlOw0KICAgICAgICB9DQogICAgICAgIHJldHVybiB1bmRlZmluZWQ7DQogICAgfQ0KICAgIC8qKiBGaW5kIHRoZSAnOjonIHNlcGFyYXRvciBpbiBhbiBpbmxpbmUgZmllbGQuICovDQogICAgZnVuY3Rpb24gZmluZFNlcGFyYXRvcihsaW5lLCBzdGFydCkgew0KICAgICAgICBsZXQgc2VwID0gbGluZS5pbmRleE9mKCI6OiIsIHN0YXJ0KTsNCiAgICAgICAgbGV0IGtleSA9IGxpbmUuc3Vic3RyaW5nKHN0YXJ0LCBzZXApOw0KICAgICAgICAvLyBGYWlsIHRoZSBtYXRjaCBpZiB3ZSBmaW5kIGFueSBzZXBhcmF0b3IgY2hhcmFjdGVycyAobm90IGFsbG93ZWQgaW4ga2V5cykuDQogICAgICAgIGZvciAobGV0IHNlcCBvZiBPYmplY3Qua2V5cyhJTkxJTkVfRklFTERfV1JBUFBFUlMpLmNvbmNhdChPYmplY3QudmFsdWVzKElOTElORV9GSUVMRF9XUkFQU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b3IgYW55IHdyYXBwZXJzICgnWycgYW5kICcoJykgaW4gdGhlIGxpbmUsIHRyeWluZyB0byBwYXJzZSB3aGF0ZXZlciBjb21lcyBhZnRlciBpdCBhcyBhbiBpbmxpbmUga2V5OjouDQogICAgICogLSBJZiBzdWNjZXNzZnVsLCBzY2FuIHVudGlsIHlvdSBmaW5kIGEgbWF0Y2hpbmcgZW5kIGJyYWNrZXQsIGFuZCBwYXJzZSB3aGF0ZXZlciByZW1haW5zIGFzIGFuIGlubGluZSB2YWx1ZS4NCiAgICAgKi8NCiAgICBmdW5jdGlvbiBleHRyYWN0SW5saW5lRmllbGRzKGxpbmUpIHsNCiAgICAgICAgbGV0IGZpZWxkcyA9IFtdOw0KICAgICAgICBmb3IgKGxldCB3cmFwcGVyIG9mIE9iamVjdC5rZXlzKElOTElORV9GSUVMRF9XUkFQUEVSUykpIHsNCiAgICAgICAgICAgIGxldCBmb3VuZEluZGV4ID0gbGluZS5pbmRleE9mKHdyYXBwZXIpOw0KICAgICAgICAgICAgd2hpbGUgKGZvdW5kSW5kZXggPj0gMCkgew0KICAgICAgICAgICAgICAgIGxldCBwYXJzZWRGaWVsZCA9IGZpbmRTcGVjaWZpY0lubGluZUZpZWxkKGxpbmUsIGZvdW5kSW5kZXgpOw0KICAgICAgICAgICAgICAgIGlmICghcGFyc2VkRmllbGQpIHsNCiAgICAgICAgICAgICAgICAgICAgZm91bmRJbmRleCA9IGxpbmUuaW5kZXhPZih3cmFwcGVyLCBmb3VuZEluZGV4ICsgMSk7DQogICAgICAgICAgICAgICAgICAgIGNvbnRpbnVlOw0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICBmaWVsZHMucHVzaChwYXJzZWRGaWVsZCk7DQogICAgICAgICAgICAgICAgZm91bmRJbmRleCA9IGxpbmUuaW5kZXhPZih3cmFwcGVyLCBwYXJzZWRGaWVsZC5lbmQpOw0KICAgICAgICAgICAgfQ0KICAgICAgICB9DQogICAgICAgIHJldHVybiBmaWVs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BvcnQgbXVsdGlsaW5lDQogICAgICogdGFza3MgeWV0ICh0aG91Z2ggY2FuIHByb2JhYmx5IGJlIHJldHJvLWZpdHRlZCB0byBkbyBzbykuDQogICAgICovDQogICAgZnVuY3Rpb24gZmluZFRhc2tzSW5GaWxlKHBhdGgsIGZpbGUsIG1ldGFkYXRhKSB7DQogICAgICAgIHZhciBfYSwgX2IsIF9jOw0KICAgICAgICAvLyBEdW1teSB0b3Agb2YgdGhlIHN0YWNrIHRoYXQgd2UnbGwganVzdCBuZXZlciBnZXQgcmlkIG9mLg0KICAgICAgICBsZXQgc3RhY2sgPSBbXTsNCiAgICAgICAgc3RhY2sucHVzaChbDQogICAgICAgICAgICBuZXcgVGFzayh7IHRleHQ6ICJSb290IiwgbGluZTogLTEsIHBhdGgsIGNvbXBsZXRlZDogZmFsc2UsIGZ1bGx5Q29tcGxldGVkOiBmYWxzZSwgcmVhbDogZmFsc2UsIHN1YnRhc2tzOiBbXSB9KSwNCiAgICAgICAgICAgIC00LA0KICAgICAgICBdKTsNCiAgICAgICAgbGV0IGxpbmVubyA9IC0xOw0KICAgICAgICBmb3IgKGxldCBsaW5lIG9mIGZpbGUucmVwbGFjZSgiXHIiLCAiIikuc3BsaXQoIlxuIikpIHsNCiAgICAgICAgICAgIGxpbmVubyArPSAxOw0KICAgICAgICAgICAgLy8gQ2hlY2sgdGhhdCB3ZSBhcmUgYWN0dWFsbHkgYSBsaXN0IGVsZW1lbnQsIHRvIHNraXAgbGluZXMgd2hpY2ggb2J2aW91c2x5IHdvbid0IG1hdGNoLg0KICAgICAgICAgICAgaWYgKCFsaW5lLmluY2x1ZGVzKCIqIikgJiYgIWxpbmUuaW5jbHVkZXMoIi0iKSkgew0KICAgICAgICAgICAgICAgIHdoaWxlIChzdGFjay5sZW5ndGggPiAxKQ0KICAgICAgICAgICAgICAgICAgICBzdGFjay5wb3AoKTsNCiAgICAgICAgICAgICAgICBjb250aW51ZTsNCiAgICAgICAgICAgIH0NCiAgICAgICAgICAgIGxldCBtYXRjaCA9IFRBU0tfUkVHRVguZXhlYyhsaW5lKTsNCiAgICAgICAgICAgIGlmICghbWF0Y2gpIHsNCiAgICAgICAgICAgICAgICBpZiAobGluZS50cmltKCkubGVuZ3RoID09IDApDQogICAgICAgICAgICAgICAgICAgIGNvbnRpbnVlOw0KICAgICAgICAgICAgICAgIC8vIE5vbi1lbXB0eSBsaW5lIHRoYXQgaXMgbm90IGEgdGFzaywgcmVzZXQuDQogICAgICAgICAgICAgICAgd2hpbGUgKHN0YWNrLmxlbmd0aCA+IDEpDQogICAgICAgICAgICAgICAgICAgIHN0YWNrLnBvcCgpOw0KICAgICAgICAgICAgICAgIGNvbnRpbnVlOw0KICAgICAgICAgICAgfQ0KICAgICAgICAgICAgLy8gTG9vayBmb3IgYmxvY2sgSURzIG9uIHRoaXMgbGluZTsgaWYgcHJlc2VudCwgbGluayB0byB0aGF0LiBPdGhlcndpc2UsIGxpbmsgdG8gdGhlIG5lYXJlc3QgaGVhZGVyDQogICAgICAgICAgICAvLyBhbmQgdGhlbiB0byBqdXN0IHRoZSBwYWdlLg0KICAgICAgICAgICAgbGV0IGxpbmsgPSBMaW5rLmZpbGUocGF0aCwgZmFsc2UpOw0KICAgICAgICAgICAgbGV0IGJsb2NrTWF0Y2ggPSBUQVNLX0JMT0NLX1JFR0VYLmV4ZWMobGluZSk7DQogICAgICAgICAgICBsZXQgbGFzdEhlYWRlciA9IGZpbmRQcmV2aW91c0hlYWRlcihsaW5lbm8sIG1ldGFkYXRhLmhlYWRpbmdzIHx8IFtdKTsNCiAgICAgICAgICAgIGlmIChibG9ja01hdGNoKSB7DQogICAgICAgICAgICAgICAgbGluayA9IExpbmsuYmxvY2socGF0aCwgYmxvY2tNYXRjaFsxXSwgZmFsc2UpOw0KICAgICAgICAgICAgfQ0KICAgICAgICAgICAgZWxzZSBpZiAobGFzdEhlYWRlcikgew0KICAgICAgICAgICAgICAgIGxpbmsgPSBMaW5rLmhlYWRlcihwYXRoLCBsYXN0SGVhZGVyLCBmYWxzZSk7DQogICAgICAgICAgICB9DQogICAgICAgICAgICAvLyBBZGQgYWxsIGlubGluZSBmaWVsZCBkZWZpbml0aW9ucy4NCiAgICAgICAgICAgIGxldCBhbm5vdGF0aW9ucyA9IHt9Ow0KICAgICAgICAgICAgZm9yIChsZXQgZmllbGQgb2YgZXh0cmFjdElubGluZUZpZWxkcyhsaW5lKSkgew0KICAgICAgICAgICAgICAgIGxldCB2YWx1ZSA9IHBhcnNlSW5saW5lVmFsdWUoZmllbGQudmFsdWUpOw0KICAgICAgICAgICAgICAgIGFubm90YXRpb25zW2ZpZWxkLmtleV0gPSB2YWx1ZTsNCiAgICAgICAgICAgICAgICBhbm5vdGF0aW9uc1tjYW5vbmljYWxpemVWYXJOYW1lKGZpZWxkLmtleSldID0gdmFsdWU7DQogICAgICAgICAgICB9DQogICAgICAgICAgICBsZXQgc3BlY2lhbCA9IGV4dHJhY3RTcGVjaWFsVGFza0ZpZWxkcyhsaW5lLCBhbm5vdGF0aW9ucyk7DQogICAgICAgICAgICBsZXQgaW5kZW50ID0gbWF0Y2hbMV0ucmVwbGFjZSgiXHQiLCAiICAgICIpLmxlbmd0aDsNCiAgICAgICAgICAgIGxldCBpc1JlYWwgPSAhIW1hdGNoWzJdICYmIG1hdGNoWzJdLnRyaW0oKS5sZW5ndGggPiAwOw0KICAgICAgICAgICAgbGV0IGlzQ29tcGxldGVkID0gIWlzUmVhbCB8fCBtYXRjaFsyXSA9PSAiW1hdIiB8fCBtYXRjaFsyXSA9PSAiW3hdIjsNCiAgICAgICAgICAgIGxldCB0YXNrID0gbmV3IFRhc2soew0KICAgICAgICAgICAgICAgIHRleHQ6IG1hdGNoWzNdLA0KICAgICAgICAgICAgICAgIGNvbXBsZXRlZDogaXNDb21wbGV0ZWQsDQogICAgICAgICAgICAgICAgZnVsbHlDb21wbGV0ZWQ6IGlzQ29tcGxldGVkLA0KICAgICAgICAgICAgICAgIHJlYWw6IGlzUmVhbCwNCiAgICAgICAgICAgICAgICBwYXRoLA0KICAgICAgICAgICAgICAgIGxpbmU6IGxpbmVubywNCiAgICAgICAgICAgICAgICBsaW5rLA0KICAgICAgICAgICAgICAgIHN1YnRhc2tzOiBbXSwNCiAgICAgICAgICAgICAgICBhbm5vdGF0aW9ucywNCiAgICAgICAgICAgICAgICBjcmVhdGVkOiBzcGVjaWFsLmNyZWF0ZWQsDQogICAgICAgICAgICAgICAgZHVlOiBzcGVjaWFsLmR1ZSwNCiAgICAgICAgICAgICAgICBjb21wbGV0aW9uOiBzcGVjaWFsLmNvbXBsZXRlZCwNCiAgICAgICAgICAgIH0pOw0KICAgICAgICAgICAgd2hpbGUgKGluZGVudCA8PSAoKF9iID0gKF9hID0gYWxhc3Qoc3RhY2spKSA9PT0gbnVsbCB8fCBfYSA9PT0gdm9pZCAwID8gdm9pZCAwIDogX2FbMV0pICE9PSBudWxsICYmIF9iICE9PSB2b2lkIDAgPyBfYiA6IC00KSkNCiAgICAgICAgICAgICAgICBzdGFjay5wb3AoKTsNCiAgICAgICAgICAgIGZvciAobGV0IFtlbGVtLCBfXSBvZiBzdGFjaykNCiAgICAgICAgICAgICAgICBlbGVtLmZ1bGx5Q29tcGxldGVkID0gZWxlbS5mdWxseUNvbXBsZXRlZCAmJiB0YXNrLmZ1bGx5Q29tcGxldGVkOw0KICAgICAgICAgICAgKF9jID0gYWxhc3Qoc3RhY2spKSA9PT0gbnVsbCB8fCBfYyA9PT0gdm9pZCAwID8gdm9pZCAwIDogX2NbMF0uc3VidGFza3MucHVzaCh0YXNrKTsNCiAgICAgICAgICAgIHN0YWNrLnB1c2goW3Rhc2ssIGluZGVudF0pOw0KICAgICAgICB9DQogICAgICAgIC8vIFJldHVybiBldmVyeXRoaW5nIHVuZGVyIHRoZSByb290LCB3aGljaCBzaG91bGQgYmUgYWxsIHRhc2tzLg0KICAgICAgICAvLyBTdHJpcCB0cmVlcyBvZiB0YXNrcyB3aGljaCBhcmUgcHVyZWx5IG5vdCByZWFsIChsb2w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B2b2lkIDAgPyB2b2lkIDAgOiBfYS50cmltKCkpID09PSBudWxsIHx8IF9iID09PSB2b2lkIDAgPyB2b2lkIDAgOiBfYi5sZW5ndGgpICE9PSBudWxsICYmIF9jICE9PSB2b2lkIDAgPyBfYyA6IDApID4gMCkNCiAgICAgICAgICAgICAgICBjb250aW51ZTsNCiAgICAgICAgICAgIC8vIEhhbmRsZSBpbmxpbmUtaW5saW5lIGZpZWxkcyAoaGFoYS4uLikNCiAgICAgICAgICAgIGxldCBoYXNJbmxpbmVJbmxpbmUgPSBmYWxzZTsNCiAgICAgICAgICAgIGZvciAobGV0IGZpZWxkIG9mIGV4dHJhY3RJbmxpbmVGaWVsZHMobGluZSkpIHsNCiAgICAgICAgICAgICAgICBsZXQgdmFsdWUgPSBwYXJzZUlubGluZVZhbHVlKGZpZWxkLnZhbHVlKTsNCiAgICAgICAgICAgICAgICBmaWVsZHMuc2V0KGZpZWxkLmtleSwgKChfZCA9IGZpZWxkcy5nZXQoZmllbGQua2V5KSkgIT09IG51bGwgJiYgX2QgIT09IHZvaWQgMCA/IF9kIDogW10pLmNvbmNhdChbdmFsdWVdKSk7DQogICAgICAgICAgICAgICAgbGV0IHNpbXBsZU5hbWUgPSBjYW5vbmljYWxpemVWYXJOYW1lKGZpZWxkLmtleSk7DQogICAgICAgICAgICAgICAgaWYgKHNpbXBsZU5hbWUubGVuZ3RoID4gMCAmJiBzaW1wbGVOYW1lICE9IGZpZWxkLmtleS50cmltKCkpIHsNCiAgICAgICAgICAgICAgICAgICAgZmllbGRzLnNldChzaW1wbGVOYW1lLCAoKF9lID0gZmllbGRzLmdldChzaW1wbGVOYW1lKSkgIT09IG51bGwgJiYgX2UgIT09IHZvaWQgMCA/IF9lIDogW10pLmNvbmNhdChbdmFsdWVdKSk7DQogICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgIGhhc0lubGluZUlubGluZSA9IHRydWU7DQogICAgICAgICAgICB9DQogICAgICAgICAgICAvLyBIYW5kbGUgZnVsbC1saW5lIGlubGluZSBmaWVsZHMgaWYgdGhlcmUgYXJlIG5vIGlubGluZS1pbmxpbmUgZmllbGRzLg0KICAgICAgICAgICAgaWYgKCFoYXNJbmxpbmVJbmxpbmUpIHsNCiAgICAgICAgICAgICAgICBsZXQgbWF0Y2ggPSBpbmxpbmVSZWdleC5leGVjKGxpbmUpOw0KICAgICAgICAgICAgICAgIGlmIChtYXRjaCkgew0KICAgICAgICAgICAgICAgICAgICBsZXQgbmFtZSA9IG1hdGNoWzFdLnRyaW0oKTsNCiAgICAgICAgICAgICAgICAgICAgbGV0IGlubGluZUZpZWxkID0gcGFyc2VJbmxpbmVWYWx1ZShtYXRjaFsyXSk7DQogICAgICAgICAgICAgICAgICAgIGZpZWxkcy5zZXQobmFtZSwgKChfZiA9IGZpZWxkcy5nZXQobmFtZSkpICE9PSBudWxsICYmIF9mICE9PSB2b2lkIDAgPyBfZiA6IFtdKS5jb25jYXQoW2lubGluZUZpZWxkXSkpOw0KICAgICAgICAgICAgICAgICAgICBsZXQgc2ltcGxlTmFtZSA9IGNhbm9uaWNhbGl6ZVZhck5hbWUobWF0Y2hbMV0udHJpbSgpKTsNCiAgICAgICAgICAgICAgICAgICAgaWYgKHNpbXBsZU5hbWUubGVuZ3RoID4gMCAmJiBzaW1wbGVOYW1lICE9IG1hdGNoWzFdLnRyaW0oKSkgew0KICAgICAgICAgICAgICAgICAgICAgICAgZmllbGRzLnNldChzaW1wbGVOYW1lLCAoKF9nID0gZmllbGRzLmdldChzaW1wbGVOYW1lKSkgIT09IG51bGwgJiYgX2cgIT09IHZvaWQgMCA/IF9nIDogW10pLmNvbmNhdChbaW5saW5lRmllbGRdKSk7DQogICAgICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICB9DQogICAgICAgIH0NCiAgICAgICAgLy8gQW5kIGV4dHJhY3QgdGFza3MuLi4NCiAgICAgICAgbGV0IHRhc2tzID0gZmluZFRhc2tzSW5GaWxlKHB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0cmFuc2ZlcmFibGUodmFsKSk7DQogICAgICAgICAgICAgICAgcmV0dXJuIGNvcGllZDsNCiAgICAgICAgICAgIH0NCiAgICAgICAgICAgIGVsc2UgaWYgKHZhbHVlIGluc3RhbmNlb2YgU2V0KSB7DQogICAgICAgICAgICAgICAgbGV0IGNvcGllZCA9IG5ldyBTZXQoKTsNCiAgICAgICAgICAgICAgICBmb3IgKGxldCB2YWwgb2YgdmFsdWUpDQogICAgICAgICAgICAgICAgICAgIGNvcGllZC5hZGQodHJhbnNmZXJhYmxlKHZhbCkpOw0KICAgICAgICAgICAgICAgIHJldHVybiBjb3BpZWQ7DQogICAgICAgICAgICB9DQogICAgICAgICAgICBsZXQgd3JhcHBlZCA9IFZhbHVlcy53cmFwVmFsdWUodmFsdWUpOw0KICAgICAgICAgICAgaWYgKHdyYXBwZWQgPT09IHVuZGVmaW5lZCkNCiAgICAgICAgICAgICAgICB0aHJvdyBFcnJvcigiVW5yZWNvZ25pemVkIHRyYW5zZmVyYWJsZSB2YWx1ZTogIiArIHZhbHVlKTsNCiAgICAgICAgICAgIHN3aXRjaCAod3JhcHBlZC50eXBlKSB7DQogICAgICAgICAgICAgICAgY2FzZSAibnVsbCI6DQogICAgICAgICAgICAgICAgY2FzZSAibnVtYmVyIjoNCiAgICAgICAgICAgICAgICBjYXNlICJzdHJpbmciOg0KICAgICAgICAgICAgICAgIGNhc2UgImJvb2xlYW4iOg0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gd3JhcHBlZC52YWx1ZTsNCiAgICAgICAgICAgICAgICBjYXNlICJkYXRlIjoNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHsNCiAgICAgICAgICAgICAgICAgICAgICAgICJfX190cmFuc2Zlci10eXBlIjogImRhdGUiLA0KICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWU6IHRyYW5zZmVyYWJsZSh3cmFwcGVkLnZhbHVlLnRvT2JqZWN0KCkpLA0KICAgICAgICAgICAgICAgICAgICAgICAgb3B0aW9uczogeyB6b25lOiB3cmFwcGVkLnZhbHVlLnpvbmVOYW1lIH0sDQogICAgICAgICAgICAgICAgICAgIH07DQogICAgICAgICAgICAgICAgY2FzZSAiZHVyYXRpb24iOg0KICAgICAgICAgICAgICAgICAgICByZXR1cm4geyAiX19fdHJhbnNmZXItdHlwZSI6ICJkdXJhdGlvbiIsIHZhbHVlOiB0cmFuc2ZlcmFibGUod3JhcHBlZC52YWx1ZS50b09iamVjdCgpKSB9Ow0KICAgICAgICAgICAgICAgIGNhc2UgImFycmF5IjoNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHdyYXBwZWQudmFsdWUubWFwKHYgPT4gdHJhbnNmZXJhYmxlKHYpKTsNCiAgICAgICAgICAgICAgICBjYXNlICJvYmplY3QiOg0KICAgICAgICAgICAgICAgICAgICBsZXQgcmVzdWx0ID0ge307DQogICAgICAgICAgICAgICAgICAgIGZvciAobGV0IFtrZXksIHZhbHVlXSBvZiBPYmplY3QuZW50cmllcyh3cmFwcGVkLnZhbHVlKSkNCiAgICAgICAgICAgICAgICAgICAgICAgIHJlc3VsdFtrZXldID0gdHJhbnNmZXJhYmxlKHZhbHVlKTsNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHJlc3VsdDsNCiAgICAgICAgICAgICAgICBjYXNlICJsaW5rIjoNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHsgIl9fX3RyYW5zZmVyLXR5cGUiOiAibGluayIsIHZhbHVlOiB0cmFuc2ZlcmFibGUod3JhcHBlZC52YWx1ZS50b09iamVjdCgpKSB9Ow0KICAgICAgICAgICAgICAgIGNhc2UgInRhc2siOg0KICAgICAgICAgICAgICAgICAgICByZXR1cm4geyAiX19fdHJhbnNmZXItdHlwZSI6ICJ0YXNrIiwgdmFsdWU6IHRyYW5zZmVyYWJsZSh3cmFwcGVkLnZhbHVlLnRvT2JqZWN0KGZhbHNlKSkgfTsNCiAgICAgICAgICAgICAgICBkZWZhdWx0Og0KICAgICAgICAgICAgICAgICAgICB0aHJvdyBFcnJvcigiVW5yZWNvZ25pemVkIHRyYW5zZmVyYWJsZSBsaXRlcmFsIHZhbHVlOiAiICsgdmFsdWUpOw0KICAgICAgICAgICAgfQ0KICAgICAgICB9DQogICAgICAgIFRyYW5zZmVyYWJsZS50cmFuc2ZlcmFibGUgPSB0cmFuc2ZlcmFibGU7DQogICAgICAgIC8qKiBDb252ZXJ0IGEgdHJhbnNmZXJhYmxlIHZhbHVlIGJhY2sgdG8gYSBsaXRlcmFsIHZhbHVlIHdlIGNhbiB3b3JrIHdpdGguICovDQogICAgICAgIGZ1bmN0aW9uIHZhbHVlKHRyYW5zZmVyYWJsZSkgew0KICAgICAgICAgICAgaWYgKHRyYW5zZmVyYWJsZSA9PT0gbnVsbCkgew0KICAgICAgICAgICAgICAgIHJldHVybiBudWxsOw0KICAgICAgICAgICAgfQ0KICAgICAgICAgICAgZWxzZSBpZiAodHJhbnNmZXJhYmxlID09PSB1bmRlZmluZWQpIHsNCiAgICAgICAgICAgICAgICByZXR1cm4gdW5kZWZpbmVkOw0KICAgICAgICAgICAgfQ0KICAgICAgICAgICAgZWxzZSBpZiAodHJhbnNmZXJhYmxlIGluc3RhbmNlb2YgTWFwKSB7DQogICAgICAgICAgICAgICAgbGV0IHJlYWwgPSBuZXcgTWFwKCk7DQogICAgICAgICAgICAgICAgZm9yIChsZXQgW2tleSwgdmFsXSBvZiB0cmFuc2ZlcmFibGUuZW50cmllcygpKQ0KICAgICAgICAgICAgICAgICAgICByZWFsLnNldCh2YWx1ZShrZXkpLCB2YWx1ZSh2YWwpKTsNCiAgICAgICAgICAgICAgICByZXR1cm4gcmVhbDsNCiAgICAgICAgICAgIH0NCiAgICAgICAgICAgIGVsc2UgaWYgKHRyYW5zZmVyYWJsZSBpbnN0YW5jZW9mIFNldCkgew0KICAgICAgICAgICAgICAgIGxldCByZWFsID0gbmV3IFNldCgpOw0KICAgICAgICAgICAgICAgIGZvciAobGV0IHZhbCBvZiB0cmFuc2ZlcmFibGUpDQogICAgICAgICAgICAgICAgICAgIHJlYWwuYWRkKHZhbHVlKHZhbCkpOw0KICAgICAgICAgICAgICAgIHJldHVybiByZWFsOw0KICAgICAgICAgICAgfQ0KICAgICAgICAgICAgZWxzZSBpZiAoQXJyYXkuaXNBcnJheSh0cmFuc2ZlcmFibGUpKSB7DQogICAgICAgICAgICAgICAgcmV0dXJuIHRyYW5zZmVyYWJsZS5tYXAodiA9PiB2YWx1ZSh2KSk7DQogICAgICAgICAgICB9DQogICAgICAgICAgICBlbHNlIGlmICh0eXBlb2YgdHJhbnNmZXJhYmxlID09PSAib2JqZWN0Iikgew0KICAgICAgICAgICAgICAgIGlmICgiX19fdHJhbnNmZXItdHlwZSIgaW4gdHJhbnNmZXJhYmxlKSB7DQogICAgICAgICAgICAgICAgICAgIHN3aXRjaCAodHJhbnNmZXJhYmxlWyJfX190cmFuc2Zlci10eXBlIl0pIHsNCiAgICAgICAgICAgICAgICAgICAgICAgIGNhc2UgImRhdGUiOg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxldCByYXdEYXRlID0gRGF0ZVRpbWVfMS5mcm9tT2JqZWN0KHZhbHVlKHRyYW5zZmVyYWJsZS52YWx1ZSkpOw0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIGxldCBkYXRlT3B0cyA9IHZhbHVlKHRyYW5zZmVyYWJsZS5vcHRpb25zKTsNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAoZGF0ZU9wdHMuem9uZSkNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmF3RGF0ZS5zZXRab25lKGRhdGVPcHRzLnpvbmUpOw0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiByYXdEYXRlOw0KICAgICAgICAgICAgICAgICAgICAgICAgY2FzZSAiZHVyYXRpb24iOg0KICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBEdXJhdGlvbl8xLmZyb21PYmplY3QodmFsdWUodHJhbnNmZXJhYmxlLnZhbHVlKSk7DQogICAgICAgICAgICAgICAgICAgICAgICBjYXNlICJsaW5rIjoNCiAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gTGluay5mcm9tT2JqZWN0KHZhbHVlKHRyYW5zZmVyYWJsZS52YWx1ZSkpOw0KICAgICAgICAgICAgICAgICAgICAgICAgY2FzZSAidGFzayI6DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFRhc2suZnJvbU9iamVjdCh2YWx1ZSh0cmFuc2ZlcmFibGUudmFsdWUpKTsNCiAgICAgICAgICAgICAgICAgICAgICAgIGRlZmF1bHQ6DQogICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhyb3cgRXJyb3IoYFVucmVjb2duaXplZCB0cmFuc2ZlciB0eXBlICcke3RyYW5zZmVyYWJsZVsiX19fdHJhbnNmZXItdHlwZSJdfSdgKTsNCiAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgICAgICBsZXQgcmVzdWx0ID0ge307DQogICAgICAgICAgICAgICAgZm9yIChsZXQgW2tleSwgdmFsXSBvZiBPYmplY3QuZW50cmllcyh0cmFuc2ZlcmFibGUpKQ0KICAgICAgICAgICAgICAgICAgICByZXN1bHRba2V5XSA9IHZhbHVlKHZhbCk7DQogICAgICAgICAgICAgICAgcmV0dXJuIHJlc3VsdDsNCiAgICAgICAgICAgIH0NCiAgICAgICAgICAgIHJldHVybiB0cmFuc2ZlcmFibGU7DQogICAgICAgIH0NCiAgICAgICAgVHJhbnNmZXJhYmxlLnZhbHVlID0gdmFsdWU7DQogICAgfSkoVHJhbnNmZXJhYmxlIHx8IChUcmFuc2ZlcmFibGUgPSB7fSkpOwoKICAgIC8qKiBFbnRyeS1wb2ludCBzY3JpcHQgdXNlZCBieSB0aGUgaW5kZXggYXMgYSB3ZWIgd29ya2VyLiAqLw0KICAgIG9ubWVzc2FnZSA9IChldnQpID0+IF9fYXdhaXRlcih2b2lkIDAsIHZvaWQgMCwgdm9pZCAwLCBmdW5jdGlvbiogKCkgew0KICAgICAgICBsZXQgcmVzdWx0ID0gcnVuSW1wb3J0KGV2dC5kYXRhLnBhdGgsIGV2dC5kYXRhLmNvbnRlbnRzLCBldnQuZGF0YS5tZXRhZGF0YSk7DQogICAgICAgIHBvc3RNZXNzYWdlKHsgcGF0aDogZXZ0LmRhdGEucGF0aCwgcmVzdWx0OiBUcmFuc2ZlcmFibGUudHJhbnNmZXJhYmxlKHJlc3VsdCkgfSk7DQogICAgfSk7Cgp9KCkpOwoK', null, false);
|
|
|
/* eslint-enable */
|
|
|
|
|
|
/** Controls and creates Dataview file importers, allowing for asynchronous loading and parsing of files. */
|
|
|
/** Multi-threaded file parser which debounces rapid file requests automatically. */
|
|
|
class FileImporter {
|
|
|
constructor(numWorkers, vault, metadataCache) {
|
|
|
this.numWorkers = numWorkers;
|
|
|
this.vault = vault;
|
|
|
this.metadataCache = metadataCache;
|
|
|
this.workers = [];
|
|
|
this.busy = [];
|
|
|
this.reloadQueue = [];
|
|
|
this.reloadSet = new Set();
|
|
|
this.callbacks = new Map();
|
|
|
for (let index = 0; index < numWorkers; index++) {
|
|
|
let worker = new WorkerFactory({ name: "Dataview Indexer " + (index + 1) });
|
|
|
worker.onmessage = evt => this.finish(evt.data.path, Transferable.value(evt.data.result), index);
|
|
|
this.workers.push(worker);
|
|
|
this.busy.push(false);
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
|
* Queue the given file for reloading. Multiple reload requests for the same file in a short time period will be de-bounced
|
|
|
* and all be resolved by a single actual file reload.
|
|
|
*/
|
|
|
reload(file) {
|
|
|
let promise = new Promise((resolve, _reject) => {
|
|
|
var _a;
|
|
|
if (this.callbacks.has(file.path))
|
|
|
(_a = this.callbacks.get(file.path)) === null || _a === void 0 ? void 0 : _a.push(resolve);
|
|
|
else
|
|
|
this.callbacks.set(file.path, [resolve]);
|
|
|
});
|
|
|
// De-bounce repeated requests for the same file.
|
|
|
if (this.reloadSet.has(file.path))
|
|
|
return promise;
|
|
|
this.reloadSet.add(file.path);
|
|
|
// Immediately run this task if there are available workers; otherwise, add it to the queue.
|
|
|
let workerId = this.nextAvailableWorker();
|
|
|
if (workerId !== undefined) {
|
|
|
this.send(file, workerId);
|
|
|
}
|
|
|
else {
|
|
|
this.reloadQueue.push(file);
|
|
|
}
|
|
|
return promise;
|
|
|
}
|
|
|
/** Finish the parsing of a file, potentially queueing a new file. */
|
|
|
finish(path, data, index) {
|
|
|
var _a;
|
|
|
// Cache the callbacks before we do book-keeping.
|
|
|
let calls = [].concat((_a = this.callbacks.get(path)) !== null && _a !== void 0 ? _a : []);
|
|
|
// Book-keeping to clear metadata & allow the file to be re-loaded again.
|
|
|
this.reloadSet.delete(path);
|
|
|
this.callbacks.delete(path);
|
|
|
// Notify the queue this file is available for new work.
|
|
|
this.busy[index] = false;
|
|
|
// Queue a new job onto this worker.
|
|
|
let job = this.reloadQueue.shift();
|
|
|
if (job !== undefined)
|
|
|
this.send(job, index);
|
|
|
// Resolve promises to let users know this file has finished.
|
|
|
for (let callback of calls)
|
|
|
callback(data);
|
|
|
}
|
|
|
/** Send a new task to the given worker ID. */
|
|
|
send(file, workerId) {
|
|
|
this.busy[workerId] = true;
|
|
|
this.vault.read(file).then(c => this.workers[workerId].postMessage({
|
|
|
path: file.path,
|
|
|
contents: c,
|
|
|
metadata: this.metadataCache.getFileCache(file),
|
|
|
}));
|
|
|
}
|
|
|
/** Find the next available, non-busy worker; return undefined if all workers are busy. */
|
|
|
nextAvailableWorker() {
|
|
|
let index = this.busy.indexOf(false);
|
|
|
return index == -1 ? undefined : index;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/** 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();
|
|
|
}
|
|
|
}
|
|
|
/** 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(vault, metadataCache, events) {
|
|
|
this.vault = vault;
|
|
|
this.metadataCache = metadataCache;
|
|
|
this.events = events;
|
|
|
this.pages = new Map();
|
|
|
this.tags = new IndexMap();
|
|
|
this.etags = new IndexMap();
|
|
|
this.links = new IndexMap();
|
|
|
this.folders = new IndexMap();
|
|
|
this.revision = 0;
|
|
|
// Handles asynchronous reloading of files on web workers.
|
|
|
this.importer = new FileImporter(4, this.vault, this.metadataCache);
|
|
|
// Prefix listens to file creation/deletion/rename, and not modifies, so we let it set up it's own listeners.
|
|
|
this.prefix = PrefixIndex.create(this.vault, () => (this.revision += 1));
|
|
|
// The CSV cache also needs to listen to filesystem events for cache invalidation.
|
|
|
this.csv = new CsvCache(this.vault);
|
|
|
}
|
|
|
/** Generate a full index from the given vault. */
|
|
|
static create(vault, metadata, events) {
|
|
|
return new FullIndex(vault, metadata, events);
|
|
|
}
|
|
|
/** Runs through the whole vault to set up initial file */
|
|
|
initialize() {
|
|
|
// 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);
|
|
|
// 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.events.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.events.trigger("dataview:metadata-change", "delete", file);
|
|
|
});
|
|
|
// Initialize sub-indices.
|
|
|
this.prefix.initialize();
|
|
|
}
|
|
|
/** Queue a file for reloading; this is done asynchronously in the background and may take a few seconds. */
|
|
|
reload(file) {
|
|
|
this.importer.reload(file).then(r => this.reloadInternal(file, r));
|
|
|
}
|
|
|
/** "Touch" the index, incrementing the revision number and causing downstream views to reload. */
|
|
|
touch() {
|
|
|
this.revision += 1;
|
|
|
}
|
|
|
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.events.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, updateRevision) {
|
|
|
this.vault = vault;
|
|
|
this.updateRevision = updateRevision;
|
|
|
this.root = new PrefixIndexNode("");
|
|
|
}
|
|
|
static create(vault, updateRevision) {
|
|
|
return new PrefixIndex(vault, updateRevision);
|
|
|
}
|
|
|
/** Run through the whole vault to set up the initial prefix index. */
|
|
|
initialize() {
|
|
|
let timeStart = new Date().getTime();
|
|
|
for (let file of this.vault.getFiles())
|
|
|
PrefixIndexNode.add(this.root, file.path);
|
|
|
console.log("Dataview: File prefix tree built in %.3fs.", (new Date().getTime() - timeStart) / 1000.0);
|
|
|
// 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);
|
|
|
this.updateRevision();
|
|
|
});
|
|
|
this.vault.on("create", file => {
|
|
|
PrefixIndexNode.add(this.root, file.path);
|
|
|
this.updateRevision();
|
|
|
});
|
|
|
this.vault.on("rename", (file, old) => {
|
|
|
PrefixIndexNode.remove(this.root, old);
|
|
|
PrefixIndexNode.add(this.root, file.path);
|
|
|
this.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.
|
|
|
*/
|
|
|
class CsvCache {
|
|
|
constructor(vault) {
|
|
|
this.vault = vault;
|
|
|
this.cache = new Map();
|
|
|
}
|
|
|
/** 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* () {
|
|
|
// Clear old entries on every fresh load, since the path being loaded may be stale.
|
|
|
this.clearOldEntries();
|
|
|
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));
|
|
|
}
|
|
|
}
|
|
|
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, settings);
|
|
|
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, settings) {
|
|
|
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");
|
|
|
}
|
|
|
// Append the task link if it is present.
|
|
|
let text = task.text;
|
|
|
switch (settings.taskLinkLocation) {
|
|
|
case "start":
|
|
|
if (!settings.taskLinkText)
|
|
|
break;
|
|
|
text = task.link.withDisplay(settings.taskLinkText).markdown() + " " + text;
|
|
|
break;
|
|
|
case "end":
|
|
|
if (!settings.taskLinkText)
|
|
|
break;
|
|
|
text += " " + task.link.withDisplay(settings.taskLinkText).markdown();
|
|
|
break;
|
|
|
}
|
|
|
// Render the text as markdown so that bolds, links, and other things work properly.
|
|
|
yield obsidian.MarkdownRenderer.renderMarkdown(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, settings);
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
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]);
|
|
|
if (!match)
|
|
|
return;
|
|
|
let foundText = match[3];
|
|
|
let checkMarking = match[2]
|
|
|
.trim()
|
|
|
.substring(1, match[2].trim().length - 1)
|
|
|
.trim();
|
|
|
let foundCompleted = checkMarking == "X" || checkMarking == "x";
|
|
|
if (taskText.trim() != foundText.trim())
|
|
|
return;
|
|
|
if (wasChecked != foundCompleted)
|
|
|
return;
|
|
|
if (check) {
|
|
|
splitText[taskLine] = splitText[taskLine]
|
|
|
.replace("- [ ]", "- [x]")
|
|
|
.replace("- []", "- [x]")
|
|
|
.replace("-[]", "- [x]")
|
|
|
.replace("-[ ]", "- [x]");
|
|
|
}
|
|
|
else {
|
|
|
splitText[taskLine] = splitText[taskLine]
|
|
|
.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();
|
|
|
/**
|
|
|
* Convert any value to a reasonable internal string representation. Most useful for dates, strings, numbers, and
|
|
|
* so on.
|
|
|
*/
|
|
|
DefaultFunctions.string = new FunctionBuilder("string").add1("*", (a, ctx) => Values.toString(a, ctx.settings)).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();
|
|
|
// Ensure undefined matches turn into empty strings for split/2 and split/3.
|
|
|
const splitImpl = (str, delim, limit) => str.split(new RegExp(delim), limit).map(str => str || "");
|
|
|
/** Split a string on a given string. */
|
|
|
DefaultFunctions.split = new FunctionBuilder("split")
|
|
|
.add2("string", "string", (string, splitter) => splitImpl(string, splitter))
|
|
|
.add3("string", "string", "number", (string, splitter, limit) => splitImpl(string, splitter, limit))
|
|
|
.build();
|
|
|
DefaultFunctions.startswith = new FunctionBuilder("startswith")
|
|
|
.add2("string", "string", (str, starting) => str.startsWith(starting))
|
|
|
.vectorize(2, [0, 1])
|
|
|
.build();
|
|
|
DefaultFunctions.endswith = new FunctionBuilder("endswith")
|
|
|
.add2("string", "string", (str, ending) => str.endsWith(ending))
|
|
|
.vectorize(2, [0, 1])
|
|
|
.build();
|
|
|
DefaultFunctions.padleft = new FunctionBuilder("padleft")
|
|
|
.add2("string", "number", (str, len) => str.padStart(len, " "))
|
|
|
.add3("string", "number", "string", (str, len, padding) => str.padStart(len, padding))
|
|
|
.vectorize(2, [0, 1])
|
|
|
.vectorize(3, [0, 1, 2])
|
|
|
.build();
|
|
|
DefaultFunctions.padright = new FunctionBuilder("padright")
|
|
|
.add2("string", "number", (str, len) => str.padEnd(len, " "))
|
|
|
.add3("string", "number", "string", (str, len, padding) => str.padEnd(len, padding))
|
|
|
.vectorize(2, [0, 1])
|
|
|
.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,
|
|
|
string: DefaultFunctions.string,
|
|
|
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,
|
|
|
split: DefaultFunctions.split,
|
|
|
startswith: DefaultFunctions.startswith,
|
|
|
endswith: DefaultFunctions.endswith,
|
|
|
padleft: DefaultFunctions.padleft,
|
|
|
padright: DefaultFunctions.padright,
|
|
|
// 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 pageData = page.toObject(index);
|
|
|
let rpage = page;
|
|
|
let pageTasks = page.tasks.map(t => {
|
|
|
let copy = t.toObject();
|
|
|
// Add page data to this copy.
|
|
|
for (let [key, value] of Object.entries(pageData)) {
|
|
|
if (key in copy)
|
|
|
continue;
|
|
|
copy[key] = value;
|
|
|
}
|
|
|
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;
|
|
|
},
|
|
|
};
|
|
|
}
|
|
|
|
|
|
/** 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 (!Values.isLink(path) && !Values.isString(path)) {
|
|
|
throw Error(`dv.io.csv only handles string or link paths; was provided type '${typeof path}'.`);
|
|
|
}
|
|
|
let data = yield this.api.index.csv.get(this.normalize(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 : "/"}')`);
|
|
|
});
|
|
|
}
|
|
|
/** Asynchronously load the contents of any link or path in an Obsidian vault. */
|
|
|
load(path, originFile) {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
if (!Values.isLink(path) && !Values.isString(path)) {
|
|
|
throw Error(`dv.io.load only handles string or link paths; was provided type '${typeof path}'.`);
|
|
|
}
|
|
|
return this.api.index.vault.adapter.read(this.normalize(path, originFile));
|
|
|
});
|
|
|
}
|
|
|
/** Normalize a link or path relative to an optional origin file. Returns a textual fully-qualified-path. */
|
|
|
normalize(path, originFile) {
|
|
|
let realPath;
|
|
|
if (Values.isLink(path))
|
|
|
realPath = path.path;
|
|
|
else
|
|
|
realPath = path;
|
|
|
return this.api.index.prefix.resolveRelative(realPath, 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, currentFile) {
|
|
|
this.api = api;
|
|
|
this.currentFile = currentFile;
|
|
|
}
|
|
|
/** 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 || this.currentFile);
|
|
|
});
|
|
|
}
|
|
|
/** Asynchronously load the contents of any link or path in an Obsidian vault. */
|
|
|
load(path, originFile) {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
return this.api.load(path, originFile || this.currentFile);
|
|
|
});
|
|
|
}
|
|
|
/** Normalize a link or path relative to an optional origin file. Returns a textual fully-qualified-path. */
|
|
|
normalize(path, originFile) {
|
|
|
return this.api.normalize(path, originFile || this.currentFile);
|
|
|
}
|
|
|
}
|
|
|
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, this.currentFilePath);
|
|
|
// 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 = yield Promise.resolve(func(this, input));
|
|
|
if (result)
|
|
|
yield 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 = yield Promise.resolve(viewFunction(this, input));
|
|
|
if (result)
|
|
|
yield 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 {
|
|
|
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));
|
|
|
this.index = FullIndex.create(this.app.vault, this.app.metadataCache, this.app.metadataCache);
|
|
|
this.api = new DataviewApi(this.app, this.index, this.settings);
|
|
|
// 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(new DataviewTaskRenderer(query, el, this.index, ctx.sourcePath, this.app.vault, this.settings));
|
|
|
break;
|
|
|
case "list":
|
|
|
ctx.addChild(new DataviewListRenderer(query, el, this.index, ctx.sourcePath, this.settings));
|
|
|
break;
|
|
|
case "table":
|
|
|
ctx.addChild(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(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(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(new DataviewInlineRenderer(fieldValue, text, el, codeblock, this.index, ctx.sourcePath, this.settings));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}));
|
|
|
// Dataview inline-inline query fancy rendering. Runs at a low priority; should apply to Dataview views.
|
|
|
let inlineInlineRenderer = (el, ctx) => __awaiter(this, void 0, void 0, function* () {
|
|
|
// Allow for lame people to disable the pretty rendering.
|
|
|
if (!this.settings.prettyRenderInlineFields)
|
|
|
return;
|
|
|
// Handle p, header elements explicitly (opt-in rather than opt-out for now).
|
|
|
for (let p of el.findAllSelf("p,h1,h2,h3,h4,h5,h6,li,span"))
|
|
|
yield replaceInlineFields(ctx, p, ctx.sourcePath, this.settings);
|
|
|
});
|
|
|
inlineInlineRenderer.sortOrder = -100;
|
|
|
this.registerMarkdownPostProcessor(inlineInlineRenderer);
|
|
|
// Run index initialization, which actually traverses the vault to index files.
|
|
|
if (!this.app.workspace.layoutReady) {
|
|
|
this.app.workspace.onLayoutReady(() => __awaiter(this, void 0, void 0, function* () { return this.index.initialize(); }));
|
|
|
}
|
|
|
else {
|
|
|
this.index.initialize();
|
|
|
}
|
|
|
// Not required anymore, though holding onto it for backwards-compatibility.
|
|
|
this.app.metadataCache.trigger("dataview:api-ready", this.api);
|
|
|
console.log("Dataview: Version 0.4.x Loaded");
|
|
|
});
|
|
|
}
|
|
|
/**
|
|
|
* 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() { }
|
|
|
/** Update plugin settings. */
|
|
|
updateSettings(settings) {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
Object.assign(this.settings, settings);
|
|
|
yield this.saveData(this.settings);
|
|
|
});
|
|
|
}
|
|
|
/** Call the given callback when the dataview API has initialized. */
|
|
|
withApi(callback) {
|
|
|
callback(this.api);
|
|
|
}
|
|
|
}
|
|
|
/** 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: "General Settings" });
|
|
|
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 }); })));
|
|
|
new obsidian.Setting(this.containerEl)
|
|
|
.setName("Enable Inline JavaScript Queries")
|
|
|
.setDesc("Enable or disable executing inline DataviewJS queries. Requires that DataviewJS queries are enabled.")
|
|
|
.addToggle(toggle => toggle
|
|
|
.setValue(this.plugin.settings.enableInlineDataviewJs)
|
|
|
.onChange((value) => __awaiter(this, void 0, void 0, function* () { return yield this.plugin.updateSettings({ enableInlineDataviewJs: value }); })));
|
|
|
new obsidian.Setting(this.containerEl)
|
|
|
.setName("Enable Inline Field Highlighting")
|
|
|
.setDesc("Enables or disables visual highlighting / pretty rendering for inline fields.")
|
|
|
.addToggle(toggle => toggle
|
|
|
.setValue(this.plugin.settings.prettyRenderInlineFields)
|
|
|
.onChange((value) => __awaiter(this, void 0, void 0, function* () { return yield this.plugin.updateSettings({ prettyRenderInlineFields: value }); })));
|
|
|
this.containerEl.createEl("h2", { text: "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 }); })));
|
|
|
this.containerEl.createEl("h2", { text: "View Settings" });
|
|
|
this.containerEl.createEl("h3", { text: "General" });
|
|
|
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* () {
|
|
|
yield this.plugin.updateSettings({ warnOnEmptyResult: value });
|
|
|
this.plugin.index.touch();
|
|
|
})));
|
|
|
new obsidian.Setting(this.containerEl)
|
|
|
.setName("Render Null As")
|
|
|
.setDesc("What null/non-existent should show up as in tables, by default. This supports Markdown notation.")
|
|
|
.addText(text => text
|
|
|
.setPlaceholder("-")
|
|
|
.setValue(this.plugin.settings.renderNullAs)
|
|
|
.onChange((value) => __awaiter(this, void 0, void 0, function* () {
|
|
|
yield this.plugin.updateSettings({ renderNullAs: value });
|
|
|
this.plugin.index.touch();
|
|
|
})));
|
|
|
new obsidian.Setting(this.containerEl)
|
|
|
.setName("Refresh Interval")
|
|
|
.setDesc("How frequently views are updated (in milliseconds) in preview mode when files are changing.")
|
|
|
.addText(text => text
|
|
|
.setPlaceholder("500")
|
|
|
.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 });
|
|
|
this.plugin.index.touch();
|
|
|
})));
|
|
|
let dtformat = new obsidian.Setting(this.containerEl)
|
|
|
.setName("Date + Time 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 });
|
|
|
this.plugin.index.touch();
|
|
|
})));
|
|
|
this.containerEl.createEl("h3", { text: "Table Settings" });
|
|
|
new obsidian.Setting(this.containerEl)
|
|
|
.setName("Primary Column Name")
|
|
|
.setDesc("The name of the default ID column in tables; this is the auto-generated first column that links to the source file.")
|
|
|
.addText(text => text
|
|
|
.setPlaceholder("File")
|
|
|
.setValue(this.plugin.settings.tableIdColumnName)
|
|
|
.onChange((value) => __awaiter(this, void 0, void 0, function* () {
|
|
|
yield this.plugin.updateSettings({ tableIdColumnName: value });
|
|
|
this.plugin.index.touch();
|
|
|
})));
|
|
|
new obsidian.Setting(this.containerEl)
|
|
|
.setName("Grouped Column Name")
|
|
|
.setDesc("The name of the default ID column in tables, when the table is on grouped data; this is the auto-generated first column" +
|
|
|
"that links to the source file/group.")
|
|
|
.addText(text => text
|
|
|
.setPlaceholder("Group")
|
|
|
.setValue(this.plugin.settings.tableGroupColumnName)
|
|
|
.onChange((value) => __awaiter(this, void 0, void 0, function* () {
|
|
|
yield this.plugin.updateSettings({ tableGroupColumnName: value });
|
|
|
this.plugin.index.touch();
|
|
|
})));
|
|
|
this.containerEl.createEl("h3", { text: "Task Settings" });
|
|
|
new obsidian.Setting(this.containerEl)
|
|
|
.setName("Task Link Type")
|
|
|
.setDesc("'Start' and 'End' place a symbol link in their respective location; 'None' disables linking.")
|
|
|
.addDropdown(dropdown => dropdown
|
|
|
.addOption("start", "Start")
|
|
|
.addOption("end", "End")
|
|
|
.addOption("none", "None")
|
|
|
.setValue(this.plugin.settings.taskLinkLocation)
|
|
|
.onChange((value) => __awaiter(this, void 0, void 0, function* () {
|
|
|
yield this.plugin.updateSettings({ taskLinkLocation: value });
|
|
|
this.plugin.index.touch();
|
|
|
})));
|
|
|
new obsidian.Setting(this.containerEl)
|
|
|
.setName("Render Task Links As")
|
|
|
.setDesc("Text used when linking from a task to its source note in the 'Start' and 'End' link types.")
|
|
|
.addText(text => text.setValue(this.plugin.settings.taskLinkText).onChange((value) => __awaiter(this, void 0, void 0, function* () {
|
|
|
yield this.plugin.updateSettings({ taskLinkText: value.trim() });
|
|
|
this.plugin.index.touch();
|
|
|
})));
|
|
|
}
|
|
|
}
|
|
|
/** 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"
|
|
|
? this.settings.tableGroupColumnName
|
|
|
: this.settings.tableIdColumnName;
|
|
|
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. You can enable them in the Dataview settings.");
|
|
|
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 || !this.settings.enableInlineDataviewJs) {
|
|
|
let temp = document.createElement("span");
|
|
|
temp.innerText = "(disabled; enable in settings)";
|
|
|
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;";
|
|
|
/** Adds a simple handler which runs the given action on any index update. */
|
|
|
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));
|
|
|
}
|
|
|
/** Replaces raw textual inline fields in text containers with pretty HTML equivalents. */
|
|
|
function replaceInlineFields(ctx, container, originFile, settings) {
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
let inlineFields = extractInlineFields(container.innerHTML);
|
|
|
if (inlineFields.length == 0)
|
|
|
return undefined;
|
|
|
let component = new obsidian.MarkdownRenderChild(container);
|
|
|
ctx.addChild(component);
|
|
|
let result = container.innerHTML;
|
|
|
for (let x = inlineFields.length - 1; x >= 0; x--) {
|
|
|
let field = inlineFields[x];
|
|
|
let renderContainer = document.createElement("span");
|
|
|
renderContainer.addClasses(["dataview", "inline-field"]);
|
|
|
// Block inline fields render the key, parenthesis ones do not.
|
|
|
if (field.wrapping == "[") {
|
|
|
renderContainer.createSpan({ text: field.key, cls: ["dataview", "inline-field-key"] });
|
|
|
let valueContainer = renderContainer.createSpan({ cls: ["dataview", "inline-field-value"] });
|
|
|
yield renderValue(parseInlineValue(field.value), valueContainer, originFile, component, settings, false);
|
|
|
}
|
|
|
else {
|
|
|
let valueContainer = renderContainer.createSpan({ cls: ["dataview", "inline-field-standalone-value"] });
|
|
|
yield renderValue(parseInlineValue(field.value), valueContainer, originFile, component, settings, false);
|
|
|
}
|
|
|
result = result.slice(0, field.start) + renderContainer.outerHTML + result.slice(field.end);
|
|
|
}
|
|
|
container.innerHTML = result;
|
|
|
return component;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
module.exports = DataviewPlugin;
|
|
|
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFpbi5qcyIsInNvdXJjZXMiOlsiLi4vbm9kZV9tb2R1bGVzL3RzbGliL3RzbGliLmVzNi5qcyIsIi4uL25vZGVfbW9kdWxlcy9sdXhvbi9idWlsZC9janMtYnJvd3Nlci9sdXhvbi5qcyIsIi4uL3NyYy9zZXR0aW5ncy50cyIsIi4uL3NyYy9hcGkvcmVzdWx0LnRzIiwiLi4vc3JjL3V0aWwvbm9ybW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