From 99537e84198e812471f0e0edaedb1de115dd5902 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 19 Aug 2022 20:53:28 +0000 Subject: [PATCH] chore: release v22.8.2 @kherock/yarn-plugin-release: v2.0.0 --- CHANGELOG.md | 16 + package.json | 2 +- packages/plugin-release/CHANGELOG.md | 16 + .../bundles/@yarnpkg/plugin-release.js | 27255 +--------------- packages/plugin-release/package.json | 2 +- 5 files changed, 115 insertions(+), 27176 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1777fe5..776ab5e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,19 @@ +## [22.8.2](https://github.com/kherock/yarn-plugins/compare/v22.8.1...v22.8.2) (2022-08-19) + + +### ⚠ BREAKING CHANGES + +* **plugin-release:** make project-level CalVer tag optional and disabled by default + +### Features + +* **plugin-release:** make project-level CalVer tag optional and disabled by default ([63af7b4](https://github.com/kherock/yarn-plugins/commit/63af7b4c933a3f7ab0914db67656b15de3043bbf)) + + +### Bug Fixes + +* **plugin-release:** reset prerelease level when the calendar version changes ([7c03312](https://github.com/kherock/yarn-plugins/commit/7c03312338e000c52e2b3b4410565fe952da3d43)) + ## [22.8.1](https://github.com/kherock/yarn-plugins/compare/v22.8.0...v22.8.1) (2022-08-18) diff --git a/package.json b/package.json index 9818552..e5ab89c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kherock/yarn-plugins", - "version": "22.8.1", + "version": "22.8.2", "private": true, "license": "BSD-2-Clause", "workspaces": [ diff --git a/packages/plugin-release/CHANGELOG.md b/packages/plugin-release/CHANGELOG.md index d163cb3..96bb016 100644 --- a/packages/plugin-release/CHANGELOG.md +++ b/packages/plugin-release/CHANGELOG.md @@ -1,3 +1,19 @@ +## [2.0.0](https://github.com/kherock/yarn-plugins/compare/@kherock/yarn-plugin-release@1.8.0...@kherock/yarn-plugin-release@2.0.0) (2022-08-19) + + +### ⚠ BREAKING CHANGES + +* **plugin-release:** make project-level CalVer tag optional and disabled by default + +### Features + +* **plugin-release:** make project-level CalVer tag optional and disabled by default ([63af7b4](https://github.com/kherock/yarn-plugins/commit/63af7b4c933a3f7ab0914db67656b15de3043bbf)) + + +### Bug Fixes + +* **plugin-release:** reset prerelease level when the calendar version changes ([7c03312](https://github.com/kherock/yarn-plugins/commit/7c03312338e000c52e2b3b4410565fe952da3d43)) + ## [1.8.0](https://github.com/kherock/yarn-plugins/compare/@kherock/yarn-plugin-release@1.7.0...@kherock/yarn-plugin-release@1.8.0) (2022-08-18) diff --git a/packages/plugin-release/bundles/@yarnpkg/plugin-release.js b/packages/plugin-release/bundles/@yarnpkg/plugin-release.js index 2e3e747..71c4797 100644 --- a/packages/plugin-release/bundles/@yarnpkg/plugin-release.js +++ b/packages/plugin-release/bundles/@yarnpkg/plugin-release.js @@ -3,27183 +3,90 @@ module.exports = { name: "@yarnpkg/plugin-release", factory: function (require) { -var plugin = (() => { - var __create = Object.create; - var __defProp = Object.defineProperty; - var __defProps = Object.defineProperties; - var __getOwnPropDesc = Object.getOwnPropertyDescriptor; - var __getOwnPropDescs = Object.getOwnPropertyDescriptors; - var __getOwnPropNames = Object.getOwnPropertyNames; - var __getOwnPropSymbols = Object.getOwnPropertySymbols; - var __getProtoOf = Object.getPrototypeOf; - var __hasOwnProp = Object.prototype.hasOwnProperty; - var __propIsEnum = Object.prototype.propertyIsEnumerable; - var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {enumerable: true, configurable: true, writable: true, value}) : obj[key] = value; - var __spreadValues = (a, b) => { - for (var prop in b || (b = {})) - if (__hasOwnProp.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - if (__getOwnPropSymbols) - for (var prop of __getOwnPropSymbols(b)) { - if (__propIsEnum.call(b, prop)) - __defNormalProp(a, prop, b[prop]); - } - return a; - }; - var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b)); - var __markAsModule = (target) => __defProp(target, "__esModule", {value: true}); - var __require = (x) => { - if (typeof require !== "undefined") - return require(x); - throw new Error('Dynamic require of "' + x + '" is not supported'); - }; - var __commonJS = (cb, mod) => function __require2() { - return mod || (0, cb[Object.keys(cb)[0]])((mod = {exports: {}}).exports, mod), mod.exports; - }; - var __export = (target, all) => { - for (var name in all) - __defProp(target, name, {get: all[name], enumerable: true}); - }; - var __reExport = (target, module, desc) => { - if (module && typeof module === "object" || typeof module === "function") { - for (let key of __getOwnPropNames(module)) - if (!__hasOwnProp.call(target, key) && key !== "default") - __defProp(target, key, {get: () => module[key], enumerable: !(desc = __getOwnPropDesc(module, key)) || desc.enumerable}); - } - return target; - }; - var __toModule = (module) => { - return __reExport(__markAsModule(__defProp(module != null ? __create(__getProtoOf(module)) : {}, "default", module && module.__esModule && "default" in module ? {get: () => module.default, enumerable: true} : {value: module, enumerable: true})), module); - }; - var __publicField = (obj, key, value) => { - __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); - return value; - }; - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/add-stream-npm-1.0.0-a5a0c0498c-3e9e8b0b8f.zip/node_modules/add-stream/index.js - var require_add_stream = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/add-stream-npm-1.0.0-a5a0c0498c-3e9e8b0b8f.zip/node_modules/add-stream/index.js"(exports, module) { - "use strict"; - var PassThrough2 = __require("stream").PassThrough; - var Writable = __require("stream").Writable; - var util = __require("util"); - util.inherits(Appendee, PassThrough2); - util.inherits(Appender, Writable); - function Appendee(factory, opts) { - PassThrough2.call(this, opts); - this.factory = factory; - this.opts = opts; - } - Appendee.prototype._flush = function(end) { - var stream = this.factory(); - stream.pipe(new Appender(this, this.opts)).on("finish", end); - stream.resume(); - }; - function Appender(target, opts) { - Writable.call(this, opts); - this.target = target; - } - Appender.prototype._write = function(chunk, enc, cb) { - this.target.push(chunk); - cb(); - }; - function addStream(stream, opts) { - opts = opts || {}; - var factory; - if (typeof stream === "function") { - factory = stream; - } else { - stream.pause(); - factory = function() { - return stream; - }; - } - return new Appendee(factory, opts); - } - addStream.obj = function(stream, opts) { - opts = opts || {}; - opts.objectMode = true; - return addStream(stream, opts); - }; - module.exports = addStream; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/dargs-npm-7.0.0-62701e0c7a-b8f1e3cba5.zip/node_modules/dargs/index.js - var require_dargs = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/dargs-npm-7.0.0-62701e0c7a-b8f1e3cba5.zip/node_modules/dargs/index.js"(exports, module) { - "use strict"; - var match = (array, value) => array.some((x) => x instanceof RegExp ? x.test(value) : x === value); - var dargs = (object, options) => { - const arguments_ = []; - let extraArguments = []; - let separatedArguments = []; - options = __spreadValues({ - useEquals: true, - shortFlag: true - }, options); - const makeArguments = (key, value) => { - const prefix = options.shortFlag && key.length === 1 ? "-" : "--"; - const theKey = options.allowCamelCase ? key : key.replace(/[A-Z]/g, "-$&").toLowerCase(); - key = prefix + theKey; - if (options.useEquals) { - arguments_.push(key + (value ? `=${value}` : "")); - } else { - arguments_.push(key); - if (value) { - arguments_.push(value); - } - } - }; - const makeAliasArg = (key, value) => { - arguments_.push(`-${key}`); - if (value) { - arguments_.push(value); - } - }; - for (let [key, value] of Object.entries(object)) { - let pushArguments = makeArguments; - if (Array.isArray(options.excludes) && match(options.excludes, key)) { - continue; - } - if (Array.isArray(options.includes) && !match(options.includes, key)) { - continue; - } - if (typeof options.aliases === "object" && options.aliases[key]) { - key = options.aliases[key]; - pushArguments = makeAliasArg; - } - if (key === "--") { - if (!Array.isArray(value)) { - throw new TypeError(`Expected key \`--\` to be Array, got ${typeof value}`); - } - separatedArguments = value; - continue; - } - if (key === "_") { - if (!Array.isArray(value)) { - throw new TypeError(`Expected key \`_\` to be Array, got ${typeof value}`); - } - extraArguments = value; - continue; - } - if (value === true) { - pushArguments(key, ""); - } - if (value === false && !options.ignoreFalse) { - pushArguments(`no-${key}`); - } - if (typeof value === "string") { - pushArguments(key, value); - } - if (typeof value === "number" && !Number.isNaN(value)) { - pushArguments(key, String(value)); - } - if (Array.isArray(value)) { - for (const arrayValue of value) { - pushArguments(key, arrayValue); - } - } - } - for (const argument of extraArguments) { - arguments_.push(String(argument)); - } - if (separatedArguments.length > 0) { - arguments_.push("--"); - } - for (const argument of separatedArguments) { - arguments_.push(String(argument)); - } - return arguments_; - }; - module.exports = dargs; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/internal/streams/stream.js - var require_stream = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/internal/streams/stream.js"(exports, module) { - module.exports = __require("stream"); - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/internal/streams/buffer_list.js - var require_buffer_list = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/internal/streams/buffer_list.js"(exports, module) { - "use strict"; - function ownKeys(object, enumerableOnly) { - var keys = Object.keys(object); - if (Object.getOwnPropertySymbols) { - var symbols = Object.getOwnPropertySymbols(object); - if (enumerableOnly) - symbols = symbols.filter(function(sym) { - return Object.getOwnPropertyDescriptor(object, sym).enumerable; - }); - keys.push.apply(keys, symbols); - } - return keys; - } - function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i] != null ? arguments[i] : {}; - if (i % 2) { - ownKeys(Object(source), true).forEach(function(key) { - _defineProperty(target, key, source[key]); - }); - } else if (Object.getOwnPropertyDescriptors) { - Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); - } else { - ownKeys(Object(source)).forEach(function(key) { - Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); - }); - } - } - return target; - } - function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, {value, enumerable: true, configurable: true, writable: true}); - } else { - obj[key] = value; - } - return obj; - } - function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } - } - 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; - } - var _require = __require("buffer"); - var Buffer2 = _require.Buffer; - var _require2 = __require("util"); - var inspect = _require2.inspect; - var custom = inspect && inspect.custom || "inspect"; - function copyBuffer(src, target, offset) { - Buffer2.prototype.copy.call(src, target, offset); - } - module.exports = /* @__PURE__ */ function() { - function BufferList() { - _classCallCheck(this, BufferList); - this.head = null; - this.tail = null; - this.length = 0; - } - _createClass(BufferList, [{ - key: "push", - value: function push(v) { - var entry = { - data: v, - next: null - }; - if (this.length > 0) - this.tail.next = entry; - else - this.head = entry; - this.tail = entry; - ++this.length; - } - }, { - key: "unshift", - value: function unshift(v) { - var entry = { - data: v, - next: this.head - }; - if (this.length === 0) - this.tail = entry; - this.head = entry; - ++this.length; - } - }, { - key: "shift", - value: function shift() { - if (this.length === 0) - return; - var ret = this.head.data; - if (this.length === 1) - this.head = this.tail = null; - else - this.head = this.head.next; - --this.length; - return ret; - } - }, { - key: "clear", - value: function clear() { - this.head = this.tail = null; - this.length = 0; - } - }, { - key: "join", - value: function join(s) { - if (this.length === 0) - return ""; - var p = this.head; - var ret = "" + p.data; - while (p = p.next) { - ret += s + p.data; - } - return ret; - } - }, { - key: "concat", - value: function concat(n) { - if (this.length === 0) - return Buffer2.alloc(0); - var ret = Buffer2.allocUnsafe(n >>> 0); - var p = this.head; - var i = 0; - while (p) { - copyBuffer(p.data, ret, i); - i += p.data.length; - p = p.next; - } - return ret; - } - }, { - key: "consume", - value: function consume(n, hasStrings) { - var ret; - if (n < this.head.data.length) { - ret = this.head.data.slice(0, n); - this.head.data = this.head.data.slice(n); - } else if (n === this.head.data.length) { - ret = this.shift(); - } else { - ret = hasStrings ? this._getString(n) : this._getBuffer(n); - } - return ret; - } - }, { - key: "first", - value: function first() { - return this.head.data; - } - }, { - key: "_getString", - value: function _getString(n) { - var p = this.head; - var c = 1; - var ret = p.data; - n -= ret.length; - while (p = p.next) { - var str = p.data; - var nb = n > str.length ? str.length : n; - if (nb === str.length) - ret += str; - else - ret += str.slice(0, n); - n -= nb; - if (n === 0) { - if (nb === str.length) { - ++c; - if (p.next) - this.head = p.next; - else - this.head = this.tail = null; - } else { - this.head = p; - p.data = str.slice(nb); - } - break; - } - ++c; - } - this.length -= c; - return ret; - } - }, { - key: "_getBuffer", - value: function _getBuffer(n) { - var ret = Buffer2.allocUnsafe(n); - var p = this.head; - var c = 1; - p.data.copy(ret); - n -= p.data.length; - while (p = p.next) { - var buf = p.data; - var nb = n > buf.length ? buf.length : n; - buf.copy(ret, ret.length - n, 0, nb); - n -= nb; - if (n === 0) { - if (nb === buf.length) { - ++c; - if (p.next) - this.head = p.next; - else - this.head = this.tail = null; - } else { - this.head = p; - p.data = buf.slice(nb); - } - break; - } - ++c; - } - this.length -= c; - return ret; - } - }, { - key: custom, - value: function value(_, options) { - return inspect(this, _objectSpread({}, options, { - depth: 0, - customInspect: false - })); - } - }]); - return BufferList; - }(); - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/internal/streams/destroy.js - var require_destroy = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/internal/streams/destroy.js"(exports, module) { - "use strict"; - function destroy(err, cb) { - var _this = this; - var readableDestroyed = this._readableState && this._readableState.destroyed; - var writableDestroyed = this._writableState && this._writableState.destroyed; - if (readableDestroyed || writableDestroyed) { - if (cb) { - cb(err); - } else if (err) { - if (!this._writableState) { - process.nextTick(emitErrorNT, this, err); - } else if (!this._writableState.errorEmitted) { - this._writableState.errorEmitted = true; - process.nextTick(emitErrorNT, this, err); - } - } - return this; - } - if (this._readableState) { - this._readableState.destroyed = true; - } - if (this._writableState) { - this._writableState.destroyed = true; - } - this._destroy(err || null, function(err2) { - if (!cb && err2) { - if (!_this._writableState) { - process.nextTick(emitErrorAndCloseNT, _this, err2); - } else if (!_this._writableState.errorEmitted) { - _this._writableState.errorEmitted = true; - process.nextTick(emitErrorAndCloseNT, _this, err2); - } else { - process.nextTick(emitCloseNT, _this); - } - } else if (cb) { - process.nextTick(emitCloseNT, _this); - cb(err2); - } else { - process.nextTick(emitCloseNT, _this); - } - }); - return this; - } - function emitErrorAndCloseNT(self2, err) { - emitErrorNT(self2, err); - emitCloseNT(self2); - } - function emitCloseNT(self2) { - if (self2._writableState && !self2._writableState.emitClose) - return; - if (self2._readableState && !self2._readableState.emitClose) - return; - self2.emit("close"); - } - function undestroy() { - if (this._readableState) { - this._readableState.destroyed = false; - this._readableState.reading = false; - this._readableState.ended = false; - this._readableState.endEmitted = false; - } - if (this._writableState) { - this._writableState.destroyed = false; - this._writableState.ended = false; - this._writableState.ending = false; - this._writableState.finalCalled = false; - this._writableState.prefinished = false; - this._writableState.finished = false; - this._writableState.errorEmitted = false; - } - } - function emitErrorNT(self2, err) { - self2.emit("error", err); - } - function errorOrDestroy(stream, err) { - var rState = stream._readableState; - var wState = stream._writableState; - if (rState && rState.autoDestroy || wState && wState.autoDestroy) - stream.destroy(err); - else - stream.emit("error", err); - } - module.exports = { - destroy, - undestroy, - errorOrDestroy - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/errors.js - var require_errors = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/errors.js"(exports, module) { - "use strict"; - var codes = {}; - function createErrorType(code, message, Base) { - if (!Base) { - Base = Error; - } - function getMessage(arg1, arg2, arg3) { - if (typeof message === "string") { - return message; - } else { - return message(arg1, arg2, arg3); - } - } - class NodeError extends Base { - constructor(arg1, arg2, arg3) { - super(getMessage(arg1, arg2, arg3)); - } - } - NodeError.prototype.name = Base.name; - NodeError.prototype.code = code; - codes[code] = NodeError; - } - function oneOf(expected, thing) { - if (Array.isArray(expected)) { - const len = expected.length; - expected = expected.map((i) => String(i)); - if (len > 2) { - return `one of ${thing} ${expected.slice(0, len - 1).join(", ")}, or ` + expected[len - 1]; - } else if (len === 2) { - return `one of ${thing} ${expected[0]} or ${expected[1]}`; - } else { - return `of ${thing} ${expected[0]}`; - } - } else { - return `of ${thing} ${String(expected)}`; - } - } - function startsWith(str, search, pos) { - return str.substr(!pos || pos < 0 ? 0 : +pos, search.length) === search; - } - function endsWith(str, search, this_len) { - if (this_len === void 0 || this_len > str.length) { - this_len = str.length; - } - return str.substring(this_len - search.length, this_len) === search; - } - function includes(str, search, start) { - if (typeof start !== "number") { - start = 0; - } - if (start + search.length > str.length) { - return false; - } else { - return str.indexOf(search, start) !== -1; - } - } - createErrorType("ERR_INVALID_OPT_VALUE", function(name, value) { - return 'The value "' + value + '" is invalid for option "' + name + '"'; - }, TypeError); - createErrorType("ERR_INVALID_ARG_TYPE", function(name, expected, actual) { - let determiner; - if (typeof expected === "string" && startsWith(expected, "not ")) { - determiner = "must not be"; - expected = expected.replace(/^not /, ""); - } else { - determiner = "must be"; - } - let msg; - if (endsWith(name, " argument")) { - msg = `The ${name} ${determiner} ${oneOf(expected, "type")}`; - } else { - const type = includes(name, ".") ? "property" : "argument"; - msg = `The "${name}" ${type} ${determiner} ${oneOf(expected, "type")}`; - } - msg += `. Received type ${typeof actual}`; - return msg; - }, TypeError); - createErrorType("ERR_STREAM_PUSH_AFTER_EOF", "stream.push() after EOF"); - createErrorType("ERR_METHOD_NOT_IMPLEMENTED", function(name) { - return "The " + name + " method is not implemented"; - }); - createErrorType("ERR_STREAM_PREMATURE_CLOSE", "Premature close"); - createErrorType("ERR_STREAM_DESTROYED", function(name) { - return "Cannot call " + name + " after a stream was destroyed"; - }); - createErrorType("ERR_MULTIPLE_CALLBACK", "Callback called multiple times"); - createErrorType("ERR_STREAM_CANNOT_PIPE", "Cannot pipe, not readable"); - createErrorType("ERR_STREAM_WRITE_AFTER_END", "write after end"); - createErrorType("ERR_STREAM_NULL_VALUES", "May not write null values to stream", TypeError); - createErrorType("ERR_UNKNOWN_ENCODING", function(arg) { - return "Unknown encoding: " + arg; - }, TypeError); - createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT", "stream.unshift() after end event"); - module.exports.codes = codes; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/internal/streams/state.js - var require_state = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/internal/streams/state.js"(exports, module) { - "use strict"; - var ERR_INVALID_OPT_VALUE = require_errors().codes.ERR_INVALID_OPT_VALUE; - function highWaterMarkFrom(options, isDuplex, duplexKey) { - return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null; - } - function getHighWaterMark(state, options, duplexKey, isDuplex) { - var hwm = highWaterMarkFrom(options, isDuplex, duplexKey); - if (hwm != null) { - if (!(isFinite(hwm) && Math.floor(hwm) === hwm) || hwm < 0) { - var name = isDuplex ? duplexKey : "highWaterMark"; - throw new ERR_INVALID_OPT_VALUE(name, hwm); - } - return Math.floor(hwm); - } - return state.objectMode ? 16 : 16 * 1024; - } - module.exports = { - getHighWaterMark - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/inherits-npm-2.0.4-c66b3957a0-4a48a73384.zip/node_modules/inherits/inherits_browser.js - var require_inherits_browser = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/inherits-npm-2.0.4-c66b3957a0-4a48a73384.zip/node_modules/inherits/inherits_browser.js"(exports, module) { - if (typeof Object.create === "function") { - module.exports = function inherits(ctor, superCtor) { - if (superCtor) { - ctor.super_ = superCtor; - ctor.prototype = Object.create(superCtor.prototype, { - constructor: { - value: ctor, - enumerable: false, - writable: true, - configurable: true - } - }); - } - }; - } else { - module.exports = function inherits(ctor, superCtor) { - if (superCtor) { - ctor.super_ = superCtor; - var TempCtor = function() { - }; - TempCtor.prototype = superCtor.prototype; - ctor.prototype = new TempCtor(); - ctor.prototype.constructor = ctor; - } - }; - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/inherits-npm-2.0.4-c66b3957a0-4a48a73384.zip/node_modules/inherits/inherits.js - var require_inherits = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/inherits-npm-2.0.4-c66b3957a0-4a48a73384.zip/node_modules/inherits/inherits.js"(exports, module) { - try { - util = __require("util"); - if (typeof util.inherits !== "function") - throw ""; - module.exports = util.inherits; - } catch (e) { - module.exports = require_inherits_browser(); - } - var util; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/util-deprecate-npm-1.0.2-e3fe1a219c-474acf1146.zip/node_modules/util-deprecate/node.js - var require_node = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/util-deprecate-npm-1.0.2-e3fe1a219c-474acf1146.zip/node_modules/util-deprecate/node.js"(exports, module) { - module.exports = __require("util").deprecate; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/_stream_writable.js - var require_stream_writable = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/_stream_writable.js"(exports, module) { - "use strict"; - module.exports = Writable; - function CorkedRequest(state) { - var _this = this; - this.next = null; - this.entry = null; - this.finish = function() { - onCorkedFinish(_this, state); - }; - } - var Duplex; - Writable.WritableState = WritableState; - var internalUtil = { - deprecate: require_node() - }; - var Stream = require_stream(); - var Buffer2 = __require("buffer").Buffer; - var OurUint8Array = global.Uint8Array || function() { - }; - function _uint8ArrayToBuffer(chunk) { - return Buffer2.from(chunk); - } - function _isUint8Array(obj) { - return Buffer2.isBuffer(obj) || obj instanceof OurUint8Array; - } - var destroyImpl = require_destroy(); - var _require = require_state(); - var getHighWaterMark = _require.getHighWaterMark; - var _require$codes = require_errors().codes; - var ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE; - var ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED; - var ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK; - var ERR_STREAM_CANNOT_PIPE = _require$codes.ERR_STREAM_CANNOT_PIPE; - var ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED; - var ERR_STREAM_NULL_VALUES = _require$codes.ERR_STREAM_NULL_VALUES; - var ERR_STREAM_WRITE_AFTER_END = _require$codes.ERR_STREAM_WRITE_AFTER_END; - var ERR_UNKNOWN_ENCODING = _require$codes.ERR_UNKNOWN_ENCODING; - var errorOrDestroy = destroyImpl.errorOrDestroy; - require_inherits()(Writable, Stream); - function nop() { - } - function WritableState(options, stream, isDuplex) { - Duplex = Duplex || require_stream_duplex(); - options = options || {}; - if (typeof isDuplex !== "boolean") - isDuplex = stream instanceof Duplex; - this.objectMode = !!options.objectMode; - if (isDuplex) - this.objectMode = this.objectMode || !!options.writableObjectMode; - this.highWaterMark = getHighWaterMark(this, options, "writableHighWaterMark", isDuplex); - this.finalCalled = false; - this.needDrain = false; - this.ending = false; - this.ended = false; - this.finished = false; - this.destroyed = false; - var noDecode = options.decodeStrings === false; - this.decodeStrings = !noDecode; - this.defaultEncoding = options.defaultEncoding || "utf8"; - this.length = 0; - this.writing = false; - this.corked = 0; - this.sync = true; - this.bufferProcessing = false; - this.onwrite = function(er) { - onwrite(stream, er); - }; - this.writecb = null; - this.writelen = 0; - this.bufferedRequest = null; - this.lastBufferedRequest = null; - this.pendingcb = 0; - this.prefinished = false; - this.errorEmitted = false; - this.emitClose = options.emitClose !== false; - this.autoDestroy = !!options.autoDestroy; - this.bufferedRequestCount = 0; - this.corkedRequestsFree = new CorkedRequest(this); - } - WritableState.prototype.getBuffer = function getBuffer() { - var current = this.bufferedRequest; - var out = []; - while (current) { - out.push(current); - current = current.next; - } - return out; - }; - (function() { - try { - Object.defineProperty(WritableState.prototype, "buffer", { - get: internalUtil.deprecate(function writableStateBufferGetter() { - return this.getBuffer(); - }, "_writableState.buffer is deprecated. Use _writableState.getBuffer instead.", "DEP0003") - }); - } catch (_) { - } - })(); - var realHasInstance; - if (typeof Symbol === "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === "function") { - realHasInstance = Function.prototype[Symbol.hasInstance]; - Object.defineProperty(Writable, Symbol.hasInstance, { - value: function value(object) { - if (realHasInstance.call(this, object)) - return true; - if (this !== Writable) - return false; - return object && object._writableState instanceof WritableState; - } - }); - } else { - realHasInstance = function realHasInstance2(object) { - return object instanceof this; - }; - } - function Writable(options) { - Duplex = Duplex || require_stream_duplex(); - var isDuplex = this instanceof Duplex; - if (!isDuplex && !realHasInstance.call(Writable, this)) - return new Writable(options); - this._writableState = new WritableState(options, this, isDuplex); - this.writable = true; - if (options) { - if (typeof options.write === "function") - this._write = options.write; - if (typeof options.writev === "function") - this._writev = options.writev; - if (typeof options.destroy === "function") - this._destroy = options.destroy; - if (typeof options.final === "function") - this._final = options.final; - } - Stream.call(this); - } - Writable.prototype.pipe = function() { - errorOrDestroy(this, new ERR_STREAM_CANNOT_PIPE()); - }; - function writeAfterEnd(stream, cb) { - var er = new ERR_STREAM_WRITE_AFTER_END(); - errorOrDestroy(stream, er); - process.nextTick(cb, er); - } - function validChunk(stream, state, chunk, cb) { - var er; - if (chunk === null) { - er = new ERR_STREAM_NULL_VALUES(); - } else if (typeof chunk !== "string" && !state.objectMode) { - er = new ERR_INVALID_ARG_TYPE("chunk", ["string", "Buffer"], chunk); - } - if (er) { - errorOrDestroy(stream, er); - process.nextTick(cb, er); - return false; - } - return true; - } - Writable.prototype.write = function(chunk, encoding, cb) { - var state = this._writableState; - var ret = false; - var isBuf = !state.objectMode && _isUint8Array(chunk); - if (isBuf && !Buffer2.isBuffer(chunk)) { - chunk = _uint8ArrayToBuffer(chunk); - } - if (typeof encoding === "function") { - cb = encoding; - encoding = null; - } - if (isBuf) - encoding = "buffer"; - else if (!encoding) - encoding = state.defaultEncoding; - if (typeof cb !== "function") - cb = nop; - if (state.ending) - writeAfterEnd(this, cb); - else if (isBuf || validChunk(this, state, chunk, cb)) { - state.pendingcb++; - ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb); - } - return ret; - }; - Writable.prototype.cork = function() { - this._writableState.corked++; - }; - Writable.prototype.uncork = function() { - var state = this._writableState; - if (state.corked) { - state.corked--; - if (!state.writing && !state.corked && !state.bufferProcessing && state.bufferedRequest) - clearBuffer(this, state); - } - }; - Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) { - if (typeof encoding === "string") - encoding = encoding.toLowerCase(); - if (!(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((encoding + "").toLowerCase()) > -1)) - throw new ERR_UNKNOWN_ENCODING(encoding); - this._writableState.defaultEncoding = encoding; - return this; - }; - Object.defineProperty(Writable.prototype, "writableBuffer", { - enumerable: false, - get: function get() { - return this._writableState && this._writableState.getBuffer(); - } - }); - function decodeChunk(state, chunk, encoding) { - if (!state.objectMode && state.decodeStrings !== false && typeof chunk === "string") { - chunk = Buffer2.from(chunk, encoding); - } - return chunk; - } - Object.defineProperty(Writable.prototype, "writableHighWaterMark", { - enumerable: false, - get: function get() { - return this._writableState.highWaterMark; - } - }); - function writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) { - if (!isBuf) { - var newChunk = decodeChunk(state, chunk, encoding); - if (chunk !== newChunk) { - isBuf = true; - encoding = "buffer"; - chunk = newChunk; - } - } - var len = state.objectMode ? 1 : chunk.length; - state.length += len; - var ret = state.length < state.highWaterMark; - if (!ret) - state.needDrain = true; - if (state.writing || state.corked) { - var last = state.lastBufferedRequest; - state.lastBufferedRequest = { - chunk, - encoding, - isBuf, - callback: cb, - next: null - }; - if (last) { - last.next = state.lastBufferedRequest; - } else { - state.bufferedRequest = state.lastBufferedRequest; - } - state.bufferedRequestCount += 1; - } else { - doWrite(stream, state, false, len, chunk, encoding, cb); - } - return ret; - } - function doWrite(stream, state, writev, len, chunk, encoding, cb) { - state.writelen = len; - state.writecb = cb; - state.writing = true; - state.sync = true; - if (state.destroyed) - state.onwrite(new ERR_STREAM_DESTROYED("write")); - else if (writev) - stream._writev(chunk, state.onwrite); - else - stream._write(chunk, encoding, state.onwrite); - state.sync = false; - } - function onwriteError(stream, state, sync, er, cb) { - --state.pendingcb; - if (sync) { - process.nextTick(cb, er); - process.nextTick(finishMaybe, stream, state); - stream._writableState.errorEmitted = true; - errorOrDestroy(stream, er); - } else { - cb(er); - stream._writableState.errorEmitted = true; - errorOrDestroy(stream, er); - finishMaybe(stream, state); - } - } - function onwriteStateUpdate(state) { - state.writing = false; - state.writecb = null; - state.length -= state.writelen; - state.writelen = 0; - } - function onwrite(stream, er) { - var state = stream._writableState; - var sync = state.sync; - var cb = state.writecb; - if (typeof cb !== "function") - throw new ERR_MULTIPLE_CALLBACK(); - onwriteStateUpdate(state); - if (er) - onwriteError(stream, state, sync, er, cb); - else { - var finished = needFinish(state) || stream.destroyed; - if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) { - clearBuffer(stream, state); - } - if (sync) { - process.nextTick(afterWrite, stream, state, finished, cb); - } else { - afterWrite(stream, state, finished, cb); - } - } - } - function afterWrite(stream, state, finished, cb) { - if (!finished) - onwriteDrain(stream, state); - state.pendingcb--; - cb(); - finishMaybe(stream, state); - } - function onwriteDrain(stream, state) { - if (state.length === 0 && state.needDrain) { - state.needDrain = false; - stream.emit("drain"); - } - } - function clearBuffer(stream, state) { - state.bufferProcessing = true; - var entry = state.bufferedRequest; - if (stream._writev && entry && entry.next) { - var l = state.bufferedRequestCount; - var buffer = new Array(l); - var holder = state.corkedRequestsFree; - holder.entry = entry; - var count = 0; - var allBuffers = true; - while (entry) { - buffer[count] = entry; - if (!entry.isBuf) - allBuffers = false; - entry = entry.next; - count += 1; - } - buffer.allBuffers = allBuffers; - doWrite(stream, state, true, state.length, buffer, "", holder.finish); - state.pendingcb++; - state.lastBufferedRequest = null; - if (holder.next) { - state.corkedRequestsFree = holder.next; - holder.next = null; - } else { - state.corkedRequestsFree = new CorkedRequest(state); - } - state.bufferedRequestCount = 0; - } else { - while (entry) { - var chunk = entry.chunk; - var encoding = entry.encoding; - var cb = entry.callback; - var len = state.objectMode ? 1 : chunk.length; - doWrite(stream, state, false, len, chunk, encoding, cb); - entry = entry.next; - state.bufferedRequestCount--; - if (state.writing) { - break; - } - } - if (entry === null) - state.lastBufferedRequest = null; - } - state.bufferedRequest = entry; - state.bufferProcessing = false; - } - Writable.prototype._write = function(chunk, encoding, cb) { - cb(new ERR_METHOD_NOT_IMPLEMENTED("_write()")); - }; - Writable.prototype._writev = null; - Writable.prototype.end = function(chunk, encoding, cb) { - var state = this._writableState; - if (typeof chunk === "function") { - cb = chunk; - chunk = null; - encoding = null; - } else if (typeof encoding === "function") { - cb = encoding; - encoding = null; - } - if (chunk !== null && chunk !== void 0) - this.write(chunk, encoding); - if (state.corked) { - state.corked = 1; - this.uncork(); - } - if (!state.ending) - endWritable(this, state, cb); - return this; - }; - Object.defineProperty(Writable.prototype, "writableLength", { - enumerable: false, - get: function get() { - return this._writableState.length; - } - }); - function needFinish(state) { - return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing; - } - function callFinal(stream, state) { - stream._final(function(err) { - state.pendingcb--; - if (err) { - errorOrDestroy(stream, err); - } - state.prefinished = true; - stream.emit("prefinish"); - finishMaybe(stream, state); - }); - } - function prefinish(stream, state) { - if (!state.prefinished && !state.finalCalled) { - if (typeof stream._final === "function" && !state.destroyed) { - state.pendingcb++; - state.finalCalled = true; - process.nextTick(callFinal, stream, state); - } else { - state.prefinished = true; - stream.emit("prefinish"); - } - } - } - function finishMaybe(stream, state) { - var need = needFinish(state); - if (need) { - prefinish(stream, state); - if (state.pendingcb === 0) { - state.finished = true; - stream.emit("finish"); - if (state.autoDestroy) { - var rState = stream._readableState; - if (!rState || rState.autoDestroy && rState.endEmitted) { - stream.destroy(); - } - } - } - } - return need; - } - function endWritable(stream, state, cb) { - state.ending = true; - finishMaybe(stream, state); - if (cb) { - if (state.finished) - process.nextTick(cb); - else - stream.once("finish", cb); - } - state.ended = true; - stream.writable = false; - } - function onCorkedFinish(corkReq, state, err) { - var entry = corkReq.entry; - corkReq.entry = null; - while (entry) { - var cb = entry.callback; - state.pendingcb--; - cb(err); - entry = entry.next; - } - state.corkedRequestsFree.next = corkReq; - } - Object.defineProperty(Writable.prototype, "destroyed", { - enumerable: false, - get: function get() { - if (this._writableState === void 0) { - return false; - } - return this._writableState.destroyed; - }, - set: function set(value) { - if (!this._writableState) { - return; - } - this._writableState.destroyed = value; - } - }); - Writable.prototype.destroy = destroyImpl.destroy; - Writable.prototype._undestroy = destroyImpl.undestroy; - Writable.prototype._destroy = function(err, cb) { - cb(err); - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/_stream_duplex.js - var require_stream_duplex = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/_stream_duplex.js"(exports, module) { - "use strict"; - var objectKeys = Object.keys || function(obj) { - var keys2 = []; - for (var key in obj) { - keys2.push(key); - } - return keys2; - }; - module.exports = Duplex; - var Readable = require_stream_readable(); - var Writable = require_stream_writable(); - require_inherits()(Duplex, Readable); - { - keys = objectKeys(Writable.prototype); - for (v = 0; v < keys.length; v++) { - method = keys[v]; - if (!Duplex.prototype[method]) - Duplex.prototype[method] = Writable.prototype[method]; - } - } - var keys; - var method; - var v; - function Duplex(options) { - if (!(this instanceof Duplex)) - return new Duplex(options); - Readable.call(this, options); - Writable.call(this, options); - this.allowHalfOpen = true; - if (options) { - if (options.readable === false) - this.readable = false; - if (options.writable === false) - this.writable = false; - if (options.allowHalfOpen === false) { - this.allowHalfOpen = false; - this.once("end", onend); - } - } - } - Object.defineProperty(Duplex.prototype, "writableHighWaterMark", { - enumerable: false, - get: function get() { - return this._writableState.highWaterMark; - } - }); - Object.defineProperty(Duplex.prototype, "writableBuffer", { - enumerable: false, - get: function get() { - return this._writableState && this._writableState.getBuffer(); - } - }); - Object.defineProperty(Duplex.prototype, "writableLength", { - enumerable: false, - get: function get() { - return this._writableState.length; - } - }); - function onend() { - if (this._writableState.ended) - return; - process.nextTick(onEndNT, this); - } - function onEndNT(self2) { - self2.end(); - } - Object.defineProperty(Duplex.prototype, "destroyed", { - enumerable: false, - get: function get() { - if (this._readableState === void 0 || this._writableState === void 0) { - return false; - } - return this._readableState.destroyed && this._writableState.destroyed; - }, - set: function set(value) { - if (this._readableState === void 0 || this._writableState === void 0) { - return; - } - this._readableState.destroyed = value; - this._writableState.destroyed = value; - } - }); - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/safe-buffer-npm-5.2.1-3481c8aa9b-b99c4b41fd.zip/node_modules/safe-buffer/index.js - var require_safe_buffer = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/safe-buffer-npm-5.2.1-3481c8aa9b-b99c4b41fd.zip/node_modules/safe-buffer/index.js"(exports, module) { - var buffer = __require("buffer"); - var Buffer2 = buffer.Buffer; - function copyProps(src, dst) { - for (var key in src) { - dst[key] = src[key]; - } - } - if (Buffer2.from && Buffer2.alloc && Buffer2.allocUnsafe && Buffer2.allocUnsafeSlow) { - module.exports = buffer; - } else { - copyProps(buffer, exports); - exports.Buffer = SafeBuffer; - } - function SafeBuffer(arg, encodingOrOffset, length) { - return Buffer2(arg, encodingOrOffset, length); - } - SafeBuffer.prototype = Object.create(Buffer2.prototype); - copyProps(Buffer2, SafeBuffer); - SafeBuffer.from = function(arg, encodingOrOffset, length) { - if (typeof arg === "number") { - throw new TypeError("Argument must not be a number"); - } - return Buffer2(arg, encodingOrOffset, length); - }; - SafeBuffer.alloc = function(size, fill, encoding) { - if (typeof size !== "number") { - throw new TypeError("Argument must be a number"); - } - var buf = Buffer2(size); - if (fill !== void 0) { - if (typeof encoding === "string") { - buf.fill(fill, encoding); - } else { - buf.fill(fill); - } - } else { - buf.fill(0); - } - return buf; - }; - SafeBuffer.allocUnsafe = function(size) { - if (typeof size !== "number") { - throw new TypeError("Argument must be a number"); - } - return Buffer2(size); - }; - SafeBuffer.allocUnsafeSlow = function(size) { - if (typeof size !== "number") { - throw new TypeError("Argument must be a number"); - } - return buffer.SlowBuffer(size); - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/string_decoder-npm-1.3.0-2422117fd0-8417646695.zip/node_modules/string_decoder/lib/string_decoder.js - var require_string_decoder = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/string_decoder-npm-1.3.0-2422117fd0-8417646695.zip/node_modules/string_decoder/lib/string_decoder.js"(exports) { - "use strict"; - var Buffer2 = require_safe_buffer().Buffer; - var isEncoding = Buffer2.isEncoding || function(encoding) { - encoding = "" + encoding; - switch (encoding && encoding.toLowerCase()) { - case "hex": - case "utf8": - case "utf-8": - case "ascii": - case "binary": - case "base64": - case "ucs2": - case "ucs-2": - case "utf16le": - case "utf-16le": - case "raw": - return true; - default: - return false; - } - }; - function _normalizeEncoding(enc) { - if (!enc) - return "utf8"; - var retried; - while (true) { - switch (enc) { - case "utf8": - case "utf-8": - return "utf8"; - case "ucs2": - case "ucs-2": - case "utf16le": - case "utf-16le": - return "utf16le"; - case "latin1": - case "binary": - return "latin1"; - case "base64": - case "ascii": - case "hex": - return enc; - default: - if (retried) - return; - enc = ("" + enc).toLowerCase(); - retried = true; - } - } - } - function normalizeEncoding(enc) { - var nenc = _normalizeEncoding(enc); - if (typeof nenc !== "string" && (Buffer2.isEncoding === isEncoding || !isEncoding(enc))) - throw new Error("Unknown encoding: " + enc); - return nenc || enc; - } - exports.StringDecoder = StringDecoder; - function StringDecoder(encoding) { - this.encoding = normalizeEncoding(encoding); - var nb; - switch (this.encoding) { - case "utf16le": - this.text = utf16Text; - this.end = utf16End; - nb = 4; - break; - case "utf8": - this.fillLast = utf8FillLast; - nb = 4; - break; - case "base64": - this.text = base64Text; - this.end = base64End; - nb = 3; - break; - default: - this.write = simpleWrite; - this.end = simpleEnd; - return; - } - this.lastNeed = 0; - this.lastTotal = 0; - this.lastChar = Buffer2.allocUnsafe(nb); - } - StringDecoder.prototype.write = function(buf) { - if (buf.length === 0) - return ""; - var r; - var i; - if (this.lastNeed) { - r = this.fillLast(buf); - if (r === void 0) - return ""; - i = this.lastNeed; - this.lastNeed = 0; - } else { - i = 0; - } - if (i < buf.length) - return r ? r + this.text(buf, i) : this.text(buf, i); - return r || ""; - }; - StringDecoder.prototype.end = utf8End; - StringDecoder.prototype.text = utf8Text; - StringDecoder.prototype.fillLast = function(buf) { - if (this.lastNeed <= buf.length) { - buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed); - return this.lastChar.toString(this.encoding, 0, this.lastTotal); - } - buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length); - this.lastNeed -= buf.length; - }; - function utf8CheckByte(byte) { - if (byte <= 127) - return 0; - else if (byte >> 5 === 6) - return 2; - else if (byte >> 4 === 14) - return 3; - else if (byte >> 3 === 30) - return 4; - return byte >> 6 === 2 ? -1 : -2; - } - function utf8CheckIncomplete(self2, buf, i) { - var j = buf.length - 1; - if (j < i) - return 0; - var nb = utf8CheckByte(buf[j]); - if (nb >= 0) { - if (nb > 0) - self2.lastNeed = nb - 1; - return nb; - } - if (--j < i || nb === -2) - return 0; - nb = utf8CheckByte(buf[j]); - if (nb >= 0) { - if (nb > 0) - self2.lastNeed = nb - 2; - return nb; - } - if (--j < i || nb === -2) - return 0; - nb = utf8CheckByte(buf[j]); - if (nb >= 0) { - if (nb > 0) { - if (nb === 2) - nb = 0; - else - self2.lastNeed = nb - 3; - } - return nb; - } - return 0; - } - function utf8CheckExtraBytes(self2, buf, p) { - if ((buf[0] & 192) !== 128) { - self2.lastNeed = 0; - return "\uFFFD"; - } - if (self2.lastNeed > 1 && buf.length > 1) { - if ((buf[1] & 192) !== 128) { - self2.lastNeed = 1; - return "\uFFFD"; - } - if (self2.lastNeed > 2 && buf.length > 2) { - if ((buf[2] & 192) !== 128) { - self2.lastNeed = 2; - return "\uFFFD"; - } - } - } - } - function utf8FillLast(buf) { - var p = this.lastTotal - this.lastNeed; - var r = utf8CheckExtraBytes(this, buf, p); - if (r !== void 0) - return r; - if (this.lastNeed <= buf.length) { - buf.copy(this.lastChar, p, 0, this.lastNeed); - return this.lastChar.toString(this.encoding, 0, this.lastTotal); - } - buf.copy(this.lastChar, p, 0, buf.length); - this.lastNeed -= buf.length; - } - function utf8Text(buf, i) { - var total = utf8CheckIncomplete(this, buf, i); - if (!this.lastNeed) - return buf.toString("utf8", i); - this.lastTotal = total; - var end = buf.length - (total - this.lastNeed); - buf.copy(this.lastChar, 0, end); - return buf.toString("utf8", i, end); - } - function utf8End(buf) { - var r = buf && buf.length ? this.write(buf) : ""; - if (this.lastNeed) - return r + "\uFFFD"; - return r; - } - function utf16Text(buf, i) { - if ((buf.length - i) % 2 === 0) { - var r = buf.toString("utf16le", i); - if (r) { - var c = r.charCodeAt(r.length - 1); - if (c >= 55296 && c <= 56319) { - this.lastNeed = 2; - this.lastTotal = 4; - this.lastChar[0] = buf[buf.length - 2]; - this.lastChar[1] = buf[buf.length - 1]; - return r.slice(0, -1); - } - } - return r; - } - this.lastNeed = 1; - this.lastTotal = 2; - this.lastChar[0] = buf[buf.length - 1]; - return buf.toString("utf16le", i, buf.length - 1); - } - function utf16End(buf) { - var r = buf && buf.length ? this.write(buf) : ""; - if (this.lastNeed) { - var end = this.lastTotal - this.lastNeed; - return r + this.lastChar.toString("utf16le", 0, end); - } - return r; - } - function base64Text(buf, i) { - var n = (buf.length - i) % 3; - if (n === 0) - return buf.toString("base64", i); - this.lastNeed = 3 - n; - this.lastTotal = 3; - if (n === 1) { - this.lastChar[0] = buf[buf.length - 1]; - } else { - this.lastChar[0] = buf[buf.length - 2]; - this.lastChar[1] = buf[buf.length - 1]; - } - return buf.toString("base64", i, buf.length - n); - } - function base64End(buf) { - var r = buf && buf.length ? this.write(buf) : ""; - if (this.lastNeed) - return r + this.lastChar.toString("base64", 0, 3 - this.lastNeed); - return r; - } - function simpleWrite(buf) { - return buf.toString(this.encoding); - } - function simpleEnd(buf) { - return buf && buf.length ? this.write(buf) : ""; - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/internal/streams/end-of-stream.js - var require_end_of_stream = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(exports, module) { - "use strict"; - var ERR_STREAM_PREMATURE_CLOSE = require_errors().codes.ERR_STREAM_PREMATURE_CLOSE; - function once(callback) { - var called = false; - return function() { - if (called) - return; - called = true; - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - callback.apply(this, args); - }; - } - function noop() { - } - function isRequest(stream) { - return stream.setHeader && typeof stream.abort === "function"; - } - function eos(stream, opts, callback) { - if (typeof opts === "function") - return eos(stream, null, opts); - if (!opts) - opts = {}; - callback = once(callback || noop); - var readable = opts.readable || opts.readable !== false && stream.readable; - var writable = opts.writable || opts.writable !== false && stream.writable; - var onlegacyfinish = function onlegacyfinish2() { - if (!stream.writable) - onfinish(); - }; - var writableEnded = stream._writableState && stream._writableState.finished; - var onfinish = function onfinish2() { - writable = false; - writableEnded = true; - if (!readable) - callback.call(stream); - }; - var readableEnded = stream._readableState && stream._readableState.endEmitted; - var onend = function onend2() { - readable = false; - readableEnded = true; - if (!writable) - callback.call(stream); - }; - var onerror = function onerror2(err) { - callback.call(stream, err); - }; - var onclose = function onclose2() { - var err; - if (readable && !readableEnded) { - if (!stream._readableState || !stream._readableState.ended) - err = new ERR_STREAM_PREMATURE_CLOSE(); - return callback.call(stream, err); - } - if (writable && !writableEnded) { - if (!stream._writableState || !stream._writableState.ended) - err = new ERR_STREAM_PREMATURE_CLOSE(); - return callback.call(stream, err); - } - }; - var onrequest = function onrequest2() { - stream.req.on("finish", onfinish); - }; - if (isRequest(stream)) { - stream.on("complete", onfinish); - stream.on("abort", onclose); - if (stream.req) - onrequest(); - else - stream.on("request", onrequest); - } else if (writable && !stream._writableState) { - stream.on("end", onlegacyfinish); - stream.on("close", onlegacyfinish); - } - stream.on("end", onend); - stream.on("finish", onfinish); - if (opts.error !== false) - stream.on("error", onerror); - stream.on("close", onclose); - return function() { - stream.removeListener("complete", onfinish); - stream.removeListener("abort", onclose); - stream.removeListener("request", onrequest); - if (stream.req) - stream.req.removeListener("finish", onfinish); - stream.removeListener("end", onlegacyfinish); - stream.removeListener("close", onlegacyfinish); - stream.removeListener("finish", onfinish); - stream.removeListener("end", onend); - stream.removeListener("error", onerror); - stream.removeListener("close", onclose); - }; - } - module.exports = eos; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/internal/streams/async_iterator.js - var require_async_iterator = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/internal/streams/async_iterator.js"(exports, module) { - "use strict"; - var _Object$setPrototypeO; - function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, {value, enumerable: true, configurable: true, writable: true}); - } else { - obj[key] = value; - } - return obj; - } - var finished = require_end_of_stream(); - var kLastResolve = Symbol("lastResolve"); - var kLastReject = Symbol("lastReject"); - var kError = Symbol("error"); - var kEnded = Symbol("ended"); - var kLastPromise = Symbol("lastPromise"); - var kHandlePromise = Symbol("handlePromise"); - var kStream = Symbol("stream"); - function createIterResult(value, done) { - return { - value, - done - }; - } - function readAndResolve(iter) { - var resolve = iter[kLastResolve]; - if (resolve !== null) { - var data = iter[kStream].read(); - if (data !== null) { - iter[kLastPromise] = null; - iter[kLastResolve] = null; - iter[kLastReject] = null; - resolve(createIterResult(data, false)); - } - } - } - function onReadable(iter) { - process.nextTick(readAndResolve, iter); - } - function wrapForNext(lastPromise, iter) { - return function(resolve, reject) { - lastPromise.then(function() { - if (iter[kEnded]) { - resolve(createIterResult(void 0, true)); - return; - } - iter[kHandlePromise](resolve, reject); - }, reject); - }; - } - var AsyncIteratorPrototype = Object.getPrototypeOf(function() { - }); - var ReadableStreamAsyncIteratorPrototype = Object.setPrototypeOf((_Object$setPrototypeO = { - get stream() { - return this[kStream]; - }, - next: function next() { - var _this = this; - var error = this[kError]; - if (error !== null) { - return Promise.reject(error); - } - if (this[kEnded]) { - return Promise.resolve(createIterResult(void 0, true)); - } - if (this[kStream].destroyed) { - return new Promise(function(resolve, reject) { - process.nextTick(function() { - if (_this[kError]) { - reject(_this[kError]); - } else { - resolve(createIterResult(void 0, true)); - } - }); - }); - } - var lastPromise = this[kLastPromise]; - var promise; - if (lastPromise) { - promise = new Promise(wrapForNext(lastPromise, this)); - } else { - var data = this[kStream].read(); - if (data !== null) { - return Promise.resolve(createIterResult(data, false)); - } - promise = new Promise(this[kHandlePromise]); - } - this[kLastPromise] = promise; - return promise; - } - }, _defineProperty(_Object$setPrototypeO, Symbol.asyncIterator, function() { - return this; - }), _defineProperty(_Object$setPrototypeO, "return", function _return() { - var _this2 = this; - return new Promise(function(resolve, reject) { - _this2[kStream].destroy(null, function(err) { - if (err) { - reject(err); - return; - } - resolve(createIterResult(void 0, true)); - }); - }); - }), _Object$setPrototypeO), AsyncIteratorPrototype); - var createReadableStreamAsyncIterator = function createReadableStreamAsyncIterator2(stream) { - var _Object$create; - var iterator = Object.create(ReadableStreamAsyncIteratorPrototype, (_Object$create = {}, _defineProperty(_Object$create, kStream, { - value: stream, - writable: true - }), _defineProperty(_Object$create, kLastResolve, { - value: null, - writable: true - }), _defineProperty(_Object$create, kLastReject, { - value: null, - writable: true - }), _defineProperty(_Object$create, kError, { - value: null, - writable: true - }), _defineProperty(_Object$create, kEnded, { - value: stream._readableState.endEmitted, - writable: true - }), _defineProperty(_Object$create, kHandlePromise, { - value: function value(resolve, reject) { - var data = iterator[kStream].read(); - if (data) { - iterator[kLastPromise] = null; - iterator[kLastResolve] = null; - iterator[kLastReject] = null; - resolve(createIterResult(data, false)); - } else { - iterator[kLastResolve] = resolve; - iterator[kLastReject] = reject; - } - }, - writable: true - }), _Object$create)); - iterator[kLastPromise] = null; - finished(stream, function(err) { - if (err && err.code !== "ERR_STREAM_PREMATURE_CLOSE") { - var reject = iterator[kLastReject]; - if (reject !== null) { - iterator[kLastPromise] = null; - iterator[kLastResolve] = null; - iterator[kLastReject] = null; - reject(err); - } - iterator[kError] = err; - return; - } - var resolve = iterator[kLastResolve]; - if (resolve !== null) { - iterator[kLastPromise] = null; - iterator[kLastResolve] = null; - iterator[kLastReject] = null; - resolve(createIterResult(void 0, true)); - } - iterator[kEnded] = true; - }); - stream.on("readable", onReadable.bind(null, iterator)); - return iterator; - }; - module.exports = createReadableStreamAsyncIterator; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/internal/streams/from.js - var require_from = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/internal/streams/from.js"(exports, module) { - "use strict"; - function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { - try { - var info = gen[key](arg); - var value = info.value; - } catch (error) { - reject(error); - return; - } - if (info.done) { - resolve(value); - } else { - Promise.resolve(value).then(_next, _throw); - } - } - function _asyncToGenerator(fn) { - return function() { - var self2 = this, args = arguments; - return new Promise(function(resolve, reject) { - var gen = fn.apply(self2, args); - function _next(value) { - asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); - } - function _throw(err) { - asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); - } - _next(void 0); - }); - }; - } - function ownKeys(object, enumerableOnly) { - var keys = Object.keys(object); - if (Object.getOwnPropertySymbols) { - var symbols = Object.getOwnPropertySymbols(object); - if (enumerableOnly) - symbols = symbols.filter(function(sym) { - return Object.getOwnPropertyDescriptor(object, sym).enumerable; - }); - keys.push.apply(keys, symbols); - } - return keys; - } - function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i] != null ? arguments[i] : {}; - if (i % 2) { - ownKeys(Object(source), true).forEach(function(key) { - _defineProperty(target, key, source[key]); - }); - } else if (Object.getOwnPropertyDescriptors) { - Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); - } else { - ownKeys(Object(source)).forEach(function(key) { - Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); - }); - } - } - return target; - } - function _defineProperty(obj, key, value) { - if (key in obj) { - Object.defineProperty(obj, key, {value, enumerable: true, configurable: true, writable: true}); - } else { - obj[key] = value; - } - return obj; - } - var ERR_INVALID_ARG_TYPE = require_errors().codes.ERR_INVALID_ARG_TYPE; - function from(Readable, iterable, opts) { - var iterator; - if (iterable && typeof iterable.next === "function") { - iterator = iterable; - } else if (iterable && iterable[Symbol.asyncIterator]) - iterator = iterable[Symbol.asyncIterator](); - else if (iterable && iterable[Symbol.iterator]) - iterator = iterable[Symbol.iterator](); - else - throw new ERR_INVALID_ARG_TYPE("iterable", ["Iterable"], iterable); - var readable = new Readable(_objectSpread({ - objectMode: true - }, opts)); - var reading = false; - readable._read = function() { - if (!reading) { - reading = true; - next(); - } - }; - function next() { - return _next2.apply(this, arguments); - } - function _next2() { - _next2 = _asyncToGenerator(function* () { - try { - var _ref = yield iterator.next(), value = _ref.value, done = _ref.done; - if (done) { - readable.push(null); - } else if (readable.push(yield value)) { - next(); - } else { - reading = false; - } - } catch (err) { - readable.destroy(err); - } - }); - return _next2.apply(this, arguments); - } - return readable; - } - module.exports = from; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/_stream_readable.js - var require_stream_readable = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/_stream_readable.js"(exports, module) { - "use strict"; - module.exports = Readable; - var Duplex; - Readable.ReadableState = ReadableState; - var EE = __require("events").EventEmitter; - var EElistenerCount = function EElistenerCount2(emitter, type) { - return emitter.listeners(type).length; - }; - var Stream = require_stream(); - var Buffer2 = __require("buffer").Buffer; - var OurUint8Array = global.Uint8Array || function() { - }; - function _uint8ArrayToBuffer(chunk) { - return Buffer2.from(chunk); - } - function _isUint8Array(obj) { - return Buffer2.isBuffer(obj) || obj instanceof OurUint8Array; - } - var debugUtil = __require("util"); - var debug; - if (debugUtil && debugUtil.debuglog) { - debug = debugUtil.debuglog("stream"); - } else { - debug = function debug2() { - }; - } - var BufferList = require_buffer_list(); - var destroyImpl = require_destroy(); - var _require = require_state(); - var getHighWaterMark = _require.getHighWaterMark; - var _require$codes = require_errors().codes; - var ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE; - var ERR_STREAM_PUSH_AFTER_EOF = _require$codes.ERR_STREAM_PUSH_AFTER_EOF; - var ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED; - var ERR_STREAM_UNSHIFT_AFTER_END_EVENT = _require$codes.ERR_STREAM_UNSHIFT_AFTER_END_EVENT; - var StringDecoder; - var createReadableStreamAsyncIterator; - var from; - require_inherits()(Readable, Stream); - var errorOrDestroy = destroyImpl.errorOrDestroy; - var kProxyEvents = ["error", "close", "destroy", "pause", "resume"]; - function prependListener(emitter, event, fn) { - if (typeof emitter.prependListener === "function") - return emitter.prependListener(event, fn); - if (!emitter._events || !emitter._events[event]) - emitter.on(event, fn); - else if (Array.isArray(emitter._events[event])) - emitter._events[event].unshift(fn); - else - emitter._events[event] = [fn, emitter._events[event]]; - } - function ReadableState(options, stream, isDuplex) { - Duplex = Duplex || require_stream_duplex(); - options = options || {}; - if (typeof isDuplex !== "boolean") - isDuplex = stream instanceof Duplex; - this.objectMode = !!options.objectMode; - if (isDuplex) - this.objectMode = this.objectMode || !!options.readableObjectMode; - this.highWaterMark = getHighWaterMark(this, options, "readableHighWaterMark", isDuplex); - this.buffer = new BufferList(); - this.length = 0; - this.pipes = null; - this.pipesCount = 0; - this.flowing = null; - this.ended = false; - this.endEmitted = false; - this.reading = false; - this.sync = true; - this.needReadable = false; - this.emittedReadable = false; - this.readableListening = false; - this.resumeScheduled = false; - this.paused = true; - this.emitClose = options.emitClose !== false; - this.autoDestroy = !!options.autoDestroy; - this.destroyed = false; - this.defaultEncoding = options.defaultEncoding || "utf8"; - this.awaitDrain = 0; - this.readingMore = false; - this.decoder = null; - this.encoding = null; - if (options.encoding) { - if (!StringDecoder) - StringDecoder = require_string_decoder().StringDecoder; - this.decoder = new StringDecoder(options.encoding); - this.encoding = options.encoding; - } - } - function Readable(options) { - Duplex = Duplex || require_stream_duplex(); - if (!(this instanceof Readable)) - return new Readable(options); - var isDuplex = this instanceof Duplex; - this._readableState = new ReadableState(options, this, isDuplex); - this.readable = true; - if (options) { - if (typeof options.read === "function") - this._read = options.read; - if (typeof options.destroy === "function") - this._destroy = options.destroy; - } - Stream.call(this); - } - Object.defineProperty(Readable.prototype, "destroyed", { - enumerable: false, - get: function get() { - if (this._readableState === void 0) { - return false; - } - return this._readableState.destroyed; - }, - set: function set(value) { - if (!this._readableState) { - return; - } - this._readableState.destroyed = value; - } - }); - Readable.prototype.destroy = destroyImpl.destroy; - Readable.prototype._undestroy = destroyImpl.undestroy; - Readable.prototype._destroy = function(err, cb) { - cb(err); - }; - Readable.prototype.push = function(chunk, encoding) { - var state = this._readableState; - var skipChunkCheck; - if (!state.objectMode) { - if (typeof chunk === "string") { - encoding = encoding || state.defaultEncoding; - if (encoding !== state.encoding) { - chunk = Buffer2.from(chunk, encoding); - encoding = ""; - } - skipChunkCheck = true; - } - } else { - skipChunkCheck = true; - } - return readableAddChunk(this, chunk, encoding, false, skipChunkCheck); - }; - Readable.prototype.unshift = function(chunk) { - return readableAddChunk(this, chunk, null, true, false); - }; - function readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) { - debug("readableAddChunk", chunk); - var state = stream._readableState; - if (chunk === null) { - state.reading = false; - onEofChunk(stream, state); - } else { - var er; - if (!skipChunkCheck) - er = chunkInvalid(state, chunk); - if (er) { - errorOrDestroy(stream, er); - } else if (state.objectMode || chunk && chunk.length > 0) { - if (typeof chunk !== "string" && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer2.prototype) { - chunk = _uint8ArrayToBuffer(chunk); - } - if (addToFront) { - if (state.endEmitted) - errorOrDestroy(stream, new ERR_STREAM_UNSHIFT_AFTER_END_EVENT()); - else - addChunk(stream, state, chunk, true); - } else if (state.ended) { - errorOrDestroy(stream, new ERR_STREAM_PUSH_AFTER_EOF()); - } else if (state.destroyed) { - return false; - } else { - state.reading = false; - if (state.decoder && !encoding) { - chunk = state.decoder.write(chunk); - if (state.objectMode || chunk.length !== 0) - addChunk(stream, state, chunk, false); - else - maybeReadMore(stream, state); - } else { - addChunk(stream, state, chunk, false); - } - } - } else if (!addToFront) { - state.reading = false; - maybeReadMore(stream, state); - } - } - return !state.ended && (state.length < state.highWaterMark || state.length === 0); - } - function addChunk(stream, state, chunk, addToFront) { - if (state.flowing && state.length === 0 && !state.sync) { - state.awaitDrain = 0; - stream.emit("data", chunk); - } else { - state.length += state.objectMode ? 1 : chunk.length; - if (addToFront) - state.buffer.unshift(chunk); - else - state.buffer.push(chunk); - if (state.needReadable) - emitReadable(stream); - } - maybeReadMore(stream, state); - } - function chunkInvalid(state, chunk) { - var er; - if (!_isUint8Array(chunk) && typeof chunk !== "string" && chunk !== void 0 && !state.objectMode) { - er = new ERR_INVALID_ARG_TYPE("chunk", ["string", "Buffer", "Uint8Array"], chunk); - } - return er; - } - Readable.prototype.isPaused = function() { - return this._readableState.flowing === false; - }; - Readable.prototype.setEncoding = function(enc) { - if (!StringDecoder) - StringDecoder = require_string_decoder().StringDecoder; - var decoder = new StringDecoder(enc); - this._readableState.decoder = decoder; - this._readableState.encoding = this._readableState.decoder.encoding; - var p = this._readableState.buffer.head; - var content = ""; - while (p !== null) { - content += decoder.write(p.data); - p = p.next; - } - this._readableState.buffer.clear(); - if (content !== "") - this._readableState.buffer.push(content); - this._readableState.length = content.length; - return this; - }; - var MAX_HWM = 1073741824; - function computeNewHighWaterMark(n) { - if (n >= MAX_HWM) { - n = MAX_HWM; - } else { - n--; - n |= n >>> 1; - n |= n >>> 2; - n |= n >>> 4; - n |= n >>> 8; - n |= n >>> 16; - n++; - } - return n; - } - function howMuchToRead(n, state) { - if (n <= 0 || state.length === 0 && state.ended) - return 0; - if (state.objectMode) - return 1; - if (n !== n) { - if (state.flowing && state.length) - return state.buffer.head.data.length; - else - return state.length; - } - if (n > state.highWaterMark) - state.highWaterMark = computeNewHighWaterMark(n); - if (n <= state.length) - return n; - if (!state.ended) { - state.needReadable = true; - return 0; - } - return state.length; - } - Readable.prototype.read = function(n) { - debug("read", n); - n = parseInt(n, 10); - var state = this._readableState; - var nOrig = n; - if (n !== 0) - state.emittedReadable = false; - if (n === 0 && state.needReadable && ((state.highWaterMark !== 0 ? state.length >= state.highWaterMark : state.length > 0) || state.ended)) { - debug("read: emitReadable", state.length, state.ended); - if (state.length === 0 && state.ended) - endReadable(this); - else - emitReadable(this); - return null; - } - n = howMuchToRead(n, state); - if (n === 0 && state.ended) { - if (state.length === 0) - endReadable(this); - return null; - } - var doRead = state.needReadable; - debug("need readable", doRead); - if (state.length === 0 || state.length - n < state.highWaterMark) { - doRead = true; - debug("length less than watermark", doRead); - } - if (state.ended || state.reading) { - doRead = false; - debug("reading or ended", doRead); - } else if (doRead) { - debug("do read"); - state.reading = true; - state.sync = true; - if (state.length === 0) - state.needReadable = true; - this._read(state.highWaterMark); - state.sync = false; - if (!state.reading) - n = howMuchToRead(nOrig, state); - } - var ret; - if (n > 0) - ret = fromList(n, state); - else - ret = null; - if (ret === null) { - state.needReadable = state.length <= state.highWaterMark; - n = 0; - } else { - state.length -= n; - state.awaitDrain = 0; - } - if (state.length === 0) { - if (!state.ended) - state.needReadable = true; - if (nOrig !== n && state.ended) - endReadable(this); - } - if (ret !== null) - this.emit("data", ret); - return ret; - }; - function onEofChunk(stream, state) { - debug("onEofChunk"); - if (state.ended) - return; - if (state.decoder) { - var chunk = state.decoder.end(); - if (chunk && chunk.length) { - state.buffer.push(chunk); - state.length += state.objectMode ? 1 : chunk.length; - } - } - state.ended = true; - if (state.sync) { - emitReadable(stream); - } else { - state.needReadable = false; - if (!state.emittedReadable) { - state.emittedReadable = true; - emitReadable_(stream); - } - } - } - function emitReadable(stream) { - var state = stream._readableState; - debug("emitReadable", state.needReadable, state.emittedReadable); - state.needReadable = false; - if (!state.emittedReadable) { - debug("emitReadable", state.flowing); - state.emittedReadable = true; - process.nextTick(emitReadable_, stream); - } - } - function emitReadable_(stream) { - var state = stream._readableState; - debug("emitReadable_", state.destroyed, state.length, state.ended); - if (!state.destroyed && (state.length || state.ended)) { - stream.emit("readable"); - state.emittedReadable = false; - } - state.needReadable = !state.flowing && !state.ended && state.length <= state.highWaterMark; - flow(stream); - } - function maybeReadMore(stream, state) { - if (!state.readingMore) { - state.readingMore = true; - process.nextTick(maybeReadMore_, stream, state); - } - } - function maybeReadMore_(stream, state) { - while (!state.reading && !state.ended && (state.length < state.highWaterMark || state.flowing && state.length === 0)) { - var len = state.length; - debug("maybeReadMore read 0"); - stream.read(0); - if (len === state.length) - break; - } - state.readingMore = false; - } - Readable.prototype._read = function(n) { - errorOrDestroy(this, new ERR_METHOD_NOT_IMPLEMENTED("_read()")); - }; - Readable.prototype.pipe = function(dest, pipeOpts) { - var src = this; - var state = this._readableState; - switch (state.pipesCount) { - case 0: - state.pipes = dest; - break; - case 1: - state.pipes = [state.pipes, dest]; - break; - default: - state.pipes.push(dest); - break; - } - state.pipesCount += 1; - debug("pipe count=%d opts=%j", state.pipesCount, pipeOpts); - var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr; - var endFn = doEnd ? onend : unpipe; - if (state.endEmitted) - process.nextTick(endFn); - else - src.once("end", endFn); - dest.on("unpipe", onunpipe); - function onunpipe(readable, unpipeInfo) { - debug("onunpipe"); - if (readable === src) { - if (unpipeInfo && unpipeInfo.hasUnpiped === false) { - unpipeInfo.hasUnpiped = true; - cleanup(); - } - } - } - function onend() { - debug("onend"); - dest.end(); - } - var ondrain = pipeOnDrain(src); - dest.on("drain", ondrain); - var cleanedUp = false; - function cleanup() { - debug("cleanup"); - dest.removeListener("close", onclose); - dest.removeListener("finish", onfinish); - dest.removeListener("drain", ondrain); - dest.removeListener("error", onerror); - dest.removeListener("unpipe", onunpipe); - src.removeListener("end", onend); - src.removeListener("end", unpipe); - src.removeListener("data", ondata); - cleanedUp = true; - if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) - ondrain(); - } - src.on("data", ondata); - function ondata(chunk) { - debug("ondata"); - var ret = dest.write(chunk); - debug("dest.write", ret); - if (ret === false) { - if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) { - debug("false write response, pause", state.awaitDrain); - state.awaitDrain++; - } - src.pause(); - } - } - function onerror(er) { - debug("onerror", er); - unpipe(); - dest.removeListener("error", onerror); - if (EElistenerCount(dest, "error") === 0) - errorOrDestroy(dest, er); - } - prependListener(dest, "error", onerror); - function onclose() { - dest.removeListener("finish", onfinish); - unpipe(); - } - dest.once("close", onclose); - function onfinish() { - debug("onfinish"); - dest.removeListener("close", onclose); - unpipe(); - } - dest.once("finish", onfinish); - function unpipe() { - debug("unpipe"); - src.unpipe(dest); - } - dest.emit("pipe", src); - if (!state.flowing) { - debug("pipe resume"); - src.resume(); - } - return dest; - }; - function pipeOnDrain(src) { - return function pipeOnDrainFunctionResult() { - var state = src._readableState; - debug("pipeOnDrain", state.awaitDrain); - if (state.awaitDrain) - state.awaitDrain--; - if (state.awaitDrain === 0 && EElistenerCount(src, "data")) { - state.flowing = true; - flow(src); - } - }; - } - Readable.prototype.unpipe = function(dest) { - var state = this._readableState; - var unpipeInfo = { - hasUnpiped: false - }; - if (state.pipesCount === 0) - return this; - if (state.pipesCount === 1) { - if (dest && dest !== state.pipes) - return this; - if (!dest) - dest = state.pipes; - state.pipes = null; - state.pipesCount = 0; - state.flowing = false; - if (dest) - dest.emit("unpipe", this, unpipeInfo); - return this; - } - if (!dest) { - var dests = state.pipes; - var len = state.pipesCount; - state.pipes = null; - state.pipesCount = 0; - state.flowing = false; - for (var i = 0; i < len; i++) { - dests[i].emit("unpipe", this, { - hasUnpiped: false - }); - } - return this; - } - var index2 = indexOf(state.pipes, dest); - if (index2 === -1) - return this; - state.pipes.splice(index2, 1); - state.pipesCount -= 1; - if (state.pipesCount === 1) - state.pipes = state.pipes[0]; - dest.emit("unpipe", this, unpipeInfo); - return this; - }; - Readable.prototype.on = function(ev, fn) { - var res = Stream.prototype.on.call(this, ev, fn); - var state = this._readableState; - if (ev === "data") { - state.readableListening = this.listenerCount("readable") > 0; - if (state.flowing !== false) - this.resume(); - } else if (ev === "readable") { - if (!state.endEmitted && !state.readableListening) { - state.readableListening = state.needReadable = true; - state.flowing = false; - state.emittedReadable = false; - debug("on readable", state.length, state.reading); - if (state.length) { - emitReadable(this); - } else if (!state.reading) { - process.nextTick(nReadingNextTick, this); - } - } - } - return res; - }; - Readable.prototype.addListener = Readable.prototype.on; - Readable.prototype.removeListener = function(ev, fn) { - var res = Stream.prototype.removeListener.call(this, ev, fn); - if (ev === "readable") { - process.nextTick(updateReadableListening, this); - } - return res; - }; - Readable.prototype.removeAllListeners = function(ev) { - var res = Stream.prototype.removeAllListeners.apply(this, arguments); - if (ev === "readable" || ev === void 0) { - process.nextTick(updateReadableListening, this); - } - return res; - }; - function updateReadableListening(self2) { - var state = self2._readableState; - state.readableListening = self2.listenerCount("readable") > 0; - if (state.resumeScheduled && !state.paused) { - state.flowing = true; - } else if (self2.listenerCount("data") > 0) { - self2.resume(); - } - } - function nReadingNextTick(self2) { - debug("readable nexttick read 0"); - self2.read(0); - } - Readable.prototype.resume = function() { - var state = this._readableState; - if (!state.flowing) { - debug("resume"); - state.flowing = !state.readableListening; - resume(this, state); - } - state.paused = false; - return this; - }; - function resume(stream, state) { - if (!state.resumeScheduled) { - state.resumeScheduled = true; - process.nextTick(resume_, stream, state); - } - } - function resume_(stream, state) { - debug("resume", state.reading); - if (!state.reading) { - stream.read(0); - } - state.resumeScheduled = false; - stream.emit("resume"); - flow(stream); - if (state.flowing && !state.reading) - stream.read(0); - } - Readable.prototype.pause = function() { - debug("call pause flowing=%j", this._readableState.flowing); - if (this._readableState.flowing !== false) { - debug("pause"); - this._readableState.flowing = false; - this.emit("pause"); - } - this._readableState.paused = true; - return this; - }; - function flow(stream) { - var state = stream._readableState; - debug("flow", state.flowing); - while (state.flowing && stream.read() !== null) { - ; - } - } - Readable.prototype.wrap = function(stream) { - var _this = this; - var state = this._readableState; - var paused = false; - stream.on("end", function() { - debug("wrapped end"); - if (state.decoder && !state.ended) { - var chunk = state.decoder.end(); - if (chunk && chunk.length) - _this.push(chunk); - } - _this.push(null); - }); - stream.on("data", function(chunk) { - debug("wrapped data"); - if (state.decoder) - chunk = state.decoder.write(chunk); - if (state.objectMode && (chunk === null || chunk === void 0)) - return; - else if (!state.objectMode && (!chunk || !chunk.length)) - return; - var ret = _this.push(chunk); - if (!ret) { - paused = true; - stream.pause(); - } - }); - for (var i in stream) { - if (this[i] === void 0 && typeof stream[i] === "function") { - this[i] = function methodWrap(method) { - return function methodWrapReturnFunction() { - return stream[method].apply(stream, arguments); - }; - }(i); - } - } - for (var n = 0; n < kProxyEvents.length; n++) { - stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n])); - } - this._read = function(n2) { - debug("wrapped _read", n2); - if (paused) { - paused = false; - stream.resume(); - } - }; - return this; - }; - if (typeof Symbol === "function") { - Readable.prototype[Symbol.asyncIterator] = function() { - if (createReadableStreamAsyncIterator === void 0) { - createReadableStreamAsyncIterator = require_async_iterator(); - } - return createReadableStreamAsyncIterator(this); - }; - } - Object.defineProperty(Readable.prototype, "readableHighWaterMark", { - enumerable: false, - get: function get() { - return this._readableState.highWaterMark; - } - }); - Object.defineProperty(Readable.prototype, "readableBuffer", { - enumerable: false, - get: function get() { - return this._readableState && this._readableState.buffer; - } - }); - Object.defineProperty(Readable.prototype, "readableFlowing", { - enumerable: false, - get: function get() { - return this._readableState.flowing; - }, - set: function set(state) { - if (this._readableState) { - this._readableState.flowing = state; - } - } - }); - Readable._fromList = fromList; - Object.defineProperty(Readable.prototype, "readableLength", { - enumerable: false, - get: function get() { - return this._readableState.length; - } - }); - function fromList(n, state) { - if (state.length === 0) - return null; - var ret; - if (state.objectMode) - ret = state.buffer.shift(); - else if (!n || n >= state.length) { - if (state.decoder) - ret = state.buffer.join(""); - else if (state.buffer.length === 1) - ret = state.buffer.first(); - else - ret = state.buffer.concat(state.length); - state.buffer.clear(); - } else { - ret = state.buffer.consume(n, state.decoder); - } - return ret; - } - function endReadable(stream) { - var state = stream._readableState; - debug("endReadable", state.endEmitted); - if (!state.endEmitted) { - state.ended = true; - process.nextTick(endReadableNT, state, stream); - } - } - function endReadableNT(state, stream) { - debug("endReadableNT", state.endEmitted, state.length); - if (!state.endEmitted && state.length === 0) { - state.endEmitted = true; - stream.readable = false; - stream.emit("end"); - if (state.autoDestroy) { - var wState = stream._writableState; - if (!wState || wState.autoDestroy && wState.finished) { - stream.destroy(); - } - } - } - } - if (typeof Symbol === "function") { - Readable.from = function(iterable, opts) { - if (from === void 0) { - from = require_from(); - } - return from(Readable, iterable, opts); - }; - } - function indexOf(xs, x) { - for (var i = 0, l = xs.length; i < l; i++) { - if (xs[i] === x) - return i; - } - return -1; - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/_stream_transform.js - var require_stream_transform = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/_stream_transform.js"(exports, module) { - "use strict"; - module.exports = Transform3; - var _require$codes = require_errors().codes; - var ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED; - var ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK; - var ERR_TRANSFORM_ALREADY_TRANSFORMING = _require$codes.ERR_TRANSFORM_ALREADY_TRANSFORMING; - var ERR_TRANSFORM_WITH_LENGTH_0 = _require$codes.ERR_TRANSFORM_WITH_LENGTH_0; - var Duplex = require_stream_duplex(); - require_inherits()(Transform3, Duplex); - function afterTransform(er, data) { - var ts = this._transformState; - ts.transforming = false; - var cb = ts.writecb; - if (cb === null) { - return this.emit("error", new ERR_MULTIPLE_CALLBACK()); - } - ts.writechunk = null; - ts.writecb = null; - if (data != null) - this.push(data); - cb(er); - var rs = this._readableState; - rs.reading = false; - if (rs.needReadable || rs.length < rs.highWaterMark) { - this._read(rs.highWaterMark); - } - } - function Transform3(options) { - if (!(this instanceof Transform3)) - return new Transform3(options); - Duplex.call(this, options); - this._transformState = { - afterTransform: afterTransform.bind(this), - needTransform: false, - transforming: false, - writecb: null, - writechunk: null, - writeencoding: null - }; - this._readableState.needReadable = true; - this._readableState.sync = false; - if (options) { - if (typeof options.transform === "function") - this._transform = options.transform; - if (typeof options.flush === "function") - this._flush = options.flush; - } - this.on("prefinish", prefinish); - } - function prefinish() { - var _this = this; - if (typeof this._flush === "function" && !this._readableState.destroyed) { - this._flush(function(er, data) { - done(_this, er, data); - }); - } else { - done(this, null, null); - } - } - Transform3.prototype.push = function(chunk, encoding) { - this._transformState.needTransform = false; - return Duplex.prototype.push.call(this, chunk, encoding); - }; - Transform3.prototype._transform = function(chunk, encoding, cb) { - cb(new ERR_METHOD_NOT_IMPLEMENTED("_transform()")); - }; - Transform3.prototype._write = function(chunk, encoding, cb) { - var ts = this._transformState; - ts.writecb = cb; - ts.writechunk = chunk; - ts.writeencoding = encoding; - if (!ts.transforming) { - var rs = this._readableState; - if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) - this._read(rs.highWaterMark); - } - }; - Transform3.prototype._read = function(n) { - var ts = this._transformState; - if (ts.writechunk !== null && !ts.transforming) { - ts.transforming = true; - this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform); - } else { - ts.needTransform = true; - } - }; - Transform3.prototype._destroy = function(err, cb) { - Duplex.prototype._destroy.call(this, err, function(err2) { - cb(err2); - }); - }; - function done(stream, er, data) { - if (er) - return stream.emit("error", er); - if (data != null) - stream.push(data); - if (stream._writableState.length) - throw new ERR_TRANSFORM_WITH_LENGTH_0(); - if (stream._transformState.transforming) - throw new ERR_TRANSFORM_ALREADY_TRANSFORMING(); - return stream.push(null); - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/_stream_passthrough.js - var require_stream_passthrough = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/_stream_passthrough.js"(exports, module) { - "use strict"; - module.exports = PassThrough2; - var Transform3 = require_stream_transform(); - require_inherits()(PassThrough2, Transform3); - function PassThrough2(options) { - if (!(this instanceof PassThrough2)) - return new PassThrough2(options); - Transform3.call(this, options); - } - PassThrough2.prototype._transform = function(chunk, encoding, cb) { - cb(null, chunk); - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/internal/streams/pipeline.js - var require_pipeline = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/lib/internal/streams/pipeline.js"(exports, module) { - "use strict"; - var eos; - function once(callback) { - var called = false; - return function() { - if (called) - return; - called = true; - callback.apply(void 0, arguments); - }; - } - var _require$codes = require_errors().codes; - var ERR_MISSING_ARGS = _require$codes.ERR_MISSING_ARGS; - var ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED; - function noop(err) { - if (err) - throw err; - } - function isRequest(stream) { - return stream.setHeader && typeof stream.abort === "function"; - } - function destroyer(stream, reading, writing, callback) { - callback = once(callback); - var closed = false; - stream.on("close", function() { - closed = true; - }); - if (eos === void 0) - eos = require_end_of_stream(); - eos(stream, { - readable: reading, - writable: writing - }, function(err) { - if (err) - return callback(err); - closed = true; - callback(); - }); - var destroyed = false; - return function(err) { - if (closed) - return; - if (destroyed) - return; - destroyed = true; - if (isRequest(stream)) - return stream.abort(); - if (typeof stream.destroy === "function") - return stream.destroy(); - callback(err || new ERR_STREAM_DESTROYED("pipe")); - }; - } - function call(fn) { - fn(); - } - function pipe(from, to) { - return from.pipe(to); - } - function popCallback(streams) { - if (!streams.length) - return noop; - if (typeof streams[streams.length - 1] !== "function") - return noop; - return streams.pop(); - } - function pipeline3() { - for (var _len = arguments.length, streams = new Array(_len), _key = 0; _key < _len; _key++) { - streams[_key] = arguments[_key]; - } - var callback = popCallback(streams); - if (Array.isArray(streams[0])) - streams = streams[0]; - if (streams.length < 2) { - throw new ERR_MISSING_ARGS("streams"); - } - var error; - var destroys = streams.map(function(stream, i) { - var reading = i < streams.length - 1; - var writing = i > 0; - return destroyer(stream, reading, writing, function(err) { - if (!error) - error = err; - if (err) - destroys.forEach(call); - if (reading) - return; - destroys.forEach(call); - callback(error); - }); - }); - return streams.reduce(pipe); - } - module.exports = pipeline3; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/readable.js - var require_readable = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-d4ea81502d.zip/node_modules/readable-stream/readable.js"(exports, module) { - var Stream = __require("stream"); - if (process.env.READABLE_STREAM === "disable" && Stream) { - module.exports = Stream.Readable; - Object.assign(module.exports, Stream); - module.exports.Stream = Stream; - } else { - exports = module.exports = require_stream_readable(); - exports.Stream = Stream || exports; - exports.Readable = exports; - exports.Writable = require_stream_writable(); - exports.Duplex = require_stream_duplex(); - exports.Transform = require_stream_transform(); - exports.PassThrough = require_stream_passthrough(); - exports.finished = require_end_of_stream(); - exports.pipeline = require_pipeline(); - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/split2-npm-3.2.2-4ccd21b4f7-8127ddbedd.zip/node_modules/split2/index.js - var require_split2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/split2-npm-3.2.2-4ccd21b4f7-8127ddbedd.zip/node_modules/split2/index.js"(exports, module) { - "use strict"; - var {Transform: Transform3} = require_readable(); - var {StringDecoder} = __require("string_decoder"); - var kLast = Symbol("last"); - var kDecoder = Symbol("decoder"); - function transform(chunk, enc, cb) { - var list; - if (this.overflow) { - var buf = this[kDecoder].write(chunk); - list = buf.split(this.matcher); - if (list.length === 1) - return cb(); - list.shift(); - this.overflow = false; - } else { - this[kLast] += this[kDecoder].write(chunk); - list = this[kLast].split(this.matcher); - } - this[kLast] = list.pop(); - for (var i = 0; i < list.length; i++) { - try { - push(this, this.mapper(list[i])); - } catch (error) { - return cb(error); - } - } - this.overflow = this[kLast].length > this.maxLength; - if (this.overflow && !this.skipOverflow) - return cb(new Error("maximum buffer reached")); - cb(); - } - function flush(cb) { - this[kLast] += this[kDecoder].end(); - if (this[kLast]) { - try { - push(this, this.mapper(this[kLast])); - } catch (error) { - return cb(error); - } - } - cb(); - } - function push(self2, val) { - if (val !== void 0) { - self2.push(val); - } - } - function noop(incoming) { - return incoming; - } - function split(matcher, mapper, options) { - matcher = matcher || /\r?\n/; - mapper = mapper || noop; - options = options || {}; - switch (arguments.length) { - case 1: - if (typeof matcher === "function") { - mapper = matcher; - matcher = /\r?\n/; - } else if (typeof matcher === "object" && !(matcher instanceof RegExp)) { - options = matcher; - matcher = /\r?\n/; - } - break; - case 2: - if (typeof matcher === "function") { - options = mapper; - mapper = matcher; - matcher = /\r?\n/; - } else if (typeof mapper === "object") { - options = mapper; - mapper = noop; - } - } - options = Object.assign({}, options); - options.transform = transform; - options.flush = flush; - options.readableObjectMode = true; - const stream = new Transform3(options); - stream[kLast] = ""; - stream[kDecoder] = new StringDecoder("utf8"); - stream.matcher = matcher; - stream.mapper = mapper; - stream.maxLength = options.maxLength; - stream.skipOverflow = options.skipOverflow; - stream.overflow = false; - return stream; - } - module.exports = split; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_freeGlobal.js - var require_freeGlobal = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_freeGlobal.js"(exports, module) { - var freeGlobal = typeof global == "object" && global && global.Object === Object && global; - module.exports = freeGlobal; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_root.js - var require_root = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_root.js"(exports, module) { - var freeGlobal = require_freeGlobal(); - var freeSelf = typeof self == "object" && self && self.Object === Object && self; - var root = freeGlobal || freeSelf || Function("return this")(); - module.exports = root; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_Symbol.js - var require_Symbol = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_Symbol.js"(exports, module) { - var root = require_root(); - var Symbol2 = root.Symbol; - module.exports = Symbol2; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_getRawTag.js - var require_getRawTag = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_getRawTag.js"(exports, module) { - var Symbol2 = require_Symbol(); - var objectProto = Object.prototype; - var hasOwnProperty = objectProto.hasOwnProperty; - var nativeObjectToString = objectProto.toString; - var symToStringTag = Symbol2 ? Symbol2.toStringTag : void 0; - function getRawTag(value) { - var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag]; - try { - value[symToStringTag] = void 0; - var unmasked = true; - } catch (e) { - } - var result = nativeObjectToString.call(value); - if (unmasked) { - if (isOwn) { - value[symToStringTag] = tag; - } else { - delete value[symToStringTag]; - } - } - return result; - } - module.exports = getRawTag; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_objectToString.js - var require_objectToString = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_objectToString.js"(exports, module) { - var objectProto = Object.prototype; - var nativeObjectToString = objectProto.toString; - function objectToString(value) { - return nativeObjectToString.call(value); - } - module.exports = objectToString; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseGetTag.js - var require_baseGetTag = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseGetTag.js"(exports, module) { - var Symbol2 = require_Symbol(); - var getRawTag = require_getRawTag(); - var objectToString = require_objectToString(); - var nullTag = "[object Null]"; - var undefinedTag = "[object Undefined]"; - var symToStringTag = Symbol2 ? Symbol2.toStringTag : void 0; - function baseGetTag(value) { - if (value == null) { - return value === void 0 ? undefinedTag : nullTag; - } - return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value); - } - module.exports = baseGetTag; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isObject.js - var require_isObject = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isObject.js"(exports, module) { - function isObject(value) { - var type = typeof value; - return value != null && (type == "object" || type == "function"); - } - module.exports = isObject; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isFunction.js - var require_isFunction = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isFunction.js"(exports, module) { - var baseGetTag = require_baseGetTag(); - var isObject = require_isObject(); - var asyncTag = "[object AsyncFunction]"; - var funcTag = "[object Function]"; - var genTag = "[object GeneratorFunction]"; - var proxyTag = "[object Proxy]"; - function isFunction(value) { - if (!isObject(value)) { - return false; - } - var tag = baseGetTag(value); - return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; - } - module.exports = isFunction; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_coreJsData.js - var require_coreJsData = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_coreJsData.js"(exports, module) { - var root = require_root(); - var coreJsData = root["__core-js_shared__"]; - module.exports = coreJsData; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_isMasked.js - var require_isMasked = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_isMasked.js"(exports, module) { - var coreJsData = require_coreJsData(); - var maskSrcKey = function() { - var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ""); - return uid ? "Symbol(src)_1." + uid : ""; - }(); - function isMasked(func) { - return !!maskSrcKey && maskSrcKey in func; - } - module.exports = isMasked; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_toSource.js - var require_toSource = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_toSource.js"(exports, module) { - var funcProto = Function.prototype; - var funcToString = funcProto.toString; - function toSource(func) { - if (func != null) { - try { - return funcToString.call(func); - } catch (e) { - } - try { - return func + ""; - } catch (e) { - } - } - return ""; - } - module.exports = toSource; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseIsNative.js - var require_baseIsNative = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseIsNative.js"(exports, module) { - var isFunction = require_isFunction(); - var isMasked = require_isMasked(); - var isObject = require_isObject(); - var toSource = require_toSource(); - var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; - var reIsHostCtor = /^\[object .+?Constructor\]$/; - var funcProto = Function.prototype; - var objectProto = Object.prototype; - var funcToString = funcProto.toString; - var hasOwnProperty = objectProto.hasOwnProperty; - var reIsNative = RegExp("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"); - function baseIsNative(value) { - if (!isObject(value) || isMasked(value)) { - return false; - } - var pattern = isFunction(value) ? reIsNative : reIsHostCtor; - return pattern.test(toSource(value)); - } - module.exports = baseIsNative; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_getValue.js - var require_getValue = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_getValue.js"(exports, module) { - function getValue(object, key) { - return object == null ? void 0 : object[key]; - } - module.exports = getValue; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_getNative.js - var require_getNative = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_getNative.js"(exports, module) { - var baseIsNative = require_baseIsNative(); - var getValue = require_getValue(); - function getNative(object, key) { - var value = getValue(object, key); - return baseIsNative(value) ? value : void 0; - } - module.exports = getNative; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_defineProperty.js - var require_defineProperty = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_defineProperty.js"(exports, module) { - var getNative = require_getNative(); - var defineProperty = function() { - try { - var func = getNative(Object, "defineProperty"); - func({}, "", {}); - return func; - } catch (e) { - } - }(); - module.exports = defineProperty; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseAssignValue.js - var require_baseAssignValue = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseAssignValue.js"(exports, module) { - var defineProperty = require_defineProperty(); - function baseAssignValue(object, key, value) { - if (key == "__proto__" && defineProperty) { - defineProperty(object, key, { - "configurable": true, - "enumerable": true, - "value": value, - "writable": true - }); - } else { - object[key] = value; - } - } - module.exports = baseAssignValue; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/eq.js - var require_eq = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/eq.js"(exports, module) { - function eq(value, other) { - return value === other || value !== value && other !== other; - } - module.exports = eq; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_assignValue.js - var require_assignValue = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_assignValue.js"(exports, module) { - var baseAssignValue = require_baseAssignValue(); - var eq = require_eq(); - var objectProto = Object.prototype; - var hasOwnProperty = objectProto.hasOwnProperty; - function assignValue(object, key, value) { - var objValue = object[key]; - if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) { - baseAssignValue(object, key, value); - } - } - module.exports = assignValue; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_copyObject.js - var require_copyObject = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_copyObject.js"(exports, module) { - var assignValue = require_assignValue(); - var baseAssignValue = require_baseAssignValue(); - function copyObject(source, props, object, customizer) { - var isNew = !object; - object || (object = {}); - var index2 = -1, length = props.length; - while (++index2 < length) { - var key = props[index2]; - var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0; - if (newValue === void 0) { - newValue = source[key]; - } - if (isNew) { - baseAssignValue(object, key, newValue); - } else { - assignValue(object, key, newValue); - } - } - return object; - } - module.exports = copyObject; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/identity.js - var require_identity = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/identity.js"(exports, module) { - function identity(value) { - return value; - } - module.exports = identity; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_apply.js - var require_apply = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_apply.js"(exports, module) { - function apply(func, thisArg, args) { - switch (args.length) { - case 0: - return func.call(thisArg); - case 1: - return func.call(thisArg, args[0]); - case 2: - return func.call(thisArg, args[0], args[1]); - case 3: - return func.call(thisArg, args[0], args[1], args[2]); - } - return func.apply(thisArg, args); - } - module.exports = apply; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_overRest.js - var require_overRest = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_overRest.js"(exports, module) { - var apply = require_apply(); - var nativeMax = Math.max; - function overRest(func, start, transform) { - start = nativeMax(start === void 0 ? func.length - 1 : start, 0); - return function() { - var args = arguments, index2 = -1, length = nativeMax(args.length - start, 0), array = Array(length); - while (++index2 < length) { - array[index2] = args[start + index2]; - } - index2 = -1; - var otherArgs = Array(start + 1); - while (++index2 < start) { - otherArgs[index2] = args[index2]; - } - otherArgs[start] = transform(array); - return apply(func, this, otherArgs); - }; - } - module.exports = overRest; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/constant.js - var require_constant = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/constant.js"(exports, module) { - function constant(value) { - return function() { - return value; - }; - } - module.exports = constant; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseSetToString.js - var require_baseSetToString = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseSetToString.js"(exports, module) { - var constant = require_constant(); - var defineProperty = require_defineProperty(); - var identity = require_identity(); - var baseSetToString = !defineProperty ? identity : function(func, string) { - return defineProperty(func, "toString", { - "configurable": true, - "enumerable": false, - "value": constant(string), - "writable": true - }); - }; - module.exports = baseSetToString; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_shortOut.js - var require_shortOut = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_shortOut.js"(exports, module) { - var HOT_COUNT = 800; - var HOT_SPAN = 16; - var nativeNow = Date.now; - function shortOut(func) { - var count = 0, lastCalled = 0; - return function() { - var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled); - lastCalled = stamp; - if (remaining > 0) { - if (++count >= HOT_COUNT) { - return arguments[0]; - } - } else { - count = 0; - } - return func.apply(void 0, arguments); - }; - } - module.exports = shortOut; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_setToString.js - var require_setToString = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_setToString.js"(exports, module) { - var baseSetToString = require_baseSetToString(); - var shortOut = require_shortOut(); - var setToString = shortOut(baseSetToString); - module.exports = setToString; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseRest.js - var require_baseRest = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseRest.js"(exports, module) { - var identity = require_identity(); - var overRest = require_overRest(); - var setToString = require_setToString(); - function baseRest(func, start) { - return setToString(overRest(func, start, identity), func + ""); - } - module.exports = baseRest; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isLength.js - var require_isLength = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isLength.js"(exports, module) { - var MAX_SAFE_INTEGER = 9007199254740991; - function isLength(value) { - return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; - } - module.exports = isLength; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isArrayLike.js - var require_isArrayLike = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isArrayLike.js"(exports, module) { - var isFunction = require_isFunction(); - var isLength = require_isLength(); - function isArrayLike(value) { - return value != null && isLength(value.length) && !isFunction(value); - } - module.exports = isArrayLike; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_isIndex.js - var require_isIndex = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_isIndex.js"(exports, module) { - var MAX_SAFE_INTEGER = 9007199254740991; - var reIsUint = /^(?:0|[1-9]\d*)$/; - function isIndex(value, length) { - var type = typeof value; - length = length == null ? MAX_SAFE_INTEGER : length; - return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length); - } - module.exports = isIndex; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_isIterateeCall.js - var require_isIterateeCall = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_isIterateeCall.js"(exports, module) { - var eq = require_eq(); - var isArrayLike = require_isArrayLike(); - var isIndex = require_isIndex(); - var isObject = require_isObject(); - function isIterateeCall(value, index2, object) { - if (!isObject(object)) { - return false; - } - var type = typeof index2; - if (type == "number" ? isArrayLike(object) && isIndex(index2, object.length) : type == "string" && index2 in object) { - return eq(object[index2], value); - } - return false; - } - module.exports = isIterateeCall; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_createAssigner.js - var require_createAssigner = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_createAssigner.js"(exports, module) { - var baseRest = require_baseRest(); - var isIterateeCall = require_isIterateeCall(); - function createAssigner(assigner) { - return baseRest(function(object, sources) { - var index2 = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0; - customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : void 0; - if (guard && isIterateeCall(sources[0], sources[1], guard)) { - customizer = length < 3 ? void 0 : customizer; - length = 1; - } - object = Object(object); - while (++index2 < length) { - var source = sources[index2]; - if (source) { - assigner(object, source, index2, customizer); - } - } - return object; - }); - } - module.exports = createAssigner; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseTimes.js - var require_baseTimes = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseTimes.js"(exports, module) { - function baseTimes(n, iteratee) { - var index2 = -1, result = Array(n); - while (++index2 < n) { - result[index2] = iteratee(index2); - } - return result; - } - module.exports = baseTimes; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isObjectLike.js - var require_isObjectLike = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isObjectLike.js"(exports, module) { - function isObjectLike(value) { - return value != null && typeof value == "object"; - } - module.exports = isObjectLike; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseIsArguments.js - var require_baseIsArguments = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseIsArguments.js"(exports, module) { - var baseGetTag = require_baseGetTag(); - var isObjectLike = require_isObjectLike(); - var argsTag = "[object Arguments]"; - function baseIsArguments(value) { - return isObjectLike(value) && baseGetTag(value) == argsTag; - } - module.exports = baseIsArguments; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isArguments.js - var require_isArguments = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isArguments.js"(exports, module) { - var baseIsArguments = require_baseIsArguments(); - var isObjectLike = require_isObjectLike(); - var objectProto = Object.prototype; - var hasOwnProperty = objectProto.hasOwnProperty; - var propertyIsEnumerable = objectProto.propertyIsEnumerable; - var isArguments = baseIsArguments(function() { - return arguments; - }()) ? baseIsArguments : function(value) { - return isObjectLike(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee"); - }; - module.exports = isArguments; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isArray.js - var require_isArray = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isArray.js"(exports, module) { - var isArray = Array.isArray; - module.exports = isArray; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/stubFalse.js - var require_stubFalse = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/stubFalse.js"(exports, module) { - function stubFalse() { - return false; - } - module.exports = stubFalse; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isBuffer.js - var require_isBuffer = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isBuffer.js"(exports, module) { - var root = require_root(); - var stubFalse = require_stubFalse(); - var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports; - var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module; - var moduleExports = freeModule && freeModule.exports === freeExports; - var Buffer2 = moduleExports ? root.Buffer : void 0; - var nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0; - var isBuffer = nativeIsBuffer || stubFalse; - module.exports = isBuffer; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseIsTypedArray.js - var require_baseIsTypedArray = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseIsTypedArray.js"(exports, module) { - var baseGetTag = require_baseGetTag(); - var isLength = require_isLength(); - var isObjectLike = require_isObjectLike(); - var argsTag = "[object Arguments]"; - var arrayTag = "[object Array]"; - var boolTag = "[object Boolean]"; - var dateTag = "[object Date]"; - var errorTag = "[object Error]"; - var funcTag = "[object Function]"; - var mapTag = "[object Map]"; - var numberTag = "[object Number]"; - var objectTag = "[object Object]"; - var regexpTag = "[object RegExp]"; - var setTag = "[object Set]"; - var stringTag = "[object String]"; - var weakMapTag = "[object WeakMap]"; - var arrayBufferTag = "[object ArrayBuffer]"; - var dataViewTag = "[object DataView]"; - var float32Tag = "[object Float32Array]"; - var float64Tag = "[object Float64Array]"; - var int8Tag = "[object Int8Array]"; - var int16Tag = "[object Int16Array]"; - var int32Tag = "[object Int32Array]"; - var uint8Tag = "[object Uint8Array]"; - var uint8ClampedTag = "[object Uint8ClampedArray]"; - var uint16Tag = "[object Uint16Array]"; - var uint32Tag = "[object Uint32Array]"; - var typedArrayTags = {}; - typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true; - typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false; - function baseIsTypedArray(value) { - return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; - } - module.exports = baseIsTypedArray; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseUnary.js - var require_baseUnary = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseUnary.js"(exports, module) { - function baseUnary(func) { - return function(value) { - return func(value); - }; - } - module.exports = baseUnary; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_nodeUtil.js - var require_nodeUtil = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_nodeUtil.js"(exports, module) { - var freeGlobal = require_freeGlobal(); - var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports; - var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module; - var moduleExports = freeModule && freeModule.exports === freeExports; - var freeProcess = moduleExports && freeGlobal.process; - var nodeUtil = function() { - try { - var types = freeModule && freeModule.require && freeModule.require("util").types; - if (types) { - return types; - } - return freeProcess && freeProcess.binding && freeProcess.binding("util"); - } catch (e) { - } - }(); - module.exports = nodeUtil; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isTypedArray.js - var require_isTypedArray = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isTypedArray.js"(exports, module) { - var baseIsTypedArray = require_baseIsTypedArray(); - var baseUnary = require_baseUnary(); - var nodeUtil = require_nodeUtil(); - var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; - var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; - module.exports = isTypedArray; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_arrayLikeKeys.js - var require_arrayLikeKeys = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_arrayLikeKeys.js"(exports, module) { - var baseTimes = require_baseTimes(); - var isArguments = require_isArguments(); - var isArray = require_isArray(); - var isBuffer = require_isBuffer(); - var isIndex = require_isIndex(); - var isTypedArray = require_isTypedArray(); - var objectProto = Object.prototype; - var hasOwnProperty = objectProto.hasOwnProperty; - function arrayLikeKeys(value, inherited) { - var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length; - for (var key in value) { - if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) { - result.push(key); - } - } - return result; - } - module.exports = arrayLikeKeys; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_isPrototype.js - var require_isPrototype = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_isPrototype.js"(exports, module) { - var objectProto = Object.prototype; - function isPrototype(value) { - var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto; - return value === proto; - } - module.exports = isPrototype; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_nativeKeysIn.js - var require_nativeKeysIn = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_nativeKeysIn.js"(exports, module) { - function nativeKeysIn(object) { - var result = []; - if (object != null) { - for (var key in Object(object)) { - result.push(key); - } - } - return result; - } - module.exports = nativeKeysIn; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseKeysIn.js - var require_baseKeysIn = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseKeysIn.js"(exports, module) { - var isObject = require_isObject(); - var isPrototype = require_isPrototype(); - var nativeKeysIn = require_nativeKeysIn(); - var objectProto = Object.prototype; - var hasOwnProperty = objectProto.hasOwnProperty; - function baseKeysIn(object) { - if (!isObject(object)) { - return nativeKeysIn(object); - } - var isProto = isPrototype(object), result = []; - for (var key in object) { - if (!(key == "constructor" && (isProto || !hasOwnProperty.call(object, key)))) { - result.push(key); - } - } - return result; - } - module.exports = baseKeysIn; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/keysIn.js - var require_keysIn = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/keysIn.js"(exports, module) { - var arrayLikeKeys = require_arrayLikeKeys(); - var baseKeysIn = require_baseKeysIn(); - var isArrayLike = require_isArrayLike(); - function keysIn(object) { - return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); - } - module.exports = keysIn; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/assignInWith.js - var require_assignInWith = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/assignInWith.js"(exports, module) { - var copyObject = require_copyObject(); - var createAssigner = require_createAssigner(); - var keysIn = require_keysIn(); - var assignInWith = createAssigner(function(object, source, srcIndex, customizer) { - copyObject(source, keysIn(source), object, customizer); - }); - module.exports = assignInWith; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_overArg.js - var require_overArg = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_overArg.js"(exports, module) { - function overArg(func, transform) { - return function(arg) { - return func(transform(arg)); - }; - } - module.exports = overArg; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_getPrototype.js - var require_getPrototype = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_getPrototype.js"(exports, module) { - var overArg = require_overArg(); - var getPrototype = overArg(Object.getPrototypeOf, Object); - module.exports = getPrototype; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isPlainObject.js - var require_isPlainObject = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isPlainObject.js"(exports, module) { - var baseGetTag = require_baseGetTag(); - var getPrototype = require_getPrototype(); - var isObjectLike = require_isObjectLike(); - var objectTag = "[object Object]"; - var funcProto = Function.prototype; - var objectProto = Object.prototype; - var funcToString = funcProto.toString; - var hasOwnProperty = objectProto.hasOwnProperty; - var objectCtorString = funcToString.call(Object); - function isPlainObject(value) { - if (!isObjectLike(value) || baseGetTag(value) != objectTag) { - return false; - } - var proto = getPrototype(value); - if (proto === null) { - return true; - } - var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor; - return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString; - } - module.exports = isPlainObject; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isError.js - var require_isError = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isError.js"(exports, module) { - var baseGetTag = require_baseGetTag(); - var isObjectLike = require_isObjectLike(); - var isPlainObject = require_isPlainObject(); - var domExcTag = "[object DOMException]"; - var errorTag = "[object Error]"; - function isError(value) { - if (!isObjectLike(value)) { - return false; - } - var tag = baseGetTag(value); - return tag == errorTag || tag == domExcTag || typeof value.message == "string" && typeof value.name == "string" && !isPlainObject(value); - } - module.exports = isError; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/attempt.js - var require_attempt = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/attempt.js"(exports, module) { - var apply = require_apply(); - var baseRest = require_baseRest(); - var isError = require_isError(); - var attempt = baseRest(function(func, args) { - try { - return apply(func, void 0, args); - } catch (e) { - return isError(e) ? e : new Error(e); - } - }); - module.exports = attempt; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_arrayMap.js - var require_arrayMap = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_arrayMap.js"(exports, module) { - function arrayMap(array, iteratee) { - var index2 = -1, length = array == null ? 0 : array.length, result = Array(length); - while (++index2 < length) { - result[index2] = iteratee(array[index2], index2, array); - } - return result; - } - module.exports = arrayMap; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseValues.js - var require_baseValues = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseValues.js"(exports, module) { - var arrayMap = require_arrayMap(); - function baseValues(object, props) { - return arrayMap(props, function(key) { - return object[key]; - }); - } - module.exports = baseValues; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_customDefaultsAssignIn.js - var require_customDefaultsAssignIn = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_customDefaultsAssignIn.js"(exports, module) { - var eq = require_eq(); - var objectProto = Object.prototype; - var hasOwnProperty = objectProto.hasOwnProperty; - function customDefaultsAssignIn(objValue, srcValue, key, object) { - if (objValue === void 0 || eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key)) { - return srcValue; - } - return objValue; - } - module.exports = customDefaultsAssignIn; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_escapeStringChar.js - var require_escapeStringChar = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_escapeStringChar.js"(exports, module) { - var stringEscapes = { - "\\": "\\", - "'": "'", - "\n": "n", - "\r": "r", - "\u2028": "u2028", - "\u2029": "u2029" - }; - function escapeStringChar(chr) { - return "\\" + stringEscapes[chr]; - } - module.exports = escapeStringChar; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_nativeKeys.js - var require_nativeKeys = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_nativeKeys.js"(exports, module) { - var overArg = require_overArg(); - var nativeKeys = overArg(Object.keys, Object); - module.exports = nativeKeys; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseKeys.js - var require_baseKeys = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseKeys.js"(exports, module) { - var isPrototype = require_isPrototype(); - var nativeKeys = require_nativeKeys(); - var objectProto = Object.prototype; - var hasOwnProperty = objectProto.hasOwnProperty; - function baseKeys(object) { - if (!isPrototype(object)) { - return nativeKeys(object); - } - var result = []; - for (var key in Object(object)) { - if (hasOwnProperty.call(object, key) && key != "constructor") { - result.push(key); - } - } - return result; - } - module.exports = baseKeys; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/keys.js - var require_keys = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/keys.js"(exports, module) { - var arrayLikeKeys = require_arrayLikeKeys(); - var baseKeys = require_baseKeys(); - var isArrayLike = require_isArrayLike(); - function keys(object) { - return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); - } - module.exports = keys; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_reInterpolate.js - var require_reInterpolate = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_reInterpolate.js"(exports, module) { - var reInterpolate = /<%=([\s\S]+?)%>/g; - module.exports = reInterpolate; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_basePropertyOf.js - var require_basePropertyOf = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_basePropertyOf.js"(exports, module) { - function basePropertyOf(object) { - return function(key) { - return object == null ? void 0 : object[key]; - }; - } - module.exports = basePropertyOf; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_escapeHtmlChar.js - var require_escapeHtmlChar = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_escapeHtmlChar.js"(exports, module) { - var basePropertyOf = require_basePropertyOf(); - var htmlEscapes = { - "&": "&", - "<": "<", - ">": ">", - '"': """, - "'": "'" - }; - var escapeHtmlChar = basePropertyOf(htmlEscapes); - module.exports = escapeHtmlChar; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isSymbol.js - var require_isSymbol = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isSymbol.js"(exports, module) { - var baseGetTag = require_baseGetTag(); - var isObjectLike = require_isObjectLike(); - var symbolTag = "[object Symbol]"; - function isSymbol(value) { - return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag; - } - module.exports = isSymbol; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseToString.js - var require_baseToString = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseToString.js"(exports, module) { - var Symbol2 = require_Symbol(); - var arrayMap = require_arrayMap(); - var isArray = require_isArray(); - var isSymbol = require_isSymbol(); - var INFINITY = 1 / 0; - var symbolProto = Symbol2 ? Symbol2.prototype : void 0; - var symbolToString = symbolProto ? symbolProto.toString : void 0; - function baseToString(value) { - if (typeof value == "string") { - return value; - } - if (isArray(value)) { - return arrayMap(value, baseToString) + ""; - } - if (isSymbol(value)) { - return symbolToString ? symbolToString.call(value) : ""; - } - var result = value + ""; - return result == "0" && 1 / value == -INFINITY ? "-0" : result; - } - module.exports = baseToString; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/toString.js - var require_toString = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/toString.js"(exports, module) { - var baseToString = require_baseToString(); - function toString(value) { - return value == null ? "" : baseToString(value); - } - module.exports = toString; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/escape.js - var require_escape = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/escape.js"(exports, module) { - var escapeHtmlChar = require_escapeHtmlChar(); - var toString = require_toString(); - var reUnescapedHtml = /[&<>"']/g; - var reHasUnescapedHtml = RegExp(reUnescapedHtml.source); - function escape(string) { - string = toString(string); - return string && reHasUnescapedHtml.test(string) ? string.replace(reUnescapedHtml, escapeHtmlChar) : string; - } - module.exports = escape; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_reEscape.js - var require_reEscape = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_reEscape.js"(exports, module) { - var reEscape = /<%-([\s\S]+?)%>/g; - module.exports = reEscape; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_reEvaluate.js - var require_reEvaluate = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_reEvaluate.js"(exports, module) { - var reEvaluate = /<%([\s\S]+?)%>/g; - module.exports = reEvaluate; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/templateSettings.js - var require_templateSettings = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/templateSettings.js"(exports, module) { - var escape = require_escape(); - var reEscape = require_reEscape(); - var reEvaluate = require_reEvaluate(); - var reInterpolate = require_reInterpolate(); - var templateSettings = { - "escape": reEscape, - "evaluate": reEvaluate, - "interpolate": reInterpolate, - "variable": "", - "imports": { - "_": {"escape": escape} - } - }; - module.exports = templateSettings; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/template.js - var require_template = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/template.js"(exports, module) { - var assignInWith = require_assignInWith(); - var attempt = require_attempt(); - var baseValues = require_baseValues(); - var customDefaultsAssignIn = require_customDefaultsAssignIn(); - var escapeStringChar = require_escapeStringChar(); - var isError = require_isError(); - var isIterateeCall = require_isIterateeCall(); - var keys = require_keys(); - var reInterpolate = require_reInterpolate(); - var templateSettings = require_templateSettings(); - var toString = require_toString(); - var INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`"; - var reEmptyStringLeading = /\b__p \+= '';/g; - var reEmptyStringMiddle = /\b(__p \+=) '' \+/g; - var reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g; - var reForbiddenIdentifierChars = /[()=,{}\[\]\/\s]/; - var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g; - var reNoMatch = /($^)/; - var reUnescapedString = /['\n\r\u2028\u2029\\]/g; - var objectProto = Object.prototype; - var hasOwnProperty = objectProto.hasOwnProperty; - function template(string, options, guard) { - var settings = templateSettings.imports._.templateSettings || templateSettings; - if (guard && isIterateeCall(string, options, guard)) { - options = void 0; - } - string = toString(string); - options = assignInWith({}, options, settings, customDefaultsAssignIn); - var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys); - var isEscaping, isEvaluating, index2 = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '"; - var reDelimiters = RegExp((options.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + "|" + (options.evaluate || reNoMatch).source + "|$", "g"); - var sourceURL = hasOwnProperty.call(options, "sourceURL") ? "//# sourceURL=" + (options.sourceURL + "").replace(/\s/g, " ") + "\n" : ""; - string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) { - interpolateValue || (interpolateValue = esTemplateValue); - source += string.slice(index2, offset).replace(reUnescapedString, escapeStringChar); - if (escapeValue) { - isEscaping = true; - source += "' +\n__e(" + escapeValue + ") +\n'"; - } - if (evaluateValue) { - isEvaluating = true; - source += "';\n" + evaluateValue + ";\n__p += '"; - } - if (interpolateValue) { - source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'"; - } - index2 = offset + match.length; - return match; - }); - source += "';\n"; - var variable = hasOwnProperty.call(options, "variable") && options.variable; - if (!variable) { - source = "with (obj) {\n" + source + "\n}\n"; - } else if (reForbiddenIdentifierChars.test(variable)) { - throw new Error(INVALID_TEMPL_VAR_ERROR_TEXT); - } - source = (isEvaluating ? source.replace(reEmptyStringLeading, "") : source).replace(reEmptyStringMiddle, "$1").replace(reEmptyStringTrailing, "$1;"); - source = "function(" + (variable || "obj") + ") {\n" + (variable ? "" : "obj || (obj = {});\n") + "var __t, __p = ''" + (isEscaping ? ", __e = _.escape" : "") + (isEvaluating ? ", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n" : ";\n") + source + "return __p\n}"; - var result = attempt(function() { - return Function(importsKeys, sourceURL + "return " + source).apply(void 0, importsValues); - }); - result.source = source; - if (isError(result)) { - throw result; - } - return result; - } - module.exports = template; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/through2-npm-4.0.2-da7b2da443-ac7430bd54.zip/node_modules/through2/through2.js - var require_through2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/through2-npm-4.0.2-da7b2da443-ac7430bd54.zip/node_modules/through2/through2.js"(exports, module) { - var {Transform: Transform3} = require_readable(); - function inherits(fn, sup) { - fn.super_ = sup; - fn.prototype = Object.create(sup.prototype, { - constructor: {value: fn, enumerable: false, writable: true, configurable: true} - }); - } - function through2(construct) { - return (options, transform, flush) => { - if (typeof options === "function") { - flush = transform; - transform = options; - options = {}; - } - if (typeof transform !== "function") { - transform = (chunk, enc, cb) => cb(null, chunk); - } - if (typeof flush !== "function") { - flush = null; - } - return construct(options, transform, flush); - }; - } - var make = through2((options, transform, flush) => { - const t2 = new Transform3(options); - t2._transform = transform; - if (flush) { - t2._flush = flush; - } - return t2; - }); - var ctor = through2((options, transform, flush) => { - function Through2(override) { - if (!(this instanceof Through2)) { - return new Through2(override); - } - this.options = Object.assign({}, options, override); - Transform3.call(this, this.options); - this._transform = transform; - if (flush) { - this._flush = flush; - } - } - inherits(Through2, Transform3); - return Through2; - }); - var obj = through2(function(options, transform, flush) { - const t2 = new Transform3(Object.assign({objectMode: true, highWaterMark: 16}, options)); - t2._transform = transform; - if (flush) { - t2._flush = flush; - } - return t2; - }); - module.exports = make; - module.exports.ctor = ctor; - module.exports.obj = obj; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/git-raw-commits-npm-2.0.11-b090f2f684-c178af4363.zip/node_modules/git-raw-commits/index.js - var require_git_raw_commits = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/git-raw-commits-npm-2.0.11-b090f2f684-c178af4363.zip/node_modules/git-raw-commits/index.js"(exports, module) { - "use strict"; - var dargs = require_dargs(); - var execFile = __require("child_process").execFile; - var split = require_split2(); - var stream = __require("stream"); - var template = require_template(); - var through = require_through2(); - var DELIMITER = "------------------------ >8 ------------------------"; - function normalizeExecOpts(execOpts) { - execOpts = execOpts || {}; - execOpts.cwd = execOpts.cwd || process.cwd(); - return execOpts; - } - function normalizeGitOpts(gitOpts) { - gitOpts = gitOpts || {}; - gitOpts.format = gitOpts.format || "%B"; - gitOpts.from = gitOpts.from || ""; - gitOpts.to = gitOpts.to || "HEAD"; - return gitOpts; - } - function getGitArgs(gitOpts) { - const gitFormat = template("--format=<%= format %>%n" + DELIMITER)(gitOpts); - const gitFromTo = [gitOpts.from, gitOpts.to].filter(Boolean).join(".."); - const gitArgs = ["log", gitFormat, gitFromTo].concat(dargs(gitOpts, { - excludes: ["debug", "from", "to", "format", "path"] - })); - if (gitOpts.path) { - gitArgs.push("--", gitOpts.path); - } - return gitArgs; - } - function gitRawCommits(rawGitOpts, rawExecOpts) { - const readable = new stream.Readable(); - readable._read = function() { - }; - const gitOpts = normalizeGitOpts(rawGitOpts); - const execOpts = normalizeExecOpts(rawExecOpts); - const args = getGitArgs(gitOpts); - if (gitOpts.debug) { - gitOpts.debug("Your git-log command is:\ngit " + args.join(" ")); - } - let isError = false; - const child = execFile("git", args, { - cwd: execOpts.cwd, - maxBuffer: Infinity - }); - child.stdout.pipe(split(DELIMITER + "\n")).pipe(through(function(chunk, enc, cb) { - readable.push(chunk); - isError = false; - cb(); - }, function(cb) { - setImmediate(function() { - if (!isError) { - readable.push(null); - readable.emit("close"); - } - cb(); - }); - })); - child.stderr.pipe(through.obj(function(chunk) { - isError = true; - readable.emit("error", new Error(chunk)); - readable.emit("close"); - })); - return readable; - } - module.exports = gitRawCommits; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/lodash.js - var require_lodash = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/lodash.js"(exports, module) { - (function() { - var undefined2; - var VERSION = "4.17.21"; - var LARGE_ARRAY_SIZE = 200; - var CORE_ERROR_TEXT = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", FUNC_ERROR_TEXT = "Expected a function", INVALID_TEMPL_VAR_ERROR_TEXT = "Invalid `variable` option passed into `_.template`"; - var HASH_UNDEFINED = "__lodash_hash_undefined__"; - var MAX_MEMOIZE_SIZE = 500; - var PLACEHOLDER = "__lodash_placeholder__"; - var CLONE_DEEP_FLAG = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG = 4; - var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2; - var WRAP_BIND_FLAG = 1, WRAP_BIND_KEY_FLAG = 2, WRAP_CURRY_BOUND_FLAG = 4, WRAP_CURRY_FLAG = 8, WRAP_CURRY_RIGHT_FLAG = 16, WRAP_PARTIAL_FLAG = 32, WRAP_PARTIAL_RIGHT_FLAG = 64, WRAP_ARY_FLAG = 128, WRAP_REARG_FLAG = 256, WRAP_FLIP_FLAG = 512; - var DEFAULT_TRUNC_LENGTH = 30, DEFAULT_TRUNC_OMISSION = "..."; - var HOT_COUNT = 800, HOT_SPAN = 16; - var LAZY_FILTER_FLAG = 1, LAZY_MAP_FLAG = 2, LAZY_WHILE_FLAG = 3; - var INFINITY = 1 / 0, MAX_SAFE_INTEGER = 9007199254740991, MAX_INTEGER = 17976931348623157e292, NAN = 0 / 0; - var MAX_ARRAY_LENGTH = 4294967295, MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1, HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1; - var wrapFlags = [ - ["ary", WRAP_ARY_FLAG], - ["bind", WRAP_BIND_FLAG], - ["bindKey", WRAP_BIND_KEY_FLAG], - ["curry", WRAP_CURRY_FLAG], - ["curryRight", WRAP_CURRY_RIGHT_FLAG], - ["flip", WRAP_FLIP_FLAG], - ["partial", WRAP_PARTIAL_FLAG], - ["partialRight", WRAP_PARTIAL_RIGHT_FLAG], - ["rearg", WRAP_REARG_FLAG] - ]; - var argsTag = "[object Arguments]", arrayTag = "[object Array]", asyncTag = "[object AsyncFunction]", boolTag = "[object Boolean]", dateTag = "[object Date]", domExcTag = "[object DOMException]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", nullTag = "[object Null]", objectTag = "[object Object]", promiseTag = "[object Promise]", proxyTag = "[object Proxy]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]", undefinedTag = "[object Undefined]", weakMapTag = "[object WeakMap]", weakSetTag = "[object WeakSet]"; - var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]"; - var reEmptyStringLeading = /\b__p \+= '';/g, reEmptyStringMiddle = /\b(__p \+=) '' \+/g, reEmptyStringTrailing = /(__e\(.*?\)|\b__t\)) \+\n'';/g; - var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g, reUnescapedHtml = /[&<>"']/g, reHasEscapedHtml = RegExp(reEscapedHtml.source), reHasUnescapedHtml = RegExp(reUnescapedHtml.source); - var reEscape = /<%-([\s\S]+?)%>/g, reEvaluate = /<%([\s\S]+?)%>/g, reInterpolate = /<%=([\s\S]+?)%>/g; - var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/, rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g; - var reRegExpChar = /[\\^$.*+?()[\]{}|]/g, reHasRegExpChar = RegExp(reRegExpChar.source); - var reTrimStart = /^\s+/; - var reWhitespace = /\s/; - var reWrapComment = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, reWrapDetails = /\{\n\/\* \[wrapped with (.+)\] \*/, reSplitDetails = /,? & /; - var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g; - var reForbiddenIdentifierChars = /[()=,{}\[\]\/\s]/; - var reEscapeChar = /\\(\\)?/g; - var reEsTemplate = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g; - var reFlags = /\w*$/; - var reIsBadHex = /^[-+]0x[0-9a-f]+$/i; - var reIsBinary = /^0b[01]+$/i; - var reIsHostCtor = /^\[object .+?Constructor\]$/; - var reIsOctal = /^0o[0-7]+$/i; - var reIsUint = /^(?:0|[1-9]\d*)$/; - var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g; - var reNoMatch = /($^)/; - var reUnescapedString = /['\n\r\u2028\u2029\\]/g; - var rsAstralRange = "\\ud800-\\udfff", rsComboMarksRange = "\\u0300-\\u036f", reComboHalfMarksRange = "\\ufe20-\\ufe2f", rsComboSymbolsRange = "\\u20d0-\\u20ff", rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange, rsDingbatRange = "\\u2700-\\u27bf", rsLowerRange = "a-z\\xdf-\\xf6\\xf8-\\xff", rsMathOpRange = "\\xac\\xb1\\xd7\\xf7", rsNonCharRange = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", rsPunctuationRange = "\\u2000-\\u206f", rsSpaceRange = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", rsUpperRange = "A-Z\\xc0-\\xd6\\xd8-\\xde", rsVarRange = "\\ufe0e\\ufe0f", rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange; - var rsApos = "['\u2019]", rsAstral = "[" + rsAstralRange + "]", rsBreak = "[" + rsBreakRange + "]", rsCombo = "[" + rsComboRange + "]", rsDigits = "\\d+", rsDingbat = "[" + rsDingbatRange + "]", rsLower = "[" + rsLowerRange + "]", rsMisc = "[^" + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + "]", rsFitz = "\\ud83c[\\udffb-\\udfff]", rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")", rsNonAstral = "[^" + rsAstralRange + "]", rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}", rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]", rsUpper = "[" + rsUpperRange + "]", rsZWJ = "\\u200d"; - var rsMiscLower = "(?:" + rsLower + "|" + rsMisc + ")", rsMiscUpper = "(?:" + rsUpper + "|" + rsMisc + ")", rsOptContrLower = "(?:" + rsApos + "(?:d|ll|m|re|s|t|ve))?", rsOptContrUpper = "(?:" + rsApos + "(?:D|LL|M|RE|S|T|VE))?", reOptMod = rsModifier + "?", rsOptVar = "[" + rsVarRange + "]?", rsOptJoin = "(?:" + rsZWJ + "(?:" + [rsNonAstral, rsRegional, rsSurrPair].join("|") + ")" + rsOptVar + reOptMod + ")*", rsOrdLower = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", rsOrdUpper = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", rsSeq = rsOptVar + reOptMod + rsOptJoin, rsEmoji = "(?:" + [rsDingbat, rsRegional, rsSurrPair].join("|") + ")" + rsSeq, rsSymbol = "(?:" + [rsNonAstral + rsCombo + "?", rsCombo, rsRegional, rsSurrPair, rsAstral].join("|") + ")"; - var reApos = RegExp(rsApos, "g"); - var reComboMark = RegExp(rsCombo, "g"); - var reUnicode = RegExp(rsFitz + "(?=" + rsFitz + ")|" + rsSymbol + rsSeq, "g"); - var reUnicodeWord = RegExp([ - rsUpper + "?" + rsLower + "+" + rsOptContrLower + "(?=" + [rsBreak, rsUpper, "$"].join("|") + ")", - rsMiscUpper + "+" + rsOptContrUpper + "(?=" + [rsBreak, rsUpper + rsMiscLower, "$"].join("|") + ")", - rsUpper + "?" + rsMiscLower + "+" + rsOptContrLower, - rsUpper + "+" + rsOptContrUpper, - rsOrdUpper, - rsOrdLower, - rsDigits, - rsEmoji - ].join("|"), "g"); - var reHasUnicode = RegExp("[" + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + "]"); - var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/; - var contextProps = [ - "Array", - "Buffer", - "DataView", - "Date", - "Error", - "Float32Array", - "Float64Array", - "Function", - "Int8Array", - "Int16Array", - "Int32Array", - "Map", - "Math", - "Object", - "Promise", - "RegExp", - "Set", - "String", - "Symbol", - "TypeError", - "Uint8Array", - "Uint8ClampedArray", - "Uint16Array", - "Uint32Array", - "WeakMap", - "_", - "clearTimeout", - "isFinite", - "parseInt", - "setTimeout" - ]; - var templateCounter = -1; - var typedArrayTags = {}; - typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true; - typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false; - var cloneableTags = {}; - cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true; - cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false; - var deburredLetters = { - "\xC0": "A", - "\xC1": "A", - "\xC2": "A", - "\xC3": "A", - "\xC4": "A", - "\xC5": "A", - "\xE0": "a", - "\xE1": "a", - "\xE2": "a", - "\xE3": "a", - "\xE4": "a", - "\xE5": "a", - "\xC7": "C", - "\xE7": "c", - "\xD0": "D", - "\xF0": "d", - "\xC8": "E", - "\xC9": "E", - "\xCA": "E", - "\xCB": "E", - "\xE8": "e", - "\xE9": "e", - "\xEA": "e", - "\xEB": "e", - "\xCC": "I", - "\xCD": "I", - "\xCE": "I", - "\xCF": "I", - "\xEC": "i", - "\xED": "i", - "\xEE": "i", - "\xEF": "i", - "\xD1": "N", - "\xF1": "n", - "\xD2": "O", - "\xD3": "O", - "\xD4": "O", - "\xD5": "O", - "\xD6": "O", - "\xD8": "O", - "\xF2": "o", - "\xF3": "o", - "\xF4": "o", - "\xF5": "o", - "\xF6": "o", - "\xF8": "o", - "\xD9": "U", - "\xDA": "U", - "\xDB": "U", - "\xDC": "U", - "\xF9": "u", - "\xFA": "u", - "\xFB": "u", - "\xFC": "u", - "\xDD": "Y", - "\xFD": "y", - "\xFF": "y", - "\xC6": "Ae", - "\xE6": "ae", - "\xDE": "Th", - "\xFE": "th", - "\xDF": "ss", - "\u0100": "A", - "\u0102": "A", - "\u0104": "A", - "\u0101": "a", - "\u0103": "a", - "\u0105": "a", - "\u0106": "C", - "\u0108": "C", - "\u010A": "C", - "\u010C": "C", - "\u0107": "c", - "\u0109": "c", - "\u010B": "c", - "\u010D": "c", - "\u010E": "D", - "\u0110": "D", - "\u010F": "d", - "\u0111": "d", - "\u0112": "E", - "\u0114": "E", - "\u0116": "E", - "\u0118": "E", - "\u011A": "E", - "\u0113": "e", - "\u0115": "e", - "\u0117": "e", - "\u0119": "e", - "\u011B": "e", - "\u011C": "G", - "\u011E": "G", - "\u0120": "G", - "\u0122": "G", - "\u011D": "g", - "\u011F": "g", - "\u0121": "g", - "\u0123": "g", - "\u0124": "H", - "\u0126": "H", - "\u0125": "h", - "\u0127": "h", - "\u0128": "I", - "\u012A": "I", - "\u012C": "I", - "\u012E": "I", - "\u0130": "I", - "\u0129": "i", - "\u012B": "i", - "\u012D": "i", - "\u012F": "i", - "\u0131": "i", - "\u0134": "J", - "\u0135": "j", - "\u0136": "K", - "\u0137": "k", - "\u0138": "k", - "\u0139": "L", - "\u013B": "L", - "\u013D": "L", - "\u013F": "L", - "\u0141": "L", - "\u013A": "l", - "\u013C": "l", - "\u013E": "l", - "\u0140": "l", - "\u0142": "l", - "\u0143": "N", - "\u0145": "N", - "\u0147": "N", - "\u014A": "N", - "\u0144": "n", - "\u0146": "n", - "\u0148": "n", - "\u014B": "n", - "\u014C": "O", - "\u014E": "O", - "\u0150": "O", - "\u014D": "o", - "\u014F": "o", - "\u0151": "o", - "\u0154": "R", - "\u0156": "R", - "\u0158": "R", - "\u0155": "r", - "\u0157": "r", - "\u0159": "r", - "\u015A": "S", - "\u015C": "S", - "\u015E": "S", - "\u0160": "S", - "\u015B": "s", - "\u015D": "s", - "\u015F": "s", - "\u0161": "s", - "\u0162": "T", - "\u0164": "T", - "\u0166": "T", - "\u0163": "t", - "\u0165": "t", - "\u0167": "t", - "\u0168": "U", - "\u016A": "U", - "\u016C": "U", - "\u016E": "U", - "\u0170": "U", - "\u0172": "U", - "\u0169": "u", - "\u016B": "u", - "\u016D": "u", - "\u016F": "u", - "\u0171": "u", - "\u0173": "u", - "\u0174": "W", - "\u0175": "w", - "\u0176": "Y", - "\u0177": "y", - "\u0178": "Y", - "\u0179": "Z", - "\u017B": "Z", - "\u017D": "Z", - "\u017A": "z", - "\u017C": "z", - "\u017E": "z", - "\u0132": "IJ", - "\u0133": "ij", - "\u0152": "Oe", - "\u0153": "oe", - "\u0149": "'n", - "\u017F": "s" - }; - var htmlEscapes = { - "&": "&", - "<": "<", - ">": ">", - '"': """, - "'": "'" - }; - var htmlUnescapes = { - "&": "&", - "<": "<", - ">": ">", - """: '"', - "'": "'" - }; - var stringEscapes = { - "\\": "\\", - "'": "'", - "\n": "n", - "\r": "r", - "\u2028": "u2028", - "\u2029": "u2029" - }; - var freeParseFloat = parseFloat, freeParseInt = parseInt; - var freeGlobal = typeof global == "object" && global && global.Object === Object && global; - var freeSelf = typeof self == "object" && self && self.Object === Object && self; - var root = freeGlobal || freeSelf || Function("return this")(); - var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports; - var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module; - var moduleExports = freeModule && freeModule.exports === freeExports; - var freeProcess = moduleExports && freeGlobal.process; - var nodeUtil = function() { - try { - var types = freeModule && freeModule.require && freeModule.require("util").types; - if (types) { - return types; - } - return freeProcess && freeProcess.binding && freeProcess.binding("util"); - } catch (e) { - } - }(); - var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer, nodeIsDate = nodeUtil && nodeUtil.isDate, nodeIsMap = nodeUtil && nodeUtil.isMap, nodeIsRegExp = nodeUtil && nodeUtil.isRegExp, nodeIsSet = nodeUtil && nodeUtil.isSet, nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; - function apply(func, thisArg, args) { - switch (args.length) { - case 0: - return func.call(thisArg); - case 1: - return func.call(thisArg, args[0]); - case 2: - return func.call(thisArg, args[0], args[1]); - case 3: - return func.call(thisArg, args[0], args[1], args[2]); - } - return func.apply(thisArg, args); - } - function arrayAggregator(array, setter, iteratee, accumulator) { - var index2 = -1, length = array == null ? 0 : array.length; - while (++index2 < length) { - var value = array[index2]; - setter(accumulator, value, iteratee(value), array); - } - return accumulator; - } - function arrayEach(array, iteratee) { - var index2 = -1, length = array == null ? 0 : array.length; - while (++index2 < length) { - if (iteratee(array[index2], index2, array) === false) { - break; - } - } - return array; - } - function arrayEachRight(array, iteratee) { - var length = array == null ? 0 : array.length; - while (length--) { - if (iteratee(array[length], length, array) === false) { - break; - } - } - return array; - } - function arrayEvery(array, predicate) { - var index2 = -1, length = array == null ? 0 : array.length; - while (++index2 < length) { - if (!predicate(array[index2], index2, array)) { - return false; - } - } - return true; - } - function arrayFilter(array, predicate) { - var index2 = -1, length = array == null ? 0 : array.length, resIndex = 0, result = []; - while (++index2 < length) { - var value = array[index2]; - if (predicate(value, index2, array)) { - result[resIndex++] = value; - } - } - return result; - } - function arrayIncludes(array, value) { - var length = array == null ? 0 : array.length; - return !!length && baseIndexOf(array, value, 0) > -1; - } - function arrayIncludesWith(array, value, comparator) { - var index2 = -1, length = array == null ? 0 : array.length; - while (++index2 < length) { - if (comparator(value, array[index2])) { - return true; - } - } - return false; - } - function arrayMap(array, iteratee) { - var index2 = -1, length = array == null ? 0 : array.length, result = Array(length); - while (++index2 < length) { - result[index2] = iteratee(array[index2], index2, array); - } - return result; - } - function arrayPush(array, values) { - var index2 = -1, length = values.length, offset = array.length; - while (++index2 < length) { - array[offset + index2] = values[index2]; - } - return array; - } - function arrayReduce(array, iteratee, accumulator, initAccum) { - var index2 = -1, length = array == null ? 0 : array.length; - if (initAccum && length) { - accumulator = array[++index2]; - } - while (++index2 < length) { - accumulator = iteratee(accumulator, array[index2], index2, array); - } - return accumulator; - } - function arrayReduceRight(array, iteratee, accumulator, initAccum) { - var length = array == null ? 0 : array.length; - if (initAccum && length) { - accumulator = array[--length]; - } - while (length--) { - accumulator = iteratee(accumulator, array[length], length, array); - } - return accumulator; - } - function arraySome(array, predicate) { - var index2 = -1, length = array == null ? 0 : array.length; - while (++index2 < length) { - if (predicate(array[index2], index2, array)) { - return true; - } - } - return false; - } - var asciiSize = baseProperty("length"); - function asciiToArray(string) { - return string.split(""); - } - function asciiWords(string) { - return string.match(reAsciiWord) || []; - } - function baseFindKey(collection, predicate, eachFunc) { - var result; - eachFunc(collection, function(value, key, collection2) { - if (predicate(value, key, collection2)) { - result = key; - return false; - } - }); - return result; - } - function baseFindIndex(array, predicate, fromIndex, fromRight) { - var length = array.length, index2 = fromIndex + (fromRight ? 1 : -1); - while (fromRight ? index2-- : ++index2 < length) { - if (predicate(array[index2], index2, array)) { - return index2; - } - } - return -1; - } - function baseIndexOf(array, value, fromIndex) { - return value === value ? strictIndexOf(array, value, fromIndex) : baseFindIndex(array, baseIsNaN, fromIndex); - } - function baseIndexOfWith(array, value, fromIndex, comparator) { - var index2 = fromIndex - 1, length = array.length; - while (++index2 < length) { - if (comparator(array[index2], value)) { - return index2; - } - } - return -1; - } - function baseIsNaN(value) { - return value !== value; - } - function baseMean(array, iteratee) { - var length = array == null ? 0 : array.length; - return length ? baseSum(array, iteratee) / length : NAN; - } - function baseProperty(key) { - return function(object) { - return object == null ? undefined2 : object[key]; - }; - } - function basePropertyOf(object) { - return function(key) { - return object == null ? undefined2 : object[key]; - }; - } - function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) { - eachFunc(collection, function(value, index2, collection2) { - accumulator = initAccum ? (initAccum = false, value) : iteratee(accumulator, value, index2, collection2); - }); - return accumulator; - } - function baseSortBy(array, comparer) { - var length = array.length; - array.sort(comparer); - while (length--) { - array[length] = array[length].value; - } - return array; - } - function baseSum(array, iteratee) { - var result, index2 = -1, length = array.length; - while (++index2 < length) { - var current = iteratee(array[index2]); - if (current !== undefined2) { - result = result === undefined2 ? current : result + current; - } - } - return result; - } - function baseTimes(n, iteratee) { - var index2 = -1, result = Array(n); - while (++index2 < n) { - result[index2] = iteratee(index2); - } - return result; - } - function baseToPairs(object, props) { - return arrayMap(props, function(key) { - return [key, object[key]]; - }); - } - function baseTrim(string) { - return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string; - } - function baseUnary(func) { - return function(value) { - return func(value); - }; - } - function baseValues(object, props) { - return arrayMap(props, function(key) { - return object[key]; - }); - } - function cacheHas(cache, key) { - return cache.has(key); - } - function charsStartIndex(strSymbols, chrSymbols) { - var index2 = -1, length = strSymbols.length; - while (++index2 < length && baseIndexOf(chrSymbols, strSymbols[index2], 0) > -1) { - } - return index2; - } - function charsEndIndex(strSymbols, chrSymbols) { - var index2 = strSymbols.length; - while (index2-- && baseIndexOf(chrSymbols, strSymbols[index2], 0) > -1) { - } - return index2; - } - function countHolders(array, placeholder) { - var length = array.length, result = 0; - while (length--) { - if (array[length] === placeholder) { - ++result; - } - } - return result; - } - var deburrLetter = basePropertyOf(deburredLetters); - var escapeHtmlChar = basePropertyOf(htmlEscapes); - function escapeStringChar(chr) { - return "\\" + stringEscapes[chr]; - } - function getValue(object, key) { - return object == null ? undefined2 : object[key]; - } - function hasUnicode(string) { - return reHasUnicode.test(string); - } - function hasUnicodeWord(string) { - return reHasUnicodeWord.test(string); - } - function iteratorToArray(iterator) { - var data, result = []; - while (!(data = iterator.next()).done) { - result.push(data.value); - } - return result; - } - function mapToArray(map) { - var index2 = -1, result = Array(map.size); - map.forEach(function(value, key) { - result[++index2] = [key, value]; - }); - return result; - } - function overArg(func, transform) { - return function(arg) { - return func(transform(arg)); - }; - } - function replaceHolders(array, placeholder) { - var index2 = -1, length = array.length, resIndex = 0, result = []; - while (++index2 < length) { - var value = array[index2]; - if (value === placeholder || value === PLACEHOLDER) { - array[index2] = PLACEHOLDER; - result[resIndex++] = index2; - } - } - return result; - } - function setToArray(set) { - var index2 = -1, result = Array(set.size); - set.forEach(function(value) { - result[++index2] = value; - }); - return result; - } - function setToPairs(set) { - var index2 = -1, result = Array(set.size); - set.forEach(function(value) { - result[++index2] = [value, value]; - }); - return result; - } - function strictIndexOf(array, value, fromIndex) { - var index2 = fromIndex - 1, length = array.length; - while (++index2 < length) { - if (array[index2] === value) { - return index2; - } - } - return -1; - } - function strictLastIndexOf(array, value, fromIndex) { - var index2 = fromIndex + 1; - while (index2--) { - if (array[index2] === value) { - return index2; - } - } - return index2; - } - function stringSize(string) { - return hasUnicode(string) ? unicodeSize(string) : asciiSize(string); - } - function stringToArray(string) { - return hasUnicode(string) ? unicodeToArray(string) : asciiToArray(string); - } - function trimmedEndIndex(string) { - var index2 = string.length; - while (index2-- && reWhitespace.test(string.charAt(index2))) { - } - return index2; - } - var unescapeHtmlChar = basePropertyOf(htmlUnescapes); - function unicodeSize(string) { - var result = reUnicode.lastIndex = 0; - while (reUnicode.test(string)) { - ++result; - } - return result; - } - function unicodeToArray(string) { - return string.match(reUnicode) || []; - } - function unicodeWords(string) { - return string.match(reUnicodeWord) || []; - } - var runInContext = function runInContext2(context) { - context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps)); - var Array2 = context.Array, Date2 = context.Date, Error2 = context.Error, Function2 = context.Function, Math2 = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String2 = context.String, TypeError2 = context.TypeError; - var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype; - var coreJsData = context["__core-js_shared__"]; - var funcToString = funcProto.toString; - var hasOwnProperty = objectProto.hasOwnProperty; - var idCounter = 0; - var maskSrcKey = function() { - var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ""); - return uid ? "Symbol(src)_1." + uid : ""; - }(); - var nativeObjectToString = objectProto.toString; - var objectCtorString = funcToString.call(Object2); - var oldDash = root._; - var reIsNative = RegExp2("^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"); - var Buffer2 = moduleExports ? context.Buffer : undefined2, Symbol2 = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : undefined2, getPrototype = overArg(Object2.getPrototypeOf, Object2), objectCreate = Object2.create, propertyIsEnumerable = objectProto.propertyIsEnumerable, splice = arrayProto.splice, spreadableSymbol = Symbol2 ? Symbol2.isConcatSpreadable : undefined2, symIterator = Symbol2 ? Symbol2.iterator : undefined2, symToStringTag = Symbol2 ? Symbol2.toStringTag : undefined2; - var defineProperty = function() { - try { - var func = getNative(Object2, "defineProperty"); - func({}, "", {}); - return func; - } catch (e) { - } - }(); - var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout, ctxNow = Date2 && Date2.now !== root.Date.now && Date2.now, ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout; - var nativeCeil = Math2.ceil, nativeFloor = Math2.floor, nativeGetSymbols = Object2.getOwnPropertySymbols, nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : undefined2, nativeIsFinite = context.isFinite, nativeJoin = arrayProto.join, nativeKeys = overArg(Object2.keys, Object2), nativeMax = Math2.max, nativeMin = Math2.min, nativeNow = Date2.now, nativeParseInt = context.parseInt, nativeRandom = Math2.random, nativeReverse = arrayProto.reverse; - var DataView = getNative(context, "DataView"), Map2 = getNative(context, "Map"), Promise2 = getNative(context, "Promise"), Set2 = getNative(context, "Set"), WeakMap = getNative(context, "WeakMap"), nativeCreate = getNative(Object2, "create"); - var metaMap = WeakMap && new WeakMap(); - var realNames = {}; - var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set2), weakMapCtorString = toSource(WeakMap); - var symbolProto = Symbol2 ? Symbol2.prototype : undefined2, symbolValueOf = symbolProto ? symbolProto.valueOf : undefined2, symbolToString = symbolProto ? symbolProto.toString : undefined2; - function lodash(value) { - if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) { - if (value instanceof LodashWrapper) { - return value; - } - if (hasOwnProperty.call(value, "__wrapped__")) { - return wrapperClone(value); - } - } - return new LodashWrapper(value); - } - var baseCreate = function() { - function object() { - } - return function(proto) { - if (!isObject(proto)) { - return {}; - } - if (objectCreate) { - return objectCreate(proto); - } - object.prototype = proto; - var result2 = new object(); - object.prototype = undefined2; - return result2; - }; - }(); - function baseLodash() { - } - function LodashWrapper(value, chainAll) { - this.__wrapped__ = value; - this.__actions__ = []; - this.__chain__ = !!chainAll; - this.__index__ = 0; - this.__values__ = undefined2; - } - lodash.templateSettings = { - "escape": reEscape, - "evaluate": reEvaluate, - "interpolate": reInterpolate, - "variable": "", - "imports": { - "_": lodash - } - }; - lodash.prototype = baseLodash.prototype; - lodash.prototype.constructor = lodash; - LodashWrapper.prototype = baseCreate(baseLodash.prototype); - LodashWrapper.prototype.constructor = LodashWrapper; - function LazyWrapper(value) { - this.__wrapped__ = value; - this.__actions__ = []; - this.__dir__ = 1; - this.__filtered__ = false; - this.__iteratees__ = []; - this.__takeCount__ = MAX_ARRAY_LENGTH; - this.__views__ = []; - } - function lazyClone() { - var result2 = new LazyWrapper(this.__wrapped__); - result2.__actions__ = copyArray(this.__actions__); - result2.__dir__ = this.__dir__; - result2.__filtered__ = this.__filtered__; - result2.__iteratees__ = copyArray(this.__iteratees__); - result2.__takeCount__ = this.__takeCount__; - result2.__views__ = copyArray(this.__views__); - return result2; - } - function lazyReverse() { - if (this.__filtered__) { - var result2 = new LazyWrapper(this); - result2.__dir__ = -1; - result2.__filtered__ = true; - } else { - result2 = this.clone(); - result2.__dir__ *= -1; - } - return result2; - } - function lazyValue() { - var array = this.__wrapped__.value(), dir = this.__dir__, isArr = isArray(array), isRight = dir < 0, arrLength = isArr ? array.length : 0, view = getView(0, arrLength, this.__views__), start = view.start, end = view.end, length = end - start, index2 = isRight ? end : start - 1, iteratees = this.__iteratees__, iterLength = iteratees.length, resIndex = 0, takeCount = nativeMin(length, this.__takeCount__); - if (!isArr || !isRight && arrLength == length && takeCount == length) { - return baseWrapperValue(array, this.__actions__); - } - var result2 = []; - outer: - while (length-- && resIndex < takeCount) { - index2 += dir; - var iterIndex = -1, value = array[index2]; - while (++iterIndex < iterLength) { - var data = iteratees[iterIndex], iteratee2 = data.iteratee, type = data.type, computed = iteratee2(value); - if (type == LAZY_MAP_FLAG) { - value = computed; - } else if (!computed) { - if (type == LAZY_FILTER_FLAG) { - continue outer; - } else { - break outer; - } - } - } - result2[resIndex++] = value; - } - return result2; - } - LazyWrapper.prototype = baseCreate(baseLodash.prototype); - LazyWrapper.prototype.constructor = LazyWrapper; - function Hash(entries) { - var index2 = -1, length = entries == null ? 0 : entries.length; - this.clear(); - while (++index2 < length) { - var entry = entries[index2]; - this.set(entry[0], entry[1]); - } - } - function hashClear() { - this.__data__ = nativeCreate ? nativeCreate(null) : {}; - this.size = 0; - } - function hashDelete(key) { - var result2 = this.has(key) && delete this.__data__[key]; - this.size -= result2 ? 1 : 0; - return result2; - } - function hashGet(key) { - var data = this.__data__; - if (nativeCreate) { - var result2 = data[key]; - return result2 === HASH_UNDEFINED ? undefined2 : result2; - } - return hasOwnProperty.call(data, key) ? data[key] : undefined2; - } - function hashHas(key) { - var data = this.__data__; - return nativeCreate ? data[key] !== undefined2 : hasOwnProperty.call(data, key); - } - function hashSet(key, value) { - var data = this.__data__; - this.size += this.has(key) ? 0 : 1; - data[key] = nativeCreate && value === undefined2 ? HASH_UNDEFINED : value; - return this; - } - Hash.prototype.clear = hashClear; - Hash.prototype["delete"] = hashDelete; - Hash.prototype.get = hashGet; - Hash.prototype.has = hashHas; - Hash.prototype.set = hashSet; - function ListCache(entries) { - var index2 = -1, length = entries == null ? 0 : entries.length; - this.clear(); - while (++index2 < length) { - var entry = entries[index2]; - this.set(entry[0], entry[1]); - } - } - function listCacheClear() { - this.__data__ = []; - this.size = 0; - } - function listCacheDelete(key) { - var data = this.__data__, index2 = assocIndexOf(data, key); - if (index2 < 0) { - return false; - } - var lastIndex = data.length - 1; - if (index2 == lastIndex) { - data.pop(); - } else { - splice.call(data, index2, 1); - } - --this.size; - return true; - } - function listCacheGet(key) { - var data = this.__data__, index2 = assocIndexOf(data, key); - return index2 < 0 ? undefined2 : data[index2][1]; - } - function listCacheHas(key) { - return assocIndexOf(this.__data__, key) > -1; - } - function listCacheSet(key, value) { - var data = this.__data__, index2 = assocIndexOf(data, key); - if (index2 < 0) { - ++this.size; - data.push([key, value]); - } else { - data[index2][1] = value; - } - return this; - } - ListCache.prototype.clear = listCacheClear; - ListCache.prototype["delete"] = listCacheDelete; - ListCache.prototype.get = listCacheGet; - ListCache.prototype.has = listCacheHas; - ListCache.prototype.set = listCacheSet; - function MapCache(entries) { - var index2 = -1, length = entries == null ? 0 : entries.length; - this.clear(); - while (++index2 < length) { - var entry = entries[index2]; - this.set(entry[0], entry[1]); - } - } - function mapCacheClear() { - this.size = 0; - this.__data__ = { - "hash": new Hash(), - "map": new (Map2 || ListCache)(), - "string": new Hash() - }; - } - function mapCacheDelete(key) { - var result2 = getMapData(this, key)["delete"](key); - this.size -= result2 ? 1 : 0; - return result2; - } - function mapCacheGet(key) { - return getMapData(this, key).get(key); - } - function mapCacheHas(key) { - return getMapData(this, key).has(key); - } - function mapCacheSet(key, value) { - var data = getMapData(this, key), size2 = data.size; - data.set(key, value); - this.size += data.size == size2 ? 0 : 1; - return this; - } - MapCache.prototype.clear = mapCacheClear; - MapCache.prototype["delete"] = mapCacheDelete; - MapCache.prototype.get = mapCacheGet; - MapCache.prototype.has = mapCacheHas; - MapCache.prototype.set = mapCacheSet; - function SetCache(values2) { - var index2 = -1, length = values2 == null ? 0 : values2.length; - this.__data__ = new MapCache(); - while (++index2 < length) { - this.add(values2[index2]); - } - } - function setCacheAdd(value) { - this.__data__.set(value, HASH_UNDEFINED); - return this; - } - function setCacheHas(value) { - return this.__data__.has(value); - } - SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; - SetCache.prototype.has = setCacheHas; - function Stack(entries) { - var data = this.__data__ = new ListCache(entries); - this.size = data.size; - } - function stackClear() { - this.__data__ = new ListCache(); - this.size = 0; - } - function stackDelete(key) { - var data = this.__data__, result2 = data["delete"](key); - this.size = data.size; - return result2; - } - function stackGet(key) { - return this.__data__.get(key); - } - function stackHas(key) { - return this.__data__.has(key); - } - function stackSet(key, value) { - var data = this.__data__; - if (data instanceof ListCache) { - var pairs = data.__data__; - if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) { - pairs.push([key, value]); - this.size = ++data.size; - return this; - } - data = this.__data__ = new MapCache(pairs); - } - data.set(key, value); - this.size = data.size; - return this; - } - Stack.prototype.clear = stackClear; - Stack.prototype["delete"] = stackDelete; - Stack.prototype.get = stackGet; - Stack.prototype.has = stackHas; - Stack.prototype.set = stackSet; - function arrayLikeKeys(value, inherited) { - var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result2 = skipIndexes ? baseTimes(value.length, String2) : [], length = result2.length; - for (var key in value) { - if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) { - result2.push(key); - } - } - return result2; - } - function arraySample(array) { - var length = array.length; - return length ? array[baseRandom(0, length - 1)] : undefined2; - } - function arraySampleSize(array, n) { - return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length)); - } - function arrayShuffle(array) { - return shuffleSelf(copyArray(array)); - } - function assignMergeValue(object, key, value) { - if (value !== undefined2 && !eq(object[key], value) || value === undefined2 && !(key in object)) { - baseAssignValue(object, key, value); - } - } - function assignValue(object, key, value) { - var objValue = object[key]; - if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || value === undefined2 && !(key in object)) { - baseAssignValue(object, key, value); - } - } - function assocIndexOf(array, key) { - var length = array.length; - while (length--) { - if (eq(array[length][0], key)) { - return length; - } - } - return -1; - } - function baseAggregator(collection, setter, iteratee2, accumulator) { - baseEach(collection, function(value, key, collection2) { - setter(accumulator, value, iteratee2(value), collection2); - }); - return accumulator; - } - function baseAssign(object, source) { - return object && copyObject(source, keys(source), object); - } - function baseAssignIn(object, source) { - return object && copyObject(source, keysIn(source), object); - } - function baseAssignValue(object, key, value) { - if (key == "__proto__" && defineProperty) { - defineProperty(object, key, { - "configurable": true, - "enumerable": true, - "value": value, - "writable": true - }); - } else { - object[key] = value; - } - } - function baseAt(object, paths) { - var index2 = -1, length = paths.length, result2 = Array2(length), skip = object == null; - while (++index2 < length) { - result2[index2] = skip ? undefined2 : get(object, paths[index2]); - } - return result2; - } - function baseClamp(number, lower, upper) { - if (number === number) { - if (upper !== undefined2) { - number = number <= upper ? number : upper; - } - if (lower !== undefined2) { - number = number >= lower ? number : lower; - } - } - return number; - } - function baseClone(value, bitmask, customizer, key, object, stack) { - var result2, isDeep = bitmask & CLONE_DEEP_FLAG, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG; - if (customizer) { - result2 = object ? customizer(value, key, object, stack) : customizer(value); - } - if (result2 !== undefined2) { - return result2; - } - if (!isObject(value)) { - return value; - } - var isArr = isArray(value); - if (isArr) { - result2 = initCloneArray(value); - if (!isDeep) { - return copyArray(value, result2); - } - } else { - var tag = getTag(value), isFunc = tag == funcTag || tag == genTag; - if (isBuffer(value)) { - return cloneBuffer(value, isDeep); - } - if (tag == objectTag || tag == argsTag || isFunc && !object) { - result2 = isFlat || isFunc ? {} : initCloneObject(value); - if (!isDeep) { - return isFlat ? copySymbolsIn(value, baseAssignIn(result2, value)) : copySymbols(value, baseAssign(result2, value)); - } - } else { - if (!cloneableTags[tag]) { - return object ? value : {}; - } - result2 = initCloneByTag(value, tag, isDeep); - } - } - stack || (stack = new Stack()); - var stacked = stack.get(value); - if (stacked) { - return stacked; - } - stack.set(value, result2); - if (isSet(value)) { - value.forEach(function(subValue) { - result2.add(baseClone(subValue, bitmask, customizer, subValue, value, stack)); - }); - } else if (isMap(value)) { - value.forEach(function(subValue, key2) { - result2.set(key2, baseClone(subValue, bitmask, customizer, key2, value, stack)); - }); - } - var keysFunc = isFull ? isFlat ? getAllKeysIn : getAllKeys : isFlat ? keysIn : keys; - var props = isArr ? undefined2 : keysFunc(value); - arrayEach(props || value, function(subValue, key2) { - if (props) { - key2 = subValue; - subValue = value[key2]; - } - assignValue(result2, key2, baseClone(subValue, bitmask, customizer, key2, value, stack)); - }); - return result2; - } - function baseConforms(source) { - var props = keys(source); - return function(object) { - return baseConformsTo(object, source, props); - }; - } - function baseConformsTo(object, source, props) { - var length = props.length; - if (object == null) { - return !length; - } - object = Object2(object); - while (length--) { - var key = props[length], predicate = source[key], value = object[key]; - if (value === undefined2 && !(key in object) || !predicate(value)) { - return false; - } - } - return true; - } - function baseDelay(func, wait, args) { - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - return setTimeout2(function() { - func.apply(undefined2, args); - }, wait); - } - function baseDifference(array, values2, iteratee2, comparator) { - var index2 = -1, includes2 = arrayIncludes, isCommon = true, length = array.length, result2 = [], valuesLength = values2.length; - if (!length) { - return result2; - } - if (iteratee2) { - values2 = arrayMap(values2, baseUnary(iteratee2)); - } - if (comparator) { - includes2 = arrayIncludesWith; - isCommon = false; - } else if (values2.length >= LARGE_ARRAY_SIZE) { - includes2 = cacheHas; - isCommon = false; - values2 = new SetCache(values2); - } - outer: - while (++index2 < length) { - var value = array[index2], computed = iteratee2 == null ? value : iteratee2(value); - value = comparator || value !== 0 ? value : 0; - if (isCommon && computed === computed) { - var valuesIndex = valuesLength; - while (valuesIndex--) { - if (values2[valuesIndex] === computed) { - continue outer; - } - } - result2.push(value); - } else if (!includes2(values2, computed, comparator)) { - result2.push(value); - } - } - return result2; - } - var baseEach = createBaseEach(baseForOwn); - var baseEachRight = createBaseEach(baseForOwnRight, true); - function baseEvery(collection, predicate) { - var result2 = true; - baseEach(collection, function(value, index2, collection2) { - result2 = !!predicate(value, index2, collection2); - return result2; - }); - return result2; - } - function baseExtremum(array, iteratee2, comparator) { - var index2 = -1, length = array.length; - while (++index2 < length) { - var value = array[index2], current = iteratee2(value); - if (current != null && (computed === undefined2 ? current === current && !isSymbol(current) : comparator(current, computed))) { - var computed = current, result2 = value; - } - } - return result2; - } - function baseFill(array, value, start, end) { - var length = array.length; - start = toInteger(start); - if (start < 0) { - start = -start > length ? 0 : length + start; - } - end = end === undefined2 || end > length ? length : toInteger(end); - if (end < 0) { - end += length; - } - end = start > end ? 0 : toLength(end); - while (start < end) { - array[start++] = value; - } - return array; - } - function baseFilter(collection, predicate) { - var result2 = []; - baseEach(collection, function(value, index2, collection2) { - if (predicate(value, index2, collection2)) { - result2.push(value); - } - }); - return result2; - } - function baseFlatten(array, depth, predicate, isStrict, result2) { - var index2 = -1, length = array.length; - predicate || (predicate = isFlattenable); - result2 || (result2 = []); - while (++index2 < length) { - var value = array[index2]; - if (depth > 0 && predicate(value)) { - if (depth > 1) { - baseFlatten(value, depth - 1, predicate, isStrict, result2); - } else { - arrayPush(result2, value); - } - } else if (!isStrict) { - result2[result2.length] = value; - } - } - return result2; - } - var baseFor = createBaseFor(); - var baseForRight = createBaseFor(true); - function baseForOwn(object, iteratee2) { - return object && baseFor(object, iteratee2, keys); - } - function baseForOwnRight(object, iteratee2) { - return object && baseForRight(object, iteratee2, keys); - } - function baseFunctions(object, props) { - return arrayFilter(props, function(key) { - return isFunction(object[key]); - }); - } - function baseGet(object, path) { - path = castPath(path, object); - var index2 = 0, length = path.length; - while (object != null && index2 < length) { - object = object[toKey(path[index2++])]; - } - return index2 && index2 == length ? object : undefined2; - } - function baseGetAllKeys(object, keysFunc, symbolsFunc) { - var result2 = keysFunc(object); - return isArray(object) ? result2 : arrayPush(result2, symbolsFunc(object)); - } - function baseGetTag(value) { - if (value == null) { - return value === undefined2 ? undefinedTag : nullTag; - } - return symToStringTag && symToStringTag in Object2(value) ? getRawTag(value) : objectToString(value); - } - function baseGt(value, other) { - return value > other; - } - function baseHas(object, key) { - return object != null && hasOwnProperty.call(object, key); - } - function baseHasIn(object, key) { - return object != null && key in Object2(object); - } - function baseInRange(number, start, end) { - return number >= nativeMin(start, end) && number < nativeMax(start, end); - } - function baseIntersection(arrays, iteratee2, comparator) { - var includes2 = comparator ? arrayIncludesWith : arrayIncludes, length = arrays[0].length, othLength = arrays.length, othIndex = othLength, caches = Array2(othLength), maxLength = Infinity, result2 = []; - while (othIndex--) { - var array = arrays[othIndex]; - if (othIndex && iteratee2) { - array = arrayMap(array, baseUnary(iteratee2)); - } - maxLength = nativeMin(array.length, maxLength); - caches[othIndex] = !comparator && (iteratee2 || length >= 120 && array.length >= 120) ? new SetCache(othIndex && array) : undefined2; - } - array = arrays[0]; - var index2 = -1, seen = caches[0]; - outer: - while (++index2 < length && result2.length < maxLength) { - var value = array[index2], computed = iteratee2 ? iteratee2(value) : value; - value = comparator || value !== 0 ? value : 0; - if (!(seen ? cacheHas(seen, computed) : includes2(result2, computed, comparator))) { - othIndex = othLength; - while (--othIndex) { - var cache = caches[othIndex]; - if (!(cache ? cacheHas(cache, computed) : includes2(arrays[othIndex], computed, comparator))) { - continue outer; - } - } - if (seen) { - seen.push(computed); - } - result2.push(value); - } - } - return result2; - } - function baseInverter(object, setter, iteratee2, accumulator) { - baseForOwn(object, function(value, key, object2) { - setter(accumulator, iteratee2(value), key, object2); - }); - return accumulator; - } - function baseInvoke(object, path, args) { - path = castPath(path, object); - object = parent(object, path); - var func = object == null ? object : object[toKey(last(path))]; - return func == null ? undefined2 : apply(func, object, args); - } - function baseIsArguments(value) { - return isObjectLike(value) && baseGetTag(value) == argsTag; - } - function baseIsArrayBuffer(value) { - return isObjectLike(value) && baseGetTag(value) == arrayBufferTag; - } - function baseIsDate(value) { - return isObjectLike(value) && baseGetTag(value) == dateTag; - } - function baseIsEqual(value, other, bitmask, customizer, stack) { - if (value === other) { - return true; - } - if (value == null || other == null || !isObjectLike(value) && !isObjectLike(other)) { - return value !== value && other !== other; - } - return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack); - } - function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) { - var objIsArr = isArray(object), othIsArr = isArray(other), objTag = objIsArr ? arrayTag : getTag(object), othTag = othIsArr ? arrayTag : getTag(other); - objTag = objTag == argsTag ? objectTag : objTag; - othTag = othTag == argsTag ? objectTag : othTag; - var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag; - if (isSameTag && isBuffer(object)) { - if (!isBuffer(other)) { - return false; - } - objIsArr = true; - objIsObj = false; - } - if (isSameTag && !objIsObj) { - stack || (stack = new Stack()); - return objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack); - } - if (!(bitmask & COMPARE_PARTIAL_FLAG)) { - var objIsWrapped = objIsObj && hasOwnProperty.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty.call(other, "__wrapped__"); - if (objIsWrapped || othIsWrapped) { - var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other; - stack || (stack = new Stack()); - return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack); - } - } - if (!isSameTag) { - return false; - } - stack || (stack = new Stack()); - return equalObjects(object, other, bitmask, customizer, equalFunc, stack); - } - function baseIsMap(value) { - return isObjectLike(value) && getTag(value) == mapTag; - } - function baseIsMatch(object, source, matchData, customizer) { - var index2 = matchData.length, length = index2, noCustomizer = !customizer; - if (object == null) { - return !length; - } - object = Object2(object); - while (index2--) { - var data = matchData[index2]; - if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) { - return false; - } - } - while (++index2 < length) { - data = matchData[index2]; - var key = data[0], objValue = object[key], srcValue = data[1]; - if (noCustomizer && data[2]) { - if (objValue === undefined2 && !(key in object)) { - return false; - } - } else { - var stack = new Stack(); - if (customizer) { - var result2 = customizer(objValue, srcValue, key, object, source, stack); - } - if (!(result2 === undefined2 ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack) : result2)) { - return false; - } - } - } - return true; - } - function baseIsNative(value) { - if (!isObject(value) || isMasked(value)) { - return false; - } - var pattern = isFunction(value) ? reIsNative : reIsHostCtor; - return pattern.test(toSource(value)); - } - function baseIsRegExp(value) { - return isObjectLike(value) && baseGetTag(value) == regexpTag; - } - function baseIsSet(value) { - return isObjectLike(value) && getTag(value) == setTag; - } - function baseIsTypedArray(value) { - return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; - } - function baseIteratee(value) { - if (typeof value == "function") { - return value; - } - if (value == null) { - return identity; - } - if (typeof value == "object") { - return isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value); - } - return property(value); - } - function baseKeys(object) { - if (!isPrototype(object)) { - return nativeKeys(object); - } - var result2 = []; - for (var key in Object2(object)) { - if (hasOwnProperty.call(object, key) && key != "constructor") { - result2.push(key); - } - } - return result2; - } - function baseKeysIn(object) { - if (!isObject(object)) { - return nativeKeysIn(object); - } - var isProto = isPrototype(object), result2 = []; - for (var key in object) { - if (!(key == "constructor" && (isProto || !hasOwnProperty.call(object, key)))) { - result2.push(key); - } - } - return result2; - } - function baseLt(value, other) { - return value < other; - } - function baseMap(collection, iteratee2) { - var index2 = -1, result2 = isArrayLike(collection) ? Array2(collection.length) : []; - baseEach(collection, function(value, key, collection2) { - result2[++index2] = iteratee2(value, key, collection2); - }); - return result2; - } - function baseMatches(source) { - var matchData = getMatchData(source); - if (matchData.length == 1 && matchData[0][2]) { - return matchesStrictComparable(matchData[0][0], matchData[0][1]); - } - return function(object) { - return object === source || baseIsMatch(object, source, matchData); - }; - } - function baseMatchesProperty(path, srcValue) { - if (isKey(path) && isStrictComparable(srcValue)) { - return matchesStrictComparable(toKey(path), srcValue); - } - return function(object) { - var objValue = get(object, path); - return objValue === undefined2 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG); - }; - } - function baseMerge(object, source, srcIndex, customizer, stack) { - if (object === source) { - return; - } - baseFor(source, function(srcValue, key) { - stack || (stack = new Stack()); - if (isObject(srcValue)) { - baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack); - } else { - var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : undefined2; - if (newValue === undefined2) { - newValue = srcValue; - } - assignMergeValue(object, key, newValue); - } - }, keysIn); - } - function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) { - var objValue = safeGet(object, key), srcValue = safeGet(source, key), stacked = stack.get(srcValue); - if (stacked) { - assignMergeValue(object, key, stacked); - return; - } - var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : undefined2; - var isCommon = newValue === undefined2; - if (isCommon) { - var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue); - newValue = srcValue; - if (isArr || isBuff || isTyped) { - if (isArray(objValue)) { - newValue = objValue; - } else if (isArrayLikeObject(objValue)) { - newValue = copyArray(objValue); - } else if (isBuff) { - isCommon = false; - newValue = cloneBuffer(srcValue, true); - } else if (isTyped) { - isCommon = false; - newValue = cloneTypedArray(srcValue, true); - } else { - newValue = []; - } - } else if (isPlainObject(srcValue) || isArguments(srcValue)) { - newValue = objValue; - if (isArguments(objValue)) { - newValue = toPlainObject(objValue); - } else if (!isObject(objValue) || isFunction(objValue)) { - newValue = initCloneObject(srcValue); - } - } else { - isCommon = false; - } - } - if (isCommon) { - stack.set(srcValue, newValue); - mergeFunc(newValue, srcValue, srcIndex, customizer, stack); - stack["delete"](srcValue); - } - assignMergeValue(object, key, newValue); - } - function baseNth(array, n) { - var length = array.length; - if (!length) { - return; - } - n += n < 0 ? length : 0; - return isIndex(n, length) ? array[n] : undefined2; - } - function baseOrderBy(collection, iteratees, orders) { - if (iteratees.length) { - iteratees = arrayMap(iteratees, function(iteratee2) { - if (isArray(iteratee2)) { - return function(value) { - return baseGet(value, iteratee2.length === 1 ? iteratee2[0] : iteratee2); - }; - } - return iteratee2; - }); - } else { - iteratees = [identity]; - } - var index2 = -1; - iteratees = arrayMap(iteratees, baseUnary(getIteratee())); - var result2 = baseMap(collection, function(value, key, collection2) { - var criteria = arrayMap(iteratees, function(iteratee2) { - return iteratee2(value); - }); - return {"criteria": criteria, "index": ++index2, "value": value}; - }); - return baseSortBy(result2, function(object, other) { - return compareMultiple(object, other, orders); - }); - } - function basePick(object, paths) { - return basePickBy(object, paths, function(value, path) { - return hasIn(object, path); - }); - } - function basePickBy(object, paths, predicate) { - var index2 = -1, length = paths.length, result2 = {}; - while (++index2 < length) { - var path = paths[index2], value = baseGet(object, path); - if (predicate(value, path)) { - baseSet(result2, castPath(path, object), value); - } - } - return result2; - } - function basePropertyDeep(path) { - return function(object) { - return baseGet(object, path); - }; - } - function basePullAll(array, values2, iteratee2, comparator) { - var indexOf2 = comparator ? baseIndexOfWith : baseIndexOf, index2 = -1, length = values2.length, seen = array; - if (array === values2) { - values2 = copyArray(values2); - } - if (iteratee2) { - seen = arrayMap(array, baseUnary(iteratee2)); - } - while (++index2 < length) { - var fromIndex = 0, value = values2[index2], computed = iteratee2 ? iteratee2(value) : value; - while ((fromIndex = indexOf2(seen, computed, fromIndex, comparator)) > -1) { - if (seen !== array) { - splice.call(seen, fromIndex, 1); - } - splice.call(array, fromIndex, 1); - } - } - return array; - } - function basePullAt(array, indexes) { - var length = array ? indexes.length : 0, lastIndex = length - 1; - while (length--) { - var index2 = indexes[length]; - if (length == lastIndex || index2 !== previous) { - var previous = index2; - if (isIndex(index2)) { - splice.call(array, index2, 1); - } else { - baseUnset(array, index2); - } - } - } - return array; - } - function baseRandom(lower, upper) { - return lower + nativeFloor(nativeRandom() * (upper - lower + 1)); - } - function baseRange(start, end, step, fromRight) { - var index2 = -1, length = nativeMax(nativeCeil((end - start) / (step || 1)), 0), result2 = Array2(length); - while (length--) { - result2[fromRight ? length : ++index2] = start; - start += step; - } - return result2; - } - function baseRepeat(string, n) { - var result2 = ""; - if (!string || n < 1 || n > MAX_SAFE_INTEGER) { - return result2; - } - do { - if (n % 2) { - result2 += string; - } - n = nativeFloor(n / 2); - if (n) { - string += string; - } - } while (n); - return result2; - } - function baseRest(func, start) { - return setToString(overRest(func, start, identity), func + ""); - } - function baseSample(collection) { - return arraySample(values(collection)); - } - function baseSampleSize(collection, n) { - var array = values(collection); - return shuffleSelf(array, baseClamp(n, 0, array.length)); - } - function baseSet(object, path, value, customizer) { - if (!isObject(object)) { - return object; - } - path = castPath(path, object); - var index2 = -1, length = path.length, lastIndex = length - 1, nested = object; - while (nested != null && ++index2 < length) { - var key = toKey(path[index2]), newValue = value; - if (key === "__proto__" || key === "constructor" || key === "prototype") { - return object; - } - if (index2 != lastIndex) { - var objValue = nested[key]; - newValue = customizer ? customizer(objValue, key, nested) : undefined2; - if (newValue === undefined2) { - newValue = isObject(objValue) ? objValue : isIndex(path[index2 + 1]) ? [] : {}; - } - } - assignValue(nested, key, newValue); - nested = nested[key]; - } - return object; - } - var baseSetData = !metaMap ? identity : function(func, data) { - metaMap.set(func, data); - return func; - }; - var baseSetToString = !defineProperty ? identity : function(func, string) { - return defineProperty(func, "toString", { - "configurable": true, - "enumerable": false, - "value": constant(string), - "writable": true - }); - }; - function baseShuffle(collection) { - return shuffleSelf(values(collection)); - } - function baseSlice(array, start, end) { - var index2 = -1, length = array.length; - if (start < 0) { - start = -start > length ? 0 : length + start; - } - end = end > length ? length : end; - if (end < 0) { - end += length; - } - length = start > end ? 0 : end - start >>> 0; - start >>>= 0; - var result2 = Array2(length); - while (++index2 < length) { - result2[index2] = array[index2 + start]; - } - return result2; - } - function baseSome(collection, predicate) { - var result2; - baseEach(collection, function(value, index2, collection2) { - result2 = predicate(value, index2, collection2); - return !result2; - }); - return !!result2; - } - function baseSortedIndex(array, value, retHighest) { - var low = 0, high = array == null ? low : array.length; - if (typeof value == "number" && value === value && high <= HALF_MAX_ARRAY_LENGTH) { - while (low < high) { - var mid = low + high >>> 1, computed = array[mid]; - if (computed !== null && !isSymbol(computed) && (retHighest ? computed <= value : computed < value)) { - low = mid + 1; - } else { - high = mid; - } - } - return high; - } - return baseSortedIndexBy(array, value, identity, retHighest); - } - function baseSortedIndexBy(array, value, iteratee2, retHighest) { - var low = 0, high = array == null ? 0 : array.length; - if (high === 0) { - return 0; - } - value = iteratee2(value); - var valIsNaN = value !== value, valIsNull = value === null, valIsSymbol = isSymbol(value), valIsUndefined = value === undefined2; - while (low < high) { - var mid = nativeFloor((low + high) / 2), computed = iteratee2(array[mid]), othIsDefined = computed !== undefined2, othIsNull = computed === null, othIsReflexive = computed === computed, othIsSymbol = isSymbol(computed); - if (valIsNaN) { - var setLow = retHighest || othIsReflexive; - } else if (valIsUndefined) { - setLow = othIsReflexive && (retHighest || othIsDefined); - } else if (valIsNull) { - setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull); - } else if (valIsSymbol) { - setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol); - } else if (othIsNull || othIsSymbol) { - setLow = false; - } else { - setLow = retHighest ? computed <= value : computed < value; - } - if (setLow) { - low = mid + 1; - } else { - high = mid; - } - } - return nativeMin(high, MAX_ARRAY_INDEX); - } - function baseSortedUniq(array, iteratee2) { - var index2 = -1, length = array.length, resIndex = 0, result2 = []; - while (++index2 < length) { - var value = array[index2], computed = iteratee2 ? iteratee2(value) : value; - if (!index2 || !eq(computed, seen)) { - var seen = computed; - result2[resIndex++] = value === 0 ? 0 : value; - } - } - return result2; - } - function baseToNumber(value) { - if (typeof value == "number") { - return value; - } - if (isSymbol(value)) { - return NAN; - } - return +value; - } - function baseToString(value) { - if (typeof value == "string") { - return value; - } - if (isArray(value)) { - return arrayMap(value, baseToString) + ""; - } - if (isSymbol(value)) { - return symbolToString ? symbolToString.call(value) : ""; - } - var result2 = value + ""; - return result2 == "0" && 1 / value == -INFINITY ? "-0" : result2; - } - function baseUniq(array, iteratee2, comparator) { - var index2 = -1, includes2 = arrayIncludes, length = array.length, isCommon = true, result2 = [], seen = result2; - if (comparator) { - isCommon = false; - includes2 = arrayIncludesWith; - } else if (length >= LARGE_ARRAY_SIZE) { - var set2 = iteratee2 ? null : createSet(array); - if (set2) { - return setToArray(set2); - } - isCommon = false; - includes2 = cacheHas; - seen = new SetCache(); - } else { - seen = iteratee2 ? [] : result2; - } - outer: - while (++index2 < length) { - var value = array[index2], computed = iteratee2 ? iteratee2(value) : value; - value = comparator || value !== 0 ? value : 0; - if (isCommon && computed === computed) { - var seenIndex = seen.length; - while (seenIndex--) { - if (seen[seenIndex] === computed) { - continue outer; - } - } - if (iteratee2) { - seen.push(computed); - } - result2.push(value); - } else if (!includes2(seen, computed, comparator)) { - if (seen !== result2) { - seen.push(computed); - } - result2.push(value); - } - } - return result2; - } - function baseUnset(object, path) { - path = castPath(path, object); - object = parent(object, path); - return object == null || delete object[toKey(last(path))]; - } - function baseUpdate(object, path, updater, customizer) { - return baseSet(object, path, updater(baseGet(object, path)), customizer); - } - function baseWhile(array, predicate, isDrop, fromRight) { - var length = array.length, index2 = fromRight ? length : -1; - while ((fromRight ? index2-- : ++index2 < length) && predicate(array[index2], index2, array)) { - } - return isDrop ? baseSlice(array, fromRight ? 0 : index2, fromRight ? index2 + 1 : length) : baseSlice(array, fromRight ? index2 + 1 : 0, fromRight ? length : index2); - } - function baseWrapperValue(value, actions) { - var result2 = value; - if (result2 instanceof LazyWrapper) { - result2 = result2.value(); - } - return arrayReduce(actions, function(result3, action) { - return action.func.apply(action.thisArg, arrayPush([result3], action.args)); - }, result2); - } - function baseXor(arrays, iteratee2, comparator) { - var length = arrays.length; - if (length < 2) { - return length ? baseUniq(arrays[0]) : []; - } - var index2 = -1, result2 = Array2(length); - while (++index2 < length) { - var array = arrays[index2], othIndex = -1; - while (++othIndex < length) { - if (othIndex != index2) { - result2[index2] = baseDifference(result2[index2] || array, arrays[othIndex], iteratee2, comparator); - } - } - } - return baseUniq(baseFlatten(result2, 1), iteratee2, comparator); - } - function baseZipObject(props, values2, assignFunc) { - var index2 = -1, length = props.length, valsLength = values2.length, result2 = {}; - while (++index2 < length) { - var value = index2 < valsLength ? values2[index2] : undefined2; - assignFunc(result2, props[index2], value); - } - return result2; - } - function castArrayLikeObject(value) { - return isArrayLikeObject(value) ? value : []; - } - function castFunction(value) { - return typeof value == "function" ? value : identity; - } - function castPath(value, object) { - if (isArray(value)) { - return value; - } - return isKey(value, object) ? [value] : stringToPath(toString(value)); - } - var castRest = baseRest; - function castSlice(array, start, end) { - var length = array.length; - end = end === undefined2 ? length : end; - return !start && end >= length ? array : baseSlice(array, start, end); - } - var clearTimeout2 = ctxClearTimeout || function(id) { - return root.clearTimeout(id); - }; - function cloneBuffer(buffer, isDeep) { - if (isDeep) { - return buffer.slice(); - } - var length = buffer.length, result2 = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length); - buffer.copy(result2); - return result2; - } - function cloneArrayBuffer(arrayBuffer) { - var result2 = new arrayBuffer.constructor(arrayBuffer.byteLength); - new Uint8Array2(result2).set(new Uint8Array2(arrayBuffer)); - return result2; - } - function cloneDataView(dataView, isDeep) { - var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer; - return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength); - } - function cloneRegExp(regexp) { - var result2 = new regexp.constructor(regexp.source, reFlags.exec(regexp)); - result2.lastIndex = regexp.lastIndex; - return result2; - } - function cloneSymbol(symbol) { - return symbolValueOf ? Object2(symbolValueOf.call(symbol)) : {}; - } - function cloneTypedArray(typedArray, isDeep) { - var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer; - return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length); - } - function compareAscending(value, other) { - if (value !== other) { - var valIsDefined = value !== undefined2, valIsNull = value === null, valIsReflexive = value === value, valIsSymbol = isSymbol(value); - var othIsDefined = other !== undefined2, othIsNull = other === null, othIsReflexive = other === other, othIsSymbol = isSymbol(other); - if (!othIsNull && !othIsSymbol && !valIsSymbol && value > other || valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol || valIsNull && othIsDefined && othIsReflexive || !valIsDefined && othIsReflexive || !valIsReflexive) { - return 1; - } - if (!valIsNull && !valIsSymbol && !othIsSymbol && value < other || othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol || othIsNull && valIsDefined && valIsReflexive || !othIsDefined && valIsReflexive || !othIsReflexive) { - return -1; - } - } - return 0; - } - function compareMultiple(object, other, orders) { - var index2 = -1, objCriteria = object.criteria, othCriteria = other.criteria, length = objCriteria.length, ordersLength = orders.length; - while (++index2 < length) { - var result2 = compareAscending(objCriteria[index2], othCriteria[index2]); - if (result2) { - if (index2 >= ordersLength) { - return result2; - } - var order = orders[index2]; - return result2 * (order == "desc" ? -1 : 1); - } - } - return object.index - other.index; - } - function composeArgs(args, partials, holders, isCurried) { - var argsIndex = -1, argsLength = args.length, holdersLength = holders.length, leftIndex = -1, leftLength = partials.length, rangeLength = nativeMax(argsLength - holdersLength, 0), result2 = Array2(leftLength + rangeLength), isUncurried = !isCurried; - while (++leftIndex < leftLength) { - result2[leftIndex] = partials[leftIndex]; - } - while (++argsIndex < holdersLength) { - if (isUncurried || argsIndex < argsLength) { - result2[holders[argsIndex]] = args[argsIndex]; - } - } - while (rangeLength--) { - result2[leftIndex++] = args[argsIndex++]; - } - return result2; - } - function composeArgsRight(args, partials, holders, isCurried) { - var argsIndex = -1, argsLength = args.length, holdersIndex = -1, holdersLength = holders.length, rightIndex = -1, rightLength = partials.length, rangeLength = nativeMax(argsLength - holdersLength, 0), result2 = Array2(rangeLength + rightLength), isUncurried = !isCurried; - while (++argsIndex < rangeLength) { - result2[argsIndex] = args[argsIndex]; - } - var offset = argsIndex; - while (++rightIndex < rightLength) { - result2[offset + rightIndex] = partials[rightIndex]; - } - while (++holdersIndex < holdersLength) { - if (isUncurried || argsIndex < argsLength) { - result2[offset + holders[holdersIndex]] = args[argsIndex++]; - } - } - return result2; - } - function copyArray(source, array) { - var index2 = -1, length = source.length; - array || (array = Array2(length)); - while (++index2 < length) { - array[index2] = source[index2]; - } - return array; - } - function copyObject(source, props, object, customizer) { - var isNew = !object; - object || (object = {}); - var index2 = -1, length = props.length; - while (++index2 < length) { - var key = props[index2]; - var newValue = customizer ? customizer(object[key], source[key], key, object, source) : undefined2; - if (newValue === undefined2) { - newValue = source[key]; - } - if (isNew) { - baseAssignValue(object, key, newValue); - } else { - assignValue(object, key, newValue); - } - } - return object; - } - function copySymbols(source, object) { - return copyObject(source, getSymbols(source), object); - } - function copySymbolsIn(source, object) { - return copyObject(source, getSymbolsIn(source), object); - } - function createAggregator(setter, initializer) { - return function(collection, iteratee2) { - var func = isArray(collection) ? arrayAggregator : baseAggregator, accumulator = initializer ? initializer() : {}; - return func(collection, setter, getIteratee(iteratee2, 2), accumulator); - }; - } - function createAssigner(assigner) { - return baseRest(function(object, sources) { - var index2 = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : undefined2, guard = length > 2 ? sources[2] : undefined2; - customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : undefined2; - if (guard && isIterateeCall(sources[0], sources[1], guard)) { - customizer = length < 3 ? undefined2 : customizer; - length = 1; - } - object = Object2(object); - while (++index2 < length) { - var source = sources[index2]; - if (source) { - assigner(object, source, index2, customizer); - } - } - return object; - }); - } - function createBaseEach(eachFunc, fromRight) { - return function(collection, iteratee2) { - if (collection == null) { - return collection; - } - if (!isArrayLike(collection)) { - return eachFunc(collection, iteratee2); - } - var length = collection.length, index2 = fromRight ? length : -1, iterable = Object2(collection); - while (fromRight ? index2-- : ++index2 < length) { - if (iteratee2(iterable[index2], index2, iterable) === false) { - break; - } - } - return collection; - }; - } - function createBaseFor(fromRight) { - return function(object, iteratee2, keysFunc) { - var index2 = -1, iterable = Object2(object), props = keysFunc(object), length = props.length; - while (length--) { - var key = props[fromRight ? length : ++index2]; - if (iteratee2(iterable[key], key, iterable) === false) { - break; - } - } - return object; - }; - } - function createBind(func, bitmask, thisArg) { - var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func); - function wrapper() { - var fn = this && this !== root && this instanceof wrapper ? Ctor : func; - return fn.apply(isBind ? thisArg : this, arguments); - } - return wrapper; - } - function createCaseFirst(methodName) { - return function(string) { - string = toString(string); - var strSymbols = hasUnicode(string) ? stringToArray(string) : undefined2; - var chr = strSymbols ? strSymbols[0] : string.charAt(0); - var trailing = strSymbols ? castSlice(strSymbols, 1).join("") : string.slice(1); - return chr[methodName]() + trailing; - }; - } - function createCompounder(callback) { - return function(string) { - return arrayReduce(words(deburr(string).replace(reApos, "")), callback, ""); - }; - } - function createCtor(Ctor) { - return function() { - var args = arguments; - switch (args.length) { - case 0: - return new Ctor(); - case 1: - return new Ctor(args[0]); - case 2: - return new Ctor(args[0], args[1]); - case 3: - return new Ctor(args[0], args[1], args[2]); - case 4: - return new Ctor(args[0], args[1], args[2], args[3]); - case 5: - return new Ctor(args[0], args[1], args[2], args[3], args[4]); - case 6: - return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]); - case 7: - return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]); - } - var thisBinding = baseCreate(Ctor.prototype), result2 = Ctor.apply(thisBinding, args); - return isObject(result2) ? result2 : thisBinding; - }; - } - function createCurry(func, bitmask, arity) { - var Ctor = createCtor(func); - function wrapper() { - var length = arguments.length, args = Array2(length), index2 = length, placeholder = getHolder(wrapper); - while (index2--) { - args[index2] = arguments[index2]; - } - var holders = length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder ? [] : replaceHolders(args, placeholder); - length -= holders.length; - if (length < arity) { - return createRecurry(func, bitmask, createHybrid, wrapper.placeholder, undefined2, args, holders, undefined2, undefined2, arity - length); - } - var fn = this && this !== root && this instanceof wrapper ? Ctor : func; - return apply(fn, this, args); - } - return wrapper; - } - function createFind(findIndexFunc) { - return function(collection, predicate, fromIndex) { - var iterable = Object2(collection); - if (!isArrayLike(collection)) { - var iteratee2 = getIteratee(predicate, 3); - collection = keys(collection); - predicate = function(key) { - return iteratee2(iterable[key], key, iterable); - }; - } - var index2 = findIndexFunc(collection, predicate, fromIndex); - return index2 > -1 ? iterable[iteratee2 ? collection[index2] : index2] : undefined2; - }; - } - function createFlow(fromRight) { - return flatRest(function(funcs) { - var length = funcs.length, index2 = length, prereq = LodashWrapper.prototype.thru; - if (fromRight) { - funcs.reverse(); - } - while (index2--) { - var func = funcs[index2]; - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - if (prereq && !wrapper && getFuncName(func) == "wrapper") { - var wrapper = new LodashWrapper([], true); - } - } - index2 = wrapper ? index2 : length; - while (++index2 < length) { - func = funcs[index2]; - var funcName = getFuncName(func), data = funcName == "wrapper" ? getData(func) : undefined2; - if (data && isLaziable(data[0]) && data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) && !data[4].length && data[9] == 1) { - wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]); - } else { - wrapper = func.length == 1 && isLaziable(func) ? wrapper[funcName]() : wrapper.thru(func); - } - } - return function() { - var args = arguments, value = args[0]; - if (wrapper && args.length == 1 && isArray(value)) { - return wrapper.plant(value).value(); - } - var index3 = 0, result2 = length ? funcs[index3].apply(this, args) : value; - while (++index3 < length) { - result2 = funcs[index3].call(this, result2); - } - return result2; - }; - }); - } - function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary2, arity) { - var isAry = bitmask & WRAP_ARY_FLAG, isBind = bitmask & WRAP_BIND_FLAG, isBindKey = bitmask & WRAP_BIND_KEY_FLAG, isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG), isFlip = bitmask & WRAP_FLIP_FLAG, Ctor = isBindKey ? undefined2 : createCtor(func); - function wrapper() { - var length = arguments.length, args = Array2(length), index2 = length; - while (index2--) { - args[index2] = arguments[index2]; - } - if (isCurried) { - var placeholder = getHolder(wrapper), holdersCount = countHolders(args, placeholder); - } - if (partials) { - args = composeArgs(args, partials, holders, isCurried); - } - if (partialsRight) { - args = composeArgsRight(args, partialsRight, holdersRight, isCurried); - } - length -= holdersCount; - if (isCurried && length < arity) { - var newHolders = replaceHolders(args, placeholder); - return createRecurry(func, bitmask, createHybrid, wrapper.placeholder, thisArg, args, newHolders, argPos, ary2, arity - length); - } - var thisBinding = isBind ? thisArg : this, fn = isBindKey ? thisBinding[func] : func; - length = args.length; - if (argPos) { - args = reorder(args, argPos); - } else if (isFlip && length > 1) { - args.reverse(); - } - if (isAry && ary2 < length) { - args.length = ary2; - } - if (this && this !== root && this instanceof wrapper) { - fn = Ctor || createCtor(fn); - } - return fn.apply(thisBinding, args); - } - return wrapper; - } - function createInverter(setter, toIteratee) { - return function(object, iteratee2) { - return baseInverter(object, setter, toIteratee(iteratee2), {}); - }; - } - function createMathOperation(operator, defaultValue) { - return function(value, other) { - var result2; - if (value === undefined2 && other === undefined2) { - return defaultValue; - } - if (value !== undefined2) { - result2 = value; - } - if (other !== undefined2) { - if (result2 === undefined2) { - return other; - } - if (typeof value == "string" || typeof other == "string") { - value = baseToString(value); - other = baseToString(other); - } else { - value = baseToNumber(value); - other = baseToNumber(other); - } - result2 = operator(value, other); - } - return result2; - }; - } - function createOver(arrayFunc) { - return flatRest(function(iteratees) { - iteratees = arrayMap(iteratees, baseUnary(getIteratee())); - return baseRest(function(args) { - var thisArg = this; - return arrayFunc(iteratees, function(iteratee2) { - return apply(iteratee2, thisArg, args); - }); - }); - }); - } - function createPadding(length, chars) { - chars = chars === undefined2 ? " " : baseToString(chars); - var charsLength = chars.length; - if (charsLength < 2) { - return charsLength ? baseRepeat(chars, length) : chars; - } - var result2 = baseRepeat(chars, nativeCeil(length / stringSize(chars))); - return hasUnicode(chars) ? castSlice(stringToArray(result2), 0, length).join("") : result2.slice(0, length); - } - function createPartial(func, bitmask, thisArg, partials) { - var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func); - function wrapper() { - var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength), fn = this && this !== root && this instanceof wrapper ? Ctor : func; - while (++leftIndex < leftLength) { - args[leftIndex] = partials[leftIndex]; - } - while (argsLength--) { - args[leftIndex++] = arguments[++argsIndex]; - } - return apply(fn, isBind ? thisArg : this, args); - } - return wrapper; - } - function createRange(fromRight) { - return function(start, end, step) { - if (step && typeof step != "number" && isIterateeCall(start, end, step)) { - end = step = undefined2; - } - start = toFinite(start); - if (end === undefined2) { - end = start; - start = 0; - } else { - end = toFinite(end); - } - step = step === undefined2 ? start < end ? 1 : -1 : toFinite(step); - return baseRange(start, end, step, fromRight); - }; - } - function createRelationalOperation(operator) { - return function(value, other) { - if (!(typeof value == "string" && typeof other == "string")) { - value = toNumber(value); - other = toNumber(other); - } - return operator(value, other); - }; - } - function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary2, arity) { - var isCurry = bitmask & WRAP_CURRY_FLAG, newHolders = isCurry ? holders : undefined2, newHoldersRight = isCurry ? undefined2 : holders, newPartials = isCurry ? partials : undefined2, newPartialsRight = isCurry ? undefined2 : partials; - bitmask |= isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG; - bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG); - if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) { - bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG); - } - var newData = [ - func, - bitmask, - thisArg, - newPartials, - newHolders, - newPartialsRight, - newHoldersRight, - argPos, - ary2, - arity - ]; - var result2 = wrapFunc.apply(undefined2, newData); - if (isLaziable(func)) { - setData(result2, newData); - } - result2.placeholder = placeholder; - return setWrapToString(result2, func, bitmask); - } - function createRound(methodName) { - var func = Math2[methodName]; - return function(number, precision) { - number = toNumber(number); - precision = precision == null ? 0 : nativeMin(toInteger(precision), 292); - if (precision && nativeIsFinite(number)) { - var pair = (toString(number) + "e").split("e"), value = func(pair[0] + "e" + (+pair[1] + precision)); - pair = (toString(value) + "e").split("e"); - return +(pair[0] + "e" + (+pair[1] - precision)); - } - return func(number); - }; - } - var createSet = !(Set2 && 1 / setToArray(new Set2([, -0]))[1] == INFINITY) ? noop : function(values2) { - return new Set2(values2); - }; - function createToPairs(keysFunc) { - return function(object) { - var tag = getTag(object); - if (tag == mapTag) { - return mapToArray(object); - } - if (tag == setTag) { - return setToPairs(object); - } - return baseToPairs(object, keysFunc(object)); - }; - } - function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary2, arity) { - var isBindKey = bitmask & WRAP_BIND_KEY_FLAG; - if (!isBindKey && typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - var length = partials ? partials.length : 0; - if (!length) { - bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG); - partials = holders = undefined2; - } - ary2 = ary2 === undefined2 ? ary2 : nativeMax(toInteger(ary2), 0); - arity = arity === undefined2 ? arity : toInteger(arity); - length -= holders ? holders.length : 0; - if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) { - var partialsRight = partials, holdersRight = holders; - partials = holders = undefined2; - } - var data = isBindKey ? undefined2 : getData(func); - var newData = [ - func, - bitmask, - thisArg, - partials, - holders, - partialsRight, - holdersRight, - argPos, - ary2, - arity - ]; - if (data) { - mergeData(newData, data); - } - func = newData[0]; - bitmask = newData[1]; - thisArg = newData[2]; - partials = newData[3]; - holders = newData[4]; - arity = newData[9] = newData[9] === undefined2 ? isBindKey ? 0 : func.length : nativeMax(newData[9] - length, 0); - if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) { - bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG); - } - if (!bitmask || bitmask == WRAP_BIND_FLAG) { - var result2 = createBind(func, bitmask, thisArg); - } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) { - result2 = createCurry(func, bitmask, arity); - } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) { - result2 = createPartial(func, bitmask, thisArg, partials); - } else { - result2 = createHybrid.apply(undefined2, newData); - } - var setter = data ? baseSetData : setData; - return setWrapToString(setter(result2, newData), func, bitmask); - } - function customDefaultsAssignIn(objValue, srcValue, key, object) { - if (objValue === undefined2 || eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key)) { - return srcValue; - } - return objValue; - } - function customDefaultsMerge(objValue, srcValue, key, object, source, stack) { - if (isObject(objValue) && isObject(srcValue)) { - stack.set(srcValue, objValue); - baseMerge(objValue, srcValue, undefined2, customDefaultsMerge, stack); - stack["delete"](srcValue); - } - return objValue; - } - function customOmitClone(value) { - return isPlainObject(value) ? undefined2 : value; - } - function equalArrays(array, other, bitmask, customizer, equalFunc, stack) { - var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length; - if (arrLength != othLength && !(isPartial && othLength > arrLength)) { - return false; - } - var arrStacked = stack.get(array); - var othStacked = stack.get(other); - if (arrStacked && othStacked) { - return arrStacked == other && othStacked == array; - } - var index2 = -1, result2 = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : undefined2; - stack.set(array, other); - stack.set(other, array); - while (++index2 < arrLength) { - var arrValue = array[index2], othValue = other[index2]; - if (customizer) { - var compared = isPartial ? customizer(othValue, arrValue, index2, other, array, stack) : customizer(arrValue, othValue, index2, array, other, stack); - } - if (compared !== undefined2) { - if (compared) { - continue; - } - result2 = false; - break; - } - if (seen) { - if (!arraySome(other, function(othValue2, othIndex) { - if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) { - return seen.push(othIndex); - } - })) { - result2 = false; - break; - } - } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) { - result2 = false; - break; - } - } - stack["delete"](array); - stack["delete"](other); - return result2; - } - function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) { - switch (tag) { - case dataViewTag: - if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) { - return false; - } - object = object.buffer; - other = other.buffer; - case arrayBufferTag: - if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array2(object), new Uint8Array2(other))) { - return false; - } - return true; - case boolTag: - case dateTag: - case numberTag: - return eq(+object, +other); - case errorTag: - return object.name == other.name && object.message == other.message; - case regexpTag: - case stringTag: - return object == other + ""; - case mapTag: - var convert = mapToArray; - case setTag: - var isPartial = bitmask & COMPARE_PARTIAL_FLAG; - convert || (convert = setToArray); - if (object.size != other.size && !isPartial) { - return false; - } - var stacked = stack.get(object); - if (stacked) { - return stacked == other; - } - bitmask |= COMPARE_UNORDERED_FLAG; - stack.set(object, other); - var result2 = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack); - stack["delete"](object); - return result2; - case symbolTag: - if (symbolValueOf) { - return symbolValueOf.call(object) == symbolValueOf.call(other); - } - } - return false; - } - function equalObjects(object, other, bitmask, customizer, equalFunc, stack) { - var isPartial = bitmask & COMPARE_PARTIAL_FLAG, objProps = getAllKeys(object), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length; - if (objLength != othLength && !isPartial) { - return false; - } - var index2 = objLength; - while (index2--) { - var key = objProps[index2]; - if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) { - return false; - } - } - var objStacked = stack.get(object); - var othStacked = stack.get(other); - if (objStacked && othStacked) { - return objStacked == other && othStacked == object; - } - var result2 = true; - stack.set(object, other); - stack.set(other, object); - var skipCtor = isPartial; - while (++index2 < objLength) { - key = objProps[index2]; - var objValue = object[key], othValue = other[key]; - if (customizer) { - var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack); - } - if (!(compared === undefined2 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) { - result2 = false; - break; - } - skipCtor || (skipCtor = key == "constructor"); - } - if (result2 && !skipCtor) { - var objCtor = object.constructor, othCtor = other.constructor; - if (objCtor != othCtor && ("constructor" in object && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) { - result2 = false; - } - } - stack["delete"](object); - stack["delete"](other); - return result2; - } - function flatRest(func) { - return setToString(overRest(func, undefined2, flatten), func + ""); - } - function getAllKeys(object) { - return baseGetAllKeys(object, keys, getSymbols); - } - function getAllKeysIn(object) { - return baseGetAllKeys(object, keysIn, getSymbolsIn); - } - var getData = !metaMap ? noop : function(func) { - return metaMap.get(func); - }; - function getFuncName(func) { - var result2 = func.name + "", array = realNames[result2], length = hasOwnProperty.call(realNames, result2) ? array.length : 0; - while (length--) { - var data = array[length], otherFunc = data.func; - if (otherFunc == null || otherFunc == func) { - return data.name; - } - } - return result2; - } - function getHolder(func) { - var object = hasOwnProperty.call(lodash, "placeholder") ? lodash : func; - return object.placeholder; - } - function getIteratee() { - var result2 = lodash.iteratee || iteratee; - result2 = result2 === iteratee ? baseIteratee : result2; - return arguments.length ? result2(arguments[0], arguments[1]) : result2; - } - function getMapData(map2, key) { - var data = map2.__data__; - return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map; - } - function getMatchData(object) { - var result2 = keys(object), length = result2.length; - while (length--) { - var key = result2[length], value = object[key]; - result2[length] = [key, value, isStrictComparable(value)]; - } - return result2; - } - function getNative(object, key) { - var value = getValue(object, key); - return baseIsNative(value) ? value : undefined2; - } - function getRawTag(value) { - var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag]; - try { - value[symToStringTag] = undefined2; - var unmasked = true; - } catch (e) { - } - var result2 = nativeObjectToString.call(value); - if (unmasked) { - if (isOwn) { - value[symToStringTag] = tag; - } else { - delete value[symToStringTag]; - } - } - return result2; - } - var getSymbols = !nativeGetSymbols ? stubArray : function(object) { - if (object == null) { - return []; - } - object = Object2(object); - return arrayFilter(nativeGetSymbols(object), function(symbol) { - return propertyIsEnumerable.call(object, symbol); - }); - }; - var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) { - var result2 = []; - while (object) { - arrayPush(result2, getSymbols(object)); - object = getPrototype(object); - } - return result2; - }; - var getTag = baseGetTag; - if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) { - getTag = function(value) { - var result2 = baseGetTag(value), Ctor = result2 == objectTag ? value.constructor : undefined2, ctorString = Ctor ? toSource(Ctor) : ""; - if (ctorString) { - switch (ctorString) { - case dataViewCtorString: - return dataViewTag; - case mapCtorString: - return mapTag; - case promiseCtorString: - return promiseTag; - case setCtorString: - return setTag; - case weakMapCtorString: - return weakMapTag; - } - } - return result2; - }; - } - function getView(start, end, transforms) { - var index2 = -1, length = transforms.length; - while (++index2 < length) { - var data = transforms[index2], size2 = data.size; - switch (data.type) { - case "drop": - start += size2; - break; - case "dropRight": - end -= size2; - break; - case "take": - end = nativeMin(end, start + size2); - break; - case "takeRight": - start = nativeMax(start, end - size2); - break; - } - } - return {"start": start, "end": end}; - } - function getWrapDetails(source) { - var match = source.match(reWrapDetails); - return match ? match[1].split(reSplitDetails) : []; - } - function hasPath(object, path, hasFunc) { - path = castPath(path, object); - var index2 = -1, length = path.length, result2 = false; - while (++index2 < length) { - var key = toKey(path[index2]); - if (!(result2 = object != null && hasFunc(object, key))) { - break; - } - object = object[key]; - } - if (result2 || ++index2 != length) { - return result2; - } - length = object == null ? 0 : object.length; - return !!length && isLength(length) && isIndex(key, length) && (isArray(object) || isArguments(object)); - } - function initCloneArray(array) { - var length = array.length, result2 = new array.constructor(length); - if (length && typeof array[0] == "string" && hasOwnProperty.call(array, "index")) { - result2.index = array.index; - result2.input = array.input; - } - return result2; - } - function initCloneObject(object) { - return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {}; - } - function initCloneByTag(object, tag, isDeep) { - var Ctor = object.constructor; - switch (tag) { - case arrayBufferTag: - return cloneArrayBuffer(object); - case boolTag: - case dateTag: - return new Ctor(+object); - case dataViewTag: - return cloneDataView(object, isDeep); - case float32Tag: - case float64Tag: - case int8Tag: - case int16Tag: - case int32Tag: - case uint8Tag: - case uint8ClampedTag: - case uint16Tag: - case uint32Tag: - return cloneTypedArray(object, isDeep); - case mapTag: - return new Ctor(); - case numberTag: - case stringTag: - return new Ctor(object); - case regexpTag: - return cloneRegExp(object); - case setTag: - return new Ctor(); - case symbolTag: - return cloneSymbol(object); - } - } - function insertWrapDetails(source, details) { - var length = details.length; - if (!length) { - return source; - } - var lastIndex = length - 1; - details[lastIndex] = (length > 1 ? "& " : "") + details[lastIndex]; - details = details.join(length > 2 ? ", " : " "); - return source.replace(reWrapComment, "{\n/* [wrapped with " + details + "] */\n"); - } - function isFlattenable(value) { - return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]); - } - function isIndex(value, length) { - var type = typeof value; - length = length == null ? MAX_SAFE_INTEGER : length; - return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length); - } - function isIterateeCall(value, index2, object) { - if (!isObject(object)) { - return false; - } - var type = typeof index2; - if (type == "number" ? isArrayLike(object) && isIndex(index2, object.length) : type == "string" && index2 in object) { - return eq(object[index2], value); - } - return false; - } - function isKey(value, object) { - if (isArray(value)) { - return false; - } - var type = typeof value; - if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol(value)) { - return true; - } - return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object2(object); - } - function isKeyable(value) { - var type = typeof value; - return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null; - } - function isLaziable(func) { - var funcName = getFuncName(func), other = lodash[funcName]; - if (typeof other != "function" || !(funcName in LazyWrapper.prototype)) { - return false; - } - if (func === other) { - return true; - } - var data = getData(other); - return !!data && func === data[0]; - } - function isMasked(func) { - return !!maskSrcKey && maskSrcKey in func; - } - var isMaskable = coreJsData ? isFunction : stubFalse; - function isPrototype(value) { - var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto; - return value === proto; - } - function isStrictComparable(value) { - return value === value && !isObject(value); - } - function matchesStrictComparable(key, srcValue) { - return function(object) { - if (object == null) { - return false; - } - return object[key] === srcValue && (srcValue !== undefined2 || key in Object2(object)); - }; - } - function memoizeCapped(func) { - var result2 = memoize(func, function(key) { - if (cache.size === MAX_MEMOIZE_SIZE) { - cache.clear(); - } - return key; - }); - var cache = result2.cache; - return result2; - } - function mergeData(data, source) { - var bitmask = data[1], srcBitmask = source[1], newBitmask = bitmask | srcBitmask, isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG); - var isCombo = srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_CURRY_FLAG || srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_REARG_FLAG && data[7].length <= source[8] || srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG) && source[7].length <= source[8] && bitmask == WRAP_CURRY_FLAG; - if (!(isCommon || isCombo)) { - return data; - } - if (srcBitmask & WRAP_BIND_FLAG) { - data[2] = source[2]; - newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG; - } - var value = source[3]; - if (value) { - var partials = data[3]; - data[3] = partials ? composeArgs(partials, value, source[4]) : value; - data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4]; - } - value = source[5]; - if (value) { - partials = data[5]; - data[5] = partials ? composeArgsRight(partials, value, source[6]) : value; - data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6]; - } - value = source[7]; - if (value) { - data[7] = value; - } - if (srcBitmask & WRAP_ARY_FLAG) { - data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]); - } - if (data[9] == null) { - data[9] = source[9]; - } - data[0] = source[0]; - data[1] = newBitmask; - return data; - } - function nativeKeysIn(object) { - var result2 = []; - if (object != null) { - for (var key in Object2(object)) { - result2.push(key); - } - } - return result2; - } - function objectToString(value) { - return nativeObjectToString.call(value); - } - function overRest(func, start, transform2) { - start = nativeMax(start === undefined2 ? func.length - 1 : start, 0); - return function() { - var args = arguments, index2 = -1, length = nativeMax(args.length - start, 0), array = Array2(length); - while (++index2 < length) { - array[index2] = args[start + index2]; - } - index2 = -1; - var otherArgs = Array2(start + 1); - while (++index2 < start) { - otherArgs[index2] = args[index2]; - } - otherArgs[start] = transform2(array); - return apply(func, this, otherArgs); - }; - } - function parent(object, path) { - return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1)); - } - function reorder(array, indexes) { - var arrLength = array.length, length = nativeMin(indexes.length, arrLength), oldArray = copyArray(array); - while (length--) { - var index2 = indexes[length]; - array[length] = isIndex(index2, arrLength) ? oldArray[index2] : undefined2; - } - return array; - } - function safeGet(object, key) { - if (key === "constructor" && typeof object[key] === "function") { - return; - } - if (key == "__proto__") { - return; - } - return object[key]; - } - var setData = shortOut(baseSetData); - var setTimeout2 = ctxSetTimeout || function(func, wait) { - return root.setTimeout(func, wait); - }; - var setToString = shortOut(baseSetToString); - function setWrapToString(wrapper, reference, bitmask) { - var source = reference + ""; - return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask))); - } - function shortOut(func) { - var count = 0, lastCalled = 0; - return function() { - var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled); - lastCalled = stamp; - if (remaining > 0) { - if (++count >= HOT_COUNT) { - return arguments[0]; - } - } else { - count = 0; - } - return func.apply(undefined2, arguments); - }; - } - function shuffleSelf(array, size2) { - var index2 = -1, length = array.length, lastIndex = length - 1; - size2 = size2 === undefined2 ? length : size2; - while (++index2 < size2) { - var rand = baseRandom(index2, lastIndex), value = array[rand]; - array[rand] = array[index2]; - array[index2] = value; - } - array.length = size2; - return array; - } - var stringToPath = memoizeCapped(function(string) { - var result2 = []; - if (string.charCodeAt(0) === 46) { - result2.push(""); - } - string.replace(rePropName, function(match, number, quote, subString) { - result2.push(quote ? subString.replace(reEscapeChar, "$1") : number || match); - }); - return result2; - }); - function toKey(value) { - if (typeof value == "string" || isSymbol(value)) { - return value; - } - var result2 = value + ""; - return result2 == "0" && 1 / value == -INFINITY ? "-0" : result2; - } - function toSource(func) { - if (func != null) { - try { - return funcToString.call(func); - } catch (e) { - } - try { - return func + ""; - } catch (e) { - } - } - return ""; - } - function updateWrapDetails(details, bitmask) { - arrayEach(wrapFlags, function(pair) { - var value = "_." + pair[0]; - if (bitmask & pair[1] && !arrayIncludes(details, value)) { - details.push(value); - } - }); - return details.sort(); - } - function wrapperClone(wrapper) { - if (wrapper instanceof LazyWrapper) { - return wrapper.clone(); - } - var result2 = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__); - result2.__actions__ = copyArray(wrapper.__actions__); - result2.__index__ = wrapper.__index__; - result2.__values__ = wrapper.__values__; - return result2; - } - function chunk(array, size2, guard) { - if (guard ? isIterateeCall(array, size2, guard) : size2 === undefined2) { - size2 = 1; - } else { - size2 = nativeMax(toInteger(size2), 0); - } - var length = array == null ? 0 : array.length; - if (!length || size2 < 1) { - return []; - } - var index2 = 0, resIndex = 0, result2 = Array2(nativeCeil(length / size2)); - while (index2 < length) { - result2[resIndex++] = baseSlice(array, index2, index2 += size2); - } - return result2; - } - function compact(array) { - var index2 = -1, length = array == null ? 0 : array.length, resIndex = 0, result2 = []; - while (++index2 < length) { - var value = array[index2]; - if (value) { - result2[resIndex++] = value; - } - } - return result2; - } - function concat() { - var length = arguments.length; - if (!length) { - return []; - } - var args = Array2(length - 1), array = arguments[0], index2 = length; - while (index2--) { - args[index2 - 1] = arguments[index2]; - } - return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1)); - } - var difference = baseRest(function(array, values2) { - return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values2, 1, isArrayLikeObject, true)) : []; - }); - var differenceBy = baseRest(function(array, values2) { - var iteratee2 = last(values2); - if (isArrayLikeObject(iteratee2)) { - iteratee2 = undefined2; - } - return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values2, 1, isArrayLikeObject, true), getIteratee(iteratee2, 2)) : []; - }); - var differenceWith = baseRest(function(array, values2) { - var comparator = last(values2); - if (isArrayLikeObject(comparator)) { - comparator = undefined2; - } - return isArrayLikeObject(array) ? baseDifference(array, baseFlatten(values2, 1, isArrayLikeObject, true), undefined2, comparator) : []; - }); - function drop(array, n, guard) { - var length = array == null ? 0 : array.length; - if (!length) { - return []; - } - n = guard || n === undefined2 ? 1 : toInteger(n); - return baseSlice(array, n < 0 ? 0 : n, length); - } - function dropRight(array, n, guard) { - var length = array == null ? 0 : array.length; - if (!length) { - return []; - } - n = guard || n === undefined2 ? 1 : toInteger(n); - n = length - n; - return baseSlice(array, 0, n < 0 ? 0 : n); - } - function dropRightWhile(array, predicate) { - return array && array.length ? baseWhile(array, getIteratee(predicate, 3), true, true) : []; - } - function dropWhile(array, predicate) { - return array && array.length ? baseWhile(array, getIteratee(predicate, 3), true) : []; - } - function fill(array, value, start, end) { - var length = array == null ? 0 : array.length; - if (!length) { - return []; - } - if (start && typeof start != "number" && isIterateeCall(array, value, start)) { - start = 0; - end = length; - } - return baseFill(array, value, start, end); - } - function findIndex(array, predicate, fromIndex) { - var length = array == null ? 0 : array.length; - if (!length) { - return -1; - } - var index2 = fromIndex == null ? 0 : toInteger(fromIndex); - if (index2 < 0) { - index2 = nativeMax(length + index2, 0); - } - return baseFindIndex(array, getIteratee(predicate, 3), index2); - } - function findLastIndex(array, predicate, fromIndex) { - var length = array == null ? 0 : array.length; - if (!length) { - return -1; - } - var index2 = length - 1; - if (fromIndex !== undefined2) { - index2 = toInteger(fromIndex); - index2 = fromIndex < 0 ? nativeMax(length + index2, 0) : nativeMin(index2, length - 1); - } - return baseFindIndex(array, getIteratee(predicate, 3), index2, true); - } - function flatten(array) { - var length = array == null ? 0 : array.length; - return length ? baseFlatten(array, 1) : []; - } - function flattenDeep(array) { - var length = array == null ? 0 : array.length; - return length ? baseFlatten(array, INFINITY) : []; - } - function flattenDepth(array, depth) { - var length = array == null ? 0 : array.length; - if (!length) { - return []; - } - depth = depth === undefined2 ? 1 : toInteger(depth); - return baseFlatten(array, depth); - } - function fromPairs(pairs) { - var index2 = -1, length = pairs == null ? 0 : pairs.length, result2 = {}; - while (++index2 < length) { - var pair = pairs[index2]; - result2[pair[0]] = pair[1]; - } - return result2; - } - function head(array) { - return array && array.length ? array[0] : undefined2; - } - function indexOf(array, value, fromIndex) { - var length = array == null ? 0 : array.length; - if (!length) { - return -1; - } - var index2 = fromIndex == null ? 0 : toInteger(fromIndex); - if (index2 < 0) { - index2 = nativeMax(length + index2, 0); - } - return baseIndexOf(array, value, index2); - } - function initial(array) { - var length = array == null ? 0 : array.length; - return length ? baseSlice(array, 0, -1) : []; - } - var intersection = baseRest(function(arrays) { - var mapped = arrayMap(arrays, castArrayLikeObject); - return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped) : []; - }); - var intersectionBy = baseRest(function(arrays) { - var iteratee2 = last(arrays), mapped = arrayMap(arrays, castArrayLikeObject); - if (iteratee2 === last(mapped)) { - iteratee2 = undefined2; - } else { - mapped.pop(); - } - return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped, getIteratee(iteratee2, 2)) : []; - }); - var intersectionWith = baseRest(function(arrays) { - var comparator = last(arrays), mapped = arrayMap(arrays, castArrayLikeObject); - comparator = typeof comparator == "function" ? comparator : undefined2; - if (comparator) { - mapped.pop(); - } - return mapped.length && mapped[0] === arrays[0] ? baseIntersection(mapped, undefined2, comparator) : []; - }); - function join(array, separator) { - return array == null ? "" : nativeJoin.call(array, separator); - } - function last(array) { - var length = array == null ? 0 : array.length; - return length ? array[length - 1] : undefined2; - } - function lastIndexOf(array, value, fromIndex) { - var length = array == null ? 0 : array.length; - if (!length) { - return -1; - } - var index2 = length; - if (fromIndex !== undefined2) { - index2 = toInteger(fromIndex); - index2 = index2 < 0 ? nativeMax(length + index2, 0) : nativeMin(index2, length - 1); - } - return value === value ? strictLastIndexOf(array, value, index2) : baseFindIndex(array, baseIsNaN, index2, true); - } - function nth(array, n) { - return array && array.length ? baseNth(array, toInteger(n)) : undefined2; - } - var pull = baseRest(pullAll); - function pullAll(array, values2) { - return array && array.length && values2 && values2.length ? basePullAll(array, values2) : array; - } - function pullAllBy(array, values2, iteratee2) { - return array && array.length && values2 && values2.length ? basePullAll(array, values2, getIteratee(iteratee2, 2)) : array; - } - function pullAllWith(array, values2, comparator) { - return array && array.length && values2 && values2.length ? basePullAll(array, values2, undefined2, comparator) : array; - } - var pullAt = flatRest(function(array, indexes) { - var length = array == null ? 0 : array.length, result2 = baseAt(array, indexes); - basePullAt(array, arrayMap(indexes, function(index2) { - return isIndex(index2, length) ? +index2 : index2; - }).sort(compareAscending)); - return result2; - }); - function remove(array, predicate) { - var result2 = []; - if (!(array && array.length)) { - return result2; - } - var index2 = -1, indexes = [], length = array.length; - predicate = getIteratee(predicate, 3); - while (++index2 < length) { - var value = array[index2]; - if (predicate(value, index2, array)) { - result2.push(value); - indexes.push(index2); - } - } - basePullAt(array, indexes); - return result2; - } - function reverse(array) { - return array == null ? array : nativeReverse.call(array); - } - function slice(array, start, end) { - var length = array == null ? 0 : array.length; - if (!length) { - return []; - } - if (end && typeof end != "number" && isIterateeCall(array, start, end)) { - start = 0; - end = length; - } else { - start = start == null ? 0 : toInteger(start); - end = end === undefined2 ? length : toInteger(end); - } - return baseSlice(array, start, end); - } - function sortedIndex(array, value) { - return baseSortedIndex(array, value); - } - function sortedIndexBy(array, value, iteratee2) { - return baseSortedIndexBy(array, value, getIteratee(iteratee2, 2)); - } - function sortedIndexOf(array, value) { - var length = array == null ? 0 : array.length; - if (length) { - var index2 = baseSortedIndex(array, value); - if (index2 < length && eq(array[index2], value)) { - return index2; - } - } - return -1; - } - function sortedLastIndex(array, value) { - return baseSortedIndex(array, value, true); - } - function sortedLastIndexBy(array, value, iteratee2) { - return baseSortedIndexBy(array, value, getIteratee(iteratee2, 2), true); - } - function sortedLastIndexOf(array, value) { - var length = array == null ? 0 : array.length; - if (length) { - var index2 = baseSortedIndex(array, value, true) - 1; - if (eq(array[index2], value)) { - return index2; - } - } - return -1; - } - function sortedUniq(array) { - return array && array.length ? baseSortedUniq(array) : []; - } - function sortedUniqBy(array, iteratee2) { - return array && array.length ? baseSortedUniq(array, getIteratee(iteratee2, 2)) : []; - } - function tail(array) { - var length = array == null ? 0 : array.length; - return length ? baseSlice(array, 1, length) : []; - } - function take(array, n, guard) { - if (!(array && array.length)) { - return []; - } - n = guard || n === undefined2 ? 1 : toInteger(n); - return baseSlice(array, 0, n < 0 ? 0 : n); - } - function takeRight(array, n, guard) { - var length = array == null ? 0 : array.length; - if (!length) { - return []; - } - n = guard || n === undefined2 ? 1 : toInteger(n); - n = length - n; - return baseSlice(array, n < 0 ? 0 : n, length); - } - function takeRightWhile(array, predicate) { - return array && array.length ? baseWhile(array, getIteratee(predicate, 3), false, true) : []; - } - function takeWhile(array, predicate) { - return array && array.length ? baseWhile(array, getIteratee(predicate, 3)) : []; - } - var union = baseRest(function(arrays) { - return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true)); - }); - var unionBy = baseRest(function(arrays) { - var iteratee2 = last(arrays); - if (isArrayLikeObject(iteratee2)) { - iteratee2 = undefined2; - } - return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee2, 2)); - }); - var unionWith = baseRest(function(arrays) { - var comparator = last(arrays); - comparator = typeof comparator == "function" ? comparator : undefined2; - return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined2, comparator); - }); - function uniq(array) { - return array && array.length ? baseUniq(array) : []; - } - function uniqBy(array, iteratee2) { - return array && array.length ? baseUniq(array, getIteratee(iteratee2, 2)) : []; - } - function uniqWith(array, comparator) { - comparator = typeof comparator == "function" ? comparator : undefined2; - return array && array.length ? baseUniq(array, undefined2, comparator) : []; - } - function unzip(array) { - if (!(array && array.length)) { - return []; - } - var length = 0; - array = arrayFilter(array, function(group) { - if (isArrayLikeObject(group)) { - length = nativeMax(group.length, length); - return true; - } - }); - return baseTimes(length, function(index2) { - return arrayMap(array, baseProperty(index2)); - }); - } - function unzipWith(array, iteratee2) { - if (!(array && array.length)) { - return []; - } - var result2 = unzip(array); - if (iteratee2 == null) { - return result2; - } - return arrayMap(result2, function(group) { - return apply(iteratee2, undefined2, group); - }); - } - var without = baseRest(function(array, values2) { - return isArrayLikeObject(array) ? baseDifference(array, values2) : []; - }); - var xor = baseRest(function(arrays) { - return baseXor(arrayFilter(arrays, isArrayLikeObject)); - }); - var xorBy = baseRest(function(arrays) { - var iteratee2 = last(arrays); - if (isArrayLikeObject(iteratee2)) { - iteratee2 = undefined2; - } - return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee2, 2)); - }); - var xorWith = baseRest(function(arrays) { - var comparator = last(arrays); - comparator = typeof comparator == "function" ? comparator : undefined2; - return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined2, comparator); - }); - var zip = baseRest(unzip); - function zipObject(props, values2) { - return baseZipObject(props || [], values2 || [], assignValue); - } - function zipObjectDeep(props, values2) { - return baseZipObject(props || [], values2 || [], baseSet); - } - var zipWith = baseRest(function(arrays) { - var length = arrays.length, iteratee2 = length > 1 ? arrays[length - 1] : undefined2; - iteratee2 = typeof iteratee2 == "function" ? (arrays.pop(), iteratee2) : undefined2; - return unzipWith(arrays, iteratee2); - }); - function chain(value) { - var result2 = lodash(value); - result2.__chain__ = true; - return result2; - } - function tap(value, interceptor) { - interceptor(value); - return value; - } - function thru(value, interceptor) { - return interceptor(value); - } - var wrapperAt = flatRest(function(paths) { - var length = paths.length, start = length ? paths[0] : 0, value = this.__wrapped__, interceptor = function(object) { - return baseAt(object, paths); - }; - if (length > 1 || this.__actions__.length || !(value instanceof LazyWrapper) || !isIndex(start)) { - return this.thru(interceptor); - } - value = value.slice(start, +start + (length ? 1 : 0)); - value.__actions__.push({ - "func": thru, - "args": [interceptor], - "thisArg": undefined2 - }); - return new LodashWrapper(value, this.__chain__).thru(function(array) { - if (length && !array.length) { - array.push(undefined2); - } - return array; - }); - }); - function wrapperChain() { - return chain(this); - } - function wrapperCommit() { - return new LodashWrapper(this.value(), this.__chain__); - } - function wrapperNext() { - if (this.__values__ === undefined2) { - this.__values__ = toArray(this.value()); - } - var done = this.__index__ >= this.__values__.length, value = done ? undefined2 : this.__values__[this.__index__++]; - return {"done": done, "value": value}; - } - function wrapperToIterator() { - return this; - } - function wrapperPlant(value) { - var result2, parent2 = this; - while (parent2 instanceof baseLodash) { - var clone2 = wrapperClone(parent2); - clone2.__index__ = 0; - clone2.__values__ = undefined2; - if (result2) { - previous.__wrapped__ = clone2; - } else { - result2 = clone2; - } - var previous = clone2; - parent2 = parent2.__wrapped__; - } - previous.__wrapped__ = value; - return result2; - } - function wrapperReverse() { - var value = this.__wrapped__; - if (value instanceof LazyWrapper) { - var wrapped = value; - if (this.__actions__.length) { - wrapped = new LazyWrapper(this); - } - wrapped = wrapped.reverse(); - wrapped.__actions__.push({ - "func": thru, - "args": [reverse], - "thisArg": undefined2 - }); - return new LodashWrapper(wrapped, this.__chain__); - } - return this.thru(reverse); - } - function wrapperValue() { - return baseWrapperValue(this.__wrapped__, this.__actions__); - } - var countBy = createAggregator(function(result2, value, key) { - if (hasOwnProperty.call(result2, key)) { - ++result2[key]; - } else { - baseAssignValue(result2, key, 1); - } - }); - function every(collection, predicate, guard) { - var func = isArray(collection) ? arrayEvery : baseEvery; - if (guard && isIterateeCall(collection, predicate, guard)) { - predicate = undefined2; - } - return func(collection, getIteratee(predicate, 3)); - } - function filter(collection, predicate) { - var func = isArray(collection) ? arrayFilter : baseFilter; - return func(collection, getIteratee(predicate, 3)); - } - var find = createFind(findIndex); - var findLast = createFind(findLastIndex); - function flatMap(collection, iteratee2) { - return baseFlatten(map(collection, iteratee2), 1); - } - function flatMapDeep(collection, iteratee2) { - return baseFlatten(map(collection, iteratee2), INFINITY); - } - function flatMapDepth(collection, iteratee2, depth) { - depth = depth === undefined2 ? 1 : toInteger(depth); - return baseFlatten(map(collection, iteratee2), depth); - } - function forEach(collection, iteratee2) { - var func = isArray(collection) ? arrayEach : baseEach; - return func(collection, getIteratee(iteratee2, 3)); - } - function forEachRight(collection, iteratee2) { - var func = isArray(collection) ? arrayEachRight : baseEachRight; - return func(collection, getIteratee(iteratee2, 3)); - } - var groupBy = createAggregator(function(result2, value, key) { - if (hasOwnProperty.call(result2, key)) { - result2[key].push(value); - } else { - baseAssignValue(result2, key, [value]); - } - }); - function includes(collection, value, fromIndex, guard) { - collection = isArrayLike(collection) ? collection : values(collection); - fromIndex = fromIndex && !guard ? toInteger(fromIndex) : 0; - var length = collection.length; - if (fromIndex < 0) { - fromIndex = nativeMax(length + fromIndex, 0); - } - return isString(collection) ? fromIndex <= length && collection.indexOf(value, fromIndex) > -1 : !!length && baseIndexOf(collection, value, fromIndex) > -1; - } - var invokeMap = baseRest(function(collection, path, args) { - var index2 = -1, isFunc = typeof path == "function", result2 = isArrayLike(collection) ? Array2(collection.length) : []; - baseEach(collection, function(value) { - result2[++index2] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args); - }); - return result2; - }); - var keyBy = createAggregator(function(result2, value, key) { - baseAssignValue(result2, key, value); - }); - function map(collection, iteratee2) { - var func = isArray(collection) ? arrayMap : baseMap; - return func(collection, getIteratee(iteratee2, 3)); - } - function orderBy(collection, iteratees, orders, guard) { - if (collection == null) { - return []; - } - if (!isArray(iteratees)) { - iteratees = iteratees == null ? [] : [iteratees]; - } - orders = guard ? undefined2 : orders; - if (!isArray(orders)) { - orders = orders == null ? [] : [orders]; - } - return baseOrderBy(collection, iteratees, orders); - } - var partition = createAggregator(function(result2, value, key) { - result2[key ? 0 : 1].push(value); - }, function() { - return [[], []]; - }); - function reduce(collection, iteratee2, accumulator) { - var func = isArray(collection) ? arrayReduce : baseReduce, initAccum = arguments.length < 3; - return func(collection, getIteratee(iteratee2, 4), accumulator, initAccum, baseEach); - } - function reduceRight(collection, iteratee2, accumulator) { - var func = isArray(collection) ? arrayReduceRight : baseReduce, initAccum = arguments.length < 3; - return func(collection, getIteratee(iteratee2, 4), accumulator, initAccum, baseEachRight); - } - function reject(collection, predicate) { - var func = isArray(collection) ? arrayFilter : baseFilter; - return func(collection, negate(getIteratee(predicate, 3))); - } - function sample(collection) { - var func = isArray(collection) ? arraySample : baseSample; - return func(collection); - } - function sampleSize(collection, n, guard) { - if (guard ? isIterateeCall(collection, n, guard) : n === undefined2) { - n = 1; - } else { - n = toInteger(n); - } - var func = isArray(collection) ? arraySampleSize : baseSampleSize; - return func(collection, n); - } - function shuffle(collection) { - var func = isArray(collection) ? arrayShuffle : baseShuffle; - return func(collection); - } - function size(collection) { - if (collection == null) { - return 0; - } - if (isArrayLike(collection)) { - return isString(collection) ? stringSize(collection) : collection.length; - } - var tag = getTag(collection); - if (tag == mapTag || tag == setTag) { - return collection.size; - } - return baseKeys(collection).length; - } - function some(collection, predicate, guard) { - var func = isArray(collection) ? arraySome : baseSome; - if (guard && isIterateeCall(collection, predicate, guard)) { - predicate = undefined2; - } - return func(collection, getIteratee(predicate, 3)); - } - var sortBy = baseRest(function(collection, iteratees) { - if (collection == null) { - return []; - } - var length = iteratees.length; - if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) { - iteratees = []; - } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) { - iteratees = [iteratees[0]]; - } - return baseOrderBy(collection, baseFlatten(iteratees, 1), []); - }); - var now = ctxNow || function() { - return root.Date.now(); - }; - function after(n, func) { - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - n = toInteger(n); - return function() { - if (--n < 1) { - return func.apply(this, arguments); - } - }; - } - function ary(func, n, guard) { - n = guard ? undefined2 : n; - n = func && n == null ? func.length : n; - return createWrap(func, WRAP_ARY_FLAG, undefined2, undefined2, undefined2, undefined2, n); - } - function before(n, func) { - var result2; - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - n = toInteger(n); - return function() { - if (--n > 0) { - result2 = func.apply(this, arguments); - } - if (n <= 1) { - func = undefined2; - } - return result2; - }; - } - var bind = baseRest(function(func, thisArg, partials) { - var bitmask = WRAP_BIND_FLAG; - if (partials.length) { - var holders = replaceHolders(partials, getHolder(bind)); - bitmask |= WRAP_PARTIAL_FLAG; - } - return createWrap(func, bitmask, thisArg, partials, holders); - }); - var bindKey = baseRest(function(object, key, partials) { - var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG; - if (partials.length) { - var holders = replaceHolders(partials, getHolder(bindKey)); - bitmask |= WRAP_PARTIAL_FLAG; - } - return createWrap(key, bitmask, object, partials, holders); - }); - function curry(func, arity, guard) { - arity = guard ? undefined2 : arity; - var result2 = createWrap(func, WRAP_CURRY_FLAG, undefined2, undefined2, undefined2, undefined2, undefined2, arity); - result2.placeholder = curry.placeholder; - return result2; - } - function curryRight(func, arity, guard) { - arity = guard ? undefined2 : arity; - var result2 = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined2, undefined2, undefined2, undefined2, undefined2, arity); - result2.placeholder = curryRight.placeholder; - return result2; - } - function debounce(func, wait, options) { - var lastArgs, lastThis, maxWait, result2, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true; - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - wait = toNumber(wait) || 0; - if (isObject(options)) { - leading = !!options.leading; - maxing = "maxWait" in options; - maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait; - trailing = "trailing" in options ? !!options.trailing : trailing; - } - function invokeFunc(time) { - var args = lastArgs, thisArg = lastThis; - lastArgs = lastThis = undefined2; - lastInvokeTime = time; - result2 = func.apply(thisArg, args); - return result2; - } - function leadingEdge(time) { - lastInvokeTime = time; - timerId = setTimeout2(timerExpired, wait); - return leading ? invokeFunc(time) : result2; - } - function remainingWait(time) { - var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall; - return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting; - } - function shouldInvoke(time) { - var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime; - return lastCallTime === undefined2 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait; - } - function timerExpired() { - var time = now(); - if (shouldInvoke(time)) { - return trailingEdge(time); - } - timerId = setTimeout2(timerExpired, remainingWait(time)); - } - function trailingEdge(time) { - timerId = undefined2; - if (trailing && lastArgs) { - return invokeFunc(time); - } - lastArgs = lastThis = undefined2; - return result2; - } - function cancel() { - if (timerId !== undefined2) { - clearTimeout2(timerId); - } - lastInvokeTime = 0; - lastArgs = lastCallTime = lastThis = timerId = undefined2; - } - function flush() { - return timerId === undefined2 ? result2 : trailingEdge(now()); - } - function debounced() { - var time = now(), isInvoking = shouldInvoke(time); - lastArgs = arguments; - lastThis = this; - lastCallTime = time; - if (isInvoking) { - if (timerId === undefined2) { - return leadingEdge(lastCallTime); - } - if (maxing) { - clearTimeout2(timerId); - timerId = setTimeout2(timerExpired, wait); - return invokeFunc(lastCallTime); - } - } - if (timerId === undefined2) { - timerId = setTimeout2(timerExpired, wait); - } - return result2; - } - debounced.cancel = cancel; - debounced.flush = flush; - return debounced; - } - var defer = baseRest(function(func, args) { - return baseDelay(func, 1, args); - }); - var delay = baseRest(function(func, wait, args) { - return baseDelay(func, toNumber(wait) || 0, args); - }); - function flip(func) { - return createWrap(func, WRAP_FLIP_FLAG); - } - function memoize(func, resolver) { - if (typeof func != "function" || resolver != null && typeof resolver != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - var memoized = function() { - var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache; - if (cache.has(key)) { - return cache.get(key); - } - var result2 = func.apply(this, args); - memoized.cache = cache.set(key, result2) || cache; - return result2; - }; - memoized.cache = new (memoize.Cache || MapCache)(); - return memoized; - } - memoize.Cache = MapCache; - function negate(predicate) { - if (typeof predicate != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - return function() { - var args = arguments; - switch (args.length) { - case 0: - return !predicate.call(this); - case 1: - return !predicate.call(this, args[0]); - case 2: - return !predicate.call(this, args[0], args[1]); - case 3: - return !predicate.call(this, args[0], args[1], args[2]); - } - return !predicate.apply(this, args); - }; - } - function once(func) { - return before(2, func); - } - var overArgs = castRest(function(func, transforms) { - transforms = transforms.length == 1 && isArray(transforms[0]) ? arrayMap(transforms[0], baseUnary(getIteratee())) : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee())); - var funcsLength = transforms.length; - return baseRest(function(args) { - var index2 = -1, length = nativeMin(args.length, funcsLength); - while (++index2 < length) { - args[index2] = transforms[index2].call(this, args[index2]); - } - return apply(func, this, args); - }); - }); - var partial = baseRest(function(func, partials) { - var holders = replaceHolders(partials, getHolder(partial)); - return createWrap(func, WRAP_PARTIAL_FLAG, undefined2, partials, holders); - }); - var partialRight = baseRest(function(func, partials) { - var holders = replaceHolders(partials, getHolder(partialRight)); - return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined2, partials, holders); - }); - var rearg = flatRest(function(func, indexes) { - return createWrap(func, WRAP_REARG_FLAG, undefined2, undefined2, undefined2, indexes); - }); - function rest(func, start) { - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - start = start === undefined2 ? start : toInteger(start); - return baseRest(func, start); - } - function spread(func, start) { - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - start = start == null ? 0 : nativeMax(toInteger(start), 0); - return baseRest(function(args) { - var array = args[start], otherArgs = castSlice(args, 0, start); - if (array) { - arrayPush(otherArgs, array); - } - return apply(func, this, otherArgs); - }); - } - function throttle(func, wait, options) { - var leading = true, trailing = true; - if (typeof func != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - if (isObject(options)) { - leading = "leading" in options ? !!options.leading : leading; - trailing = "trailing" in options ? !!options.trailing : trailing; - } - return debounce(func, wait, { - "leading": leading, - "maxWait": wait, - "trailing": trailing - }); - } - function unary(func) { - return ary(func, 1); - } - function wrap(value, wrapper) { - return partial(castFunction(wrapper), value); - } - function castArray() { - if (!arguments.length) { - return []; - } - var value = arguments[0]; - return isArray(value) ? value : [value]; - } - function clone(value) { - return baseClone(value, CLONE_SYMBOLS_FLAG); - } - function cloneWith(value, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined2; - return baseClone(value, CLONE_SYMBOLS_FLAG, customizer); - } - function cloneDeep(value) { - return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG); - } - function cloneDeepWith(value, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined2; - return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer); - } - function conformsTo(object, source) { - return source == null || baseConformsTo(object, source, keys(source)); - } - function eq(value, other) { - return value === other || value !== value && other !== other; - } - var gt = createRelationalOperation(baseGt); - var gte = createRelationalOperation(function(value, other) { - return value >= other; - }); - var isArguments = baseIsArguments(function() { - return arguments; - }()) ? baseIsArguments : function(value) { - return isObjectLike(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee"); - }; - var isArray = Array2.isArray; - var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer; - function isArrayLike(value) { - return value != null && isLength(value.length) && !isFunction(value); - } - function isArrayLikeObject(value) { - return isObjectLike(value) && isArrayLike(value); - } - function isBoolean(value) { - return value === true || value === false || isObjectLike(value) && baseGetTag(value) == boolTag; - } - var isBuffer = nativeIsBuffer || stubFalse; - var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate; - function isElement(value) { - return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value); - } - function isEmpty(value) { - if (value == null) { - return true; - } - if (isArrayLike(value) && (isArray(value) || typeof value == "string" || typeof value.splice == "function" || isBuffer(value) || isTypedArray(value) || isArguments(value))) { - return !value.length; - } - var tag = getTag(value); - if (tag == mapTag || tag == setTag) { - return !value.size; - } - if (isPrototype(value)) { - return !baseKeys(value).length; - } - for (var key in value) { - if (hasOwnProperty.call(value, key)) { - return false; - } - } - return true; - } - function isEqual(value, other) { - return baseIsEqual(value, other); - } - function isEqualWith(value, other, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined2; - var result2 = customizer ? customizer(value, other) : undefined2; - return result2 === undefined2 ? baseIsEqual(value, other, undefined2, customizer) : !!result2; - } - function isError(value) { - if (!isObjectLike(value)) { - return false; - } - var tag = baseGetTag(value); - return tag == errorTag || tag == domExcTag || typeof value.message == "string" && typeof value.name == "string" && !isPlainObject(value); - } - function isFinite2(value) { - return typeof value == "number" && nativeIsFinite(value); - } - function isFunction(value) { - if (!isObject(value)) { - return false; - } - var tag = baseGetTag(value); - return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; - } - function isInteger(value) { - return typeof value == "number" && value == toInteger(value); - } - function isLength(value) { - return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; - } - function isObject(value) { - var type = typeof value; - return value != null && (type == "object" || type == "function"); - } - function isObjectLike(value) { - return value != null && typeof value == "object"; - } - var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap; - function isMatch(object, source) { - return object === source || baseIsMatch(object, source, getMatchData(source)); - } - function isMatchWith(object, source, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined2; - return baseIsMatch(object, source, getMatchData(source), customizer); - } - function isNaN2(value) { - return isNumber(value) && value != +value; - } - function isNative(value) { - if (isMaskable(value)) { - throw new Error2(CORE_ERROR_TEXT); - } - return baseIsNative(value); - } - function isNull(value) { - return value === null; - } - function isNil(value) { - return value == null; - } - function isNumber(value) { - return typeof value == "number" || isObjectLike(value) && baseGetTag(value) == numberTag; - } - function isPlainObject(value) { - if (!isObjectLike(value) || baseGetTag(value) != objectTag) { - return false; - } - var proto = getPrototype(value); - if (proto === null) { - return true; - } - var Ctor = hasOwnProperty.call(proto, "constructor") && proto.constructor; - return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString; - } - var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp; - function isSafeInteger(value) { - return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER; - } - var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet; - function isString(value) { - return typeof value == "string" || !isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag; - } - function isSymbol(value) { - return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag; - } - var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; - function isUndefined(value) { - return value === undefined2; - } - function isWeakMap(value) { - return isObjectLike(value) && getTag(value) == weakMapTag; - } - function isWeakSet(value) { - return isObjectLike(value) && baseGetTag(value) == weakSetTag; - } - var lt = createRelationalOperation(baseLt); - var lte = createRelationalOperation(function(value, other) { - return value <= other; - }); - function toArray(value) { - if (!value) { - return []; - } - if (isArrayLike(value)) { - return isString(value) ? stringToArray(value) : copyArray(value); - } - if (symIterator && value[symIterator]) { - return iteratorToArray(value[symIterator]()); - } - var tag = getTag(value), func = tag == mapTag ? mapToArray : tag == setTag ? setToArray : values; - return func(value); - } - function toFinite(value) { - if (!value) { - return value === 0 ? value : 0; - } - value = toNumber(value); - if (value === INFINITY || value === -INFINITY) { - var sign = value < 0 ? -1 : 1; - return sign * MAX_INTEGER; - } - return value === value ? value : 0; - } - function toInteger(value) { - var result2 = toFinite(value), remainder = result2 % 1; - return result2 === result2 ? remainder ? result2 - remainder : result2 : 0; - } - function toLength(value) { - return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0; - } - function toNumber(value) { - if (typeof value == "number") { - return value; - } - if (isSymbol(value)) { - return NAN; - } - if (isObject(value)) { - var other = typeof value.valueOf == "function" ? value.valueOf() : value; - value = isObject(other) ? other + "" : other; - } - if (typeof value != "string") { - return value === 0 ? value : +value; - } - value = baseTrim(value); - var isBinary = reIsBinary.test(value); - return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value; - } - function toPlainObject(value) { - return copyObject(value, keysIn(value)); - } - function toSafeInteger(value) { - return value ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER) : value === 0 ? value : 0; - } - function toString(value) { - return value == null ? "" : baseToString(value); - } - var assign = createAssigner(function(object, source) { - if (isPrototype(source) || isArrayLike(source)) { - copyObject(source, keys(source), object); - return; - } - for (var key in source) { - if (hasOwnProperty.call(source, key)) { - assignValue(object, key, source[key]); - } - } - }); - var assignIn = createAssigner(function(object, source) { - copyObject(source, keysIn(source), object); - }); - var assignInWith = createAssigner(function(object, source, srcIndex, customizer) { - copyObject(source, keysIn(source), object, customizer); - }); - var assignWith = createAssigner(function(object, source, srcIndex, customizer) { - copyObject(source, keys(source), object, customizer); - }); - var at = flatRest(baseAt); - function create(prototype, properties) { - var result2 = baseCreate(prototype); - return properties == null ? result2 : baseAssign(result2, properties); - } - var defaults = baseRest(function(object, sources) { - object = Object2(object); - var index2 = -1; - var length = sources.length; - var guard = length > 2 ? sources[2] : undefined2; - if (guard && isIterateeCall(sources[0], sources[1], guard)) { - length = 1; - } - while (++index2 < length) { - var source = sources[index2]; - var props = keysIn(source); - var propsIndex = -1; - var propsLength = props.length; - while (++propsIndex < propsLength) { - var key = props[propsIndex]; - var value = object[key]; - if (value === undefined2 || eq(value, objectProto[key]) && !hasOwnProperty.call(object, key)) { - object[key] = source[key]; - } - } - } - return object; - }); - var defaultsDeep = baseRest(function(args) { - args.push(undefined2, customDefaultsMerge); - return apply(mergeWith, undefined2, args); - }); - function findKey(object, predicate) { - return baseFindKey(object, getIteratee(predicate, 3), baseForOwn); - } - function findLastKey(object, predicate) { - return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight); - } - function forIn(object, iteratee2) { - return object == null ? object : baseFor(object, getIteratee(iteratee2, 3), keysIn); - } - function forInRight(object, iteratee2) { - return object == null ? object : baseForRight(object, getIteratee(iteratee2, 3), keysIn); - } - function forOwn(object, iteratee2) { - return object && baseForOwn(object, getIteratee(iteratee2, 3)); - } - function forOwnRight(object, iteratee2) { - return object && baseForOwnRight(object, getIteratee(iteratee2, 3)); - } - function functions(object) { - return object == null ? [] : baseFunctions(object, keys(object)); - } - function functionsIn(object) { - return object == null ? [] : baseFunctions(object, keysIn(object)); - } - function get(object, path, defaultValue) { - var result2 = object == null ? undefined2 : baseGet(object, path); - return result2 === undefined2 ? defaultValue : result2; - } - function has(object, path) { - return object != null && hasPath(object, path, baseHas); - } - function hasIn(object, path) { - return object != null && hasPath(object, path, baseHasIn); - } - var invert = createInverter(function(result2, value, key) { - if (value != null && typeof value.toString != "function") { - value = nativeObjectToString.call(value); - } - result2[value] = key; - }, constant(identity)); - var invertBy = createInverter(function(result2, value, key) { - if (value != null && typeof value.toString != "function") { - value = nativeObjectToString.call(value); - } - if (hasOwnProperty.call(result2, value)) { - result2[value].push(key); - } else { - result2[value] = [key]; - } - }, getIteratee); - var invoke = baseRest(baseInvoke); - function keys(object) { - return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); - } - function keysIn(object) { - return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); - } - function mapKeys(object, iteratee2) { - var result2 = {}; - iteratee2 = getIteratee(iteratee2, 3); - baseForOwn(object, function(value, key, object2) { - baseAssignValue(result2, iteratee2(value, key, object2), value); - }); - return result2; - } - function mapValues(object, iteratee2) { - var result2 = {}; - iteratee2 = getIteratee(iteratee2, 3); - baseForOwn(object, function(value, key, object2) { - baseAssignValue(result2, key, iteratee2(value, key, object2)); - }); - return result2; - } - var merge = createAssigner(function(object, source, srcIndex) { - baseMerge(object, source, srcIndex); - }); - var mergeWith = createAssigner(function(object, source, srcIndex, customizer) { - baseMerge(object, source, srcIndex, customizer); - }); - var omit = flatRest(function(object, paths) { - var result2 = {}; - if (object == null) { - return result2; - } - var isDeep = false; - paths = arrayMap(paths, function(path) { - path = castPath(path, object); - isDeep || (isDeep = path.length > 1); - return path; - }); - copyObject(object, getAllKeysIn(object), result2); - if (isDeep) { - result2 = baseClone(result2, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone); - } - var length = paths.length; - while (length--) { - baseUnset(result2, paths[length]); - } - return result2; - }); - function omitBy(object, predicate) { - return pickBy(object, negate(getIteratee(predicate))); - } - var pick = flatRest(function(object, paths) { - return object == null ? {} : basePick(object, paths); - }); - function pickBy(object, predicate) { - if (object == null) { - return {}; - } - var props = arrayMap(getAllKeysIn(object), function(prop) { - return [prop]; - }); - predicate = getIteratee(predicate); - return basePickBy(object, props, function(value, path) { - return predicate(value, path[0]); - }); - } - function result(object, path, defaultValue) { - path = castPath(path, object); - var index2 = -1, length = path.length; - if (!length) { - length = 1; - object = undefined2; - } - while (++index2 < length) { - var value = object == null ? undefined2 : object[toKey(path[index2])]; - if (value === undefined2) { - index2 = length; - value = defaultValue; - } - object = isFunction(value) ? value.call(object) : value; - } - return object; - } - function set(object, path, value) { - return object == null ? object : baseSet(object, path, value); - } - function setWith(object, path, value, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined2; - return object == null ? object : baseSet(object, path, value, customizer); - } - var toPairs = createToPairs(keys); - var toPairsIn = createToPairs(keysIn); - function transform(object, iteratee2, accumulator) { - var isArr = isArray(object), isArrLike = isArr || isBuffer(object) || isTypedArray(object); - iteratee2 = getIteratee(iteratee2, 4); - if (accumulator == null) { - var Ctor = object && object.constructor; - if (isArrLike) { - accumulator = isArr ? new Ctor() : []; - } else if (isObject(object)) { - accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {}; - } else { - accumulator = {}; - } - } - (isArrLike ? arrayEach : baseForOwn)(object, function(value, index2, object2) { - return iteratee2(accumulator, value, index2, object2); - }); - return accumulator; - } - function unset(object, path) { - return object == null ? true : baseUnset(object, path); - } - function update(object, path, updater) { - return object == null ? object : baseUpdate(object, path, castFunction(updater)); - } - function updateWith(object, path, updater, customizer) { - customizer = typeof customizer == "function" ? customizer : undefined2; - return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer); - } - function values(object) { - return object == null ? [] : baseValues(object, keys(object)); - } - function valuesIn(object) { - return object == null ? [] : baseValues(object, keysIn(object)); - } - function clamp(number, lower, upper) { - if (upper === undefined2) { - upper = lower; - lower = undefined2; - } - if (upper !== undefined2) { - upper = toNumber(upper); - upper = upper === upper ? upper : 0; - } - if (lower !== undefined2) { - lower = toNumber(lower); - lower = lower === lower ? lower : 0; - } - return baseClamp(toNumber(number), lower, upper); - } - function inRange(number, start, end) { - start = toFinite(start); - if (end === undefined2) { - end = start; - start = 0; - } else { - end = toFinite(end); - } - number = toNumber(number); - return baseInRange(number, start, end); - } - function random(lower, upper, floating) { - if (floating && typeof floating != "boolean" && isIterateeCall(lower, upper, floating)) { - upper = floating = undefined2; - } - if (floating === undefined2) { - if (typeof upper == "boolean") { - floating = upper; - upper = undefined2; - } else if (typeof lower == "boolean") { - floating = lower; - lower = undefined2; - } - } - if (lower === undefined2 && upper === undefined2) { - lower = 0; - upper = 1; - } else { - lower = toFinite(lower); - if (upper === undefined2) { - upper = lower; - lower = 0; - } else { - upper = toFinite(upper); - } - } - if (lower > upper) { - var temp = lower; - lower = upper; - upper = temp; - } - if (floating || lower % 1 || upper % 1) { - var rand = nativeRandom(); - return nativeMin(lower + rand * (upper - lower + freeParseFloat("1e-" + ((rand + "").length - 1))), upper); - } - return baseRandom(lower, upper); - } - var camelCase = createCompounder(function(result2, word, index2) { - word = word.toLowerCase(); - return result2 + (index2 ? capitalize(word) : word); - }); - function capitalize(string) { - return upperFirst(toString(string).toLowerCase()); - } - function deburr(string) { - string = toString(string); - return string && string.replace(reLatin, deburrLetter).replace(reComboMark, ""); - } - function endsWith(string, target, position) { - string = toString(string); - target = baseToString(target); - var length = string.length; - position = position === undefined2 ? length : baseClamp(toInteger(position), 0, length); - var end = position; - position -= target.length; - return position >= 0 && string.slice(position, end) == target; - } - function escape(string) { - string = toString(string); - return string && reHasUnescapedHtml.test(string) ? string.replace(reUnescapedHtml, escapeHtmlChar) : string; - } - function escapeRegExp(string) { - string = toString(string); - return string && reHasRegExpChar.test(string) ? string.replace(reRegExpChar, "\\$&") : string; - } - var kebabCase = createCompounder(function(result2, word, index2) { - return result2 + (index2 ? "-" : "") + word.toLowerCase(); - }); - var lowerCase = createCompounder(function(result2, word, index2) { - return result2 + (index2 ? " " : "") + word.toLowerCase(); - }); - var lowerFirst = createCaseFirst("toLowerCase"); - function pad(string, length, chars) { - string = toString(string); - length = toInteger(length); - var strLength = length ? stringSize(string) : 0; - if (!length || strLength >= length) { - return string; - } - var mid = (length - strLength) / 2; - return createPadding(nativeFloor(mid), chars) + string + createPadding(nativeCeil(mid), chars); - } - function padEnd(string, length, chars) { - string = toString(string); - length = toInteger(length); - var strLength = length ? stringSize(string) : 0; - return length && strLength < length ? string + createPadding(length - strLength, chars) : string; - } - function padStart(string, length, chars) { - string = toString(string); - length = toInteger(length); - var strLength = length ? stringSize(string) : 0; - return length && strLength < length ? createPadding(length - strLength, chars) + string : string; - } - function parseInt2(string, radix, guard) { - if (guard || radix == null) { - radix = 0; - } else if (radix) { - radix = +radix; - } - return nativeParseInt(toString(string).replace(reTrimStart, ""), radix || 0); - } - function repeat(string, n, guard) { - if (guard ? isIterateeCall(string, n, guard) : n === undefined2) { - n = 1; - } else { - n = toInteger(n); - } - return baseRepeat(toString(string), n); - } - function replace() { - var args = arguments, string = toString(args[0]); - return args.length < 3 ? string : string.replace(args[1], args[2]); - } - var snakeCase = createCompounder(function(result2, word, index2) { - return result2 + (index2 ? "_" : "") + word.toLowerCase(); - }); - function split(string, separator, limit) { - if (limit && typeof limit != "number" && isIterateeCall(string, separator, limit)) { - separator = limit = undefined2; - } - limit = limit === undefined2 ? MAX_ARRAY_LENGTH : limit >>> 0; - if (!limit) { - return []; - } - string = toString(string); - if (string && (typeof separator == "string" || separator != null && !isRegExp(separator))) { - separator = baseToString(separator); - if (!separator && hasUnicode(string)) { - return castSlice(stringToArray(string), 0, limit); - } - } - return string.split(separator, limit); - } - var startCase = createCompounder(function(result2, word, index2) { - return result2 + (index2 ? " " : "") + upperFirst(word); - }); - function startsWith(string, target, position) { - string = toString(string); - position = position == null ? 0 : baseClamp(toInteger(position), 0, string.length); - target = baseToString(target); - return string.slice(position, position + target.length) == target; - } - function template(string, options, guard) { - var settings = lodash.templateSettings; - if (guard && isIterateeCall(string, options, guard)) { - options = undefined2; - } - string = toString(string); - options = assignInWith({}, options, settings, customDefaultsAssignIn); - var imports = assignInWith({}, options.imports, settings.imports, customDefaultsAssignIn), importsKeys = keys(imports), importsValues = baseValues(imports, importsKeys); - var isEscaping, isEvaluating, index2 = 0, interpolate = options.interpolate || reNoMatch, source = "__p += '"; - var reDelimiters = RegExp2((options.escape || reNoMatch).source + "|" + interpolate.source + "|" + (interpolate === reInterpolate ? reEsTemplate : reNoMatch).source + "|" + (options.evaluate || reNoMatch).source + "|$", "g"); - var sourceURL = "//# sourceURL=" + (hasOwnProperty.call(options, "sourceURL") ? (options.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++templateCounter + "]") + "\n"; - string.replace(reDelimiters, function(match, escapeValue, interpolateValue, esTemplateValue, evaluateValue, offset) { - interpolateValue || (interpolateValue = esTemplateValue); - source += string.slice(index2, offset).replace(reUnescapedString, escapeStringChar); - if (escapeValue) { - isEscaping = true; - source += "' +\n__e(" + escapeValue + ") +\n'"; - } - if (evaluateValue) { - isEvaluating = true; - source += "';\n" + evaluateValue + ";\n__p += '"; - } - if (interpolateValue) { - source += "' +\n((__t = (" + interpolateValue + ")) == null ? '' : __t) +\n'"; - } - index2 = offset + match.length; - return match; - }); - source += "';\n"; - var variable = hasOwnProperty.call(options, "variable") && options.variable; - if (!variable) { - source = "with (obj) {\n" + source + "\n}\n"; - } else if (reForbiddenIdentifierChars.test(variable)) { - throw new Error2(INVALID_TEMPL_VAR_ERROR_TEXT); - } - source = (isEvaluating ? source.replace(reEmptyStringLeading, "") : source).replace(reEmptyStringMiddle, "$1").replace(reEmptyStringTrailing, "$1;"); - source = "function(" + (variable || "obj") + ") {\n" + (variable ? "" : "obj || (obj = {});\n") + "var __t, __p = ''" + (isEscaping ? ", __e = _.escape" : "") + (isEvaluating ? ", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n" : ";\n") + source + "return __p\n}"; - var result2 = attempt(function() { - return Function2(importsKeys, sourceURL + "return " + source).apply(undefined2, importsValues); - }); - result2.source = source; - if (isError(result2)) { - throw result2; - } - return result2; - } - function toLower(value) { - return toString(value).toLowerCase(); - } - function toUpper(value) { - return toString(value).toUpperCase(); - } - function trim(string, chars, guard) { - string = toString(string); - if (string && (guard || chars === undefined2)) { - return baseTrim(string); - } - if (!string || !(chars = baseToString(chars))) { - return string; - } - var strSymbols = stringToArray(string), chrSymbols = stringToArray(chars), start = charsStartIndex(strSymbols, chrSymbols), end = charsEndIndex(strSymbols, chrSymbols) + 1; - return castSlice(strSymbols, start, end).join(""); - } - function trimEnd(string, chars, guard) { - string = toString(string); - if (string && (guard || chars === undefined2)) { - return string.slice(0, trimmedEndIndex(string) + 1); - } - if (!string || !(chars = baseToString(chars))) { - return string; - } - var strSymbols = stringToArray(string), end = charsEndIndex(strSymbols, stringToArray(chars)) + 1; - return castSlice(strSymbols, 0, end).join(""); - } - function trimStart(string, chars, guard) { - string = toString(string); - if (string && (guard || chars === undefined2)) { - return string.replace(reTrimStart, ""); - } - if (!string || !(chars = baseToString(chars))) { - return string; - } - var strSymbols = stringToArray(string), start = charsStartIndex(strSymbols, stringToArray(chars)); - return castSlice(strSymbols, start).join(""); - } - function truncate(string, options) { - var length = DEFAULT_TRUNC_LENGTH, omission = DEFAULT_TRUNC_OMISSION; - if (isObject(options)) { - var separator = "separator" in options ? options.separator : separator; - length = "length" in options ? toInteger(options.length) : length; - omission = "omission" in options ? baseToString(options.omission) : omission; - } - string = toString(string); - var strLength = string.length; - if (hasUnicode(string)) { - var strSymbols = stringToArray(string); - strLength = strSymbols.length; - } - if (length >= strLength) { - return string; - } - var end = length - stringSize(omission); - if (end < 1) { - return omission; - } - var result2 = strSymbols ? castSlice(strSymbols, 0, end).join("") : string.slice(0, end); - if (separator === undefined2) { - return result2 + omission; - } - if (strSymbols) { - end += result2.length - end; - } - if (isRegExp(separator)) { - if (string.slice(end).search(separator)) { - var match, substring = result2; - if (!separator.global) { - separator = RegExp2(separator.source, toString(reFlags.exec(separator)) + "g"); - } - separator.lastIndex = 0; - while (match = separator.exec(substring)) { - var newEnd = match.index; - } - result2 = result2.slice(0, newEnd === undefined2 ? end : newEnd); - } - } else if (string.indexOf(baseToString(separator), end) != end) { - var index2 = result2.lastIndexOf(separator); - if (index2 > -1) { - result2 = result2.slice(0, index2); - } - } - return result2 + omission; - } - function unescape(string) { - string = toString(string); - return string && reHasEscapedHtml.test(string) ? string.replace(reEscapedHtml, unescapeHtmlChar) : string; - } - var upperCase = createCompounder(function(result2, word, index2) { - return result2 + (index2 ? " " : "") + word.toUpperCase(); - }); - var upperFirst = createCaseFirst("toUpperCase"); - function words(string, pattern, guard) { - string = toString(string); - pattern = guard ? undefined2 : pattern; - if (pattern === undefined2) { - return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string); - } - return string.match(pattern) || []; - } - var attempt = baseRest(function(func, args) { - try { - return apply(func, undefined2, args); - } catch (e) { - return isError(e) ? e : new Error2(e); - } - }); - var bindAll = flatRest(function(object, methodNames) { - arrayEach(methodNames, function(key) { - key = toKey(key); - baseAssignValue(object, key, bind(object[key], object)); - }); - return object; - }); - function cond(pairs) { - var length = pairs == null ? 0 : pairs.length, toIteratee = getIteratee(); - pairs = !length ? [] : arrayMap(pairs, function(pair) { - if (typeof pair[1] != "function") { - throw new TypeError2(FUNC_ERROR_TEXT); - } - return [toIteratee(pair[0]), pair[1]]; - }); - return baseRest(function(args) { - var index2 = -1; - while (++index2 < length) { - var pair = pairs[index2]; - if (apply(pair[0], this, args)) { - return apply(pair[1], this, args); - } - } - }); - } - function conforms(source) { - return baseConforms(baseClone(source, CLONE_DEEP_FLAG)); - } - function constant(value) { - return function() { - return value; - }; - } - function defaultTo(value, defaultValue) { - return value == null || value !== value ? defaultValue : value; - } - var flow = createFlow(); - var flowRight = createFlow(true); - function identity(value) { - return value; - } - function iteratee(func) { - return baseIteratee(typeof func == "function" ? func : baseClone(func, CLONE_DEEP_FLAG)); - } - function matches(source) { - return baseMatches(baseClone(source, CLONE_DEEP_FLAG)); - } - function matchesProperty(path, srcValue) { - return baseMatchesProperty(path, baseClone(srcValue, CLONE_DEEP_FLAG)); - } - var method = baseRest(function(path, args) { - return function(object) { - return baseInvoke(object, path, args); - }; - }); - var methodOf = baseRest(function(object, args) { - return function(path) { - return baseInvoke(object, path, args); - }; - }); - function mixin(object, source, options) { - var props = keys(source), methodNames = baseFunctions(source, props); - if (options == null && !(isObject(source) && (methodNames.length || !props.length))) { - options = source; - source = object; - object = this; - methodNames = baseFunctions(source, keys(source)); - } - var chain2 = !(isObject(options) && "chain" in options) || !!options.chain, isFunc = isFunction(object); - arrayEach(methodNames, function(methodName) { - var func = source[methodName]; - object[methodName] = func; - if (isFunc) { - object.prototype[methodName] = function() { - var chainAll = this.__chain__; - if (chain2 || chainAll) { - var result2 = object(this.__wrapped__), actions = result2.__actions__ = copyArray(this.__actions__); - actions.push({"func": func, "args": arguments, "thisArg": object}); - result2.__chain__ = chainAll; - return result2; - } - return func.apply(object, arrayPush([this.value()], arguments)); - }; - } - }); - return object; - } - function noConflict() { - if (root._ === this) { - root._ = oldDash; - } - return this; - } - function noop() { - } - function nthArg(n) { - n = toInteger(n); - return baseRest(function(args) { - return baseNth(args, n); - }); - } - var over = createOver(arrayMap); - var overEvery = createOver(arrayEvery); - var overSome = createOver(arraySome); - function property(path) { - return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path); - } - function propertyOf(object) { - return function(path) { - return object == null ? undefined2 : baseGet(object, path); - }; - } - var range = createRange(); - var rangeRight = createRange(true); - function stubArray() { - return []; - } - function stubFalse() { - return false; - } - function stubObject() { - return {}; - } - function stubString() { - return ""; - } - function stubTrue() { - return true; - } - function times(n, iteratee2) { - n = toInteger(n); - if (n < 1 || n > MAX_SAFE_INTEGER) { - return []; - } - var index2 = MAX_ARRAY_LENGTH, length = nativeMin(n, MAX_ARRAY_LENGTH); - iteratee2 = getIteratee(iteratee2); - n -= MAX_ARRAY_LENGTH; - var result2 = baseTimes(length, iteratee2); - while (++index2 < n) { - iteratee2(index2); - } - return result2; - } - function toPath(value) { - if (isArray(value)) { - return arrayMap(value, toKey); - } - return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value))); - } - function uniqueId(prefix) { - var id = ++idCounter; - return toString(prefix) + id; - } - var add = createMathOperation(function(augend, addend) { - return augend + addend; - }, 0); - var ceil = createRound("ceil"); - var divide = createMathOperation(function(dividend, divisor) { - return dividend / divisor; - }, 1); - var floor = createRound("floor"); - function max(array) { - return array && array.length ? baseExtremum(array, identity, baseGt) : undefined2; - } - function maxBy(array, iteratee2) { - return array && array.length ? baseExtremum(array, getIteratee(iteratee2, 2), baseGt) : undefined2; - } - function mean(array) { - return baseMean(array, identity); - } - function meanBy(array, iteratee2) { - return baseMean(array, getIteratee(iteratee2, 2)); - } - function min(array) { - return array && array.length ? baseExtremum(array, identity, baseLt) : undefined2; - } - function minBy(array, iteratee2) { - return array && array.length ? baseExtremum(array, getIteratee(iteratee2, 2), baseLt) : undefined2; - } - var multiply = createMathOperation(function(multiplier, multiplicand) { - return multiplier * multiplicand; - }, 1); - var round = createRound("round"); - var subtract = createMathOperation(function(minuend, subtrahend) { - return minuend - subtrahend; - }, 0); - function sum(array) { - return array && array.length ? baseSum(array, identity) : 0; - } - function sumBy(array, iteratee2) { - return array && array.length ? baseSum(array, getIteratee(iteratee2, 2)) : 0; - } - lodash.after = after; - lodash.ary = ary; - lodash.assign = assign; - lodash.assignIn = assignIn; - lodash.assignInWith = assignInWith; - lodash.assignWith = assignWith; - lodash.at = at; - lodash.before = before; - lodash.bind = bind; - lodash.bindAll = bindAll; - lodash.bindKey = bindKey; - lodash.castArray = castArray; - lodash.chain = chain; - lodash.chunk = chunk; - lodash.compact = compact; - lodash.concat = concat; - lodash.cond = cond; - lodash.conforms = conforms; - lodash.constant = constant; - lodash.countBy = countBy; - lodash.create = create; - lodash.curry = curry; - lodash.curryRight = curryRight; - lodash.debounce = debounce; - lodash.defaults = defaults; - lodash.defaultsDeep = defaultsDeep; - lodash.defer = defer; - lodash.delay = delay; - lodash.difference = difference; - lodash.differenceBy = differenceBy; - lodash.differenceWith = differenceWith; - lodash.drop = drop; - lodash.dropRight = dropRight; - lodash.dropRightWhile = dropRightWhile; - lodash.dropWhile = dropWhile; - lodash.fill = fill; - lodash.filter = filter; - lodash.flatMap = flatMap; - lodash.flatMapDeep = flatMapDeep; - lodash.flatMapDepth = flatMapDepth; - lodash.flatten = flatten; - lodash.flattenDeep = flattenDeep; - lodash.flattenDepth = flattenDepth; - lodash.flip = flip; - lodash.flow = flow; - lodash.flowRight = flowRight; - lodash.fromPairs = fromPairs; - lodash.functions = functions; - lodash.functionsIn = functionsIn; - lodash.groupBy = groupBy; - lodash.initial = initial; - lodash.intersection = intersection; - lodash.intersectionBy = intersectionBy; - lodash.intersectionWith = intersectionWith; - lodash.invert = invert; - lodash.invertBy = invertBy; - lodash.invokeMap = invokeMap; - lodash.iteratee = iteratee; - lodash.keyBy = keyBy; - lodash.keys = keys; - lodash.keysIn = keysIn; - lodash.map = map; - lodash.mapKeys = mapKeys; - lodash.mapValues = mapValues; - lodash.matches = matches; - lodash.matchesProperty = matchesProperty; - lodash.memoize = memoize; - lodash.merge = merge; - lodash.mergeWith = mergeWith; - lodash.method = method; - lodash.methodOf = methodOf; - lodash.mixin = mixin; - lodash.negate = negate; - lodash.nthArg = nthArg; - lodash.omit = omit; - lodash.omitBy = omitBy; - lodash.once = once; - lodash.orderBy = orderBy; - lodash.over = over; - lodash.overArgs = overArgs; - lodash.overEvery = overEvery; - lodash.overSome = overSome; - lodash.partial = partial; - lodash.partialRight = partialRight; - lodash.partition = partition; - lodash.pick = pick; - lodash.pickBy = pickBy; - lodash.property = property; - lodash.propertyOf = propertyOf; - lodash.pull = pull; - lodash.pullAll = pullAll; - lodash.pullAllBy = pullAllBy; - lodash.pullAllWith = pullAllWith; - lodash.pullAt = pullAt; - lodash.range = range; - lodash.rangeRight = rangeRight; - lodash.rearg = rearg; - lodash.reject = reject; - lodash.remove = remove; - lodash.rest = rest; - lodash.reverse = reverse; - lodash.sampleSize = sampleSize; - lodash.set = set; - lodash.setWith = setWith; - lodash.shuffle = shuffle; - lodash.slice = slice; - lodash.sortBy = sortBy; - lodash.sortedUniq = sortedUniq; - lodash.sortedUniqBy = sortedUniqBy; - lodash.split = split; - lodash.spread = spread; - lodash.tail = tail; - lodash.take = take; - lodash.takeRight = takeRight; - lodash.takeRightWhile = takeRightWhile; - lodash.takeWhile = takeWhile; - lodash.tap = tap; - lodash.throttle = throttle; - lodash.thru = thru; - lodash.toArray = toArray; - lodash.toPairs = toPairs; - lodash.toPairsIn = toPairsIn; - lodash.toPath = toPath; - lodash.toPlainObject = toPlainObject; - lodash.transform = transform; - lodash.unary = unary; - lodash.union = union; - lodash.unionBy = unionBy; - lodash.unionWith = unionWith; - lodash.uniq = uniq; - lodash.uniqBy = uniqBy; - lodash.uniqWith = uniqWith; - lodash.unset = unset; - lodash.unzip = unzip; - lodash.unzipWith = unzipWith; - lodash.update = update; - lodash.updateWith = updateWith; - lodash.values = values; - lodash.valuesIn = valuesIn; - lodash.without = without; - lodash.words = words; - lodash.wrap = wrap; - lodash.xor = xor; - lodash.xorBy = xorBy; - lodash.xorWith = xorWith; - lodash.zip = zip; - lodash.zipObject = zipObject; - lodash.zipObjectDeep = zipObjectDeep; - lodash.zipWith = zipWith; - lodash.entries = toPairs; - lodash.entriesIn = toPairsIn; - lodash.extend = assignIn; - lodash.extendWith = assignInWith; - mixin(lodash, lodash); - lodash.add = add; - lodash.attempt = attempt; - lodash.camelCase = camelCase; - lodash.capitalize = capitalize; - lodash.ceil = ceil; - lodash.clamp = clamp; - lodash.clone = clone; - lodash.cloneDeep = cloneDeep; - lodash.cloneDeepWith = cloneDeepWith; - lodash.cloneWith = cloneWith; - lodash.conformsTo = conformsTo; - lodash.deburr = deburr; - lodash.defaultTo = defaultTo; - lodash.divide = divide; - lodash.endsWith = endsWith; - lodash.eq = eq; - lodash.escape = escape; - lodash.escapeRegExp = escapeRegExp; - lodash.every = every; - lodash.find = find; - lodash.findIndex = findIndex; - lodash.findKey = findKey; - lodash.findLast = findLast; - lodash.findLastIndex = findLastIndex; - lodash.findLastKey = findLastKey; - lodash.floor = floor; - lodash.forEach = forEach; - lodash.forEachRight = forEachRight; - lodash.forIn = forIn; - lodash.forInRight = forInRight; - lodash.forOwn = forOwn; - lodash.forOwnRight = forOwnRight; - lodash.get = get; - lodash.gt = gt; - lodash.gte = gte; - lodash.has = has; - lodash.hasIn = hasIn; - lodash.head = head; - lodash.identity = identity; - lodash.includes = includes; - lodash.indexOf = indexOf; - lodash.inRange = inRange; - lodash.invoke = invoke; - lodash.isArguments = isArguments; - lodash.isArray = isArray; - lodash.isArrayBuffer = isArrayBuffer; - lodash.isArrayLike = isArrayLike; - lodash.isArrayLikeObject = isArrayLikeObject; - lodash.isBoolean = isBoolean; - lodash.isBuffer = isBuffer; - lodash.isDate = isDate; - lodash.isElement = isElement; - lodash.isEmpty = isEmpty; - lodash.isEqual = isEqual; - lodash.isEqualWith = isEqualWith; - lodash.isError = isError; - lodash.isFinite = isFinite2; - lodash.isFunction = isFunction; - lodash.isInteger = isInteger; - lodash.isLength = isLength; - lodash.isMap = isMap; - lodash.isMatch = isMatch; - lodash.isMatchWith = isMatchWith; - lodash.isNaN = isNaN2; - lodash.isNative = isNative; - lodash.isNil = isNil; - lodash.isNull = isNull; - lodash.isNumber = isNumber; - lodash.isObject = isObject; - lodash.isObjectLike = isObjectLike; - lodash.isPlainObject = isPlainObject; - lodash.isRegExp = isRegExp; - lodash.isSafeInteger = isSafeInteger; - lodash.isSet = isSet; - lodash.isString = isString; - lodash.isSymbol = isSymbol; - lodash.isTypedArray = isTypedArray; - lodash.isUndefined = isUndefined; - lodash.isWeakMap = isWeakMap; - lodash.isWeakSet = isWeakSet; - lodash.join = join; - lodash.kebabCase = kebabCase; - lodash.last = last; - lodash.lastIndexOf = lastIndexOf; - lodash.lowerCase = lowerCase; - lodash.lowerFirst = lowerFirst; - lodash.lt = lt; - lodash.lte = lte; - lodash.max = max; - lodash.maxBy = maxBy; - lodash.mean = mean; - lodash.meanBy = meanBy; - lodash.min = min; - lodash.minBy = minBy; - lodash.stubArray = stubArray; - lodash.stubFalse = stubFalse; - lodash.stubObject = stubObject; - lodash.stubString = stubString; - lodash.stubTrue = stubTrue; - lodash.multiply = multiply; - lodash.nth = nth; - lodash.noConflict = noConflict; - lodash.noop = noop; - lodash.now = now; - lodash.pad = pad; - lodash.padEnd = padEnd; - lodash.padStart = padStart; - lodash.parseInt = parseInt2; - lodash.random = random; - lodash.reduce = reduce; - lodash.reduceRight = reduceRight; - lodash.repeat = repeat; - lodash.replace = replace; - lodash.result = result; - lodash.round = round; - lodash.runInContext = runInContext2; - lodash.sample = sample; - lodash.size = size; - lodash.snakeCase = snakeCase; - lodash.some = some; - lodash.sortedIndex = sortedIndex; - lodash.sortedIndexBy = sortedIndexBy; - lodash.sortedIndexOf = sortedIndexOf; - lodash.sortedLastIndex = sortedLastIndex; - lodash.sortedLastIndexBy = sortedLastIndexBy; - lodash.sortedLastIndexOf = sortedLastIndexOf; - lodash.startCase = startCase; - lodash.startsWith = startsWith; - lodash.subtract = subtract; - lodash.sum = sum; - lodash.sumBy = sumBy; - lodash.template = template; - lodash.times = times; - lodash.toFinite = toFinite; - lodash.toInteger = toInteger; - lodash.toLength = toLength; - lodash.toLower = toLower; - lodash.toNumber = toNumber; - lodash.toSafeInteger = toSafeInteger; - lodash.toString = toString; - lodash.toUpper = toUpper; - lodash.trim = trim; - lodash.trimEnd = trimEnd; - lodash.trimStart = trimStart; - lodash.truncate = truncate; - lodash.unescape = unescape; - lodash.uniqueId = uniqueId; - lodash.upperCase = upperCase; - lodash.upperFirst = upperFirst; - lodash.each = forEach; - lodash.eachRight = forEachRight; - lodash.first = head; - mixin(lodash, function() { - var source = {}; - baseForOwn(lodash, function(func, methodName) { - if (!hasOwnProperty.call(lodash.prototype, methodName)) { - source[methodName] = func; - } - }); - return source; - }(), {"chain": false}); - lodash.VERSION = VERSION; - arrayEach(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(methodName) { - lodash[methodName].placeholder = lodash; - }); - arrayEach(["drop", "take"], function(methodName, index2) { - LazyWrapper.prototype[methodName] = function(n) { - n = n === undefined2 ? 1 : nativeMax(toInteger(n), 0); - var result2 = this.__filtered__ && !index2 ? new LazyWrapper(this) : this.clone(); - if (result2.__filtered__) { - result2.__takeCount__ = nativeMin(n, result2.__takeCount__); - } else { - result2.__views__.push({ - "size": nativeMin(n, MAX_ARRAY_LENGTH), - "type": methodName + (result2.__dir__ < 0 ? "Right" : "") - }); - } - return result2; - }; - LazyWrapper.prototype[methodName + "Right"] = function(n) { - return this.reverse()[methodName](n).reverse(); - }; - }); - arrayEach(["filter", "map", "takeWhile"], function(methodName, index2) { - var type = index2 + 1, isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG; - LazyWrapper.prototype[methodName] = function(iteratee2) { - var result2 = this.clone(); - result2.__iteratees__.push({ - "iteratee": getIteratee(iteratee2, 3), - "type": type - }); - result2.__filtered__ = result2.__filtered__ || isFilter; - return result2; - }; - }); - arrayEach(["head", "last"], function(methodName, index2) { - var takeName = "take" + (index2 ? "Right" : ""); - LazyWrapper.prototype[methodName] = function() { - return this[takeName](1).value()[0]; - }; - }); - arrayEach(["initial", "tail"], function(methodName, index2) { - var dropName = "drop" + (index2 ? "" : "Right"); - LazyWrapper.prototype[methodName] = function() { - return this.__filtered__ ? new LazyWrapper(this) : this[dropName](1); - }; - }); - LazyWrapper.prototype.compact = function() { - return this.filter(identity); - }; - LazyWrapper.prototype.find = function(predicate) { - return this.filter(predicate).head(); - }; - LazyWrapper.prototype.findLast = function(predicate) { - return this.reverse().find(predicate); - }; - LazyWrapper.prototype.invokeMap = baseRest(function(path, args) { - if (typeof path == "function") { - return new LazyWrapper(this); - } - return this.map(function(value) { - return baseInvoke(value, path, args); - }); - }); - LazyWrapper.prototype.reject = function(predicate) { - return this.filter(negate(getIteratee(predicate))); - }; - LazyWrapper.prototype.slice = function(start, end) { - start = toInteger(start); - var result2 = this; - if (result2.__filtered__ && (start > 0 || end < 0)) { - return new LazyWrapper(result2); - } - if (start < 0) { - result2 = result2.takeRight(-start); - } else if (start) { - result2 = result2.drop(start); - } - if (end !== undefined2) { - end = toInteger(end); - result2 = end < 0 ? result2.dropRight(-end) : result2.take(end - start); - } - return result2; - }; - LazyWrapper.prototype.takeRightWhile = function(predicate) { - return this.reverse().takeWhile(predicate).reverse(); - }; - LazyWrapper.prototype.toArray = function() { - return this.take(MAX_ARRAY_LENGTH); - }; - baseForOwn(LazyWrapper.prototype, function(func, methodName) { - var checkIteratee = /^(?:filter|find|map|reject)|While$/.test(methodName), isTaker = /^(?:head|last)$/.test(methodName), lodashFunc = lodash[isTaker ? "take" + (methodName == "last" ? "Right" : "") : methodName], retUnwrapped = isTaker || /^find/.test(methodName); - if (!lodashFunc) { - return; - } - lodash.prototype[methodName] = function() { - var value = this.__wrapped__, args = isTaker ? [1] : arguments, isLazy = value instanceof LazyWrapper, iteratee2 = args[0], useLazy = isLazy || isArray(value); - var interceptor = function(value2) { - var result3 = lodashFunc.apply(lodash, arrayPush([value2], args)); - return isTaker && chainAll ? result3[0] : result3; - }; - if (useLazy && checkIteratee && typeof iteratee2 == "function" && iteratee2.length != 1) { - isLazy = useLazy = false; - } - var chainAll = this.__chain__, isHybrid = !!this.__actions__.length, isUnwrapped = retUnwrapped && !chainAll, onlyLazy = isLazy && !isHybrid; - if (!retUnwrapped && useLazy) { - value = onlyLazy ? value : new LazyWrapper(this); - var result2 = func.apply(value, args); - result2.__actions__.push({"func": thru, "args": [interceptor], "thisArg": undefined2}); - return new LodashWrapper(result2, chainAll); - } - if (isUnwrapped && onlyLazy) { - return func.apply(this, args); - } - result2 = this.thru(interceptor); - return isUnwrapped ? isTaker ? result2.value()[0] : result2.value() : result2; - }; - }); - arrayEach(["pop", "push", "shift", "sort", "splice", "unshift"], function(methodName) { - var func = arrayProto[methodName], chainName = /^(?:push|sort|unshift)$/.test(methodName) ? "tap" : "thru", retUnwrapped = /^(?:pop|shift)$/.test(methodName); - lodash.prototype[methodName] = function() { - var args = arguments; - if (retUnwrapped && !this.__chain__) { - var value = this.value(); - return func.apply(isArray(value) ? value : [], args); - } - return this[chainName](function(value2) { - return func.apply(isArray(value2) ? value2 : [], args); - }); - }; - }); - baseForOwn(LazyWrapper.prototype, function(func, methodName) { - var lodashFunc = lodash[methodName]; - if (lodashFunc) { - var key = lodashFunc.name + ""; - if (!hasOwnProperty.call(realNames, key)) { - realNames[key] = []; - } - realNames[key].push({"name": methodName, "func": lodashFunc}); - } - }); - realNames[createHybrid(undefined2, WRAP_BIND_KEY_FLAG).name] = [{ - "name": "wrapper", - "func": undefined2 - }]; - LazyWrapper.prototype.clone = lazyClone; - LazyWrapper.prototype.reverse = lazyReverse; - LazyWrapper.prototype.value = lazyValue; - lodash.prototype.at = wrapperAt; - lodash.prototype.chain = wrapperChain; - lodash.prototype.commit = wrapperCommit; - lodash.prototype.next = wrapperNext; - lodash.prototype.plant = wrapperPlant; - lodash.prototype.reverse = wrapperReverse; - lodash.prototype.toJSON = lodash.prototype.valueOf = lodash.prototype.value = wrapperValue; - lodash.prototype.first = lodash.prototype.head; - if (symIterator) { - lodash.prototype[symIterator] = wrapperToIterator; - } - return lodash; - }; - var _ = runInContext(); - if (typeof define == "function" && typeof define.amd == "object" && define.amd) { - root._ = _; - define(function() { - return _; - }); - } else if (freeModule) { - (freeModule.exports = _)._ = _; - freeExports._ = _; - } else { - root._ = _; - } - }).call(exports); - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-commits-parser-https-7696037225-abeddc3d91.zip/node_modules/conventional-commits-parser/lib/parser.js - var require_parser = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-commits-parser-https-7696037225-abeddc3d91.zip/node_modules/conventional-commits-parser/lib/parser.js"(exports, module) { - "use strict"; - var _ = require_lodash(); - var CATCH_ALL = /()(.+)/gi; - var SCISSOR = "# ------------------------ >8 ------------------------"; - function trimOffNewlines(input) { - const result = input.match(/[^\r\n]/); - if (!result) { - return ""; - } - const firstIndex = result.index; - let lastIndex = input.length - 1; - while (input[lastIndex] === "\r" || input[lastIndex] === "\n") { - lastIndex--; - } - return input.substring(firstIndex, lastIndex + 1); - } - function append(src, line) { - if (src) { - src += "\n" + line; - } else { - src = line; - } - return src; - } - function getCommentFilter(char) { - return function(line) { - return line.charAt(0) !== char; - }; - } - function truncateToScissor(lines) { - const scissorIndex = lines.indexOf(SCISSOR); - if (scissorIndex === -1) { - return lines; - } - return lines.slice(0, scissorIndex); - } - function getReferences(input, regex) { - const references = []; - let referenceSentences; - let referenceMatch; - const reApplicable = input.match(regex.references) !== null ? regex.references : CATCH_ALL; - while (referenceSentences = reApplicable.exec(input)) { - const action = referenceSentences[1] || null; - const sentence = referenceSentences[2]; - while (referenceMatch = regex.referenceParts.exec(sentence)) { - let owner = null; - let repository = referenceMatch[1] || ""; - const ownerRepo = repository.split("/"); - if (ownerRepo.length > 1) { - owner = ownerRepo.shift(); - repository = ownerRepo.join("/"); - } - const reference = { - action, - owner, - repository: repository || null, - issue: referenceMatch[3], - raw: referenceMatch[0], - prefix: referenceMatch[2] - }; - references.push(reference); - } - } - return references; - } - function passTrough() { - return true; - } - function parser(raw, options, regex) { - if (!raw || !raw.trim()) { - throw new TypeError("Expected a raw commit"); - } - if (_.isEmpty(options)) { - throw new TypeError("Expected options"); - } - if (_.isEmpty(regex)) { - throw new TypeError("Expected regex"); - } - let currentProcessedField; - let mentionsMatch; - const otherFields = {}; - const commentFilter = typeof options.commentChar === "string" ? getCommentFilter(options.commentChar) : passTrough; - const gpgFilter = (line) => !line.match(/^\s*gpg:/); - const rawLines = trimOffNewlines(raw).split(/\r?\n/); - const lines = truncateToScissor(rawLines).filter(commentFilter).filter(gpgFilter); - let continueNote = false; - let isBody = true; - const headerCorrespondence = _.map(options.headerCorrespondence, function(part) { - return part.trim(); - }); - const revertCorrespondence = _.map(options.revertCorrespondence, function(field) { - return field.trim(); - }); - const mergeCorrespondence = _.map(options.mergeCorrespondence, function(field) { - return field.trim(); - }); - let body = null; - let footer = null; - let header = null; - const mentions = []; - let merge = null; - const notes = []; - const references = []; - let revert = null; - if (lines.length === 0) { - return { - body, - footer, - header, - mentions, - merge, - notes, - references, - revert, - scope: null, - subject: null, - type: null - }; - } - merge = lines.shift(); - const mergeParts = {}; - const headerParts = {}; - body = ""; - footer = ""; - const mergeMatch = merge.match(options.mergePattern); - if (mergeMatch && options.mergePattern) { - merge = mergeMatch[0]; - header = lines.shift(); - while (header !== void 0 && !header.trim()) { - header = lines.shift(); - } - if (!header) { - header = ""; - } - _.forEach(mergeCorrespondence, function(partName, index2) { - const partValue = mergeMatch[index2 + 1] || null; - mergeParts[partName] = partValue; - }); - } else { - header = merge; - merge = null; - _.forEach(mergeCorrespondence, function(partName) { - mergeParts[partName] = null; - }); - } - const headerMatch = header.match(options.headerPattern); - if (headerMatch) { - _.forEach(headerCorrespondence, function(partName, index2) { - const partValue = headerMatch[index2 + 1] || null; - headerParts[partName] = partValue; - }); - } else { - _.forEach(headerCorrespondence, function(partName) { - headerParts[partName] = null; - }); - } - Array.prototype.push.apply(references, getReferences(header, { - references: regex.references, - referenceParts: regex.referenceParts - })); - _.forEach(lines, function(line) { - if (options.fieldPattern) { - const fieldMatch = options.fieldPattern.exec(line); - if (fieldMatch) { - currentProcessedField = fieldMatch[1]; - return; - } - if (currentProcessedField) { - otherFields[currentProcessedField] = append(otherFields[currentProcessedField], line); - return; - } - } - let referenceMatched; - const notesMatch = line.match(regex.notes); - if (notesMatch) { - continueNote = true; - isBody = false; - footer = append(footer, line); - const note = { - title: notesMatch[1], - text: notesMatch[2] - }; - notes.push(note); - return; - } - const lineReferences = getReferences(line, { - references: regex.references, - referenceParts: regex.referenceParts - }); - if (lineReferences.length > 0) { - isBody = false; - referenceMatched = true; - continueNote = false; - } - Array.prototype.push.apply(references, lineReferences); - if (referenceMatched) { - footer = append(footer, line); - return; - } - if (continueNote) { - notes[notes.length - 1].text = append(notes[notes.length - 1].text, line); - footer = append(footer, line); - return; - } - if (isBody) { - body = append(body, line); - } else { - footer = append(footer, line); - } - }); - if (options.breakingHeaderPattern && notes.length === 0) { - const breakingHeader = header.match(options.breakingHeaderPattern); - if (breakingHeader) { - const noteText = breakingHeader[3]; - notes.push({ - title: "BREAKING CHANGE", - text: noteText - }); - } - } - while (mentionsMatch = regex.mentions.exec(raw)) { - mentions.push(mentionsMatch[1]); - } - const revertMatch = raw.match(options.revertPattern); - if (revertMatch) { - revert = {}; - _.forEach(revertCorrespondence, function(partName, index2) { - const partValue = revertMatch[index2 + 1] || null; - revert[partName] = partValue; - }); - } else { - revert = null; - } - _.map(notes, function(note) { - note.text = trimOffNewlines(note.text); - return note; - }); - const msg = _.merge(headerParts, mergeParts, { - merge, - header, - body: body ? trimOffNewlines(body) : null, - footer: footer ? trimOffNewlines(footer) : null, - notes, - references, - mentions, - revert - }, otherFields); - return msg; - } - module.exports = parser; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-commits-parser-https-7696037225-abeddc3d91.zip/node_modules/conventional-commits-parser/lib/regex.js - var require_regex = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-commits-parser-https-7696037225-abeddc3d91.zip/node_modules/conventional-commits-parser/lib/regex.js"(exports, module) { - "use strict"; - var reNomatch = /(?!.*)/; - function join(array, joiner) { - return array.map(function(val) { - return val.trim(); - }).filter(function(val) { - return val.length; - }).join(joiner); - } - function getNotesRegex(noteKeywords, notesPattern) { - if (!noteKeywords) { - return reNomatch; - } - const noteKeywordsSelection = join(noteKeywords, "|"); - if (!notesPattern) { - return new RegExp("^[\\s|*]*(" + noteKeywordsSelection + ")[:\\s]+(.*)", "i"); - } - return notesPattern(noteKeywordsSelection); - } - function getReferencePartsRegex(issuePrefixes, issuePrefixesCaseSensitive) { - if (!issuePrefixes) { - return reNomatch; - } - const flags = issuePrefixesCaseSensitive ? "g" : "gi"; - return new RegExp("(?:.*?)??\\s*([\\w-\\.\\/]*?)??(" + join(issuePrefixes, "|") + ")([\\w-]*\\d+)", flags); - } - function getReferencesRegex(referenceActions) { - if (!referenceActions) { - return /()(.+)/gi; - } - const joinedKeywords = join(referenceActions, "|"); - return new RegExp("(" + joinedKeywords + ")(?:\\s+(.*?))(?=(?:" + joinedKeywords + ")|$)", "gi"); - } - module.exports = function(options) { - options = options || {}; - const reNotes = getNotesRegex(options.noteKeywords, options.notesPattern); - const reReferenceParts = getReferencePartsRegex(options.issuePrefixes, options.issuePrefixesCaseSensitive); - const reReferences = getReferencesRegex(options.referenceActions); - return { - notes: reNotes, - referenceParts: reReferenceParts, - references: reReferences, - mentions: /@([\w-]+)/g - }; - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-commits-parser-https-7696037225-abeddc3d91.zip/node_modules/conventional-commits-parser/index.js - var require_conventional_commits_parser = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-commits-parser-https-7696037225-abeddc3d91.zip/node_modules/conventional-commits-parser/index.js"(exports, module) { - "use strict"; - var parser = require_parser(); - var regex = require_regex(); - var through = require_through2(); - var _ = require_lodash(); - function assignOpts(options) { - options = _.extend({ - headerPattern: /^(\w*)(?:\(([\w$.\-*/ ]*)\))?: (.*)$/, - headerCorrespondence: ["type", "scope", "subject"], - referenceActions: [ - "close", - "closes", - "closed", - "fix", - "fixes", - "fixed", - "resolve", - "resolves", - "resolved" - ], - issuePrefixes: ["#"], - noteKeywords: ["BREAKING CHANGE"], - fieldPattern: /^-(.*?)-$/, - revertPattern: /^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)\./, - revertCorrespondence: ["header", "hash"], - warn: function() { - }, - mergePattern: null, - mergeCorrespondence: null - }, options); - if (typeof options.headerPattern === "string") { - options.headerPattern = new RegExp(options.headerPattern); - } - if (typeof options.headerCorrespondence === "string") { - options.headerCorrespondence = options.headerCorrespondence.split(","); - } - if (typeof options.referenceActions === "string") { - options.referenceActions = options.referenceActions.split(","); - } - if (typeof options.issuePrefixes === "string") { - options.issuePrefixes = options.issuePrefixes.split(","); - } - if (typeof options.noteKeywords === "string") { - options.noteKeywords = options.noteKeywords.split(","); - } - if (typeof options.fieldPattern === "string") { - options.fieldPattern = new RegExp(options.fieldPattern); - } - if (typeof options.revertPattern === "string") { - options.revertPattern = new RegExp(options.revertPattern); - } - if (typeof options.revertCorrespondence === "string") { - options.revertCorrespondence = options.revertCorrespondence.split(","); - } - if (typeof options.mergePattern === "string") { - options.mergePattern = new RegExp(options.mergePattern); - } - return options; - } - function conventionalCommitsParser(options) { - options = assignOpts(options); - const reg = regex(options); - return through.obj(function(data, enc, cb) { - let commit; - try { - commit = parser(data.toString(), options, reg); - cb(null, commit); - } catch (err) { - if (options.warn === true) { - cb(err); - } else { - options.warn(err.toString()); - cb(null, ""); - } - } - }); - } - function sync(commit, options) { - options = assignOpts(options); - const reg = regex(options); - return parser(commit, options, reg); - } - module.exports = conventionalCommitsParser; - module.exports.sync = sync; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/dateformat-npm-3.0.3-ed02e5ddbd-ca4911148a.zip/node_modules/dateformat/lib/dateformat.js - var require_dateformat = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/dateformat-npm-3.0.3-ed02e5ddbd-ca4911148a.zip/node_modules/dateformat/lib/dateformat.js"(exports, module) { - (function(global2) { - "use strict"; - var dateFormat = function() { - var token = /d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|"[^"]*"|'[^']*'/g; - var timezone = /\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g; - var timezoneClip = /[^-+\dA-Z]/g; - return function(date, mask, utc, gmt) { - if (arguments.length === 1 && kindOf(date) === "string" && !/\d/.test(date)) { - mask = date; - date = void 0; - } - date = date || new Date(); - if (!(date instanceof Date)) { - date = new Date(date); - } - if (isNaN(date)) { - throw TypeError("Invalid date"); - } - mask = String(dateFormat.masks[mask] || mask || dateFormat.masks["default"]); - var maskSlice = mask.slice(0, 4); - if (maskSlice === "UTC:" || maskSlice === "GMT:") { - mask = mask.slice(4); - utc = true; - if (maskSlice === "GMT:") { - gmt = true; - } - } - var _ = utc ? "getUTC" : "get"; - var d = date[_ + "Date"](); - var D = date[_ + "Day"](); - var m = date[_ + "Month"](); - var y = date[_ + "FullYear"](); - var H = date[_ + "Hours"](); - var M = date[_ + "Minutes"](); - var s = date[_ + "Seconds"](); - var L = date[_ + "Milliseconds"](); - var o = utc ? 0 : date.getTimezoneOffset(); - var W = getWeek(date); - var N = getDayOfWeek(date); - var flags = { - d, - dd: pad(d), - ddd: dateFormat.i18n.dayNames[D], - dddd: dateFormat.i18n.dayNames[D + 7], - m: m + 1, - mm: pad(m + 1), - mmm: dateFormat.i18n.monthNames[m], - mmmm: dateFormat.i18n.monthNames[m + 12], - yy: String(y).slice(2), - yyyy: y, - h: H % 12 || 12, - hh: pad(H % 12 || 12), - H, - HH: pad(H), - M, - MM: pad(M), - s, - ss: pad(s), - l: pad(L, 3), - L: pad(Math.round(L / 10)), - t: H < 12 ? dateFormat.i18n.timeNames[0] : dateFormat.i18n.timeNames[1], - tt: H < 12 ? dateFormat.i18n.timeNames[2] : dateFormat.i18n.timeNames[3], - T: H < 12 ? dateFormat.i18n.timeNames[4] : dateFormat.i18n.timeNames[5], - TT: H < 12 ? dateFormat.i18n.timeNames[6] : dateFormat.i18n.timeNames[7], - Z: gmt ? "GMT" : utc ? "UTC" : (String(date).match(timezone) || [""]).pop().replace(timezoneClip, ""), - o: (o > 0 ? "-" : "+") + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4), - S: ["th", "st", "nd", "rd"][d % 10 > 3 ? 0 : (d % 100 - d % 10 != 10) * d % 10], - W, - N - }; - return mask.replace(token, function(match) { - if (match in flags) { - return flags[match]; - } - return match.slice(1, match.length - 1); - }); - }; - }(); - dateFormat.masks = { - "default": "ddd mmm dd yyyy HH:MM:ss", - "shortDate": "m/d/yy", - "mediumDate": "mmm d, yyyy", - "longDate": "mmmm d, yyyy", - "fullDate": "dddd, mmmm d, yyyy", - "shortTime": "h:MM TT", - "mediumTime": "h:MM:ss TT", - "longTime": "h:MM:ss TT Z", - "isoDate": "yyyy-mm-dd", - "isoTime": "HH:MM:ss", - "isoDateTime": "yyyy-mm-dd'T'HH:MM:sso", - "isoUtcDateTime": "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'", - "expiresHeaderFormat": "ddd, dd mmm yyyy HH:MM:ss Z" - }; - dateFormat.i18n = { - dayNames: [ - "Sun", - "Mon", - "Tue", - "Wed", - "Thu", - "Fri", - "Sat", - "Sunday", - "Monday", - "Tuesday", - "Wednesday", - "Thursday", - "Friday", - "Saturday" - ], - monthNames: [ - "Jan", - "Feb", - "Mar", - "Apr", - "May", - "Jun", - "Jul", - "Aug", - "Sep", - "Oct", - "Nov", - "Dec", - "January", - "February", - "March", - "April", - "May", - "June", - "July", - "August", - "September", - "October", - "November", - "December" - ], - timeNames: [ - "a", - "p", - "am", - "pm", - "A", - "P", - "AM", - "PM" - ] - }; - function pad(val, len) { - val = String(val); - len = len || 2; - while (val.length < len) { - val = "0" + val; - } - return val; - } - function getWeek(date) { - var targetThursday = new Date(date.getFullYear(), date.getMonth(), date.getDate()); - targetThursday.setDate(targetThursday.getDate() - (targetThursday.getDay() + 6) % 7 + 3); - var firstThursday = new Date(targetThursday.getFullYear(), 0, 4); - firstThursday.setDate(firstThursday.getDate() - (firstThursday.getDay() + 6) % 7 + 3); - var ds = targetThursday.getTimezoneOffset() - firstThursday.getTimezoneOffset(); - targetThursday.setHours(targetThursday.getHours() - ds); - var weekDiff = (targetThursday - firstThursday) / (864e5 * 7); - return 1 + Math.floor(weekDiff); - } - function getDayOfWeek(date) { - var dow = date.getDay(); - if (dow === 0) { - dow = 7; - } - return dow; - } - function kindOf(val) { - if (val === null) { - return "null"; - } - if (val === void 0) { - return "undefined"; - } - if (typeof val !== "object") { - return typeof val; - } - if (Array.isArray(val)) { - return "array"; - } - return {}.toString.call(val).slice(8, -1).toLowerCase(); - } - ; - if (typeof define === "function" && define.amd) { - define(function() { - return dateFormat; - }); - } else if (typeof exports === "object") { - module.exports = dateFormat; - } else { - global2.dateFormat = dateFormat; - } - })(exports); - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_listCacheClear.js - var require_listCacheClear = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_listCacheClear.js"(exports, module) { - function listCacheClear() { - this.__data__ = []; - this.size = 0; - } - module.exports = listCacheClear; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_assocIndexOf.js - var require_assocIndexOf = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_assocIndexOf.js"(exports, module) { - var eq = require_eq(); - function assocIndexOf(array, key) { - var length = array.length; - while (length--) { - if (eq(array[length][0], key)) { - return length; - } - } - return -1; - } - module.exports = assocIndexOf; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_listCacheDelete.js - var require_listCacheDelete = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_listCacheDelete.js"(exports, module) { - var assocIndexOf = require_assocIndexOf(); - var arrayProto = Array.prototype; - var splice = arrayProto.splice; - function listCacheDelete(key) { - var data = this.__data__, index2 = assocIndexOf(data, key); - if (index2 < 0) { - return false; - } - var lastIndex = data.length - 1; - if (index2 == lastIndex) { - data.pop(); - } else { - splice.call(data, index2, 1); - } - --this.size; - return true; - } - module.exports = listCacheDelete; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_listCacheGet.js - var require_listCacheGet = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_listCacheGet.js"(exports, module) { - var assocIndexOf = require_assocIndexOf(); - function listCacheGet(key) { - var data = this.__data__, index2 = assocIndexOf(data, key); - return index2 < 0 ? void 0 : data[index2][1]; - } - module.exports = listCacheGet; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_listCacheHas.js - var require_listCacheHas = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_listCacheHas.js"(exports, module) { - var assocIndexOf = require_assocIndexOf(); - function listCacheHas(key) { - return assocIndexOf(this.__data__, key) > -1; - } - module.exports = listCacheHas; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_listCacheSet.js - var require_listCacheSet = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_listCacheSet.js"(exports, module) { - var assocIndexOf = require_assocIndexOf(); - function listCacheSet(key, value) { - var data = this.__data__, index2 = assocIndexOf(data, key); - if (index2 < 0) { - ++this.size; - data.push([key, value]); - } else { - data[index2][1] = value; - } - return this; - } - module.exports = listCacheSet; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_ListCache.js - var require_ListCache = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_ListCache.js"(exports, module) { - var listCacheClear = require_listCacheClear(); - var listCacheDelete = require_listCacheDelete(); - var listCacheGet = require_listCacheGet(); - var listCacheHas = require_listCacheHas(); - var listCacheSet = require_listCacheSet(); - function ListCache(entries) { - var index2 = -1, length = entries == null ? 0 : entries.length; - this.clear(); - while (++index2 < length) { - var entry = entries[index2]; - this.set(entry[0], entry[1]); - } - } - ListCache.prototype.clear = listCacheClear; - ListCache.prototype["delete"] = listCacheDelete; - ListCache.prototype.get = listCacheGet; - ListCache.prototype.has = listCacheHas; - ListCache.prototype.set = listCacheSet; - module.exports = ListCache; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_stackClear.js - var require_stackClear = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_stackClear.js"(exports, module) { - var ListCache = require_ListCache(); - function stackClear() { - this.__data__ = new ListCache(); - this.size = 0; - } - module.exports = stackClear; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_stackDelete.js - var require_stackDelete = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_stackDelete.js"(exports, module) { - function stackDelete(key) { - var data = this.__data__, result = data["delete"](key); - this.size = data.size; - return result; - } - module.exports = stackDelete; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_stackGet.js - var require_stackGet = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_stackGet.js"(exports, module) { - function stackGet(key) { - return this.__data__.get(key); - } - module.exports = stackGet; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_stackHas.js - var require_stackHas = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_stackHas.js"(exports, module) { - function stackHas(key) { - return this.__data__.has(key); - } - module.exports = stackHas; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_Map.js - var require_Map = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_Map.js"(exports, module) { - var getNative = require_getNative(); - var root = require_root(); - var Map2 = getNative(root, "Map"); - module.exports = Map2; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_nativeCreate.js - var require_nativeCreate = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_nativeCreate.js"(exports, module) { - var getNative = require_getNative(); - var nativeCreate = getNative(Object, "create"); - module.exports = nativeCreate; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_hashClear.js - var require_hashClear = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_hashClear.js"(exports, module) { - var nativeCreate = require_nativeCreate(); - function hashClear() { - this.__data__ = nativeCreate ? nativeCreate(null) : {}; - this.size = 0; - } - module.exports = hashClear; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_hashDelete.js - var require_hashDelete = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_hashDelete.js"(exports, module) { - function hashDelete(key) { - var result = this.has(key) && delete this.__data__[key]; - this.size -= result ? 1 : 0; - return result; - } - module.exports = hashDelete; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_hashGet.js - var require_hashGet = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_hashGet.js"(exports, module) { - var nativeCreate = require_nativeCreate(); - var HASH_UNDEFINED = "__lodash_hash_undefined__"; - var objectProto = Object.prototype; - var hasOwnProperty = objectProto.hasOwnProperty; - function hashGet(key) { - var data = this.__data__; - if (nativeCreate) { - var result = data[key]; - return result === HASH_UNDEFINED ? void 0 : result; - } - return hasOwnProperty.call(data, key) ? data[key] : void 0; - } - module.exports = hashGet; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_hashHas.js - var require_hashHas = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_hashHas.js"(exports, module) { - var nativeCreate = require_nativeCreate(); - var objectProto = Object.prototype; - var hasOwnProperty = objectProto.hasOwnProperty; - function hashHas(key) { - var data = this.__data__; - return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key); - } - module.exports = hashHas; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_hashSet.js - var require_hashSet = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_hashSet.js"(exports, module) { - var nativeCreate = require_nativeCreate(); - var HASH_UNDEFINED = "__lodash_hash_undefined__"; - function hashSet(key, value) { - var data = this.__data__; - this.size += this.has(key) ? 0 : 1; - data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value; - return this; - } - module.exports = hashSet; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_Hash.js - var require_Hash = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_Hash.js"(exports, module) { - var hashClear = require_hashClear(); - var hashDelete = require_hashDelete(); - var hashGet = require_hashGet(); - var hashHas = require_hashHas(); - var hashSet = require_hashSet(); - function Hash(entries) { - var index2 = -1, length = entries == null ? 0 : entries.length; - this.clear(); - while (++index2 < length) { - var entry = entries[index2]; - this.set(entry[0], entry[1]); - } - } - Hash.prototype.clear = hashClear; - Hash.prototype["delete"] = hashDelete; - Hash.prototype.get = hashGet; - Hash.prototype.has = hashHas; - Hash.prototype.set = hashSet; - module.exports = Hash; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_mapCacheClear.js - var require_mapCacheClear = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_mapCacheClear.js"(exports, module) { - var Hash = require_Hash(); - var ListCache = require_ListCache(); - var Map2 = require_Map(); - function mapCacheClear() { - this.size = 0; - this.__data__ = { - "hash": new Hash(), - "map": new (Map2 || ListCache)(), - "string": new Hash() - }; - } - module.exports = mapCacheClear; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_isKeyable.js - var require_isKeyable = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_isKeyable.js"(exports, module) { - function isKeyable(value) { - var type = typeof value; - return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null; - } - module.exports = isKeyable; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_getMapData.js - var require_getMapData = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_getMapData.js"(exports, module) { - var isKeyable = require_isKeyable(); - function getMapData(map, key) { - var data = map.__data__; - return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map; - } - module.exports = getMapData; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_mapCacheDelete.js - var require_mapCacheDelete = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_mapCacheDelete.js"(exports, module) { - var getMapData = require_getMapData(); - function mapCacheDelete(key) { - var result = getMapData(this, key)["delete"](key); - this.size -= result ? 1 : 0; - return result; - } - module.exports = mapCacheDelete; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_mapCacheGet.js - var require_mapCacheGet = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_mapCacheGet.js"(exports, module) { - var getMapData = require_getMapData(); - function mapCacheGet(key) { - return getMapData(this, key).get(key); - } - module.exports = mapCacheGet; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_mapCacheHas.js - var require_mapCacheHas = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_mapCacheHas.js"(exports, module) { - var getMapData = require_getMapData(); - function mapCacheHas(key) { - return getMapData(this, key).has(key); - } - module.exports = mapCacheHas; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_mapCacheSet.js - var require_mapCacheSet = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_mapCacheSet.js"(exports, module) { - var getMapData = require_getMapData(); - function mapCacheSet(key, value) { - var data = getMapData(this, key), size = data.size; - data.set(key, value); - this.size += data.size == size ? 0 : 1; - return this; - } - module.exports = mapCacheSet; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_MapCache.js - var require_MapCache = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_MapCache.js"(exports, module) { - var mapCacheClear = require_mapCacheClear(); - var mapCacheDelete = require_mapCacheDelete(); - var mapCacheGet = require_mapCacheGet(); - var mapCacheHas = require_mapCacheHas(); - var mapCacheSet = require_mapCacheSet(); - function MapCache(entries) { - var index2 = -1, length = entries == null ? 0 : entries.length; - this.clear(); - while (++index2 < length) { - var entry = entries[index2]; - this.set(entry[0], entry[1]); - } - } - MapCache.prototype.clear = mapCacheClear; - MapCache.prototype["delete"] = mapCacheDelete; - MapCache.prototype.get = mapCacheGet; - MapCache.prototype.has = mapCacheHas; - MapCache.prototype.set = mapCacheSet; - module.exports = MapCache; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_stackSet.js - var require_stackSet = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_stackSet.js"(exports, module) { - var ListCache = require_ListCache(); - var Map2 = require_Map(); - var MapCache = require_MapCache(); - var LARGE_ARRAY_SIZE = 200; - function stackSet(key, value) { - var data = this.__data__; - if (data instanceof ListCache) { - var pairs = data.__data__; - if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) { - pairs.push([key, value]); - this.size = ++data.size; - return this; - } - data = this.__data__ = new MapCache(pairs); - } - data.set(key, value); - this.size = data.size; - return this; - } - module.exports = stackSet; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_Stack.js - var require_Stack = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_Stack.js"(exports, module) { - var ListCache = require_ListCache(); - var stackClear = require_stackClear(); - var stackDelete = require_stackDelete(); - var stackGet = require_stackGet(); - var stackHas = require_stackHas(); - var stackSet = require_stackSet(); - function Stack(entries) { - var data = this.__data__ = new ListCache(entries); - this.size = data.size; - } - Stack.prototype.clear = stackClear; - Stack.prototype["delete"] = stackDelete; - Stack.prototype.get = stackGet; - Stack.prototype.has = stackHas; - Stack.prototype.set = stackSet; - module.exports = Stack; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_setCacheAdd.js - var require_setCacheAdd = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_setCacheAdd.js"(exports, module) { - var HASH_UNDEFINED = "__lodash_hash_undefined__"; - function setCacheAdd(value) { - this.__data__.set(value, HASH_UNDEFINED); - return this; - } - module.exports = setCacheAdd; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_setCacheHas.js - var require_setCacheHas = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_setCacheHas.js"(exports, module) { - function setCacheHas(value) { - return this.__data__.has(value); - } - module.exports = setCacheHas; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_SetCache.js - var require_SetCache = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_SetCache.js"(exports, module) { - var MapCache = require_MapCache(); - var setCacheAdd = require_setCacheAdd(); - var setCacheHas = require_setCacheHas(); - function SetCache(values) { - var index2 = -1, length = values == null ? 0 : values.length; - this.__data__ = new MapCache(); - while (++index2 < length) { - this.add(values[index2]); - } - } - SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; - SetCache.prototype.has = setCacheHas; - module.exports = SetCache; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_arraySome.js - var require_arraySome = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_arraySome.js"(exports, module) { - function arraySome(array, predicate) { - var index2 = -1, length = array == null ? 0 : array.length; - while (++index2 < length) { - if (predicate(array[index2], index2, array)) { - return true; - } - } - return false; - } - module.exports = arraySome; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_cacheHas.js - var require_cacheHas = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_cacheHas.js"(exports, module) { - function cacheHas(cache, key) { - return cache.has(key); - } - module.exports = cacheHas; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_equalArrays.js - var require_equalArrays = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_equalArrays.js"(exports, module) { - var SetCache = require_SetCache(); - var arraySome = require_arraySome(); - var cacheHas = require_cacheHas(); - var COMPARE_PARTIAL_FLAG = 1; - var COMPARE_UNORDERED_FLAG = 2; - function equalArrays(array, other, bitmask, customizer, equalFunc, stack) { - var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length; - if (arrLength != othLength && !(isPartial && othLength > arrLength)) { - return false; - } - var arrStacked = stack.get(array); - var othStacked = stack.get(other); - if (arrStacked && othStacked) { - return arrStacked == other && othStacked == array; - } - var index2 = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : void 0; - stack.set(array, other); - stack.set(other, array); - while (++index2 < arrLength) { - var arrValue = array[index2], othValue = other[index2]; - if (customizer) { - var compared = isPartial ? customizer(othValue, arrValue, index2, other, array, stack) : customizer(arrValue, othValue, index2, array, other, stack); - } - if (compared !== void 0) { - if (compared) { - continue; - } - result = false; - break; - } - if (seen) { - if (!arraySome(other, function(othValue2, othIndex) { - if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) { - return seen.push(othIndex); - } - })) { - result = false; - break; - } - } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) { - result = false; - break; - } - } - stack["delete"](array); - stack["delete"](other); - return result; - } - module.exports = equalArrays; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_Uint8Array.js - var require_Uint8Array = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_Uint8Array.js"(exports, module) { - var root = require_root(); - var Uint8Array2 = root.Uint8Array; - module.exports = Uint8Array2; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_mapToArray.js - var require_mapToArray = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_mapToArray.js"(exports, module) { - function mapToArray(map) { - var index2 = -1, result = Array(map.size); - map.forEach(function(value, key) { - result[++index2] = [key, value]; - }); - return result; - } - module.exports = mapToArray; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_setToArray.js - var require_setToArray = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_setToArray.js"(exports, module) { - function setToArray(set) { - var index2 = -1, result = Array(set.size); - set.forEach(function(value) { - result[++index2] = value; - }); - return result; - } - module.exports = setToArray; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_equalByTag.js - var require_equalByTag = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_equalByTag.js"(exports, module) { - var Symbol2 = require_Symbol(); - var Uint8Array2 = require_Uint8Array(); - var eq = require_eq(); - var equalArrays = require_equalArrays(); - var mapToArray = require_mapToArray(); - var setToArray = require_setToArray(); - var COMPARE_PARTIAL_FLAG = 1; - var COMPARE_UNORDERED_FLAG = 2; - var boolTag = "[object Boolean]"; - var dateTag = "[object Date]"; - var errorTag = "[object Error]"; - var mapTag = "[object Map]"; - var numberTag = "[object Number]"; - var regexpTag = "[object RegExp]"; - var setTag = "[object Set]"; - var stringTag = "[object String]"; - var symbolTag = "[object Symbol]"; - var arrayBufferTag = "[object ArrayBuffer]"; - var dataViewTag = "[object DataView]"; - var symbolProto = Symbol2 ? Symbol2.prototype : void 0; - var symbolValueOf = symbolProto ? symbolProto.valueOf : void 0; - function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) { - switch (tag) { - case dataViewTag: - if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) { - return false; - } - object = object.buffer; - other = other.buffer; - case arrayBufferTag: - if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array2(object), new Uint8Array2(other))) { - return false; - } - return true; - case boolTag: - case dateTag: - case numberTag: - return eq(+object, +other); - case errorTag: - return object.name == other.name && object.message == other.message; - case regexpTag: - case stringTag: - return object == other + ""; - case mapTag: - var convert = mapToArray; - case setTag: - var isPartial = bitmask & COMPARE_PARTIAL_FLAG; - convert || (convert = setToArray); - if (object.size != other.size && !isPartial) { - return false; - } - var stacked = stack.get(object); - if (stacked) { - return stacked == other; - } - bitmask |= COMPARE_UNORDERED_FLAG; - stack.set(object, other); - var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack); - stack["delete"](object); - return result; - case symbolTag: - if (symbolValueOf) { - return symbolValueOf.call(object) == symbolValueOf.call(other); - } - } - return false; - } - module.exports = equalByTag; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_arrayPush.js - var require_arrayPush = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_arrayPush.js"(exports, module) { - function arrayPush(array, values) { - var index2 = -1, length = values.length, offset = array.length; - while (++index2 < length) { - array[offset + index2] = values[index2]; - } - return array; - } - module.exports = arrayPush; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseGetAllKeys.js - var require_baseGetAllKeys = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseGetAllKeys.js"(exports, module) { - var arrayPush = require_arrayPush(); - var isArray = require_isArray(); - function baseGetAllKeys(object, keysFunc, symbolsFunc) { - var result = keysFunc(object); - return isArray(object) ? result : arrayPush(result, symbolsFunc(object)); - } - module.exports = baseGetAllKeys; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_arrayFilter.js - var require_arrayFilter = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_arrayFilter.js"(exports, module) { - function arrayFilter(array, predicate) { - var index2 = -1, length = array == null ? 0 : array.length, resIndex = 0, result = []; - while (++index2 < length) { - var value = array[index2]; - if (predicate(value, index2, array)) { - result[resIndex++] = value; - } - } - return result; - } - module.exports = arrayFilter; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/stubArray.js - var require_stubArray = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/stubArray.js"(exports, module) { - function stubArray() { - return []; - } - module.exports = stubArray; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_getSymbols.js - var require_getSymbols = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_getSymbols.js"(exports, module) { - var arrayFilter = require_arrayFilter(); - var stubArray = require_stubArray(); - var objectProto = Object.prototype; - var propertyIsEnumerable = objectProto.propertyIsEnumerable; - var nativeGetSymbols = Object.getOwnPropertySymbols; - var getSymbols = !nativeGetSymbols ? stubArray : function(object) { - if (object == null) { - return []; - } - object = Object(object); - return arrayFilter(nativeGetSymbols(object), function(symbol) { - return propertyIsEnumerable.call(object, symbol); - }); - }; - module.exports = getSymbols; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_getAllKeys.js - var require_getAllKeys = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_getAllKeys.js"(exports, module) { - var baseGetAllKeys = require_baseGetAllKeys(); - var getSymbols = require_getSymbols(); - var keys = require_keys(); - function getAllKeys(object) { - return baseGetAllKeys(object, keys, getSymbols); - } - module.exports = getAllKeys; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_equalObjects.js - var require_equalObjects = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_equalObjects.js"(exports, module) { - var getAllKeys = require_getAllKeys(); - var COMPARE_PARTIAL_FLAG = 1; - var objectProto = Object.prototype; - var hasOwnProperty = objectProto.hasOwnProperty; - function equalObjects(object, other, bitmask, customizer, equalFunc, stack) { - var isPartial = bitmask & COMPARE_PARTIAL_FLAG, objProps = getAllKeys(object), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length; - if (objLength != othLength && !isPartial) { - return false; - } - var index2 = objLength; - while (index2--) { - var key = objProps[index2]; - if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) { - return false; - } - } - var objStacked = stack.get(object); - var othStacked = stack.get(other); - if (objStacked && othStacked) { - return objStacked == other && othStacked == object; - } - var result = true; - stack.set(object, other); - stack.set(other, object); - var skipCtor = isPartial; - while (++index2 < objLength) { - key = objProps[index2]; - var objValue = object[key], othValue = other[key]; - if (customizer) { - var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack); - } - if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) { - result = false; - break; - } - skipCtor || (skipCtor = key == "constructor"); - } - if (result && !skipCtor) { - var objCtor = object.constructor, othCtor = other.constructor; - if (objCtor != othCtor && ("constructor" in object && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) { - result = false; - } - } - stack["delete"](object); - stack["delete"](other); - return result; - } - module.exports = equalObjects; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_DataView.js - var require_DataView = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_DataView.js"(exports, module) { - var getNative = require_getNative(); - var root = require_root(); - var DataView = getNative(root, "DataView"); - module.exports = DataView; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_Promise.js - var require_Promise = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_Promise.js"(exports, module) { - var getNative = require_getNative(); - var root = require_root(); - var Promise2 = getNative(root, "Promise"); - module.exports = Promise2; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_Set.js - var require_Set = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_Set.js"(exports, module) { - var getNative = require_getNative(); - var root = require_root(); - var Set2 = getNative(root, "Set"); - module.exports = Set2; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_WeakMap.js - var require_WeakMap = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_WeakMap.js"(exports, module) { - var getNative = require_getNative(); - var root = require_root(); - var WeakMap = getNative(root, "WeakMap"); - module.exports = WeakMap; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_getTag.js - var require_getTag = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_getTag.js"(exports, module) { - var DataView = require_DataView(); - var Map2 = require_Map(); - var Promise2 = require_Promise(); - var Set2 = require_Set(); - var WeakMap = require_WeakMap(); - var baseGetTag = require_baseGetTag(); - var toSource = require_toSource(); - var mapTag = "[object Map]"; - var objectTag = "[object Object]"; - var promiseTag = "[object Promise]"; - var setTag = "[object Set]"; - var weakMapTag = "[object WeakMap]"; - var dataViewTag = "[object DataView]"; - var dataViewCtorString = toSource(DataView); - var mapCtorString = toSource(Map2); - var promiseCtorString = toSource(Promise2); - var setCtorString = toSource(Set2); - var weakMapCtorString = toSource(WeakMap); - var getTag = baseGetTag; - if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set2 && getTag(new Set2()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) { - getTag = function(value) { - var result = baseGetTag(value), Ctor = result == objectTag ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : ""; - if (ctorString) { - switch (ctorString) { - case dataViewCtorString: - return dataViewTag; - case mapCtorString: - return mapTag; - case promiseCtorString: - return promiseTag; - case setCtorString: - return setTag; - case weakMapCtorString: - return weakMapTag; - } - } - return result; - }; - } - module.exports = getTag; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseIsEqualDeep.js - var require_baseIsEqualDeep = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseIsEqualDeep.js"(exports, module) { - var Stack = require_Stack(); - var equalArrays = require_equalArrays(); - var equalByTag = require_equalByTag(); - var equalObjects = require_equalObjects(); - var getTag = require_getTag(); - var isArray = require_isArray(); - var isBuffer = require_isBuffer(); - var isTypedArray = require_isTypedArray(); - var COMPARE_PARTIAL_FLAG = 1; - var argsTag = "[object Arguments]"; - var arrayTag = "[object Array]"; - var objectTag = "[object Object]"; - var objectProto = Object.prototype; - var hasOwnProperty = objectProto.hasOwnProperty; - function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) { - var objIsArr = isArray(object), othIsArr = isArray(other), objTag = objIsArr ? arrayTag : getTag(object), othTag = othIsArr ? arrayTag : getTag(other); - objTag = objTag == argsTag ? objectTag : objTag; - othTag = othTag == argsTag ? objectTag : othTag; - var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag; - if (isSameTag && isBuffer(object)) { - if (!isBuffer(other)) { - return false; - } - objIsArr = true; - objIsObj = false; - } - if (isSameTag && !objIsObj) { - stack || (stack = new Stack()); - return objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack); - } - if (!(bitmask & COMPARE_PARTIAL_FLAG)) { - var objIsWrapped = objIsObj && hasOwnProperty.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty.call(other, "__wrapped__"); - if (objIsWrapped || othIsWrapped) { - var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other; - stack || (stack = new Stack()); - return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack); - } - } - if (!isSameTag) { - return false; - } - stack || (stack = new Stack()); - return equalObjects(object, other, bitmask, customizer, equalFunc, stack); - } - module.exports = baseIsEqualDeep; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseIsEqual.js - var require_baseIsEqual = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseIsEqual.js"(exports, module) { - var baseIsEqualDeep = require_baseIsEqualDeep(); - var isObjectLike = require_isObjectLike(); - function baseIsEqual(value, other, bitmask, customizer, stack) { - if (value === other) { - return true; - } - if (value == null || other == null || !isObjectLike(value) && !isObjectLike(other)) { - return value !== value && other !== other; - } - return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack); - } - module.exports = baseIsEqual; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseIsMatch.js - var require_baseIsMatch = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_baseIsMatch.js"(exports, module) { - var Stack = require_Stack(); - var baseIsEqual = require_baseIsEqual(); - var COMPARE_PARTIAL_FLAG = 1; - var COMPARE_UNORDERED_FLAG = 2; - function baseIsMatch(object, source, matchData, customizer) { - var index2 = matchData.length, length = index2, noCustomizer = !customizer; - if (object == null) { - return !length; - } - object = Object(object); - while (index2--) { - var data = matchData[index2]; - if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) { - return false; - } - } - while (++index2 < length) { - data = matchData[index2]; - var key = data[0], objValue = object[key], srcValue = data[1]; - if (noCustomizer && data[2]) { - if (objValue === void 0 && !(key in object)) { - return false; - } - } else { - var stack = new Stack(); - if (customizer) { - var result = customizer(objValue, srcValue, key, object, source, stack); - } - if (!(result === void 0 ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack) : result)) { - return false; - } - } - } - return true; - } - module.exports = baseIsMatch; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_isStrictComparable.js - var require_isStrictComparable = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_isStrictComparable.js"(exports, module) { - var isObject = require_isObject(); - function isStrictComparable(value) { - return value === value && !isObject(value); - } - module.exports = isStrictComparable; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_getMatchData.js - var require_getMatchData = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/_getMatchData.js"(exports, module) { - var isStrictComparable = require_isStrictComparable(); - var keys = require_keys(); - function getMatchData(object) { - var result = keys(object), length = result.length; - while (length--) { - var key = result[length], value = object[key]; - result[length] = [key, value, isStrictComparable(value)]; - } - return result; - } - module.exports = getMatchData; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isMatch.js - var require_isMatch = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lodash-npm-4.17.21-6382451519-eb835a2e51.zip/node_modules/lodash/isMatch.js"(exports, module) { - var baseIsMatch = require_baseIsMatch(); - var getMatchData = require_getMatchData(); - function isMatch(object, source) { - return object === source || baseIsMatch(object, source, getMatchData(source)); - } - module.exports = isMatch; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/modify-values-npm-1.0.1-9b2377e166-8296610c60.zip/node_modules/modify-values/index.js - var require_modify_values = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/modify-values-npm-1.0.1-9b2377e166-8296610c60.zip/node_modules/modify-values/index.js"(exports, module) { - "use strict"; - module.exports = function(obj, modifier) { - var key; - var val; - var ret = {}; - var keys = Object.keys(Object(obj)); - for (var i = 0; i < keys.length; i++) { - key = keys[i]; - val = obj[key]; - ret[key] = modifier(val, key); - } - return ret; - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-commits-filter-https-62bca97ea6-d46be6d4df.zip/node_modules/conventional-commits-filter/index.js - var require_conventional_commits_filter = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-commits-filter-https-62bca97ea6-d46be6d4df.zip/node_modules/conventional-commits-filter/index.js"(exports, module) { - "use strict"; - var isMatch = require_isMatch(); - var modifyValues = require_modify_values(); - function modifyValue(val) { - if (typeof val === "string") { - return val.trim(); - } - return val; - } - function conventionalCommitsFilter(commits) { - if (!Array.isArray(commits)) { - throw new TypeError("Expected an array"); - } - let ret = []; - const ignores = []; - const remove = []; - commits.forEach(function(commit) { - if (commit.revert) { - ignores.push(commit); - } - ret.push(commit); - }); - ret = ret.filter(function(commit) { - let ignoreThis = false; - commit = commit.raw ? modifyValues(commit.raw, modifyValue) : modifyValues(commit, modifyValue); - ignores.some(function(ignoreCommit) { - const ignore = modifyValues(ignoreCommit.revert, modifyValue); - ignoreThis = isMatch(commit, ignore); - if (ignoreThis) { - remove.push(ignoreCommit.hash); - } - return ignoreThis; - }); - return !ignoreThis; - }); - ret = ret.filter(function(commit) { - return remove.indexOf(commit.hash) !== 0; - }); - return ret; - } - module.exports = conventionalCommitsFilter; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/utils.js - var require_utils = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/utils.js"(exports) { - "use strict"; - exports.__esModule = true; - exports.extend = extend; - exports.indexOf = indexOf; - exports.escapeExpression = escapeExpression; - exports.isEmpty = isEmpty; - exports.createFrame = createFrame; - exports.blockParams = blockParams; - exports.appendContextPath = appendContextPath; - var escape = { - "&": "&", - "<": "<", - ">": ">", - '"': """, - "'": "'", - "`": "`", - "=": "=" - }; - var badChars = /[&<>"'`=]/g; - var possible = /[&<>"'`=]/; - function escapeChar(chr) { - return escape[chr]; - } - function extend(obj) { - for (var i = 1; i < arguments.length; i++) { - for (var key in arguments[i]) { - if (Object.prototype.hasOwnProperty.call(arguments[i], key)) { - obj[key] = arguments[i][key]; - } - } - } - return obj; - } - var toString = Object.prototype.toString; - exports.toString = toString; - var isFunction = function isFunction2(value) { - return typeof value === "function"; - }; - if (isFunction(/x/)) { - exports.isFunction = isFunction = function(value) { - return typeof value === "function" && toString.call(value) === "[object Function]"; - }; - } - exports.isFunction = isFunction; - var isArray = Array.isArray || function(value) { - return value && typeof value === "object" ? toString.call(value) === "[object Array]" : false; - }; - exports.isArray = isArray; - function indexOf(array, value) { - for (var i = 0, len = array.length; i < len; i++) { - if (array[i] === value) { - return i; - } - } - return -1; - } - function escapeExpression(string) { - if (typeof string !== "string") { - if (string && string.toHTML) { - return string.toHTML(); - } else if (string == null) { - return ""; - } else if (!string) { - return string + ""; - } - string = "" + string; - } - if (!possible.test(string)) { - return string; - } - return string.replace(badChars, escapeChar); - } - function isEmpty(value) { - if (!value && value !== 0) { - return true; - } else if (isArray(value) && value.length === 0) { - return true; - } else { - return false; - } - } - function createFrame(object) { - var frame = extend({}, object); - frame._parent = object; - return frame; - } - function blockParams(params, ids) { - params.path = ids; - return params; - } - function appendContextPath(contextPath, id) { - return (contextPath ? contextPath + "." : "") + id; - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/exception.js - var require_exception = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/exception.js"(exports, module) { - "use strict"; - exports.__esModule = true; - var errorProps = ["description", "fileName", "lineNumber", "endLineNumber", "message", "name", "number", "stack"]; - function Exception(message, node) { - var loc = node && node.loc, line = void 0, endLineNumber = void 0, column = void 0, endColumn = void 0; - if (loc) { - line = loc.start.line; - endLineNumber = loc.end.line; - column = loc.start.column; - endColumn = loc.end.column; - message += " - " + line + ":" + column; - } - var tmp = Error.prototype.constructor.call(this, message); - for (var idx = 0; idx < errorProps.length; idx++) { - this[errorProps[idx]] = tmp[errorProps[idx]]; - } - if (Error.captureStackTrace) { - Error.captureStackTrace(this, Exception); - } - try { - if (loc) { - this.lineNumber = line; - this.endLineNumber = endLineNumber; - if (Object.defineProperty) { - Object.defineProperty(this, "column", { - value: column, - enumerable: true - }); - Object.defineProperty(this, "endColumn", { - value: endColumn, - enumerable: true - }); - } else { - this.column = column; - this.endColumn = endColumn; - } - } - } catch (nop) { - } - } - Exception.prototype = new Error(); - exports["default"] = Exception; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/helpers/block-helper-missing.js - var require_block_helper_missing = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/helpers/block-helper-missing.js"(exports, module) { - "use strict"; - exports.__esModule = true; - var _utils = require_utils(); - exports["default"] = function(instance) { - instance.registerHelper("blockHelperMissing", function(context, options) { - var inverse = options.inverse, fn = options.fn; - if (context === true) { - return fn(this); - } else if (context === false || context == null) { - return inverse(this); - } else if (_utils.isArray(context)) { - if (context.length > 0) { - if (options.ids) { - options.ids = [options.name]; - } - return instance.helpers.each(context, options); - } else { - return inverse(this); - } - } else { - if (options.data && options.ids) { - var data = _utils.createFrame(options.data); - data.contextPath = _utils.appendContextPath(options.data.contextPath, options.name); - options = {data}; - } - return fn(context, options); - } - }); - }; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/helpers/each.js - var require_each = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/helpers/each.js"(exports, module) { - "use strict"; - exports.__esModule = true; - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : {"default": obj}; - } - var _utils = require_utils(); - var _exception = require_exception(); - var _exception2 = _interopRequireDefault(_exception); - exports["default"] = function(instance) { - instance.registerHelper("each", function(context, options) { - if (!options) { - throw new _exception2["default"]("Must pass iterator to #each"); - } - var fn = options.fn, inverse = options.inverse, i = 0, ret = "", data = void 0, contextPath = void 0; - if (options.data && options.ids) { - contextPath = _utils.appendContextPath(options.data.contextPath, options.ids[0]) + "."; - } - if (_utils.isFunction(context)) { - context = context.call(this); - } - if (options.data) { - data = _utils.createFrame(options.data); - } - function execIteration(field, index2, last) { - if (data) { - data.key = field; - data.index = index2; - data.first = index2 === 0; - data.last = !!last; - if (contextPath) { - data.contextPath = contextPath + field; - } - } - ret = ret + fn(context[field], { - data, - blockParams: _utils.blockParams([context[field], field], [contextPath + field, null]) - }); - } - if (context && typeof context === "object") { - if (_utils.isArray(context)) { - for (var j = context.length; i < j; i++) { - if (i in context) { - execIteration(i, i, i === context.length - 1); - } - } - } else if (global.Symbol && context[global.Symbol.iterator]) { - var newContext = []; - var iterator = context[global.Symbol.iterator](); - for (var it = iterator.next(); !it.done; it = iterator.next()) { - newContext.push(it.value); - } - context = newContext; - for (var j = context.length; i < j; i++) { - execIteration(i, i, i === context.length - 1); - } - } else { - (function() { - var priorKey = void 0; - Object.keys(context).forEach(function(key) { - if (priorKey !== void 0) { - execIteration(priorKey, i - 1); - } - priorKey = key; - i++; - }); - if (priorKey !== void 0) { - execIteration(priorKey, i - 1, true); - } - })(); - } - } - if (i === 0) { - ret = inverse(this); - } - return ret; - }); - }; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/helpers/helper-missing.js - var require_helper_missing = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/helpers/helper-missing.js"(exports, module) { - "use strict"; - exports.__esModule = true; - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : {"default": obj}; - } - var _exception = require_exception(); - var _exception2 = _interopRequireDefault(_exception); - exports["default"] = function(instance) { - instance.registerHelper("helperMissing", function() { - if (arguments.length === 1) { - return void 0; - } else { - throw new _exception2["default"]('Missing helper: "' + arguments[arguments.length - 1].name + '"'); - } - }); - }; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/helpers/if.js - var require_if = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/helpers/if.js"(exports, module) { - "use strict"; - exports.__esModule = true; - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : {"default": obj}; - } - var _utils = require_utils(); - var _exception = require_exception(); - var _exception2 = _interopRequireDefault(_exception); - exports["default"] = function(instance) { - instance.registerHelper("if", function(conditional, options) { - if (arguments.length != 2) { - throw new _exception2["default"]("#if requires exactly one argument"); - } - if (_utils.isFunction(conditional)) { - conditional = conditional.call(this); - } - if (!options.hash.includeZero && !conditional || _utils.isEmpty(conditional)) { - return options.inverse(this); - } else { - return options.fn(this); - } - }); - instance.registerHelper("unless", function(conditional, options) { - if (arguments.length != 2) { - throw new _exception2["default"]("#unless requires exactly one argument"); - } - return instance.helpers["if"].call(this, conditional, { - fn: options.inverse, - inverse: options.fn, - hash: options.hash - }); - }); - }; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/helpers/log.js - var require_log = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/helpers/log.js"(exports, module) { - "use strict"; - exports.__esModule = true; - exports["default"] = function(instance) { - instance.registerHelper("log", function() { - var args = [void 0], options = arguments[arguments.length - 1]; - for (var i = 0; i < arguments.length - 1; i++) { - args.push(arguments[i]); - } - var level = 1; - if (options.hash.level != null) { - level = options.hash.level; - } else if (options.data && options.data.level != null) { - level = options.data.level; - } - args[0] = level; - instance.log.apply(instance, args); - }); - }; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/helpers/lookup.js - var require_lookup = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/helpers/lookup.js"(exports, module) { - "use strict"; - exports.__esModule = true; - exports["default"] = function(instance) { - instance.registerHelper("lookup", function(obj, field, options) { - if (!obj) { - return obj; - } - return options.lookupProperty(obj, field); - }); - }; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/helpers/with.js - var require_with = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/helpers/with.js"(exports, module) { - "use strict"; - exports.__esModule = true; - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : {"default": obj}; - } - var _utils = require_utils(); - var _exception = require_exception(); - var _exception2 = _interopRequireDefault(_exception); - exports["default"] = function(instance) { - instance.registerHelper("with", function(context, options) { - if (arguments.length != 2) { - throw new _exception2["default"]("#with requires exactly one argument"); - } - if (_utils.isFunction(context)) { - context = context.call(this); - } - var fn = options.fn; - if (!_utils.isEmpty(context)) { - var data = options.data; - if (options.data && options.ids) { - data = _utils.createFrame(options.data); - data.contextPath = _utils.appendContextPath(options.data.contextPath, options.ids[0]); - } - return fn(context, { - data, - blockParams: _utils.blockParams([context], [data && data.contextPath]) - }); - } else { - return options.inverse(this); - } - }); - }; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/helpers.js - var require_helpers = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/helpers.js"(exports) { - "use strict"; - exports.__esModule = true; - exports.registerDefaultHelpers = registerDefaultHelpers; - exports.moveHelperToHooks = moveHelperToHooks; - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : {"default": obj}; - } - var _helpersBlockHelperMissing = require_block_helper_missing(); - var _helpersBlockHelperMissing2 = _interopRequireDefault(_helpersBlockHelperMissing); - var _helpersEach = require_each(); - var _helpersEach2 = _interopRequireDefault(_helpersEach); - var _helpersHelperMissing = require_helper_missing(); - var _helpersHelperMissing2 = _interopRequireDefault(_helpersHelperMissing); - var _helpersIf = require_if(); - var _helpersIf2 = _interopRequireDefault(_helpersIf); - var _helpersLog = require_log(); - var _helpersLog2 = _interopRequireDefault(_helpersLog); - var _helpersLookup = require_lookup(); - var _helpersLookup2 = _interopRequireDefault(_helpersLookup); - var _helpersWith = require_with(); - var _helpersWith2 = _interopRequireDefault(_helpersWith); - function registerDefaultHelpers(instance) { - _helpersBlockHelperMissing2["default"](instance); - _helpersEach2["default"](instance); - _helpersHelperMissing2["default"](instance); - _helpersIf2["default"](instance); - _helpersLog2["default"](instance); - _helpersLookup2["default"](instance); - _helpersWith2["default"](instance); - } - function moveHelperToHooks(instance, helperName, keepHelper) { - if (instance.helpers[helperName]) { - instance.hooks[helperName] = instance.helpers[helperName]; - if (!keepHelper) { - delete instance.helpers[helperName]; - } - } - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/decorators/inline.js - var require_inline = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/decorators/inline.js"(exports, module) { - "use strict"; - exports.__esModule = true; - var _utils = require_utils(); - exports["default"] = function(instance) { - instance.registerDecorator("inline", function(fn, props, container, options) { - var ret = fn; - if (!props.partials) { - props.partials = {}; - ret = function(context, options2) { - var original = container.partials; - container.partials = _utils.extend({}, original, props.partials); - var ret2 = fn(context, options2); - container.partials = original; - return ret2; - }; - } - props.partials[options.args[0]] = options.fn; - return ret; - }); - }; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/decorators.js - var require_decorators = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/decorators.js"(exports) { - "use strict"; - exports.__esModule = true; - exports.registerDefaultDecorators = registerDefaultDecorators; - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : {"default": obj}; - } - var _decoratorsInline = require_inline(); - var _decoratorsInline2 = _interopRequireDefault(_decoratorsInline); - function registerDefaultDecorators(instance) { - _decoratorsInline2["default"](instance); - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/logger.js - var require_logger = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/logger.js"(exports, module) { - "use strict"; - exports.__esModule = true; - var _utils = require_utils(); - var logger = { - methodMap: ["debug", "info", "warn", "error"], - level: "info", - lookupLevel: function lookupLevel(level) { - if (typeof level === "string") { - var levelMap = _utils.indexOf(logger.methodMap, level.toLowerCase()); - if (levelMap >= 0) { - level = levelMap; - } else { - level = parseInt(level, 10); - } - } - return level; - }, - log: function log(level) { - level = logger.lookupLevel(level); - if (typeof console !== "undefined" && logger.lookupLevel(logger.level) <= level) { - var method = logger.methodMap[level]; - if (!console[method]) { - method = "log"; - } - for (var _len = arguments.length, message = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { - message[_key - 1] = arguments[_key]; - } - console[method].apply(console, message); - } - } - }; - exports["default"] = logger; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/internal/create-new-lookup-object.js - var require_create_new_lookup_object = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/internal/create-new-lookup-object.js"(exports) { - "use strict"; - exports.__esModule = true; - exports.createNewLookupObject = createNewLookupObject; - var _utils = require_utils(); - function createNewLookupObject() { - for (var _len = arguments.length, sources = Array(_len), _key = 0; _key < _len; _key++) { - sources[_key] = arguments[_key]; - } - return _utils.extend.apply(void 0, [Object.create(null)].concat(sources)); - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/internal/proto-access.js - var require_proto_access = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/internal/proto-access.js"(exports) { - "use strict"; - exports.__esModule = true; - exports.createProtoAccessControl = createProtoAccessControl; - exports.resultIsAllowed = resultIsAllowed; - exports.resetLoggedProperties = resetLoggedProperties; - function _interopRequireWildcard(obj) { - if (obj && obj.__esModule) { - return obj; - } else { - var newObj = {}; - if (obj != null) { - for (var key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) - newObj[key] = obj[key]; - } - } - newObj["default"] = obj; - return newObj; - } - } - var _createNewLookupObject = require_create_new_lookup_object(); - var _logger = require_logger(); - var logger = _interopRequireWildcard(_logger); - var loggedProperties = Object.create(null); - function createProtoAccessControl(runtimeOptions) { - var defaultMethodWhiteList = Object.create(null); - defaultMethodWhiteList["constructor"] = false; - defaultMethodWhiteList["__defineGetter__"] = false; - defaultMethodWhiteList["__defineSetter__"] = false; - defaultMethodWhiteList["__lookupGetter__"] = false; - var defaultPropertyWhiteList = Object.create(null); - defaultPropertyWhiteList["__proto__"] = false; - return { - properties: { - whitelist: _createNewLookupObject.createNewLookupObject(defaultPropertyWhiteList, runtimeOptions.allowedProtoProperties), - defaultValue: runtimeOptions.allowProtoPropertiesByDefault - }, - methods: { - whitelist: _createNewLookupObject.createNewLookupObject(defaultMethodWhiteList, runtimeOptions.allowedProtoMethods), - defaultValue: runtimeOptions.allowProtoMethodsByDefault - } - }; - } - function resultIsAllowed(result, protoAccessControl, propertyName) { - if (typeof result === "function") { - return checkWhiteList(protoAccessControl.methods, propertyName); - } else { - return checkWhiteList(protoAccessControl.properties, propertyName); - } - } - function checkWhiteList(protoAccessControlForType, propertyName) { - if (protoAccessControlForType.whitelist[propertyName] !== void 0) { - return protoAccessControlForType.whitelist[propertyName] === true; - } - if (protoAccessControlForType.defaultValue !== void 0) { - return protoAccessControlForType.defaultValue; - } - logUnexpecedPropertyAccessOnce(propertyName); - return false; - } - function logUnexpecedPropertyAccessOnce(propertyName) { - if (loggedProperties[propertyName] !== true) { - loggedProperties[propertyName] = true; - logger.log("error", 'Handlebars: Access has been denied to resolve the property "' + propertyName + '" because it is not an "own property" of its parent.\nYou can add a runtime option to disable the check or this warning:\nSee https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details'); - } - } - function resetLoggedProperties() { - Object.keys(loggedProperties).forEach(function(propertyName) { - delete loggedProperties[propertyName]; - }); - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/base.js - var require_base = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/base.js"(exports) { - "use strict"; - exports.__esModule = true; - exports.HandlebarsEnvironment = HandlebarsEnvironment; - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : {"default": obj}; - } - var _utils = require_utils(); - var _exception = require_exception(); - var _exception2 = _interopRequireDefault(_exception); - var _helpers = require_helpers(); - var _decorators = require_decorators(); - var _logger = require_logger(); - var _logger2 = _interopRequireDefault(_logger); - var _internalProtoAccess = require_proto_access(); - var VERSION = "4.7.7"; - exports.VERSION = VERSION; - var COMPILER_REVISION = 8; - exports.COMPILER_REVISION = COMPILER_REVISION; - var LAST_COMPATIBLE_COMPILER_REVISION = 7; - exports.LAST_COMPATIBLE_COMPILER_REVISION = LAST_COMPATIBLE_COMPILER_REVISION; - var REVISION_CHANGES = { - 1: "<= 1.0.rc.2", - 2: "== 1.0.0-rc.3", - 3: "== 1.0.0-rc.4", - 4: "== 1.x.x", - 5: "== 2.0.0-alpha.x", - 6: ">= 2.0.0-beta.1", - 7: ">= 4.0.0 <4.3.0", - 8: ">= 4.3.0" - }; - exports.REVISION_CHANGES = REVISION_CHANGES; - var objectType = "[object Object]"; - function HandlebarsEnvironment(helpers, partials, decorators) { - this.helpers = helpers || {}; - this.partials = partials || {}; - this.decorators = decorators || {}; - _helpers.registerDefaultHelpers(this); - _decorators.registerDefaultDecorators(this); - } - HandlebarsEnvironment.prototype = { - constructor: HandlebarsEnvironment, - logger: _logger2["default"], - log: _logger2["default"].log, - registerHelper: function registerHelper(name, fn) { - if (_utils.toString.call(name) === objectType) { - if (fn) { - throw new _exception2["default"]("Arg not supported with multiple helpers"); - } - _utils.extend(this.helpers, name); - } else { - this.helpers[name] = fn; - } - }, - unregisterHelper: function unregisterHelper(name) { - delete this.helpers[name]; - }, - registerPartial: function registerPartial(name, partial) { - if (_utils.toString.call(name) === objectType) { - _utils.extend(this.partials, name); - } else { - if (typeof partial === "undefined") { - throw new _exception2["default"]('Attempting to register a partial called "' + name + '" as undefined'); - } - this.partials[name] = partial; - } - }, - unregisterPartial: function unregisterPartial(name) { - delete this.partials[name]; - }, - registerDecorator: function registerDecorator(name, fn) { - if (_utils.toString.call(name) === objectType) { - if (fn) { - throw new _exception2["default"]("Arg not supported with multiple decorators"); - } - _utils.extend(this.decorators, name); - } else { - this.decorators[name] = fn; - } - }, - unregisterDecorator: function unregisterDecorator(name) { - delete this.decorators[name]; - }, - resetLoggedPropertyAccesses: function resetLoggedPropertyAccesses() { - _internalProtoAccess.resetLoggedProperties(); - } - }; - var log = _logger2["default"].log; - exports.log = log; - exports.createFrame = _utils.createFrame; - exports.logger = _logger2["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/safe-string.js - var require_safe_string = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/safe-string.js"(exports, module) { - "use strict"; - exports.__esModule = true; - function SafeString(string) { - this.string = string; - } - SafeString.prototype.toString = SafeString.prototype.toHTML = function() { - return "" + this.string; - }; - exports["default"] = SafeString; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/internal/wrapHelper.js - var require_wrapHelper = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/internal/wrapHelper.js"(exports) { - "use strict"; - exports.__esModule = true; - exports.wrapHelper = wrapHelper; - function wrapHelper(helper, transformOptionsFn) { - if (typeof helper !== "function") { - return helper; - } - var wrapper = function wrapper2() { - var options = arguments[arguments.length - 1]; - arguments[arguments.length - 1] = transformOptionsFn(options); - return helper.apply(this, arguments); - }; - return wrapper; - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/runtime.js - var require_runtime = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/runtime.js"(exports) { - "use strict"; - exports.__esModule = true; - exports.checkRevision = checkRevision; - exports.template = template; - exports.wrapProgram = wrapProgram; - exports.resolvePartial = resolvePartial; - exports.invokePartial = invokePartial; - exports.noop = noop; - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : {"default": obj}; - } - function _interopRequireWildcard(obj) { - if (obj && obj.__esModule) { - return obj; - } else { - var newObj = {}; - if (obj != null) { - for (var key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) - newObj[key] = obj[key]; - } - } - newObj["default"] = obj; - return newObj; - } - } - var _utils = require_utils(); - var Utils = _interopRequireWildcard(_utils); - var _exception = require_exception(); - var _exception2 = _interopRequireDefault(_exception); - var _base = require_base(); - var _helpers = require_helpers(); - var _internalWrapHelper = require_wrapHelper(); - var _internalProtoAccess = require_proto_access(); - function checkRevision(compilerInfo) { - var compilerRevision = compilerInfo && compilerInfo[0] || 1, currentRevision = _base.COMPILER_REVISION; - if (compilerRevision >= _base.LAST_COMPATIBLE_COMPILER_REVISION && compilerRevision <= _base.COMPILER_REVISION) { - return; - } - if (compilerRevision < _base.LAST_COMPATIBLE_COMPILER_REVISION) { - var runtimeVersions = _base.REVISION_CHANGES[currentRevision], compilerVersions = _base.REVISION_CHANGES[compilerRevision]; - throw new _exception2["default"]("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version (" + runtimeVersions + ") or downgrade your runtime to an older version (" + compilerVersions + ")."); - } else { - throw new _exception2["default"]("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version (" + compilerInfo[1] + ")."); - } - } - function template(templateSpec, env) { - if (!env) { - throw new _exception2["default"]("No environment passed to template"); - } - if (!templateSpec || !templateSpec.main) { - throw new _exception2["default"]("Unknown template object: " + typeof templateSpec); - } - templateSpec.main.decorator = templateSpec.main_d; - env.VM.checkRevision(templateSpec.compiler); - var templateWasPrecompiledWithCompilerV7 = templateSpec.compiler && templateSpec.compiler[0] === 7; - function invokePartialWrapper(partial, context, options) { - if (options.hash) { - context = Utils.extend({}, context, options.hash); - if (options.ids) { - options.ids[0] = true; - } - } - partial = env.VM.resolvePartial.call(this, partial, context, options); - var extendedOptions = Utils.extend({}, options, { - hooks: this.hooks, - protoAccessControl: this.protoAccessControl - }); - var result = env.VM.invokePartial.call(this, partial, context, extendedOptions); - if (result == null && env.compile) { - options.partials[options.name] = env.compile(partial, templateSpec.compilerOptions, env); - result = options.partials[options.name](context, extendedOptions); - } - if (result != null) { - if (options.indent) { - var lines = result.split("\n"); - for (var i = 0, l = lines.length; i < l; i++) { - if (!lines[i] && i + 1 === l) { - break; - } - lines[i] = options.indent + lines[i]; - } - result = lines.join("\n"); - } - return result; - } else { - throw new _exception2["default"]("The partial " + options.name + " could not be compiled when running in runtime-only mode"); - } - } - var container = { - strict: function strict(obj, name, loc) { - if (!obj || !(name in obj)) { - throw new _exception2["default"]('"' + name + '" not defined in ' + obj, { - loc - }); - } - return container.lookupProperty(obj, name); - }, - lookupProperty: function lookupProperty(parent, propertyName) { - var result = parent[propertyName]; - if (result == null) { - return result; - } - if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { - return result; - } - if (_internalProtoAccess.resultIsAllowed(result, container.protoAccessControl, propertyName)) { - return result; - } - return void 0; - }, - lookup: function lookup(depths, name) { - var len = depths.length; - for (var i = 0; i < len; i++) { - var result = depths[i] && container.lookupProperty(depths[i], name); - if (result != null) { - return depths[i][name]; - } - } - }, - lambda: function lambda(current, context) { - return typeof current === "function" ? current.call(context) : current; - }, - escapeExpression: Utils.escapeExpression, - invokePartial: invokePartialWrapper, - fn: function fn(i) { - var ret2 = templateSpec[i]; - ret2.decorator = templateSpec[i + "_d"]; - return ret2; - }, - programs: [], - program: function program(i, data, declaredBlockParams, blockParams, depths) { - var programWrapper = this.programs[i], fn = this.fn(i); - if (data || depths || blockParams || declaredBlockParams) { - programWrapper = wrapProgram(this, i, fn, data, declaredBlockParams, blockParams, depths); - } else if (!programWrapper) { - programWrapper = this.programs[i] = wrapProgram(this, i, fn); - } - return programWrapper; - }, - data: function data(value, depth) { - while (value && depth--) { - value = value._parent; - } - return value; - }, - mergeIfNeeded: function mergeIfNeeded(param, common) { - var obj = param || common; - if (param && common && param !== common) { - obj = Utils.extend({}, common, param); - } - return obj; - }, - nullContext: Object.seal({}), - noop: env.VM.noop, - compilerInfo: templateSpec.compiler - }; - function ret(context) { - var options = arguments.length <= 1 || arguments[1] === void 0 ? {} : arguments[1]; - var data = options.data; - ret._setup(options); - if (!options.partial && templateSpec.useData) { - data = initData(context, data); - } - var depths = void 0, blockParams = templateSpec.useBlockParams ? [] : void 0; - if (templateSpec.useDepths) { - if (options.depths) { - depths = context != options.depths[0] ? [context].concat(options.depths) : options.depths; - } else { - depths = [context]; - } - } - function main(context2) { - return "" + templateSpec.main(container, context2, container.helpers, container.partials, data, blockParams, depths); - } - main = executeDecorators(templateSpec.main, main, container, options.depths || [], data, blockParams); - return main(context, options); - } - ret.isTop = true; - ret._setup = function(options) { - if (!options.partial) { - var mergedHelpers = Utils.extend({}, env.helpers, options.helpers); - wrapHelpersToPassLookupProperty(mergedHelpers, container); - container.helpers = mergedHelpers; - if (templateSpec.usePartial) { - container.partials = container.mergeIfNeeded(options.partials, env.partials); - } - if (templateSpec.usePartial || templateSpec.useDecorators) { - container.decorators = Utils.extend({}, env.decorators, options.decorators); - } - container.hooks = {}; - container.protoAccessControl = _internalProtoAccess.createProtoAccessControl(options); - var keepHelperInHelpers = options.allowCallsToHelperMissing || templateWasPrecompiledWithCompilerV7; - _helpers.moveHelperToHooks(container, "helperMissing", keepHelperInHelpers); - _helpers.moveHelperToHooks(container, "blockHelperMissing", keepHelperInHelpers); - } else { - container.protoAccessControl = options.protoAccessControl; - container.helpers = options.helpers; - container.partials = options.partials; - container.decorators = options.decorators; - container.hooks = options.hooks; - } - }; - ret._child = function(i, data, blockParams, depths) { - if (templateSpec.useBlockParams && !blockParams) { - throw new _exception2["default"]("must pass block params"); - } - if (templateSpec.useDepths && !depths) { - throw new _exception2["default"]("must pass parent depths"); - } - return wrapProgram(container, i, templateSpec[i], data, 0, blockParams, depths); - }; - return ret; - } - function wrapProgram(container, i, fn, data, declaredBlockParams, blockParams, depths) { - function prog(context) { - var options = arguments.length <= 1 || arguments[1] === void 0 ? {} : arguments[1]; - var currentDepths = depths; - if (depths && context != depths[0] && !(context === container.nullContext && depths[0] === null)) { - currentDepths = [context].concat(depths); - } - return fn(container, context, container.helpers, container.partials, options.data || data, blockParams && [options.blockParams].concat(blockParams), currentDepths); - } - prog = executeDecorators(fn, prog, container, depths, data, blockParams); - prog.program = i; - prog.depth = depths ? depths.length : 0; - prog.blockParams = declaredBlockParams || 0; - return prog; - } - function resolvePartial(partial, context, options) { - if (!partial) { - if (options.name === "@partial-block") { - partial = options.data["partial-block"]; - } else { - partial = options.partials[options.name]; - } - } else if (!partial.call && !options.name) { - options.name = partial; - partial = options.partials[partial]; - } - return partial; - } - function invokePartial(partial, context, options) { - var currentPartialBlock = options.data && options.data["partial-block"]; - options.partial = true; - if (options.ids) { - options.data.contextPath = options.ids[0] || options.data.contextPath; - } - var partialBlock = void 0; - if (options.fn && options.fn !== noop) { - (function() { - options.data = _base.createFrame(options.data); - var fn = options.fn; - partialBlock = options.data["partial-block"] = function partialBlockWrapper(context2) { - var options2 = arguments.length <= 1 || arguments[1] === void 0 ? {} : arguments[1]; - options2.data = _base.createFrame(options2.data); - options2.data["partial-block"] = currentPartialBlock; - return fn(context2, options2); - }; - if (fn.partials) { - options.partials = Utils.extend({}, options.partials, fn.partials); - } - })(); - } - if (partial === void 0 && partialBlock) { - partial = partialBlock; - } - if (partial === void 0) { - throw new _exception2["default"]("The partial " + options.name + " could not be found"); - } else if (partial instanceof Function) { - return partial(context, options); - } - } - function noop() { - return ""; - } - function initData(context, data) { - if (!data || !("root" in data)) { - data = data ? _base.createFrame(data) : {}; - data.root = context; - } - return data; - } - function executeDecorators(fn, prog, container, depths, data, blockParams) { - if (fn.decorator) { - var props = {}; - prog = fn.decorator(prog, props, container, depths && depths[0], data, blockParams, depths); - Utils.extend(prog, props); - } - return prog; - } - function wrapHelpersToPassLookupProperty(mergedHelpers, container) { - Object.keys(mergedHelpers).forEach(function(helperName) { - var helper = mergedHelpers[helperName]; - mergedHelpers[helperName] = passLookupPropertyOption(helper, container); - }); - } - function passLookupPropertyOption(helper, container) { - var lookupProperty = container.lookupProperty; - return _internalWrapHelper.wrapHelper(helper, function(options) { - return Utils.extend({lookupProperty}, options); - }); - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/no-conflict.js - var require_no_conflict = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/no-conflict.js"(exports, module) { - "use strict"; - exports.__esModule = true; - exports["default"] = function(Handlebars) { - var root = typeof global !== "undefined" ? global : window, $Handlebars = root.Handlebars; - Handlebars.noConflict = function() { - if (root.Handlebars === Handlebars) { - root.Handlebars = $Handlebars; - } - return Handlebars; - }; - }; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars.runtime.js - var require_handlebars_runtime = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars.runtime.js"(exports, module) { - "use strict"; - exports.__esModule = true; - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : {"default": obj}; - } - function _interopRequireWildcard(obj) { - if (obj && obj.__esModule) { - return obj; - } else { - var newObj = {}; - if (obj != null) { - for (var key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) - newObj[key] = obj[key]; - } - } - newObj["default"] = obj; - return newObj; - } - } - var _handlebarsBase = require_base(); - var base = _interopRequireWildcard(_handlebarsBase); - var _handlebarsSafeString = require_safe_string(); - var _handlebarsSafeString2 = _interopRequireDefault(_handlebarsSafeString); - var _handlebarsException = require_exception(); - var _handlebarsException2 = _interopRequireDefault(_handlebarsException); - var _handlebarsUtils = require_utils(); - var Utils = _interopRequireWildcard(_handlebarsUtils); - var _handlebarsRuntime = require_runtime(); - var runtime = _interopRequireWildcard(_handlebarsRuntime); - var _handlebarsNoConflict = require_no_conflict(); - var _handlebarsNoConflict2 = _interopRequireDefault(_handlebarsNoConflict); - function create() { - var hb = new base.HandlebarsEnvironment(); - Utils.extend(hb, base); - hb.SafeString = _handlebarsSafeString2["default"]; - hb.Exception = _handlebarsException2["default"]; - hb.Utils = Utils; - hb.escapeExpression = Utils.escapeExpression; - hb.VM = runtime; - hb.template = function(spec) { - return runtime.template(spec, hb); - }; - return hb; - } - var inst = create(); - inst.create = create; - _handlebarsNoConflict2["default"](inst); - inst["default"] = inst; - exports["default"] = inst; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/ast.js - var require_ast = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/ast.js"(exports, module) { - "use strict"; - exports.__esModule = true; - var AST = { - helpers: { - helperExpression: function helperExpression(node) { - return node.type === "SubExpression" || (node.type === "MustacheStatement" || node.type === "BlockStatement") && !!(node.params && node.params.length || node.hash); - }, - scopedId: function scopedId(path) { - return /^\.|this\b/.test(path.original); - }, - simpleId: function simpleId(path) { - return path.parts.length === 1 && !AST.helpers.scopedId(path) && !path.depth; - } - } - }; - exports["default"] = AST; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/parser.js - var require_parser2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/parser.js"(exports, module) { - "use strict"; - exports.__esModule = true; - var handlebars = function() { - var parser = { - trace: function trace() { - }, - yy: {}, - symbols_: {"error": 2, "root": 3, "program": 4, "EOF": 5, "program_repetition0": 6, "statement": 7, "mustache": 8, "block": 9, "rawBlock": 10, "partial": 11, "partialBlock": 12, "content": 13, "COMMENT": 14, "CONTENT": 15, "openRawBlock": 16, "rawBlock_repetition0": 17, "END_RAW_BLOCK": 18, "OPEN_RAW_BLOCK": 19, "helperName": 20, "openRawBlock_repetition0": 21, "openRawBlock_option0": 22, "CLOSE_RAW_BLOCK": 23, "openBlock": 24, "block_option0": 25, "closeBlock": 26, "openInverse": 27, "block_option1": 28, "OPEN_BLOCK": 29, "openBlock_repetition0": 30, "openBlock_option0": 31, "openBlock_option1": 32, "CLOSE": 33, "OPEN_INVERSE": 34, "openInverse_repetition0": 35, "openInverse_option0": 36, "openInverse_option1": 37, "openInverseChain": 38, "OPEN_INVERSE_CHAIN": 39, "openInverseChain_repetition0": 40, "openInverseChain_option0": 41, "openInverseChain_option1": 42, "inverseAndProgram": 43, "INVERSE": 44, "inverseChain": 45, "inverseChain_option0": 46, "OPEN_ENDBLOCK": 47, "OPEN": 48, "mustache_repetition0": 49, "mustache_option0": 50, "OPEN_UNESCAPED": 51, "mustache_repetition1": 52, "mustache_option1": 53, "CLOSE_UNESCAPED": 54, "OPEN_PARTIAL": 55, "partialName": 56, "partial_repetition0": 57, "partial_option0": 58, "openPartialBlock": 59, "OPEN_PARTIAL_BLOCK": 60, "openPartialBlock_repetition0": 61, "openPartialBlock_option0": 62, "param": 63, "sexpr": 64, "OPEN_SEXPR": 65, "sexpr_repetition0": 66, "sexpr_option0": 67, "CLOSE_SEXPR": 68, "hash": 69, "hash_repetition_plus0": 70, "hashSegment": 71, "ID": 72, "EQUALS": 73, "blockParams": 74, "OPEN_BLOCK_PARAMS": 75, "blockParams_repetition_plus0": 76, "CLOSE_BLOCK_PARAMS": 77, "path": 78, "dataName": 79, "STRING": 80, "NUMBER": 81, "BOOLEAN": 82, "UNDEFINED": 83, "NULL": 84, "DATA": 85, "pathSegments": 86, "SEP": 87, "$accept": 0, "$end": 1}, - terminals_: {2: "error", 5: "EOF", 14: "COMMENT", 15: "CONTENT", 18: "END_RAW_BLOCK", 19: "OPEN_RAW_BLOCK", 23: "CLOSE_RAW_BLOCK", 29: "OPEN_BLOCK", 33: "CLOSE", 34: "OPEN_INVERSE", 39: "OPEN_INVERSE_CHAIN", 44: "INVERSE", 47: "OPEN_ENDBLOCK", 48: "OPEN", 51: "OPEN_UNESCAPED", 54: "CLOSE_UNESCAPED", 55: "OPEN_PARTIAL", 60: "OPEN_PARTIAL_BLOCK", 65: "OPEN_SEXPR", 68: "CLOSE_SEXPR", 72: "ID", 73: "EQUALS", 75: "OPEN_BLOCK_PARAMS", 77: "CLOSE_BLOCK_PARAMS", 80: "STRING", 81: "NUMBER", 82: "BOOLEAN", 83: "UNDEFINED", 84: "NULL", 85: "DATA", 87: "SEP"}, - productions_: [0, [3, 2], [4, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [7, 1], [13, 1], [10, 3], [16, 5], [9, 4], [9, 4], [24, 6], [27, 6], [38, 6], [43, 2], [45, 3], [45, 1], [26, 3], [8, 5], [8, 5], [11, 5], [12, 3], [59, 5], [63, 1], [63, 1], [64, 5], [69, 1], [71, 3], [74, 3], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [20, 1], [56, 1], [56, 1], [79, 2], [78, 1], [86, 3], [86, 1], [6, 0], [6, 2], [17, 0], [17, 2], [21, 0], [21, 2], [22, 0], [22, 1], [25, 0], [25, 1], [28, 0], [28, 1], [30, 0], [30, 2], [31, 0], [31, 1], [32, 0], [32, 1], [35, 0], [35, 2], [36, 0], [36, 1], [37, 0], [37, 1], [40, 0], [40, 2], [41, 0], [41, 1], [42, 0], [42, 1], [46, 0], [46, 1], [49, 0], [49, 2], [50, 0], [50, 1], [52, 0], [52, 2], [53, 0], [53, 1], [57, 0], [57, 2], [58, 0], [58, 1], [61, 0], [61, 2], [62, 0], [62, 1], [66, 0], [66, 2], [67, 0], [67, 1], [70, 1], [70, 2], [76, 1], [76, 2]], - performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$) { - var $0 = $$.length - 1; - switch (yystate) { - case 1: - return $$[$0 - 1]; - break; - case 2: - this.$ = yy.prepareProgram($$[$0]); - break; - case 3: - this.$ = $$[$0]; - break; - case 4: - this.$ = $$[$0]; - break; - case 5: - this.$ = $$[$0]; - break; - case 6: - this.$ = $$[$0]; - break; - case 7: - this.$ = $$[$0]; - break; - case 8: - this.$ = $$[$0]; - break; - case 9: - this.$ = { - type: "CommentStatement", - value: yy.stripComment($$[$0]), - strip: yy.stripFlags($$[$0], $$[$0]), - loc: yy.locInfo(this._$) - }; - break; - case 10: - this.$ = { - type: "ContentStatement", - original: $$[$0], - value: $$[$0], - loc: yy.locInfo(this._$) - }; - break; - case 11: - this.$ = yy.prepareRawBlock($$[$0 - 2], $$[$0 - 1], $$[$0], this._$); - break; - case 12: - this.$ = {path: $$[$0 - 3], params: $$[$0 - 2], hash: $$[$0 - 1]}; - break; - case 13: - this.$ = yy.prepareBlock($$[$0 - 3], $$[$0 - 2], $$[$0 - 1], $$[$0], false, this._$); - break; - case 14: - this.$ = yy.prepareBlock($$[$0 - 3], $$[$0 - 2], $$[$0 - 1], $$[$0], true, this._$); - break; - case 15: - this.$ = {open: $$[$0 - 5], path: $$[$0 - 4], params: $$[$0 - 3], hash: $$[$0 - 2], blockParams: $$[$0 - 1], strip: yy.stripFlags($$[$0 - 5], $$[$0])}; - break; - case 16: - this.$ = {path: $$[$0 - 4], params: $$[$0 - 3], hash: $$[$0 - 2], blockParams: $$[$0 - 1], strip: yy.stripFlags($$[$0 - 5], $$[$0])}; - break; - case 17: - this.$ = {path: $$[$0 - 4], params: $$[$0 - 3], hash: $$[$0 - 2], blockParams: $$[$0 - 1], strip: yy.stripFlags($$[$0 - 5], $$[$0])}; - break; - case 18: - this.$ = {strip: yy.stripFlags($$[$0 - 1], $$[$0 - 1]), program: $$[$0]}; - break; - case 19: - var inverse = yy.prepareBlock($$[$0 - 2], $$[$0 - 1], $$[$0], $$[$0], false, this._$), program = yy.prepareProgram([inverse], $$[$0 - 1].loc); - program.chained = true; - this.$ = {strip: $$[$0 - 2].strip, program, chain: true}; - break; - case 20: - this.$ = $$[$0]; - break; - case 21: - this.$ = {path: $$[$0 - 1], strip: yy.stripFlags($$[$0 - 2], $$[$0])}; - break; - case 22: - this.$ = yy.prepareMustache($$[$0 - 3], $$[$0 - 2], $$[$0 - 1], $$[$0 - 4], yy.stripFlags($$[$0 - 4], $$[$0]), this._$); - break; - case 23: - this.$ = yy.prepareMustache($$[$0 - 3], $$[$0 - 2], $$[$0 - 1], $$[$0 - 4], yy.stripFlags($$[$0 - 4], $$[$0]), this._$); - break; - case 24: - this.$ = { - type: "PartialStatement", - name: $$[$0 - 3], - params: $$[$0 - 2], - hash: $$[$0 - 1], - indent: "", - strip: yy.stripFlags($$[$0 - 4], $$[$0]), - loc: yy.locInfo(this._$) - }; - break; - case 25: - this.$ = yy.preparePartialBlock($$[$0 - 2], $$[$0 - 1], $$[$0], this._$); - break; - case 26: - this.$ = {path: $$[$0 - 3], params: $$[$0 - 2], hash: $$[$0 - 1], strip: yy.stripFlags($$[$0 - 4], $$[$0])}; - break; - case 27: - this.$ = $$[$0]; - break; - case 28: - this.$ = $$[$0]; - break; - case 29: - this.$ = { - type: "SubExpression", - path: $$[$0 - 3], - params: $$[$0 - 2], - hash: $$[$0 - 1], - loc: yy.locInfo(this._$) - }; - break; - case 30: - this.$ = {type: "Hash", pairs: $$[$0], loc: yy.locInfo(this._$)}; - break; - case 31: - this.$ = {type: "HashPair", key: yy.id($$[$0 - 2]), value: $$[$0], loc: yy.locInfo(this._$)}; - break; - case 32: - this.$ = yy.id($$[$0 - 1]); - break; - case 33: - this.$ = $$[$0]; - break; - case 34: - this.$ = $$[$0]; - break; - case 35: - this.$ = {type: "StringLiteral", value: $$[$0], original: $$[$0], loc: yy.locInfo(this._$)}; - break; - case 36: - this.$ = {type: "NumberLiteral", value: Number($$[$0]), original: Number($$[$0]), loc: yy.locInfo(this._$)}; - break; - case 37: - this.$ = {type: "BooleanLiteral", value: $$[$0] === "true", original: $$[$0] === "true", loc: yy.locInfo(this._$)}; - break; - case 38: - this.$ = {type: "UndefinedLiteral", original: void 0, value: void 0, loc: yy.locInfo(this._$)}; - break; - case 39: - this.$ = {type: "NullLiteral", original: null, value: null, loc: yy.locInfo(this._$)}; - break; - case 40: - this.$ = $$[$0]; - break; - case 41: - this.$ = $$[$0]; - break; - case 42: - this.$ = yy.preparePath(true, $$[$0], this._$); - break; - case 43: - this.$ = yy.preparePath(false, $$[$0], this._$); - break; - case 44: - $$[$0 - 2].push({part: yy.id($$[$0]), original: $$[$0], separator: $$[$0 - 1]}); - this.$ = $$[$0 - 2]; - break; - case 45: - this.$ = [{part: yy.id($$[$0]), original: $$[$0]}]; - break; - case 46: - this.$ = []; - break; - case 47: - $$[$0 - 1].push($$[$0]); - break; - case 48: - this.$ = []; - break; - case 49: - $$[$0 - 1].push($$[$0]); - break; - case 50: - this.$ = []; - break; - case 51: - $$[$0 - 1].push($$[$0]); - break; - case 58: - this.$ = []; - break; - case 59: - $$[$0 - 1].push($$[$0]); - break; - case 64: - this.$ = []; - break; - case 65: - $$[$0 - 1].push($$[$0]); - break; - case 70: - this.$ = []; - break; - case 71: - $$[$0 - 1].push($$[$0]); - break; - case 78: - this.$ = []; - break; - case 79: - $$[$0 - 1].push($$[$0]); - break; - case 82: - this.$ = []; - break; - case 83: - $$[$0 - 1].push($$[$0]); - break; - case 86: - this.$ = []; - break; - case 87: - $$[$0 - 1].push($$[$0]); - break; - case 90: - this.$ = []; - break; - case 91: - $$[$0 - 1].push($$[$0]); - break; - case 94: - this.$ = []; - break; - case 95: - $$[$0 - 1].push($$[$0]); - break; - case 98: - this.$ = [$$[$0]]; - break; - case 99: - $$[$0 - 1].push($$[$0]); - break; - case 100: - this.$ = [$$[$0]]; - break; - case 101: - $$[$0 - 1].push($$[$0]); - break; - } - }, - table: [{3: 1, 4: 2, 5: [2, 46], 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46]}, {1: [3]}, {5: [1, 4]}, {5: [2, 2], 7: 5, 8: 6, 9: 7, 10: 8, 11: 9, 12: 10, 13: 11, 14: [1, 12], 15: [1, 20], 16: 17, 19: [1, 23], 24: 15, 27: 16, 29: [1, 21], 34: [1, 22], 39: [2, 2], 44: [2, 2], 47: [2, 2], 48: [1, 13], 51: [1, 14], 55: [1, 18], 59: 19, 60: [1, 24]}, {1: [2, 1]}, {5: [2, 47], 14: [2, 47], 15: [2, 47], 19: [2, 47], 29: [2, 47], 34: [2, 47], 39: [2, 47], 44: [2, 47], 47: [2, 47], 48: [2, 47], 51: [2, 47], 55: [2, 47], 60: [2, 47]}, {5: [2, 3], 14: [2, 3], 15: [2, 3], 19: [2, 3], 29: [2, 3], 34: [2, 3], 39: [2, 3], 44: [2, 3], 47: [2, 3], 48: [2, 3], 51: [2, 3], 55: [2, 3], 60: [2, 3]}, {5: [2, 4], 14: [2, 4], 15: [2, 4], 19: [2, 4], 29: [2, 4], 34: [2, 4], 39: [2, 4], 44: [2, 4], 47: [2, 4], 48: [2, 4], 51: [2, 4], 55: [2, 4], 60: [2, 4]}, {5: [2, 5], 14: [2, 5], 15: [2, 5], 19: [2, 5], 29: [2, 5], 34: [2, 5], 39: [2, 5], 44: [2, 5], 47: [2, 5], 48: [2, 5], 51: [2, 5], 55: [2, 5], 60: [2, 5]}, {5: [2, 6], 14: [2, 6], 15: [2, 6], 19: [2, 6], 29: [2, 6], 34: [2, 6], 39: [2, 6], 44: [2, 6], 47: [2, 6], 48: [2, 6], 51: [2, 6], 55: [2, 6], 60: [2, 6]}, {5: [2, 7], 14: [2, 7], 15: [2, 7], 19: [2, 7], 29: [2, 7], 34: [2, 7], 39: [2, 7], 44: [2, 7], 47: [2, 7], 48: [2, 7], 51: [2, 7], 55: [2, 7], 60: [2, 7]}, {5: [2, 8], 14: [2, 8], 15: [2, 8], 19: [2, 8], 29: [2, 8], 34: [2, 8], 39: [2, 8], 44: [2, 8], 47: [2, 8], 48: [2, 8], 51: [2, 8], 55: [2, 8], 60: [2, 8]}, {5: [2, 9], 14: [2, 9], 15: [2, 9], 19: [2, 9], 29: [2, 9], 34: [2, 9], 39: [2, 9], 44: [2, 9], 47: [2, 9], 48: [2, 9], 51: [2, 9], 55: [2, 9], 60: [2, 9]}, {20: 25, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {20: 36, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {4: 37, 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 39: [2, 46], 44: [2, 46], 47: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46]}, {4: 38, 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 44: [2, 46], 47: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46]}, {15: [2, 48], 17: 39, 18: [2, 48]}, {20: 41, 56: 40, 64: 42, 65: [1, 43], 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {4: 44, 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 47: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46]}, {5: [2, 10], 14: [2, 10], 15: [2, 10], 18: [2, 10], 19: [2, 10], 29: [2, 10], 34: [2, 10], 39: [2, 10], 44: [2, 10], 47: [2, 10], 48: [2, 10], 51: [2, 10], 55: [2, 10], 60: [2, 10]}, {20: 45, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {20: 46, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {20: 47, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {20: 41, 56: 48, 64: 42, 65: [1, 43], 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {33: [2, 78], 49: 49, 65: [2, 78], 72: [2, 78], 80: [2, 78], 81: [2, 78], 82: [2, 78], 83: [2, 78], 84: [2, 78], 85: [2, 78]}, {23: [2, 33], 33: [2, 33], 54: [2, 33], 65: [2, 33], 68: [2, 33], 72: [2, 33], 75: [2, 33], 80: [2, 33], 81: [2, 33], 82: [2, 33], 83: [2, 33], 84: [2, 33], 85: [2, 33]}, {23: [2, 34], 33: [2, 34], 54: [2, 34], 65: [2, 34], 68: [2, 34], 72: [2, 34], 75: [2, 34], 80: [2, 34], 81: [2, 34], 82: [2, 34], 83: [2, 34], 84: [2, 34], 85: [2, 34]}, {23: [2, 35], 33: [2, 35], 54: [2, 35], 65: [2, 35], 68: [2, 35], 72: [2, 35], 75: [2, 35], 80: [2, 35], 81: [2, 35], 82: [2, 35], 83: [2, 35], 84: [2, 35], 85: [2, 35]}, {23: [2, 36], 33: [2, 36], 54: [2, 36], 65: [2, 36], 68: [2, 36], 72: [2, 36], 75: [2, 36], 80: [2, 36], 81: [2, 36], 82: [2, 36], 83: [2, 36], 84: [2, 36], 85: [2, 36]}, {23: [2, 37], 33: [2, 37], 54: [2, 37], 65: [2, 37], 68: [2, 37], 72: [2, 37], 75: [2, 37], 80: [2, 37], 81: [2, 37], 82: [2, 37], 83: [2, 37], 84: [2, 37], 85: [2, 37]}, {23: [2, 38], 33: [2, 38], 54: [2, 38], 65: [2, 38], 68: [2, 38], 72: [2, 38], 75: [2, 38], 80: [2, 38], 81: [2, 38], 82: [2, 38], 83: [2, 38], 84: [2, 38], 85: [2, 38]}, {23: [2, 39], 33: [2, 39], 54: [2, 39], 65: [2, 39], 68: [2, 39], 72: [2, 39], 75: [2, 39], 80: [2, 39], 81: [2, 39], 82: [2, 39], 83: [2, 39], 84: [2, 39], 85: [2, 39]}, {23: [2, 43], 33: [2, 43], 54: [2, 43], 65: [2, 43], 68: [2, 43], 72: [2, 43], 75: [2, 43], 80: [2, 43], 81: [2, 43], 82: [2, 43], 83: [2, 43], 84: [2, 43], 85: [2, 43], 87: [1, 50]}, {72: [1, 35], 86: 51}, {23: [2, 45], 33: [2, 45], 54: [2, 45], 65: [2, 45], 68: [2, 45], 72: [2, 45], 75: [2, 45], 80: [2, 45], 81: [2, 45], 82: [2, 45], 83: [2, 45], 84: [2, 45], 85: [2, 45], 87: [2, 45]}, {52: 52, 54: [2, 82], 65: [2, 82], 72: [2, 82], 80: [2, 82], 81: [2, 82], 82: [2, 82], 83: [2, 82], 84: [2, 82], 85: [2, 82]}, {25: 53, 38: 55, 39: [1, 57], 43: 56, 44: [1, 58], 45: 54, 47: [2, 54]}, {28: 59, 43: 60, 44: [1, 58], 47: [2, 56]}, {13: 62, 15: [1, 20], 18: [1, 61]}, {33: [2, 86], 57: 63, 65: [2, 86], 72: [2, 86], 80: [2, 86], 81: [2, 86], 82: [2, 86], 83: [2, 86], 84: [2, 86], 85: [2, 86]}, {33: [2, 40], 65: [2, 40], 72: [2, 40], 80: [2, 40], 81: [2, 40], 82: [2, 40], 83: [2, 40], 84: [2, 40], 85: [2, 40]}, {33: [2, 41], 65: [2, 41], 72: [2, 41], 80: [2, 41], 81: [2, 41], 82: [2, 41], 83: [2, 41], 84: [2, 41], 85: [2, 41]}, {20: 64, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {26: 65, 47: [1, 66]}, {30: 67, 33: [2, 58], 65: [2, 58], 72: [2, 58], 75: [2, 58], 80: [2, 58], 81: [2, 58], 82: [2, 58], 83: [2, 58], 84: [2, 58], 85: [2, 58]}, {33: [2, 64], 35: 68, 65: [2, 64], 72: [2, 64], 75: [2, 64], 80: [2, 64], 81: [2, 64], 82: [2, 64], 83: [2, 64], 84: [2, 64], 85: [2, 64]}, {21: 69, 23: [2, 50], 65: [2, 50], 72: [2, 50], 80: [2, 50], 81: [2, 50], 82: [2, 50], 83: [2, 50], 84: [2, 50], 85: [2, 50]}, {33: [2, 90], 61: 70, 65: [2, 90], 72: [2, 90], 80: [2, 90], 81: [2, 90], 82: [2, 90], 83: [2, 90], 84: [2, 90], 85: [2, 90]}, {20: 74, 33: [2, 80], 50: 71, 63: 72, 64: 75, 65: [1, 43], 69: 73, 70: 76, 71: 77, 72: [1, 78], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {72: [1, 79]}, {23: [2, 42], 33: [2, 42], 54: [2, 42], 65: [2, 42], 68: [2, 42], 72: [2, 42], 75: [2, 42], 80: [2, 42], 81: [2, 42], 82: [2, 42], 83: [2, 42], 84: [2, 42], 85: [2, 42], 87: [1, 50]}, {20: 74, 53: 80, 54: [2, 84], 63: 81, 64: 75, 65: [1, 43], 69: 82, 70: 76, 71: 77, 72: [1, 78], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {26: 83, 47: [1, 66]}, {47: [2, 55]}, {4: 84, 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 39: [2, 46], 44: [2, 46], 47: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46]}, {47: [2, 20]}, {20: 85, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {4: 86, 6: 3, 14: [2, 46], 15: [2, 46], 19: [2, 46], 29: [2, 46], 34: [2, 46], 47: [2, 46], 48: [2, 46], 51: [2, 46], 55: [2, 46], 60: [2, 46]}, {26: 87, 47: [1, 66]}, {47: [2, 57]}, {5: [2, 11], 14: [2, 11], 15: [2, 11], 19: [2, 11], 29: [2, 11], 34: [2, 11], 39: [2, 11], 44: [2, 11], 47: [2, 11], 48: [2, 11], 51: [2, 11], 55: [2, 11], 60: [2, 11]}, {15: [2, 49], 18: [2, 49]}, {20: 74, 33: [2, 88], 58: 88, 63: 89, 64: 75, 65: [1, 43], 69: 90, 70: 76, 71: 77, 72: [1, 78], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {65: [2, 94], 66: 91, 68: [2, 94], 72: [2, 94], 80: [2, 94], 81: [2, 94], 82: [2, 94], 83: [2, 94], 84: [2, 94], 85: [2, 94]}, {5: [2, 25], 14: [2, 25], 15: [2, 25], 19: [2, 25], 29: [2, 25], 34: [2, 25], 39: [2, 25], 44: [2, 25], 47: [2, 25], 48: [2, 25], 51: [2, 25], 55: [2, 25], 60: [2, 25]}, {20: 92, 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {20: 74, 31: 93, 33: [2, 60], 63: 94, 64: 75, 65: [1, 43], 69: 95, 70: 76, 71: 77, 72: [1, 78], 75: [2, 60], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {20: 74, 33: [2, 66], 36: 96, 63: 97, 64: 75, 65: [1, 43], 69: 98, 70: 76, 71: 77, 72: [1, 78], 75: [2, 66], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {20: 74, 22: 99, 23: [2, 52], 63: 100, 64: 75, 65: [1, 43], 69: 101, 70: 76, 71: 77, 72: [1, 78], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {20: 74, 33: [2, 92], 62: 102, 63: 103, 64: 75, 65: [1, 43], 69: 104, 70: 76, 71: 77, 72: [1, 78], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {33: [1, 105]}, {33: [2, 79], 65: [2, 79], 72: [2, 79], 80: [2, 79], 81: [2, 79], 82: [2, 79], 83: [2, 79], 84: [2, 79], 85: [2, 79]}, {33: [2, 81]}, {23: [2, 27], 33: [2, 27], 54: [2, 27], 65: [2, 27], 68: [2, 27], 72: [2, 27], 75: [2, 27], 80: [2, 27], 81: [2, 27], 82: [2, 27], 83: [2, 27], 84: [2, 27], 85: [2, 27]}, {23: [2, 28], 33: [2, 28], 54: [2, 28], 65: [2, 28], 68: [2, 28], 72: [2, 28], 75: [2, 28], 80: [2, 28], 81: [2, 28], 82: [2, 28], 83: [2, 28], 84: [2, 28], 85: [2, 28]}, {23: [2, 30], 33: [2, 30], 54: [2, 30], 68: [2, 30], 71: 106, 72: [1, 107], 75: [2, 30]}, {23: [2, 98], 33: [2, 98], 54: [2, 98], 68: [2, 98], 72: [2, 98], 75: [2, 98]}, {23: [2, 45], 33: [2, 45], 54: [2, 45], 65: [2, 45], 68: [2, 45], 72: [2, 45], 73: [1, 108], 75: [2, 45], 80: [2, 45], 81: [2, 45], 82: [2, 45], 83: [2, 45], 84: [2, 45], 85: [2, 45], 87: [2, 45]}, {23: [2, 44], 33: [2, 44], 54: [2, 44], 65: [2, 44], 68: [2, 44], 72: [2, 44], 75: [2, 44], 80: [2, 44], 81: [2, 44], 82: [2, 44], 83: [2, 44], 84: [2, 44], 85: [2, 44], 87: [2, 44]}, {54: [1, 109]}, {54: [2, 83], 65: [2, 83], 72: [2, 83], 80: [2, 83], 81: [2, 83], 82: [2, 83], 83: [2, 83], 84: [2, 83], 85: [2, 83]}, {54: [2, 85]}, {5: [2, 13], 14: [2, 13], 15: [2, 13], 19: [2, 13], 29: [2, 13], 34: [2, 13], 39: [2, 13], 44: [2, 13], 47: [2, 13], 48: [2, 13], 51: [2, 13], 55: [2, 13], 60: [2, 13]}, {38: 55, 39: [1, 57], 43: 56, 44: [1, 58], 45: 111, 46: 110, 47: [2, 76]}, {33: [2, 70], 40: 112, 65: [2, 70], 72: [2, 70], 75: [2, 70], 80: [2, 70], 81: [2, 70], 82: [2, 70], 83: [2, 70], 84: [2, 70], 85: [2, 70]}, {47: [2, 18]}, {5: [2, 14], 14: [2, 14], 15: [2, 14], 19: [2, 14], 29: [2, 14], 34: [2, 14], 39: [2, 14], 44: [2, 14], 47: [2, 14], 48: [2, 14], 51: [2, 14], 55: [2, 14], 60: [2, 14]}, {33: [1, 113]}, {33: [2, 87], 65: [2, 87], 72: [2, 87], 80: [2, 87], 81: [2, 87], 82: [2, 87], 83: [2, 87], 84: [2, 87], 85: [2, 87]}, {33: [2, 89]}, {20: 74, 63: 115, 64: 75, 65: [1, 43], 67: 114, 68: [2, 96], 69: 116, 70: 76, 71: 77, 72: [1, 78], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {33: [1, 117]}, {32: 118, 33: [2, 62], 74: 119, 75: [1, 120]}, {33: [2, 59], 65: [2, 59], 72: [2, 59], 75: [2, 59], 80: [2, 59], 81: [2, 59], 82: [2, 59], 83: [2, 59], 84: [2, 59], 85: [2, 59]}, {33: [2, 61], 75: [2, 61]}, {33: [2, 68], 37: 121, 74: 122, 75: [1, 120]}, {33: [2, 65], 65: [2, 65], 72: [2, 65], 75: [2, 65], 80: [2, 65], 81: [2, 65], 82: [2, 65], 83: [2, 65], 84: [2, 65], 85: [2, 65]}, {33: [2, 67], 75: [2, 67]}, {23: [1, 123]}, {23: [2, 51], 65: [2, 51], 72: [2, 51], 80: [2, 51], 81: [2, 51], 82: [2, 51], 83: [2, 51], 84: [2, 51], 85: [2, 51]}, {23: [2, 53]}, {33: [1, 124]}, {33: [2, 91], 65: [2, 91], 72: [2, 91], 80: [2, 91], 81: [2, 91], 82: [2, 91], 83: [2, 91], 84: [2, 91], 85: [2, 91]}, {33: [2, 93]}, {5: [2, 22], 14: [2, 22], 15: [2, 22], 19: [2, 22], 29: [2, 22], 34: [2, 22], 39: [2, 22], 44: [2, 22], 47: [2, 22], 48: [2, 22], 51: [2, 22], 55: [2, 22], 60: [2, 22]}, {23: [2, 99], 33: [2, 99], 54: [2, 99], 68: [2, 99], 72: [2, 99], 75: [2, 99]}, {73: [1, 108]}, {20: 74, 63: 125, 64: 75, 65: [1, 43], 72: [1, 35], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {5: [2, 23], 14: [2, 23], 15: [2, 23], 19: [2, 23], 29: [2, 23], 34: [2, 23], 39: [2, 23], 44: [2, 23], 47: [2, 23], 48: [2, 23], 51: [2, 23], 55: [2, 23], 60: [2, 23]}, {47: [2, 19]}, {47: [2, 77]}, {20: 74, 33: [2, 72], 41: 126, 63: 127, 64: 75, 65: [1, 43], 69: 128, 70: 76, 71: 77, 72: [1, 78], 75: [2, 72], 78: 26, 79: 27, 80: [1, 28], 81: [1, 29], 82: [1, 30], 83: [1, 31], 84: [1, 32], 85: [1, 34], 86: 33}, {5: [2, 24], 14: [2, 24], 15: [2, 24], 19: [2, 24], 29: [2, 24], 34: [2, 24], 39: [2, 24], 44: [2, 24], 47: [2, 24], 48: [2, 24], 51: [2, 24], 55: [2, 24], 60: [2, 24]}, {68: [1, 129]}, {65: [2, 95], 68: [2, 95], 72: [2, 95], 80: [2, 95], 81: [2, 95], 82: [2, 95], 83: [2, 95], 84: [2, 95], 85: [2, 95]}, {68: [2, 97]}, {5: [2, 21], 14: [2, 21], 15: [2, 21], 19: [2, 21], 29: [2, 21], 34: [2, 21], 39: [2, 21], 44: [2, 21], 47: [2, 21], 48: [2, 21], 51: [2, 21], 55: [2, 21], 60: [2, 21]}, {33: [1, 130]}, {33: [2, 63]}, {72: [1, 132], 76: 131}, {33: [1, 133]}, {33: [2, 69]}, {15: [2, 12], 18: [2, 12]}, {14: [2, 26], 15: [2, 26], 19: [2, 26], 29: [2, 26], 34: [2, 26], 47: [2, 26], 48: [2, 26], 51: [2, 26], 55: [2, 26], 60: [2, 26]}, {23: [2, 31], 33: [2, 31], 54: [2, 31], 68: [2, 31], 72: [2, 31], 75: [2, 31]}, {33: [2, 74], 42: 134, 74: 135, 75: [1, 120]}, {33: [2, 71], 65: [2, 71], 72: [2, 71], 75: [2, 71], 80: [2, 71], 81: [2, 71], 82: [2, 71], 83: [2, 71], 84: [2, 71], 85: [2, 71]}, {33: [2, 73], 75: [2, 73]}, {23: [2, 29], 33: [2, 29], 54: [2, 29], 65: [2, 29], 68: [2, 29], 72: [2, 29], 75: [2, 29], 80: [2, 29], 81: [2, 29], 82: [2, 29], 83: [2, 29], 84: [2, 29], 85: [2, 29]}, {14: [2, 15], 15: [2, 15], 19: [2, 15], 29: [2, 15], 34: [2, 15], 39: [2, 15], 44: [2, 15], 47: [2, 15], 48: [2, 15], 51: [2, 15], 55: [2, 15], 60: [2, 15]}, {72: [1, 137], 77: [1, 136]}, {72: [2, 100], 77: [2, 100]}, {14: [2, 16], 15: [2, 16], 19: [2, 16], 29: [2, 16], 34: [2, 16], 44: [2, 16], 47: [2, 16], 48: [2, 16], 51: [2, 16], 55: [2, 16], 60: [2, 16]}, {33: [1, 138]}, {33: [2, 75]}, {33: [2, 32]}, {72: [2, 101], 77: [2, 101]}, {14: [2, 17], 15: [2, 17], 19: [2, 17], 29: [2, 17], 34: [2, 17], 39: [2, 17], 44: [2, 17], 47: [2, 17], 48: [2, 17], 51: [2, 17], 55: [2, 17], 60: [2, 17]}], - defaultActions: {4: [2, 1], 54: [2, 55], 56: [2, 20], 60: [2, 57], 73: [2, 81], 82: [2, 85], 86: [2, 18], 90: [2, 89], 101: [2, 53], 104: [2, 93], 110: [2, 19], 111: [2, 77], 116: [2, 97], 119: [2, 63], 122: [2, 69], 135: [2, 75], 136: [2, 32]}, - parseError: function parseError(str, hash) { - throw new Error(str); - }, - parse: function parse(input) { - var self2 = this, stack = [0], vstack = [null], lstack = [], table = this.table, yytext = "", yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1; - this.lexer.setInput(input); - this.lexer.yy = this.yy; - this.yy.lexer = this.lexer; - this.yy.parser = this; - if (typeof this.lexer.yylloc == "undefined") - this.lexer.yylloc = {}; - var yyloc = this.lexer.yylloc; - lstack.push(yyloc); - var ranges = this.lexer.options && this.lexer.options.ranges; - if (typeof this.yy.parseError === "function") - this.parseError = this.yy.parseError; - function popStack(n) { - stack.length = stack.length - 2 * n; - vstack.length = vstack.length - n; - lstack.length = lstack.length - n; - } - function lex() { - var token; - token = self2.lexer.lex() || 1; - if (typeof token !== "number") { - token = self2.symbols_[token] || token; - } - return token; - } - var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected; - while (true) { - state = stack[stack.length - 1]; - if (this.defaultActions[state]) { - action = this.defaultActions[state]; - } else { - if (symbol === null || typeof symbol == "undefined") { - symbol = lex(); - } - action = table[state] && table[state][symbol]; - } - if (typeof action === "undefined" || !action.length || !action[0]) { - var errStr = ""; - if (!recovering) { - expected = []; - for (p in table[state]) - if (this.terminals_[p] && p > 2) { - expected.push("'" + this.terminals_[p] + "'"); - } - if (this.lexer.showPosition) { - errStr = "Parse error on line " + (yylineno + 1) + ":\n" + this.lexer.showPosition() + "\nExpecting " + expected.join(", ") + ", got '" + (this.terminals_[symbol] || symbol) + "'"; - } else { - errStr = "Parse error on line " + (yylineno + 1) + ": Unexpected " + (symbol == 1 ? "end of input" : "'" + (this.terminals_[symbol] || symbol) + "'"); - } - this.parseError(errStr, {text: this.lexer.match, token: this.terminals_[symbol] || symbol, line: this.lexer.yylineno, loc: yyloc, expected}); - } - } - if (action[0] instanceof Array && action.length > 1) { - throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol); - } - switch (action[0]) { - case 1: - stack.push(symbol); - vstack.push(this.lexer.yytext); - lstack.push(this.lexer.yylloc); - stack.push(action[1]); - symbol = null; - if (!preErrorSymbol) { - yyleng = this.lexer.yyleng; - yytext = this.lexer.yytext; - yylineno = this.lexer.yylineno; - yyloc = this.lexer.yylloc; - if (recovering > 0) - recovering--; - } else { - symbol = preErrorSymbol; - preErrorSymbol = null; - } - break; - case 2: - len = this.productions_[action[1]][1]; - yyval.$ = vstack[vstack.length - len]; - yyval._$ = {first_line: lstack[lstack.length - (len || 1)].first_line, last_line: lstack[lstack.length - 1].last_line, first_column: lstack[lstack.length - (len || 1)].first_column, last_column: lstack[lstack.length - 1].last_column}; - if (ranges) { - yyval._$.range = [lstack[lstack.length - (len || 1)].range[0], lstack[lstack.length - 1].range[1]]; - } - r = this.performAction.call(yyval, yytext, yyleng, yylineno, this.yy, action[1], vstack, lstack); - if (typeof r !== "undefined") { - return r; - } - if (len) { - stack = stack.slice(0, -1 * len * 2); - vstack = vstack.slice(0, -1 * len); - lstack = lstack.slice(0, -1 * len); - } - stack.push(this.productions_[action[1]][0]); - vstack.push(yyval.$); - lstack.push(yyval._$); - newState = table[stack[stack.length - 2]][stack[stack.length - 1]]; - stack.push(newState); - break; - case 3: - return true; - } - } - return true; - } - }; - var lexer = function() { - var lexer2 = { - EOF: 1, - parseError: function parseError(str, hash) { - if (this.yy.parser) { - this.yy.parser.parseError(str, hash); - } else { - throw new Error(str); - } - }, - setInput: function setInput(input) { - this._input = input; - this._more = this._less = this.done = false; - this.yylineno = this.yyleng = 0; - this.yytext = this.matched = this.match = ""; - this.conditionStack = ["INITIAL"]; - this.yylloc = {first_line: 1, first_column: 0, last_line: 1, last_column: 0}; - if (this.options.ranges) - this.yylloc.range = [0, 0]; - this.offset = 0; - return this; - }, - input: function input() { - var ch = this._input[0]; - this.yytext += ch; - this.yyleng++; - this.offset++; - this.match += ch; - this.matched += ch; - var lines = ch.match(/(?:\r\n?|\n).*/g); - if (lines) { - this.yylineno++; - this.yylloc.last_line++; - } else { - this.yylloc.last_column++; - } - if (this.options.ranges) - this.yylloc.range[1]++; - this._input = this._input.slice(1); - return ch; - }, - unput: function unput(ch) { - var len = ch.length; - var lines = ch.split(/(?:\r\n?|\n)/g); - this._input = ch + this._input; - this.yytext = this.yytext.substr(0, this.yytext.length - len - 1); - this.offset -= len; - var oldLines = this.match.split(/(?:\r\n?|\n)/g); - this.match = this.match.substr(0, this.match.length - 1); - this.matched = this.matched.substr(0, this.matched.length - 1); - if (lines.length - 1) - this.yylineno -= lines.length - 1; - var r = this.yylloc.range; - this.yylloc = { - first_line: this.yylloc.first_line, - last_line: this.yylineno + 1, - first_column: this.yylloc.first_column, - last_column: lines ? (lines.length === oldLines.length ? this.yylloc.first_column : 0) + oldLines[oldLines.length - lines.length].length - lines[0].length : this.yylloc.first_column - len - }; - if (this.options.ranges) { - this.yylloc.range = [r[0], r[0] + this.yyleng - len]; - } - return this; - }, - more: function more() { - this._more = true; - return this; - }, - less: function less(n) { - this.unput(this.match.slice(n)); - }, - pastInput: function pastInput() { - var past = this.matched.substr(0, this.matched.length - this.match.length); - return (past.length > 20 ? "..." : "") + past.substr(-20).replace(/\n/g, ""); - }, - upcomingInput: function upcomingInput() { - var next = this.match; - if (next.length < 20) { - next += this._input.substr(0, 20 - next.length); - } - return (next.substr(0, 20) + (next.length > 20 ? "..." : "")).replace(/\n/g, ""); - }, - showPosition: function showPosition() { - var pre = this.pastInput(); - var c = new Array(pre.length + 1).join("-"); - return pre + this.upcomingInput() + "\n" + c + "^"; - }, - next: function next() { - if (this.done) { - return this.EOF; - } - if (!this._input) - this.done = true; - var token, match, tempMatch, index2, col, lines; - if (!this._more) { - this.yytext = ""; - this.match = ""; - } - var rules = this._currentRules(); - for (var i = 0; i < rules.length; i++) { - tempMatch = this._input.match(this.rules[rules[i]]); - if (tempMatch && (!match || tempMatch[0].length > match[0].length)) { - match = tempMatch; - index2 = i; - if (!this.options.flex) - break; - } - } - if (match) { - lines = match[0].match(/(?:\r\n?|\n).*/g); - if (lines) - this.yylineno += lines.length; - this.yylloc = { - first_line: this.yylloc.last_line, - last_line: this.yylineno + 1, - first_column: this.yylloc.last_column, - last_column: lines ? lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + match[0].length - }; - this.yytext += match[0]; - this.match += match[0]; - this.matches = match; - this.yyleng = this.yytext.length; - if (this.options.ranges) { - this.yylloc.range = [this.offset, this.offset += this.yyleng]; - } - this._more = false; - this._input = this._input.slice(match[0].length); - this.matched += match[0]; - token = this.performAction.call(this, this.yy, this, rules[index2], this.conditionStack[this.conditionStack.length - 1]); - if (this.done && this._input) - this.done = false; - if (token) - return token; - else - return; - } - if (this._input === "") { - return this.EOF; - } else { - return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {text: "", token: null, line: this.yylineno}); - } - }, - lex: function lex() { - var r = this.next(); - if (typeof r !== "undefined") { - return r; - } else { - return this.lex(); - } - }, - begin: function begin(condition) { - this.conditionStack.push(condition); - }, - popState: function popState() { - return this.conditionStack.pop(); - }, - _currentRules: function _currentRules() { - return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules; - }, - topState: function topState() { - return this.conditionStack[this.conditionStack.length - 2]; - }, - pushState: function begin(condition) { - this.begin(condition); - } - }; - lexer2.options = {}; - lexer2.performAction = function anonymous(yy, yy_, $avoiding_name_collisions, YY_START) { - function strip(start, end) { - return yy_.yytext = yy_.yytext.substring(start, yy_.yyleng - end + start); - } - var YYSTATE = YY_START; - switch ($avoiding_name_collisions) { - case 0: - if (yy_.yytext.slice(-2) === "\\\\") { - strip(0, 1); - this.begin("mu"); - } else if (yy_.yytext.slice(-1) === "\\") { - strip(0, 1); - this.begin("emu"); - } else { - this.begin("mu"); - } - if (yy_.yytext) - return 15; - break; - case 1: - return 15; - break; - case 2: - this.popState(); - return 15; - break; - case 3: - this.begin("raw"); - return 15; - break; - case 4: - this.popState(); - if (this.conditionStack[this.conditionStack.length - 1] === "raw") { - return 15; - } else { - strip(5, 9); - return "END_RAW_BLOCK"; - } - break; - case 5: - return 15; - break; - case 6: - this.popState(); - return 14; - break; - case 7: - return 65; - break; - case 8: - return 68; - break; - case 9: - return 19; - break; - case 10: - this.popState(); - this.begin("raw"); - return 23; - break; - case 11: - return 55; - break; - case 12: - return 60; - break; - case 13: - return 29; - break; - case 14: - return 47; - break; - case 15: - this.popState(); - return 44; - break; - case 16: - this.popState(); - return 44; - break; - case 17: - return 34; - break; - case 18: - return 39; - break; - case 19: - return 51; - break; - case 20: - return 48; - break; - case 21: - this.unput(yy_.yytext); - this.popState(); - this.begin("com"); - break; - case 22: - this.popState(); - return 14; - break; - case 23: - return 48; - break; - case 24: - return 73; - break; - case 25: - return 72; - break; - case 26: - return 72; - break; - case 27: - return 87; - break; - case 28: - break; - case 29: - this.popState(); - return 54; - break; - case 30: - this.popState(); - return 33; - break; - case 31: - yy_.yytext = strip(1, 2).replace(/\\"/g, '"'); - return 80; - break; - case 32: - yy_.yytext = strip(1, 2).replace(/\\'/g, "'"); - return 80; - break; - case 33: - return 85; - break; - case 34: - return 82; - break; - case 35: - return 82; - break; - case 36: - return 83; - break; - case 37: - return 84; - break; - case 38: - return 81; - break; - case 39: - return 75; - break; - case 40: - return 77; - break; - case 41: - return 72; - break; - case 42: - yy_.yytext = yy_.yytext.replace(/\\([\\\]])/g, "$1"); - return 72; - break; - case 43: - return "INVALID"; - break; - case 44: - return 5; - break; - } - }; - lexer2.rules = [/^(?:[^\x00]*?(?=(\{\{)))/, /^(?:[^\x00]+)/, /^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/, /^(?:\{\{\{\{(?=[^\/]))/, /^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/, /^(?:[^\x00]+?(?=(\{\{\{\{)))/, /^(?:[\s\S]*?--(~)?\}\})/, /^(?:\()/, /^(?:\))/, /^(?:\{\{\{\{)/, /^(?:\}\}\}\})/, /^(?:\{\{(~)?>)/, /^(?:\{\{(~)?#>)/, /^(?:\{\{(~)?#\*?)/, /^(?:\{\{(~)?\/)/, /^(?:\{\{(~)?\^\s*(~)?\}\})/, /^(?:\{\{(~)?\s*else\s*(~)?\}\})/, /^(?:\{\{(~)?\^)/, /^(?:\{\{(~)?\s*else\b)/, /^(?:\{\{(~)?\{)/, /^(?:\{\{(~)?&)/, /^(?:\{\{(~)?!--)/, /^(?:\{\{(~)?![\s\S]*?\}\})/, /^(?:\{\{(~)?\*?)/, /^(?:=)/, /^(?:\.\.)/, /^(?:\.(?=([=~}\s\/.)|])))/, /^(?:[\/.])/, /^(?:\s+)/, /^(?:\}(~)?\}\})/, /^(?:(~)?\}\})/, /^(?:"(\\["]|[^"])*")/, /^(?:'(\\[']|[^'])*')/, /^(?:@)/, /^(?:true(?=([~}\s)])))/, /^(?:false(?=([~}\s)])))/, /^(?:undefined(?=([~}\s)])))/, /^(?:null(?=([~}\s)])))/, /^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/, /^(?:as\s+\|)/, /^(?:\|)/, /^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/, /^(?:\[(\\\]|[^\]])*\])/, /^(?:.)/, /^(?:$)/]; - lexer2.conditions = {"mu": {"rules": [7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44], "inclusive": false}, "emu": {"rules": [2], "inclusive": false}, "com": {"rules": [6], "inclusive": false}, "raw": {"rules": [3, 4, 5], "inclusive": false}, "INITIAL": {"rules": [0, 1, 44], "inclusive": true}}; - return lexer2; - }(); - parser.lexer = lexer; - function Parser() { - this.yy = {}; - } - Parser.prototype = parser; - parser.Parser = Parser; - return new Parser(); - }(); - exports["default"] = handlebars; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/visitor.js - var require_visitor = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/visitor.js"(exports, module) { - "use strict"; - exports.__esModule = true; - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : {"default": obj}; - } - var _exception = require_exception(); - var _exception2 = _interopRequireDefault(_exception); - function Visitor() { - this.parents = []; - } - Visitor.prototype = { - constructor: Visitor, - mutating: false, - acceptKey: function acceptKey(node, name) { - var value = this.accept(node[name]); - if (this.mutating) { - if (value && !Visitor.prototype[value.type]) { - throw new _exception2["default"]('Unexpected node type "' + value.type + '" found when accepting ' + name + " on " + node.type); - } - node[name] = value; - } - }, - acceptRequired: function acceptRequired(node, name) { - this.acceptKey(node, name); - if (!node[name]) { - throw new _exception2["default"](node.type + " requires " + name); - } - }, - acceptArray: function acceptArray(array) { - for (var i = 0, l = array.length; i < l; i++) { - this.acceptKey(array, i); - if (!array[i]) { - array.splice(i, 1); - i--; - l--; - } - } - }, - accept: function accept(object) { - if (!object) { - return; - } - if (!this[object.type]) { - throw new _exception2["default"]("Unknown type: " + object.type, object); - } - if (this.current) { - this.parents.unshift(this.current); - } - this.current = object; - var ret = this[object.type](object); - this.current = this.parents.shift(); - if (!this.mutating || ret) { - return ret; - } else if (ret !== false) { - return object; - } - }, - Program: function Program(program) { - this.acceptArray(program.body); - }, - MustacheStatement: visitSubExpression, - Decorator: visitSubExpression, - BlockStatement: visitBlock, - DecoratorBlock: visitBlock, - PartialStatement: visitPartial, - PartialBlockStatement: function PartialBlockStatement(partial) { - visitPartial.call(this, partial); - this.acceptKey(partial, "program"); - }, - ContentStatement: function ContentStatement() { - }, - CommentStatement: function CommentStatement() { - }, - SubExpression: visitSubExpression, - PathExpression: function PathExpression() { - }, - StringLiteral: function StringLiteral() { - }, - NumberLiteral: function NumberLiteral() { - }, - BooleanLiteral: function BooleanLiteral() { - }, - UndefinedLiteral: function UndefinedLiteral() { - }, - NullLiteral: function NullLiteral() { - }, - Hash: function Hash(hash) { - this.acceptArray(hash.pairs); - }, - HashPair: function HashPair(pair) { - this.acceptRequired(pair, "value"); - } - }; - function visitSubExpression(mustache) { - this.acceptRequired(mustache, "path"); - this.acceptArray(mustache.params); - this.acceptKey(mustache, "hash"); - } - function visitBlock(block) { - visitSubExpression.call(this, block); - this.acceptKey(block, "program"); - this.acceptKey(block, "inverse"); - } - function visitPartial(partial) { - this.acceptRequired(partial, "name"); - this.acceptArray(partial.params); - this.acceptKey(partial, "hash"); - } - exports["default"] = Visitor; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/whitespace-control.js - var require_whitespace_control = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/whitespace-control.js"(exports, module) { - "use strict"; - exports.__esModule = true; - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : {"default": obj}; - } - var _visitor = require_visitor(); - var _visitor2 = _interopRequireDefault(_visitor); - function WhitespaceControl() { - var options = arguments.length <= 0 || arguments[0] === void 0 ? {} : arguments[0]; - this.options = options; - } - WhitespaceControl.prototype = new _visitor2["default"](); - WhitespaceControl.prototype.Program = function(program) { - var doStandalone = !this.options.ignoreStandalone; - var isRoot = !this.isRootSeen; - this.isRootSeen = true; - var body = program.body; - for (var i = 0, l = body.length; i < l; i++) { - var current = body[i], strip = this.accept(current); - if (!strip) { - continue; - } - var _isPrevWhitespace = isPrevWhitespace(body, i, isRoot), _isNextWhitespace = isNextWhitespace(body, i, isRoot), openStandalone = strip.openStandalone && _isPrevWhitespace, closeStandalone = strip.closeStandalone && _isNextWhitespace, inlineStandalone = strip.inlineStandalone && _isPrevWhitespace && _isNextWhitespace; - if (strip.close) { - omitRight(body, i, true); - } - if (strip.open) { - omitLeft(body, i, true); - } - if (doStandalone && inlineStandalone) { - omitRight(body, i); - if (omitLeft(body, i)) { - if (current.type === "PartialStatement") { - current.indent = /([ \t]+$)/.exec(body[i - 1].original)[1]; - } - } - } - if (doStandalone && openStandalone) { - omitRight((current.program || current.inverse).body); - omitLeft(body, i); - } - if (doStandalone && closeStandalone) { - omitRight(body, i); - omitLeft((current.inverse || current.program).body); - } - } - return program; - }; - WhitespaceControl.prototype.BlockStatement = WhitespaceControl.prototype.DecoratorBlock = WhitespaceControl.prototype.PartialBlockStatement = function(block) { - this.accept(block.program); - this.accept(block.inverse); - var program = block.program || block.inverse, inverse = block.program && block.inverse, firstInverse = inverse, lastInverse = inverse; - if (inverse && inverse.chained) { - firstInverse = inverse.body[0].program; - while (lastInverse.chained) { - lastInverse = lastInverse.body[lastInverse.body.length - 1].program; - } - } - var strip = { - open: block.openStrip.open, - close: block.closeStrip.close, - openStandalone: isNextWhitespace(program.body), - closeStandalone: isPrevWhitespace((firstInverse || program).body) - }; - if (block.openStrip.close) { - omitRight(program.body, null, true); - } - if (inverse) { - var inverseStrip = block.inverseStrip; - if (inverseStrip.open) { - omitLeft(program.body, null, true); - } - if (inverseStrip.close) { - omitRight(firstInverse.body, null, true); - } - if (block.closeStrip.open) { - omitLeft(lastInverse.body, null, true); - } - if (!this.options.ignoreStandalone && isPrevWhitespace(program.body) && isNextWhitespace(firstInverse.body)) { - omitLeft(program.body); - omitRight(firstInverse.body); - } - } else if (block.closeStrip.open) { - omitLeft(program.body, null, true); - } - return strip; - }; - WhitespaceControl.prototype.Decorator = WhitespaceControl.prototype.MustacheStatement = function(mustache) { - return mustache.strip; - }; - WhitespaceControl.prototype.PartialStatement = WhitespaceControl.prototype.CommentStatement = function(node) { - var strip = node.strip || {}; - return { - inlineStandalone: true, - open: strip.open, - close: strip.close - }; - }; - function isPrevWhitespace(body, i, isRoot) { - if (i === void 0) { - i = body.length; - } - var prev = body[i - 1], sibling = body[i - 2]; - if (!prev) { - return isRoot; - } - if (prev.type === "ContentStatement") { - return (sibling || !isRoot ? /\r?\n\s*?$/ : /(^|\r?\n)\s*?$/).test(prev.original); - } - } - function isNextWhitespace(body, i, isRoot) { - if (i === void 0) { - i = -1; - } - var next = body[i + 1], sibling = body[i + 2]; - if (!next) { - return isRoot; - } - if (next.type === "ContentStatement") { - return (sibling || !isRoot ? /^\s*?\r?\n/ : /^\s*?(\r?\n|$)/).test(next.original); - } - } - function omitRight(body, i, multiple) { - var current = body[i == null ? 0 : i + 1]; - if (!current || current.type !== "ContentStatement" || !multiple && current.rightStripped) { - return; - } - var original = current.value; - current.value = current.value.replace(multiple ? /^\s+/ : /^[ \t]*\r?\n?/, ""); - current.rightStripped = current.value !== original; - } - function omitLeft(body, i, multiple) { - var current = body[i == null ? body.length - 1 : i - 1]; - if (!current || current.type !== "ContentStatement" || !multiple && current.leftStripped) { - return; - } - var original = current.value; - current.value = current.value.replace(multiple ? /\s+$/ : /[ \t]+$/, ""); - current.leftStripped = current.value !== original; - return current.leftStripped; - } - exports["default"] = WhitespaceControl; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/helpers.js - var require_helpers2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/helpers.js"(exports) { - "use strict"; - exports.__esModule = true; - exports.SourceLocation = SourceLocation; - exports.id = id; - exports.stripFlags = stripFlags; - exports.stripComment = stripComment; - exports.preparePath = preparePath; - exports.prepareMustache = prepareMustache; - exports.prepareRawBlock = prepareRawBlock; - exports.prepareBlock = prepareBlock; - exports.prepareProgram = prepareProgram; - exports.preparePartialBlock = preparePartialBlock; - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : {"default": obj}; - } - var _exception = require_exception(); - var _exception2 = _interopRequireDefault(_exception); - function validateClose(open, close) { - close = close.path ? close.path.original : close; - if (open.path.original !== close) { - var errorNode = {loc: open.path.loc}; - throw new _exception2["default"](open.path.original + " doesn't match " + close, errorNode); - } - } - function SourceLocation(source, locInfo) { - this.source = source; - this.start = { - line: locInfo.first_line, - column: locInfo.first_column - }; - this.end = { - line: locInfo.last_line, - column: locInfo.last_column - }; - } - function id(token) { - if (/^\[.*\]$/.test(token)) { - return token.substring(1, token.length - 1); - } else { - return token; - } - } - function stripFlags(open, close) { - return { - open: open.charAt(2) === "~", - close: close.charAt(close.length - 3) === "~" - }; - } - function stripComment(comment) { - return comment.replace(/^\{\{~?!-?-?/, "").replace(/-?-?~?\}\}$/, ""); - } - function preparePath(data, parts, loc) { - loc = this.locInfo(loc); - var original = data ? "@" : "", dig = [], depth = 0; - for (var i = 0, l = parts.length; i < l; i++) { - var part = parts[i].part, isLiteral = parts[i].original !== part; - original += (parts[i].separator || "") + part; - if (!isLiteral && (part === ".." || part === "." || part === "this")) { - if (dig.length > 0) { - throw new _exception2["default"]("Invalid path: " + original, {loc}); - } else if (part === "..") { - depth++; - } - } else { - dig.push(part); - } - } - return { - type: "PathExpression", - data, - depth, - parts: dig, - original, - loc - }; - } - function prepareMustache(path, params, hash, open, strip, locInfo) { - var escapeFlag = open.charAt(3) || open.charAt(2), escaped = escapeFlag !== "{" && escapeFlag !== "&"; - var decorator = /\*/.test(open); - return { - type: decorator ? "Decorator" : "MustacheStatement", - path, - params, - hash, - escaped, - strip, - loc: this.locInfo(locInfo) - }; - } - function prepareRawBlock(openRawBlock, contents, close, locInfo) { - validateClose(openRawBlock, close); - locInfo = this.locInfo(locInfo); - var program = { - type: "Program", - body: contents, - strip: {}, - loc: locInfo - }; - return { - type: "BlockStatement", - path: openRawBlock.path, - params: openRawBlock.params, - hash: openRawBlock.hash, - program, - openStrip: {}, - inverseStrip: {}, - closeStrip: {}, - loc: locInfo - }; - } - function prepareBlock(openBlock, program, inverseAndProgram, close, inverted, locInfo) { - if (close && close.path) { - validateClose(openBlock, close); - } - var decorator = /\*/.test(openBlock.open); - program.blockParams = openBlock.blockParams; - var inverse = void 0, inverseStrip = void 0; - if (inverseAndProgram) { - if (decorator) { - throw new _exception2["default"]("Unexpected inverse block on decorator", inverseAndProgram); - } - if (inverseAndProgram.chain) { - inverseAndProgram.program.body[0].closeStrip = close.strip; - } - inverseStrip = inverseAndProgram.strip; - inverse = inverseAndProgram.program; - } - if (inverted) { - inverted = inverse; - inverse = program; - program = inverted; - } - return { - type: decorator ? "DecoratorBlock" : "BlockStatement", - path: openBlock.path, - params: openBlock.params, - hash: openBlock.hash, - program, - inverse, - openStrip: openBlock.strip, - inverseStrip, - closeStrip: close && close.strip, - loc: this.locInfo(locInfo) - }; - } - function prepareProgram(statements, loc) { - if (!loc && statements.length) { - var firstLoc = statements[0].loc, lastLoc = statements[statements.length - 1].loc; - if (firstLoc && lastLoc) { - loc = { - source: firstLoc.source, - start: { - line: firstLoc.start.line, - column: firstLoc.start.column - }, - end: { - line: lastLoc.end.line, - column: lastLoc.end.column - } - }; - } - } - return { - type: "Program", - body: statements, - strip: {}, - loc - }; - } - function preparePartialBlock(open, program, close, locInfo) { - validateClose(open, close); - return { - type: "PartialBlockStatement", - name: open.path, - params: open.params, - hash: open.hash, - program, - openStrip: open.strip, - closeStrip: close && close.strip, - loc: this.locInfo(locInfo) - }; - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/base.js - var require_base2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/base.js"(exports) { - "use strict"; - exports.__esModule = true; - exports.parseWithoutProcessing = parseWithoutProcessing; - exports.parse = parse; - function _interopRequireWildcard(obj) { - if (obj && obj.__esModule) { - return obj; - } else { - var newObj = {}; - if (obj != null) { - for (var key in obj) { - if (Object.prototype.hasOwnProperty.call(obj, key)) - newObj[key] = obj[key]; - } - } - newObj["default"] = obj; - return newObj; - } - } - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : {"default": obj}; - } - var _parser = require_parser2(); - var _parser2 = _interopRequireDefault(_parser); - var _whitespaceControl = require_whitespace_control(); - var _whitespaceControl2 = _interopRequireDefault(_whitespaceControl); - var _helpers = require_helpers2(); - var Helpers = _interopRequireWildcard(_helpers); - var _utils = require_utils(); - exports.parser = _parser2["default"]; - var yy = {}; - _utils.extend(yy, Helpers); - function parseWithoutProcessing(input, options) { - if (input.type === "Program") { - return input; - } - _parser2["default"].yy = yy; - yy.locInfo = function(locInfo) { - return new yy.SourceLocation(options && options.srcName, locInfo); - }; - var ast = _parser2["default"].parse(input); - return ast; - } - function parse(input, options) { - var ast = parseWithoutProcessing(input, options); - var strip = new _whitespaceControl2["default"](options); - return strip.accept(ast); - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js - var require_compiler = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/compiler.js"(exports) { - "use strict"; - exports.__esModule = true; - exports.Compiler = Compiler; - exports.precompile = precompile; - exports.compile = compile; - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : {"default": obj}; - } - var _exception = require_exception(); - var _exception2 = _interopRequireDefault(_exception); - var _utils = require_utils(); - var _ast = require_ast(); - var _ast2 = _interopRequireDefault(_ast); - var slice = [].slice; - function Compiler() { - } - Compiler.prototype = { - compiler: Compiler, - equals: function equals(other) { - var len = this.opcodes.length; - if (other.opcodes.length !== len) { - return false; - } - for (var i = 0; i < len; i++) { - var opcode = this.opcodes[i], otherOpcode = other.opcodes[i]; - if (opcode.opcode !== otherOpcode.opcode || !argEquals(opcode.args, otherOpcode.args)) { - return false; - } - } - len = this.children.length; - for (var i = 0; i < len; i++) { - if (!this.children[i].equals(other.children[i])) { - return false; - } - } - return true; - }, - guid: 0, - compile: function compile2(program, options) { - this.sourceNode = []; - this.opcodes = []; - this.children = []; - this.options = options; - this.stringParams = options.stringParams; - this.trackIds = options.trackIds; - options.blockParams = options.blockParams || []; - options.knownHelpers = _utils.extend(Object.create(null), { - helperMissing: true, - blockHelperMissing: true, - each: true, - "if": true, - unless: true, - "with": true, - log: true, - lookup: true - }, options.knownHelpers); - return this.accept(program); - }, - compileProgram: function compileProgram(program) { - var childCompiler = new this.compiler(), result = childCompiler.compile(program, this.options), guid = this.guid++; - this.usePartial = this.usePartial || result.usePartial; - this.children[guid] = result; - this.useDepths = this.useDepths || result.useDepths; - return guid; - }, - accept: function accept(node) { - if (!this[node.type]) { - throw new _exception2["default"]("Unknown type: " + node.type, node); - } - this.sourceNode.unshift(node); - var ret = this[node.type](node); - this.sourceNode.shift(); - return ret; - }, - Program: function Program(program) { - this.options.blockParams.unshift(program.blockParams); - var body = program.body, bodyLength = body.length; - for (var i = 0; i < bodyLength; i++) { - this.accept(body[i]); - } - this.options.blockParams.shift(); - this.isSimple = bodyLength === 1; - this.blockParams = program.blockParams ? program.blockParams.length : 0; - return this; - }, - BlockStatement: function BlockStatement(block) { - transformLiteralToPath(block); - var program = block.program, inverse = block.inverse; - program = program && this.compileProgram(program); - inverse = inverse && this.compileProgram(inverse); - var type = this.classifySexpr(block); - if (type === "helper") { - this.helperSexpr(block, program, inverse); - } else if (type === "simple") { - this.simpleSexpr(block); - this.opcode("pushProgram", program); - this.opcode("pushProgram", inverse); - this.opcode("emptyHash"); - this.opcode("blockValue", block.path.original); - } else { - this.ambiguousSexpr(block, program, inverse); - this.opcode("pushProgram", program); - this.opcode("pushProgram", inverse); - this.opcode("emptyHash"); - this.opcode("ambiguousBlockValue"); - } - this.opcode("append"); - }, - DecoratorBlock: function DecoratorBlock(decorator) { - var program = decorator.program && this.compileProgram(decorator.program); - var params = this.setupFullMustacheParams(decorator, program, void 0), path = decorator.path; - this.useDecorators = true; - this.opcode("registerDecorator", params.length, path.original); - }, - PartialStatement: function PartialStatement(partial) { - this.usePartial = true; - var program = partial.program; - if (program) { - program = this.compileProgram(partial.program); - } - var params = partial.params; - if (params.length > 1) { - throw new _exception2["default"]("Unsupported number of partial arguments: " + params.length, partial); - } else if (!params.length) { - if (this.options.explicitPartialContext) { - this.opcode("pushLiteral", "undefined"); - } else { - params.push({type: "PathExpression", parts: [], depth: 0}); - } - } - var partialName = partial.name.original, isDynamic = partial.name.type === "SubExpression"; - if (isDynamic) { - this.accept(partial.name); - } - this.setupFullMustacheParams(partial, program, void 0, true); - var indent = partial.indent || ""; - if (this.options.preventIndent && indent) { - this.opcode("appendContent", indent); - indent = ""; - } - this.opcode("invokePartial", isDynamic, partialName, indent); - this.opcode("append"); - }, - PartialBlockStatement: function PartialBlockStatement(partialBlock) { - this.PartialStatement(partialBlock); - }, - MustacheStatement: function MustacheStatement(mustache) { - this.SubExpression(mustache); - if (mustache.escaped && !this.options.noEscape) { - this.opcode("appendEscaped"); - } else { - this.opcode("append"); - } - }, - Decorator: function Decorator(decorator) { - this.DecoratorBlock(decorator); - }, - ContentStatement: function ContentStatement(content) { - if (content.value) { - this.opcode("appendContent", content.value); - } - }, - CommentStatement: function CommentStatement() { - }, - SubExpression: function SubExpression(sexpr) { - transformLiteralToPath(sexpr); - var type = this.classifySexpr(sexpr); - if (type === "simple") { - this.simpleSexpr(sexpr); - } else if (type === "helper") { - this.helperSexpr(sexpr); - } else { - this.ambiguousSexpr(sexpr); - } - }, - ambiguousSexpr: function ambiguousSexpr(sexpr, program, inverse) { - var path = sexpr.path, name = path.parts[0], isBlock = program != null || inverse != null; - this.opcode("getContext", path.depth); - this.opcode("pushProgram", program); - this.opcode("pushProgram", inverse); - path.strict = true; - this.accept(path); - this.opcode("invokeAmbiguous", name, isBlock); - }, - simpleSexpr: function simpleSexpr(sexpr) { - var path = sexpr.path; - path.strict = true; - this.accept(path); - this.opcode("resolvePossibleLambda"); - }, - helperSexpr: function helperSexpr(sexpr, program, inverse) { - var params = this.setupFullMustacheParams(sexpr, program, inverse), path = sexpr.path, name = path.parts[0]; - if (this.options.knownHelpers[name]) { - this.opcode("invokeKnownHelper", params.length, name); - } else if (this.options.knownHelpersOnly) { - throw new _exception2["default"]("You specified knownHelpersOnly, but used the unknown helper " + name, sexpr); - } else { - path.strict = true; - path.falsy = true; - this.accept(path); - this.opcode("invokeHelper", params.length, path.original, _ast2["default"].helpers.simpleId(path)); - } - }, - PathExpression: function PathExpression(path) { - this.addDepth(path.depth); - this.opcode("getContext", path.depth); - var name = path.parts[0], scoped = _ast2["default"].helpers.scopedId(path), blockParamId = !path.depth && !scoped && this.blockParamIndex(name); - if (blockParamId) { - this.opcode("lookupBlockParam", blockParamId, path.parts); - } else if (!name) { - this.opcode("pushContext"); - } else if (path.data) { - this.options.data = true; - this.opcode("lookupData", path.depth, path.parts, path.strict); - } else { - this.opcode("lookupOnContext", path.parts, path.falsy, path.strict, scoped); - } - }, - StringLiteral: function StringLiteral(string) { - this.opcode("pushString", string.value); - }, - NumberLiteral: function NumberLiteral(number) { - this.opcode("pushLiteral", number.value); - }, - BooleanLiteral: function BooleanLiteral(bool) { - this.opcode("pushLiteral", bool.value); - }, - UndefinedLiteral: function UndefinedLiteral() { - this.opcode("pushLiteral", "undefined"); - }, - NullLiteral: function NullLiteral() { - this.opcode("pushLiteral", "null"); - }, - Hash: function Hash(hash) { - var pairs = hash.pairs, i = 0, l = pairs.length; - this.opcode("pushHash"); - for (; i < l; i++) { - this.pushParam(pairs[i].value); - } - while (i--) { - this.opcode("assignToHash", pairs[i].key); - } - this.opcode("popHash"); - }, - opcode: function opcode(name) { - this.opcodes.push({ - opcode: name, - args: slice.call(arguments, 1), - loc: this.sourceNode[0].loc - }); - }, - addDepth: function addDepth(depth) { - if (!depth) { - return; - } - this.useDepths = true; - }, - classifySexpr: function classifySexpr(sexpr) { - var isSimple = _ast2["default"].helpers.simpleId(sexpr.path); - var isBlockParam = isSimple && !!this.blockParamIndex(sexpr.path.parts[0]); - var isHelper = !isBlockParam && _ast2["default"].helpers.helperExpression(sexpr); - var isEligible = !isBlockParam && (isHelper || isSimple); - if (isEligible && !isHelper) { - var _name = sexpr.path.parts[0], options = this.options; - if (options.knownHelpers[_name]) { - isHelper = true; - } else if (options.knownHelpersOnly) { - isEligible = false; - } - } - if (isHelper) { - return "helper"; - } else if (isEligible) { - return "ambiguous"; - } else { - return "simple"; - } - }, - pushParams: function pushParams(params) { - for (var i = 0, l = params.length; i < l; i++) { - this.pushParam(params[i]); - } - }, - pushParam: function pushParam(val) { - var value = val.value != null ? val.value : val.original || ""; - if (this.stringParams) { - if (value.replace) { - value = value.replace(/^(\.?\.\/)*/g, "").replace(/\//g, "."); - } - if (val.depth) { - this.addDepth(val.depth); - } - this.opcode("getContext", val.depth || 0); - this.opcode("pushStringParam", value, val.type); - if (val.type === "SubExpression") { - this.accept(val); - } - } else { - if (this.trackIds) { - var blockParamIndex = void 0; - if (val.parts && !_ast2["default"].helpers.scopedId(val) && !val.depth) { - blockParamIndex = this.blockParamIndex(val.parts[0]); - } - if (blockParamIndex) { - var blockParamChild = val.parts.slice(1).join("."); - this.opcode("pushId", "BlockParam", blockParamIndex, blockParamChild); - } else { - value = val.original || value; - if (value.replace) { - value = value.replace(/^this(?:\.|$)/, "").replace(/^\.\//, "").replace(/^\.$/, ""); - } - this.opcode("pushId", val.type, value); - } - } - this.accept(val); - } - }, - setupFullMustacheParams: function setupFullMustacheParams(sexpr, program, inverse, omitEmpty) { - var params = sexpr.params; - this.pushParams(params); - this.opcode("pushProgram", program); - this.opcode("pushProgram", inverse); - if (sexpr.hash) { - this.accept(sexpr.hash); - } else { - this.opcode("emptyHash", omitEmpty); - } - return params; - }, - blockParamIndex: function blockParamIndex(name) { - for (var depth = 0, len = this.options.blockParams.length; depth < len; depth++) { - var blockParams = this.options.blockParams[depth], param = blockParams && _utils.indexOf(blockParams, name); - if (blockParams && param >= 0) { - return [depth, param]; - } - } - } - }; - function precompile(input, options, env) { - if (input == null || typeof input !== "string" && input.type !== "Program") { - throw new _exception2["default"]("You must pass a string or Handlebars AST to Handlebars.precompile. You passed " + input); - } - options = options || {}; - if (!("data" in options)) { - options.data = true; - } - if (options.compat) { - options.useDepths = true; - } - var ast = env.parse(input, options), environment = new env.Compiler().compile(ast, options); - return new env.JavaScriptCompiler().compile(environment, options); - } - function compile(input, options, env) { - if (options === void 0) - options = {}; - if (input == null || typeof input !== "string" && input.type !== "Program") { - throw new _exception2["default"]("You must pass a string or Handlebars AST to Handlebars.compile. You passed " + input); - } - options = _utils.extend({}, options); - if (!("data" in options)) { - options.data = true; - } - if (options.compat) { - options.useDepths = true; - } - var compiled = void 0; - function compileInput() { - var ast = env.parse(input, options), environment = new env.Compiler().compile(ast, options), templateSpec = new env.JavaScriptCompiler().compile(environment, options, void 0, true); - return env.template(templateSpec); - } - function ret(context, execOptions) { - if (!compiled) { - compiled = compileInput(); - } - return compiled.call(this, context, execOptions); - } - ret._setup = function(setupOptions) { - if (!compiled) { - compiled = compileInput(); - } - return compiled._setup(setupOptions); - }; - ret._child = function(i, data, blockParams, depths) { - if (!compiled) { - compiled = compileInput(); - } - return compiled._child(i, data, blockParams, depths); - }; - return ret; - } - function argEquals(a, b) { - if (a === b) { - return true; - } - if (_utils.isArray(a) && _utils.isArray(b) && a.length === b.length) { - for (var i = 0; i < a.length; i++) { - if (!argEquals(a[i], b[i])) { - return false; - } - } - return true; - } - } - function transformLiteralToPath(sexpr) { - if (!sexpr.path.parts) { - var literal = sexpr.path; - sexpr.path = { - type: "PathExpression", - data: false, - depth: 0, - parts: [literal.original + ""], - original: literal.original + "", - loc: literal.loc - }; - } - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/base64.js - var require_base64 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/base64.js"(exports) { - var intToCharMap = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""); - exports.encode = function(number) { - if (0 <= number && number < intToCharMap.length) { - return intToCharMap[number]; - } - throw new TypeError("Must be between 0 and 63: " + number); - }; - exports.decode = function(charCode) { - var bigA = 65; - var bigZ = 90; - var littleA = 97; - var littleZ = 122; - var zero = 48; - var nine = 57; - var plus = 43; - var slash = 47; - var littleOffset = 26; - var numberOffset = 52; - if (bigA <= charCode && charCode <= bigZ) { - return charCode - bigA; - } - if (littleA <= charCode && charCode <= littleZ) { - return charCode - littleA + littleOffset; - } - if (zero <= charCode && charCode <= nine) { - return charCode - zero + numberOffset; - } - if (charCode == plus) { - return 62; - } - if (charCode == slash) { - return 63; - } - return -1; - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/base64-vlq.js - var require_base64_vlq = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/base64-vlq.js"(exports) { - var base64 = require_base64(); - var VLQ_BASE_SHIFT = 5; - var VLQ_BASE = 1 << VLQ_BASE_SHIFT; - var VLQ_BASE_MASK = VLQ_BASE - 1; - var VLQ_CONTINUATION_BIT = VLQ_BASE; - function toVLQSigned(aValue) { - return aValue < 0 ? (-aValue << 1) + 1 : (aValue << 1) + 0; - } - function fromVLQSigned(aValue) { - var isNegative = (aValue & 1) === 1; - var shifted = aValue >> 1; - return isNegative ? -shifted : shifted; - } - exports.encode = function base64VLQ_encode(aValue) { - var encoded = ""; - var digit; - var vlq = toVLQSigned(aValue); - do { - digit = vlq & VLQ_BASE_MASK; - vlq >>>= VLQ_BASE_SHIFT; - if (vlq > 0) { - digit |= VLQ_CONTINUATION_BIT; - } - encoded += base64.encode(digit); - } while (vlq > 0); - return encoded; - }; - exports.decode = function base64VLQ_decode(aStr, aIndex, aOutParam) { - var strLen = aStr.length; - var result = 0; - var shift = 0; - var continuation, digit; - do { - if (aIndex >= strLen) { - throw new Error("Expected more digits in base 64 VLQ value."); - } - digit = base64.decode(aStr.charCodeAt(aIndex++)); - if (digit === -1) { - throw new Error("Invalid base64 digit: " + aStr.charAt(aIndex - 1)); - } - continuation = !!(digit & VLQ_CONTINUATION_BIT); - digit &= VLQ_BASE_MASK; - result = result + (digit << shift); - shift += VLQ_BASE_SHIFT; - } while (continuation); - aOutParam.value = fromVLQSigned(result); - aOutParam.rest = aIndex; - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/util.js - var require_util = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/util.js"(exports) { - function getArg(aArgs, aName, aDefaultValue) { - if (aName in aArgs) { - return aArgs[aName]; - } else if (arguments.length === 3) { - return aDefaultValue; - } else { - throw new Error('"' + aName + '" is a required argument.'); - } - } - exports.getArg = getArg; - var urlRegexp = /^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/; - var dataUrlRegexp = /^data:.+\,.+$/; - function urlParse(aUrl) { - var match = aUrl.match(urlRegexp); - if (!match) { - return null; - } - return { - scheme: match[1], - auth: match[2], - host: match[3], - port: match[4], - path: match[5] - }; - } - exports.urlParse = urlParse; - function urlGenerate(aParsedUrl) { - var url = ""; - if (aParsedUrl.scheme) { - url += aParsedUrl.scheme + ":"; - } - url += "//"; - if (aParsedUrl.auth) { - url += aParsedUrl.auth + "@"; - } - if (aParsedUrl.host) { - url += aParsedUrl.host; - } - if (aParsedUrl.port) { - url += ":" + aParsedUrl.port; - } - if (aParsedUrl.path) { - url += aParsedUrl.path; - } - return url; - } - exports.urlGenerate = urlGenerate; - function normalize(aPath) { - var path = aPath; - var url = urlParse(aPath); - if (url) { - if (!url.path) { - return aPath; - } - path = url.path; - } - var isAbsolute = exports.isAbsolute(path); - var parts = path.split(/\/+/); - for (var part, up = 0, i = parts.length - 1; i >= 0; i--) { - part = parts[i]; - if (part === ".") { - parts.splice(i, 1); - } else if (part === "..") { - up++; - } else if (up > 0) { - if (part === "") { - parts.splice(i + 1, up); - up = 0; - } else { - parts.splice(i, 2); - up--; - } - } - } - path = parts.join("/"); - if (path === "") { - path = isAbsolute ? "/" : "."; - } - if (url) { - url.path = path; - return urlGenerate(url); - } - return path; - } - exports.normalize = normalize; - function join(aRoot, aPath) { - if (aRoot === "") { - aRoot = "."; - } - if (aPath === "") { - aPath = "."; - } - var aPathUrl = urlParse(aPath); - var aRootUrl = urlParse(aRoot); - if (aRootUrl) { - aRoot = aRootUrl.path || "/"; - } - if (aPathUrl && !aPathUrl.scheme) { - if (aRootUrl) { - aPathUrl.scheme = aRootUrl.scheme; - } - return urlGenerate(aPathUrl); - } - if (aPathUrl || aPath.match(dataUrlRegexp)) { - return aPath; - } - if (aRootUrl && !aRootUrl.host && !aRootUrl.path) { - aRootUrl.host = aPath; - return urlGenerate(aRootUrl); - } - var joined = aPath.charAt(0) === "/" ? aPath : normalize(aRoot.replace(/\/+$/, "") + "/" + aPath); - if (aRootUrl) { - aRootUrl.path = joined; - return urlGenerate(aRootUrl); - } - return joined; - } - exports.join = join; - exports.isAbsolute = function(aPath) { - return aPath.charAt(0) === "/" || urlRegexp.test(aPath); - }; - function relative(aRoot, aPath) { - if (aRoot === "") { - aRoot = "."; - } - aRoot = aRoot.replace(/\/$/, ""); - var level = 0; - while (aPath.indexOf(aRoot + "/") !== 0) { - var index2 = aRoot.lastIndexOf("/"); - if (index2 < 0) { - return aPath; - } - aRoot = aRoot.slice(0, index2); - if (aRoot.match(/^([^\/]+:\/)?\/*$/)) { - return aPath; - } - ++level; - } - return Array(level + 1).join("../") + aPath.substr(aRoot.length + 1); - } - exports.relative = relative; - var supportsNullProto = function() { - var obj = Object.create(null); - return !("__proto__" in obj); - }(); - function identity(s) { - return s; - } - function toSetString(aStr) { - if (isProtoString(aStr)) { - return "$" + aStr; - } - return aStr; - } - exports.toSetString = supportsNullProto ? identity : toSetString; - function fromSetString(aStr) { - if (isProtoString(aStr)) { - return aStr.slice(1); - } - return aStr; - } - exports.fromSetString = supportsNullProto ? identity : fromSetString; - function isProtoString(s) { - if (!s) { - return false; - } - var length = s.length; - if (length < 9) { - return false; - } - if (s.charCodeAt(length - 1) !== 95 || s.charCodeAt(length - 2) !== 95 || s.charCodeAt(length - 3) !== 111 || s.charCodeAt(length - 4) !== 116 || s.charCodeAt(length - 5) !== 111 || s.charCodeAt(length - 6) !== 114 || s.charCodeAt(length - 7) !== 112 || s.charCodeAt(length - 8) !== 95 || s.charCodeAt(length - 9) !== 95) { - return false; - } - for (var i = length - 10; i >= 0; i--) { - if (s.charCodeAt(i) !== 36) { - return false; - } - } - return true; - } - function compareByOriginalPositions(mappingA, mappingB, onlyCompareOriginal) { - var cmp = strcmp(mappingA.source, mappingB.source); - if (cmp !== 0) { - return cmp; - } - cmp = mappingA.originalLine - mappingB.originalLine; - if (cmp !== 0) { - return cmp; - } - cmp = mappingA.originalColumn - mappingB.originalColumn; - if (cmp !== 0 || onlyCompareOriginal) { - return cmp; - } - cmp = mappingA.generatedColumn - mappingB.generatedColumn; - if (cmp !== 0) { - return cmp; - } - cmp = mappingA.generatedLine - mappingB.generatedLine; - if (cmp !== 0) { - return cmp; - } - return strcmp(mappingA.name, mappingB.name); - } - exports.compareByOriginalPositions = compareByOriginalPositions; - function compareByGeneratedPositionsDeflated(mappingA, mappingB, onlyCompareGenerated) { - var cmp = mappingA.generatedLine - mappingB.generatedLine; - if (cmp !== 0) { - return cmp; - } - cmp = mappingA.generatedColumn - mappingB.generatedColumn; - if (cmp !== 0 || onlyCompareGenerated) { - return cmp; - } - cmp = strcmp(mappingA.source, mappingB.source); - if (cmp !== 0) { - return cmp; - } - cmp = mappingA.originalLine - mappingB.originalLine; - if (cmp !== 0) { - return cmp; - } - cmp = mappingA.originalColumn - mappingB.originalColumn; - if (cmp !== 0) { - return cmp; - } - return strcmp(mappingA.name, mappingB.name); - } - exports.compareByGeneratedPositionsDeflated = compareByGeneratedPositionsDeflated; - function strcmp(aStr1, aStr2) { - if (aStr1 === aStr2) { - return 0; - } - if (aStr1 === null) { - return 1; - } - if (aStr2 === null) { - return -1; - } - if (aStr1 > aStr2) { - return 1; - } - return -1; - } - function compareByGeneratedPositionsInflated(mappingA, mappingB) { - var cmp = mappingA.generatedLine - mappingB.generatedLine; - if (cmp !== 0) { - return cmp; - } - cmp = mappingA.generatedColumn - mappingB.generatedColumn; - if (cmp !== 0) { - return cmp; - } - cmp = strcmp(mappingA.source, mappingB.source); - if (cmp !== 0) { - return cmp; - } - cmp = mappingA.originalLine - mappingB.originalLine; - if (cmp !== 0) { - return cmp; - } - cmp = mappingA.originalColumn - mappingB.originalColumn; - if (cmp !== 0) { - return cmp; - } - return strcmp(mappingA.name, mappingB.name); - } - exports.compareByGeneratedPositionsInflated = compareByGeneratedPositionsInflated; - function parseSourceMapInput(str) { - return JSON.parse(str.replace(/^\)]}'[^\n]*\n/, "")); - } - exports.parseSourceMapInput = parseSourceMapInput; - function computeSourceURL(sourceRoot, sourceURL, sourceMapURL) { - sourceURL = sourceURL || ""; - if (sourceRoot) { - if (sourceRoot[sourceRoot.length - 1] !== "/" && sourceURL[0] !== "/") { - sourceRoot += "/"; - } - sourceURL = sourceRoot + sourceURL; - } - if (sourceMapURL) { - var parsed = urlParse(sourceMapURL); - if (!parsed) { - throw new Error("sourceMapURL could not be parsed"); - } - if (parsed.path) { - var index2 = parsed.path.lastIndexOf("/"); - if (index2 >= 0) { - parsed.path = parsed.path.substring(0, index2 + 1); - } - } - sourceURL = join(urlGenerate(parsed), sourceURL); - } - return normalize(sourceURL); - } - exports.computeSourceURL = computeSourceURL; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/array-set.js - var require_array_set = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/array-set.js"(exports) { - var util = require_util(); - var has = Object.prototype.hasOwnProperty; - var hasNativeMap = typeof Map !== "undefined"; - function ArraySet() { - this._array = []; - this._set = hasNativeMap ? new Map() : Object.create(null); - } - ArraySet.fromArray = function ArraySet_fromArray(aArray, aAllowDuplicates) { - var set = new ArraySet(); - for (var i = 0, len = aArray.length; i < len; i++) { - set.add(aArray[i], aAllowDuplicates); - } - return set; - }; - ArraySet.prototype.size = function ArraySet_size() { - return hasNativeMap ? this._set.size : Object.getOwnPropertyNames(this._set).length; - }; - ArraySet.prototype.add = function ArraySet_add(aStr, aAllowDuplicates) { - var sStr = hasNativeMap ? aStr : util.toSetString(aStr); - var isDuplicate = hasNativeMap ? this.has(aStr) : has.call(this._set, sStr); - var idx = this._array.length; - if (!isDuplicate || aAllowDuplicates) { - this._array.push(aStr); - } - if (!isDuplicate) { - if (hasNativeMap) { - this._set.set(aStr, idx); - } else { - this._set[sStr] = idx; - } - } - }; - ArraySet.prototype.has = function ArraySet_has(aStr) { - if (hasNativeMap) { - return this._set.has(aStr); - } else { - var sStr = util.toSetString(aStr); - return has.call(this._set, sStr); - } - }; - ArraySet.prototype.indexOf = function ArraySet_indexOf(aStr) { - if (hasNativeMap) { - var idx = this._set.get(aStr); - if (idx >= 0) { - return idx; - } - } else { - var sStr = util.toSetString(aStr); - if (has.call(this._set, sStr)) { - return this._set[sStr]; - } - } - throw new Error('"' + aStr + '" is not in the set.'); - }; - ArraySet.prototype.at = function ArraySet_at(aIdx) { - if (aIdx >= 0 && aIdx < this._array.length) { - return this._array[aIdx]; - } - throw new Error("No element indexed by " + aIdx); - }; - ArraySet.prototype.toArray = function ArraySet_toArray() { - return this._array.slice(); - }; - exports.ArraySet = ArraySet; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/mapping-list.js - var require_mapping_list = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/mapping-list.js"(exports) { - var util = require_util(); - function generatedPositionAfter(mappingA, mappingB) { - var lineA = mappingA.generatedLine; - var lineB = mappingB.generatedLine; - var columnA = mappingA.generatedColumn; - var columnB = mappingB.generatedColumn; - return lineB > lineA || lineB == lineA && columnB >= columnA || util.compareByGeneratedPositionsInflated(mappingA, mappingB) <= 0; - } - function MappingList() { - this._array = []; - this._sorted = true; - this._last = {generatedLine: -1, generatedColumn: 0}; - } - MappingList.prototype.unsortedForEach = function MappingList_forEach(aCallback, aThisArg) { - this._array.forEach(aCallback, aThisArg); - }; - MappingList.prototype.add = function MappingList_add(aMapping) { - if (generatedPositionAfter(this._last, aMapping)) { - this._last = aMapping; - this._array.push(aMapping); - } else { - this._sorted = false; - this._array.push(aMapping); - } - }; - MappingList.prototype.toArray = function MappingList_toArray() { - if (!this._sorted) { - this._array.sort(util.compareByGeneratedPositionsInflated); - this._sorted = true; - } - return this._array; - }; - exports.MappingList = MappingList; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/source-map-generator.js - var require_source_map_generator = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/source-map-generator.js"(exports) { - var base64VLQ = require_base64_vlq(); - var util = require_util(); - var ArraySet = require_array_set().ArraySet; - var MappingList = require_mapping_list().MappingList; - function SourceMapGenerator(aArgs) { - if (!aArgs) { - aArgs = {}; - } - this._file = util.getArg(aArgs, "file", null); - this._sourceRoot = util.getArg(aArgs, "sourceRoot", null); - this._skipValidation = util.getArg(aArgs, "skipValidation", false); - this._sources = new ArraySet(); - this._names = new ArraySet(); - this._mappings = new MappingList(); - this._sourcesContents = null; - } - SourceMapGenerator.prototype._version = 3; - SourceMapGenerator.fromSourceMap = function SourceMapGenerator_fromSourceMap(aSourceMapConsumer) { - var sourceRoot = aSourceMapConsumer.sourceRoot; - var generator = new SourceMapGenerator({ - file: aSourceMapConsumer.file, - sourceRoot - }); - aSourceMapConsumer.eachMapping(function(mapping) { - var newMapping = { - generated: { - line: mapping.generatedLine, - column: mapping.generatedColumn - } - }; - if (mapping.source != null) { - newMapping.source = mapping.source; - if (sourceRoot != null) { - newMapping.source = util.relative(sourceRoot, newMapping.source); - } - newMapping.original = { - line: mapping.originalLine, - column: mapping.originalColumn - }; - if (mapping.name != null) { - newMapping.name = mapping.name; - } - } - generator.addMapping(newMapping); - }); - aSourceMapConsumer.sources.forEach(function(sourceFile) { - var sourceRelative = sourceFile; - if (sourceRoot !== null) { - sourceRelative = util.relative(sourceRoot, sourceFile); - } - if (!generator._sources.has(sourceRelative)) { - generator._sources.add(sourceRelative); - } - var content = aSourceMapConsumer.sourceContentFor(sourceFile); - if (content != null) { - generator.setSourceContent(sourceFile, content); - } - }); - return generator; - }; - SourceMapGenerator.prototype.addMapping = function SourceMapGenerator_addMapping(aArgs) { - var generated = util.getArg(aArgs, "generated"); - var original = util.getArg(aArgs, "original", null); - var source = util.getArg(aArgs, "source", null); - var name = util.getArg(aArgs, "name", null); - if (!this._skipValidation) { - this._validateMapping(generated, original, source, name); - } - if (source != null) { - source = String(source); - if (!this._sources.has(source)) { - this._sources.add(source); - } - } - if (name != null) { - name = String(name); - if (!this._names.has(name)) { - this._names.add(name); - } - } - this._mappings.add({ - generatedLine: generated.line, - generatedColumn: generated.column, - originalLine: original != null && original.line, - originalColumn: original != null && original.column, - source, - name - }); - }; - SourceMapGenerator.prototype.setSourceContent = function SourceMapGenerator_setSourceContent(aSourceFile, aSourceContent) { - var source = aSourceFile; - if (this._sourceRoot != null) { - source = util.relative(this._sourceRoot, source); - } - if (aSourceContent != null) { - if (!this._sourcesContents) { - this._sourcesContents = Object.create(null); - } - this._sourcesContents[util.toSetString(source)] = aSourceContent; - } else if (this._sourcesContents) { - delete this._sourcesContents[util.toSetString(source)]; - if (Object.keys(this._sourcesContents).length === 0) { - this._sourcesContents = null; - } - } - }; - SourceMapGenerator.prototype.applySourceMap = function SourceMapGenerator_applySourceMap(aSourceMapConsumer, aSourceFile, aSourceMapPath) { - var sourceFile = aSourceFile; - if (aSourceFile == null) { - if (aSourceMapConsumer.file == null) { - throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`); - } - sourceFile = aSourceMapConsumer.file; - } - var sourceRoot = this._sourceRoot; - if (sourceRoot != null) { - sourceFile = util.relative(sourceRoot, sourceFile); - } - var newSources = new ArraySet(); - var newNames = new ArraySet(); - this._mappings.unsortedForEach(function(mapping) { - if (mapping.source === sourceFile && mapping.originalLine != null) { - var original = aSourceMapConsumer.originalPositionFor({ - line: mapping.originalLine, - column: mapping.originalColumn - }); - if (original.source != null) { - mapping.source = original.source; - if (aSourceMapPath != null) { - mapping.source = util.join(aSourceMapPath, mapping.source); - } - if (sourceRoot != null) { - mapping.source = util.relative(sourceRoot, mapping.source); - } - mapping.originalLine = original.line; - mapping.originalColumn = original.column; - if (original.name != null) { - mapping.name = original.name; - } - } - } - var source = mapping.source; - if (source != null && !newSources.has(source)) { - newSources.add(source); - } - var name = mapping.name; - if (name != null && !newNames.has(name)) { - newNames.add(name); - } - }, this); - this._sources = newSources; - this._names = newNames; - aSourceMapConsumer.sources.forEach(function(sourceFile2) { - var content = aSourceMapConsumer.sourceContentFor(sourceFile2); - if (content != null) { - if (aSourceMapPath != null) { - sourceFile2 = util.join(aSourceMapPath, sourceFile2); - } - if (sourceRoot != null) { - sourceFile2 = util.relative(sourceRoot, sourceFile2); - } - this.setSourceContent(sourceFile2, content); - } - }, this); - }; - SourceMapGenerator.prototype._validateMapping = function SourceMapGenerator_validateMapping(aGenerated, aOriginal, aSource, aName) { - if (aOriginal && typeof aOriginal.line !== "number" && typeof aOriginal.column !== "number") { - throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values."); - } - if (aGenerated && "line" in aGenerated && "column" in aGenerated && aGenerated.line > 0 && aGenerated.column >= 0 && !aOriginal && !aSource && !aName) { - return; - } else if (aGenerated && "line" in aGenerated && "column" in aGenerated && aOriginal && "line" in aOriginal && "column" in aOriginal && aGenerated.line > 0 && aGenerated.column >= 0 && aOriginal.line > 0 && aOriginal.column >= 0 && aSource) { - return; - } else { - throw new Error("Invalid mapping: " + JSON.stringify({ - generated: aGenerated, - source: aSource, - original: aOriginal, - name: aName - })); - } - }; - SourceMapGenerator.prototype._serializeMappings = function SourceMapGenerator_serializeMappings() { - var previousGeneratedColumn = 0; - var previousGeneratedLine = 1; - var previousOriginalColumn = 0; - var previousOriginalLine = 0; - var previousName = 0; - var previousSource = 0; - var result = ""; - var next; - var mapping; - var nameIdx; - var sourceIdx; - var mappings = this._mappings.toArray(); - for (var i = 0, len = mappings.length; i < len; i++) { - mapping = mappings[i]; - next = ""; - if (mapping.generatedLine !== previousGeneratedLine) { - previousGeneratedColumn = 0; - while (mapping.generatedLine !== previousGeneratedLine) { - next += ";"; - previousGeneratedLine++; - } - } else { - if (i > 0) { - if (!util.compareByGeneratedPositionsInflated(mapping, mappings[i - 1])) { - continue; - } - next += ","; - } - } - next += base64VLQ.encode(mapping.generatedColumn - previousGeneratedColumn); - previousGeneratedColumn = mapping.generatedColumn; - if (mapping.source != null) { - sourceIdx = this._sources.indexOf(mapping.source); - next += base64VLQ.encode(sourceIdx - previousSource); - previousSource = sourceIdx; - next += base64VLQ.encode(mapping.originalLine - 1 - previousOriginalLine); - previousOriginalLine = mapping.originalLine - 1; - next += base64VLQ.encode(mapping.originalColumn - previousOriginalColumn); - previousOriginalColumn = mapping.originalColumn; - if (mapping.name != null) { - nameIdx = this._names.indexOf(mapping.name); - next += base64VLQ.encode(nameIdx - previousName); - previousName = nameIdx; - } - } - result += next; - } - return result; - }; - SourceMapGenerator.prototype._generateSourcesContent = function SourceMapGenerator_generateSourcesContent(aSources, aSourceRoot) { - return aSources.map(function(source) { - if (!this._sourcesContents) { - return null; - } - if (aSourceRoot != null) { - source = util.relative(aSourceRoot, source); - } - var key = util.toSetString(source); - return Object.prototype.hasOwnProperty.call(this._sourcesContents, key) ? this._sourcesContents[key] : null; - }, this); - }; - SourceMapGenerator.prototype.toJSON = function SourceMapGenerator_toJSON() { - var map = { - version: this._version, - sources: this._sources.toArray(), - names: this._names.toArray(), - mappings: this._serializeMappings() - }; - if (this._file != null) { - map.file = this._file; - } - if (this._sourceRoot != null) { - map.sourceRoot = this._sourceRoot; - } - if (this._sourcesContents) { - map.sourcesContent = this._generateSourcesContent(map.sources, map.sourceRoot); - } - return map; - }; - SourceMapGenerator.prototype.toString = function SourceMapGenerator_toString() { - return JSON.stringify(this.toJSON()); - }; - exports.SourceMapGenerator = SourceMapGenerator; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/binary-search.js - var require_binary_search = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/binary-search.js"(exports) { - exports.GREATEST_LOWER_BOUND = 1; - exports.LEAST_UPPER_BOUND = 2; - function recursiveSearch(aLow, aHigh, aNeedle, aHaystack, aCompare, aBias) { - var mid = Math.floor((aHigh - aLow) / 2) + aLow; - var cmp = aCompare(aNeedle, aHaystack[mid], true); - if (cmp === 0) { - return mid; - } else if (cmp > 0) { - if (aHigh - mid > 1) { - return recursiveSearch(mid, aHigh, aNeedle, aHaystack, aCompare, aBias); - } - if (aBias == exports.LEAST_UPPER_BOUND) { - return aHigh < aHaystack.length ? aHigh : -1; - } else { - return mid; - } - } else { - if (mid - aLow > 1) { - return recursiveSearch(aLow, mid, aNeedle, aHaystack, aCompare, aBias); - } - if (aBias == exports.LEAST_UPPER_BOUND) { - return mid; - } else { - return aLow < 0 ? -1 : aLow; - } - } - } - exports.search = function search(aNeedle, aHaystack, aCompare, aBias) { - if (aHaystack.length === 0) { - return -1; - } - var index2 = recursiveSearch(-1, aHaystack.length, aNeedle, aHaystack, aCompare, aBias || exports.GREATEST_LOWER_BOUND); - if (index2 < 0) { - return -1; - } - while (index2 - 1 >= 0) { - if (aCompare(aHaystack[index2], aHaystack[index2 - 1], true) !== 0) { - break; - } - --index2; - } - return index2; - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/quick-sort.js - var require_quick_sort = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/quick-sort.js"(exports) { - function swap(ary, x, y) { - var temp = ary[x]; - ary[x] = ary[y]; - ary[y] = temp; - } - function randomIntInRange(low, high) { - return Math.round(low + Math.random() * (high - low)); - } - function doQuickSort(ary, comparator, p, r) { - if (p < r) { - var pivotIndex = randomIntInRange(p, r); - var i = p - 1; - swap(ary, pivotIndex, r); - var pivot = ary[r]; - for (var j = p; j < r; j++) { - if (comparator(ary[j], pivot) <= 0) { - i += 1; - swap(ary, i, j); - } - } - swap(ary, i + 1, j); - var q = i + 1; - doQuickSort(ary, comparator, p, q - 1); - doQuickSort(ary, comparator, q + 1, r); - } - } - exports.quickSort = function(ary, comparator) { - doQuickSort(ary, comparator, 0, ary.length - 1); - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/source-map-consumer.js - var require_source_map_consumer = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/source-map-consumer.js"(exports) { - var util = require_util(); - var binarySearch = require_binary_search(); - var ArraySet = require_array_set().ArraySet; - var base64VLQ = require_base64_vlq(); - var quickSort = require_quick_sort().quickSort; - function SourceMapConsumer(aSourceMap, aSourceMapURL) { - var sourceMap = aSourceMap; - if (typeof aSourceMap === "string") { - sourceMap = util.parseSourceMapInput(aSourceMap); - } - return sourceMap.sections != null ? new IndexedSourceMapConsumer(sourceMap, aSourceMapURL) : new BasicSourceMapConsumer(sourceMap, aSourceMapURL); - } - SourceMapConsumer.fromSourceMap = function(aSourceMap, aSourceMapURL) { - return BasicSourceMapConsumer.fromSourceMap(aSourceMap, aSourceMapURL); - }; - SourceMapConsumer.prototype._version = 3; - SourceMapConsumer.prototype.__generatedMappings = null; - Object.defineProperty(SourceMapConsumer.prototype, "_generatedMappings", { - configurable: true, - enumerable: true, - get: function() { - if (!this.__generatedMappings) { - this._parseMappings(this._mappings, this.sourceRoot); - } - return this.__generatedMappings; - } - }); - SourceMapConsumer.prototype.__originalMappings = null; - Object.defineProperty(SourceMapConsumer.prototype, "_originalMappings", { - configurable: true, - enumerable: true, - get: function() { - if (!this.__originalMappings) { - this._parseMappings(this._mappings, this.sourceRoot); - } - return this.__originalMappings; - } - }); - SourceMapConsumer.prototype._charIsMappingSeparator = function SourceMapConsumer_charIsMappingSeparator(aStr, index2) { - var c = aStr.charAt(index2); - return c === ";" || c === ","; - }; - SourceMapConsumer.prototype._parseMappings = function SourceMapConsumer_parseMappings(aStr, aSourceRoot) { - throw new Error("Subclasses must implement _parseMappings"); - }; - SourceMapConsumer.GENERATED_ORDER = 1; - SourceMapConsumer.ORIGINAL_ORDER = 2; - SourceMapConsumer.GREATEST_LOWER_BOUND = 1; - SourceMapConsumer.LEAST_UPPER_BOUND = 2; - SourceMapConsumer.prototype.eachMapping = function SourceMapConsumer_eachMapping(aCallback, aContext, aOrder) { - var context = aContext || null; - var order = aOrder || SourceMapConsumer.GENERATED_ORDER; - var mappings; - switch (order) { - case SourceMapConsumer.GENERATED_ORDER: - mappings = this._generatedMappings; - break; - case SourceMapConsumer.ORIGINAL_ORDER: - mappings = this._originalMappings; - break; - default: - throw new Error("Unknown order of iteration."); - } - var sourceRoot = this.sourceRoot; - mappings.map(function(mapping) { - var source = mapping.source === null ? null : this._sources.at(mapping.source); - source = util.computeSourceURL(sourceRoot, source, this._sourceMapURL); - return { - source, - generatedLine: mapping.generatedLine, - generatedColumn: mapping.generatedColumn, - originalLine: mapping.originalLine, - originalColumn: mapping.originalColumn, - name: mapping.name === null ? null : this._names.at(mapping.name) - }; - }, this).forEach(aCallback, context); - }; - SourceMapConsumer.prototype.allGeneratedPositionsFor = function SourceMapConsumer_allGeneratedPositionsFor(aArgs) { - var line = util.getArg(aArgs, "line"); - var needle = { - source: util.getArg(aArgs, "source"), - originalLine: line, - originalColumn: util.getArg(aArgs, "column", 0) - }; - needle.source = this._findSourceIndex(needle.source); - if (needle.source < 0) { - return []; - } - var mappings = []; - var index2 = this._findMapping(needle, this._originalMappings, "originalLine", "originalColumn", util.compareByOriginalPositions, binarySearch.LEAST_UPPER_BOUND); - if (index2 >= 0) { - var mapping = this._originalMappings[index2]; - if (aArgs.column === void 0) { - var originalLine = mapping.originalLine; - while (mapping && mapping.originalLine === originalLine) { - mappings.push({ - line: util.getArg(mapping, "generatedLine", null), - column: util.getArg(mapping, "generatedColumn", null), - lastColumn: util.getArg(mapping, "lastGeneratedColumn", null) - }); - mapping = this._originalMappings[++index2]; - } - } else { - var originalColumn = mapping.originalColumn; - while (mapping && mapping.originalLine === line && mapping.originalColumn == originalColumn) { - mappings.push({ - line: util.getArg(mapping, "generatedLine", null), - column: util.getArg(mapping, "generatedColumn", null), - lastColumn: util.getArg(mapping, "lastGeneratedColumn", null) - }); - mapping = this._originalMappings[++index2]; - } - } - } - return mappings; - }; - exports.SourceMapConsumer = SourceMapConsumer; - function BasicSourceMapConsumer(aSourceMap, aSourceMapURL) { - var sourceMap = aSourceMap; - if (typeof aSourceMap === "string") { - sourceMap = util.parseSourceMapInput(aSourceMap); - } - var version = util.getArg(sourceMap, "version"); - var sources = util.getArg(sourceMap, "sources"); - var names = util.getArg(sourceMap, "names", []); - var sourceRoot = util.getArg(sourceMap, "sourceRoot", null); - var sourcesContent = util.getArg(sourceMap, "sourcesContent", null); - var mappings = util.getArg(sourceMap, "mappings"); - var file = util.getArg(sourceMap, "file", null); - if (version != this._version) { - throw new Error("Unsupported version: " + version); - } - if (sourceRoot) { - sourceRoot = util.normalize(sourceRoot); - } - sources = sources.map(String).map(util.normalize).map(function(source) { - return sourceRoot && util.isAbsolute(sourceRoot) && util.isAbsolute(source) ? util.relative(sourceRoot, source) : source; - }); - this._names = ArraySet.fromArray(names.map(String), true); - this._sources = ArraySet.fromArray(sources, true); - this._absoluteSources = this._sources.toArray().map(function(s) { - return util.computeSourceURL(sourceRoot, s, aSourceMapURL); - }); - this.sourceRoot = sourceRoot; - this.sourcesContent = sourcesContent; - this._mappings = mappings; - this._sourceMapURL = aSourceMapURL; - this.file = file; - } - BasicSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype); - BasicSourceMapConsumer.prototype.consumer = SourceMapConsumer; - BasicSourceMapConsumer.prototype._findSourceIndex = function(aSource) { - var relativeSource = aSource; - if (this.sourceRoot != null) { - relativeSource = util.relative(this.sourceRoot, relativeSource); - } - if (this._sources.has(relativeSource)) { - return this._sources.indexOf(relativeSource); - } - var i; - for (i = 0; i < this._absoluteSources.length; ++i) { - if (this._absoluteSources[i] == aSource) { - return i; - } - } - return -1; - }; - BasicSourceMapConsumer.fromSourceMap = function SourceMapConsumer_fromSourceMap(aSourceMap, aSourceMapURL) { - var smc = Object.create(BasicSourceMapConsumer.prototype); - var names = smc._names = ArraySet.fromArray(aSourceMap._names.toArray(), true); - var sources = smc._sources = ArraySet.fromArray(aSourceMap._sources.toArray(), true); - smc.sourceRoot = aSourceMap._sourceRoot; - smc.sourcesContent = aSourceMap._generateSourcesContent(smc._sources.toArray(), smc.sourceRoot); - smc.file = aSourceMap._file; - smc._sourceMapURL = aSourceMapURL; - smc._absoluteSources = smc._sources.toArray().map(function(s) { - return util.computeSourceURL(smc.sourceRoot, s, aSourceMapURL); - }); - var generatedMappings = aSourceMap._mappings.toArray().slice(); - var destGeneratedMappings = smc.__generatedMappings = []; - var destOriginalMappings = smc.__originalMappings = []; - for (var i = 0, length = generatedMappings.length; i < length; i++) { - var srcMapping = generatedMappings[i]; - var destMapping = new Mapping(); - destMapping.generatedLine = srcMapping.generatedLine; - destMapping.generatedColumn = srcMapping.generatedColumn; - if (srcMapping.source) { - destMapping.source = sources.indexOf(srcMapping.source); - destMapping.originalLine = srcMapping.originalLine; - destMapping.originalColumn = srcMapping.originalColumn; - if (srcMapping.name) { - destMapping.name = names.indexOf(srcMapping.name); - } - destOriginalMappings.push(destMapping); - } - destGeneratedMappings.push(destMapping); - } - quickSort(smc.__originalMappings, util.compareByOriginalPositions); - return smc; - }; - BasicSourceMapConsumer.prototype._version = 3; - Object.defineProperty(BasicSourceMapConsumer.prototype, "sources", { - get: function() { - return this._absoluteSources.slice(); - } - }); - function Mapping() { - this.generatedLine = 0; - this.generatedColumn = 0; - this.source = null; - this.originalLine = null; - this.originalColumn = null; - this.name = null; - } - BasicSourceMapConsumer.prototype._parseMappings = function SourceMapConsumer_parseMappings(aStr, aSourceRoot) { - var generatedLine = 1; - var previousGeneratedColumn = 0; - var previousOriginalLine = 0; - var previousOriginalColumn = 0; - var previousSource = 0; - var previousName = 0; - var length = aStr.length; - var index2 = 0; - var cachedSegments = {}; - var temp = {}; - var originalMappings = []; - var generatedMappings = []; - var mapping, str, segment, end, value; - while (index2 < length) { - if (aStr.charAt(index2) === ";") { - generatedLine++; - index2++; - previousGeneratedColumn = 0; - } else if (aStr.charAt(index2) === ",") { - index2++; - } else { - mapping = new Mapping(); - mapping.generatedLine = generatedLine; - for (end = index2; end < length; end++) { - if (this._charIsMappingSeparator(aStr, end)) { - break; - } - } - str = aStr.slice(index2, end); - segment = cachedSegments[str]; - if (segment) { - index2 += str.length; - } else { - segment = []; - while (index2 < end) { - base64VLQ.decode(aStr, index2, temp); - value = temp.value; - index2 = temp.rest; - segment.push(value); - } - if (segment.length === 2) { - throw new Error("Found a source, but no line and column"); - } - if (segment.length === 3) { - throw new Error("Found a source and line, but no column"); - } - cachedSegments[str] = segment; - } - mapping.generatedColumn = previousGeneratedColumn + segment[0]; - previousGeneratedColumn = mapping.generatedColumn; - if (segment.length > 1) { - mapping.source = previousSource + segment[1]; - previousSource += segment[1]; - mapping.originalLine = previousOriginalLine + segment[2]; - previousOriginalLine = mapping.originalLine; - mapping.originalLine += 1; - mapping.originalColumn = previousOriginalColumn + segment[3]; - previousOriginalColumn = mapping.originalColumn; - if (segment.length > 4) { - mapping.name = previousName + segment[4]; - previousName += segment[4]; - } - } - generatedMappings.push(mapping); - if (typeof mapping.originalLine === "number") { - originalMappings.push(mapping); - } - } - } - quickSort(generatedMappings, util.compareByGeneratedPositionsDeflated); - this.__generatedMappings = generatedMappings; - quickSort(originalMappings, util.compareByOriginalPositions); - this.__originalMappings = originalMappings; - }; - BasicSourceMapConsumer.prototype._findMapping = function SourceMapConsumer_findMapping(aNeedle, aMappings, aLineName, aColumnName, aComparator, aBias) { - if (aNeedle[aLineName] <= 0) { - throw new TypeError("Line must be greater than or equal to 1, got " + aNeedle[aLineName]); - } - if (aNeedle[aColumnName] < 0) { - throw new TypeError("Column must be greater than or equal to 0, got " + aNeedle[aColumnName]); - } - return binarySearch.search(aNeedle, aMappings, aComparator, aBias); - }; - BasicSourceMapConsumer.prototype.computeColumnSpans = function SourceMapConsumer_computeColumnSpans() { - for (var index2 = 0; index2 < this._generatedMappings.length; ++index2) { - var mapping = this._generatedMappings[index2]; - if (index2 + 1 < this._generatedMappings.length) { - var nextMapping = this._generatedMappings[index2 + 1]; - if (mapping.generatedLine === nextMapping.generatedLine) { - mapping.lastGeneratedColumn = nextMapping.generatedColumn - 1; - continue; - } - } - mapping.lastGeneratedColumn = Infinity; - } - }; - BasicSourceMapConsumer.prototype.originalPositionFor = function SourceMapConsumer_originalPositionFor(aArgs) { - var needle = { - generatedLine: util.getArg(aArgs, "line"), - generatedColumn: util.getArg(aArgs, "column") - }; - var index2 = this._findMapping(needle, this._generatedMappings, "generatedLine", "generatedColumn", util.compareByGeneratedPositionsDeflated, util.getArg(aArgs, "bias", SourceMapConsumer.GREATEST_LOWER_BOUND)); - if (index2 >= 0) { - var mapping = this._generatedMappings[index2]; - if (mapping.generatedLine === needle.generatedLine) { - var source = util.getArg(mapping, "source", null); - if (source !== null) { - source = this._sources.at(source); - source = util.computeSourceURL(this.sourceRoot, source, this._sourceMapURL); - } - var name = util.getArg(mapping, "name", null); - if (name !== null) { - name = this._names.at(name); - } - return { - source, - line: util.getArg(mapping, "originalLine", null), - column: util.getArg(mapping, "originalColumn", null), - name - }; - } - } - return { - source: null, - line: null, - column: null, - name: null - }; - }; - BasicSourceMapConsumer.prototype.hasContentsOfAllSources = function BasicSourceMapConsumer_hasContentsOfAllSources() { - if (!this.sourcesContent) { - return false; - } - return this.sourcesContent.length >= this._sources.size() && !this.sourcesContent.some(function(sc) { - return sc == null; - }); - }; - BasicSourceMapConsumer.prototype.sourceContentFor = function SourceMapConsumer_sourceContentFor(aSource, nullOnMissing) { - if (!this.sourcesContent) { - return null; - } - var index2 = this._findSourceIndex(aSource); - if (index2 >= 0) { - return this.sourcesContent[index2]; - } - var relativeSource = aSource; - if (this.sourceRoot != null) { - relativeSource = util.relative(this.sourceRoot, relativeSource); - } - var url; - if (this.sourceRoot != null && (url = util.urlParse(this.sourceRoot))) { - var fileUriAbsPath = relativeSource.replace(/^file:\/\//, ""); - if (url.scheme == "file" && this._sources.has(fileUriAbsPath)) { - return this.sourcesContent[this._sources.indexOf(fileUriAbsPath)]; - } - if ((!url.path || url.path == "/") && this._sources.has("/" + relativeSource)) { - return this.sourcesContent[this._sources.indexOf("/" + relativeSource)]; - } - } - if (nullOnMissing) { - return null; - } else { - throw new Error('"' + relativeSource + '" is not in the SourceMap.'); - } - }; - BasicSourceMapConsumer.prototype.generatedPositionFor = function SourceMapConsumer_generatedPositionFor(aArgs) { - var source = util.getArg(aArgs, "source"); - source = this._findSourceIndex(source); - if (source < 0) { - return { - line: null, - column: null, - lastColumn: null - }; - } - var needle = { - source, - originalLine: util.getArg(aArgs, "line"), - originalColumn: util.getArg(aArgs, "column") - }; - var index2 = this._findMapping(needle, this._originalMappings, "originalLine", "originalColumn", util.compareByOriginalPositions, util.getArg(aArgs, "bias", SourceMapConsumer.GREATEST_LOWER_BOUND)); - if (index2 >= 0) { - var mapping = this._originalMappings[index2]; - if (mapping.source === needle.source) { - return { - line: util.getArg(mapping, "generatedLine", null), - column: util.getArg(mapping, "generatedColumn", null), - lastColumn: util.getArg(mapping, "lastGeneratedColumn", null) - }; - } - } - return { - line: null, - column: null, - lastColumn: null - }; - }; - exports.BasicSourceMapConsumer = BasicSourceMapConsumer; - function IndexedSourceMapConsumer(aSourceMap, aSourceMapURL) { - var sourceMap = aSourceMap; - if (typeof aSourceMap === "string") { - sourceMap = util.parseSourceMapInput(aSourceMap); - } - var version = util.getArg(sourceMap, "version"); - var sections = util.getArg(sourceMap, "sections"); - if (version != this._version) { - throw new Error("Unsupported version: " + version); - } - this._sources = new ArraySet(); - this._names = new ArraySet(); - var lastOffset = { - line: -1, - column: 0 - }; - this._sections = sections.map(function(s) { - if (s.url) { - throw new Error("Support for url field in sections not implemented."); - } - var offset = util.getArg(s, "offset"); - var offsetLine = util.getArg(offset, "line"); - var offsetColumn = util.getArg(offset, "column"); - if (offsetLine < lastOffset.line || offsetLine === lastOffset.line && offsetColumn < lastOffset.column) { - throw new Error("Section offsets must be ordered and non-overlapping."); - } - lastOffset = offset; - return { - generatedOffset: { - generatedLine: offsetLine + 1, - generatedColumn: offsetColumn + 1 - }, - consumer: new SourceMapConsumer(util.getArg(s, "map"), aSourceMapURL) - }; - }); - } - IndexedSourceMapConsumer.prototype = Object.create(SourceMapConsumer.prototype); - IndexedSourceMapConsumer.prototype.constructor = SourceMapConsumer; - IndexedSourceMapConsumer.prototype._version = 3; - Object.defineProperty(IndexedSourceMapConsumer.prototype, "sources", { - get: function() { - var sources = []; - for (var i = 0; i < this._sections.length; i++) { - for (var j = 0; j < this._sections[i].consumer.sources.length; j++) { - sources.push(this._sections[i].consumer.sources[j]); - } - } - return sources; - } - }); - IndexedSourceMapConsumer.prototype.originalPositionFor = function IndexedSourceMapConsumer_originalPositionFor(aArgs) { - var needle = { - generatedLine: util.getArg(aArgs, "line"), - generatedColumn: util.getArg(aArgs, "column") - }; - var sectionIndex = binarySearch.search(needle, this._sections, function(needle2, section2) { - var cmp = needle2.generatedLine - section2.generatedOffset.generatedLine; - if (cmp) { - return cmp; - } - return needle2.generatedColumn - section2.generatedOffset.generatedColumn; - }); - var section = this._sections[sectionIndex]; - if (!section) { - return { - source: null, - line: null, - column: null, - name: null - }; - } - return section.consumer.originalPositionFor({ - line: needle.generatedLine - (section.generatedOffset.generatedLine - 1), - column: needle.generatedColumn - (section.generatedOffset.generatedLine === needle.generatedLine ? section.generatedOffset.generatedColumn - 1 : 0), - bias: aArgs.bias - }); - }; - IndexedSourceMapConsumer.prototype.hasContentsOfAllSources = function IndexedSourceMapConsumer_hasContentsOfAllSources() { - return this._sections.every(function(s) { - return s.consumer.hasContentsOfAllSources(); - }); - }; - IndexedSourceMapConsumer.prototype.sourceContentFor = function IndexedSourceMapConsumer_sourceContentFor(aSource, nullOnMissing) { - for (var i = 0; i < this._sections.length; i++) { - var section = this._sections[i]; - var content = section.consumer.sourceContentFor(aSource, true); - if (content) { - return content; - } - } - if (nullOnMissing) { - return null; - } else { - throw new Error('"' + aSource + '" is not in the SourceMap.'); - } - }; - IndexedSourceMapConsumer.prototype.generatedPositionFor = function IndexedSourceMapConsumer_generatedPositionFor(aArgs) { - for (var i = 0; i < this._sections.length; i++) { - var section = this._sections[i]; - if (section.consumer._findSourceIndex(util.getArg(aArgs, "source")) === -1) { - continue; - } - var generatedPosition = section.consumer.generatedPositionFor(aArgs); - if (generatedPosition) { - var ret = { - line: generatedPosition.line + (section.generatedOffset.generatedLine - 1), - column: generatedPosition.column + (section.generatedOffset.generatedLine === generatedPosition.line ? section.generatedOffset.generatedColumn - 1 : 0) - }; - return ret; - } - } - return { - line: null, - column: null - }; - }; - IndexedSourceMapConsumer.prototype._parseMappings = function IndexedSourceMapConsumer_parseMappings(aStr, aSourceRoot) { - this.__generatedMappings = []; - this.__originalMappings = []; - for (var i = 0; i < this._sections.length; i++) { - var section = this._sections[i]; - var sectionMappings = section.consumer._generatedMappings; - for (var j = 0; j < sectionMappings.length; j++) { - var mapping = sectionMappings[j]; - var source = section.consumer._sources.at(mapping.source); - source = util.computeSourceURL(section.consumer.sourceRoot, source, this._sourceMapURL); - this._sources.add(source); - source = this._sources.indexOf(source); - var name = null; - if (mapping.name) { - name = section.consumer._names.at(mapping.name); - this._names.add(name); - name = this._names.indexOf(name); - } - var adjustedMapping = { - source, - generatedLine: mapping.generatedLine + (section.generatedOffset.generatedLine - 1), - generatedColumn: mapping.generatedColumn + (section.generatedOffset.generatedLine === mapping.generatedLine ? section.generatedOffset.generatedColumn - 1 : 0), - originalLine: mapping.originalLine, - originalColumn: mapping.originalColumn, - name - }; - this.__generatedMappings.push(adjustedMapping); - if (typeof adjustedMapping.originalLine === "number") { - this.__originalMappings.push(adjustedMapping); - } - } - } - quickSort(this.__generatedMappings, util.compareByGeneratedPositionsDeflated); - quickSort(this.__originalMappings, util.compareByOriginalPositions); - }; - exports.IndexedSourceMapConsumer = IndexedSourceMapConsumer; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/source-node.js - var require_source_node = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/lib/source-node.js"(exports) { - var SourceMapGenerator = require_source_map_generator().SourceMapGenerator; - var util = require_util(); - var REGEX_NEWLINE = /(\r?\n)/; - var NEWLINE_CODE = 10; - var isSourceNode = "$$$isSourceNode$$$"; - function SourceNode(aLine, aColumn, aSource, aChunks, aName) { - this.children = []; - this.sourceContents = {}; - this.line = aLine == null ? null : aLine; - this.column = aColumn == null ? null : aColumn; - this.source = aSource == null ? null : aSource; - this.name = aName == null ? null : aName; - this[isSourceNode] = true; - if (aChunks != null) - this.add(aChunks); - } - SourceNode.fromStringWithSourceMap = function SourceNode_fromStringWithSourceMap(aGeneratedCode, aSourceMapConsumer, aRelativePath) { - var node = new SourceNode(); - var remainingLines = aGeneratedCode.split(REGEX_NEWLINE); - var remainingLinesIndex = 0; - var shiftNextLine = function() { - var lineContents = getNextLine(); - var newLine = getNextLine() || ""; - return lineContents + newLine; - function getNextLine() { - return remainingLinesIndex < remainingLines.length ? remainingLines[remainingLinesIndex++] : void 0; - } - }; - var lastGeneratedLine = 1, lastGeneratedColumn = 0; - var lastMapping = null; - aSourceMapConsumer.eachMapping(function(mapping) { - if (lastMapping !== null) { - if (lastGeneratedLine < mapping.generatedLine) { - addMappingWithCode(lastMapping, shiftNextLine()); - lastGeneratedLine++; - lastGeneratedColumn = 0; - } else { - var nextLine = remainingLines[remainingLinesIndex] || ""; - var code = nextLine.substr(0, mapping.generatedColumn - lastGeneratedColumn); - remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn - lastGeneratedColumn); - lastGeneratedColumn = mapping.generatedColumn; - addMappingWithCode(lastMapping, code); - lastMapping = mapping; - return; - } - } - while (lastGeneratedLine < mapping.generatedLine) { - node.add(shiftNextLine()); - lastGeneratedLine++; - } - if (lastGeneratedColumn < mapping.generatedColumn) { - var nextLine = remainingLines[remainingLinesIndex] || ""; - node.add(nextLine.substr(0, mapping.generatedColumn)); - remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn); - lastGeneratedColumn = mapping.generatedColumn; - } - lastMapping = mapping; - }, this); - if (remainingLinesIndex < remainingLines.length) { - if (lastMapping) { - addMappingWithCode(lastMapping, shiftNextLine()); - } - node.add(remainingLines.splice(remainingLinesIndex).join("")); - } - aSourceMapConsumer.sources.forEach(function(sourceFile) { - var content = aSourceMapConsumer.sourceContentFor(sourceFile); - if (content != null) { - if (aRelativePath != null) { - sourceFile = util.join(aRelativePath, sourceFile); - } - node.setSourceContent(sourceFile, content); - } - }); - return node; - function addMappingWithCode(mapping, code) { - if (mapping === null || mapping.source === void 0) { - node.add(code); - } else { - var source = aRelativePath ? util.join(aRelativePath, mapping.source) : mapping.source; - node.add(new SourceNode(mapping.originalLine, mapping.originalColumn, source, code, mapping.name)); - } - } - }; - SourceNode.prototype.add = function SourceNode_add(aChunk) { - if (Array.isArray(aChunk)) { - aChunk.forEach(function(chunk) { - this.add(chunk); - }, this); - } else if (aChunk[isSourceNode] || typeof aChunk === "string") { - if (aChunk) { - this.children.push(aChunk); - } - } else { - throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk); - } - return this; - }; - SourceNode.prototype.prepend = function SourceNode_prepend(aChunk) { - if (Array.isArray(aChunk)) { - for (var i = aChunk.length - 1; i >= 0; i--) { - this.prepend(aChunk[i]); - } - } else if (aChunk[isSourceNode] || typeof aChunk === "string") { - this.children.unshift(aChunk); - } else { - throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk); - } - return this; - }; - SourceNode.prototype.walk = function SourceNode_walk(aFn) { - var chunk; - for (var i = 0, len = this.children.length; i < len; i++) { - chunk = this.children[i]; - if (chunk[isSourceNode]) { - chunk.walk(aFn); - } else { - if (chunk !== "") { - aFn(chunk, { - source: this.source, - line: this.line, - column: this.column, - name: this.name - }); - } - } - } - }; - SourceNode.prototype.join = function SourceNode_join(aSep) { - var newChildren; - var i; - var len = this.children.length; - if (len > 0) { - newChildren = []; - for (i = 0; i < len - 1; i++) { - newChildren.push(this.children[i]); - newChildren.push(aSep); - } - newChildren.push(this.children[i]); - this.children = newChildren; - } - return this; - }; - SourceNode.prototype.replaceRight = function SourceNode_replaceRight(aPattern, aReplacement) { - var lastChild = this.children[this.children.length - 1]; - if (lastChild[isSourceNode]) { - lastChild.replaceRight(aPattern, aReplacement); - } else if (typeof lastChild === "string") { - this.children[this.children.length - 1] = lastChild.replace(aPattern, aReplacement); - } else { - this.children.push("".replace(aPattern, aReplacement)); - } - return this; - }; - SourceNode.prototype.setSourceContent = function SourceNode_setSourceContent(aSourceFile, aSourceContent) { - this.sourceContents[util.toSetString(aSourceFile)] = aSourceContent; - }; - SourceNode.prototype.walkSourceContents = function SourceNode_walkSourceContents(aFn) { - for (var i = 0, len = this.children.length; i < len; i++) { - if (this.children[i][isSourceNode]) { - this.children[i].walkSourceContents(aFn); - } - } - var sources = Object.keys(this.sourceContents); - for (var i = 0, len = sources.length; i < len; i++) { - aFn(util.fromSetString(sources[i]), this.sourceContents[sources[i]]); - } - }; - SourceNode.prototype.toString = function SourceNode_toString() { - var str = ""; - this.walk(function(chunk) { - str += chunk; - }); - return str; - }; - SourceNode.prototype.toStringWithSourceMap = function SourceNode_toStringWithSourceMap(aArgs) { - var generated = { - code: "", - line: 1, - column: 0 - }; - var map = new SourceMapGenerator(aArgs); - var sourceMappingActive = false; - var lastOriginalSource = null; - var lastOriginalLine = null; - var lastOriginalColumn = null; - var lastOriginalName = null; - this.walk(function(chunk, original) { - generated.code += chunk; - if (original.source !== null && original.line !== null && original.column !== null) { - if (lastOriginalSource !== original.source || lastOriginalLine !== original.line || lastOriginalColumn !== original.column || lastOriginalName !== original.name) { - map.addMapping({ - source: original.source, - original: { - line: original.line, - column: original.column - }, - generated: { - line: generated.line, - column: generated.column - }, - name: original.name - }); - } - lastOriginalSource = original.source; - lastOriginalLine = original.line; - lastOriginalColumn = original.column; - lastOriginalName = original.name; - sourceMappingActive = true; - } else if (sourceMappingActive) { - map.addMapping({ - generated: { - line: generated.line, - column: generated.column - } - }); - lastOriginalSource = null; - sourceMappingActive = false; - } - for (var idx = 0, length = chunk.length; idx < length; idx++) { - if (chunk.charCodeAt(idx) === NEWLINE_CODE) { - generated.line++; - generated.column = 0; - if (idx + 1 === length) { - lastOriginalSource = null; - sourceMappingActive = false; - } else if (sourceMappingActive) { - map.addMapping({ - source: original.source, - original: { - line: original.line, - column: original.column - }, - generated: { - line: generated.line, - column: generated.column - }, - name: original.name - }); - } - } else { - generated.column++; - } - } - }); - this.walkSourceContents(function(sourceFile, sourceContent) { - map.setSourceContent(sourceFile, sourceContent); - }); - return {code: generated.code, map}; - }; - exports.SourceNode = SourceNode; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/source-map.js - var require_source_map = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/source-map-npm-0.6.1-1a3621db16-59ce8640cf.zip/node_modules/source-map/source-map.js"(exports) { - exports.SourceMapGenerator = require_source_map_generator().SourceMapGenerator; - exports.SourceMapConsumer = require_source_map_consumer().SourceMapConsumer; - exports.SourceNode = require_source_node().SourceNode; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/code-gen.js - var require_code_gen = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/code-gen.js"(exports, module) { - "use strict"; - exports.__esModule = true; - var _utils = require_utils(); - var SourceNode = void 0; - try { - if (typeof define !== "function" || !define.amd) { - SourceMap = require_source_map(); - SourceNode = SourceMap.SourceNode; - } - } catch (err) { - } - var SourceMap; - if (!SourceNode) { - SourceNode = function(line, column, srcFile, chunks) { - this.src = ""; - if (chunks) { - this.add(chunks); - } - }; - SourceNode.prototype = { - add: function add(chunks) { - if (_utils.isArray(chunks)) { - chunks = chunks.join(""); - } - this.src += chunks; - }, - prepend: function prepend(chunks) { - if (_utils.isArray(chunks)) { - chunks = chunks.join(""); - } - this.src = chunks + this.src; - }, - toStringWithSourceMap: function toStringWithSourceMap() { - return {code: this.toString()}; - }, - toString: function toString() { - return this.src; - } - }; - } - function castChunk(chunk, codeGen, loc) { - if (_utils.isArray(chunk)) { - var ret = []; - for (var i = 0, len = chunk.length; i < len; i++) { - ret.push(codeGen.wrap(chunk[i], loc)); - } - return ret; - } else if (typeof chunk === "boolean" || typeof chunk === "number") { - return chunk + ""; - } - return chunk; - } - function CodeGen(srcFile) { - this.srcFile = srcFile; - this.source = []; - } - CodeGen.prototype = { - isEmpty: function isEmpty() { - return !this.source.length; - }, - prepend: function prepend(source, loc) { - this.source.unshift(this.wrap(source, loc)); - }, - push: function push(source, loc) { - this.source.push(this.wrap(source, loc)); - }, - merge: function merge() { - var source = this.empty(); - this.each(function(line) { - source.add([" ", line, "\n"]); - }); - return source; - }, - each: function each(iter) { - for (var i = 0, len = this.source.length; i < len; i++) { - iter(this.source[i]); - } - }, - empty: function empty() { - var loc = this.currentLocation || {start: {}}; - return new SourceNode(loc.start.line, loc.start.column, this.srcFile); - }, - wrap: function wrap(chunk) { - var loc = arguments.length <= 1 || arguments[1] === void 0 ? this.currentLocation || {start: {}} : arguments[1]; - if (chunk instanceof SourceNode) { - return chunk; - } - chunk = castChunk(chunk, this, loc); - return new SourceNode(loc.start.line, loc.start.column, this.srcFile, chunk); - }, - functionCall: function functionCall(fn, type, params) { - params = this.generateList(params); - return this.wrap([fn, type ? "." + type + "(" : "(", params, ")"]); - }, - quotedString: function quotedString(str) { - return '"' + (str + "").replace(/\\/g, "\\\\").replace(/"/g, '\\"').replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029") + '"'; - }, - objectLiteral: function objectLiteral(obj) { - var _this = this; - var pairs = []; - Object.keys(obj).forEach(function(key) { - var value = castChunk(obj[key], _this); - if (value !== "undefined") { - pairs.push([_this.quotedString(key), ":", value]); - } - }); - var ret = this.generateList(pairs); - ret.prepend("{"); - ret.add("}"); - return ret; - }, - generateList: function generateList(entries) { - var ret = this.empty(); - for (var i = 0, len = entries.length; i < len; i++) { - if (i) { - ret.add(","); - } - ret.add(castChunk(entries[i], this)); - } - return ret; - }, - generateArray: function generateArray(entries) { - var ret = this.generateList(entries); - ret.prepend("["); - ret.add("]"); - return ret; - } - }; - exports["default"] = CodeGen; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js - var require_javascript_compiler = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js"(exports, module) { - "use strict"; - exports.__esModule = true; - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : {"default": obj}; - } - var _base = require_base(); - var _exception = require_exception(); - var _exception2 = _interopRequireDefault(_exception); - var _utils = require_utils(); - var _codeGen = require_code_gen(); - var _codeGen2 = _interopRequireDefault(_codeGen); - function Literal(value) { - this.value = value; - } - function JavaScriptCompiler() { - } - JavaScriptCompiler.prototype = { - nameLookup: function nameLookup(parent, name) { - return this.internalNameLookup(parent, name); - }, - depthedLookup: function depthedLookup(name) { - return [this.aliasable("container.lookup"), "(depths, ", JSON.stringify(name), ")"]; - }, - compilerInfo: function compilerInfo() { - var revision = _base.COMPILER_REVISION, versions = _base.REVISION_CHANGES[revision]; - return [revision, versions]; - }, - appendToBuffer: function appendToBuffer(source, location, explicit) { - if (!_utils.isArray(source)) { - source = [source]; - } - source = this.source.wrap(source, location); - if (this.environment.isSimple) { - return ["return ", source, ";"]; - } else if (explicit) { - return ["buffer += ", source, ";"]; - } else { - source.appendToBuffer = true; - return source; - } - }, - initializeBuffer: function initializeBuffer() { - return this.quotedString(""); - }, - internalNameLookup: function internalNameLookup(parent, name) { - this.lookupPropertyFunctionIsUsed = true; - return ["lookupProperty(", parent, ",", JSON.stringify(name), ")"]; - }, - lookupPropertyFunctionIsUsed: false, - compile: function compile(environment, options, context, asObject) { - this.environment = environment; - this.options = options; - this.stringParams = this.options.stringParams; - this.trackIds = this.options.trackIds; - this.precompile = !asObject; - this.name = this.environment.name; - this.isChild = !!context; - this.context = context || { - decorators: [], - programs: [], - environments: [] - }; - this.preamble(); - this.stackSlot = 0; - this.stackVars = []; - this.aliases = {}; - this.registers = {list: []}; - this.hashes = []; - this.compileStack = []; - this.inlineStack = []; - this.blockParams = []; - this.compileChildren(environment, options); - this.useDepths = this.useDepths || environment.useDepths || environment.useDecorators || this.options.compat; - this.useBlockParams = this.useBlockParams || environment.useBlockParams; - var opcodes = environment.opcodes, opcode = void 0, firstLoc = void 0, i = void 0, l = void 0; - for (i = 0, l = opcodes.length; i < l; i++) { - opcode = opcodes[i]; - this.source.currentLocation = opcode.loc; - firstLoc = firstLoc || opcode.loc; - this[opcode.opcode].apply(this, opcode.args); - } - this.source.currentLocation = firstLoc; - this.pushSource(""); - if (this.stackSlot || this.inlineStack.length || this.compileStack.length) { - throw new _exception2["default"]("Compile completed with content left on stack"); - } - if (!this.decorators.isEmpty()) { - this.useDecorators = true; - this.decorators.prepend(["var decorators = container.decorators, ", this.lookupPropertyFunctionVarDeclaration(), ";\n"]); - this.decorators.push("return fn;"); - if (asObject) { - this.decorators = Function.apply(this, ["fn", "props", "container", "depth0", "data", "blockParams", "depths", this.decorators.merge()]); - } else { - this.decorators.prepend("function(fn, props, container, depth0, data, blockParams, depths) {\n"); - this.decorators.push("}\n"); - this.decorators = this.decorators.merge(); - } - } else { - this.decorators = void 0; - } - var fn = this.createFunctionContext(asObject); - if (!this.isChild) { - var ret = { - compiler: this.compilerInfo(), - main: fn - }; - if (this.decorators) { - ret.main_d = this.decorators; - ret.useDecorators = true; - } - var _context = this.context; - var programs = _context.programs; - var decorators = _context.decorators; - for (i = 0, l = programs.length; i < l; i++) { - if (programs[i]) { - ret[i] = programs[i]; - if (decorators[i]) { - ret[i + "_d"] = decorators[i]; - ret.useDecorators = true; - } - } - } - if (this.environment.usePartial) { - ret.usePartial = true; - } - if (this.options.data) { - ret.useData = true; - } - if (this.useDepths) { - ret.useDepths = true; - } - if (this.useBlockParams) { - ret.useBlockParams = true; - } - if (this.options.compat) { - ret.compat = true; - } - if (!asObject) { - ret.compiler = JSON.stringify(ret.compiler); - this.source.currentLocation = {start: {line: 1, column: 0}}; - ret = this.objectLiteral(ret); - if (options.srcName) { - ret = ret.toStringWithSourceMap({file: options.destName}); - ret.map = ret.map && ret.map.toString(); - } else { - ret = ret.toString(); - } - } else { - ret.compilerOptions = this.options; - } - return ret; - } else { - return fn; - } - }, - preamble: function preamble() { - this.lastContext = 0; - this.source = new _codeGen2["default"](this.options.srcName); - this.decorators = new _codeGen2["default"](this.options.srcName); - }, - createFunctionContext: function createFunctionContext(asObject) { - var _this = this; - var varDeclarations = ""; - var locals = this.stackVars.concat(this.registers.list); - if (locals.length > 0) { - varDeclarations += ", " + locals.join(", "); - } - var aliasCount = 0; - Object.keys(this.aliases).forEach(function(alias) { - var node = _this.aliases[alias]; - if (node.children && node.referenceCount > 1) { - varDeclarations += ", alias" + ++aliasCount + "=" + alias; - node.children[0] = "alias" + aliasCount; - } - }); - if (this.lookupPropertyFunctionIsUsed) { - varDeclarations += ", " + this.lookupPropertyFunctionVarDeclaration(); - } - var params = ["container", "depth0", "helpers", "partials", "data"]; - if (this.useBlockParams || this.useDepths) { - params.push("blockParams"); - } - if (this.useDepths) { - params.push("depths"); - } - var source = this.mergeSource(varDeclarations); - if (asObject) { - params.push(source); - return Function.apply(this, params); - } else { - return this.source.wrap(["function(", params.join(","), ") {\n ", source, "}"]); - } - }, - mergeSource: function mergeSource(varDeclarations) { - var isSimple = this.environment.isSimple, appendOnly = !this.forceBuffer, appendFirst = void 0, sourceSeen = void 0, bufferStart = void 0, bufferEnd = void 0; - this.source.each(function(line) { - if (line.appendToBuffer) { - if (bufferStart) { - line.prepend(" + "); - } else { - bufferStart = line; - } - bufferEnd = line; - } else { - if (bufferStart) { - if (!sourceSeen) { - appendFirst = true; - } else { - bufferStart.prepend("buffer += "); - } - bufferEnd.add(";"); - bufferStart = bufferEnd = void 0; - } - sourceSeen = true; - if (!isSimple) { - appendOnly = false; - } - } - }); - if (appendOnly) { - if (bufferStart) { - bufferStart.prepend("return "); - bufferEnd.add(";"); - } else if (!sourceSeen) { - this.source.push('return "";'); - } - } else { - varDeclarations += ", buffer = " + (appendFirst ? "" : this.initializeBuffer()); - if (bufferStart) { - bufferStart.prepend("return buffer + "); - bufferEnd.add(";"); - } else { - this.source.push("return buffer;"); - } - } - if (varDeclarations) { - this.source.prepend("var " + varDeclarations.substring(2) + (appendFirst ? "" : ";\n")); - } - return this.source.merge(); - }, - lookupPropertyFunctionVarDeclaration: function lookupPropertyFunctionVarDeclaration() { - return "\n lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n }\n ".trim(); - }, - blockValue: function blockValue(name) { - var blockHelperMissing = this.aliasable("container.hooks.blockHelperMissing"), params = [this.contextName(0)]; - this.setupHelperArgs(name, 0, params); - var blockName = this.popStack(); - params.splice(1, 0, blockName); - this.push(this.source.functionCall(blockHelperMissing, "call", params)); - }, - ambiguousBlockValue: function ambiguousBlockValue() { - var blockHelperMissing = this.aliasable("container.hooks.blockHelperMissing"), params = [this.contextName(0)]; - this.setupHelperArgs("", 0, params, true); - this.flushInline(); - var current = this.topStack(); - params.splice(1, 0, current); - this.pushSource(["if (!", this.lastHelper, ") { ", current, " = ", this.source.functionCall(blockHelperMissing, "call", params), "}"]); - }, - appendContent: function appendContent(content) { - if (this.pendingContent) { - content = this.pendingContent + content; - } else { - this.pendingLocation = this.source.currentLocation; - } - this.pendingContent = content; - }, - append: function append() { - if (this.isInline()) { - this.replaceStack(function(current) { - return [" != null ? ", current, ' : ""']; - }); - this.pushSource(this.appendToBuffer(this.popStack())); - } else { - var local = this.popStack(); - this.pushSource(["if (", local, " != null) { ", this.appendToBuffer(local, void 0, true), " }"]); - if (this.environment.isSimple) { - this.pushSource(["else { ", this.appendToBuffer("''", void 0, true), " }"]); - } - } - }, - appendEscaped: function appendEscaped() { - this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"), "(", this.popStack(), ")"])); - }, - getContext: function getContext(depth) { - this.lastContext = depth; - }, - pushContext: function pushContext() { - this.pushStackLiteral(this.contextName(this.lastContext)); - }, - lookupOnContext: function lookupOnContext(parts, falsy, strict, scoped) { - var i = 0; - if (!scoped && this.options.compat && !this.lastContext) { - this.push(this.depthedLookup(parts[i++])); - } else { - this.pushContext(); - } - this.resolvePath("context", parts, i, falsy, strict); - }, - lookupBlockParam: function lookupBlockParam(blockParamId, parts) { - this.useBlockParams = true; - this.push(["blockParams[", blockParamId[0], "][", blockParamId[1], "]"]); - this.resolvePath("context", parts, 1); - }, - lookupData: function lookupData(depth, parts, strict) { - if (!depth) { - this.pushStackLiteral("data"); - } else { - this.pushStackLiteral("container.data(data, " + depth + ")"); - } - this.resolvePath("data", parts, 0, true, strict); - }, - resolvePath: function resolvePath(type, parts, i, falsy, strict) { - var _this2 = this; - if (this.options.strict || this.options.assumeObjects) { - this.push(strictLookup(this.options.strict && strict, this, parts, type)); - return; - } - var len = parts.length; - for (; i < len; i++) { - this.replaceStack(function(current) { - var lookup = _this2.nameLookup(current, parts[i], type); - if (!falsy) { - return [" != null ? ", lookup, " : ", current]; - } else { - return [" && ", lookup]; - } - }); - } - }, - resolvePossibleLambda: function resolvePossibleLambda() { - this.push([this.aliasable("container.lambda"), "(", this.popStack(), ", ", this.contextName(0), ")"]); - }, - pushStringParam: function pushStringParam(string, type) { - this.pushContext(); - this.pushString(type); - if (type !== "SubExpression") { - if (typeof string === "string") { - this.pushString(string); - } else { - this.pushStackLiteral(string); - } - } - }, - emptyHash: function emptyHash(omitEmpty) { - if (this.trackIds) { - this.push("{}"); - } - if (this.stringParams) { - this.push("{}"); - this.push("{}"); - } - this.pushStackLiteral(omitEmpty ? "undefined" : "{}"); - }, - pushHash: function pushHash() { - if (this.hash) { - this.hashes.push(this.hash); - } - this.hash = {values: {}, types: [], contexts: [], ids: []}; - }, - popHash: function popHash() { - var hash = this.hash; - this.hash = this.hashes.pop(); - if (this.trackIds) { - this.push(this.objectLiteral(hash.ids)); - } - if (this.stringParams) { - this.push(this.objectLiteral(hash.contexts)); - this.push(this.objectLiteral(hash.types)); - } - this.push(this.objectLiteral(hash.values)); - }, - pushString: function pushString(string) { - this.pushStackLiteral(this.quotedString(string)); - }, - pushLiteral: function pushLiteral(value) { - this.pushStackLiteral(value); - }, - pushProgram: function pushProgram(guid) { - if (guid != null) { - this.pushStackLiteral(this.programExpression(guid)); - } else { - this.pushStackLiteral(null); - } - }, - registerDecorator: function registerDecorator(paramSize, name) { - var foundDecorator = this.nameLookup("decorators", name, "decorator"), options = this.setupHelperArgs(name, paramSize); - this.decorators.push(["fn = ", this.decorators.functionCall(foundDecorator, "", ["fn", "props", "container", options]), " || fn;"]); - }, - invokeHelper: function invokeHelper(paramSize, name, isSimple) { - var nonHelper = this.popStack(), helper = this.setupHelper(paramSize, name); - var possibleFunctionCalls = []; - if (isSimple) { - possibleFunctionCalls.push(helper.name); - } - possibleFunctionCalls.push(nonHelper); - if (!this.options.strict) { - possibleFunctionCalls.push(this.aliasable("container.hooks.helperMissing")); - } - var functionLookupCode = ["(", this.itemsSeparatedBy(possibleFunctionCalls, "||"), ")"]; - var functionCall = this.source.functionCall(functionLookupCode, "call", helper.callParams); - this.push(functionCall); - }, - itemsSeparatedBy: function itemsSeparatedBy(items, separator) { - var result = []; - result.push(items[0]); - for (var i = 1; i < items.length; i++) { - result.push(separator, items[i]); - } - return result; - }, - invokeKnownHelper: function invokeKnownHelper(paramSize, name) { - var helper = this.setupHelper(paramSize, name); - this.push(this.source.functionCall(helper.name, "call", helper.callParams)); - }, - invokeAmbiguous: function invokeAmbiguous(name, helperCall) { - this.useRegister("helper"); - var nonHelper = this.popStack(); - this.emptyHash(); - var helper = this.setupHelper(0, name, helperCall); - var helperName = this.lastHelper = this.nameLookup("helpers", name, "helper"); - var lookup = ["(", "(helper = ", helperName, " || ", nonHelper, ")"]; - if (!this.options.strict) { - lookup[0] = "(helper = "; - lookup.push(" != null ? helper : ", this.aliasable("container.hooks.helperMissing")); - } - this.push(["(", lookup, helper.paramsInit ? ["),(", helper.paramsInit] : [], "),", "(typeof helper === ", this.aliasable('"function"'), " ? ", this.source.functionCall("helper", "call", helper.callParams), " : helper))"]); - }, - invokePartial: function invokePartial(isDynamic, name, indent) { - var params = [], options = this.setupParams(name, 1, params); - if (isDynamic) { - name = this.popStack(); - delete options.name; - } - if (indent) { - options.indent = JSON.stringify(indent); - } - options.helpers = "helpers"; - options.partials = "partials"; - options.decorators = "container.decorators"; - if (!isDynamic) { - params.unshift(this.nameLookup("partials", name, "partial")); - } else { - params.unshift(name); - } - if (this.options.compat) { - options.depths = "depths"; - } - options = this.objectLiteral(options); - params.push(options); - this.push(this.source.functionCall("container.invokePartial", "", params)); - }, - assignToHash: function assignToHash(key) { - var value = this.popStack(), context = void 0, type = void 0, id = void 0; - if (this.trackIds) { - id = this.popStack(); - } - if (this.stringParams) { - type = this.popStack(); - context = this.popStack(); - } - var hash = this.hash; - if (context) { - hash.contexts[key] = context; - } - if (type) { - hash.types[key] = type; - } - if (id) { - hash.ids[key] = id; - } - hash.values[key] = value; - }, - pushId: function pushId(type, name, child) { - if (type === "BlockParam") { - this.pushStackLiteral("blockParams[" + name[0] + "].path[" + name[1] + "]" + (child ? " + " + JSON.stringify("." + child) : "")); - } else if (type === "PathExpression") { - this.pushString(name); - } else if (type === "SubExpression") { - this.pushStackLiteral("true"); - } else { - this.pushStackLiteral("null"); - } - }, - compiler: JavaScriptCompiler, - compileChildren: function compileChildren(environment, options) { - var children = environment.children, child = void 0, compiler = void 0; - for (var i = 0, l = children.length; i < l; i++) { - child = children[i]; - compiler = new this.compiler(); - var existing = this.matchExistingProgram(child); - if (existing == null) { - this.context.programs.push(""); - var index2 = this.context.programs.length; - child.index = index2; - child.name = "program" + index2; - this.context.programs[index2] = compiler.compile(child, options, this.context, !this.precompile); - this.context.decorators[index2] = compiler.decorators; - this.context.environments[index2] = child; - this.useDepths = this.useDepths || compiler.useDepths; - this.useBlockParams = this.useBlockParams || compiler.useBlockParams; - child.useDepths = this.useDepths; - child.useBlockParams = this.useBlockParams; - } else { - child.index = existing.index; - child.name = "program" + existing.index; - this.useDepths = this.useDepths || existing.useDepths; - this.useBlockParams = this.useBlockParams || existing.useBlockParams; - } - } - }, - matchExistingProgram: function matchExistingProgram(child) { - for (var i = 0, len = this.context.environments.length; i < len; i++) { - var environment = this.context.environments[i]; - if (environment && environment.equals(child)) { - return environment; - } - } - }, - programExpression: function programExpression(guid) { - var child = this.environment.children[guid], programParams = [child.index, "data", child.blockParams]; - if (this.useBlockParams || this.useDepths) { - programParams.push("blockParams"); - } - if (this.useDepths) { - programParams.push("depths"); - } - return "container.program(" + programParams.join(", ") + ")"; - }, - useRegister: function useRegister(name) { - if (!this.registers[name]) { - this.registers[name] = true; - this.registers.list.push(name); - } - }, - push: function push(expr) { - if (!(expr instanceof Literal)) { - expr = this.source.wrap(expr); - } - this.inlineStack.push(expr); - return expr; - }, - pushStackLiteral: function pushStackLiteral(item) { - this.push(new Literal(item)); - }, - pushSource: function pushSource(source) { - if (this.pendingContent) { - this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent), this.pendingLocation)); - this.pendingContent = void 0; - } - if (source) { - this.source.push(source); - } - }, - replaceStack: function replaceStack(callback) { - var prefix = ["("], stack = void 0, createdStack = void 0, usedLiteral = void 0; - if (!this.isInline()) { - throw new _exception2["default"]("replaceStack on non-inline"); - } - var top = this.popStack(true); - if (top instanceof Literal) { - stack = [top.value]; - prefix = ["(", stack]; - usedLiteral = true; - } else { - createdStack = true; - var _name = this.incrStack(); - prefix = ["((", this.push(_name), " = ", top, ")"]; - stack = this.topStack(); - } - var item = callback.call(this, stack); - if (!usedLiteral) { - this.popStack(); - } - if (createdStack) { - this.stackSlot--; - } - this.push(prefix.concat(item, ")")); - }, - incrStack: function incrStack() { - this.stackSlot++; - if (this.stackSlot > this.stackVars.length) { - this.stackVars.push("stack" + this.stackSlot); - } - return this.topStackName(); - }, - topStackName: function topStackName() { - return "stack" + this.stackSlot; - }, - flushInline: function flushInline() { - var inlineStack = this.inlineStack; - this.inlineStack = []; - for (var i = 0, len = inlineStack.length; i < len; i++) { - var entry = inlineStack[i]; - if (entry instanceof Literal) { - this.compileStack.push(entry); - } else { - var stack = this.incrStack(); - this.pushSource([stack, " = ", entry, ";"]); - this.compileStack.push(stack); - } - } - }, - isInline: function isInline() { - return this.inlineStack.length; - }, - popStack: function popStack(wrapped) { - var inline = this.isInline(), item = (inline ? this.inlineStack : this.compileStack).pop(); - if (!wrapped && item instanceof Literal) { - return item.value; - } else { - if (!inline) { - if (!this.stackSlot) { - throw new _exception2["default"]("Invalid stack pop"); - } - this.stackSlot--; - } - return item; - } - }, - topStack: function topStack() { - var stack = this.isInline() ? this.inlineStack : this.compileStack, item = stack[stack.length - 1]; - if (item instanceof Literal) { - return item.value; - } else { - return item; - } - }, - contextName: function contextName(context) { - if (this.useDepths && context) { - return "depths[" + context + "]"; - } else { - return "depth" + context; - } - }, - quotedString: function quotedString(str) { - return this.source.quotedString(str); - }, - objectLiteral: function objectLiteral(obj) { - return this.source.objectLiteral(obj); - }, - aliasable: function aliasable(name) { - var ret = this.aliases[name]; - if (ret) { - ret.referenceCount++; - return ret; - } - ret = this.aliases[name] = this.source.wrap(name); - ret.aliasable = true; - ret.referenceCount = 1; - return ret; - }, - setupHelper: function setupHelper(paramSize, name, blockHelper) { - var params = [], paramsInit = this.setupHelperArgs(name, paramSize, params, blockHelper); - var foundHelper = this.nameLookup("helpers", name, "helper"), callContext = this.aliasable(this.contextName(0) + " != null ? " + this.contextName(0) + " : (container.nullContext || {})"); - return { - params, - paramsInit, - name: foundHelper, - callParams: [callContext].concat(params) - }; - }, - setupParams: function setupParams(helper, paramSize, params) { - var options = {}, contexts = [], types = [], ids = [], objectArgs = !params, param = void 0; - if (objectArgs) { - params = []; - } - options.name = this.quotedString(helper); - options.hash = this.popStack(); - if (this.trackIds) { - options.hashIds = this.popStack(); - } - if (this.stringParams) { - options.hashTypes = this.popStack(); - options.hashContexts = this.popStack(); - } - var inverse = this.popStack(), program = this.popStack(); - if (program || inverse) { - options.fn = program || "container.noop"; - options.inverse = inverse || "container.noop"; - } - var i = paramSize; - while (i--) { - param = this.popStack(); - params[i] = param; - if (this.trackIds) { - ids[i] = this.popStack(); - } - if (this.stringParams) { - types[i] = this.popStack(); - contexts[i] = this.popStack(); - } - } - if (objectArgs) { - options.args = this.source.generateArray(params); - } - if (this.trackIds) { - options.ids = this.source.generateArray(ids); - } - if (this.stringParams) { - options.types = this.source.generateArray(types); - options.contexts = this.source.generateArray(contexts); - } - if (this.options.data) { - options.data = "data"; - } - if (this.useBlockParams) { - options.blockParams = "blockParams"; - } - return options; - }, - setupHelperArgs: function setupHelperArgs(helper, paramSize, params, useRegister) { - var options = this.setupParams(helper, paramSize, params); - options.loc = JSON.stringify(this.source.currentLocation); - options = this.objectLiteral(options); - if (useRegister) { - this.useRegister("options"); - params.push("options"); - return ["options=", options]; - } else if (params) { - params.push(options); - return ""; - } else { - return options; - } - } - }; - (function() { - var reservedWords = "break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "); - var compilerWords = JavaScriptCompiler.RESERVED_WORDS = {}; - for (var i = 0, l = reservedWords.length; i < l; i++) { - compilerWords[reservedWords[i]] = true; - } - })(); - JavaScriptCompiler.isValidJavaScriptVariableName = function(name) { - return !JavaScriptCompiler.RESERVED_WORDS[name] && /^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(name); - }; - function strictLookup(requireTerminal, compiler, parts, type) { - var stack = compiler.popStack(), i = 0, len = parts.length; - if (requireTerminal) { - len--; - } - for (; i < len; i++) { - stack = compiler.nameLookup(stack, parts[i], type); - } - if (requireTerminal) { - return [compiler.aliasable("container.strict"), "(", stack, ", ", compiler.quotedString(parts[i]), ", ", JSON.stringify(compiler.source.currentLocation), " )"]; - } else { - return stack; - } - } - exports["default"] = JavaScriptCompiler; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars.js - var require_handlebars = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars.js"(exports, module) { - "use strict"; - exports.__esModule = true; - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : {"default": obj}; - } - var _handlebarsRuntime = require_handlebars_runtime(); - var _handlebarsRuntime2 = _interopRequireDefault(_handlebarsRuntime); - var _handlebarsCompilerAst = require_ast(); - var _handlebarsCompilerAst2 = _interopRequireDefault(_handlebarsCompilerAst); - var _handlebarsCompilerBase = require_base2(); - var _handlebarsCompilerCompiler = require_compiler(); - var _handlebarsCompilerJavascriptCompiler = require_javascript_compiler(); - var _handlebarsCompilerJavascriptCompiler2 = _interopRequireDefault(_handlebarsCompilerJavascriptCompiler); - var _handlebarsCompilerVisitor = require_visitor(); - var _handlebarsCompilerVisitor2 = _interopRequireDefault(_handlebarsCompilerVisitor); - var _handlebarsNoConflict = require_no_conflict(); - var _handlebarsNoConflict2 = _interopRequireDefault(_handlebarsNoConflict); - var _create = _handlebarsRuntime2["default"].create; - function create() { - var hb = _create(); - hb.compile = function(input, options) { - return _handlebarsCompilerCompiler.compile(input, options, hb); - }; - hb.precompile = function(input, options) { - return _handlebarsCompilerCompiler.precompile(input, options, hb); - }; - hb.AST = _handlebarsCompilerAst2["default"]; - hb.Compiler = _handlebarsCompilerCompiler.Compiler; - hb.JavaScriptCompiler = _handlebarsCompilerJavascriptCompiler2["default"]; - hb.Parser = _handlebarsCompilerBase.parser; - hb.parse = _handlebarsCompilerBase.parse; - hb.parseWithoutProcessing = _handlebarsCompilerBase.parseWithoutProcessing; - return hb; - } - var inst = create(); - inst.create = create; - _handlebarsNoConflict2["default"](inst); - inst.Visitor = _handlebarsCompilerVisitor2["default"]; - inst["default"] = inst; - exports["default"] = inst; - module.exports = exports["default"]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/printer.js - var require_printer = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/dist/cjs/handlebars/compiler/printer.js"(exports) { - "use strict"; - exports.__esModule = true; - exports.print = print; - exports.PrintVisitor = PrintVisitor; - function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : {"default": obj}; - } - var _visitor = require_visitor(); - var _visitor2 = _interopRequireDefault(_visitor); - function print(ast) { - return new PrintVisitor().accept(ast); - } - function PrintVisitor() { - this.padding = 0; - } - PrintVisitor.prototype = new _visitor2["default"](); - PrintVisitor.prototype.pad = function(string) { - var out = ""; - for (var i = 0, l = this.padding; i < l; i++) { - out += " "; - } - out += string + "\n"; - return out; - }; - PrintVisitor.prototype.Program = function(program) { - var out = "", body = program.body, i = void 0, l = void 0; - if (program.blockParams) { - var blockParams = "BLOCK PARAMS: ["; - for (i = 0, l = program.blockParams.length; i < l; i++) { - blockParams += " " + program.blockParams[i]; - } - blockParams += " ]"; - out += this.pad(blockParams); - } - for (i = 0, l = body.length; i < l; i++) { - out += this.accept(body[i]); - } - this.padding--; - return out; - }; - PrintVisitor.prototype.MustacheStatement = function(mustache) { - return this.pad("{{ " + this.SubExpression(mustache) + " }}"); - }; - PrintVisitor.prototype.Decorator = function(mustache) { - return this.pad("{{ DIRECTIVE " + this.SubExpression(mustache) + " }}"); - }; - PrintVisitor.prototype.BlockStatement = PrintVisitor.prototype.DecoratorBlock = function(block) { - var out = ""; - out += this.pad((block.type === "DecoratorBlock" ? "DIRECTIVE " : "") + "BLOCK:"); - this.padding++; - out += this.pad(this.SubExpression(block)); - if (block.program) { - out += this.pad("PROGRAM:"); - this.padding++; - out += this.accept(block.program); - this.padding--; - } - if (block.inverse) { - if (block.program) { - this.padding++; - } - out += this.pad("{{^}}"); - this.padding++; - out += this.accept(block.inverse); - this.padding--; - if (block.program) { - this.padding--; - } - } - this.padding--; - return out; - }; - PrintVisitor.prototype.PartialStatement = function(partial) { - var content = "PARTIAL:" + partial.name.original; - if (partial.params[0]) { - content += " " + this.accept(partial.params[0]); - } - if (partial.hash) { - content += " " + this.accept(partial.hash); - } - return this.pad("{{> " + content + " }}"); - }; - PrintVisitor.prototype.PartialBlockStatement = function(partial) { - var content = "PARTIAL BLOCK:" + partial.name.original; - if (partial.params[0]) { - content += " " + this.accept(partial.params[0]); - } - if (partial.hash) { - content += " " + this.accept(partial.hash); - } - content += " " + this.pad("PROGRAM:"); - this.padding++; - content += this.accept(partial.program); - this.padding--; - return this.pad("{{> " + content + " }}"); - }; - PrintVisitor.prototype.ContentStatement = function(content) { - return this.pad("CONTENT[ '" + content.value + "' ]"); - }; - PrintVisitor.prototype.CommentStatement = function(comment) { - return this.pad("{{! '" + comment.value + "' }}"); - }; - PrintVisitor.prototype.SubExpression = function(sexpr) { - var params = sexpr.params, paramStrings = [], hash = void 0; - for (var i = 0, l = params.length; i < l; i++) { - paramStrings.push(this.accept(params[i])); - } - params = "[" + paramStrings.join(", ") + "]"; - hash = sexpr.hash ? " " + this.accept(sexpr.hash) : ""; - return this.accept(sexpr.path) + " " + params + hash; - }; - PrintVisitor.prototype.PathExpression = function(id) { - var path = id.parts.join("/"); - return (id.data ? "@" : "") + "PATH:" + path; - }; - PrintVisitor.prototype.StringLiteral = function(string) { - return '"' + string.value + '"'; - }; - PrintVisitor.prototype.NumberLiteral = function(number) { - return "NUMBER{" + number.value + "}"; - }; - PrintVisitor.prototype.BooleanLiteral = function(bool) { - return "BOOLEAN{" + bool.value + "}"; - }; - PrintVisitor.prototype.UndefinedLiteral = function() { - return "UNDEFINED"; - }; - PrintVisitor.prototype.NullLiteral = function() { - return "NULL"; - }; - PrintVisitor.prototype.Hash = function(hash) { - var pairs = hash.pairs, joinedPairs = []; - for (var i = 0, l = pairs.length; i < l; i++) { - joinedPairs.push(this.accept(pairs[i])); - } - return "HASH{" + joinedPairs.join(", ") + "}"; - }; - PrintVisitor.prototype.HashPair = function(pair) { - return pair.key + "=" + this.accept(pair.value); - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/lib/index.js - var require_lib = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/handlebars-npm-4.7.7-a9ccfabf80-1e79a43f5e.zip/node_modules/handlebars/lib/index.js"(exports, module) { - var handlebars = require_handlebars()["default"]; - var printer = require_printer(); - handlebars.PrintVisitor = printer.PrintVisitor; - handlebars.print = printer.print; - module.exports = handlebars; - function extension(module2, filename) { - var fs = __require("fs"); - var templateString = fs.readFileSync(filename, "utf8"); - module2.exports = handlebars.compile(templateString); - } - if (typeof __require !== "undefined" && __require.extensions) { - __require.extensions[".handlebars"] = extension; - __require.extensions[".hbs"] = extension; - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/json-stringify-safe-npm-5.0.1-064ddd6ab4-48ec0adad5.zip/node_modules/json-stringify-safe/stringify.js - var require_stringify = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/json-stringify-safe-npm-5.0.1-064ddd6ab4-48ec0adad5.zip/node_modules/json-stringify-safe/stringify.js"(exports, module) { - exports = module.exports = stringify; - exports.getSerialize = serializer; - function stringify(obj, replacer, spaces, cycleReplacer) { - return JSON.stringify(obj, serializer(replacer, cycleReplacer), spaces); - } - function serializer(replacer, cycleReplacer) { - var stack = [], keys = []; - if (cycleReplacer == null) - cycleReplacer = function(key, value) { - if (stack[0] === value) - return "[Circular ~]"; - return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]"; - }; - return function(key, value) { - if (stack.length > 0) { - var thisPos = stack.indexOf(this); - ~thisPos ? stack.splice(thisPos + 1) : stack.push(this); - ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key); - if (~stack.indexOf(value)) - value = cycleReplacer.call(this, key, value); - } else - stack.push(value); - return replacer == null ? value : replacer.call(this, key, value); - }; - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-changelog-writer-https-fff76bfb15-3d30c41c4b.zip/node_modules/conventional-changelog-writer/lib/util.js - var require_util2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-changelog-writer-https-fff76bfb15-3d30c41c4b.zip/node_modules/conventional-changelog-writer/lib/util.js"(exports, module) { - "use strict"; - var conventionalCommitsFilter = require_conventional_commits_filter(); - var Handlebars = require_lib(); - var semver4 = __require("semver"); - var _ = require_lodash(); - var stringify = require_stringify(); - function compileTemplates(templates) { - const main = templates.mainTemplate; - const headerPartial = templates.headerPartial; - const commitPartial = templates.commitPartial; - const footerPartial = templates.footerPartial; - const partials = templates.partials; - if (_.isString(headerPartial)) { - Handlebars.registerPartial("header", headerPartial); - } - if (_.isString(commitPartial)) { - Handlebars.registerPartial("commit", commitPartial); - } - if (_.isString(footerPartial)) { - Handlebars.registerPartial("footer", footerPartial); - } - _.forEach(partials, function(partial, name) { - if (_.isString(partial)) { - Handlebars.registerPartial(name, partial); - } - }); - return Handlebars.compile(main, { - noEscape: true - }); - } - function functionify(strOrArr) { - if (strOrArr && typeof strOrArr !== "function") { - return (a, b) => { - let str1 = ""; - let str2 = ""; - if (Array.isArray(strOrArr)) { - for (const key of strOrArr) { - str1 += a[key] || ""; - str2 += b[key] || ""; - } - } else { - str1 += a[strOrArr]; - str2 += b[strOrArr]; - } - return str1.localeCompare(str2); - }; - } else { - return strOrArr; - } - } - function getCommitGroups(groupBy, commits, groupsSort, commitsSort) { - const commitGroups = []; - const commitGroupsObj = _.groupBy(commits, function(commit) { - return commit[groupBy] || ""; - }); - _.forEach(commitGroupsObj, function(commits2, title) { - if (title === "") { - title = false; - } - if (commitsSort) { - commits2.sort(commitsSort); - } - commitGroups.push({ - title, - commits: commits2 - }); - }); - if (groupsSort) { - commitGroups.sort(groupsSort); - } - return commitGroups; - } - function getNoteGroups(notes, noteGroupsSort, notesSort) { - const retGroups = []; - _.forEach(notes, function(note) { - const title = note.title; - let titleExists = false; - _.forEach(retGroups, function(group) { - if (group.title === title) { - titleExists = true; - group.notes.push(note); - return false; - } - }); - if (!titleExists) { - retGroups.push({ - title, - notes: [note] - }); - } - }); - if (noteGroupsSort) { - retGroups.sort(noteGroupsSort); - } - if (notesSort) { - _.forEach(retGroups, function(group) { - group.notes.sort(notesSort); - }); - } - return retGroups; - } - function processCommit(chunk, transform, context) { - let commit; - try { - chunk = JSON.parse(chunk); - } catch (e) { - } - commit = _.cloneDeep(chunk); - if (typeof transform === "function") { - commit = transform(commit, context); - if (commit) { - commit.raw = chunk; - } - return commit; - } - _.forEach(transform, function(el, path) { - let value = _.get(commit, path); - if (typeof el === "function") { - value = el(value, path); - } else { - value = el; - } - _.set(commit, path, value); - }); - commit.raw = chunk; - return commit; - } - function getExtraContext(commits, notes, options) { - const context = {}; - context.commitGroups = getCommitGroups(options.groupBy, commits, options.commitGroupsSort, options.commitsSort); - context.noteGroups = getNoteGroups(notes, options.noteGroupsSort, options.notesSort); - return context; - } - function generate(options, commits, context, keyCommit) { - let notes = []; - let filteredCommits; - const compiled = compileTemplates(options); - if (options.ignoreReverted) { - filteredCommits = conventionalCommitsFilter(commits); - } else { - filteredCommits = _.clone(commits); - } - _.forEach(filteredCommits, function(commit) { - _.map(commit.notes, function(note) { - note.commit = commit; - return note; - }); - notes = notes.concat(commit.notes); - }); - context = _.merge({}, context, keyCommit, getExtraContext(filteredCommits, notes, options)); - if (keyCommit && keyCommit.committerDate) { - context.date = keyCommit.committerDate; - } - if (context.version && semver4.valid(context.version) && context.isPatch == null) { - context.isPatch = semver4.patch(context.version) !== 0; - } - context = options.finalizeContext(context, options, filteredCommits, keyCommit, commits); - options.debug("Your final context is:\n" + stringify(context, null, 2)); - return compiled(context); - } - module.exports = { - compileTemplates, - functionify, - getCommitGroups, - getNoteGroups, - processCommit, - getExtraContext, - generate - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-changelog-writer-https-fff76bfb15-3d30c41c4b.zip/node_modules/conventional-changelog-writer/index.js - var require_conventional_changelog_writer = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-changelog-writer-https-fff76bfb15-3d30c41c4b.zip/node_modules/conventional-changelog-writer/index.js"(exports, module) { - "use strict"; - var dateFormat = require_dateformat(); - var join = __require("path").join; - var readFileSync = __require("fs").readFileSync; - var semverValid = __require("semver").valid; - var through = require_through2(); - var util = require_util2(); - var _ = require_lodash(); - var defaultTemplates = { - mainTemplate: join(__dirname, "templates/template.hbs"), - headerPartial: join(__dirname, "templates/header.hbs"), - commitPartial: join(__dirname, "templates/commit.hbs"), - footerPartial: join(__dirname, "templates/footer.hbs") - }; - function conventionalChangelogWriterInit(context, options) { - context = _.extend({ - commit: "commits", - issue: "issues", - date: dateFormat(new Date(), "yyyy-mm-dd", true) - }, context); - if (!_.isBoolean(context.linkReferences) && (context.repository || context.repoUrl) && context.commit && context.issue) { - context.linkReferences = true; - } - options = _.assign({ - groupBy: "type", - commitsSort: "header", - noteGroupsSort: "title", - notesSort: "text", - generateOn: function(commit) { - return semverValid(commit.version); - }, - finalizeContext: function(context2) { - return context2; - }, - debug: function() { - }, - reverse: false, - includeDetails: false, - ignoreReverted: true, - doFlush: true - }, options); - for (const [key, path] of Object.entries(defaultTemplates)) { - if (options[key] == null) - options[key] = readFileSync(path); - } - if (typeof options.transform !== "function" && _.isObject(options.transform) || _.isUndefined(options.transform)) { - options.transform = _.assign({ - hash: function(hash) { - if (_.isString(hash)) { - return hash.substring(0, 7); - } - }, - header: function(header) { - return header.substring(0, 100); - }, - committerDate: function(date) { - if (!date) { - return; - } - return dateFormat(date, "yyyy-mm-dd", true); - } - }, options.transform); - } - let generateOn = options.generateOn; - if (_.isString(generateOn)) { - generateOn = function(commit) { - return !_.isUndefined(commit[options.generateOn]); - }; - } else if (typeof generateOn !== "function") { - generateOn = function() { - return false; - }; - } - options.commitGroupsSort = util.functionify(options.commitGroupsSort); - options.commitsSort = util.functionify(options.commitsSort); - options.noteGroupsSort = util.functionify(options.noteGroupsSort); - options.notesSort = util.functionify(options.notesSort); - return {context, options, generateOn}; - } - function conventionalChangelogWriterParseStream(context, options) { - let generateOn; - ({context, options, generateOn} = conventionalChangelogWriterInit(context, options)); - let commits = []; - let neverGenerated = true; - let savedKeyCommit; - let firstRelease = true; - return through.obj(function(chunk, _enc, cb) { - try { - let result; - const commit = util.processCommit(chunk, options.transform, context); - const keyCommit = commit || chunk; - if (options.reverse) { - if (commit) { - commits.push(commit); - } - if (generateOn(keyCommit, commits, context, options)) { - neverGenerated = false; - result = util.generate(options, commits, context, keyCommit); - if (options.includeDetails) { - this.push({ - log: result, - keyCommit - }); - } else { - this.push(result); - } - commits = []; - } - } else { - if (generateOn(keyCommit, commits, context, options)) { - neverGenerated = false; - result = util.generate(options, commits, context, savedKeyCommit); - if (!firstRelease || options.doFlush) { - if (options.includeDetails) { - this.push({ - log: result, - keyCommit: savedKeyCommit - }); - } else { - this.push(result); - } - } - firstRelease = false; - commits = []; - savedKeyCommit = keyCommit; - } - if (commit) { - commits.push(commit); - } - } - cb(); - } catch (err) { - cb(err); - } - }, function(cb) { - if (!options.doFlush && (options.reverse || neverGenerated)) { - cb(null); - return; - } - try { - const result = util.generate(options, commits, context, savedKeyCommit); - if (options.includeDetails) { - this.push({ - log: result, - keyCommit: savedKeyCommit - }); - } else { - this.push(result); - } - cb(); - } catch (err) { - cb(err); - } - }); - } - conventionalChangelogWriterParseStream.parseArray = (rawCommits, context, options) => { - let generateOn; - rawCommits = [...rawCommits]; - ({context, options, generateOn} = conventionalChangelogWriterInit(context, options)); - let commits = []; - let savedKeyCommit; - if (options.reverse) { - rawCommits.reverse(); - } - const entries = []; - for (const rawCommit of rawCommits) { - const commit = util.processCommit(rawCommit, options.transform, context); - const keyCommit = commit || rawCommit; - if (generateOn(keyCommit, commits, context, options)) { - entries.push(util.generate(options, commits, context, savedKeyCommit)); - savedKeyCommit = keyCommit; - commits = []; - } - if (commit) { - commits.push(commit); - } - } - if (options.reverse) { - entries.reverse(); - return util.generate(options, commits, context, savedKeyCommit) + entries.join(""); - } else { - return entries.join("") + util.generate(options, commits, context, savedKeyCommit); - } - }; - module.exports = conventionalChangelogWriterParseStream; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/hosted-git-info-npm-4.1.0-4efcdf8fd3-c3f87b3c2f.zip/node_modules/hosted-git-info/git-host-info.js - var require_git_host_info = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/hosted-git-info-npm-4.1.0-4efcdf8fd3-c3f87b3c2f.zip/node_modules/hosted-git-info/git-host-info.js"(exports, module) { - "use strict"; - var maybeJoin = (...args) => args.every((arg) => arg) ? args.join("") : ""; - var maybeEncode = (arg) => arg ? encodeURIComponent(arg) : ""; - var defaults = { - sshtemplate: ({domain, user, project, committish}) => `git@${domain}:${user}/${project}.git${maybeJoin("#", committish)}`, - sshurltemplate: ({domain, user, project, committish}) => `git+ssh://git@${domain}/${user}/${project}.git${maybeJoin("#", committish)}`, - browsetemplate: ({domain, user, project, committish, treepath}) => `https://${domain}/${user}/${project}${maybeJoin("/", treepath, "/", maybeEncode(committish))}`, - browsefiletemplate: ({domain, user, project, committish, treepath, path, fragment, hashformat}) => `https://${domain}/${user}/${project}/${treepath}/${maybeEncode(committish || "master")}/${path}${maybeJoin("#", hashformat(fragment || ""))}`, - docstemplate: ({domain, user, project, treepath, committish}) => `https://${domain}/${user}/${project}${maybeJoin("/", treepath, "/", maybeEncode(committish))}#readme`, - httpstemplate: ({auth, domain, user, project, committish}) => `git+https://${maybeJoin(auth, "@")}${domain}/${user}/${project}.git${maybeJoin("#", committish)}`, - filetemplate: ({domain, user, project, committish, path}) => `https://${domain}/${user}/${project}/raw/${maybeEncode(committish) || "master"}/${path}`, - shortcuttemplate: ({type, user, project, committish}) => `${type}:${user}/${project}${maybeJoin("#", committish)}`, - pathtemplate: ({user, project, committish}) => `${user}/${project}${maybeJoin("#", committish)}`, - bugstemplate: ({domain, user, project}) => `https://${domain}/${user}/${project}/issues`, - hashformat: formatHashFragment - }; - var gitHosts = {}; - gitHosts.github = Object.assign({}, defaults, { - protocols: ["git:", "http:", "git+ssh:", "git+https:", "ssh:", "https:"], - domain: "github.com", - treepath: "tree", - filetemplate: ({auth, user, project, committish, path}) => `https://${maybeJoin(auth, "@")}raw.githubusercontent.com/${user}/${project}/${maybeEncode(committish) || "master"}/${path}`, - gittemplate: ({auth, domain, user, project, committish}) => `git://${maybeJoin(auth, "@")}${domain}/${user}/${project}.git${maybeJoin("#", committish)}`, - tarballtemplate: ({domain, user, project, committish}) => `https://codeload.${domain}/${user}/${project}/tar.gz/${maybeEncode(committish) || "master"}`, - extract: (url) => { - let [, user, project, type, committish] = url.pathname.split("/", 5); - if (type && type !== "tree") { - return; - } - if (!type) { - committish = url.hash.slice(1); - } - if (project && project.endsWith(".git")) { - project = project.slice(0, -4); - } - if (!user || !project) { - return; - } - return {user, project, committish}; - } - }); - gitHosts.bitbucket = Object.assign({}, defaults, { - protocols: ["git+ssh:", "git+https:", "ssh:", "https:"], - domain: "bitbucket.org", - treepath: "src", - tarballtemplate: ({domain, user, project, committish}) => `https://${domain}/${user}/${project}/get/${maybeEncode(committish) || "master"}.tar.gz`, - extract: (url) => { - let [, user, project, aux] = url.pathname.split("/", 4); - if (["get"].includes(aux)) { - return; - } - if (project && project.endsWith(".git")) { - project = project.slice(0, -4); - } - if (!user || !project) { - return; - } - return {user, project, committish: url.hash.slice(1)}; - } - }); - gitHosts.gitlab = Object.assign({}, defaults, { - protocols: ["git+ssh:", "git+https:", "ssh:", "https:"], - domain: "gitlab.com", - treepath: "tree", - httpstemplate: ({auth, domain, user, project, committish}) => `git+https://${maybeJoin(auth, "@")}${domain}/${user}/${project}.git${maybeJoin("#", committish)}`, - tarballtemplate: ({domain, user, project, committish}) => `https://${domain}/${user}/${project}/repository/archive.tar.gz?ref=${maybeEncode(committish) || "master"}`, - extract: (url) => { - const path = url.pathname.slice(1); - if (path.includes("/-/") || path.includes("/archive.tar.gz")) { - return; - } - const segments = path.split("/"); - let project = segments.pop(); - if (project.endsWith(".git")) { - project = project.slice(0, -4); - } - const user = segments.join("/"); - if (!user || !project) { - return; - } - return {user, project, committish: url.hash.slice(1)}; - } - }); - gitHosts.gist = Object.assign({}, defaults, { - protocols: ["git:", "git+ssh:", "git+https:", "ssh:", "https:"], - domain: "gist.github.com", - sshtemplate: ({domain, project, committish}) => `git@${domain}:${project}.git${maybeJoin("#", committish)}`, - sshurltemplate: ({domain, project, committish}) => `git+ssh://git@${domain}/${project}.git${maybeJoin("#", committish)}`, - browsetemplate: ({domain, project, committish}) => `https://${domain}/${project}${maybeJoin("/", maybeEncode(committish))}`, - browsefiletemplate: ({domain, project, committish, path, hashformat}) => `https://${domain}/${project}${maybeJoin("/", maybeEncode(committish))}${maybeJoin("#", hashformat(path))}`, - docstemplate: ({domain, project, committish}) => `https://${domain}/${project}${maybeJoin("/", maybeEncode(committish))}`, - httpstemplate: ({domain, project, committish}) => `git+https://${domain}/${project}.git${maybeJoin("#", committish)}`, - filetemplate: ({user, project, committish, path}) => `https://gist.githubusercontent.com/${user}/${project}/raw${maybeJoin("/", maybeEncode(committish))}/${path}`, - shortcuttemplate: ({type, project, committish}) => `${type}:${project}${maybeJoin("#", committish)}`, - pathtemplate: ({project, committish}) => `${project}${maybeJoin("#", committish)}`, - bugstemplate: ({domain, project}) => `https://${domain}/${project}`, - gittemplate: ({domain, project, committish}) => `git://${domain}/${project}.git${maybeJoin("#", committish)}`, - tarballtemplate: ({project, committish}) => `https://codeload.github.com/gist/${project}/tar.gz/${maybeEncode(committish) || "master"}`, - extract: (url) => { - let [, user, project, aux] = url.pathname.split("/", 4); - if (aux === "raw") { - return; - } - if (!project) { - if (!user) { - return; - } - project = user; - user = null; - } - if (project.endsWith(".git")) { - project = project.slice(0, -4); - } - return {user, project, committish: url.hash.slice(1)}; - }, - hashformat: function(fragment) { - return fragment && "file-" + formatHashFragment(fragment); - } - }); - gitHosts.sourcehut = Object.assign({}, defaults, { - protocols: ["git+ssh:", "https:"], - domain: "git.sr.ht", - treepath: "tree", - browsefiletemplate: ({domain, user, project, committish, treepath, path, fragment, hashformat}) => `https://${domain}/${user}/${project}/${treepath}/${maybeEncode(committish || "main")}/${path}${maybeJoin("#", hashformat(fragment || ""))}`, - filetemplate: ({domain, user, project, committish, path}) => `https://${domain}/${user}/${project}/blob/${maybeEncode(committish) || "main"}/${path}`, - httpstemplate: ({domain, user, project, committish}) => `https://${domain}/${user}/${project}.git${maybeJoin("#", committish)}`, - tarballtemplate: ({domain, user, project, committish}) => `https://${domain}/${user}/${project}/archive/${maybeEncode(committish) || "main"}.tar.gz`, - bugstemplate: ({domain, user, project}) => `https://todo.sr.ht/${user}/${project}`, - docstemplate: ({domain, user, project, treepath, committish}) => `https://${domain}/${user}/${project}${maybeJoin("/", treepath, "/", maybeEncode(committish))}#readme`, - extract: (url) => { - let [, user, project, aux] = url.pathname.split("/", 4); - if (["archive"].includes(aux)) { - return; - } - if (project && project.endsWith(".git")) { - project = project.slice(0, -4); - } - if (!user || !project) { - return; - } - return {user, project, committish: url.hash.slice(1)}; - } - }); - var names = Object.keys(gitHosts); - gitHosts.byShortcut = {}; - gitHosts.byDomain = {}; - for (const name of names) { - gitHosts.byShortcut[`${name}:`] = name; - gitHosts.byDomain[gitHosts[name].domain] = name; - } - function formatHashFragment(fragment) { - return fragment.toLowerCase().replace(/^\W+|\/|\W+$/g, "").replace(/\W+/g, "-"); - } - module.exports = gitHosts; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/hosted-git-info-npm-4.1.0-4efcdf8fd3-c3f87b3c2f.zip/node_modules/hosted-git-info/git-host.js - var require_git_host = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/hosted-git-info-npm-4.1.0-4efcdf8fd3-c3f87b3c2f.zip/node_modules/hosted-git-info/git-host.js"(exports, module) { - "use strict"; - var gitHosts = require_git_host_info(); - var GitHost = class { - constructor(type, user, auth, project, committish, defaultRepresentation, opts = {}) { - Object.assign(this, gitHosts[type]); - this.type = type; - this.user = user; - this.auth = auth; - this.project = project; - this.committish = committish; - this.default = defaultRepresentation; - this.opts = opts; - } - hash() { - return this.committish ? `#${this.committish}` : ""; - } - ssh(opts) { - return this._fill(this.sshtemplate, opts); - } - _fill(template, opts) { - if (typeof template === "function") { - const options = __spreadValues(__spreadValues(__spreadValues({}, this), this.opts), opts); - if (!options.path) { - options.path = ""; - } - if (options.path.startsWith("/")) { - options.path = options.path.slice(1); - } - if (options.noCommittish) { - options.committish = null; - } - const result = template(options); - return options.noGitPlus && result.startsWith("git+") ? result.slice(4) : result; - } - return null; - } - sshurl(opts) { - return this._fill(this.sshurltemplate, opts); - } - browse(path, fragment, opts) { - if (typeof path !== "string") { - return this._fill(this.browsetemplate, path); - } - if (typeof fragment !== "string") { - opts = fragment; - fragment = null; - } - return this._fill(this.browsefiletemplate, __spreadProps(__spreadValues({}, opts), {fragment, path})); - } - docs(opts) { - return this._fill(this.docstemplate, opts); - } - bugs(opts) { - return this._fill(this.bugstemplate, opts); - } - https(opts) { - return this._fill(this.httpstemplate, opts); - } - git(opts) { - return this._fill(this.gittemplate, opts); - } - shortcut(opts) { - return this._fill(this.shortcuttemplate, opts); - } - path(opts) { - return this._fill(this.pathtemplate, opts); - } - tarball(opts) { - return this._fill(this.tarballtemplate, __spreadProps(__spreadValues({}, opts), {noCommittish: false})); - } - file(path, opts) { - return this._fill(this.filetemplate, __spreadProps(__spreadValues({}, opts), {path})); - } - getDefaultRepresentation() { - return this.default; - } - toString(opts) { - if (this.default && typeof this[this.default] === "function") { - return this[this.default](opts); - } - return this.sshurl(opts); - } - }; - module.exports = GitHost; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/yallist-npm-4.0.0-b493d9e907-343617202a.zip/node_modules/yallist/iterator.js - var require_iterator = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/yallist-npm-4.0.0-b493d9e907-343617202a.zip/node_modules/yallist/iterator.js"(exports, module) { - "use strict"; - module.exports = function(Yallist) { - Yallist.prototype[Symbol.iterator] = function* () { - for (let walker = this.head; walker; walker = walker.next) { - yield walker.value; - } - }; - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/yallist-npm-4.0.0-b493d9e907-343617202a.zip/node_modules/yallist/yallist.js - var require_yallist = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/yallist-npm-4.0.0-b493d9e907-343617202a.zip/node_modules/yallist/yallist.js"(exports, module) { - "use strict"; - module.exports = Yallist; - Yallist.Node = Node; - Yallist.create = Yallist; - function Yallist(list) { - var self2 = this; - if (!(self2 instanceof Yallist)) { - self2 = new Yallist(); - } - self2.tail = null; - self2.head = null; - self2.length = 0; - if (list && typeof list.forEach === "function") { - list.forEach(function(item) { - self2.push(item); - }); - } else if (arguments.length > 0) { - for (var i = 0, l = arguments.length; i < l; i++) { - self2.push(arguments[i]); - } - } - return self2; - } - Yallist.prototype.removeNode = function(node) { - if (node.list !== this) { - throw new Error("removing node which does not belong to this list"); - } - var next = node.next; - var prev = node.prev; - if (next) { - next.prev = prev; - } - if (prev) { - prev.next = next; - } - if (node === this.head) { - this.head = next; - } - if (node === this.tail) { - this.tail = prev; - } - node.list.length--; - node.next = null; - node.prev = null; - node.list = null; - return next; - }; - Yallist.prototype.unshiftNode = function(node) { - if (node === this.head) { - return; - } - if (node.list) { - node.list.removeNode(node); - } - var head = this.head; - node.list = this; - node.next = head; - if (head) { - head.prev = node; - } - this.head = node; - if (!this.tail) { - this.tail = node; - } - this.length++; - }; - Yallist.prototype.pushNode = function(node) { - if (node === this.tail) { - return; - } - if (node.list) { - node.list.removeNode(node); - } - var tail = this.tail; - node.list = this; - node.prev = tail; - if (tail) { - tail.next = node; - } - this.tail = node; - if (!this.head) { - this.head = node; - } - this.length++; - }; - Yallist.prototype.push = function() { - for (var i = 0, l = arguments.length; i < l; i++) { - push(this, arguments[i]); - } - return this.length; - }; - Yallist.prototype.unshift = function() { - for (var i = 0, l = arguments.length; i < l; i++) { - unshift(this, arguments[i]); - } - return this.length; - }; - Yallist.prototype.pop = function() { - if (!this.tail) { - return void 0; - } - var res = this.tail.value; - this.tail = this.tail.prev; - if (this.tail) { - this.tail.next = null; - } else { - this.head = null; - } - this.length--; - return res; - }; - Yallist.prototype.shift = function() { - if (!this.head) { - return void 0; - } - var res = this.head.value; - this.head = this.head.next; - if (this.head) { - this.head.prev = null; - } else { - this.tail = null; - } - this.length--; - return res; - }; - Yallist.prototype.forEach = function(fn, thisp) { - thisp = thisp || this; - for (var walker = this.head, i = 0; walker !== null; i++) { - fn.call(thisp, walker.value, i, this); - walker = walker.next; - } - }; - Yallist.prototype.forEachReverse = function(fn, thisp) { - thisp = thisp || this; - for (var walker = this.tail, i = this.length - 1; walker !== null; i--) { - fn.call(thisp, walker.value, i, this); - walker = walker.prev; - } - }; - Yallist.prototype.get = function(n) { - for (var i = 0, walker = this.head; walker !== null && i < n; i++) { - walker = walker.next; - } - if (i === n && walker !== null) { - return walker.value; - } - }; - Yallist.prototype.getReverse = function(n) { - for (var i = 0, walker = this.tail; walker !== null && i < n; i++) { - walker = walker.prev; - } - if (i === n && walker !== null) { - return walker.value; - } - }; - Yallist.prototype.map = function(fn, thisp) { - thisp = thisp || this; - var res = new Yallist(); - for (var walker = this.head; walker !== null; ) { - res.push(fn.call(thisp, walker.value, this)); - walker = walker.next; - } - return res; - }; - Yallist.prototype.mapReverse = function(fn, thisp) { - thisp = thisp || this; - var res = new Yallist(); - for (var walker = this.tail; walker !== null; ) { - res.push(fn.call(thisp, walker.value, this)); - walker = walker.prev; - } - return res; - }; - Yallist.prototype.reduce = function(fn, initial) { - var acc; - var walker = this.head; - if (arguments.length > 1) { - acc = initial; - } else if (this.head) { - walker = this.head.next; - acc = this.head.value; - } else { - throw new TypeError("Reduce of empty list with no initial value"); - } - for (var i = 0; walker !== null; i++) { - acc = fn(acc, walker.value, i); - walker = walker.next; - } - return acc; - }; - Yallist.prototype.reduceReverse = function(fn, initial) { - var acc; - var walker = this.tail; - if (arguments.length > 1) { - acc = initial; - } else if (this.tail) { - walker = this.tail.prev; - acc = this.tail.value; - } else { - throw new TypeError("Reduce of empty list with no initial value"); - } - for (var i = this.length - 1; walker !== null; i--) { - acc = fn(acc, walker.value, i); - walker = walker.prev; - } - return acc; - }; - Yallist.prototype.toArray = function() { - var arr = new Array(this.length); - for (var i = 0, walker = this.head; walker !== null; i++) { - arr[i] = walker.value; - walker = walker.next; - } - return arr; - }; - Yallist.prototype.toArrayReverse = function() { - var arr = new Array(this.length); - for (var i = 0, walker = this.tail; walker !== null; i++) { - arr[i] = walker.value; - walker = walker.prev; - } - return arr; - }; - Yallist.prototype.slice = function(from, to) { - to = to || this.length; - if (to < 0) { - to += this.length; - } - from = from || 0; - if (from < 0) { - from += this.length; - } - var ret = new Yallist(); - if (to < from || to < 0) { - return ret; - } - if (from < 0) { - from = 0; - } - if (to > this.length) { - to = this.length; - } - for (var i = 0, walker = this.head; walker !== null && i < from; i++) { - walker = walker.next; - } - for (; walker !== null && i < to; i++, walker = walker.next) { - ret.push(walker.value); - } - return ret; - }; - Yallist.prototype.sliceReverse = function(from, to) { - to = to || this.length; - if (to < 0) { - to += this.length; - } - from = from || 0; - if (from < 0) { - from += this.length; - } - var ret = new Yallist(); - if (to < from || to < 0) { - return ret; - } - if (from < 0) { - from = 0; - } - if (to > this.length) { - to = this.length; - } - for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) { - walker = walker.prev; - } - for (; walker !== null && i > from; i--, walker = walker.prev) { - ret.push(walker.value); - } - return ret; - }; - Yallist.prototype.splice = function(start, deleteCount, ...nodes) { - if (start > this.length) { - start = this.length - 1; - } - if (start < 0) { - start = this.length + start; - } - for (var i = 0, walker = this.head; walker !== null && i < start; i++) { - walker = walker.next; - } - var ret = []; - for (var i = 0; walker && i < deleteCount; i++) { - ret.push(walker.value); - walker = this.removeNode(walker); - } - if (walker === null) { - walker = this.tail; - } - if (walker !== this.head && walker !== this.tail) { - walker = walker.prev; - } - for (var i = 0; i < nodes.length; i++) { - walker = insert(this, walker, nodes[i]); - } - return ret; - }; - Yallist.prototype.reverse = function() { - var head = this.head; - var tail = this.tail; - for (var walker = head; walker !== null; walker = walker.prev) { - var p = walker.prev; - walker.prev = walker.next; - walker.next = p; - } - this.head = tail; - this.tail = head; - return this; - }; - function insert(self2, node, value) { - var inserted = node === self2.head ? new Node(value, null, node, self2) : new Node(value, node, node.next, self2); - if (inserted.next === null) { - self2.tail = inserted; - } - if (inserted.prev === null) { - self2.head = inserted; - } - self2.length++; - return inserted; - } - function push(self2, item) { - self2.tail = new Node(item, self2.tail, null, self2); - if (!self2.head) { - self2.head = self2.tail; - } - self2.length++; - } - function unshift(self2, item) { - self2.head = new Node(item, null, self2.head, self2); - if (!self2.tail) { - self2.tail = self2.head; - } - self2.length++; - } - function Node(value, prev, next, list) { - if (!(this instanceof Node)) { - return new Node(value, prev, next, list); - } - this.list = list; - this.value = value; - if (prev) { - prev.next = this; - this.prev = prev; - } else { - this.prev = null; - } - if (next) { - next.prev = this; - this.next = next; - } else { - this.next = null; - } - } - try { - require_iterator()(Yallist); - } catch (er) { - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lru-cache-npm-6.0.0-b4c8668fe1-f97f499f89.zip/node_modules/lru-cache/index.js - var require_lru_cache = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/lru-cache-npm-6.0.0-b4c8668fe1-f97f499f89.zip/node_modules/lru-cache/index.js"(exports, module) { - "use strict"; - var Yallist = require_yallist(); - var MAX = Symbol("max"); - var LENGTH = Symbol("length"); - var LENGTH_CALCULATOR = Symbol("lengthCalculator"); - var ALLOW_STALE = Symbol("allowStale"); - var MAX_AGE = Symbol("maxAge"); - var DISPOSE = Symbol("dispose"); - var NO_DISPOSE_ON_SET = Symbol("noDisposeOnSet"); - var LRU_LIST = Symbol("lruList"); - var CACHE = Symbol("cache"); - var UPDATE_AGE_ON_GET = Symbol("updateAgeOnGet"); - var naiveLength = () => 1; - var LRUCache = class { - constructor(options) { - if (typeof options === "number") - options = {max: options}; - if (!options) - options = {}; - if (options.max && (typeof options.max !== "number" || options.max < 0)) - throw new TypeError("max must be a non-negative number"); - const max = this[MAX] = options.max || Infinity; - const lc = options.length || naiveLength; - this[LENGTH_CALCULATOR] = typeof lc !== "function" ? naiveLength : lc; - this[ALLOW_STALE] = options.stale || false; - if (options.maxAge && typeof options.maxAge !== "number") - throw new TypeError("maxAge must be a number"); - this[MAX_AGE] = options.maxAge || 0; - this[DISPOSE] = options.dispose; - this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false; - this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false; - this.reset(); - } - set max(mL) { - if (typeof mL !== "number" || mL < 0) - throw new TypeError("max must be a non-negative number"); - this[MAX] = mL || Infinity; - trim(this); - } - get max() { - return this[MAX]; - } - set allowStale(allowStale) { - this[ALLOW_STALE] = !!allowStale; - } - get allowStale() { - return this[ALLOW_STALE]; - } - set maxAge(mA) { - if (typeof mA !== "number") - throw new TypeError("maxAge must be a non-negative number"); - this[MAX_AGE] = mA; - trim(this); - } - get maxAge() { - return this[MAX_AGE]; - } - set lengthCalculator(lC) { - if (typeof lC !== "function") - lC = naiveLength; - if (lC !== this[LENGTH_CALCULATOR]) { - this[LENGTH_CALCULATOR] = lC; - this[LENGTH] = 0; - this[LRU_LIST].forEach((hit) => { - hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key); - this[LENGTH] += hit.length; - }); - } - trim(this); - } - get lengthCalculator() { - return this[LENGTH_CALCULATOR]; - } - get length() { - return this[LENGTH]; - } - get itemCount() { - return this[LRU_LIST].length; - } - rforEach(fn, thisp) { - thisp = thisp || this; - for (let walker = this[LRU_LIST].tail; walker !== null; ) { - const prev = walker.prev; - forEachStep(this, fn, walker, thisp); - walker = prev; - } - } - forEach(fn, thisp) { - thisp = thisp || this; - for (let walker = this[LRU_LIST].head; walker !== null; ) { - const next = walker.next; - forEachStep(this, fn, walker, thisp); - walker = next; - } - } - keys() { - return this[LRU_LIST].toArray().map((k) => k.key); - } - values() { - return this[LRU_LIST].toArray().map((k) => k.value); - } - reset() { - if (this[DISPOSE] && this[LRU_LIST] && this[LRU_LIST].length) { - this[LRU_LIST].forEach((hit) => this[DISPOSE](hit.key, hit.value)); - } - this[CACHE] = new Map(); - this[LRU_LIST] = new Yallist(); - this[LENGTH] = 0; - } - dump() { - return this[LRU_LIST].map((hit) => isStale(this, hit) ? false : { - k: hit.key, - v: hit.value, - e: hit.now + (hit.maxAge || 0) - }).toArray().filter((h) => h); - } - dumpLru() { - return this[LRU_LIST]; - } - set(key, value, maxAge) { - maxAge = maxAge || this[MAX_AGE]; - if (maxAge && typeof maxAge !== "number") - throw new TypeError("maxAge must be a number"); - const now = maxAge ? Date.now() : 0; - const len = this[LENGTH_CALCULATOR](value, key); - if (this[CACHE].has(key)) { - if (len > this[MAX]) { - del(this, this[CACHE].get(key)); - return false; - } - const node = this[CACHE].get(key); - const item = node.value; - if (this[DISPOSE]) { - if (!this[NO_DISPOSE_ON_SET]) - this[DISPOSE](key, item.value); - } - item.now = now; - item.maxAge = maxAge; - item.value = value; - this[LENGTH] += len - item.length; - item.length = len; - this.get(key); - trim(this); - return true; - } - const hit = new Entry(key, value, len, now, maxAge); - if (hit.length > this[MAX]) { - if (this[DISPOSE]) - this[DISPOSE](key, value); - return false; - } - this[LENGTH] += hit.length; - this[LRU_LIST].unshift(hit); - this[CACHE].set(key, this[LRU_LIST].head); - trim(this); - return true; - } - has(key) { - if (!this[CACHE].has(key)) - return false; - const hit = this[CACHE].get(key).value; - return !isStale(this, hit); - } - get(key) { - return get(this, key, true); - } - peek(key) { - return get(this, key, false); - } - pop() { - const node = this[LRU_LIST].tail; - if (!node) - return null; - del(this, node); - return node.value; - } - del(key) { - del(this, this[CACHE].get(key)); - } - load(arr) { - this.reset(); - const now = Date.now(); - for (let l = arr.length - 1; l >= 0; l--) { - const hit = arr[l]; - const expiresAt = hit.e || 0; - if (expiresAt === 0) - this.set(hit.k, hit.v); - else { - const maxAge = expiresAt - now; - if (maxAge > 0) { - this.set(hit.k, hit.v, maxAge); - } - } - } - } - prune() { - this[CACHE].forEach((value, key) => get(this, key, false)); - } - }; - var get = (self2, key, doUse) => { - const node = self2[CACHE].get(key); - if (node) { - const hit = node.value; - if (isStale(self2, hit)) { - del(self2, node); - if (!self2[ALLOW_STALE]) - return void 0; - } else { - if (doUse) { - if (self2[UPDATE_AGE_ON_GET]) - node.value.now = Date.now(); - self2[LRU_LIST].unshiftNode(node); - } - } - return hit.value; - } - }; - var isStale = (self2, hit) => { - if (!hit || !hit.maxAge && !self2[MAX_AGE]) - return false; - const diff = Date.now() - hit.now; - return hit.maxAge ? diff > hit.maxAge : self2[MAX_AGE] && diff > self2[MAX_AGE]; - }; - var trim = (self2) => { - if (self2[LENGTH] > self2[MAX]) { - for (let walker = self2[LRU_LIST].tail; self2[LENGTH] > self2[MAX] && walker !== null; ) { - const prev = walker.prev; - del(self2, walker); - walker = prev; - } - } - }; - var del = (self2, node) => { - if (node) { - const hit = node.value; - if (self2[DISPOSE]) - self2[DISPOSE](hit.key, hit.value); - self2[LENGTH] -= hit.length; - self2[CACHE].delete(hit.key); - self2[LRU_LIST].removeNode(node); - } - }; - var Entry = class { - constructor(key, value, length, now, maxAge) { - this.key = key; - this.value = value; - this.length = length; - this.now = now; - this.maxAge = maxAge || 0; - } - }; - var forEachStep = (self2, fn, node, thisp) => { - let hit = node.value; - if (isStale(self2, hit)) { - del(self2, node); - if (!self2[ALLOW_STALE]) - hit = void 0; - } - if (hit) - fn.call(thisp, hit.value, hit.key, self2); - }; - module.exports = LRUCache; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/hosted-git-info-npm-4.1.0-4efcdf8fd3-c3f87b3c2f.zip/node_modules/hosted-git-info/index.js - var require_hosted_git_info = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/hosted-git-info-npm-4.1.0-4efcdf8fd3-c3f87b3c2f.zip/node_modules/hosted-git-info/index.js"(exports, module) { - "use strict"; - var url = __require("url"); - var gitHosts = require_git_host_info(); - var GitHost = module.exports = require_git_host(); - var LRU = require_lru_cache(); - var cache = new LRU({max: 1e3}); - var protocolToRepresentationMap = { - "git+ssh:": "sshurl", - "git+https:": "https", - "ssh:": "sshurl", - "git:": "git" - }; - function protocolToRepresentation(protocol) { - return protocolToRepresentationMap[protocol] || protocol.slice(0, -1); - } - var authProtocols = { - "git:": true, - "https:": true, - "git+https:": true, - "http:": true, - "git+http:": true - }; - var knownProtocols = Object.keys(gitHosts.byShortcut).concat(["http:", "https:", "git:", "git+ssh:", "git+https:", "ssh:"]); - module.exports.fromUrl = function(giturl, opts) { - if (typeof giturl !== "string") { - return; - } - const key = giturl + JSON.stringify(opts || {}); - if (!cache.has(key)) { - cache.set(key, fromUrl(giturl, opts)); - } - return cache.get(key); - }; - function fromUrl(giturl, opts) { - if (!giturl) { - return; - } - const url2 = isGitHubShorthand(giturl) ? "github:" + giturl : correctProtocol(giturl); - const parsed = parseGitUrl(url2); - if (!parsed) { - return parsed; - } - const gitHostShortcut = gitHosts.byShortcut[parsed.protocol]; - const gitHostDomain = gitHosts.byDomain[parsed.hostname.startsWith("www.") ? parsed.hostname.slice(4) : parsed.hostname]; - const gitHostName = gitHostShortcut || gitHostDomain; - if (!gitHostName) { - return; - } - const gitHostInfo = gitHosts[gitHostShortcut || gitHostDomain]; - let auth = null; - if (authProtocols[parsed.protocol] && (parsed.username || parsed.password)) { - auth = `${parsed.username}${parsed.password ? ":" + parsed.password : ""}`; - } - let committish = null; - let user = null; - let project = null; - let defaultRepresentation = null; - try { - if (gitHostShortcut) { - let pathname = parsed.pathname.startsWith("/") ? parsed.pathname.slice(1) : parsed.pathname; - const firstAt = pathname.indexOf("@"); - if (firstAt > -1) { - pathname = pathname.slice(firstAt + 1); - } - const lastSlash = pathname.lastIndexOf("/"); - if (lastSlash > -1) { - user = decodeURIComponent(pathname.slice(0, lastSlash)); - if (!user) { - user = null; - } - project = decodeURIComponent(pathname.slice(lastSlash + 1)); - } else { - project = decodeURIComponent(pathname); - } - if (project.endsWith(".git")) { - project = project.slice(0, -4); - } - if (parsed.hash) { - committish = decodeURIComponent(parsed.hash.slice(1)); - } - defaultRepresentation = "shortcut"; - } else { - if (!gitHostInfo.protocols.includes(parsed.protocol)) { - return; - } - const segments = gitHostInfo.extract(parsed); - if (!segments) { - return; - } - user = segments.user && decodeURIComponent(segments.user); - project = decodeURIComponent(segments.project); - committish = decodeURIComponent(segments.committish); - defaultRepresentation = protocolToRepresentation(parsed.protocol); - } - } catch (err) { - if (err instanceof URIError) { - return; - } else { - throw err; - } - } - return new GitHost(gitHostName, user, auth, project, committish, defaultRepresentation, opts); - } - var correctProtocol = (arg) => { - const firstColon = arg.indexOf(":"); - const proto = arg.slice(0, firstColon + 1); - if (knownProtocols.includes(proto)) { - return arg; - } - const firstAt = arg.indexOf("@"); - if (firstAt > -1) { - if (firstAt > firstColon) { - return `git+ssh://${arg}`; - } else { - return arg; - } - } - const doubleSlash = arg.indexOf("//"); - if (doubleSlash === firstColon + 1) { - return arg; - } - return arg.slice(0, firstColon + 1) + "//" + arg.slice(firstColon + 1); - }; - var isGitHubShorthand = (arg) => { - const firstHash = arg.indexOf("#"); - const firstSlash = arg.indexOf("/"); - const secondSlash = arg.indexOf("/", firstSlash + 1); - const firstColon = arg.indexOf(":"); - const firstSpace = /\s/.exec(arg); - const firstAt = arg.indexOf("@"); - const spaceOnlyAfterHash = !firstSpace || firstHash > -1 && firstSpace.index > firstHash; - const atOnlyAfterHash = firstAt === -1 || firstHash > -1 && firstAt > firstHash; - const colonOnlyAfterHash = firstColon === -1 || firstHash > -1 && firstColon > firstHash; - const secondSlashOnlyAfterHash = secondSlash === -1 || firstHash > -1 && secondSlash > firstHash; - const hasSlash = firstSlash > 0; - const doesNotEndWithSlash = firstHash > -1 ? arg[firstHash - 1] !== "/" : !arg.endsWith("/"); - const doesNotStartWithDot = !arg.startsWith("."); - return spaceOnlyAfterHash && hasSlash && doesNotEndWithSlash && doesNotStartWithDot && atOnlyAfterHash && colonOnlyAfterHash && secondSlashOnlyAfterHash; - }; - var correctUrl = (giturl) => { - const firstAt = giturl.indexOf("@"); - const lastHash = giturl.lastIndexOf("#"); - let firstColon = giturl.indexOf(":"); - let lastColon = giturl.lastIndexOf(":", lastHash > -1 ? lastHash : Infinity); - let corrected; - if (lastColon > firstAt) { - corrected = giturl.slice(0, lastColon) + "/" + giturl.slice(lastColon + 1); - firstColon = corrected.indexOf(":"); - lastColon = corrected.lastIndexOf(":"); - } - if (firstColon === -1 && giturl.indexOf("//") === -1) { - corrected = `git+ssh://${corrected}`; - } - return corrected; - }; - var parseGitUrl = (giturl) => { - let result; - try { - result = new url.URL(giturl); - } catch (err) { - } - if (result) { - return result; - } - const correctedUrl = correctUrl(giturl); - try { - result = new url.URL(correctedUrl); - } catch (err) { - } - return result; - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/@hutson-parse-repository-url-npm-3.0.2-ae5ef1b671-39992c5f18.zip/node_modules/@hutson/parse-repository-url/src/index.js - var require_src = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/@hutson-parse-repository-url-npm-3.0.2-ae5ef1b671-39992c5f18.zip/node_modules/@hutson/parse-repository-url/src/index.js"(exports, module) { - "use strict"; - var {parse} = __require("url"); - var URL_PATTERNS = new RegExp(/^\/?:?([/\w-.]+)\/([\w-.]+)\/?$/); - var GITHUB_API = new RegExp(/^\/repos\/([\w-.]+)\/([\w-.]+)\/(?:tarball|zipball)(?:\/.+)?$/); - var GITHUB_CODELOAD = new RegExp(/^\/([\w-.]+)\/([\w-.]+)\/(?:legacy\.(?:zip|tar\.gz))(?:\/.+)?$/); - module.exports = (url) => { - const modifiedURL = url.replace(/^git@/, `https://git@`).replace(/\.git$/, ``); - const parsedURL = parse(modifiedURL); - const format = (matches) => { - return {browse: createBrowseURL(parsedURL, matches), domain: parsedURL.host, project: matches[2] || null, type: getType(parsedURL), user: matches[1] || null}; - }; - if (parsedURL.host) { - if (parsedURL.host.includes(`api.github.com`)) { - const matches = GITHUB_API.exec(parsedURL.pathname) || []; - return format(matches); - } - if (parsedURL.host.includes(`codeload.github.com`)) { - const matches = GITHUB_CODELOAD.exec(parsedURL.pathname) || []; - return format(matches); - } - } - return format(URL_PATTERNS.exec(parsedURL.pathname) || []); - }; - function getType(parsedURL) { - if (typeof parsedURL.host !== `string`) { - return null; - } - if (parsedURL.host.indexOf(`github`) !== -1) { - return "github"; - } - if (parsedURL.host.indexOf(`gitlab`) !== -1) { - return "gitlab"; - } - return null; - } - function createBrowseURL(parsedURL, matches) { - const protocol = parsedURL.protocol === `http:` ? `http:` : `https:`; - const browseURL = `${protocol}//${parsedURL.host}/${matches[1]}/${matches[2]}`; - return () => { - return browseURL; - }; - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/get-pkg-repo-npm-4.2.1-b1cd052cb4-5abf169137.zip/node_modules/get-pkg-repo/src/index.js - var require_src2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/get-pkg-repo-npm-4.2.1-b1cd052cb4-5abf169137.zip/node_modules/get-pkg-repo/src/index.js"(exports, module) { - "use strict"; - var hostedGitInfo = require_hosted_git_info(); - var parseRepositoryURL = require_src(); - module.exports = (packageData) => { - if (!packageData || !packageData.repository || typeof packageData.repository !== "string" && !packageData.repository.url) { - throw new Error(`No valid "repository" data found in package metadata. Please see https://docs.npmjs.com/files/package.json#repository for proper syntax.`); - } - const repositoryURL = typeof packageData.repository === "string" ? packageData.repository : packageData.repository.url; - return hostedGitInfo.fromUrl(repositoryURL) || parseRepositoryURL(repositoryURL); - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/git-semver-tags-npm-4.1.1-93b9747811-e16d02a515.zip/node_modules/git-semver-tags/index.js - var require_git_semver_tags = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/git-semver-tags-npm-4.1.1-93b9747811-e16d02a515.zip/node_modules/git-semver-tags/index.js"(exports, module) { - "use strict"; - var proc = __require("process"); - var exec = __require("child_process").exec; - var semverValid = __require("semver").valid; - var regex = /tag:\s*(.+?)[,)]/gi; - var cmd = "git log --decorate --no-color"; - var unstableTagTest = /.+-\w+\.\d+$/; - function lernaTag(tag, pkg) { - if (pkg && !new RegExp("^" + pkg + "@").test(tag)) { - return false; - } else { - return /^.+@[0-9]+\.[0-9]+\.[0-9]+(-.+)?$/.test(tag); - } - } - module.exports = function gitSemverTags2(opts, callback) { - if (typeof opts === "function") { - callback = opts; - opts = {}; - } - const options = Object.assign({maxBuffer: Infinity, cwd: proc.cwd()}, opts); - if (options.package && !options.lernaTags) { - callback(new Error("opts.package should only be used when running in lerna mode")); - return; - } - exec(cmd, options, function(err, data) { - if (err) { - callback(err); - return; - } - const tags = []; - let tagPrefixRegexp; - if (options.tagPrefix) { - tagPrefixRegexp = new RegExp("^" + options.tagPrefix + "(.*)"); - } - data.split("\n").forEach(function(decorations) { - let match; - while (match = regex.exec(decorations)) { - const tag = match[1]; - if (options.skipUnstable && unstableTagTest.test(tag)) { - continue; - } - if (options.lernaTags) { - if (lernaTag(tag, options.package)) { - tags.push(tag); - } - } else if (options.tagPrefix) { - const matches = tag.match(tagPrefixRegexp); - if (matches && semverValid(matches[1])) { - tags.push(tag); - } - } else if (semverValid(tag)) { - tags.push(tag); - } - } - }); - callback(null, tags); - }); - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip/node_modules/semver/internal/constants.js - var require_constants = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip/node_modules/semver/internal/constants.js"(exports, module) { - var SEMVER_SPEC_VERSION = "2.0.0"; - var MAX_LENGTH = 256; - var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991; - var MAX_SAFE_COMPONENT_LENGTH = 16; - module.exports = { - SEMVER_SPEC_VERSION, - MAX_LENGTH, - MAX_SAFE_INTEGER, - MAX_SAFE_COMPONENT_LENGTH - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip/node_modules/semver/internal/debug.js - var require_debug = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip/node_modules/semver/internal/debug.js"(exports, module) { - var debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => { - }; - module.exports = debug; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip/node_modules/semver/internal/re.js - var require_re = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip/node_modules/semver/internal/re.js"(exports, module) { - var {MAX_SAFE_COMPONENT_LENGTH} = require_constants(); - var debug = require_debug(); - exports = module.exports = {}; - var re = exports.re = []; - var src = exports.src = []; - var t = exports.t = {}; - var R = 0; - var createToken = (name, value, isGlobal) => { - const index2 = R++; - debug(name, index2, value); - t[name] = index2; - src[index2] = value; - re[index2] = new RegExp(value, isGlobal ? "g" : void 0); - }; - createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*"); - createToken("NUMERICIDENTIFIERLOOSE", "[0-9]+"); - createToken("NONNUMERICIDENTIFIER", "\\d*[a-zA-Z-][a-zA-Z0-9-]*"); - createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`); - createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`); - createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`); - createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`); - createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`); - createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`); - createToken("BUILDIDENTIFIER", "[0-9A-Za-z-]+"); - createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`); - createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`); - createToken("FULL", `^${src[t.FULLPLAIN]}$`); - createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`); - createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`); - createToken("GTLT", "((?:<|>)?=?)"); - createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`); - createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`); - createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`); - createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`); - createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`); - createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`); - createToken("COERCE", `${"(^|[^\\d])(\\d{1,"}${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:$|[^\\d])`); - createToken("COERCERTL", src[t.COERCE], true); - createToken("LONETILDE", "(?:~>?)"); - createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true); - exports.tildeTrimReplace = "$1~"; - createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`); - createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`); - createToken("LONECARET", "(?:\\^)"); - createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true); - exports.caretTrimReplace = "$1^"; - createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`); - createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`); - createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`); - createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`); - createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true); - exports.comparatorTrimReplace = "$1$2$3"; - createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`); - createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`); - createToken("STAR", "(<|>)?=?\\s*\\*"); - createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"); - createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$"); - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip/node_modules/semver/internal/parse-options.js - var require_parse_options = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip/node_modules/semver/internal/parse-options.js"(exports, module) { - var opts = ["includePrerelease", "loose", "rtl"]; - var parseOptions = (options) => !options ? {} : typeof options !== "object" ? {loose: true} : opts.filter((k) => options[k]).reduce((o, k) => { - o[k] = true; - return o; - }, {}); - module.exports = parseOptions; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip/node_modules/semver/internal/identifiers.js - var require_identifiers = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip/node_modules/semver/internal/identifiers.js"(exports, module) { - var numeric = /^[0-9]+$/; - var compareIdentifiers = (a, b) => { - const anum = numeric.test(a); - const bnum = numeric.test(b); - if (anum && bnum) { - a = +a; - b = +b; - } - return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1; - }; - var rcompareIdentifiers = (a, b) => compareIdentifiers(b, a); - module.exports = { - compareIdentifiers, - rcompareIdentifiers - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip/node_modules/semver/classes/semver.js - var require_semver = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip/node_modules/semver/classes/semver.js"(exports, module) { - var debug = require_debug(); - var {MAX_LENGTH, MAX_SAFE_INTEGER} = require_constants(); - var {re, t} = require_re(); - var parseOptions = require_parse_options(); - var {compareIdentifiers} = require_identifiers(); - var SemVer3 = class { - constructor(version, options) { - options = parseOptions(options); - if (version instanceof SemVer3) { - if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) { - return version; - } else { - version = version.version; - } - } else if (typeof version !== "string") { - throw new TypeError(`Invalid Version: ${version}`); - } - if (version.length > MAX_LENGTH) { - throw new TypeError(`version is longer than ${MAX_LENGTH} characters`); - } - debug("SemVer", version, options); - this.options = options; - this.loose = !!options.loose; - this.includePrerelease = !!options.includePrerelease; - const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]); - if (!m) { - throw new TypeError(`Invalid Version: ${version}`); - } - this.raw = version; - this.major = +m[1]; - this.minor = +m[2]; - this.patch = +m[3]; - if (this.major > MAX_SAFE_INTEGER || this.major < 0) { - throw new TypeError("Invalid major version"); - } - if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) { - throw new TypeError("Invalid minor version"); - } - if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) { - throw new TypeError("Invalid patch version"); - } - if (!m[4]) { - this.prerelease = []; - } else { - this.prerelease = m[4].split(".").map((id) => { - if (/^[0-9]+$/.test(id)) { - const num = +id; - if (num >= 0 && num < MAX_SAFE_INTEGER) { - return num; - } - } - return id; - }); - } - this.build = m[5] ? m[5].split(".") : []; - this.format(); - } - format() { - this.version = `${this.major}.${this.minor}.${this.patch}`; - if (this.prerelease.length) { - this.version += `-${this.prerelease.join(".")}`; - } - return this.version; - } - toString() { - return this.version; - } - compare(other) { - debug("SemVer.compare", this.version, this.options, other); - if (!(other instanceof SemVer3)) { - if (typeof other === "string" && other === this.version) { - return 0; - } - other = new SemVer3(other, this.options); - } - if (other.version === this.version) { - return 0; - } - return this.compareMain(other) || this.comparePre(other); - } - compareMain(other) { - if (!(other instanceof SemVer3)) { - other = new SemVer3(other, this.options); - } - return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch); - } - comparePre(other) { - if (!(other instanceof SemVer3)) { - other = new SemVer3(other, this.options); - } - if (this.prerelease.length && !other.prerelease.length) { - return -1; - } else if (!this.prerelease.length && other.prerelease.length) { - return 1; - } else if (!this.prerelease.length && !other.prerelease.length) { - return 0; - } - let i = 0; - do { - const a = this.prerelease[i]; - const b = other.prerelease[i]; - debug("prerelease compare", i, a, b); - if (a === void 0 && b === void 0) { - return 0; - } else if (b === void 0) { - return 1; - } else if (a === void 0) { - return -1; - } else if (a === b) { - continue; - } else { - return compareIdentifiers(a, b); - } - } while (++i); - } - compareBuild(other) { - if (!(other instanceof SemVer3)) { - other = new SemVer3(other, this.options); - } - let i = 0; - do { - const a = this.build[i]; - const b = other.build[i]; - debug("prerelease compare", i, a, b); - if (a === void 0 && b === void 0) { - return 0; - } else if (b === void 0) { - return 1; - } else if (a === void 0) { - return -1; - } else if (a === b) { - continue; - } else { - return compareIdentifiers(a, b); - } - } while (++i); - } - inc(release, identifier) { - switch (release) { - case "premajor": - this.prerelease.length = 0; - this.patch = 0; - this.minor = 0; - this.major++; - this.inc("pre", identifier); - break; - case "preminor": - this.prerelease.length = 0; - this.patch = 0; - this.minor++; - this.inc("pre", identifier); - break; - case "prepatch": - this.prerelease.length = 0; - this.inc("patch", identifier); - this.inc("pre", identifier); - break; - case "prerelease": - if (this.prerelease.length === 0) { - this.inc("patch", identifier); - } - this.inc("pre", identifier); - break; - case "major": - if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) { - this.major++; - } - this.minor = 0; - this.patch = 0; - this.prerelease = []; - break; - case "minor": - if (this.patch !== 0 || this.prerelease.length === 0) { - this.minor++; - } - this.patch = 0; - this.prerelease = []; - break; - case "patch": - if (this.prerelease.length === 0) { - this.patch++; - } - this.prerelease = []; - break; - case "pre": - if (this.prerelease.length === 0) { - this.prerelease = [0]; - } else { - let i = this.prerelease.length; - while (--i >= 0) { - if (typeof this.prerelease[i] === "number") { - this.prerelease[i]++; - i = -2; - } - } - if (i === -1) { - this.prerelease.push(0); - } - } - if (identifier) { - if (compareIdentifiers(this.prerelease[0], identifier) === 0) { - if (isNaN(this.prerelease[1])) { - this.prerelease = [identifier, 0]; - } - } else { - this.prerelease = [identifier, 0]; - } - } - break; - default: - throw new Error(`invalid increment argument: ${release}`); - } - this.format(); - this.raw = this.version; - return this; - } - }; - module.exports = SemVer3; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip/node_modules/semver/functions/parse.js - var require_parse = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip/node_modules/semver/functions/parse.js"(exports, module) { - var {MAX_LENGTH} = require_constants(); - var {re, t} = require_re(); - var SemVer3 = require_semver(); - var parseOptions = require_parse_options(); - var parse = (version, options) => { - options = parseOptions(options); - if (version instanceof SemVer3) { - return version; - } - if (typeof version !== "string") { - return null; - } - if (version.length > MAX_LENGTH) { - return null; - } - const r = options.loose ? re[t.LOOSE] : re[t.FULL]; - if (!r.test(version)) { - return null; - } - try { - return new SemVer3(version, options); - } catch (er) { - return null; - } - }; - module.exports = parse; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip/node_modules/semver/functions/valid.js - var require_valid = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip/node_modules/semver/functions/valid.js"(exports, module) { - var parse = require_parse(); - var valid = (version, options) => { - const v = parse(version, options); - return v ? v.version : null; - }; - module.exports = valid; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip/node_modules/semver/functions/clean.js - var require_clean = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/semver-npm-7.3.7-3bfe704194-2fa3e87756.zip/node_modules/semver/functions/clean.js"(exports, module) { - var parse = require_parse(); - var clean = (version, options) => { - const s = parse(version.trim().replace(/^[=v]+/, ""), options); - return s ? s.version : null; - }; - module.exports = clean; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/spdx-license-ids-npm-3.0.11-a8d9a5ff74-1da1acb090.zip/node_modules/spdx-license-ids/index.json - var require_spdx_license_ids = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/spdx-license-ids-npm-3.0.11-a8d9a5ff74-1da1acb090.zip/node_modules/spdx-license-ids/index.json"(exports, module) { - module.exports = [ - "0BSD", - "AAL", - "ADSL", - "AFL-1.1", - "AFL-1.2", - "AFL-2.0", - "AFL-2.1", - "AFL-3.0", - "AGPL-1.0-only", - "AGPL-1.0-or-later", - "AGPL-3.0-only", - "AGPL-3.0-or-later", - "AMDPLPA", - "AML", - "AMPAS", - "ANTLR-PD", - "ANTLR-PD-fallback", - "APAFML", - "APL-1.0", - "APSL-1.0", - "APSL-1.1", - "APSL-1.2", - "APSL-2.0", - "Abstyles", - "Adobe-2006", - "Adobe-Glyph", - "Afmparse", - "Aladdin", - "Apache-1.0", - "Apache-1.1", - "Apache-2.0", - "Artistic-1.0", - "Artistic-1.0-Perl", - "Artistic-1.0-cl8", - "Artistic-2.0", - "BSD-1-Clause", - "BSD-2-Clause", - "BSD-2-Clause-Patent", - "BSD-2-Clause-Views", - "BSD-3-Clause", - "BSD-3-Clause-Attribution", - "BSD-3-Clause-Clear", - "BSD-3-Clause-LBNL", - "BSD-3-Clause-Modification", - "BSD-3-Clause-No-Military-License", - "BSD-3-Clause-No-Nuclear-License", - "BSD-3-Clause-No-Nuclear-License-2014", - "BSD-3-Clause-No-Nuclear-Warranty", - "BSD-3-Clause-Open-MPI", - "BSD-4-Clause", - "BSD-4-Clause-Shortened", - "BSD-4-Clause-UC", - "BSD-Protection", - "BSD-Source-Code", - "BSL-1.0", - "BUSL-1.1", - "Bahyph", - "Barr", - "Beerware", - "BitTorrent-1.0", - "BitTorrent-1.1", - "BlueOak-1.0.0", - "Borceux", - "C-UDA-1.0", - "CAL-1.0", - "CAL-1.0-Combined-Work-Exception", - "CATOSL-1.1", - "CC-BY-1.0", - "CC-BY-2.0", - "CC-BY-2.5", - "CC-BY-2.5-AU", - "CC-BY-3.0", - "CC-BY-3.0-AT", - "CC-BY-3.0-DE", - "CC-BY-3.0-NL", - "CC-BY-3.0-US", - "CC-BY-4.0", - "CC-BY-NC-1.0", - "CC-BY-NC-2.0", - "CC-BY-NC-2.5", - "CC-BY-NC-3.0", - "CC-BY-NC-3.0-DE", - "CC-BY-NC-4.0", - "CC-BY-NC-ND-1.0", - "CC-BY-NC-ND-2.0", - "CC-BY-NC-ND-2.5", - "CC-BY-NC-ND-3.0", - "CC-BY-NC-ND-3.0-DE", - "CC-BY-NC-ND-3.0-IGO", - "CC-BY-NC-ND-4.0", - "CC-BY-NC-SA-1.0", - "CC-BY-NC-SA-2.0", - "CC-BY-NC-SA-2.0-FR", - "CC-BY-NC-SA-2.0-UK", - "CC-BY-NC-SA-2.5", - "CC-BY-NC-SA-3.0", - "CC-BY-NC-SA-3.0-DE", - "CC-BY-NC-SA-3.0-IGO", - "CC-BY-NC-SA-4.0", - "CC-BY-ND-1.0", - "CC-BY-ND-2.0", - "CC-BY-ND-2.5", - "CC-BY-ND-3.0", - "CC-BY-ND-3.0-DE", - "CC-BY-ND-4.0", - "CC-BY-SA-1.0", - "CC-BY-SA-2.0", - "CC-BY-SA-2.0-UK", - "CC-BY-SA-2.1-JP", - "CC-BY-SA-2.5", - "CC-BY-SA-3.0", - "CC-BY-SA-3.0-AT", - "CC-BY-SA-3.0-DE", - "CC-BY-SA-4.0", - "CC-PDDC", - "CC0-1.0", - "CDDL-1.0", - "CDDL-1.1", - "CDL-1.0", - "CDLA-Permissive-1.0", - "CDLA-Permissive-2.0", - "CDLA-Sharing-1.0", - "CECILL-1.0", - "CECILL-1.1", - "CECILL-2.0", - "CECILL-2.1", - "CECILL-B", - "CECILL-C", - "CERN-OHL-1.1", - "CERN-OHL-1.2", - "CERN-OHL-P-2.0", - "CERN-OHL-S-2.0", - "CERN-OHL-W-2.0", - "CNRI-Jython", - "CNRI-Python", - "CNRI-Python-GPL-Compatible", - "COIL-1.0", - "CPAL-1.0", - "CPL-1.0", - "CPOL-1.02", - "CUA-OPL-1.0", - "Caldera", - "ClArtistic", - "Community-Spec-1.0", - "Condor-1.1", - "Crossword", - "CrystalStacker", - "Cube", - "D-FSL-1.0", - "DOC", - "DRL-1.0", - "DSDP", - "Dotseqn", - "ECL-1.0", - "ECL-2.0", - "EFL-1.0", - "EFL-2.0", - "EPICS", - "EPL-1.0", - "EPL-2.0", - "EUDatagrid", - "EUPL-1.0", - "EUPL-1.1", - "EUPL-1.2", - "Entessa", - "ErlPL-1.1", - "Eurosym", - "FDK-AAC", - "FSFAP", - "FSFUL", - "FSFULLR", - "FTL", - "Fair", - "Frameworx-1.0", - "FreeBSD-DOC", - "FreeImage", - "GD", - "GFDL-1.1-invariants-only", - "GFDL-1.1-invariants-or-later", - "GFDL-1.1-no-invariants-only", - "GFDL-1.1-no-invariants-or-later", - "GFDL-1.1-only", - "GFDL-1.1-or-later", - "GFDL-1.2-invariants-only", - "GFDL-1.2-invariants-or-later", - "GFDL-1.2-no-invariants-only", - "GFDL-1.2-no-invariants-or-later", - "GFDL-1.2-only", - "GFDL-1.2-or-later", - "GFDL-1.3-invariants-only", - "GFDL-1.3-invariants-or-later", - "GFDL-1.3-no-invariants-only", - "GFDL-1.3-no-invariants-or-later", - "GFDL-1.3-only", - "GFDL-1.3-or-later", - "GL2PS", - "GLWTPL", - "GPL-1.0-only", - "GPL-1.0-or-later", - "GPL-2.0-only", - "GPL-2.0-or-later", - "GPL-3.0-only", - "GPL-3.0-or-later", - "Giftware", - "Glide", - "Glulxe", - "HPND", - "HPND-sell-variant", - "HTMLTIDY", - "HaskellReport", - "Hippocratic-2.1", - "IBM-pibs", - "ICU", - "IJG", - "IPA", - "IPL-1.0", - "ISC", - "ImageMagick", - "Imlib2", - "Info-ZIP", - "Intel", - "Intel-ACPI", - "Interbase-1.0", - "JPNIC", - "JSON", - "JasPer-2.0", - "LAL-1.2", - "LAL-1.3", - "LGPL-2.0-only", - "LGPL-2.0-or-later", - "LGPL-2.1-only", - "LGPL-2.1-or-later", - "LGPL-3.0-only", - "LGPL-3.0-or-later", - "LGPLLR", - "LPL-1.0", - "LPL-1.02", - "LPPL-1.0", - "LPPL-1.1", - "LPPL-1.2", - "LPPL-1.3a", - "LPPL-1.3c", - "Latex2e", - "Leptonica", - "LiLiQ-P-1.1", - "LiLiQ-R-1.1", - "LiLiQ-Rplus-1.1", - "Libpng", - "Linux-OpenIB", - "Linux-man-pages-copyleft", - "MIT", - "MIT-0", - "MIT-CMU", - "MIT-Modern-Variant", - "MIT-advertising", - "MIT-enna", - "MIT-feh", - "MIT-open-group", - "MITNFA", - "MPL-1.0", - "MPL-1.1", - "MPL-2.0", - "MPL-2.0-no-copyleft-exception", - "MS-PL", - "MS-RL", - "MTLL", - "MakeIndex", - "MirOS", - "Motosoto", - "MulanPSL-1.0", - "MulanPSL-2.0", - "Multics", - "Mup", - "NAIST-2003", - "NASA-1.3", - "NBPL-1.0", - "NCGL-UK-2.0", - "NCSA", - "NGPL", - "NIST-PD", - "NIST-PD-fallback", - "NLOD-1.0", - "NLOD-2.0", - "NLPL", - "NOSL", - "NPL-1.0", - "NPL-1.1", - "NPOSL-3.0", - "NRL", - "NTP", - "NTP-0", - "Naumen", - "Net-SNMP", - "NetCDF", - "Newsletr", - "Nokia", - "Noweb", - "O-UDA-1.0", - "OCCT-PL", - "OCLC-2.0", - "ODC-By-1.0", - "ODbL-1.0", - "OFL-1.0", - "OFL-1.0-RFN", - "OFL-1.0-no-RFN", - "OFL-1.1", - "OFL-1.1-RFN", - "OFL-1.1-no-RFN", - "OGC-1.0", - "OGDL-Taiwan-1.0", - "OGL-Canada-2.0", - "OGL-UK-1.0", - "OGL-UK-2.0", - "OGL-UK-3.0", - "OGTSL", - "OLDAP-1.1", - "OLDAP-1.2", - "OLDAP-1.3", - "OLDAP-1.4", - "OLDAP-2.0", - "OLDAP-2.0.1", - "OLDAP-2.1", - "OLDAP-2.2", - "OLDAP-2.2.1", - "OLDAP-2.2.2", - "OLDAP-2.3", - "OLDAP-2.4", - "OLDAP-2.5", - "OLDAP-2.6", - "OLDAP-2.7", - "OLDAP-2.8", - "OML", - "OPL-1.0", - "OPUBL-1.0", - "OSET-PL-2.1", - "OSL-1.0", - "OSL-1.1", - "OSL-2.0", - "OSL-2.1", - "OSL-3.0", - "OpenSSL", - "PDDL-1.0", - "PHP-3.0", - "PHP-3.01", - "PSF-2.0", - "Parity-6.0.0", - "Parity-7.0.0", - "Plexus", - "PolyForm-Noncommercial-1.0.0", - "PolyForm-Small-Business-1.0.0", - "PostgreSQL", - "Python-2.0", - "QPL-1.0", - "Qhull", - "RHeCos-1.1", - "RPL-1.1", - "RPL-1.5", - "RPSL-1.0", - "RSA-MD", - "RSCPL", - "Rdisc", - "Ruby", - "SAX-PD", - "SCEA", - "SGI-B-1.0", - "SGI-B-1.1", - "SGI-B-2.0", - "SHL-0.5", - "SHL-0.51", - "SISSL", - "SISSL-1.2", - "SMLNJ", - "SMPPL", - "SNIA", - "SPL-1.0", - "SSH-OpenSSH", - "SSH-short", - "SSPL-1.0", - "SWL", - "Saxpath", - "Sendmail", - "Sendmail-8.23", - "SimPL-2.0", - "Sleepycat", - "Spencer-86", - "Spencer-94", - "Spencer-99", - "SugarCRM-1.1.3", - "TAPR-OHL-1.0", - "TCL", - "TCP-wrappers", - "TMate", - "TORQUE-1.1", - "TOSL", - "TU-Berlin-1.0", - "TU-Berlin-2.0", - "UCL-1.0", - "UPL-1.0", - "Unicode-DFS-2015", - "Unicode-DFS-2016", - "Unicode-TOU", - "Unlicense", - "VOSTROM", - "VSL-1.0", - "Vim", - "W3C", - "W3C-19980720", - "W3C-20150513", - "WTFPL", - "Watcom-1.0", - "Wsuipa", - "X11", - "XFree86-1.1", - "XSkat", - "Xerox", - "Xnet", - "YPL-1.0", - "YPL-1.1", - "ZPL-1.1", - "ZPL-2.0", - "ZPL-2.1", - "Zed", - "Zend-2.0", - "Zimbra-1.3", - "Zimbra-1.4", - "Zlib", - "blessing", - "bzip2-1.0.5", - "bzip2-1.0.6", - "copyleft-next-0.3.0", - "copyleft-next-0.3.1", - "curl", - "diffmark", - "dvipdfm", - "eGenix", - "etalab-2.0", - "gSOAP-1.3b", - "gnuplot", - "iMatix", - "libpng-2.0", - "libselinux-1.0", - "libtiff", - "mpich2", - "psfrag", - "psutils", - "xinetd", - "xpp", - "zlib-acknowledgement" - ]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/spdx-license-ids-npm-3.0.11-a8d9a5ff74-1da1acb090.zip/node_modules/spdx-license-ids/deprecated.json - var require_deprecated = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/spdx-license-ids-npm-3.0.11-a8d9a5ff74-1da1acb090.zip/node_modules/spdx-license-ids/deprecated.json"(exports, module) { - module.exports = [ - "AGPL-1.0", - "AGPL-3.0", - "BSD-2-Clause-FreeBSD", - "BSD-2-Clause-NetBSD", - "GFDL-1.1", - "GFDL-1.2", - "GFDL-1.3", - "GPL-1.0", - "GPL-2.0", - "GPL-2.0-with-GCC-exception", - "GPL-2.0-with-autoconf-exception", - "GPL-2.0-with-bison-exception", - "GPL-2.0-with-classpath-exception", - "GPL-2.0-with-font-exception", - "GPL-3.0", - "GPL-3.0-with-GCC-exception", - "GPL-3.0-with-autoconf-exception", - "LGPL-2.0", - "LGPL-2.1", - "LGPL-3.0", - "Nunit", - "StandardML-NJ", - "eCos-2.0", - "wxWindows" - ]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/spdx-exceptions-npm-2.3.0-2b68dad75a-cb69a26fa3.zip/node_modules/spdx-exceptions/index.json - var require_spdx_exceptions = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/spdx-exceptions-npm-2.3.0-2b68dad75a-cb69a26fa3.zip/node_modules/spdx-exceptions/index.json"(exports, module) { - module.exports = [ - "389-exception", - "Autoconf-exception-2.0", - "Autoconf-exception-3.0", - "Bison-exception-2.2", - "Bootloader-exception", - "Classpath-exception-2.0", - "CLISP-exception-2.0", - "DigiRule-FOSS-exception", - "eCos-exception-2.0", - "Fawkes-Runtime-exception", - "FLTK-exception", - "Font-exception-2.0", - "freertos-exception-2.0", - "GCC-exception-2.0", - "GCC-exception-3.1", - "gnu-javamail-exception", - "GPL-3.0-linking-exception", - "GPL-3.0-linking-source-exception", - "GPL-CC-1.0", - "i2p-gpl-java-exception", - "Libtool-exception", - "Linux-syscall-note", - "LLVM-exception", - "LZMA-exception", - "mif-exception", - "Nokia-Qt-exception-1.1", - "OCaml-LGPL-linking-exception", - "OCCT-exception-1.0", - "OpenJDK-assembly-exception-1.0", - "openvpn-openssl-exception", - "PS-or-PDF-font-exception-20170817", - "Qt-GPL-exception-1.0", - "Qt-LGPL-exception-1.1", - "Qwt-exception-1.0", - "Swift-exception", - "u-boot-exception-2.0", - "Universal-FOSS-exception-1.0", - "WxWindows-exception-3.1" - ]; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/spdx-expression-parse-npm-3.0.1-b718cbb35a-a1c6e104a2.zip/node_modules/spdx-expression-parse/scan.js - var require_scan = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/spdx-expression-parse-npm-3.0.1-b718cbb35a-a1c6e104a2.zip/node_modules/spdx-expression-parse/scan.js"(exports, module) { - "use strict"; - var licenses = [].concat(require_spdx_license_ids()).concat(require_deprecated()); - var exceptions = require_spdx_exceptions(); - module.exports = function(source) { - var index2 = 0; - function hasMore() { - return index2 < source.length; - } - function read(value) { - if (value instanceof RegExp) { - var chars = source.slice(index2); - var match = chars.match(value); - if (match) { - index2 += match[0].length; - return match[0]; - } - } else { - if (source.indexOf(value, index2) === index2) { - index2 += value.length; - return value; - } - } - } - function skipWhitespace() { - read(/[ ]*/); - } - function operator() { - var string; - var possibilities = ["WITH", "AND", "OR", "(", ")", ":", "+"]; - for (var i = 0; i < possibilities.length; i++) { - string = read(possibilities[i]); - if (string) { - break; - } - } - if (string === "+" && index2 > 1 && source[index2 - 2] === " ") { - throw new Error("Space before `+`"); - } - return string && { - type: "OPERATOR", - string - }; - } - function idstring() { - return read(/[A-Za-z0-9-.]+/); - } - function expectIdstring() { - var string = idstring(); - if (!string) { - throw new Error("Expected idstring at offset " + index2); - } - return string; - } - function documentRef() { - if (read("DocumentRef-")) { - var string = expectIdstring(); - return {type: "DOCUMENTREF", string}; - } - } - function licenseRef() { - if (read("LicenseRef-")) { - var string = expectIdstring(); - return {type: "LICENSEREF", string}; - } - } - function identifier() { - var begin = index2; - var string = idstring(); - if (licenses.indexOf(string) !== -1) { - return { - type: "LICENSE", - string - }; - } else if (exceptions.indexOf(string) !== -1) { - return { - type: "EXCEPTION", - string - }; - } - index2 = begin; - } - function parseToken() { - return operator() || documentRef() || licenseRef() || identifier(); - } - var tokens = []; - while (hasMore()) { - skipWhitespace(); - if (!hasMore()) { - break; - } - var token = parseToken(); - if (!token) { - throw new Error("Unexpected `" + source[index2] + "` at offset " + index2); - } - tokens.push(token); - } - return tokens; - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/spdx-expression-parse-npm-3.0.1-b718cbb35a-a1c6e104a2.zip/node_modules/spdx-expression-parse/parse.js - var require_parse2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/spdx-expression-parse-npm-3.0.1-b718cbb35a-a1c6e104a2.zip/node_modules/spdx-expression-parse/parse.js"(exports, module) { - "use strict"; - module.exports = function(tokens) { - var index2 = 0; - function hasMore() { - return index2 < tokens.length; - } - function token() { - return hasMore() ? tokens[index2] : null; - } - function next() { - if (!hasMore()) { - throw new Error(); - } - index2++; - } - function parseOperator(operator) { - var t = token(); - if (t && t.type === "OPERATOR" && operator === t.string) { - next(); - return t.string; - } - } - function parseWith() { - if (parseOperator("WITH")) { - var t = token(); - if (t && t.type === "EXCEPTION") { - next(); - return t.string; - } - throw new Error("Expected exception after `WITH`"); - } - } - function parseLicenseRef() { - var begin = index2; - var string = ""; - var t = token(); - if (t.type === "DOCUMENTREF") { - next(); - string += "DocumentRef-" + t.string + ":"; - if (!parseOperator(":")) { - throw new Error("Expected `:` after `DocumentRef-...`"); - } - } - t = token(); - if (t.type === "LICENSEREF") { - next(); - string += "LicenseRef-" + t.string; - return {license: string}; - } - index2 = begin; - } - function parseLicense() { - var t = token(); - if (t && t.type === "LICENSE") { - next(); - var node2 = {license: t.string}; - if (parseOperator("+")) { - node2.plus = true; - } - var exception = parseWith(); - if (exception) { - node2.exception = exception; - } - return node2; - } - } - function parseParenthesizedExpression() { - var left = parseOperator("("); - if (!left) { - return; - } - var expr = parseExpression(); - if (!parseOperator(")")) { - throw new Error("Expected `)`"); - } - return expr; - } - function parseAtom() { - return parseParenthesizedExpression() || parseLicenseRef() || parseLicense(); - } - function makeBinaryOpParser(operator, nextParser) { - return function parseBinaryOp() { - var left = nextParser(); - if (!left) { - return; - } - if (!parseOperator(operator)) { - return left; - } - var right = parseBinaryOp(); - if (!right) { - throw new Error("Expected expression"); - } - return { - left, - conjunction: operator.toLowerCase(), - right - }; - }; - } - var parseAnd = makeBinaryOpParser("AND", parseAtom); - var parseExpression = makeBinaryOpParser("OR", parseAnd); - var node = parseExpression(); - if (!node || hasMore()) { - throw new Error("Syntax error"); - } - return node; - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/spdx-expression-parse-npm-3.0.1-b718cbb35a-a1c6e104a2.zip/node_modules/spdx-expression-parse/index.js - var require_spdx_expression_parse = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/spdx-expression-parse-npm-3.0.1-b718cbb35a-a1c6e104a2.zip/node_modules/spdx-expression-parse/index.js"(exports, module) { - "use strict"; - var scan = require_scan(); - var parse = require_parse2(); - module.exports = function(source) { - return parse(scan(source)); - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/spdx-correct-npm-3.1.1-47f574c27a-77ce438344.zip/node_modules/spdx-correct/index.js - var require_spdx_correct = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/spdx-correct-npm-3.1.1-47f574c27a-77ce438344.zip/node_modules/spdx-correct/index.js"(exports, module) { - var parse = require_spdx_expression_parse(); - var spdxLicenseIds = require_spdx_license_ids(); - function valid(string) { - try { - parse(string); - return true; - } catch (error) { - return false; - } - } - var transpositions = [ - ["APGL", "AGPL"], - ["Gpl", "GPL"], - ["GLP", "GPL"], - ["APL", "Apache"], - ["ISD", "ISC"], - ["GLP", "GPL"], - ["IST", "ISC"], - ["Claude", "Clause"], - [" or later", "+"], - [" International", ""], - ["GNU", "GPL"], - ["GUN", "GPL"], - ["+", ""], - ["GNU GPL", "GPL"], - ["GNU/GPL", "GPL"], - ["GNU GLP", "GPL"], - ["GNU General Public License", "GPL"], - ["Gnu public license", "GPL"], - ["GNU Public License", "GPL"], - ["GNU GENERAL PUBLIC LICENSE", "GPL"], - ["MTI", "MIT"], - ["Mozilla Public License", "MPL"], - ["Universal Permissive License", "UPL"], - ["WTH", "WTF"], - ["-License", ""] - ]; - var TRANSPOSED = 0; - var CORRECT = 1; - var transforms = [ - function(argument) { - return argument.toUpperCase(); - }, - function(argument) { - return argument.trim(); - }, - function(argument) { - return argument.replace(/\./g, ""); - }, - function(argument) { - return argument.replace(/\s+/g, ""); - }, - function(argument) { - return argument.replace(/\s+/g, "-"); - }, - function(argument) { - return argument.replace("v", "-"); - }, - function(argument) { - return argument.replace(/,?\s*(\d)/, "-$1"); - }, - function(argument) { - return argument.replace(/,?\s*(\d)/, "-$1.0"); - }, - function(argument) { - return argument.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/, "-$2"); - }, - function(argument) { - return argument.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/, "-$2.0"); - }, - function(argument) { - return argument[0].toUpperCase() + argument.slice(1); - }, - function(argument) { - return argument.replace("/", "-"); - }, - function(argument) { - return argument.replace(/\s*V\s*(\d)/, "-$1").replace(/(\d)$/, "$1.0"); - }, - function(argument) { - if (argument.indexOf("3.0") !== -1) { - return argument + "-or-later"; - } else { - return argument + "-only"; - } - }, - function(argument) { - return argument + "only"; - }, - function(argument) { - return argument.replace(/(\d)$/, "-$1.0"); - }, - function(argument) { - return argument.replace(/(-| )?(\d)$/, "-$2-Clause"); - }, - function(argument) { - return argument.replace(/(-| )clause(-| )(\d)/, "-$3-Clause"); - }, - function(argument) { - return argument.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i, "BSD-3-Clause"); - }, - function(argument) { - return argument.replace(/\bSimplified(-| )?BSD((-| )License)?/i, "BSD-2-Clause"); - }, - function(argument) { - return argument.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i, "BSD-2-Clause-$1BSD"); - }, - function(argument) { - return argument.replace(/\bClear(-| )?BSD((-| )License)?/i, "BSD-3-Clause-Clear"); - }, - function(argument) { - return argument.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i, "BSD-4-Clause"); - }, - function(argument) { - return "CC-" + argument; - }, - function(argument) { - return "CC-" + argument + "-4.0"; - }, - function(argument) { - return argument.replace("Attribution", "BY").replace("NonCommercial", "NC").replace("NoDerivatives", "ND").replace(/ (\d)/, "-$1").replace(/ ?International/, ""); - }, - function(argument) { - return "CC-" + argument.replace("Attribution", "BY").replace("NonCommercial", "NC").replace("NoDerivatives", "ND").replace(/ (\d)/, "-$1").replace(/ ?International/, "") + "-4.0"; - } - ]; - var licensesWithVersions = spdxLicenseIds.map(function(id) { - var match = /^(.*)-\d+\.\d+$/.exec(id); - return match ? [match[0], match[1]] : [id, null]; - }).reduce(function(objectMap, item) { - var key = item[1]; - objectMap[key] = objectMap[key] || []; - objectMap[key].push(item[0]); - return objectMap; - }, {}); - var licensesWithOneVersion = Object.keys(licensesWithVersions).map(function makeEntries(key) { - return [key, licensesWithVersions[key]]; - }).filter(function identifySoleVersions(item) { - return item[1].length === 1 && item[0] !== null && item[0] !== "APL"; - }).map(function createLastResorts(item) { - return [item[0], item[1][0]]; - }); - licensesWithVersions = void 0; - var lastResorts = [ - ["UNLI", "Unlicense"], - ["WTF", "WTFPL"], - ["2 CLAUSE", "BSD-2-Clause"], - ["2-CLAUSE", "BSD-2-Clause"], - ["3 CLAUSE", "BSD-3-Clause"], - ["3-CLAUSE", "BSD-3-Clause"], - ["AFFERO", "AGPL-3.0-or-later"], - ["AGPL", "AGPL-3.0-or-later"], - ["APACHE", "Apache-2.0"], - ["ARTISTIC", "Artistic-2.0"], - ["Affero", "AGPL-3.0-or-later"], - ["BEER", "Beerware"], - ["BOOST", "BSL-1.0"], - ["BSD", "BSD-2-Clause"], - ["CDDL", "CDDL-1.1"], - ["ECLIPSE", "EPL-1.0"], - ["FUCK", "WTFPL"], - ["GNU", "GPL-3.0-or-later"], - ["LGPL", "LGPL-3.0-or-later"], - ["GPLV1", "GPL-1.0-only"], - ["GPL-1", "GPL-1.0-only"], - ["GPLV2", "GPL-2.0-only"], - ["GPL-2", "GPL-2.0-only"], - ["GPL", "GPL-3.0-or-later"], - ["MIT +NO-FALSE-ATTRIBS", "MITNFA"], - ["MIT", "MIT"], - ["MPL", "MPL-2.0"], - ["X11", "X11"], - ["ZLIB", "Zlib"] - ].concat(licensesWithOneVersion); - var SUBSTRING = 0; - var IDENTIFIER = 1; - var validTransformation = function(identifier) { - for (var i = 0; i < transforms.length; i++) { - var transformed = transforms[i](identifier).trim(); - if (transformed !== identifier && valid(transformed)) { - return transformed; - } - } - return null; - }; - var validLastResort = function(identifier) { - var upperCased = identifier.toUpperCase(); - for (var i = 0; i < lastResorts.length; i++) { - var lastResort = lastResorts[i]; - if (upperCased.indexOf(lastResort[SUBSTRING]) > -1) { - return lastResort[IDENTIFIER]; - } - } - return null; - }; - var anyCorrection = function(identifier, check) { - for (var i = 0; i < transpositions.length; i++) { - var transposition = transpositions[i]; - var transposed = transposition[TRANSPOSED]; - if (identifier.indexOf(transposed) > -1) { - var corrected = identifier.replace(transposed, transposition[CORRECT]); - var checked = check(corrected); - if (checked !== null) { - return checked; - } - } - } - return null; - }; - module.exports = function(identifier, options) { - options = options || {}; - var upgrade = options.upgrade === void 0 ? true : !!options.upgrade; - function postprocess(value) { - return upgrade ? upgradeGPLs(value) : value; - } - var validArugment = typeof identifier === "string" && identifier.trim().length !== 0; - if (!validArugment) { - throw Error("Invalid argument. Expected non-empty string."); - } - identifier = identifier.trim(); - if (valid(identifier)) { - return postprocess(identifier); - } - var noPlus = identifier.replace(/\+$/, "").trim(); - if (valid(noPlus)) { - return postprocess(noPlus); - } - var transformed = validTransformation(identifier); - if (transformed !== null) { - return postprocess(transformed); - } - transformed = anyCorrection(identifier, function(argument) { - if (valid(argument)) { - return argument; - } - return validTransformation(argument); - }); - if (transformed !== null) { - return postprocess(transformed); - } - transformed = validLastResort(identifier); - if (transformed !== null) { - return postprocess(transformed); - } - transformed = anyCorrection(identifier, validLastResort); - if (transformed !== null) { - return postprocess(transformed); - } - return null; - }; - function upgradeGPLs(value) { - if ([ - "GPL-1.0", - "LGPL-1.0", - "AGPL-1.0", - "GPL-2.0", - "LGPL-2.0", - "AGPL-2.0", - "LGPL-2.1" - ].indexOf(value) !== -1) { - return value + "-only"; - } else if ([ - "GPL-1.0+", - "GPL-2.0+", - "GPL-3.0+", - "LGPL-2.0+", - "LGPL-2.1+", - "LGPL-3.0+", - "AGPL-1.0+", - "AGPL-3.0+" - ].indexOf(value) !== -1) { - return value.replace(/\+$/, "-or-later"); - } else if (["GPL-3.0", "LGPL-3.0", "AGPL-3.0"].indexOf(value) !== -1) { - return value + "-or-later"; - } else { - return value; - } - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/validate-npm-package-license-npm-3.0.4-7af8adc7a8-35703ac889.zip/node_modules/validate-npm-package-license/index.js - var require_validate_npm_package_license = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/validate-npm-package-license-npm-3.0.4-7af8adc7a8-35703ac889.zip/node_modules/validate-npm-package-license/index.js"(exports, module) { - var parse = require_spdx_expression_parse(); - var correct = require_spdx_correct(); - var genericWarning = 'license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN "'; - var fileReferenceRE = /^SEE LICEN[CS]E IN (.+)$/; - function startsWith(prefix, string) { - return string.slice(0, prefix.length) === prefix; - } - function usesLicenseRef(ast) { - if (ast.hasOwnProperty("license")) { - var license = ast.license; - return startsWith("LicenseRef", license) || startsWith("DocumentRef", license); - } else { - return usesLicenseRef(ast.left) || usesLicenseRef(ast.right); - } - } - module.exports = function(argument) { - var ast; - try { - ast = parse(argument); - } catch (e) { - var match; - if (argument === "UNLICENSED" || argument === "UNLICENCED") { - return { - validForOldPackages: true, - validForNewPackages: true, - unlicensed: true - }; - } else if (match = fileReferenceRE.exec(argument)) { - return { - validForOldPackages: true, - validForNewPackages: true, - inFile: match[1] - }; - } else { - var result = { - validForOldPackages: false, - validForNewPackages: false, - warnings: [genericWarning] - }; - if (argument.trim().length !== 0) { - var corrected = correct(argument); - if (corrected) { - result.warnings.push('license is similar to the valid expression "' + corrected + '"'); - } - } - return result; - } - } - if (usesLicenseRef(ast)) { - return { - validForNewPackages: false, - validForOldPackages: false, - spdx: true, - warnings: [genericWarning] - }; - } else { - return { - validForNewPackages: true, - validForOldPackages: true, - spdx: true - }; - } - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/function-bind-npm-1.1.1-b56b322ae9-b32fbaebb3.zip/node_modules/function-bind/implementation.js - var require_implementation = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/function-bind-npm-1.1.1-b56b322ae9-b32fbaebb3.zip/node_modules/function-bind/implementation.js"(exports, module) { - "use strict"; - var ERROR_MESSAGE = "Function.prototype.bind called on incompatible "; - var slice = Array.prototype.slice; - var toStr = Object.prototype.toString; - var funcType = "[object Function]"; - module.exports = function bind(that) { - var target = this; - if (typeof target !== "function" || toStr.call(target) !== funcType) { - throw new TypeError(ERROR_MESSAGE + target); - } - var args = slice.call(arguments, 1); - var bound; - var binder = function() { - if (this instanceof bound) { - var result = target.apply(this, args.concat(slice.call(arguments))); - if (Object(result) === result) { - return result; - } - return this; - } else { - return target.apply(that, args.concat(slice.call(arguments))); - } - }; - var boundLength = Math.max(0, target.length - args.length); - var boundArgs = []; - for (var i = 0; i < boundLength; i++) { - boundArgs.push("$" + i); - } - bound = Function("binder", "return function (" + boundArgs.join(",") + "){ return binder.apply(this,arguments); }")(binder); - if (target.prototype) { - var Empty = function Empty2() { - }; - Empty.prototype = target.prototype; - bound.prototype = new Empty(); - Empty.prototype = null; - } - return bound; - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/function-bind-npm-1.1.1-b56b322ae9-b32fbaebb3.zip/node_modules/function-bind/index.js - var require_function_bind = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/function-bind-npm-1.1.1-b56b322ae9-b32fbaebb3.zip/node_modules/function-bind/index.js"(exports, module) { - "use strict"; - var implementation = require_implementation(); - module.exports = Function.prototype.bind || implementation; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/has-npm-1.0.3-b7f00631c1-b9ad53d53b.zip/node_modules/has/src/index.js - var require_src3 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/has-npm-1.0.3-b7f00631c1-b9ad53d53b.zip/node_modules/has/src/index.js"(exports, module) { - "use strict"; - var bind = require_function_bind(); - module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty); - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/is-core-module-npm-2.8.1-ce21740d1b-418b7bc107.zip/node_modules/is-core-module/core.json - var require_core = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/is-core-module-npm-2.8.1-ce21740d1b-418b7bc107.zip/node_modules/is-core-module/core.json"(exports, module) { - module.exports = { - assert: true, - "node:assert": [">= 14.18 && < 15", ">= 16"], - "assert/strict": ">= 15", - "node:assert/strict": ">= 16", - async_hooks: ">= 8", - "node:async_hooks": [">= 14.18 && < 15", ">= 16"], - buffer_ieee754: ">= 0.5 && < 0.9.7", - buffer: true, - "node:buffer": [">= 14.18 && < 15", ">= 16"], - child_process: true, - "node:child_process": [">= 14.18 && < 15", ">= 16"], - cluster: ">= 0.5", - "node:cluster": [">= 14.18 && < 15", ">= 16"], - console: true, - "node:console": [">= 14.18 && < 15", ">= 16"], - constants: true, - "node:constants": [">= 14.18 && < 15", ">= 16"], - crypto: true, - "node:crypto": [">= 14.18 && < 15", ">= 16"], - _debug_agent: ">= 1 && < 8", - _debugger: "< 8", - dgram: true, - "node:dgram": [">= 14.18 && < 15", ">= 16"], - diagnostics_channel: [">= 14.17 && < 15", ">= 15.1"], - "node:diagnostics_channel": [">= 14.18 && < 15", ">= 16"], - dns: true, - "node:dns": [">= 14.18 && < 15", ">= 16"], - "dns/promises": ">= 15", - "node:dns/promises": ">= 16", - domain: ">= 0.7.12", - "node:domain": [">= 14.18 && < 15", ">= 16"], - events: true, - "node:events": [">= 14.18 && < 15", ">= 16"], - freelist: "< 6", - fs: true, - "node:fs": [">= 14.18 && < 15", ">= 16"], - "fs/promises": [">= 10 && < 10.1", ">= 14"], - "node:fs/promises": [">= 14.18 && < 15", ">= 16"], - _http_agent: ">= 0.11.1", - "node:_http_agent": [">= 14.18 && < 15", ">= 16"], - _http_client: ">= 0.11.1", - "node:_http_client": [">= 14.18 && < 15", ">= 16"], - _http_common: ">= 0.11.1", - "node:_http_common": [">= 14.18 && < 15", ">= 16"], - _http_incoming: ">= 0.11.1", - "node:_http_incoming": [">= 14.18 && < 15", ">= 16"], - _http_outgoing: ">= 0.11.1", - "node:_http_outgoing": [">= 14.18 && < 15", ">= 16"], - _http_server: ">= 0.11.1", - "node:_http_server": [">= 14.18 && < 15", ">= 16"], - http: true, - "node:http": [">= 14.18 && < 15", ">= 16"], - http2: ">= 8.8", - "node:http2": [">= 14.18 && < 15", ">= 16"], - https: true, - "node:https": [">= 14.18 && < 15", ">= 16"], - inspector: ">= 8", - "node:inspector": [">= 14.18 && < 15", ">= 16"], - _linklist: "< 8", - module: true, - "node:module": [">= 14.18 && < 15", ">= 16"], - net: true, - "node:net": [">= 14.18 && < 15", ">= 16"], - "node-inspect/lib/_inspect": ">= 7.6 && < 12", - "node-inspect/lib/internal/inspect_client": ">= 7.6 && < 12", - "node-inspect/lib/internal/inspect_repl": ">= 7.6 && < 12", - os: true, - "node:os": [">= 14.18 && < 15", ">= 16"], - path: true, - "node:path": [">= 14.18 && < 15", ">= 16"], - "path/posix": ">= 15.3", - "node:path/posix": ">= 16", - "path/win32": ">= 15.3", - "node:path/win32": ">= 16", - perf_hooks: ">= 8.5", - "node:perf_hooks": [">= 14.18 && < 15", ">= 16"], - process: ">= 1", - "node:process": [">= 14.18 && < 15", ">= 16"], - punycode: ">= 0.5", - "node:punycode": [">= 14.18 && < 15", ">= 16"], - querystring: true, - "node:querystring": [">= 14.18 && < 15", ">= 16"], - readline: true, - "node:readline": [">= 14.18 && < 15", ">= 16"], - "readline/promises": ">= 17", - "node:readline/promises": ">= 17", - repl: true, - "node:repl": [">= 14.18 && < 15", ">= 16"], - smalloc: ">= 0.11.5 && < 3", - _stream_duplex: ">= 0.9.4", - "node:_stream_duplex": [">= 14.18 && < 15", ">= 16"], - _stream_transform: ">= 0.9.4", - "node:_stream_transform": [">= 14.18 && < 15", ">= 16"], - _stream_wrap: ">= 1.4.1", - "node:_stream_wrap": [">= 14.18 && < 15", ">= 16"], - _stream_passthrough: ">= 0.9.4", - "node:_stream_passthrough": [">= 14.18 && < 15", ">= 16"], - _stream_readable: ">= 0.9.4", - "node:_stream_readable": [">= 14.18 && < 15", ">= 16"], - _stream_writable: ">= 0.9.4", - "node:_stream_writable": [">= 14.18 && < 15", ">= 16"], - stream: true, - "node:stream": [">= 14.18 && < 15", ">= 16"], - "stream/consumers": ">= 16.7", - "node:stream/consumers": ">= 16.7", - "stream/promises": ">= 15", - "node:stream/promises": ">= 16", - "stream/web": ">= 16.5", - "node:stream/web": ">= 16.5", - string_decoder: true, - "node:string_decoder": [">= 14.18 && < 15", ">= 16"], - sys: [">= 0.4 && < 0.7", ">= 0.8"], - "node:sys": [">= 14.18 && < 15", ">= 16"], - timers: true, - "node:timers": [">= 14.18 && < 15", ">= 16"], - "timers/promises": ">= 15", - "node:timers/promises": ">= 16", - _tls_common: ">= 0.11.13", - "node:_tls_common": [">= 14.18 && < 15", ">= 16"], - _tls_legacy: ">= 0.11.3 && < 10", - _tls_wrap: ">= 0.11.3", - "node:_tls_wrap": [">= 14.18 && < 15", ">= 16"], - tls: true, - "node:tls": [">= 14.18 && < 15", ">= 16"], - trace_events: ">= 10", - "node:trace_events": [">= 14.18 && < 15", ">= 16"], - tty: true, - "node:tty": [">= 14.18 && < 15", ">= 16"], - url: true, - "node:url": [">= 14.18 && < 15", ">= 16"], - util: true, - "node:util": [">= 14.18 && < 15", ">= 16"], - "util/types": ">= 15.3", - "node:util/types": ">= 16", - "v8/tools/arguments": ">= 10 && < 12", - "v8/tools/codemap": [">= 4.4 && < 5", ">= 5.2 && < 12"], - "v8/tools/consarray": [">= 4.4 && < 5", ">= 5.2 && < 12"], - "v8/tools/csvparser": [">= 4.4 && < 5", ">= 5.2 && < 12"], - "v8/tools/logreader": [">= 4.4 && < 5", ">= 5.2 && < 12"], - "v8/tools/profile_view": [">= 4.4 && < 5", ">= 5.2 && < 12"], - "v8/tools/splaytree": [">= 4.4 && < 5", ">= 5.2 && < 12"], - v8: ">= 1", - "node:v8": [">= 14.18 && < 15", ">= 16"], - vm: true, - "node:vm": [">= 14.18 && < 15", ">= 16"], - wasi: ">= 13.4 && < 13.5", - worker_threads: ">= 11.7", - "node:worker_threads": [">= 14.18 && < 15", ">= 16"], - zlib: ">= 0.5", - "node:zlib": [">= 14.18 && < 15", ">= 16"] - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/is-core-module-npm-2.8.1-ce21740d1b-418b7bc107.zip/node_modules/is-core-module/index.js - var require_is_core_module = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/is-core-module-npm-2.8.1-ce21740d1b-418b7bc107.zip/node_modules/is-core-module/index.js"(exports, module) { - "use strict"; - var has = require_src3(); - function specifierIncluded(current, specifier) { - var nodeParts = current.split("."); - var parts = specifier.split(" "); - var op = parts.length > 1 ? parts[0] : "="; - var versionParts = (parts.length > 1 ? parts[1] : parts[0]).split("."); - for (var i = 0; i < 3; ++i) { - var cur = parseInt(nodeParts[i] || 0, 10); - var ver = parseInt(versionParts[i] || 0, 10); - if (cur === ver) { - continue; - } - if (op === "<") { - return cur < ver; - } - if (op === ">=") { - return cur >= ver; - } - return false; - } - return op === ">="; - } - function matchesRange(current, range) { - var specifiers = range.split(/ ?&& ?/); - if (specifiers.length === 0) { - return false; - } - for (var i = 0; i < specifiers.length; ++i) { - if (!specifierIncluded(current, specifiers[i])) { - return false; - } - } - return true; - } - function versionIncluded(nodeVersion, specifierValue) { - if (typeof specifierValue === "boolean") { - return specifierValue; - } - var current = typeof nodeVersion === "undefined" ? process.versions && process.versions.node : nodeVersion; - if (typeof current !== "string") { - throw new TypeError(typeof nodeVersion === "undefined" ? "Unable to determine current node version" : "If provided, a valid node version is required"); - } - if (specifierValue && typeof specifierValue === "object") { - for (var i = 0; i < specifierValue.length; ++i) { - if (matchesRange(current, specifierValue[i])) { - return true; - } - } - return false; - } - return matchesRange(current, specifierValue); - } - var data = require_core(); - module.exports = function isCore(x, nodeVersion) { - return has(data, x) && versionIncluded(nodeVersion, data[x]); - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-3.0.3-1a49056685-bbcee00339.zip/node_modules/normalize-package-data/lib/extract_description.js - var require_extract_description = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-3.0.3-1a49056685-bbcee00339.zip/node_modules/normalize-package-data/lib/extract_description.js"(exports, module) { - module.exports = extractDescription; - function extractDescription(d) { - if (!d) { - return; - } - if (d === "ERROR: No README data found!") { - return; - } - d = d.trim().split("\n"); - for (var s = 0; d[s] && d[s].trim().match(/^(#|$)/); s++) { - ; - } - var l = d.length; - for (var e = s + 1; e < l && d[e].trim(); e++) { - ; - } - return d.slice(s, e).join(" ").trim(); - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-3.0.3-1a49056685-bbcee00339.zip/node_modules/normalize-package-data/lib/typos.json - var require_typos = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-3.0.3-1a49056685-bbcee00339.zip/node_modules/normalize-package-data/lib/typos.json"(exports, module) { - module.exports = { - topLevel: { - dependancies: "dependencies", - dependecies: "dependencies", - depdenencies: "dependencies", - devEependencies: "devDependencies", - depends: "dependencies", - "dev-dependencies": "devDependencies", - devDependences: "devDependencies", - devDepenencies: "devDependencies", - devdependencies: "devDependencies", - repostitory: "repository", - repo: "repository", - prefereGlobal: "preferGlobal", - hompage: "homepage", - hampage: "homepage", - autohr: "author", - autor: "author", - contributers: "contributors", - publicationConfig: "publishConfig", - script: "scripts" - }, - bugs: {web: "url", name: "url"}, - script: {server: "start", tests: "test"} - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-3.0.3-1a49056685-bbcee00339.zip/node_modules/normalize-package-data/lib/fixer.js - var require_fixer = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-3.0.3-1a49056685-bbcee00339.zip/node_modules/normalize-package-data/lib/fixer.js"(exports, module) { - var isValidSemver = require_valid(); - var cleanSemver = require_clean(); - var validateLicense = require_validate_npm_package_license(); - var hostedGitInfo = require_hosted_git_info(); - var isBuiltinModule = require_is_core_module(); - var depTypes = ["dependencies", "devDependencies", "optionalDependencies"]; - var extractDescription = require_extract_description(); - var url = __require("url"); - var typos = require_typos(); - module.exports = { - warn: function() { - }, - fixRepositoryField: function(data) { - if (data.repositories) { - this.warn("repositories"); - data.repository = data.repositories[0]; - } - if (!data.repository) { - return this.warn("missingRepository"); - } - if (typeof data.repository === "string") { - data.repository = { - type: "git", - url: data.repository - }; - } - var r = data.repository.url || ""; - if (r) { - var hosted = hostedGitInfo.fromUrl(r); - if (hosted) { - r = data.repository.url = hosted.getDefaultRepresentation() === "shortcut" ? hosted.https() : hosted.toString(); - } - } - if (r.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)) { - this.warn("brokenGitUrl", r); - } - }, - fixTypos: function(data) { - Object.keys(typos.topLevel).forEach(function(d) { - if (Object.prototype.hasOwnProperty.call(data, d)) { - this.warn("typo", d, typos.topLevel[d]); - } - }, this); - }, - fixScriptsField: function(data) { - if (!data.scripts) { - return; - } - if (typeof data.scripts !== "object") { - this.warn("nonObjectScripts"); - delete data.scripts; - return; - } - Object.keys(data.scripts).forEach(function(k) { - if (typeof data.scripts[k] !== "string") { - this.warn("nonStringScript"); - delete data.scripts[k]; - } else if (typos.script[k] && !data.scripts[typos.script[k]]) { - this.warn("typo", k, typos.script[k], "scripts"); - } - }, this); - }, - fixFilesField: function(data) { - var files = data.files; - if (files && !Array.isArray(files)) { - this.warn("nonArrayFiles"); - delete data.files; - } else if (data.files) { - data.files = data.files.filter(function(file) { - if (!file || typeof file !== "string") { - this.warn("invalidFilename", file); - return false; - } else { - return true; - } - }, this); - } - }, - fixBinField: function(data) { - if (!data.bin) { - return; - } - if (typeof data.bin === "string") { - var b = {}; - var match; - if (match = data.name.match(/^@[^/]+[/](.*)$/)) { - b[match[1]] = data.bin; - } else { - b[data.name] = data.bin; - } - data.bin = b; - } - }, - fixManField: function(data) { - if (!data.man) { - return; - } - if (typeof data.man === "string") { - data.man = [data.man]; - } - }, - fixBundleDependenciesField: function(data) { - var bdd = "bundledDependencies"; - var bd = "bundleDependencies"; - if (data[bdd] && !data[bd]) { - data[bd] = data[bdd]; - delete data[bdd]; - } - if (data[bd] && !Array.isArray(data[bd])) { - this.warn("nonArrayBundleDependencies"); - delete data[bd]; - } else if (data[bd]) { - data[bd] = data[bd].filter(function(bd2) { - if (!bd2 || typeof bd2 !== "string") { - this.warn("nonStringBundleDependency", bd2); - return false; - } else { - if (!data.dependencies) { - data.dependencies = {}; - } - if (Object.prototype.hasOwnProperty.call(data.dependencies, bd2)) { - this.warn("nonDependencyBundleDependency", bd2); - data.dependencies[bd2] = "*"; - } - return true; - } - }, this); - } - }, - fixDependencies: function(data, strict) { - objectifyDeps(data, this.warn); - addOptionalDepsToDeps(data, this.warn); - this.fixBundleDependenciesField(data); - ["dependencies", "devDependencies"].forEach(function(deps) { - if (!(deps in data)) { - return; - } - if (!data[deps] || typeof data[deps] !== "object") { - this.warn("nonObjectDependencies", deps); - delete data[deps]; - return; - } - Object.keys(data[deps]).forEach(function(d) { - var r = data[deps][d]; - if (typeof r !== "string") { - this.warn("nonStringDependency", d, JSON.stringify(r)); - delete data[deps][d]; - } - var hosted = hostedGitInfo.fromUrl(data[deps][d]); - if (hosted) { - data[deps][d] = hosted.toString(); - } - }, this); - }, this); - }, - fixModulesField: function(data) { - if (data.modules) { - this.warn("deprecatedModules"); - delete data.modules; - } - }, - fixKeywordsField: function(data) { - if (typeof data.keywords === "string") { - data.keywords = data.keywords.split(/,\s+/); - } - if (data.keywords && !Array.isArray(data.keywords)) { - delete data.keywords; - this.warn("nonArrayKeywords"); - } else if (data.keywords) { - data.keywords = data.keywords.filter(function(kw) { - if (typeof kw !== "string" || !kw) { - this.warn("nonStringKeyword"); - return false; - } else { - return true; - } - }, this); - } - }, - fixVersionField: function(data, strict) { - var loose = !strict; - if (!data.version) { - data.version = ""; - return true; - } - if (!isValidSemver(data.version, loose)) { - throw new Error('Invalid version: "' + data.version + '"'); - } - data.version = cleanSemver(data.version, loose); - return true; - }, - fixPeople: function(data) { - modifyPeople(data, unParsePerson); - modifyPeople(data, parsePerson); - }, - fixNameField: function(data, options) { - if (typeof options === "boolean") { - options = {strict: options}; - } else if (typeof options === "undefined") { - options = {}; - } - var strict = options.strict; - if (!data.name && !strict) { - data.name = ""; - return; - } - if (typeof data.name !== "string") { - throw new Error("name field must be a string."); - } - if (!strict) { - data.name = data.name.trim(); - } - ensureValidName(data.name, strict, options.allowLegacyCase); - if (isBuiltinModule(data.name)) { - this.warn("conflictingName", data.name); - } - }, - fixDescriptionField: function(data) { - if (data.description && typeof data.description !== "string") { - this.warn("nonStringDescription"); - delete data.description; - } - if (data.readme && !data.description) { - data.description = extractDescription(data.readme); - } - if (data.description === void 0) { - delete data.description; - } - if (!data.description) { - this.warn("missingDescription"); - } - }, - fixReadmeField: function(data) { - if (!data.readme) { - this.warn("missingReadme"); - data.readme = "ERROR: No README data found!"; - } - }, - fixBugsField: function(data) { - if (!data.bugs && data.repository && data.repository.url) { - var hosted = hostedGitInfo.fromUrl(data.repository.url); - if (hosted && hosted.bugs()) { - data.bugs = {url: hosted.bugs()}; - } - } else if (data.bugs) { - var emailRe = /^.+@.*\..+$/; - if (typeof data.bugs === "string") { - if (emailRe.test(data.bugs)) { - data.bugs = {email: data.bugs}; - } else if (url.parse(data.bugs).protocol) { - data.bugs = {url: data.bugs}; - } else { - this.warn("nonEmailUrlBugsString"); - } - } else { - bugsTypos(data.bugs, this.warn); - var oldBugs = data.bugs; - data.bugs = {}; - if (oldBugs.url) { - if (typeof oldBugs.url === "string" && url.parse(oldBugs.url).protocol) { - data.bugs.url = oldBugs.url; - } else { - this.warn("nonUrlBugsUrlField"); - } - } - if (oldBugs.email) { - if (typeof oldBugs.email === "string" && emailRe.test(oldBugs.email)) { - data.bugs.email = oldBugs.email; - } else { - this.warn("nonEmailBugsEmailField"); - } - } - } - if (!data.bugs.email && !data.bugs.url) { - delete data.bugs; - this.warn("emptyNormalizedBugs"); - } - } - }, - fixHomepageField: function(data) { - if (!data.homepage && data.repository && data.repository.url) { - var hosted = hostedGitInfo.fromUrl(data.repository.url); - if (hosted && hosted.docs()) { - data.homepage = hosted.docs(); - } - } - if (!data.homepage) { - return; - } - if (typeof data.homepage !== "string") { - this.warn("nonUrlHomepage"); - return delete data.homepage; - } - if (!url.parse(data.homepage).protocol) { - data.homepage = "http://" + data.homepage; - } - }, - fixLicenseField: function(data) { - const license = data.license || data.licence; - if (!license) { - return this.warn("missingLicense"); - } - if (typeof license !== "string" || license.length < 1 || license.trim() === "") { - return this.warn("invalidLicense"); - } - if (!validateLicense(license).validForNewPackages) { - return this.warn("invalidLicense"); - } - } - }; - function isValidScopedPackageName(spec) { - if (spec.charAt(0) !== "@") { - return false; - } - var rest = spec.slice(1).split("/"); - if (rest.length !== 2) { - return false; - } - return rest[0] && rest[1] && rest[0] === encodeURIComponent(rest[0]) && rest[1] === encodeURIComponent(rest[1]); - } - function isCorrectlyEncodedName(spec) { - return !spec.match(/[/@\s+%:]/) && spec === encodeURIComponent(spec); - } - function ensureValidName(name, strict, allowLegacyCase) { - if (name.charAt(0) === "." || !(isValidScopedPackageName(name) || isCorrectlyEncodedName(name)) || strict && !allowLegacyCase && name !== name.toLowerCase() || name.toLowerCase() === "node_modules" || name.toLowerCase() === "favicon.ico") { - throw new Error("Invalid name: " + JSON.stringify(name)); - } - } - function modifyPeople(data, fn) { - if (data.author) { - data.author = fn(data.author); - } - ["maintainers", "contributors"].forEach(function(set) { - if (!Array.isArray(data[set])) { - return; - } - data[set] = data[set].map(fn); - }); - return data; - } - function unParsePerson(person) { - if (typeof person === "string") { - return person; - } - var name = person.name || ""; - var u = person.url || person.web; - var url2 = u ? " (" + u + ")" : ""; - var e = person.email || person.mail; - var email = e ? " <" + e + ">" : ""; - return name + email + url2; - } - function parsePerson(person) { - if (typeof person !== "string") { - return person; - } - var name = person.match(/^([^(<]+)/); - var url2 = person.match(/\(([^)]+)\)/); - var email = person.match(/<([^>]+)>/); - var obj = {}; - if (name && name[0].trim()) { - obj.name = name[0].trim(); - } - if (email) { - obj.email = email[1]; - } - if (url2) { - obj.url = url2[1]; - } - return obj; - } - function addOptionalDepsToDeps(data, warn) { - var o = data.optionalDependencies; - if (!o) { - return; - } - var d = data.dependencies || {}; - Object.keys(o).forEach(function(k) { - d[k] = o[k]; - }); - data.dependencies = d; - } - function depObjectify(deps, type, warn) { - if (!deps) { - return {}; - } - if (typeof deps === "string") { - deps = deps.trim().split(/[\n\r\s\t ,]+/); - } - if (!Array.isArray(deps)) { - return deps; - } - warn("deprecatedArrayDependencies", type); - var o = {}; - deps.filter(function(d) { - return typeof d === "string"; - }).forEach(function(d) { - d = d.trim().split(/(:?[@\s><=])/); - var dn = d.shift(); - var dv = d.join(""); - dv = dv.trim(); - dv = dv.replace(/^@/, ""); - o[dn] = dv; - }); - return o; - } - function objectifyDeps(data, warn) { - depTypes.forEach(function(type) { - if (!data[type]) { - return; - } - data[type] = depObjectify(data[type], type, warn); - }); - } - function bugsTypos(bugs, warn) { - if (!bugs) { - return; - } - Object.keys(bugs).forEach(function(k) { - if (typos.bugs[k]) { - warn("typo", k, typos.bugs[k], "bugs"); - bugs[typos.bugs[k]] = bugs[k]; - delete bugs[k]; - } - }); - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-3.0.3-1a49056685-bbcee00339.zip/node_modules/normalize-package-data/lib/warning_messages.json - var require_warning_messages = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-3.0.3-1a49056685-bbcee00339.zip/node_modules/normalize-package-data/lib/warning_messages.json"(exports, module) { - module.exports = { - repositories: "'repositories' (plural) Not supported. Please pick one as the 'repository' field", - missingRepository: "No repository field.", - brokenGitUrl: "Probably broken git url: %s", - nonObjectScripts: "scripts must be an object", - nonStringScript: "script values must be string commands", - nonArrayFiles: "Invalid 'files' member", - invalidFilename: "Invalid filename in 'files' list: %s", - nonArrayBundleDependencies: "Invalid 'bundleDependencies' list. Must be array of package names", - nonStringBundleDependency: "Invalid bundleDependencies member: %s", - nonDependencyBundleDependency: "Non-dependency in bundleDependencies: %s", - nonObjectDependencies: "%s field must be an object", - nonStringDependency: "Invalid dependency: %s %s", - deprecatedArrayDependencies: "specifying %s as array is deprecated", - deprecatedModules: "modules field is deprecated", - nonArrayKeywords: "keywords should be an array of strings", - nonStringKeyword: "keywords should be an array of strings", - conflictingName: "%s is also the name of a node core module.", - nonStringDescription: "'description' field should be a string", - missingDescription: "No description", - missingReadme: "No README data", - missingLicense: "No license field.", - nonEmailUrlBugsString: "Bug string field must be url, email, or {email,url}", - nonUrlBugsUrlField: "bugs.url field must be a string url. Deleted.", - nonEmailBugsEmailField: "bugs.email field must be a string email. Deleted.", - emptyNormalizedBugs: "Normalized value of bugs field is an empty object. Deleted.", - nonUrlHomepage: "homepage field must be a string url. Deleted.", - invalidLicense: "license should be a valid SPDX license expression", - typo: "%s should probably be %s." - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-3.0.3-1a49056685-bbcee00339.zip/node_modules/normalize-package-data/lib/make_warning.js - var require_make_warning = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-3.0.3-1a49056685-bbcee00339.zip/node_modules/normalize-package-data/lib/make_warning.js"(exports, module) { - var util = __require("util"); - var messages = require_warning_messages(); - module.exports = function() { - var args = Array.prototype.slice.call(arguments, 0); - var warningName = args.shift(); - if (warningName === "typo") { - return makeTypoWarning.apply(null, args); - } else { - var msgTemplate = messages[warningName] ? messages[warningName] : warningName + ": '%s'"; - args.unshift(msgTemplate); - return util.format.apply(null, args); - } - }; - function makeTypoWarning(providedName, probableName, field) { - if (field) { - providedName = field + "['" + providedName + "']"; - probableName = field + "['" + probableName + "']"; - } - return util.format(messages.typo, providedName, probableName); - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-3.0.3-1a49056685-bbcee00339.zip/node_modules/normalize-package-data/lib/normalize.js - var require_normalize = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-3.0.3-1a49056685-bbcee00339.zip/node_modules/normalize-package-data/lib/normalize.js"(exports, module) { - module.exports = normalize; - var fixer = require_fixer(); - normalize.fixer = fixer; - var makeWarning = require_make_warning(); - var fieldsToFix = [ - "name", - "version", - "description", - "repository", - "modules", - "scripts", - "files", - "bin", - "man", - "bugs", - "keywords", - "readme", - "homepage", - "license" - ]; - var otherThingsToFix = ["dependencies", "people", "typos"]; - var thingsToFix = fieldsToFix.map(function(fieldName) { - return ucFirst(fieldName) + "Field"; - }); - thingsToFix = thingsToFix.concat(otherThingsToFix); - function normalize(data, warn, strict) { - if (warn === true) { - warn = null; - strict = true; - } - if (!strict) { - strict = false; - } - if (!warn || data.private) { - warn = function(msg) { - }; - } - if (data.scripts && data.scripts.install === "node-gyp rebuild" && !data.scripts.preinstall) { - data.gypfile = true; - } - fixer.warn = function() { - warn(makeWarning.apply(null, arguments)); - }; - thingsToFix.forEach(function(thingName) { - fixer["fix" + ucFirst(thingName)](data, strict); - }); - data._id = data.name + "@" + data.version; - } - function ucFirst(string) { - return string.charAt(0).toUpperCase() + string.slice(1); - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/ini-npm-1.3.8-fb5040b4c0-dfd98b0ca3.zip/node_modules/ini/ini.js - var require_ini = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/ini-npm-1.3.8-fb5040b4c0-dfd98b0ca3.zip/node_modules/ini/ini.js"(exports) { - exports.parse = exports.decode = decode; - exports.stringify = exports.encode = encode; - exports.safe = safe; - exports.unsafe = unsafe; - var eol = typeof process !== "undefined" && process.platform === "win32" ? "\r\n" : "\n"; - function encode(obj, opt) { - var children = []; - var out = ""; - if (typeof opt === "string") { - opt = { - section: opt, - whitespace: false - }; - } else { - opt = opt || {}; - opt.whitespace = opt.whitespace === true; - } - var separator = opt.whitespace ? " = " : "="; - Object.keys(obj).forEach(function(k, _, __) { - var val = obj[k]; - if (val && Array.isArray(val)) { - val.forEach(function(item) { - out += safe(k + "[]") + separator + safe(item) + "\n"; - }); - } else if (val && typeof val === "object") - children.push(k); - else - out += safe(k) + separator + safe(val) + eol; - }); - if (opt.section && out.length) - out = "[" + safe(opt.section) + "]" + eol + out; - children.forEach(function(k, _, __) { - var nk = dotSplit(k).join("\\."); - var section = (opt.section ? opt.section + "." : "") + nk; - var child = encode(obj[k], { - section, - whitespace: opt.whitespace - }); - if (out.length && child.length) - out += eol; - out += child; - }); - return out; - } - function dotSplit(str) { - return str.replace(/\1/g, "LITERAL\\1LITERAL").replace(/\\\./g, "").split(/\./).map(function(part) { - return part.replace(/\1/g, "\\.").replace(/\2LITERAL\\1LITERAL\2/g, ""); - }); - } - function decode(str) { - var out = {}; - var p = out; - var section = null; - var re = /^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i; - var lines = str.split(/[\r\n]+/g); - lines.forEach(function(line, _, __) { - if (!line || line.match(/^\s*[;#]/)) - return; - var match = line.match(re); - if (!match) - return; - if (match[1] !== void 0) { - section = unsafe(match[1]); - if (section === "__proto__") { - p = {}; - return; - } - p = out[section] = out[section] || {}; - return; - } - var key = unsafe(match[2]); - if (key === "__proto__") - return; - var value = match[3] ? unsafe(match[4]) : true; - switch (value) { - case "true": - case "false": - case "null": - value = JSON.parse(value); - } - if (key.length > 2 && key.slice(-2) === "[]") { - key = key.substring(0, key.length - 2); - if (key === "__proto__") - return; - if (!p[key]) - p[key] = []; - else if (!Array.isArray(p[key])) - p[key] = [p[key]]; - } - if (Array.isArray(p[key])) - p[key].push(value); - else - p[key] = value; - }); - Object.keys(out).filter(function(k, _, __) { - if (!out[k] || typeof out[k] !== "object" || Array.isArray(out[k])) - return false; - var parts = dotSplit(k); - var p2 = out; - var l = parts.pop(); - var nl = l.replace(/\\\./g, "."); - parts.forEach(function(part, _2, __2) { - if (part === "__proto__") - return; - if (!p2[part] || typeof p2[part] !== "object") - p2[part] = {}; - p2 = p2[part]; - }); - if (p2 === out && nl === l) - return false; - p2[nl] = out[k]; - return true; - }).forEach(function(del, _, __) { - delete out[del]; - }); - return out; - } - function isQuoted(val) { - return val.charAt(0) === '"' && val.slice(-1) === '"' || val.charAt(0) === "'" && val.slice(-1) === "'"; - } - function safe(val) { - return typeof val !== "string" || val.match(/[=\r\n]/) || val.match(/^\[/) || val.length > 1 && isQuoted(val) || val !== val.trim() ? JSON.stringify(val) : val.replace(/;/g, "\\;").replace(/#/g, "\\#"); - } - function unsafe(val, doUnesc) { - val = (val || "").trim(); - if (isQuoted(val)) { - if (val.charAt(0) === "'") - val = val.substr(1, val.length - 2); - try { - val = JSON.parse(val); - } catch (_) { - } - } else { - var esc = false; - var unesc = ""; - for (var i = 0, l = val.length; i < l; i++) { - var c = val.charAt(i); - if (esc) { - if ("\\;#".indexOf(c) !== -1) - unesc += c; - else - unesc += "\\" + c; - esc = false; - } else if (";#".indexOf(c) !== -1) - break; - else if (c === "\\") - esc = true; - else - unesc += c; - } - if (esc) - unesc += "\\"; - return unesc.trim(); - } - return val; - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/gitconfiglocal-npm-1.0.0-905970379d-e6d2764c15.zip/node_modules/gitconfiglocal/index.js - var require_gitconfiglocal = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/gitconfiglocal-npm-1.0.0-905970379d-e6d2764c15.zip/node_modules/gitconfiglocal/index.js"(exports, module) { - var fs = __require("fs"); - var ini = require_ini(); - var path = __require("path"); - module.exports = function(dir, cb) { - findGit(dir, function(config) { - if (!config) - return cb(new Error("no gitconfig to be found at " + dir)); - fs.readFile(config, function(err, data) { - if (err) - return cb(err); - try { - var formatted = format(ini.parse(data.toString())); - } catch (e) { - return cb(e); - } - cb(false, formatted); - }); - }); - }; - function format(data) { - var out = {}; - Object.keys(data).forEach(function(k) { - if (k.indexOf('"') > -1) { - var parts = k.split('"'); - var parentKey = parts.shift().trim(); - var childKey = parts.shift().trim(); - if (!out[parentKey]) - out[parentKey] = {}; - out[parentKey][childKey] = data[k]; - } else { - out[k] = data[k]; - } - }); - return out; - } - function findGit(dir, cb) { - var folder = path.join(dir, ".git/config"); - fs.exists(folder, function(exists) { - if (exists) - return cb(folder); - if (dir === path.resolve(dir, "..")) - return cb(false); - findGit(path.resolve(dir, ".."), cb); - }); - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/pify-npm-2.3.0-8b63310934-9503aaeaf4.zip/node_modules/pify/index.js - var require_pify = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/pify-npm-2.3.0-8b63310934-9503aaeaf4.zip/node_modules/pify/index.js"(exports, module) { - "use strict"; - var processFn = function(fn, P, opts) { - return function() { - var that = this; - var args = new Array(arguments.length); - for (var i = 0; i < arguments.length; i++) { - args[i] = arguments[i]; - } - return new P(function(resolve, reject) { - args.push(function(err, result) { - if (err) { - reject(err); - } else if (opts.multiArgs) { - var results = new Array(arguments.length - 1); - for (var i2 = 1; i2 < arguments.length; i2++) { - results[i2 - 1] = arguments[i2]; - } - resolve(results); - } else { - resolve(result); - } - }); - fn.apply(that, args); - }); - }; - }; - var pify = module.exports = function(obj, P, opts) { - if (typeof P !== "function") { - opts = P; - P = Promise; - } - opts = opts || {}; - opts.exclude = opts.exclude || [/.+Sync$/]; - var filter = function(key) { - var match = function(pattern) { - return typeof pattern === "string" ? key === pattern : pattern.test(key); - }; - return opts.include ? opts.include.some(match) : !opts.exclude.some(match); - }; - var ret = typeof obj === "function" ? function() { - if (opts.excludeMain) { - return obj.apply(this, arguments); - } - return processFn(obj, P, opts).apply(this, arguments); - } : {}; - return Object.keys(obj).reduce(function(ret2, key) { - var x = obj[key]; - ret2[key] = typeof x === "function" && filter(key) ? processFn(x, P, opts) : x; - return ret2; - }, ret); - }; - pify.all = pify; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/git-remote-origin-url-npm-2.0.0-319debe0d1-85263a09c0.zip/node_modules/git-remote-origin-url/index.js - var require_git_remote_origin_url = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/git-remote-origin-url-npm-2.0.0-319debe0d1-85263a09c0.zip/node_modules/git-remote-origin-url/index.js"(exports, module) { - "use strict"; - var gitconfig = require_gitconfiglocal(); - var pify = require_pify(); - module.exports = (dir) => { - return pify(gitconfig)(dir || process.cwd()).then((config) => { - var url = config.remote && config.remote.origin && config.remote.origin.url; - if (!url) { - throw new Error("Couldn't find origin url"); - } - return url; - }); - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/graceful-fs-npm-4.2.10-79c70989ca-3f109d70ae.zip/node_modules/graceful-fs/polyfills.js - var require_polyfills = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/graceful-fs-npm-4.2.10-79c70989ca-3f109d70ae.zip/node_modules/graceful-fs/polyfills.js"(exports, module) { - var constants = __require("constants"); - var origCwd = process.cwd; - var cwd = null; - var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform; - process.cwd = function() { - if (!cwd) - cwd = origCwd.call(process); - return cwd; - }; - try { - process.cwd(); - } catch (er) { - } - if (typeof process.chdir === "function") { - chdir = process.chdir; - process.chdir = function(d) { - cwd = null; - chdir.call(process, d); - }; - if (Object.setPrototypeOf) - Object.setPrototypeOf(process.chdir, chdir); - } - var chdir; - module.exports = patch; - function patch(fs) { - if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) { - patchLchmod(fs); - } - if (!fs.lutimes) { - patchLutimes(fs); - } - fs.chown = chownFix(fs.chown); - fs.fchown = chownFix(fs.fchown); - fs.lchown = chownFix(fs.lchown); - fs.chmod = chmodFix(fs.chmod); - fs.fchmod = chmodFix(fs.fchmod); - fs.lchmod = chmodFix(fs.lchmod); - fs.chownSync = chownFixSync(fs.chownSync); - fs.fchownSync = chownFixSync(fs.fchownSync); - fs.lchownSync = chownFixSync(fs.lchownSync); - fs.chmodSync = chmodFixSync(fs.chmodSync); - fs.fchmodSync = chmodFixSync(fs.fchmodSync); - fs.lchmodSync = chmodFixSync(fs.lchmodSync); - fs.stat = statFix(fs.stat); - fs.fstat = statFix(fs.fstat); - fs.lstat = statFix(fs.lstat); - fs.statSync = statFixSync(fs.statSync); - fs.fstatSync = statFixSync(fs.fstatSync); - fs.lstatSync = statFixSync(fs.lstatSync); - if (fs.chmod && !fs.lchmod) { - fs.lchmod = function(path, mode, cb) { - if (cb) - process.nextTick(cb); - }; - fs.lchmodSync = function() { - }; - } - if (fs.chown && !fs.lchown) { - fs.lchown = function(path, uid, gid, cb) { - if (cb) - process.nextTick(cb); - }; - fs.lchownSync = function() { - }; - } - if (platform === "win32") { - fs.rename = typeof fs.rename !== "function" ? fs.rename : function(fs$rename) { - function rename(from, to, cb) { - var start = Date.now(); - var backoff = 0; - fs$rename(from, to, function CB(er) { - if (er && (er.code === "EACCES" || er.code === "EPERM") && Date.now() - start < 6e4) { - setTimeout(function() { - fs.stat(to, function(stater, st) { - if (stater && stater.code === "ENOENT") - fs$rename(from, to, CB); - else - cb(er); - }); - }, backoff); - if (backoff < 100) - backoff += 10; - return; - } - if (cb) - cb(er); - }); - } - if (Object.setPrototypeOf) - Object.setPrototypeOf(rename, fs$rename); - return rename; - }(fs.rename); - } - fs.read = typeof fs.read !== "function" ? fs.read : function(fs$read) { - function read(fd, buffer, offset, length, position, callback_) { - var callback; - if (callback_ && typeof callback_ === "function") { - var eagCounter = 0; - callback = function(er, _, __) { - if (er && er.code === "EAGAIN" && eagCounter < 10) { - eagCounter++; - return fs$read.call(fs, fd, buffer, offset, length, position, callback); - } - callback_.apply(this, arguments); - }; - } - return fs$read.call(fs, fd, buffer, offset, length, position, callback); - } - if (Object.setPrototypeOf) - Object.setPrototypeOf(read, fs$read); - return read; - }(fs.read); - fs.readSync = typeof fs.readSync !== "function" ? fs.readSync : function(fs$readSync) { - return function(fd, buffer, offset, length, position) { - var eagCounter = 0; - while (true) { - try { - return fs$readSync.call(fs, fd, buffer, offset, length, position); - } catch (er) { - if (er.code === "EAGAIN" && eagCounter < 10) { - eagCounter++; - continue; - } - throw er; - } - } - }; - }(fs.readSync); - function patchLchmod(fs2) { - fs2.lchmod = function(path, mode, callback) { - fs2.open(path, constants.O_WRONLY | constants.O_SYMLINK, mode, function(err, fd) { - if (err) { - if (callback) - callback(err); - return; - } - fs2.fchmod(fd, mode, function(err2) { - fs2.close(fd, function(err22) { - if (callback) - callback(err2 || err22); - }); - }); - }); - }; - fs2.lchmodSync = function(path, mode) { - var fd = fs2.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode); - var threw = true; - var ret; - try { - ret = fs2.fchmodSync(fd, mode); - threw = false; - } finally { - if (threw) { - try { - fs2.closeSync(fd); - } catch (er) { - } - } else { - fs2.closeSync(fd); - } - } - return ret; - }; - } - function patchLutimes(fs2) { - if (constants.hasOwnProperty("O_SYMLINK") && fs2.futimes) { - fs2.lutimes = function(path, at, mt, cb) { - fs2.open(path, constants.O_SYMLINK, function(er, fd) { - if (er) { - if (cb) - cb(er); - return; - } - fs2.futimes(fd, at, mt, function(er2) { - fs2.close(fd, function(er22) { - if (cb) - cb(er2 || er22); - }); - }); - }); - }; - fs2.lutimesSync = function(path, at, mt) { - var fd = fs2.openSync(path, constants.O_SYMLINK); - var ret; - var threw = true; - try { - ret = fs2.futimesSync(fd, at, mt); - threw = false; - } finally { - if (threw) { - try { - fs2.closeSync(fd); - } catch (er) { - } - } else { - fs2.closeSync(fd); - } - } - return ret; - }; - } else if (fs2.futimes) { - fs2.lutimes = function(_a, _b, _c, cb) { - if (cb) - process.nextTick(cb); - }; - fs2.lutimesSync = function() { - }; - } - } - function chmodFix(orig) { - if (!orig) - return orig; - return function(target, mode, cb) { - return orig.call(fs, target, mode, function(er) { - if (chownErOk(er)) - er = null; - if (cb) - cb.apply(this, arguments); - }); - }; - } - function chmodFixSync(orig) { - if (!orig) - return orig; - return function(target, mode) { - try { - return orig.call(fs, target, mode); - } catch (er) { - if (!chownErOk(er)) - throw er; - } - }; - } - function chownFix(orig) { - if (!orig) - return orig; - return function(target, uid, gid, cb) { - return orig.call(fs, target, uid, gid, function(er) { - if (chownErOk(er)) - er = null; - if (cb) - cb.apply(this, arguments); - }); - }; - } - function chownFixSync(orig) { - if (!orig) - return orig; - return function(target, uid, gid) { - try { - return orig.call(fs, target, uid, gid); - } catch (er) { - if (!chownErOk(er)) - throw er; - } - }; - } - function statFix(orig) { - if (!orig) - return orig; - return function(target, options, cb) { - if (typeof options === "function") { - cb = options; - options = null; - } - function callback(er, stats) { - if (stats) { - if (stats.uid < 0) - stats.uid += 4294967296; - if (stats.gid < 0) - stats.gid += 4294967296; - } - if (cb) - cb.apply(this, arguments); - } - return options ? orig.call(fs, target, options, callback) : orig.call(fs, target, callback); - }; - } - function statFixSync(orig) { - if (!orig) - return orig; - return function(target, options) { - var stats = options ? orig.call(fs, target, options) : orig.call(fs, target); - if (stats) { - if (stats.uid < 0) - stats.uid += 4294967296; - if (stats.gid < 0) - stats.gid += 4294967296; - } - return stats; - }; - } - function chownErOk(er) { - if (!er) - return true; - if (er.code === "ENOSYS") - return true; - var nonroot = !process.getuid || process.getuid() !== 0; - if (nonroot) { - if (er.code === "EINVAL" || er.code === "EPERM") - return true; - } - return false; - } - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/graceful-fs-npm-4.2.10-79c70989ca-3f109d70ae.zip/node_modules/graceful-fs/legacy-streams.js - var require_legacy_streams = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/graceful-fs-npm-4.2.10-79c70989ca-3f109d70ae.zip/node_modules/graceful-fs/legacy-streams.js"(exports, module) { - var Stream = __require("stream").Stream; - module.exports = legacy; - function legacy(fs) { - return { - ReadStream, - WriteStream - }; - function ReadStream(path, options) { - if (!(this instanceof ReadStream)) - return new ReadStream(path, options); - Stream.call(this); - var self2 = this; - this.path = path; - this.fd = null; - this.readable = true; - this.paused = false; - this.flags = "r"; - this.mode = 438; - this.bufferSize = 64 * 1024; - options = options || {}; - var keys = Object.keys(options); - for (var index2 = 0, length = keys.length; index2 < length; index2++) { - var key = keys[index2]; - this[key] = options[key]; - } - if (this.encoding) - this.setEncoding(this.encoding); - if (this.start !== void 0) { - if (typeof this.start !== "number") { - throw TypeError("start must be a Number"); - } - if (this.end === void 0) { - this.end = Infinity; - } else if (typeof this.end !== "number") { - throw TypeError("end must be a Number"); - } - if (this.start > this.end) { - throw new Error("start must be <= end"); - } - this.pos = this.start; - } - if (this.fd !== null) { - process.nextTick(function() { - self2._read(); - }); - return; - } - fs.open(this.path, this.flags, this.mode, function(err, fd) { - if (err) { - self2.emit("error", err); - self2.readable = false; - return; - } - self2.fd = fd; - self2.emit("open", fd); - self2._read(); - }); - } - function WriteStream(path, options) { - if (!(this instanceof WriteStream)) - return new WriteStream(path, options); - Stream.call(this); - this.path = path; - this.fd = null; - this.writable = true; - this.flags = "w"; - this.encoding = "binary"; - this.mode = 438; - this.bytesWritten = 0; - options = options || {}; - var keys = Object.keys(options); - for (var index2 = 0, length = keys.length; index2 < length; index2++) { - var key = keys[index2]; - this[key] = options[key]; - } - if (this.start !== void 0) { - if (typeof this.start !== "number") { - throw TypeError("start must be a Number"); - } - if (this.start < 0) { - throw new Error("start must be >= zero"); - } - this.pos = this.start; - } - this.busy = false; - this._queue = []; - if (this.fd === null) { - this._open = fs.open; - this._queue.push([this._open, this.path, this.flags, this.mode, void 0]); - this.flush(); - } - } - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/graceful-fs-npm-4.2.10-79c70989ca-3f109d70ae.zip/node_modules/graceful-fs/clone.js - var require_clone = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/graceful-fs-npm-4.2.10-79c70989ca-3f109d70ae.zip/node_modules/graceful-fs/clone.js"(exports, module) { - "use strict"; - module.exports = clone; - var getPrototypeOf = Object.getPrototypeOf || function(obj) { - return obj.__proto__; - }; - function clone(obj) { - if (obj === null || typeof obj !== "object") - return obj; - if (obj instanceof Object) - var copy = {__proto__: getPrototypeOf(obj)}; - else - var copy = Object.create(null); - Object.getOwnPropertyNames(obj).forEach(function(key) { - Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key)); - }); - return copy; - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/graceful-fs-npm-4.2.10-79c70989ca-3f109d70ae.zip/node_modules/graceful-fs/graceful-fs.js - var require_graceful_fs = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/graceful-fs-npm-4.2.10-79c70989ca-3f109d70ae.zip/node_modules/graceful-fs/graceful-fs.js"(exports, module) { - var fs = __require("fs"); - var polyfills = require_polyfills(); - var legacy = require_legacy_streams(); - var clone = require_clone(); - var util = __require("util"); - var gracefulQueue; - var previousSymbol; - if (typeof Symbol === "function" && typeof Symbol.for === "function") { - gracefulQueue = Symbol.for("graceful-fs.queue"); - previousSymbol = Symbol.for("graceful-fs.previous"); - } else { - gracefulQueue = "___graceful-fs.queue"; - previousSymbol = "___graceful-fs.previous"; - } - function noop() { - } - function publishQueue(context, queue2) { - Object.defineProperty(context, gracefulQueue, { - get: function() { - return queue2; - } - }); - } - var debug = noop; - if (util.debuglog) - debug = util.debuglog("gfs4"); - else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) - debug = function() { - var m = util.format.apply(util, arguments); - m = "GFS4: " + m.split(/\n/).join("\nGFS4: "); - console.error(m); - }; - if (!fs[gracefulQueue]) { - queue = global[gracefulQueue] || []; - publishQueue(fs, queue); - fs.close = function(fs$close) { - function close(fd, cb) { - return fs$close.call(fs, fd, function(err) { - if (!err) { - resetQueue(); - } - if (typeof cb === "function") - cb.apply(this, arguments); - }); - } - Object.defineProperty(close, previousSymbol, { - value: fs$close - }); - return close; - }(fs.close); - fs.closeSync = function(fs$closeSync) { - function closeSync(fd) { - fs$closeSync.apply(fs, arguments); - resetQueue(); - } - Object.defineProperty(closeSync, previousSymbol, { - value: fs$closeSync - }); - return closeSync; - }(fs.closeSync); - if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) { - process.on("exit", function() { - debug(fs[gracefulQueue]); - __require("assert").equal(fs[gracefulQueue].length, 0); - }); - } - } - var queue; - if (!global[gracefulQueue]) { - publishQueue(global, fs[gracefulQueue]); - } - module.exports = patch(clone(fs)); - if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs.__patched) { - module.exports = patch(fs); - fs.__patched = true; - } - function patch(fs2) { - polyfills(fs2); - fs2.gracefulify = patch; - fs2.createReadStream = createReadStream; - fs2.createWriteStream = createWriteStream; - var fs$readFile = fs2.readFile; - fs2.readFile = readFile; - function readFile(path, options, cb) { - if (typeof options === "function") - cb = options, options = null; - return go$readFile(path, options, cb); - function go$readFile(path2, options2, cb2, startTime) { - return fs$readFile(path2, options2, function(err) { - if (err && (err.code === "EMFILE" || err.code === "ENFILE")) - enqueue([go$readFile, [path2, options2, cb2], err, startTime || Date.now(), Date.now()]); - else { - if (typeof cb2 === "function") - cb2.apply(this, arguments); - } - }); - } - } - var fs$writeFile = fs2.writeFile; - fs2.writeFile = writeFile; - function writeFile(path, data, options, cb) { - if (typeof options === "function") - cb = options, options = null; - return go$writeFile(path, data, options, cb); - function go$writeFile(path2, data2, options2, cb2, startTime) { - return fs$writeFile(path2, data2, options2, function(err) { - if (err && (err.code === "EMFILE" || err.code === "ENFILE")) - enqueue([go$writeFile, [path2, data2, options2, cb2], err, startTime || Date.now(), Date.now()]); - else { - if (typeof cb2 === "function") - cb2.apply(this, arguments); - } - }); - } - } - var fs$appendFile = fs2.appendFile; - if (fs$appendFile) - fs2.appendFile = appendFile; - function appendFile(path, data, options, cb) { - if (typeof options === "function") - cb = options, options = null; - return go$appendFile(path, data, options, cb); - function go$appendFile(path2, data2, options2, cb2, startTime) { - return fs$appendFile(path2, data2, options2, function(err) { - if (err && (err.code === "EMFILE" || err.code === "ENFILE")) - enqueue([go$appendFile, [path2, data2, options2, cb2], err, startTime || Date.now(), Date.now()]); - else { - if (typeof cb2 === "function") - cb2.apply(this, arguments); - } - }); - } - } - var fs$copyFile = fs2.copyFile; - if (fs$copyFile) - fs2.copyFile = copyFile; - function copyFile(src, dest, flags, cb) { - if (typeof flags === "function") { - cb = flags; - flags = 0; - } - return go$copyFile(src, dest, flags, cb); - function go$copyFile(src2, dest2, flags2, cb2, startTime) { - return fs$copyFile(src2, dest2, flags2, function(err) { - if (err && (err.code === "EMFILE" || err.code === "ENFILE")) - enqueue([go$copyFile, [src2, dest2, flags2, cb2], err, startTime || Date.now(), Date.now()]); - else { - if (typeof cb2 === "function") - cb2.apply(this, arguments); - } - }); - } - } - var fs$readdir = fs2.readdir; - fs2.readdir = readdir; - var noReaddirOptionVersions = /^v[0-5]\./; - function readdir(path, options, cb) { - if (typeof options === "function") - cb = options, options = null; - var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path2, options2, cb2, startTime) { - return fs$readdir(path2, fs$readdirCallback(path2, options2, cb2, startTime)); - } : function go$readdir2(path2, options2, cb2, startTime) { - return fs$readdir(path2, options2, fs$readdirCallback(path2, options2, cb2, startTime)); - }; - return go$readdir(path, options, cb); - function fs$readdirCallback(path2, options2, cb2, startTime) { - return function(err, files) { - if (err && (err.code === "EMFILE" || err.code === "ENFILE")) - enqueue([ - go$readdir, - [path2, options2, cb2], - err, - startTime || Date.now(), - Date.now() - ]); - else { - if (files && files.sort) - files.sort(); - if (typeof cb2 === "function") - cb2.call(this, err, files); - } - }; - } - } - if (process.version.substr(0, 4) === "v0.8") { - var legStreams = legacy(fs2); - ReadStream = legStreams.ReadStream; - WriteStream = legStreams.WriteStream; - } - var fs$ReadStream = fs2.ReadStream; - if (fs$ReadStream) { - ReadStream.prototype = Object.create(fs$ReadStream.prototype); - ReadStream.prototype.open = ReadStream$open; - } - var fs$WriteStream = fs2.WriteStream; - if (fs$WriteStream) { - WriteStream.prototype = Object.create(fs$WriteStream.prototype); - WriteStream.prototype.open = WriteStream$open; - } - Object.defineProperty(fs2, "ReadStream", { - get: function() { - return ReadStream; - }, - set: function(val) { - ReadStream = val; - }, - enumerable: true, - configurable: true - }); - Object.defineProperty(fs2, "WriteStream", { - get: function() { - return WriteStream; - }, - set: function(val) { - WriteStream = val; - }, - enumerable: true, - configurable: true - }); - var FileReadStream = ReadStream; - Object.defineProperty(fs2, "FileReadStream", { - get: function() { - return FileReadStream; - }, - set: function(val) { - FileReadStream = val; - }, - enumerable: true, - configurable: true - }); - var FileWriteStream = WriteStream; - Object.defineProperty(fs2, "FileWriteStream", { - get: function() { - return FileWriteStream; - }, - set: function(val) { - FileWriteStream = val; - }, - enumerable: true, - configurable: true - }); - function ReadStream(path, options) { - if (this instanceof ReadStream) - return fs$ReadStream.apply(this, arguments), this; - else - return ReadStream.apply(Object.create(ReadStream.prototype), arguments); - } - function ReadStream$open() { - var that = this; - open(that.path, that.flags, that.mode, function(err, fd) { - if (err) { - if (that.autoClose) - that.destroy(); - that.emit("error", err); - } else { - that.fd = fd; - that.emit("open", fd); - that.read(); - } - }); - } - function WriteStream(path, options) { - if (this instanceof WriteStream) - return fs$WriteStream.apply(this, arguments), this; - else - return WriteStream.apply(Object.create(WriteStream.prototype), arguments); - } - function WriteStream$open() { - var that = this; - open(that.path, that.flags, that.mode, function(err, fd) { - if (err) { - that.destroy(); - that.emit("error", err); - } else { - that.fd = fd; - that.emit("open", fd); - } - }); - } - function createReadStream(path, options) { - return new fs2.ReadStream(path, options); - } - function createWriteStream(path, options) { - return new fs2.WriteStream(path, options); - } - var fs$open = fs2.open; - fs2.open = open; - function open(path, flags, mode, cb) { - if (typeof mode === "function") - cb = mode, mode = null; - return go$open(path, flags, mode, cb); - function go$open(path2, flags2, mode2, cb2, startTime) { - return fs$open(path2, flags2, mode2, function(err, fd) { - if (err && (err.code === "EMFILE" || err.code === "ENFILE")) - enqueue([go$open, [path2, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]); - else { - if (typeof cb2 === "function") - cb2.apply(this, arguments); - } - }); - } - } - return fs2; - } - function enqueue(elem) { - debug("ENQUEUE", elem[0].name, elem[1]); - fs[gracefulQueue].push(elem); - retry(); - } - var retryTimer; - function resetQueue() { - var now = Date.now(); - for (var i = 0; i < fs[gracefulQueue].length; ++i) { - if (fs[gracefulQueue][i].length > 2) { - fs[gracefulQueue][i][3] = now; - fs[gracefulQueue][i][4] = now; - } - } - retry(); - } - function retry() { - clearTimeout(retryTimer); - retryTimer = void 0; - if (fs[gracefulQueue].length === 0) - return; - var elem = fs[gracefulQueue].shift(); - var fn = elem[0]; - var args = elem[1]; - var err = elem[2]; - var startTime = elem[3]; - var lastTime = elem[4]; - if (startTime === void 0) { - debug("RETRY", fn.name, args); - fn.apply(null, args); - } else if (Date.now() - startTime >= 6e4) { - debug("TIMEOUT", fn.name, args); - var cb = args.pop(); - if (typeof cb === "function") - cb.call(null, err); - } else { - var sinceAttempt = Date.now() - lastTime; - var sinceStart = Math.max(lastTime - startTime, 1); - var desiredDelay = Math.min(sinceStart * 1.2, 100); - if (sinceAttempt >= desiredDelay) { - debug("RETRY", fn.name, args); - fn.apply(null, args.concat([startTime])); - } else { - fs[gracefulQueue].push(elem); - } - } - if (retryTimer === void 0) { - retryTimer = setTimeout(retry, 0); - } - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/strip-bom-npm-3.0.0-71e8f81ff9-8d50ff27b7.zip/node_modules/strip-bom/index.js - var require_strip_bom = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/strip-bom-npm-3.0.0-71e8f81ff9-8d50ff27b7.zip/node_modules/strip-bom/index.js"(exports, module) { - "use strict"; - module.exports = (x) => { - if (typeof x !== "string") { - throw new TypeError("Expected a string, got " + typeof x); - } - if (x.charCodeAt(0) === 65279) { - return x.slice(1); - } - return x; - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/is-arrayish-npm-0.2.1-23927dfb15-eef4417e3c.zip/node_modules/is-arrayish/index.js - var require_is_arrayish = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/is-arrayish-npm-0.2.1-23927dfb15-eef4417e3c.zip/node_modules/is-arrayish/index.js"(exports, module) { - "use strict"; - module.exports = function isArrayish(obj) { - if (!obj) { - return false; - } - return obj instanceof Array || Array.isArray(obj) || obj.length >= 0 && obj.splice instanceof Function; - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/error-ex-npm-1.3.2-5654f80c0f-c1c2b8b65f.zip/node_modules/error-ex/index.js - var require_error_ex = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/error-ex-npm-1.3.2-5654f80c0f-c1c2b8b65f.zip/node_modules/error-ex/index.js"(exports, module) { - "use strict"; - var util = __require("util"); - var isArrayish = require_is_arrayish(); - var errorEx = function errorEx2(name, properties) { - if (!name || name.constructor !== String) { - properties = name || {}; - name = Error.name; - } - var errorExError = function ErrorEXError(message) { - if (!this) { - return new ErrorEXError(message); - } - message = message instanceof Error ? message.message : message || this.message; - Error.call(this, message); - Error.captureStackTrace(this, errorExError); - this.name = name; - Object.defineProperty(this, "message", { - configurable: true, - enumerable: false, - get: function() { - var newMessage = message.split(/\r?\n/g); - for (var key in properties) { - if (!properties.hasOwnProperty(key)) { - continue; - } - var modifier = properties[key]; - if ("message" in modifier) { - newMessage = modifier.message(this[key], newMessage) || newMessage; - if (!isArrayish(newMessage)) { - newMessage = [newMessage]; - } - } - } - return newMessage.join("\n"); - }, - set: function(v) { - message = v; - } - }); - var overwrittenStack = null; - var stackDescriptor = Object.getOwnPropertyDescriptor(this, "stack"); - var stackGetter = stackDescriptor.get; - var stackValue = stackDescriptor.value; - delete stackDescriptor.value; - delete stackDescriptor.writable; - stackDescriptor.set = function(newstack) { - overwrittenStack = newstack; - }; - stackDescriptor.get = function() { - var stack = (overwrittenStack || (stackGetter ? stackGetter.call(this) : stackValue)).split(/\r?\n+/g); - if (!overwrittenStack) { - stack[0] = this.name + ": " + this.message; - } - var lineCount = 1; - for (var key in properties) { - if (!properties.hasOwnProperty(key)) { - continue; - } - var modifier = properties[key]; - if ("line" in modifier) { - var line = modifier.line(this[key]); - if (line) { - stack.splice(lineCount++, 0, " " + line); - } - } - if ("stack" in modifier) { - modifier.stack(this[key], stack); - } - } - return stack.join("\n"); - }; - Object.defineProperty(this, "stack", stackDescriptor); - }; - if (Object.setPrototypeOf) { - Object.setPrototypeOf(errorExError.prototype, Error.prototype); - Object.setPrototypeOf(errorExError, Error); - } else { - util.inherits(errorExError, Error); - } - return errorExError; - }; - errorEx.append = function(str, def) { - return { - message: function(v, message) { - v = v || def; - if (v) { - message[0] += " " + str.replace("%s", v.toString()); - } - return message; - } - }; - }; - errorEx.line = function(str, def) { - return { - line: function(v) { - v = v || def; - if (v) { - return str.replace("%s", v.toString()); - } - return null; - } - }; - }; - module.exports = errorEx; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/json-parse-better-errors-npm-1.0.2-7f37637d19-ff2b5ba2a7.zip/node_modules/json-parse-better-errors/index.js - var require_json_parse_better_errors = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/json-parse-better-errors-npm-1.0.2-7f37637d19-ff2b5ba2a7.zip/node_modules/json-parse-better-errors/index.js"(exports, module) { - "use strict"; - module.exports = parseJson; - function parseJson(txt, reviver, context) { - context = context || 20; - try { - return JSON.parse(txt, reviver); - } catch (e) { - if (typeof txt !== "string") { - const isEmptyArray = Array.isArray(txt) && txt.length === 0; - const errorMessage = "Cannot parse " + (isEmptyArray ? "an empty array" : String(txt)); - throw new TypeError(errorMessage); - } - const syntaxErr = e.message.match(/^Unexpected token.*position\s+(\d+)/i); - const errIdx = syntaxErr ? +syntaxErr[1] : e.message.match(/^Unexpected end of JSON.*/i) ? txt.length - 1 : null; - if (errIdx != null) { - const start = errIdx <= context ? 0 : errIdx - context; - const end = errIdx + context >= txt.length ? txt.length : errIdx + context; - e.message += ` while parsing near '${start === 0 ? "" : "..."}${txt.slice(start, end)}${end === txt.length ? "" : "..."}'`; - } else { - e.message += ` while parsing '${txt.slice(0, context * 2)}'`; - } - throw e; - } - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/parse-json-npm-4.0.0-a6f7771010-0fe227d410.zip/node_modules/parse-json/index.js - var require_parse_json = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/parse-json-npm-4.0.0-a6f7771010-0fe227d410.zip/node_modules/parse-json/index.js"(exports, module) { - "use strict"; - var errorEx = require_error_ex(); - var fallback = require_json_parse_better_errors(); - var JSONError = errorEx("JSONError", { - fileName: errorEx.append("in %s") - }); - module.exports = (input, reviver, filename) => { - if (typeof reviver === "string") { - filename = reviver; - reviver = null; - } - try { - try { - return JSON.parse(input, reviver); - } catch (err) { - fallback(input, reviver); - throw err; - } - } catch (err) { - err.message = err.message.replace(/\n/g, ""); - const jsonErr = new JSONError(err); - if (filename) { - jsonErr.fileName = filename; - } - throw jsonErr; - } - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/pify-npm-3.0.0-679ee405c8-6cdcbc3567.zip/node_modules/pify/index.js - var require_pify2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/pify-npm-3.0.0-679ee405c8-6cdcbc3567.zip/node_modules/pify/index.js"(exports, module) { - "use strict"; - var processFn = (fn, opts) => function() { - const P = opts.promiseModule; - const args = new Array(arguments.length); - for (let i = 0; i < arguments.length; i++) { - args[i] = arguments[i]; - } - return new P((resolve, reject) => { - if (opts.errorFirst) { - args.push(function(err, result) { - if (opts.multiArgs) { - const results = new Array(arguments.length - 1); - for (let i = 1; i < arguments.length; i++) { - results[i - 1] = arguments[i]; - } - if (err) { - results.unshift(err); - reject(results); - } else { - resolve(results); - } - } else if (err) { - reject(err); - } else { - resolve(result); - } - }); - } else { - args.push(function(result) { - if (opts.multiArgs) { - const results = new Array(arguments.length - 1); - for (let i = 0; i < arguments.length; i++) { - results[i] = arguments[i]; - } - resolve(results); - } else { - resolve(result); - } - }); - } - fn.apply(this, args); - }); - }; - module.exports = (obj, opts) => { - opts = Object.assign({ - exclude: [/.+(Sync|Stream)$/], - errorFirst: true, - promiseModule: Promise - }, opts); - const filter = (key) => { - const match = (pattern) => typeof pattern === "string" ? key === pattern : pattern.test(key); - return opts.include ? opts.include.some(match) : !opts.exclude.some(match); - }; - let ret; - if (typeof obj === "function") { - ret = function() { - if (opts.excludeMain) { - return obj.apply(this, arguments); - } - return processFn(obj, opts).apply(this, arguments); - }; - } else { - ret = Object.create(Object.getPrototypeOf(obj)); - } - for (const key in obj) { - const x = obj[key]; - ret[key] = typeof x === "function" && filter(key) ? processFn(x, opts) : x; - } - return ret; - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/load-json-file-npm-4.0.0-c9f09d85eb-8f5d6d93ba.zip/node_modules/load-json-file/index.js - var require_load_json_file = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/load-json-file-npm-4.0.0-c9f09d85eb-8f5d6d93ba.zip/node_modules/load-json-file/index.js"(exports, module) { - "use strict"; - var path = __require("path"); - var fs = require_graceful_fs(); - var stripBom = require_strip_bom(); - var parseJson = require_parse_json(); - var pify = require_pify2(); - var parse = (data, fp) => parseJson(stripBom(data), path.relative(".", fp)); - module.exports = (fp) => pify(fs.readFile)(fp, "utf8").then((data) => parse(data, fp)); - module.exports.sync = (fp) => parse(fs.readFileSync(fp, "utf8"), fp); - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/path-type-npm-3.0.0-252361a0eb-735b35e256.zip/node_modules/path-type/index.js - var require_path_type = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/path-type-npm-3.0.0-252361a0eb-735b35e256.zip/node_modules/path-type/index.js"(exports) { - "use strict"; - var fs = __require("fs"); - var pify = require_pify2(); - function type(fn, fn2, fp) { - if (typeof fp !== "string") { - return Promise.reject(new TypeError(`Expected a string, got ${typeof fp}`)); - } - return pify(fs[fn])(fp).then((stats) => stats[fn2]()).catch((err) => { - if (err.code === "ENOENT") { - return false; - } - throw err; - }); - } - function typeSync(fn, fn2, fp) { - if (typeof fp !== "string") { - throw new TypeError(`Expected a string, got ${typeof fp}`); - } - try { - return fs[fn](fp)[fn2](); - } catch (err) { - if (err.code === "ENOENT") { - return false; - } - throw err; - } - } - exports.file = type.bind(null, "stat", "isFile"); - exports.dir = type.bind(null, "stat", "isDirectory"); - exports.symlink = type.bind(null, "lstat", "isSymbolicLink"); - exports.fileSync = typeSync.bind(null, "statSync", "isFile"); - exports.dirSync = typeSync.bind(null, "statSync", "isDirectory"); - exports.symlinkSync = typeSync.bind(null, "lstatSync", "isSymbolicLink"); - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/hosted-git-info-npm-2.8.9-62c44fa93f-c955394bda.zip/node_modules/hosted-git-info/git-host-info.js - var require_git_host_info2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/hosted-git-info-npm-2.8.9-62c44fa93f-c955394bda.zip/node_modules/hosted-git-info/git-host-info.js"(exports, module) { - "use strict"; - var gitHosts = module.exports = { - github: { - "protocols": ["git", "http", "git+ssh", "git+https", "ssh", "https"], - "domain": "github.com", - "treepath": "tree", - "filetemplate": "https://{auth@}raw.githubusercontent.com/{user}/{project}/{committish}/{path}", - "bugstemplate": "https://{domain}/{user}/{project}/issues", - "gittemplate": "git://{auth@}{domain}/{user}/{project}.git{#committish}", - "tarballtemplate": "https://codeload.{domain}/{user}/{project}/tar.gz/{committish}" - }, - bitbucket: { - "protocols": ["git+ssh", "git+https", "ssh", "https"], - "domain": "bitbucket.org", - "treepath": "src", - "tarballtemplate": "https://{domain}/{user}/{project}/get/{committish}.tar.gz" - }, - gitlab: { - "protocols": ["git+ssh", "git+https", "ssh", "https"], - "domain": "gitlab.com", - "treepath": "tree", - "bugstemplate": "https://{domain}/{user}/{project}/issues", - "httpstemplate": "git+https://{auth@}{domain}/{user}/{projectPath}.git{#committish}", - "tarballtemplate": "https://{domain}/{user}/{project}/repository/archive.tar.gz?ref={committish}", - "pathmatch": /^[/]([^/]+)[/]((?!.*(\/-\/|\/repository\/archive\.tar\.gz\?=.*|\/repository\/[^/]+\/archive.tar.gz$)).*?)(?:[.]git|[/])?$/ - }, - gist: { - "protocols": ["git", "git+ssh", "git+https", "ssh", "https"], - "domain": "gist.github.com", - "pathmatch": /^[/](?:([^/]+)[/])?([a-z0-9]{32,})(?:[.]git)?$/, - "filetemplate": "https://gist.githubusercontent.com/{user}/{project}/raw{/committish}/{path}", - "bugstemplate": "https://{domain}/{project}", - "gittemplate": "git://{domain}/{project}.git{#committish}", - "sshtemplate": "git@{domain}:/{project}.git{#committish}", - "sshurltemplate": "git+ssh://git@{domain}/{project}.git{#committish}", - "browsetemplate": "https://{domain}/{project}{/committish}", - "browsefiletemplate": "https://{domain}/{project}{/committish}{#path}", - "docstemplate": "https://{domain}/{project}{/committish}", - "httpstemplate": "git+https://{domain}/{project}.git{#committish}", - "shortcuttemplate": "{type}:{project}{#committish}", - "pathtemplate": "{project}{#committish}", - "tarballtemplate": "https://codeload.github.com/gist/{project}/tar.gz/{committish}", - "hashformat": function(fragment) { - return "file-" + formatHashFragment(fragment); - } - } - }; - var gitHostDefaults = { - "sshtemplate": "git@{domain}:{user}/{project}.git{#committish}", - "sshurltemplate": "git+ssh://git@{domain}/{user}/{project}.git{#committish}", - "browsetemplate": "https://{domain}/{user}/{project}{/tree/committish}", - "browsefiletemplate": "https://{domain}/{user}/{project}/{treepath}/{committish}/{path}{#fragment}", - "docstemplate": "https://{domain}/{user}/{project}{/tree/committish}#readme", - "httpstemplate": "git+https://{auth@}{domain}/{user}/{project}.git{#committish}", - "filetemplate": "https://{domain}/{user}/{project}/raw/{committish}/{path}", - "shortcuttemplate": "{type}:{user}/{project}{#committish}", - "pathtemplate": "{user}/{project}{#committish}", - "pathmatch": /^[/]([^/]+)[/]([^/]+?)(?:[.]git|[/])?$/, - "hashformat": formatHashFragment - }; - Object.keys(gitHosts).forEach(function(name) { - Object.keys(gitHostDefaults).forEach(function(key) { - if (gitHosts[name][key]) - return; - gitHosts[name][key] = gitHostDefaults[key]; - }); - gitHosts[name].protocols_re = RegExp("^(" + gitHosts[name].protocols.map(function(protocol) { - return protocol.replace(/([\\+*{}()[\]$^|])/g, "\\$1"); - }).join("|") + "):$"); - }); - function formatHashFragment(fragment) { - return fragment.toLowerCase().replace(/^\W+|\/|\W+$/g, "").replace(/\W+/g, "-"); - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/hosted-git-info-npm-2.8.9-62c44fa93f-c955394bda.zip/node_modules/hosted-git-info/git-host.js - var require_git_host2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/hosted-git-info-npm-2.8.9-62c44fa93f-c955394bda.zip/node_modules/hosted-git-info/git-host.js"(exports, module) { - "use strict"; - var gitHosts = require_git_host_info2(); - var extend = Object.assign || function _extend(target, source) { - if (source === null || typeof source !== "object") - return target; - var keys = Object.keys(source); - var i = keys.length; - while (i--) { - target[keys[i]] = source[keys[i]]; - } - return target; - }; - module.exports = GitHost; - function GitHost(type, user, auth, project, committish, defaultRepresentation, opts) { - var gitHostInfo = this; - gitHostInfo.type = type; - Object.keys(gitHosts[type]).forEach(function(key) { - gitHostInfo[key] = gitHosts[type][key]; - }); - gitHostInfo.user = user; - gitHostInfo.auth = auth; - gitHostInfo.project = project; - gitHostInfo.committish = committish; - gitHostInfo.default = defaultRepresentation; - gitHostInfo.opts = opts || {}; - } - GitHost.prototype.hash = function() { - return this.committish ? "#" + this.committish : ""; - }; - GitHost.prototype._fill = function(template, opts) { - if (!template) - return; - var vars = extend({}, opts); - vars.path = vars.path ? vars.path.replace(/^[/]+/g, "") : ""; - opts = extend(extend({}, this.opts), opts); - var self2 = this; - Object.keys(this).forEach(function(key) { - if (self2[key] != null && vars[key] == null) - vars[key] = self2[key]; - }); - var rawAuth = vars.auth; - var rawcommittish = vars.committish; - var rawFragment = vars.fragment; - var rawPath = vars.path; - var rawProject = vars.project; - Object.keys(vars).forEach(function(key) { - var value = vars[key]; - if ((key === "path" || key === "project") && typeof value === "string") { - vars[key] = value.split("/").map(function(pathComponent) { - return encodeURIComponent(pathComponent); - }).join("/"); - } else { - vars[key] = encodeURIComponent(value); - } - }); - vars["auth@"] = rawAuth ? rawAuth + "@" : ""; - vars["#fragment"] = rawFragment ? "#" + this.hashformat(rawFragment) : ""; - vars.fragment = vars.fragment ? vars.fragment : ""; - vars["#path"] = rawPath ? "#" + this.hashformat(rawPath) : ""; - vars["/path"] = vars.path ? "/" + vars.path : ""; - vars.projectPath = rawProject.split("/").map(encodeURIComponent).join("/"); - if (opts.noCommittish) { - vars["#committish"] = ""; - vars["/tree/committish"] = ""; - vars["/committish"] = ""; - vars.committish = ""; - } else { - vars["#committish"] = rawcommittish ? "#" + rawcommittish : ""; - vars["/tree/committish"] = vars.committish ? "/" + vars.treepath + "/" + vars.committish : ""; - vars["/committish"] = vars.committish ? "/" + vars.committish : ""; - vars.committish = vars.committish || "master"; - } - var res = template; - Object.keys(vars).forEach(function(key) { - res = res.replace(new RegExp("[{]" + key + "[}]", "g"), vars[key]); - }); - if (opts.noGitPlus) { - return res.replace(/^git[+]/, ""); - } else { - return res; - } - }; - GitHost.prototype.ssh = function(opts) { - return this._fill(this.sshtemplate, opts); - }; - GitHost.prototype.sshurl = function(opts) { - return this._fill(this.sshurltemplate, opts); - }; - GitHost.prototype.browse = function(P, F, opts) { - if (typeof P === "string") { - if (typeof F !== "string") { - opts = F; - F = null; - } - return this._fill(this.browsefiletemplate, extend({ - fragment: F, - path: P - }, opts)); - } else { - return this._fill(this.browsetemplate, P); - } - }; - GitHost.prototype.docs = function(opts) { - return this._fill(this.docstemplate, opts); - }; - GitHost.prototype.bugs = function(opts) { - return this._fill(this.bugstemplate, opts); - }; - GitHost.prototype.https = function(opts) { - return this._fill(this.httpstemplate, opts); - }; - GitHost.prototype.git = function(opts) { - return this._fill(this.gittemplate, opts); - }; - GitHost.prototype.shortcut = function(opts) { - return this._fill(this.shortcuttemplate, opts); - }; - GitHost.prototype.path = function(opts) { - return this._fill(this.pathtemplate, opts); - }; - GitHost.prototype.tarball = function(opts_) { - var opts = extend({}, opts_, {noCommittish: false}); - return this._fill(this.tarballtemplate, opts); - }; - GitHost.prototype.file = function(P, opts) { - return this._fill(this.filetemplate, extend({path: P}, opts)); - }; - GitHost.prototype.getDefaultRepresentation = function() { - return this.default; - }; - GitHost.prototype.toString = function(opts) { - if (this.default && typeof this[this.default] === "function") - return this[this.default](opts); - return this.sshurl(opts); - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/hosted-git-info-npm-2.8.9-62c44fa93f-c955394bda.zip/node_modules/hosted-git-info/index.js - var require_hosted_git_info2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/hosted-git-info-npm-2.8.9-62c44fa93f-c955394bda.zip/node_modules/hosted-git-info/index.js"(exports, module) { - "use strict"; - var url = __require("url"); - var gitHosts = require_git_host_info2(); - var GitHost = module.exports = require_git_host2(); - var protocolToRepresentationMap = { - "git+ssh:": "sshurl", - "git+https:": "https", - "ssh:": "sshurl", - "git:": "git" - }; - function protocolToRepresentation(protocol) { - return protocolToRepresentationMap[protocol] || protocol.slice(0, -1); - } - var authProtocols = { - "git:": true, - "https:": true, - "git+https:": true, - "http:": true, - "git+http:": true - }; - var cache = {}; - module.exports.fromUrl = function(giturl, opts) { - if (typeof giturl !== "string") - return; - var key = giturl + JSON.stringify(opts || {}); - if (!(key in cache)) { - cache[key] = fromUrl(giturl, opts); - } - return cache[key]; - }; - function fromUrl(giturl, opts) { - if (giturl == null || giturl === "") - return; - var url2 = fixupUnqualifiedGist(isGitHubShorthand(giturl) ? "github:" + giturl : giturl); - var parsed = parseGitUrl(url2); - var shortcutMatch = url2.match(/^([^:]+):(?:[^@]+@)?(?:([^/]*)\/)?([^#]+)/); - var matches = Object.keys(gitHosts).map(function(gitHostName) { - try { - var gitHostInfo = gitHosts[gitHostName]; - var auth = null; - if (parsed.auth && authProtocols[parsed.protocol]) { - auth = parsed.auth; - } - var committish = parsed.hash ? decodeURIComponent(parsed.hash.substr(1)) : null; - var user = null; - var project = null; - var defaultRepresentation = null; - if (shortcutMatch && shortcutMatch[1] === gitHostName) { - user = shortcutMatch[2] && decodeURIComponent(shortcutMatch[2]); - project = decodeURIComponent(shortcutMatch[3].replace(/\.git$/, "")); - defaultRepresentation = "shortcut"; - } else { - if (parsed.host && parsed.host !== gitHostInfo.domain && parsed.host.replace(/^www[.]/, "") !== gitHostInfo.domain) - return; - if (!gitHostInfo.protocols_re.test(parsed.protocol)) - return; - if (!parsed.path) - return; - var pathmatch = gitHostInfo.pathmatch; - var matched = parsed.path.match(pathmatch); - if (!matched) - return; - if (matched[1] !== null && matched[1] !== void 0) { - user = decodeURIComponent(matched[1].replace(/^:/, "")); - } - project = decodeURIComponent(matched[2]); - defaultRepresentation = protocolToRepresentation(parsed.protocol); - } - return new GitHost(gitHostName, user, auth, project, committish, defaultRepresentation, opts); - } catch (ex) { - if (ex instanceof URIError) { - } else - throw ex; - } - }).filter(function(gitHostInfo) { - return gitHostInfo; - }); - if (matches.length !== 1) - return; - return matches[0]; - } - function isGitHubShorthand(arg) { - return /^[^:@%/\s.-][^:@%/\s]*[/][^:@\s/%]+(?:#.*)?$/.test(arg); - } - function fixupUnqualifiedGist(giturl) { - var parsed = url.parse(giturl); - if (parsed.protocol === "gist:" && parsed.host && !parsed.path) { - return parsed.protocol + "/" + parsed.host; - } else { - return giturl; - } - } - function parseGitUrl(giturl) { - var matched = giturl.match(/^([^@]+)@([^:/]+):[/]?((?:[^/]+[/])?[^/]+?)(?:[.]git)?(#.*)?$/); - if (!matched) { - var legacy = url.parse(giturl); - if (legacy.auth && typeof url.URL === "function") { - var authmatch = giturl.match(/[^@]+@[^:/]+/); - if (authmatch) { - var whatwg = new url.URL(authmatch[0]); - legacy.auth = whatwg.username || ""; - if (whatwg.password) - legacy.auth += ":" + whatwg.password; - } - } - return legacy; - } - return { - protocol: "git+ssh:", - slashes: true, - auth: matched[1], - host: matched[2], - port: null, - hostname: matched[2], - hash: matched[4], - search: null, - query: null, - pathname: "/" + matched[3], - path: "/" + matched[3], - href: "git+ssh://" + matched[1] + "@" + matched[2] + "/" + matched[3] + (matched[4] || "") - }; - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/lib/homedir.js - var require_homedir = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/lib/homedir.js"(exports, module) { - "use strict"; - var os = __require("os"); - module.exports = os.homedir || function homedir() { - var home = process.env.HOME; - var user = process.env.LOGNAME || process.env.USER || process.env.LNAME || process.env.USERNAME; - if (process.platform === "win32") { - return process.env.USERPROFILE || process.env.HOMEDRIVE + process.env.HOMEPATH || home || null; - } - if (process.platform === "darwin") { - return home || (user ? "/Users/" + user : null); - } - if (process.platform === "linux") { - return home || (process.getuid() === 0 ? "/root" : user ? "/home/" + user : null); - } - return home || null; - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/lib/caller.js - var require_caller = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/lib/caller.js"(exports, module) { - module.exports = function() { - var origPrepareStackTrace = Error.prepareStackTrace; - Error.prepareStackTrace = function(_, stack2) { - return stack2; - }; - var stack = new Error().stack; - Error.prepareStackTrace = origPrepareStackTrace; - return stack[2].getFileName(); - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/path-parse-npm-1.0.7-09564527b7-49abf3d811.zip/node_modules/path-parse/index.js - var require_path_parse = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/path-parse-npm-1.0.7-09564527b7-49abf3d811.zip/node_modules/path-parse/index.js"(exports, module) { - "use strict"; - var isWindows = process.platform === "win32"; - var splitWindowsRe = /^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/; - var win32 = {}; - function win32SplitPath(filename) { - return splitWindowsRe.exec(filename).slice(1); - } - win32.parse = function(pathString) { - if (typeof pathString !== "string") { - throw new TypeError("Parameter 'pathString' must be a string, not " + typeof pathString); - } - var allParts = win32SplitPath(pathString); - if (!allParts || allParts.length !== 5) { - throw new TypeError("Invalid path '" + pathString + "'"); - } - return { - root: allParts[1], - dir: allParts[0] === allParts[1] ? allParts[0] : allParts[0].slice(0, -1), - base: allParts[2], - ext: allParts[4], - name: allParts[3] - }; - }; - var splitPathRe = /^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/; - var posix = {}; - function posixSplitPath(filename) { - return splitPathRe.exec(filename).slice(1); - } - posix.parse = function(pathString) { - if (typeof pathString !== "string") { - throw new TypeError("Parameter 'pathString' must be a string, not " + typeof pathString); - } - var allParts = posixSplitPath(pathString); - if (!allParts || allParts.length !== 5) { - throw new TypeError("Invalid path '" + pathString + "'"); - } - return { - root: allParts[1], - dir: allParts[0].slice(0, -1), - base: allParts[2], - ext: allParts[4], - name: allParts[3] - }; - }; - if (isWindows) - module.exports = win32.parse; - else - module.exports = posix.parse; - module.exports.posix = posix.parse; - module.exports.win32 = win32.parse; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/lib/node-modules-paths.js - var require_node_modules_paths = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/lib/node-modules-paths.js"(exports, module) { - var path = __require("path"); - var parse = path.parse || require_path_parse(); - var getNodeModulesDirs = function getNodeModulesDirs2(absoluteStart, modules) { - var prefix = "/"; - if (/^([A-Za-z]:)/.test(absoluteStart)) { - prefix = ""; - } else if (/^\\\\/.test(absoluteStart)) { - prefix = "\\\\"; - } - var paths = [absoluteStart]; - var parsed = parse(absoluteStart); - while (parsed.dir !== paths[paths.length - 1]) { - paths.push(parsed.dir); - parsed = parse(parsed.dir); - } - return paths.reduce(function(dirs, aPath) { - return dirs.concat(modules.map(function(moduleDir) { - return path.resolve(prefix, aPath, moduleDir); - })); - }, []); - }; - module.exports = function nodeModulesPaths(start, opts, request) { - var modules = opts && opts.moduleDirectory ? [].concat(opts.moduleDirectory) : ["node_modules"]; - if (opts && typeof opts.paths === "function") { - return opts.paths(request, start, function() { - return getNodeModulesDirs(start, modules); - }, opts); - } - var dirs = getNodeModulesDirs(start, modules); - return opts && opts.paths ? dirs.concat(opts.paths) : dirs; - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/lib/normalize-options.js - var require_normalize_options = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/lib/normalize-options.js"(exports, module) { - var path = __require("path"); - module.exports = function(_, opts) { - opts = opts || {}; - if (opts.forceNodeResolution || !process.versions.pnp) - return opts; - const {findPnpApi} = __require("module"); - const runPnpResolution = (request, basedir) => { - const parts = request.match(/^((?:@[^/]+\/)?[^/]+)(\/.*)?/); - if (!parts) - throw new Error(`Assertion failed: Expected the "resolve" package to call the "paths" callback with package names only (got "${request}")`); - if (basedir.charAt(basedir.length - 1) !== `/`) - basedir = path.join(basedir, `/`); - const api = findPnpApi(basedir); - if (api === null) - return void 0; - let manifestPath; - try { - manifestPath = api.resolveToUnqualified(`${parts[1]}/package.json`, basedir, {considerBuiltins: false}); - } catch (err) { - return null; - } - if (manifestPath === null) - throw new Error(`Assertion failed: The resolution thinks that "${parts[1]}" is a Node builtin`); - const packagePath = path.dirname(manifestPath); - const unqualifiedPath = typeof parts[2] !== `undefined` ? path.join(packagePath, parts[2]) : packagePath; - return {packagePath, unqualifiedPath}; - }; - const runPnpResolutionOnArray = (request, paths2) => { - for (let i = 0; i < paths2.length; i++) { - const resolution = runPnpResolution(request, paths2[i]); - if (resolution || i === paths2.length - 1) { - return resolution; - } - } - return null; - }; - const originalPaths = Array.isArray(opts.paths) ? opts.paths : []; - const packageIterator = (request, basedir, getCandidates, opts2) => { - const pathsToTest = [basedir].concat(originalPaths); - const resolution = runPnpResolutionOnArray(request, pathsToTest); - if (resolution == null) - return getCandidates(); - return [resolution.unqualifiedPath]; - }; - const paths = (request, basedir, getNodeModulePaths, opts2) => { - const pathsToTest = [basedir].concat(originalPaths); - const resolution = runPnpResolutionOnArray(request, pathsToTest); - if (resolution == null) - return getNodeModulePaths().concat(originalPaths); - let nodeModules = path.dirname(resolution.packagePath); - if (request.match(/^@[^/]+\//)) - nodeModules = path.dirname(nodeModules); - return [nodeModules]; - }; - let isInsideIterator = false; - if (!opts.__skipPackageIterator) { - opts.packageIterator = function(request, basedir, getCandidates, opts2) { - isInsideIterator = true; - try { - return packageIterator(request, basedir, getCandidates, opts2); - } finally { - isInsideIterator = false; - } - }; - } - opts.paths = function(request, basedir, getNodeModulePaths, opts2) { - if (isInsideIterator) - return getNodeModulePaths().concat(originalPaths); - return paths(request, basedir, getNodeModulePaths, opts2); - }; - return opts; - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/lib/async.js - var require_async = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/lib/async.js"(exports, module) { - var fs = __require("fs"); - var getHomedir = require_homedir(); - var path = __require("path"); - var caller = require_caller(); - var nodeModulesPaths = require_node_modules_paths(); - var normalizeOptions = require_normalize_options(); - var isCore = require_is_core_module(); - var realpathFS = fs.realpath && typeof fs.realpath.native === "function" ? fs.realpath.native : fs.realpath; - var homedir = getHomedir(); - var defaultPaths = function() { - return [ - path.join(homedir, ".node_modules"), - path.join(homedir, ".node_libraries") - ]; - }; - var defaultIsFile = function isFile(file, cb) { - fs.stat(file, function(err, stat) { - if (!err) { - return cb(null, stat.isFile() || stat.isFIFO()); - } - if (err.code === "ENOENT" || err.code === "ENOTDIR") - return cb(null, false); - return cb(err); - }); - }; - var defaultIsDir = function isDirectory(dir, cb) { - fs.stat(dir, function(err, stat) { - if (!err) { - return cb(null, stat.isDirectory()); - } - if (err.code === "ENOENT" || err.code === "ENOTDIR") - return cb(null, false); - return cb(err); - }); - }; - var defaultRealpath = function realpath(x, cb) { - realpathFS(x, function(realpathErr, realPath) { - if (realpathErr && realpathErr.code !== "ENOENT") - cb(realpathErr); - else - cb(null, realpathErr ? x : realPath); - }); - }; - var maybeRealpath = function maybeRealpath2(realpath, x, opts, cb) { - if (opts && opts.preserveSymlinks === false) { - realpath(x, cb); - } else { - cb(null, x); - } - }; - var defaultReadPackage = function defaultReadPackage2(readFile, pkgfile, cb) { - readFile(pkgfile, function(readFileErr, body) { - if (readFileErr) - cb(readFileErr); - else { - try { - var pkg = JSON.parse(body); - cb(null, pkg); - } catch (jsonErr) { - cb(null); - } - } - }); - }; - var getPackageCandidates = function getPackageCandidates2(x, start, opts) { - var dirs = nodeModulesPaths(start, opts, x); - for (var i = 0; i < dirs.length; i++) { - dirs[i] = path.join(dirs[i], x); - } - return dirs; - }; - module.exports = function resolve(x, options, callback) { - var cb = callback; - var opts = options; - if (typeof options === "function") { - cb = opts; - opts = {}; - } - if (typeof x !== "string") { - var err = new TypeError("Path must be a string."); - return process.nextTick(function() { - cb(err); - }); - } - opts = normalizeOptions(x, opts); - var isFile = opts.isFile || defaultIsFile; - var isDirectory = opts.isDirectory || defaultIsDir; - var readFile = opts.readFile || fs.readFile; - var realpath = opts.realpath || defaultRealpath; - var readPackage = opts.readPackage || defaultReadPackage; - if (opts.readFile && opts.readPackage) { - var conflictErr = new TypeError("`readFile` and `readPackage` are mutually exclusive."); - return process.nextTick(function() { - cb(conflictErr); - }); - } - var packageIterator = opts.packageIterator; - var extensions = opts.extensions || [".js"]; - var includeCoreModules = opts.includeCoreModules !== false; - var basedir = opts.basedir || path.dirname(caller()); - var parent = opts.filename || basedir; - opts.paths = opts.paths || defaultPaths(); - var absoluteStart = path.resolve(basedir); - maybeRealpath(realpath, absoluteStart, opts, function(err2, realStart) { - if (err2) - cb(err2); - else - init(realStart); - }); - var res; - function init(basedir2) { - if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(x)) { - res = path.resolve(basedir2, x); - if (x === "." || x === ".." || x.slice(-1) === "/") - res += "/"; - if (/\/$/.test(x) && res === basedir2) { - loadAsDirectory(res, opts.package, onfile); - } else - loadAsFile(res, opts.package, onfile); - } else if (includeCoreModules && isCore(x)) { - return cb(null, x); - } else - loadNodeModules(x, basedir2, function(err2, n, pkg) { - if (err2) - cb(err2); - else if (n) { - return maybeRealpath(realpath, n, opts, function(err3, realN) { - if (err3) { - cb(err3); - } else { - cb(null, realN, pkg); - } - }); - } else { - var moduleError = new Error("Cannot find module '" + x + "' from '" + parent + "'"); - moduleError.code = "MODULE_NOT_FOUND"; - cb(moduleError); - } - }); - } - function onfile(err2, m, pkg) { - if (err2) - cb(err2); - else if (m) - cb(null, m, pkg); - else - loadAsDirectory(res, function(err3, d, pkg2) { - if (err3) - cb(err3); - else if (d) { - maybeRealpath(realpath, d, opts, function(err4, realD) { - if (err4) { - cb(err4); - } else { - cb(null, realD, pkg2); - } - }); - } else { - var moduleError = new Error("Cannot find module '" + x + "' from '" + parent + "'"); - moduleError.code = "MODULE_NOT_FOUND"; - cb(moduleError); - } - }); - } - function loadAsFile(x2, thePackage, callback2) { - var loadAsFilePackage = thePackage; - var cb2 = callback2; - if (typeof loadAsFilePackage === "function") { - cb2 = loadAsFilePackage; - loadAsFilePackage = void 0; - } - var exts = [""].concat(extensions); - load(exts, x2, loadAsFilePackage); - function load(exts2, x3, loadPackage) { - if (exts2.length === 0) - return cb2(null, void 0, loadPackage); - var file = x3 + exts2[0]; - var pkg = loadPackage; - if (pkg) - onpkg(null, pkg); - else - loadpkg(path.dirname(file), onpkg); - function onpkg(err2, pkg_, dir) { - pkg = pkg_; - if (err2) - return cb2(err2); - if (dir && pkg && opts.pathFilter) { - var rfile = path.relative(dir, file); - var rel = rfile.slice(0, rfile.length - exts2[0].length); - var r = opts.pathFilter(pkg, x3, rel); - if (r) - return load([""].concat(extensions.slice()), path.resolve(dir, r), pkg); - } - isFile(file, onex); - } - function onex(err2, ex) { - if (err2) - return cb2(err2); - if (ex) - return cb2(null, file, pkg); - load(exts2.slice(1), x3, pkg); - } - } - } - function loadpkg(dir, cb2) { - if (dir === "" || dir === "/") - return cb2(null); - if (process.platform === "win32" && /^\w:[/\\]*$/.test(dir)) { - return cb2(null); - } - if (/[/\\]node_modules[/\\]*$/.test(dir)) - return cb2(null); - maybeRealpath(realpath, dir, opts, function(unwrapErr, pkgdir) { - if (unwrapErr) - return loadpkg(path.dirname(dir), cb2); - var pkgfile = path.join(pkgdir, "package.json"); - isFile(pkgfile, function(err2, ex) { - if (!ex) - return loadpkg(path.dirname(dir), cb2); - readPackage(readFile, pkgfile, function(err3, pkgParam) { - if (err3) - cb2(err3); - var pkg = pkgParam; - if (pkg && opts.packageFilter) { - pkg = opts.packageFilter(pkg, pkgfile); - } - cb2(null, pkg, dir); - }); - }); - }); - } - function loadAsDirectory(x2, loadAsDirectoryPackage, callback2) { - var cb2 = callback2; - var fpkg = loadAsDirectoryPackage; - if (typeof fpkg === "function") { - cb2 = fpkg; - fpkg = opts.package; - } - maybeRealpath(realpath, x2, opts, function(unwrapErr, pkgdir) { - if (unwrapErr) - return cb2(unwrapErr); - var pkgfile = path.join(pkgdir, "package.json"); - isFile(pkgfile, function(err2, ex) { - if (err2) - return cb2(err2); - if (!ex) - return loadAsFile(path.join(x2, "index"), fpkg, cb2); - readPackage(readFile, pkgfile, function(err3, pkgParam) { - if (err3) - return cb2(err3); - var pkg = pkgParam; - if (pkg && opts.packageFilter) { - pkg = opts.packageFilter(pkg, pkgfile); - } - if (pkg && pkg.main) { - if (typeof pkg.main !== "string") { - var mainError = new TypeError("package \u201C" + pkg.name + "\u201D `main` must be a string"); - mainError.code = "INVALID_PACKAGE_MAIN"; - return cb2(mainError); - } - if (pkg.main === "." || pkg.main === "./") { - pkg.main = "index"; - } - loadAsFile(path.resolve(x2, pkg.main), pkg, function(err4, m, pkg2) { - if (err4) - return cb2(err4); - if (m) - return cb2(null, m, pkg2); - if (!pkg2) - return loadAsFile(path.join(x2, "index"), pkg2, cb2); - var dir = path.resolve(x2, pkg2.main); - loadAsDirectory(dir, pkg2, function(err5, n, pkg3) { - if (err5) - return cb2(err5); - if (n) - return cb2(null, n, pkg3); - loadAsFile(path.join(x2, "index"), pkg3, cb2); - }); - }); - return; - } - loadAsFile(path.join(x2, "/index"), pkg, cb2); - }); - }); - }); - } - function processDirs(cb2, dirs) { - if (dirs.length === 0) - return cb2(null, void 0); - var dir = dirs[0]; - isDirectory(path.dirname(dir), isdir); - function isdir(err2, isdir2) { - if (err2) - return cb2(err2); - if (!isdir2) - return processDirs(cb2, dirs.slice(1)); - loadAsFile(dir, opts.package, onfile2); - } - function onfile2(err2, m, pkg) { - if (err2) - return cb2(err2); - if (m) - return cb2(null, m, pkg); - loadAsDirectory(dir, opts.package, ondir); - } - function ondir(err2, n, pkg) { - if (err2) - return cb2(err2); - if (n) - return cb2(null, n, pkg); - processDirs(cb2, dirs.slice(1)); - } - } - function loadNodeModules(x2, start, cb2) { - var thunk = function() { - return getPackageCandidates(x2, start, opts); - }; - processDirs(cb2, packageIterator ? packageIterator(x2, start, thunk, opts) : thunk()); - } - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/lib/core.json - var require_core2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/lib/core.json"(exports, module) { - module.exports = { - assert: true, - "node:assert": [">= 14.18 && < 15", ">= 16"], - "assert/strict": ">= 15", - "node:assert/strict": ">= 16", - async_hooks: ">= 8", - "node:async_hooks": [">= 14.18 && < 15", ">= 16"], - buffer_ieee754: ">= 0.5 && < 0.9.7", - buffer: true, - "node:buffer": [">= 14.18 && < 15", ">= 16"], - child_process: true, - "node:child_process": [">= 14.18 && < 15", ">= 16"], - cluster: ">= 0.5", - "node:cluster": [">= 14.18 && < 15", ">= 16"], - console: true, - "node:console": [">= 14.18 && < 15", ">= 16"], - constants: true, - "node:constants": [">= 14.18 && < 15", ">= 16"], - crypto: true, - "node:crypto": [">= 14.18 && < 15", ">= 16"], - _debug_agent: ">= 1 && < 8", - _debugger: "< 8", - dgram: true, - "node:dgram": [">= 14.18 && < 15", ">= 16"], - diagnostics_channel: [">= 14.17 && < 15", ">= 15.1"], - "node:diagnostics_channel": [">= 14.18 && < 15", ">= 16"], - dns: true, - "node:dns": [">= 14.18 && < 15", ">= 16"], - "dns/promises": ">= 15", - "node:dns/promises": ">= 16", - domain: ">= 0.7.12", - "node:domain": [">= 14.18 && < 15", ">= 16"], - events: true, - "node:events": [">= 14.18 && < 15", ">= 16"], - freelist: "< 6", - fs: true, - "node:fs": [">= 14.18 && < 15", ">= 16"], - "fs/promises": [">= 10 && < 10.1", ">= 14"], - "node:fs/promises": [">= 14.18 && < 15", ">= 16"], - _http_agent: ">= 0.11.1", - "node:_http_agent": [">= 14.18 && < 15", ">= 16"], - _http_client: ">= 0.11.1", - "node:_http_client": [">= 14.18 && < 15", ">= 16"], - _http_common: ">= 0.11.1", - "node:_http_common": [">= 14.18 && < 15", ">= 16"], - _http_incoming: ">= 0.11.1", - "node:_http_incoming": [">= 14.18 && < 15", ">= 16"], - _http_outgoing: ">= 0.11.1", - "node:_http_outgoing": [">= 14.18 && < 15", ">= 16"], - _http_server: ">= 0.11.1", - "node:_http_server": [">= 14.18 && < 15", ">= 16"], - http: true, - "node:http": [">= 14.18 && < 15", ">= 16"], - http2: ">= 8.8", - "node:http2": [">= 14.18 && < 15", ">= 16"], - https: true, - "node:https": [">= 14.18 && < 15", ">= 16"], - inspector: ">= 8", - "node:inspector": [">= 14.18 && < 15", ">= 16"], - _linklist: "< 8", - module: true, - "node:module": [">= 14.18 && < 15", ">= 16"], - net: true, - "node:net": [">= 14.18 && < 15", ">= 16"], - "node-inspect/lib/_inspect": ">= 7.6 && < 12", - "node-inspect/lib/internal/inspect_client": ">= 7.6 && < 12", - "node-inspect/lib/internal/inspect_repl": ">= 7.6 && < 12", - os: true, - "node:os": [">= 14.18 && < 15", ">= 16"], - path: true, - "node:path": [">= 14.18 && < 15", ">= 16"], - "path/posix": ">= 15.3", - "node:path/posix": ">= 16", - "path/win32": ">= 15.3", - "node:path/win32": ">= 16", - perf_hooks: ">= 8.5", - "node:perf_hooks": [">= 14.18 && < 15", ">= 16"], - process: ">= 1", - "node:process": [">= 14.18 && < 15", ">= 16"], - punycode: ">= 0.5", - "node:punycode": [">= 14.18 && < 15", ">= 16"], - querystring: true, - "node:querystring": [">= 14.18 && < 15", ">= 16"], - readline: true, - "node:readline": [">= 14.18 && < 15", ">= 16"], - "readline/promises": ">= 17", - "node:readline/promises": ">= 17", - repl: true, - "node:repl": [">= 14.18 && < 15", ">= 16"], - smalloc: ">= 0.11.5 && < 3", - _stream_duplex: ">= 0.9.4", - "node:_stream_duplex": [">= 14.18 && < 15", ">= 16"], - _stream_transform: ">= 0.9.4", - "node:_stream_transform": [">= 14.18 && < 15", ">= 16"], - _stream_wrap: ">= 1.4.1", - "node:_stream_wrap": [">= 14.18 && < 15", ">= 16"], - _stream_passthrough: ">= 0.9.4", - "node:_stream_passthrough": [">= 14.18 && < 15", ">= 16"], - _stream_readable: ">= 0.9.4", - "node:_stream_readable": [">= 14.18 && < 15", ">= 16"], - _stream_writable: ">= 0.9.4", - "node:_stream_writable": [">= 14.18 && < 15", ">= 16"], - stream: true, - "node:stream": [">= 14.18 && < 15", ">= 16"], - "stream/consumers": ">= 16.7", - "node:stream/consumers": ">= 16.7", - "stream/promises": ">= 15", - "node:stream/promises": ">= 16", - "stream/web": ">= 16.5", - "node:stream/web": ">= 16.5", - string_decoder: true, - "node:string_decoder": [">= 14.18 && < 15", ">= 16"], - sys: [">= 0.4 && < 0.7", ">= 0.8"], - "node:sys": [">= 14.18 && < 15", ">= 16"], - timers: true, - "node:timers": [">= 14.18 && < 15", ">= 16"], - "timers/promises": ">= 15", - "node:timers/promises": ">= 16", - _tls_common: ">= 0.11.13", - "node:_tls_common": [">= 14.18 && < 15", ">= 16"], - _tls_legacy: ">= 0.11.3 && < 10", - _tls_wrap: ">= 0.11.3", - "node:_tls_wrap": [">= 14.18 && < 15", ">= 16"], - tls: true, - "node:tls": [">= 14.18 && < 15", ">= 16"], - trace_events: ">= 10", - "node:trace_events": [">= 14.18 && < 15", ">= 16"], - tty: true, - "node:tty": [">= 14.18 && < 15", ">= 16"], - url: true, - "node:url": [">= 14.18 && < 15", ">= 16"], - util: true, - "node:util": [">= 14.18 && < 15", ">= 16"], - "util/types": ">= 15.3", - "node:util/types": ">= 16", - "v8/tools/arguments": ">= 10 && < 12", - "v8/tools/codemap": [">= 4.4 && < 5", ">= 5.2 && < 12"], - "v8/tools/consarray": [">= 4.4 && < 5", ">= 5.2 && < 12"], - "v8/tools/csvparser": [">= 4.4 && < 5", ">= 5.2 && < 12"], - "v8/tools/logreader": [">= 4.4 && < 5", ">= 5.2 && < 12"], - "v8/tools/profile_view": [">= 4.4 && < 5", ">= 5.2 && < 12"], - "v8/tools/splaytree": [">= 4.4 && < 5", ">= 5.2 && < 12"], - v8: ">= 1", - "node:v8": [">= 14.18 && < 15", ">= 16"], - vm: true, - "node:vm": [">= 14.18 && < 15", ">= 16"], - wasi: ">= 13.4 && < 13.5", - worker_threads: ">= 11.7", - "node:worker_threads": [">= 14.18 && < 15", ">= 16"], - zlib: ">= 0.5", - "node:zlib": [">= 14.18 && < 15", ">= 16"] - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/lib/core.js - var require_core3 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/lib/core.js"(exports, module) { - var current = process.versions && process.versions.node && process.versions.node.split(".") || []; - function specifierIncluded(specifier) { - var parts = specifier.split(" "); - var op = parts.length > 1 ? parts[0] : "="; - var versionParts = (parts.length > 1 ? parts[1] : parts[0]).split("."); - for (var i = 0; i < 3; ++i) { - var cur = parseInt(current[i] || 0, 10); - var ver = parseInt(versionParts[i] || 0, 10); - if (cur === ver) { - continue; - } - if (op === "<") { - return cur < ver; - } else if (op === ">=") { - return cur >= ver; - } - return false; - } - return op === ">="; - } - function matchesRange(range) { - var specifiers = range.split(/ ?&& ?/); - if (specifiers.length === 0) { - return false; - } - for (var i = 0; i < specifiers.length; ++i) { - if (!specifierIncluded(specifiers[i])) { - return false; - } - } - return true; - } - function versionIncluded(specifierValue) { - if (typeof specifierValue === "boolean") { - return specifierValue; - } - if (specifierValue && typeof specifierValue === "object") { - for (var i = 0; i < specifierValue.length; ++i) { - if (matchesRange(specifierValue[i])) { - return true; - } - } - return false; - } - return matchesRange(specifierValue); - } - var data = require_core2(); - var core = {}; - for (var mod in data) { - if (Object.prototype.hasOwnProperty.call(data, mod)) { - core[mod] = versionIncluded(data[mod]); - } - } - module.exports = core; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/lib/is-core.js - var require_is_core = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/lib/is-core.js"(exports, module) { - var isCoreModule = require_is_core_module(); - module.exports = function isCore(x) { - return isCoreModule(x); - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/lib/sync.js - var require_sync = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/lib/sync.js"(exports, module) { - var isCore = require_is_core_module(); - var fs = __require("fs"); - var path = __require("path"); - var getHomedir = require_homedir(); - var caller = require_caller(); - var nodeModulesPaths = require_node_modules_paths(); - var normalizeOptions = require_normalize_options(); - var realpathFS = fs.realpathSync && typeof fs.realpathSync.native === "function" ? fs.realpathSync.native : fs.realpathSync; - var homedir = getHomedir(); - var defaultPaths = function() { - return [ - path.join(homedir, ".node_modules"), - path.join(homedir, ".node_libraries") - ]; - }; - var defaultIsFile = function isFile(file) { - try { - var stat = fs.statSync(file, {throwIfNoEntry: false}); - } catch (e) { - if (e && (e.code === "ENOENT" || e.code === "ENOTDIR")) - return false; - throw e; - } - return !!stat && (stat.isFile() || stat.isFIFO()); - }; - var defaultIsDir = function isDirectory(dir) { - try { - var stat = fs.statSync(dir, {throwIfNoEntry: false}); - } catch (e) { - if (e && (e.code === "ENOENT" || e.code === "ENOTDIR")) - return false; - throw e; - } - return !!stat && stat.isDirectory(); - }; - var defaultRealpathSync = function realpathSync(x) { - try { - return realpathFS(x); - } catch (realpathErr) { - if (realpathErr.code !== "ENOENT") { - throw realpathErr; - } - } - return x; - }; - var maybeRealpathSync = function maybeRealpathSync2(realpathSync, x, opts) { - if (opts && opts.preserveSymlinks === false) { - return realpathSync(x); - } - return x; - }; - var defaultReadPackageSync = function defaultReadPackageSync2(readFileSync, pkgfile) { - var body = readFileSync(pkgfile); - try { - var pkg = JSON.parse(body); - return pkg; - } catch (jsonErr) { - } - }; - var getPackageCandidates = function getPackageCandidates2(x, start, opts) { - var dirs = nodeModulesPaths(start, opts, x); - for (var i = 0; i < dirs.length; i++) { - dirs[i] = path.join(dirs[i], x); - } - return dirs; - }; - module.exports = function resolveSync(x, options) { - if (typeof x !== "string") { - throw new TypeError("Path must be a string."); - } - var opts = normalizeOptions(x, options); - var isFile = opts.isFile || defaultIsFile; - var readFileSync = opts.readFileSync || fs.readFileSync; - var isDirectory = opts.isDirectory || defaultIsDir; - var realpathSync = opts.realpathSync || defaultRealpathSync; - var readPackageSync = opts.readPackageSync || defaultReadPackageSync; - if (opts.readFileSync && opts.readPackageSync) { - throw new TypeError("`readFileSync` and `readPackageSync` are mutually exclusive."); - } - var packageIterator = opts.packageIterator; - var extensions = opts.extensions || [".js"]; - var includeCoreModules = opts.includeCoreModules !== false; - var basedir = opts.basedir || path.dirname(caller()); - var parent = opts.filename || basedir; - opts.paths = opts.paths || defaultPaths(); - var absoluteStart = maybeRealpathSync(realpathSync, path.resolve(basedir), opts); - if (/^(?:\.\.?(?:\/|$)|\/|([A-Za-z]:)?[/\\])/.test(x)) { - var res = path.resolve(absoluteStart, x); - if (x === "." || x === ".." || x.slice(-1) === "/") - res += "/"; - var m = loadAsFileSync(res) || loadAsDirectorySync(res); - if (m) - return maybeRealpathSync(realpathSync, m, opts); - } else if (includeCoreModules && isCore(x)) { - return x; - } else { - var n = loadNodeModulesSync(x, absoluteStart); - if (n) - return maybeRealpathSync(realpathSync, n, opts); - } - var err = new Error("Cannot find module '" + x + "' from '" + parent + "'"); - err.code = "MODULE_NOT_FOUND"; - throw err; - function loadAsFileSync(x2) { - var pkg = loadpkg(path.dirname(x2)); - if (pkg && pkg.dir && pkg.pkg && opts.pathFilter) { - var rfile = path.relative(pkg.dir, x2); - var r = opts.pathFilter(pkg.pkg, x2, rfile); - if (r) { - x2 = path.resolve(pkg.dir, r); - } - } - if (isFile(x2)) { - return x2; - } - for (var i = 0; i < extensions.length; i++) { - var file = x2 + extensions[i]; - if (isFile(file)) { - return file; - } - } - } - function loadpkg(dir) { - if (dir === "" || dir === "/") - return; - if (process.platform === "win32" && /^\w:[/\\]*$/.test(dir)) { - return; - } - if (/[/\\]node_modules[/\\]*$/.test(dir)) - return; - var pkgfile = path.join(maybeRealpathSync(realpathSync, dir, opts), "package.json"); - if (!isFile(pkgfile)) { - return loadpkg(path.dirname(dir)); - } - var pkg = readPackageSync(readFileSync, pkgfile); - if (pkg && opts.packageFilter) { - pkg = opts.packageFilter(pkg, dir); - } - return {pkg, dir}; - } - function loadAsDirectorySync(x2) { - var pkgfile = path.join(maybeRealpathSync(realpathSync, x2, opts), "/package.json"); - if (isFile(pkgfile)) { - try { - var pkg = readPackageSync(readFileSync, pkgfile); - } catch (e) { - } - if (pkg && opts.packageFilter) { - pkg = opts.packageFilter(pkg, x2); - } - if (pkg && pkg.main) { - if (typeof pkg.main !== "string") { - var mainError = new TypeError("package \u201C" + pkg.name + "\u201D `main` must be a string"); - mainError.code = "INVALID_PACKAGE_MAIN"; - throw mainError; - } - if (pkg.main === "." || pkg.main === "./") { - pkg.main = "index"; - } - try { - var m2 = loadAsFileSync(path.resolve(x2, pkg.main)); - if (m2) - return m2; - var n2 = loadAsDirectorySync(path.resolve(x2, pkg.main)); - if (n2) - return n2; - } catch (e) { - } - } - } - return loadAsFileSync(path.join(x2, "/index")); - } - function loadNodeModulesSync(x2, start) { - var thunk = function() { - return getPackageCandidates(x2, start, opts); - }; - var dirs = packageIterator ? packageIterator(x2, start, thunk, opts) : thunk(); - for (var i = 0; i < dirs.length; i++) { - var dir = dirs[i]; - if (isDirectory(path.dirname(dir))) { - var m2 = loadAsFileSync(dir); - if (m2) - return m2; - var n2 = loadAsDirectorySync(dir); - if (n2) - return n2; - } - } - } - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/index.js - var require_resolve = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/resolve-patch-bad885c6ea-c79ecaea36.zip/node_modules/resolve/index.js"(exports, module) { - var async = require_async(); - async.core = require_core3(); - async.isCore = require_is_core(); - async.sync = require_sync(); - module.exports = async; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-2.5.0-af0345deed-7999112efc.zip/node_modules/normalize-package-data/lib/extract_description.js - var require_extract_description2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-2.5.0-af0345deed-7999112efc.zip/node_modules/normalize-package-data/lib/extract_description.js"(exports, module) { - module.exports = extractDescription; - function extractDescription(d) { - if (!d) - return; - if (d === "ERROR: No README data found!") - return; - d = d.trim().split("\n"); - for (var s = 0; d[s] && d[s].trim().match(/^(#|$)/); s++) - ; - var l = d.length; - for (var e = s + 1; e < l && d[e].trim(); e++) - ; - return d.slice(s, e).join(" ").trim(); - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-2.5.0-af0345deed-7999112efc.zip/node_modules/normalize-package-data/lib/typos.json - var require_typos2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-2.5.0-af0345deed-7999112efc.zip/node_modules/normalize-package-data/lib/typos.json"(exports, module) { - module.exports = { - topLevel: { - dependancies: "dependencies", - dependecies: "dependencies", - depdenencies: "dependencies", - devEependencies: "devDependencies", - depends: "dependencies", - "dev-dependencies": "devDependencies", - devDependences: "devDependencies", - devDepenencies: "devDependencies", - devdependencies: "devDependencies", - repostitory: "repository", - repo: "repository", - prefereGlobal: "preferGlobal", - hompage: "homepage", - hampage: "homepage", - autohr: "author", - autor: "author", - contributers: "contributors", - publicationConfig: "publishConfig", - script: "scripts" - }, - bugs: {web: "url", name: "url"}, - script: {server: "start", tests: "test"} - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-2.5.0-af0345deed-7999112efc.zip/node_modules/normalize-package-data/lib/fixer.js - var require_fixer2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-2.5.0-af0345deed-7999112efc.zip/node_modules/normalize-package-data/lib/fixer.js"(exports, module) { - var semver4 = __require("semver"); - var validateLicense = require_validate_npm_package_license(); - var hostedGitInfo = require_hosted_git_info2(); - var isBuiltinModule = require_resolve().isCore; - var depTypes = ["dependencies", "devDependencies", "optionalDependencies"]; - var extractDescription = require_extract_description2(); - var url = __require("url"); - var typos = require_typos2(); - var fixer = module.exports = { - warn: function() { - }, - fixRepositoryField: function(data) { - if (data.repositories) { - this.warn("repositories"); - data.repository = data.repositories[0]; - } - if (!data.repository) - return this.warn("missingRepository"); - if (typeof data.repository === "string") { - data.repository = { - type: "git", - url: data.repository - }; - } - var r = data.repository.url || ""; - if (r) { - var hosted = hostedGitInfo.fromUrl(r); - if (hosted) { - r = data.repository.url = hosted.getDefaultRepresentation() == "shortcut" ? hosted.https() : hosted.toString(); - } - } - if (r.match(/github.com\/[^\/]+\/[^\/]+\.git\.git$/)) { - this.warn("brokenGitUrl", r); - } - }, - fixTypos: function(data) { - Object.keys(typos.topLevel).forEach(function(d) { - if (data.hasOwnProperty(d)) { - this.warn("typo", d, typos.topLevel[d]); - } - }, this); - }, - fixScriptsField: function(data) { - if (!data.scripts) - return; - if (typeof data.scripts !== "object") { - this.warn("nonObjectScripts"); - delete data.scripts; - return; - } - Object.keys(data.scripts).forEach(function(k) { - if (typeof data.scripts[k] !== "string") { - this.warn("nonStringScript"); - delete data.scripts[k]; - } else if (typos.script[k] && !data.scripts[typos.script[k]]) { - this.warn("typo", k, typos.script[k], "scripts"); - } - }, this); - }, - fixFilesField: function(data) { - var files = data.files; - if (files && !Array.isArray(files)) { - this.warn("nonArrayFiles"); - delete data.files; - } else if (data.files) { - data.files = data.files.filter(function(file) { - if (!file || typeof file !== "string") { - this.warn("invalidFilename", file); - return false; - } else { - return true; - } - }, this); - } - }, - fixBinField: function(data) { - if (!data.bin) - return; - if (typeof data.bin === "string") { - var b = {}; - var match; - if (match = data.name.match(/^@[^/]+[/](.*)$/)) { - b[match[1]] = data.bin; - } else { - b[data.name] = data.bin; - } - data.bin = b; - } - }, - fixManField: function(data) { - if (!data.man) - return; - if (typeof data.man === "string") { - data.man = [data.man]; - } - }, - fixBundleDependenciesField: function(data) { - var bdd = "bundledDependencies"; - var bd = "bundleDependencies"; - if (data[bdd] && !data[bd]) { - data[bd] = data[bdd]; - delete data[bdd]; - } - if (data[bd] && !Array.isArray(data[bd])) { - this.warn("nonArrayBundleDependencies"); - delete data[bd]; - } else if (data[bd]) { - data[bd] = data[bd].filter(function(bd2) { - if (!bd2 || typeof bd2 !== "string") { - this.warn("nonStringBundleDependency", bd2); - return false; - } else { - if (!data.dependencies) { - data.dependencies = {}; - } - if (!data.dependencies.hasOwnProperty(bd2)) { - this.warn("nonDependencyBundleDependency", bd2); - data.dependencies[bd2] = "*"; - } - return true; - } - }, this); - } - }, - fixDependencies: function(data, strict) { - var loose = !strict; - objectifyDeps(data, this.warn); - addOptionalDepsToDeps(data, this.warn); - this.fixBundleDependenciesField(data); - ["dependencies", "devDependencies"].forEach(function(deps) { - if (!(deps in data)) - return; - if (!data[deps] || typeof data[deps] !== "object") { - this.warn("nonObjectDependencies", deps); - delete data[deps]; - return; - } - Object.keys(data[deps]).forEach(function(d) { - var r = data[deps][d]; - if (typeof r !== "string") { - this.warn("nonStringDependency", d, JSON.stringify(r)); - delete data[deps][d]; - } - var hosted = hostedGitInfo.fromUrl(data[deps][d]); - if (hosted) - data[deps][d] = hosted.toString(); - }, this); - }, this); - }, - fixModulesField: function(data) { - if (data.modules) { - this.warn("deprecatedModules"); - delete data.modules; - } - }, - fixKeywordsField: function(data) { - if (typeof data.keywords === "string") { - data.keywords = data.keywords.split(/,\s+/); - } - if (data.keywords && !Array.isArray(data.keywords)) { - delete data.keywords; - this.warn("nonArrayKeywords"); - } else if (data.keywords) { - data.keywords = data.keywords.filter(function(kw) { - if (typeof kw !== "string" || !kw) { - this.warn("nonStringKeyword"); - return false; - } else { - return true; - } - }, this); - } - }, - fixVersionField: function(data, strict) { - var loose = !strict; - if (!data.version) { - data.version = ""; - return true; - } - if (!semver4.valid(data.version, loose)) { - throw new Error('Invalid version: "' + data.version + '"'); - } - data.version = semver4.clean(data.version, loose); - return true; - }, - fixPeople: function(data) { - modifyPeople(data, unParsePerson); - modifyPeople(data, parsePerson); - }, - fixNameField: function(data, options) { - if (typeof options === "boolean") - options = {strict: options}; - else if (typeof options === "undefined") - options = {}; - var strict = options.strict; - if (!data.name && !strict) { - data.name = ""; - return; - } - if (typeof data.name !== "string") { - throw new Error("name field must be a string."); - } - if (!strict) - data.name = data.name.trim(); - ensureValidName(data.name, strict, options.allowLegacyCase); - if (isBuiltinModule(data.name)) - this.warn("conflictingName", data.name); - }, - fixDescriptionField: function(data) { - if (data.description && typeof data.description !== "string") { - this.warn("nonStringDescription"); - delete data.description; - } - if (data.readme && !data.description) - data.description = extractDescription(data.readme); - if (data.description === void 0) - delete data.description; - if (!data.description) - this.warn("missingDescription"); - }, - fixReadmeField: function(data) { - if (!data.readme) { - this.warn("missingReadme"); - data.readme = "ERROR: No README data found!"; - } - }, - fixBugsField: function(data) { - if (!data.bugs && data.repository && data.repository.url) { - var hosted = hostedGitInfo.fromUrl(data.repository.url); - if (hosted && hosted.bugs()) { - data.bugs = {url: hosted.bugs()}; - } - } else if (data.bugs) { - var emailRe = /^.+@.*\..+$/; - if (typeof data.bugs == "string") { - if (emailRe.test(data.bugs)) - data.bugs = {email: data.bugs}; - else if (url.parse(data.bugs).protocol) - data.bugs = {url: data.bugs}; - else - this.warn("nonEmailUrlBugsString"); - } else { - bugsTypos(data.bugs, this.warn); - var oldBugs = data.bugs; - data.bugs = {}; - if (oldBugs.url) { - if (typeof oldBugs.url == "string" && url.parse(oldBugs.url).protocol) - data.bugs.url = oldBugs.url; - else - this.warn("nonUrlBugsUrlField"); - } - if (oldBugs.email) { - if (typeof oldBugs.email == "string" && emailRe.test(oldBugs.email)) - data.bugs.email = oldBugs.email; - else - this.warn("nonEmailBugsEmailField"); - } - } - if (!data.bugs.email && !data.bugs.url) { - delete data.bugs; - this.warn("emptyNormalizedBugs"); - } - } - }, - fixHomepageField: function(data) { - if (!data.homepage && data.repository && data.repository.url) { - var hosted = hostedGitInfo.fromUrl(data.repository.url); - if (hosted && hosted.docs()) - data.homepage = hosted.docs(); - } - if (!data.homepage) - return; - if (typeof data.homepage !== "string") { - this.warn("nonUrlHomepage"); - return delete data.homepage; - } - if (!url.parse(data.homepage).protocol) { - data.homepage = "http://" + data.homepage; - } - }, - fixLicenseField: function(data) { - if (!data.license) { - return this.warn("missingLicense"); - } else { - if (typeof data.license !== "string" || data.license.length < 1 || data.license.trim() === "") { - this.warn("invalidLicense"); - } else { - if (!validateLicense(data.license).validForNewPackages) - this.warn("invalidLicense"); - } - } - } - }; - function isValidScopedPackageName(spec) { - if (spec.charAt(0) !== "@") - return false; - var rest = spec.slice(1).split("/"); - if (rest.length !== 2) - return false; - return rest[0] && rest[1] && rest[0] === encodeURIComponent(rest[0]) && rest[1] === encodeURIComponent(rest[1]); - } - function isCorrectlyEncodedName(spec) { - return !spec.match(/[\/@\s\+%:]/) && spec === encodeURIComponent(spec); - } - function ensureValidName(name, strict, allowLegacyCase) { - if (name.charAt(0) === "." || !(isValidScopedPackageName(name) || isCorrectlyEncodedName(name)) || strict && !allowLegacyCase && name !== name.toLowerCase() || name.toLowerCase() === "node_modules" || name.toLowerCase() === "favicon.ico") { - throw new Error("Invalid name: " + JSON.stringify(name)); - } - } - function modifyPeople(data, fn) { - if (data.author) - data.author = fn(data.author); - ["maintainers", "contributors"].forEach(function(set) { - if (!Array.isArray(data[set])) - return; - data[set] = data[set].map(fn); - }); - return data; - } - function unParsePerson(person) { - if (typeof person === "string") - return person; - var name = person.name || ""; - var u = person.url || person.web; - var url2 = u ? " (" + u + ")" : ""; - var e = person.email || person.mail; - var email = e ? " <" + e + ">" : ""; - return name + email + url2; - } - function parsePerson(person) { - if (typeof person !== "string") - return person; - var name = person.match(/^([^\(<]+)/); - var url2 = person.match(/\(([^\)]+)\)/); - var email = person.match(/<([^>]+)>/); - var obj = {}; - if (name && name[0].trim()) - obj.name = name[0].trim(); - if (email) - obj.email = email[1]; - if (url2) - obj.url = url2[1]; - return obj; - } - function addOptionalDepsToDeps(data, warn) { - var o = data.optionalDependencies; - if (!o) - return; - var d = data.dependencies || {}; - Object.keys(o).forEach(function(k) { - d[k] = o[k]; - }); - data.dependencies = d; - } - function depObjectify(deps, type, warn) { - if (!deps) - return {}; - if (typeof deps === "string") { - deps = deps.trim().split(/[\n\r\s\t ,]+/); - } - if (!Array.isArray(deps)) - return deps; - warn("deprecatedArrayDependencies", type); - var o = {}; - deps.filter(function(d) { - return typeof d === "string"; - }).forEach(function(d) { - d = d.trim().split(/(:?[@\s><=])/); - var dn = d.shift(); - var dv = d.join(""); - dv = dv.trim(); - dv = dv.replace(/^@/, ""); - o[dn] = dv; - }); - return o; - } - function objectifyDeps(data, warn) { - depTypes.forEach(function(type) { - if (!data[type]) - return; - data[type] = depObjectify(data[type], type, warn); - }); - } - function bugsTypos(bugs, warn) { - if (!bugs) - return; - Object.keys(bugs).forEach(function(k) { - if (typos.bugs[k]) { - warn("typo", k, typos.bugs[k], "bugs"); - bugs[typos.bugs[k]] = bugs[k]; - delete bugs[k]; - } - }); - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-2.5.0-af0345deed-7999112efc.zip/node_modules/normalize-package-data/lib/warning_messages.json - var require_warning_messages2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-2.5.0-af0345deed-7999112efc.zip/node_modules/normalize-package-data/lib/warning_messages.json"(exports, module) { - module.exports = { - repositories: "'repositories' (plural) Not supported. Please pick one as the 'repository' field", - missingRepository: "No repository field.", - brokenGitUrl: "Probably broken git url: %s", - nonObjectScripts: "scripts must be an object", - nonStringScript: "script values must be string commands", - nonArrayFiles: "Invalid 'files' member", - invalidFilename: "Invalid filename in 'files' list: %s", - nonArrayBundleDependencies: "Invalid 'bundleDependencies' list. Must be array of package names", - nonStringBundleDependency: "Invalid bundleDependencies member: %s", - nonDependencyBundleDependency: "Non-dependency in bundleDependencies: %s", - nonObjectDependencies: "%s field must be an object", - nonStringDependency: "Invalid dependency: %s %s", - deprecatedArrayDependencies: "specifying %s as array is deprecated", - deprecatedModules: "modules field is deprecated", - nonArrayKeywords: "keywords should be an array of strings", - nonStringKeyword: "keywords should be an array of strings", - conflictingName: "%s is also the name of a node core module.", - nonStringDescription: "'description' field should be a string", - missingDescription: "No description", - missingReadme: "No README data", - missingLicense: "No license field.", - nonEmailUrlBugsString: "Bug string field must be url, email, or {email,url}", - nonUrlBugsUrlField: "bugs.url field must be a string url. Deleted.", - nonEmailBugsEmailField: "bugs.email field must be a string email. Deleted.", - emptyNormalizedBugs: "Normalized value of bugs field is an empty object. Deleted.", - nonUrlHomepage: "homepage field must be a string url. Deleted.", - invalidLicense: "license should be a valid SPDX license expression", - typo: "%s should probably be %s." - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-2.5.0-af0345deed-7999112efc.zip/node_modules/normalize-package-data/lib/make_warning.js - var require_make_warning2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-2.5.0-af0345deed-7999112efc.zip/node_modules/normalize-package-data/lib/make_warning.js"(exports, module) { - var util = __require("util"); - var messages = require_warning_messages2(); - module.exports = function() { - var args = Array.prototype.slice.call(arguments, 0); - var warningName = args.shift(); - if (warningName == "typo") { - return makeTypoWarning.apply(null, args); - } else { - var msgTemplate = messages[warningName] ? messages[warningName] : warningName + ": '%s'"; - args.unshift(msgTemplate); - return util.format.apply(null, args); - } - }; - function makeTypoWarning(providedName, probableName, field) { - if (field) { - providedName = field + "['" + providedName + "']"; - probableName = field + "['" + probableName + "']"; - } - return util.format(messages.typo, providedName, probableName); - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-2.5.0-af0345deed-7999112efc.zip/node_modules/normalize-package-data/lib/normalize.js - var require_normalize2 = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/normalize-package-data-npm-2.5.0-af0345deed-7999112efc.zip/node_modules/normalize-package-data/lib/normalize.js"(exports, module) { - module.exports = normalize; - var fixer = require_fixer2(); - normalize.fixer = fixer; - var makeWarning = require_make_warning2(); - var fieldsToFix = [ - "name", - "version", - "description", - "repository", - "modules", - "scripts", - "files", - "bin", - "man", - "bugs", - "keywords", - "readme", - "homepage", - "license" - ]; - var otherThingsToFix = ["dependencies", "people", "typos"]; - var thingsToFix = fieldsToFix.map(function(fieldName) { - return ucFirst(fieldName) + "Field"; - }); - thingsToFix = thingsToFix.concat(otherThingsToFix); - function normalize(data, warn, strict) { - if (warn === true) - warn = null, strict = true; - if (!strict) - strict = false; - if (!warn || data.private) - warn = function(msg) { - }; - if (data.scripts && data.scripts.install === "node-gyp rebuild" && !data.scripts.preinstall) { - data.gypfile = true; - } - fixer.warn = function() { - warn(makeWarning.apply(null, arguments)); - }; - thingsToFix.forEach(function(thingName) { - fixer["fix" + ucFirst(thingName)](data, strict); - }); - data._id = data.name + "@" + data.version; - } - function ucFirst(string) { - return string.charAt(0).toUpperCase() + string.slice(1); - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/read-pkg-npm-3.0.0-41471436cb-398903ebae.zip/node_modules/read-pkg/index.js - var require_read_pkg = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/read-pkg-npm-3.0.0-41471436cb-398903ebae.zip/node_modules/read-pkg/index.js"(exports, module) { - "use strict"; - var path = __require("path"); - var loadJsonFile = require_load_json_file(); - var pathType = require_path_type(); - module.exports = (fp, opts) => { - if (typeof fp !== "string") { - opts = fp; - fp = "."; - } - opts = opts || {}; - return pathType.dir(fp).then((isDir) => { - if (isDir) { - fp = path.join(fp, "package.json"); - } - return loadJsonFile(fp); - }).then((x) => { - if (opts.normalize !== false) { - require_normalize2()(x); - } - return x; - }); - }; - module.exports.sync = (fp, opts) => { - if (typeof fp !== "string") { - opts = fp; - fp = "."; - } - opts = opts || {}; - fp = pathType.dirSync(fp) ? path.join(fp, "package.json") : fp; - const x = loadJsonFile.sync(fp); - if (opts.normalize !== false) { - require_normalize2()(x); - } - return x; - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/path-exists-npm-3.0.0-e80371aa68-96e92643aa.zip/node_modules/path-exists/index.js - var require_path_exists = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/path-exists-npm-3.0.0-e80371aa68-96e92643aa.zip/node_modules/path-exists/index.js"(exports, module) { - "use strict"; - var fs = __require("fs"); - module.exports = (fp) => new Promise((resolve) => { - fs.access(fp, (err) => { - resolve(!err); - }); - }); - module.exports.sync = (fp) => { - try { - fs.accessSync(fp); - return true; - } catch (err) { - return false; - } - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/p-try-npm-1.0.0-7373139e40-3b5303f77e.zip/node_modules/p-try/index.js - var require_p_try = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/p-try-npm-1.0.0-7373139e40-3b5303f77e.zip/node_modules/p-try/index.js"(exports, module) { - "use strict"; - module.exports = (cb) => new Promise((resolve) => { - resolve(cb()); - }); - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/p-limit-npm-1.3.0-fdb471d864-281c1c0b8c.zip/node_modules/p-limit/index.js - var require_p_limit = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/p-limit-npm-1.3.0-fdb471d864-281c1c0b8c.zip/node_modules/p-limit/index.js"(exports, module) { - "use strict"; - var pTry = require_p_try(); - module.exports = (concurrency) => { - if (concurrency < 1) { - throw new TypeError("Expected `concurrency` to be a number from 1 and up"); - } - const queue = []; - let activeCount = 0; - const next = () => { - activeCount--; - if (queue.length > 0) { - queue.shift()(); - } - }; - return (fn) => new Promise((resolve, reject) => { - const run = () => { - activeCount++; - pTry(fn).then((val) => { - resolve(val); - next(); - }, (err) => { - reject(err); - next(); - }); - }; - if (activeCount < concurrency) { - run(); - } else { - queue.push(run); - } - }); - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/p-locate-npm-2.0.0-3a2ee263dd-e2dceb9b49.zip/node_modules/p-locate/index.js - var require_p_locate = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/p-locate-npm-2.0.0-3a2ee263dd-e2dceb9b49.zip/node_modules/p-locate/index.js"(exports, module) { - "use strict"; - var pLimit = require_p_limit(); - var EndError = class extends Error { - constructor(value) { - super(); - this.value = value; - } - }; - var finder = (el) => Promise.all(el).then((val) => val[1] === true && Promise.reject(new EndError(val[0]))); - module.exports = (iterable, tester, opts) => { - opts = Object.assign({ - concurrency: Infinity, - preserveOrder: true - }, opts); - const limit = pLimit(opts.concurrency); - const items = Array.from(iterable).map((el) => [el, limit(() => Promise.resolve(el).then(tester))]); - const checkLimit = pLimit(opts.preserveOrder ? 1 : Infinity); - return Promise.all(items.map((el) => checkLimit(() => finder(el)))).then(() => { - }).catch((err) => err instanceof EndError ? err.value : Promise.reject(err)); - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/locate-path-npm-2.0.0-673d28b0ea-02d581edbb.zip/node_modules/locate-path/index.js - var require_locate_path = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/locate-path-npm-2.0.0-673d28b0ea-02d581edbb.zip/node_modules/locate-path/index.js"(exports, module) { - "use strict"; - var path = __require("path"); - var pathExists = require_path_exists(); - var pLocate = require_p_locate(); - module.exports = (iterable, opts) => { - opts = Object.assign({ - cwd: process.cwd() - }, opts); - return pLocate(iterable, (el) => pathExists(path.resolve(opts.cwd, el)), opts); - }; - module.exports.sync = (iterable, opts) => { - opts = Object.assign({ - cwd: process.cwd() - }, opts); - for (const el of iterable) { - if (pathExists.sync(path.resolve(opts.cwd, el))) { - return el; - } - } - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/find-up-npm-2.1.0-9f6cb1765c-43284fe4da.zip/node_modules/find-up/index.js - var require_find_up = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/find-up-npm-2.1.0-9f6cb1765c-43284fe4da.zip/node_modules/find-up/index.js"(exports, module) { - "use strict"; - var path = __require("path"); - var locatePath = require_locate_path(); - module.exports = (filename, opts) => { - opts = opts || {}; - const startDir = path.resolve(opts.cwd || ""); - const root = path.parse(startDir).root; - const filenames = [].concat(filename); - return new Promise((resolve) => { - (function find(dir) { - locatePath(filenames, {cwd: dir}).then((file) => { - if (file) { - resolve(path.join(dir, file)); - } else if (dir === root) { - resolve(null); - } else { - find(path.dirname(dir)); - } - }); - })(startDir); - }); - }; - module.exports.sync = (filename, opts) => { - opts = opts || {}; - let dir = path.resolve(opts.cwd || ""); - const root = path.parse(dir).root; - const filenames = [].concat(filename); - while (true) { - const file = locatePath.sync(filenames, {cwd: dir}); - if (file) { - return path.join(dir, file); - } else if (dir === root) { - return null; - } - dir = path.dirname(dir); - } - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/read-pkg-up-npm-3.0.0-3d7faf047f-16175573f2.zip/node_modules/read-pkg-up/index.js - var require_read_pkg_up = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/read-pkg-up-npm-3.0.0-3d7faf047f-16175573f2.zip/node_modules/read-pkg-up/index.js"(exports, module) { - "use strict"; - var findUp = require_find_up(); - var readPkg = require_read_pkg(); - module.exports = (opts) => { - return findUp("package.json", opts).then((fp) => { - if (!fp) { - return {}; - } - return readPkg(fp, opts).then((pkg) => ({pkg, path: fp})); - }); - }; - module.exports.sync = (opts) => { - const fp = findUp.sync("package.json", opts); - if (!fp) { - return {}; - } - return { - pkg: readPkg.sync(fp, opts), - path: fp - }; - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-changelog-core-https-3a71f6ef86-97a5789c0d.zip/node_modules/conventional-changelog-core/hosts/bitbucket.json - var require_bitbucket = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-changelog-core-https-3a71f6ef86-97a5789c0d.zip/node_modules/conventional-changelog-core/hosts/bitbucket.json"(exports, module) { - module.exports = { - issue: "issue", - commit: "commits", - referenceActions: [ - "close", - "closes", - "closed", - "closing", - "fix", - "fixes", - "fixed", - "fixing", - "resolve", - "resolves", - "resolved", - "resolving" - ], - issuePrefixes: [ - "#" - ] - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-changelog-core-https-3a71f6ef86-97a5789c0d.zip/node_modules/conventional-changelog-core/hosts/github.json - var require_github = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-changelog-core-https-3a71f6ef86-97a5789c0d.zip/node_modules/conventional-changelog-core/hosts/github.json"(exports, module) { - module.exports = { - issue: "issues", - commit: "commit", - referenceActions: [ - "close", - "closes", - "closed", - "fix", - "fixes", - "fixed", - "resolve", - "resolves", - "resolved" - ], - issuePrefixes: [ - "#", - "gh-" - ] - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-changelog-core-https-3a71f6ef86-97a5789c0d.zip/node_modules/conventional-changelog-core/hosts/gitlab.json - var require_gitlab = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-changelog-core-https-3a71f6ef86-97a5789c0d.zip/node_modules/conventional-changelog-core/hosts/gitlab.json"(exports, module) { - module.exports = { - issue: "issues", - commit: "commit", - referenceActions: [ - "close", - "closes", - "closed", - "closing", - "fix", - "fixes", - "fixed", - "fixing" - ], - issuePrefixes: [ - "#" - ] - }; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-changelog-core-https-3a71f6ef86-97a5789c0d.zip/node_modules/conventional-changelog-core/lib/merge-config.js - var require_merge_config = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-changelog-core-https-3a71f6ef86-97a5789c0d.zip/node_modules/conventional-changelog-core/lib/merge-config.js"(exports, module) { - "use strict"; - var promisify4 = __require("util").promisify; - var dateFormat = require_dateformat(); - var getPkgRepo = require_src2(); - var gitSemverTags2 = require_git_semver_tags(); - var normalizePackageData = require_normalize(); - var gitRemoteOriginUrl; - try { - gitRemoteOriginUrl = require_git_remote_origin_url(); - } catch (err) { - gitRemoteOriginUrl = function() { - return Promise.reject(err); - }; - } - var readPkg = require_read_pkg(); - var readPkgUp = require_read_pkg_up(); - var URL = __require("url").URL; - var _ = require_lodash(); - var hosts = { - bitbucket: require_bitbucket(), - github: require_github(), - gitlab: require_gitlab() - }; - var rhosts = new RegExp(Object.keys(hosts).join("|"), "i"); - Promise.allSettled = Promise.allSettled || function(promises) { - const wrappedPromises = promises.map((p) => Promise.resolve(p).then((value) => ({status: "fulfilled", value}), (reason) => ({status: "rejected", reason}))); - return Promise.all(wrappedPromises); - }; - function semverTagsPromise(options) { - return new Promise(function(resolve, reject) { - gitSemverTags2({lernaTags: !!options.lernaPackage, package: options.lernaPackage, tagPrefix: options.tagPrefix, skipUnstable: options.skipUnstable}, function(err, result) { - if (err) { - reject(err); - } else { - resolve(result); - } - }); - }); - } - function guessNextTag(previousTag, version) { - if (previousTag) { - if (previousTag[0] === "v" && version[0] !== "v") { - return "v" + version; - } - if (previousTag[0] !== "v" && version[0] === "v") { - return version.replace(/^v/, ""); - } - return version; - } - if (version[0] !== "v") { - return "v" + version; - } - return version; - } - function mergeConfig(options, context, gitRawCommitsOpts, parserOpts, writerOpts, gitRawExecOpts) { - let configPromise; - let pkgPromise; - context = context || {}; - gitRawCommitsOpts = gitRawCommitsOpts || {}; - gitRawExecOpts = gitRawExecOpts || {}; - const rtag = options && options.tagPrefix ? new RegExp(`tag:\\s*[=]?${options.tagPrefix}(.+?)[,)]`, "gi") : /tag:\s*[v=]?(.+?)[,)]/gi; - options = _.merge({ - pkg: { - transform: function(pkg) { - return pkg; - } - }, - append: false, - releaseCount: 1, - skipUnstable: false, - debug: function() { - }, - transform: function(commit, cb) { - if (_.isString(commit.gitTags)) { - const match = rtag.exec(commit.gitTags); - rtag.lastIndex = 0; - if (match) { - commit.version = match[1]; - } - } - if (commit.committerDate) { - commit.committerDate = dateFormat(commit.committerDate, "yyyy-mm-dd", true); - } - cb(null, commit); - }, - lernaPackage: null - }, options); - options.warn = options.warn || options.debug; - if (options.config) { - if (typeof options.config === "function") { - configPromise = promisify4(options.config)(); - } else { - configPromise = Promise.resolve(options.config); - } - } - if (options.pkg) { - if (options.pkg.path) { - pkgPromise = readPkg(options.pkg.path); - } else { - pkgPromise = readPkgUp(); - } - } - const gitRemoteOriginUrlPromise = gitRemoteOriginUrl(); - return Promise.allSettled([configPromise, pkgPromise, semverTagsPromise(options), gitRemoteOriginUrlPromise]).then(function([configObj, pkgObj, tagsObj, gitRemoteOriginUrlObj]) { - let config; - let pkg; - let fromTag; - let repo; - let hostOpts; - let gitSemverTags3 = []; - if (configPromise) { - if (configObj.status === "fulfilled") { - config = configObj.value; - } else { - options.warn("Error in config" + configObj.reason.toString()); - config = {}; - } - } else { - config = {}; - } - context = _.assign(context, config.context); - if (options.pkg) { - if (pkgObj.status === "fulfilled") { - if (options.pkg.path) { - pkg = pkgObj.value; - } else { - pkg = pkgObj.value.pkg || {}; - } - pkg = options.pkg.transform(pkg); - } else if (options.pkg.path) { - options.warn(pkgObj.reason.toString()); - } - } - if ((!pkg || !pkg.repository || !pkg.repository.url) && gitRemoteOriginUrlObj.status === "fulfilled") { - pkg = pkg || {}; - pkg.repository = pkg.repository || {}; - pkg.repository.url = gitRemoteOriginUrlObj.value; - normalizePackageData(pkg); - } - if (pkg) { - context.version = context.version || pkg.version; - try { - repo = getPkgRepo(pkg); - } catch (err) { - repo = {}; - } - if (repo.browse) { - const browse = repo.browse(); - if (!context.host) { - if (repo.domain) { - const parsedBrowse = new URL(browse); - if (parsedBrowse.origin.indexOf("//") !== -1) { - context.host = parsedBrowse.protocol + "//" + repo.domain; - } else { - context.host = parsedBrowse.protocol + repo.domain; - } - } else { - context.host = null; - } - } - context.owner = context.owner || repo.user || ""; - context.repository = context.repository || repo.project; - if (repo.host && repo.project && repo.user) { - context.repoUrl = browse; - } else { - context.repoUrl = context.host; - } - } - context.packageData = pkg; - } - context.version = context.version || ""; - if (tagsObj.status === "fulfilled") { - gitSemverTags3 = context.gitSemverTags = tagsObj.value; - fromTag = gitSemverTags3[options.releaseCount - 1]; - const lastTag = gitSemverTags3[0]; - if (lastTag === context.version || lastTag === "v" + context.version) { - if (options.outputUnreleased) { - context.version = "Unreleased"; - } else { - options.outputUnreleased = false; - } - } - } - if (!_.isBoolean(options.outputUnreleased)) { - options.outputUnreleased = true; - } - if (context.host && (!context.issue || !context.commit || !parserOpts || !parserOpts.referenceActions)) { - let type; - if (context.host) { - const match = context.host.match(rhosts); - if (match) { - type = match[0]; - } - } else if (repo && repo.type) { - type = repo.type; - } - if (type) { - hostOpts = hosts[type]; - context = _.assign({ - issue: hostOpts.issue, - commit: hostOpts.commit - }, context); - } else { - options.warn('Host: "' + context.host + '" does not exist'); - hostOpts = {}; - } - } else { - hostOpts = {}; - } - if (context.resetChangelog) { - fromTag = null; - } - gitRawCommitsOpts = _.assign({ - format: "%B%n-hash-%n%H%n-gitTags-%n%d%n-committerDate-%n%ci", - from: fromTag, - merges: false, - debug: options.debug - }, config.gitRawCommitsOpts, gitRawCommitsOpts); - if (options.append) { - gitRawCommitsOpts.reverse = gitRawCommitsOpts.reverse || true; - } - parserOpts = _.assign({}, config.parserOpts, { - warn: options.warn - }, parserOpts); - if (hostOpts.referenceActions && parserOpts) { - parserOpts.referenceActions = hostOpts.referenceActions; - } - if (_.isEmpty(parserOpts.issuePrefixes) && hostOpts.issuePrefixes) { - parserOpts.issuePrefixes = hostOpts.issuePrefixes; - } - writerOpts = _.assign({ - finalizeContext: function(context2, writerOpts2, filteredCommits, keyCommit, originalCommits) { - const firstCommit = originalCommits[0]; - const lastCommit = originalCommits[originalCommits.length - 1]; - const firstCommitHash = firstCommit ? firstCommit.hash : null; - const lastCommitHash = lastCommit ? lastCommit.hash : null; - if ((!context2.currentTag || !context2.previousTag) && keyCommit) { - const match = /tag:\s*(.+?)[,)]/gi.exec(keyCommit.gitTags); - const currentTag = context2.currentTag; - context2.currentTag = currentTag || match ? match[1] : null; - const index2 = gitSemverTags3.indexOf(context2.currentTag); - if (index2 === -1) { - context2.currentTag = currentTag || null; - } else { - const previousTag = context2.previousTag = gitSemverTags3[index2 + 1]; - if (!previousTag) { - if (options.append) { - context2.previousTag = context2.previousTag || firstCommitHash; - } else { - context2.previousTag = context2.previousTag || lastCommitHash; - } - } - } - } else { - context2.previousTag = context2.previousTag || gitSemverTags3[0]; - if (context2.version === "Unreleased") { - if (options.append) { - context2.currentTag = context2.currentTag || lastCommitHash; - } else { - context2.currentTag = context2.currentTag || firstCommitHash; - } - } else if (!context2.currentTag) { - if (options.lernaPackage) { - context2.currentTag = options.lernaPackage + "@" + context2.version; - } else if (options.tagPrefix) { - context2.currentTag = options.tagPrefix + context2.version; - } else { - context2.currentTag = guessNextTag(gitSemverTags3[0], context2.version); - } - } - } - if (!_.isBoolean(context2.linkCompare) && context2.previousTag && context2.currentTag) { - context2.linkCompare = true; - } - return context2; - }, - debug: options.debug - }, config.writerOpts, { - reverse: options.append, - doFlush: options.outputUnreleased - }, writerOpts); - return { - options, - context, - gitRawCommitsOpts, - parserOpts, - writerOpts, - gitRawExecOpts - }; - }); - } - module.exports = mergeConfig; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-changelog-core-https-3a71f6ef86-97a5789c0d.zip/node_modules/conventional-changelog-core/index.js - var require_conventional_changelog_core = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-changelog-core-https-3a71f6ef86-97a5789c0d.zip/node_modules/conventional-changelog-core/index.js"(exports, module) { - "use strict"; - var addStream = require_add_stream(); - var gitRawCommits = require_git_raw_commits(); - var conventionalCommitsParser = require_conventional_commits_parser(); - var conventionalChangelogWriter = require_conventional_changelog_writer(); - var _ = require_lodash(); - var stream = __require("stream"); - var through = require_through2(); - var execFileSync = __require("child_process").execFileSync; - var mergeConfig = require_merge_config(); - function conventionalChangelog2(options, context, gitRawCommitsOpts, parserOpts, writerOpts, gitRawExecOpts) { - writerOpts = writerOpts || {}; - const readable = new stream.Readable({ - objectMode: writerOpts.includeDetails - }); - readable._read = function() { - }; - let commitsErrorThrown = false; - let commitsStream = new stream.Readable({ - objectMode: true - }); - commitsStream._read = function() { - }; - function commitsRange(from, to) { - return gitRawCommits(_.merge({}, gitRawCommitsOpts, { - from, - to - })).on("error", function(err) { - if (!commitsErrorThrown) { - setImmediate(commitsStream.emit.bind(commitsStream), "error", err); - commitsErrorThrown = true; - } - }); - } - mergeConfig(options, context, gitRawCommitsOpts, parserOpts, writerOpts, gitRawExecOpts).then(function(data) { - options = data.options; - context = data.context; - gitRawCommitsOpts = data.gitRawCommitsOpts; - parserOpts = data.parserOpts; - writerOpts = data.writerOpts; - gitRawExecOpts = data.gitRawExecOpts; - try { - execFileSync("git", ["rev-parse", "--verify", "HEAD"], { - stdio: "ignore" - }); - let reverseTags = context.gitSemverTags.slice(0).reverse(); - reverseTags.push("HEAD"); - if (gitRawCommitsOpts.from) { - if (reverseTags.indexOf(gitRawCommitsOpts.from) !== -1) { - reverseTags = reverseTags.slice(reverseTags.indexOf(gitRawCommitsOpts.from)); - } else { - reverseTags = [gitRawCommitsOpts.from, "HEAD"]; - } - } - let streams = reverseTags.map((to, i) => { - const from = i > 0 ? reverseTags[i - 1] : ""; - return commitsRange(from, to); - }); - if (gitRawCommitsOpts.from) { - streams = streams.splice(1); - } - if (gitRawCommitsOpts.reverse) { - streams.reverse(); - } - streams.reduce((prev, next) => next.pipe(addStream(prev))).on("data", function(data2) { - setImmediate(commitsStream.emit.bind(commitsStream), "data", data2); - }).on("end", function() { - setImmediate(commitsStream.emit.bind(commitsStream), "end"); - }); - } catch (_e) { - commitsStream = gitRawCommits(gitRawCommitsOpts, gitRawExecOpts); - } - commitsStream.on("error", function(err) { - err.message = "Error in git-raw-commits: " + err.message; - setImmediate(readable.emit.bind(readable), "error", err); - }).pipe(conventionalCommitsParser(parserOpts)).on("error", function(err) { - err.message = "Error in conventional-commits-parser: " + err.message; - setImmediate(readable.emit.bind(readable), "error", err); - }).pipe(through.obj(function(chunk, enc, cb) { - try { - options.transform.call(this, chunk, cb); - } catch (err) { - cb(err); - } - })).on("error", function(err) { - err.message = "Error in options.transform: " + err.message; - setImmediate(readable.emit.bind(readable), "error", err); - }).pipe(conventionalChangelogWriter(context, writerOpts)).on("error", function(err) { - err.message = "Error in conventional-changelog-writer: " + err.message; - setImmediate(readable.emit.bind(readable), "error", err); - }).pipe(through({ - objectMode: writerOpts.includeDetails - }, function(chunk, enc, cb) { - try { - readable.push(chunk); - } catch (err) { - setImmediate(function() { - throw err; - }); - } - cb(); - }, function(cb) { - readable.push(null); - cb(); - })); - }).catch(function(err) { - setImmediate(readable.emit.bind(readable), "error", err); - }); - return readable; - } - module.exports = conventionalChangelog2; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-changelog-preset-loader-https-5952503697-37f47bea00.zip/node_modules/conventional-changelog-preset-loader/index.js - var require_conventional_changelog_preset_loader = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-changelog-preset-loader-https-5952503697-37f47bea00.zip/node_modules/conventional-changelog-preset-loader/index.js"(exports, module) { - "use strict"; - var nodePath = __require("path"); - module.exports = presetLoader2(__require); - module.exports.presetLoader = presetLoader2; - function presetLoader2(requireMethod) { - return (path) => { - let name = ""; - let scope = ""; - let absolutePath = ""; - if (typeof path === "string") { - name = path.toLowerCase(); - if (nodePath.isAbsolute(path)) { - absolutePath = path; - } - } else if (typeof path === "object" && path.name) { - name = path.name.toLowerCase(); - if (nodePath.isAbsolute(path.name)) { - absolutePath = path.name; - } - } else { - throw Error("preset must be string or object with key name"); - } - if (!absolutePath) { - if (name[0] === "@") { - const parts = name.split("/"); - scope = parts.shift() + "/"; - name = parts.join("/"); - } - if (!name.startsWith("conventional-changelog-")) { - name = `conventional-changelog-${name}`; - } - } - try { - const config = requireMethod(absolutePath || `${scope}${name}`); - if (config && !config.then && typeof path === "object") { - return config(path); - } else { - return config; - } - } catch (_) { - throw Error("does not exist"); - } - }; - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/buffer-from-npm-1.1.2-03d2f20d7e-0448524a56.zip/node_modules/buffer-from/index.js - var require_buffer_from = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/buffer-from-npm-1.1.2-03d2f20d7e-0448524a56.zip/node_modules/buffer-from/index.js"(exports, module) { - var toString = Object.prototype.toString; - var isModern = typeof Buffer !== "undefined" && typeof Buffer.alloc === "function" && typeof Buffer.allocUnsafe === "function" && typeof Buffer.from === "function"; - function isArrayBuffer(input) { - return toString.call(input).slice(8, -1) === "ArrayBuffer"; - } - function fromArrayBuffer(obj, byteOffset, length) { - byteOffset >>>= 0; - var maxLength = obj.byteLength - byteOffset; - if (maxLength < 0) { - throw new RangeError("'offset' is out of bounds"); - } - if (length === void 0) { - length = maxLength; - } else { - length >>>= 0; - if (length > maxLength) { - throw new RangeError("'length' is out of bounds"); - } - } - return isModern ? Buffer.from(obj.slice(byteOffset, byteOffset + length)) : new Buffer(new Uint8Array(obj.slice(byteOffset, byteOffset + length))); - } - function fromString(string, encoding) { - if (typeof encoding !== "string" || encoding === "") { - encoding = "utf8"; - } - if (!Buffer.isEncoding(encoding)) { - throw new TypeError('"encoding" must be a valid string encoding'); - } - return isModern ? Buffer.from(string, encoding) : new Buffer(string, encoding); - } - function bufferFrom(value, encodingOrOffset, length) { - if (typeof value === "number") { - throw new TypeError('"value" argument must not be a number'); - } - if (isArrayBuffer(value)) { - return fromArrayBuffer(value, encodingOrOffset, length); - } - if (typeof value === "string") { - return fromString(value, encodingOrOffset); - } - return isModern ? Buffer.from(value) : new Buffer(value); - } - module.exports = bufferFrom; - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/typedarray-npm-0.0.6-37638b2241-33b39f3d0e.zip/node_modules/typedarray/index.js - var require_typedarray = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/typedarray-npm-0.0.6-37638b2241-33b39f3d0e.zip/node_modules/typedarray/index.js"(exports) { - var undefined2 = void 0; - var MAX_ARRAY_LENGTH = 1e5; - var ECMAScript = function() { - var opts = Object.prototype.toString, ophop = Object.prototype.hasOwnProperty; - return { - Class: function(v) { - return opts.call(v).replace(/^\[object *|\]$/g, ""); - }, - HasProperty: function(o, p) { - return p in o; - }, - HasOwnProperty: function(o, p) { - return ophop.call(o, p); - }, - IsCallable: function(o) { - return typeof o === "function"; - }, - ToInt32: function(v) { - return v >> 0; - }, - ToUint32: function(v) { - return v >>> 0; - } - }; - }(); - var LN2 = Math.LN2; - var abs = Math.abs; - var floor = Math.floor; - var log = Math.log; - var min = Math.min; - var pow = Math.pow; - var round = Math.round; - function configureProperties(obj) { - if (getOwnPropNames && defineProp) { - var props = getOwnPropNames(obj), i; - for (i = 0; i < props.length; i += 1) { - defineProp(obj, props[i], { - value: obj[props[i]], - writable: false, - enumerable: false, - configurable: false - }); - } - } - } - var defineProp; - if (Object.defineProperty && function() { - try { - Object.defineProperty({}, "x", {}); - return true; - } catch (e) { - return false; - } - }()) { - defineProp = Object.defineProperty; - } else { - defineProp = function(o, p, desc) { - if (!o === Object(o)) - throw new TypeError("Object.defineProperty called on non-object"); - if (ECMAScript.HasProperty(desc, "get") && Object.prototype.__defineGetter__) { - Object.prototype.__defineGetter__.call(o, p, desc.get); - } - if (ECMAScript.HasProperty(desc, "set") && Object.prototype.__defineSetter__) { - Object.prototype.__defineSetter__.call(o, p, desc.set); - } - if (ECMAScript.HasProperty(desc, "value")) { - o[p] = desc.value; - } - return o; - }; - } - var getOwnPropNames = Object.getOwnPropertyNames || function(o) { - if (o !== Object(o)) - throw new TypeError("Object.getOwnPropertyNames called on non-object"); - var props = [], p; - for (p in o) { - if (ECMAScript.HasOwnProperty(o, p)) { - props.push(p); - } - } - return props; - }; - function makeArrayAccessors(obj) { - if (!defineProp) { - return; - } - if (obj.length > MAX_ARRAY_LENGTH) - throw new RangeError("Array too large for polyfill"); - function makeArrayAccessor(index2) { - defineProp(obj, index2, { - "get": function() { - return obj._getter(index2); - }, - "set": function(v) { - obj._setter(index2, v); - }, - enumerable: true, - configurable: false - }); - } - var i; - for (i = 0; i < obj.length; i += 1) { - makeArrayAccessor(i); - } - } - function as_signed(value, bits) { - var s = 32 - bits; - return value << s >> s; - } - function as_unsigned(value, bits) { - var s = 32 - bits; - return value << s >>> s; - } - function packI8(n) { - return [n & 255]; - } - function unpackI8(bytes) { - return as_signed(bytes[0], 8); - } - function packU8(n) { - return [n & 255]; - } - function unpackU8(bytes) { - return as_unsigned(bytes[0], 8); - } - function packU8Clamped(n) { - n = round(Number(n)); - return [n < 0 ? 0 : n > 255 ? 255 : n & 255]; - } - function packI16(n) { - return [n >> 8 & 255, n & 255]; - } - function unpackI16(bytes) { - return as_signed(bytes[0] << 8 | bytes[1], 16); - } - function packU16(n) { - return [n >> 8 & 255, n & 255]; - } - function unpackU16(bytes) { - return as_unsigned(bytes[0] << 8 | bytes[1], 16); - } - function packI32(n) { - return [n >> 24 & 255, n >> 16 & 255, n >> 8 & 255, n & 255]; - } - function unpackI32(bytes) { - return as_signed(bytes[0] << 24 | bytes[1] << 16 | bytes[2] << 8 | bytes[3], 32); - } - function packU32(n) { - return [n >> 24 & 255, n >> 16 & 255, n >> 8 & 255, n & 255]; - } - function unpackU32(bytes) { - return as_unsigned(bytes[0] << 24 | bytes[1] << 16 | bytes[2] << 8 | bytes[3], 32); - } - function packIEEE754(v, ebits, fbits) { - var bias = (1 << ebits - 1) - 1, s, e, f, ln, i, bits, str, bytes; - function roundToEven(n) { - var w = floor(n), f2 = n - w; - if (f2 < 0.5) - return w; - if (f2 > 0.5) - return w + 1; - return w % 2 ? w + 1 : w; - } - if (v !== v) { - e = (1 << ebits) - 1; - f = pow(2, fbits - 1); - s = 0; - } else if (v === Infinity || v === -Infinity) { - e = (1 << ebits) - 1; - f = 0; - s = v < 0 ? 1 : 0; - } else if (v === 0) { - e = 0; - f = 0; - s = 1 / v === -Infinity ? 1 : 0; - } else { - s = v < 0; - v = abs(v); - if (v >= pow(2, 1 - bias)) { - e = min(floor(log(v) / LN2), 1023); - f = roundToEven(v / pow(2, e) * pow(2, fbits)); - if (f / pow(2, fbits) >= 2) { - e = e + 1; - f = 1; - } - if (e > bias) { - e = (1 << ebits) - 1; - f = 0; - } else { - e = e + bias; - f = f - pow(2, fbits); - } - } else { - e = 0; - f = roundToEven(v / pow(2, 1 - bias - fbits)); - } - } - bits = []; - for (i = fbits; i; i -= 1) { - bits.push(f % 2 ? 1 : 0); - f = floor(f / 2); - } - for (i = ebits; i; i -= 1) { - bits.push(e % 2 ? 1 : 0); - e = floor(e / 2); - } - bits.push(s ? 1 : 0); - bits.reverse(); - str = bits.join(""); - bytes = []; - while (str.length) { - bytes.push(parseInt(str.substring(0, 8), 2)); - str = str.substring(8); - } - return bytes; - } - function unpackIEEE754(bytes, ebits, fbits) { - var bits = [], i, j, b, str, bias, s, e, f; - for (i = bytes.length; i; i -= 1) { - b = bytes[i - 1]; - for (j = 8; j; j -= 1) { - bits.push(b % 2 ? 1 : 0); - b = b >> 1; - } - } - bits.reverse(); - str = bits.join(""); - bias = (1 << ebits - 1) - 1; - s = parseInt(str.substring(0, 1), 2) ? -1 : 1; - e = parseInt(str.substring(1, 1 + ebits), 2); - f = parseInt(str.substring(1 + ebits), 2); - if (e === (1 << ebits) - 1) { - return f !== 0 ? NaN : s * Infinity; - } else if (e > 0) { - return s * pow(2, e - bias) * (1 + f / pow(2, fbits)); - } else if (f !== 0) { - return s * pow(2, -(bias - 1)) * (f / pow(2, fbits)); - } else { - return s < 0 ? -0 : 0; - } - } - function unpackF64(b) { - return unpackIEEE754(b, 11, 52); - } - function packF64(v) { - return packIEEE754(v, 11, 52); - } - function unpackF32(b) { - return unpackIEEE754(b, 8, 23); - } - function packF32(v) { - return packIEEE754(v, 8, 23); - } - (function() { - var ArrayBuffer2 = function ArrayBuffer3(length) { - length = ECMAScript.ToInt32(length); - if (length < 0) - throw new RangeError("ArrayBuffer size is not a small enough positive integer"); - this.byteLength = length; - this._bytes = []; - this._bytes.length = length; - var i; - for (i = 0; i < this.byteLength; i += 1) { - this._bytes[i] = 0; - } - configureProperties(this); - }; - exports.ArrayBuffer = exports.ArrayBuffer || ArrayBuffer2; - var ArrayBufferView = function ArrayBufferView2() { - }; - function makeConstructor(bytesPerElement, pack, unpack) { - var ctor; - ctor = function(buffer, byteOffset, length) { - var array, sequence, i, s; - if (!arguments.length || typeof arguments[0] === "number") { - this.length = ECMAScript.ToInt32(arguments[0]); - if (length < 0) - throw new RangeError("ArrayBufferView size is not a small enough positive integer"); - this.byteLength = this.length * this.BYTES_PER_ELEMENT; - this.buffer = new ArrayBuffer2(this.byteLength); - this.byteOffset = 0; - } else if (typeof arguments[0] === "object" && arguments[0].constructor === ctor) { - array = arguments[0]; - this.length = array.length; - this.byteLength = this.length * this.BYTES_PER_ELEMENT; - this.buffer = new ArrayBuffer2(this.byteLength); - this.byteOffset = 0; - for (i = 0; i < this.length; i += 1) { - this._setter(i, array._getter(i)); - } - } else if (typeof arguments[0] === "object" && !(arguments[0] instanceof ArrayBuffer2 || ECMAScript.Class(arguments[0]) === "ArrayBuffer")) { - sequence = arguments[0]; - this.length = ECMAScript.ToUint32(sequence.length); - this.byteLength = this.length * this.BYTES_PER_ELEMENT; - this.buffer = new ArrayBuffer2(this.byteLength); - this.byteOffset = 0; - for (i = 0; i < this.length; i += 1) { - s = sequence[i]; - this._setter(i, Number(s)); - } - } else if (typeof arguments[0] === "object" && (arguments[0] instanceof ArrayBuffer2 || ECMAScript.Class(arguments[0]) === "ArrayBuffer")) { - this.buffer = buffer; - this.byteOffset = ECMAScript.ToUint32(byteOffset); - if (this.byteOffset > this.buffer.byteLength) { - throw new RangeError("byteOffset out of range"); - } - if (this.byteOffset % this.BYTES_PER_ELEMENT) { - throw new RangeError("ArrayBuffer length minus the byteOffset is not a multiple of the element size."); - } - if (arguments.length < 3) { - this.byteLength = this.buffer.byteLength - this.byteOffset; - if (this.byteLength % this.BYTES_PER_ELEMENT) { - throw new RangeError("length of buffer minus byteOffset not a multiple of the element size"); - } - this.length = this.byteLength / this.BYTES_PER_ELEMENT; - } else { - this.length = ECMAScript.ToUint32(length); - this.byteLength = this.length * this.BYTES_PER_ELEMENT; - } - if (this.byteOffset + this.byteLength > this.buffer.byteLength) { - throw new RangeError("byteOffset and length reference an area beyond the end of the buffer"); - } - } else { - throw new TypeError("Unexpected argument type(s)"); - } - this.constructor = ctor; - configureProperties(this); - makeArrayAccessors(this); - }; - ctor.prototype = new ArrayBufferView(); - ctor.prototype.BYTES_PER_ELEMENT = bytesPerElement; - ctor.prototype._pack = pack; - ctor.prototype._unpack = unpack; - ctor.BYTES_PER_ELEMENT = bytesPerElement; - ctor.prototype._getter = function(index2) { - if (arguments.length < 1) - throw new SyntaxError("Not enough arguments"); - index2 = ECMAScript.ToUint32(index2); - if (index2 >= this.length) { - return undefined2; - } - var bytes = [], i, o; - for (i = 0, o = this.byteOffset + index2 * this.BYTES_PER_ELEMENT; i < this.BYTES_PER_ELEMENT; i += 1, o += 1) { - bytes.push(this.buffer._bytes[o]); - } - return this._unpack(bytes); - }; - ctor.prototype.get = ctor.prototype._getter; - ctor.prototype._setter = function(index2, value) { - if (arguments.length < 2) - throw new SyntaxError("Not enough arguments"); - index2 = ECMAScript.ToUint32(index2); - if (index2 >= this.length) { - return undefined2; - } - var bytes = this._pack(value), i, o; - for (i = 0, o = this.byteOffset + index2 * this.BYTES_PER_ELEMENT; i < this.BYTES_PER_ELEMENT; i += 1, o += 1) { - this.buffer._bytes[o] = bytes[i]; - } - }; - ctor.prototype.set = function(index2, value) { - if (arguments.length < 1) - throw new SyntaxError("Not enough arguments"); - var array, sequence, offset, len, i, s, d, byteOffset, byteLength, tmp; - if (typeof arguments[0] === "object" && arguments[0].constructor === this.constructor) { - array = arguments[0]; - offset = ECMAScript.ToUint32(arguments[1]); - if (offset + array.length > this.length) { - throw new RangeError("Offset plus length of array is out of range"); - } - byteOffset = this.byteOffset + offset * this.BYTES_PER_ELEMENT; - byteLength = array.length * this.BYTES_PER_ELEMENT; - if (array.buffer === this.buffer) { - tmp = []; - for (i = 0, s = array.byteOffset; i < byteLength; i += 1, s += 1) { - tmp[i] = array.buffer._bytes[s]; - } - for (i = 0, d = byteOffset; i < byteLength; i += 1, d += 1) { - this.buffer._bytes[d] = tmp[i]; - } - } else { - for (i = 0, s = array.byteOffset, d = byteOffset; i < byteLength; i += 1, s += 1, d += 1) { - this.buffer._bytes[d] = array.buffer._bytes[s]; - } - } - } else if (typeof arguments[0] === "object" && typeof arguments[0].length !== "undefined") { - sequence = arguments[0]; - len = ECMAScript.ToUint32(sequence.length); - offset = ECMAScript.ToUint32(arguments[1]); - if (offset + len > this.length) { - throw new RangeError("Offset plus length of array is out of range"); - } - for (i = 0; i < len; i += 1) { - s = sequence[i]; - this._setter(offset + i, Number(s)); - } - } else { - throw new TypeError("Unexpected argument type(s)"); - } - }; - ctor.prototype.subarray = function(start, end) { - function clamp(v, min2, max) { - return v < min2 ? min2 : v > max ? max : v; - } - start = ECMAScript.ToInt32(start); - end = ECMAScript.ToInt32(end); - if (arguments.length < 1) { - start = 0; - } - if (arguments.length < 2) { - end = this.length; - } - if (start < 0) { - start = this.length + start; - } - if (end < 0) { - end = this.length + end; - } - start = clamp(start, 0, this.length); - end = clamp(end, 0, this.length); - var len = end - start; - if (len < 0) { - len = 0; - } - return new this.constructor(this.buffer, this.byteOffset + start * this.BYTES_PER_ELEMENT, len); - }; - return ctor; - } - var Int8Array = makeConstructor(1, packI8, unpackI8); - var Uint8Array2 = makeConstructor(1, packU8, unpackU8); - var Uint8ClampedArray = makeConstructor(1, packU8Clamped, unpackU8); - var Int16Array = makeConstructor(2, packI16, unpackI16); - var Uint16Array = makeConstructor(2, packU16, unpackU16); - var Int32Array = makeConstructor(4, packI32, unpackI32); - var Uint32Array = makeConstructor(4, packU32, unpackU32); - var Float32Array = makeConstructor(4, packF32, unpackF32); - var Float64Array = makeConstructor(8, packF64, unpackF64); - exports.Int8Array = exports.Int8Array || Int8Array; - exports.Uint8Array = exports.Uint8Array || Uint8Array2; - exports.Uint8ClampedArray = exports.Uint8ClampedArray || Uint8ClampedArray; - exports.Int16Array = exports.Int16Array || Int16Array; - exports.Uint16Array = exports.Uint16Array || Uint16Array; - exports.Int32Array = exports.Int32Array || Int32Array; - exports.Uint32Array = exports.Uint32Array || Uint32Array; - exports.Float32Array = exports.Float32Array || Float32Array; - exports.Float64Array = exports.Float64Array || Float64Array; - })(); - (function() { - function r(array, index2) { - return ECMAScript.IsCallable(array.get) ? array.get(index2) : array[index2]; - } - var IS_BIG_ENDIAN = function() { - var u16array = new exports.Uint16Array([4660]), u8array = new exports.Uint8Array(u16array.buffer); - return r(u8array, 0) === 18; - }(); - var DataView = function DataView2(buffer, byteOffset, byteLength) { - if (arguments.length === 0) { - buffer = new exports.ArrayBuffer(0); - } else if (!(buffer instanceof exports.ArrayBuffer || ECMAScript.Class(buffer) === "ArrayBuffer")) { - throw new TypeError("TypeError"); - } - this.buffer = buffer || new exports.ArrayBuffer(0); - this.byteOffset = ECMAScript.ToUint32(byteOffset); - if (this.byteOffset > this.buffer.byteLength) { - throw new RangeError("byteOffset out of range"); - } - if (arguments.length < 3) { - this.byteLength = this.buffer.byteLength - this.byteOffset; - } else { - this.byteLength = ECMAScript.ToUint32(byteLength); - } - if (this.byteOffset + this.byteLength > this.buffer.byteLength) { - throw new RangeError("byteOffset and length reference an area beyond the end of the buffer"); - } - configureProperties(this); - }; - function makeGetter(arrayType) { - return function(byteOffset, littleEndian) { - byteOffset = ECMAScript.ToUint32(byteOffset); - if (byteOffset + arrayType.BYTES_PER_ELEMENT > this.byteLength) { - throw new RangeError("Array index out of range"); - } - byteOffset += this.byteOffset; - var uint8Array = new exports.Uint8Array(this.buffer, byteOffset, arrayType.BYTES_PER_ELEMENT), bytes = [], i; - for (i = 0; i < arrayType.BYTES_PER_ELEMENT; i += 1) { - bytes.push(r(uint8Array, i)); - } - if (Boolean(littleEndian) === Boolean(IS_BIG_ENDIAN)) { - bytes.reverse(); - } - return r(new arrayType(new exports.Uint8Array(bytes).buffer), 0); - }; - } - DataView.prototype.getUint8 = makeGetter(exports.Uint8Array); - DataView.prototype.getInt8 = makeGetter(exports.Int8Array); - DataView.prototype.getUint16 = makeGetter(exports.Uint16Array); - DataView.prototype.getInt16 = makeGetter(exports.Int16Array); - DataView.prototype.getUint32 = makeGetter(exports.Uint32Array); - DataView.prototype.getInt32 = makeGetter(exports.Int32Array); - DataView.prototype.getFloat32 = makeGetter(exports.Float32Array); - DataView.prototype.getFloat64 = makeGetter(exports.Float64Array); - function makeSetter(arrayType) { - return function(byteOffset, value, littleEndian) { - byteOffset = ECMAScript.ToUint32(byteOffset); - if (byteOffset + arrayType.BYTES_PER_ELEMENT > this.byteLength) { - throw new RangeError("Array index out of range"); - } - var typeArray = new arrayType([value]), byteArray = new exports.Uint8Array(typeArray.buffer), bytes = [], i, byteView; - for (i = 0; i < arrayType.BYTES_PER_ELEMENT; i += 1) { - bytes.push(r(byteArray, i)); - } - if (Boolean(littleEndian) === Boolean(IS_BIG_ENDIAN)) { - bytes.reverse(); - } - byteView = new exports.Uint8Array(this.buffer, byteOffset, arrayType.BYTES_PER_ELEMENT); - byteView.set(bytes); - }; - } - DataView.prototype.setUint8 = makeSetter(exports.Uint8Array); - DataView.prototype.setInt8 = makeSetter(exports.Int8Array); - DataView.prototype.setUint16 = makeSetter(exports.Uint16Array); - DataView.prototype.setInt16 = makeSetter(exports.Int16Array); - DataView.prototype.setUint32 = makeSetter(exports.Uint32Array); - DataView.prototype.setInt32 = makeSetter(exports.Int32Array); - DataView.prototype.setFloat32 = makeSetter(exports.Float32Array); - DataView.prototype.setFloat64 = makeSetter(exports.Float64Array); - exports.DataView = exports.DataView || DataView; - })(); - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/concat-stream-npm-2.0.0-8bb2ad5aa0-d7f75d48f0.zip/node_modules/concat-stream/index.js - var require_concat_stream = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/concat-stream-npm-2.0.0-8bb2ad5aa0-d7f75d48f0.zip/node_modules/concat-stream/index.js"(exports, module) { - var Writable = require_readable().Writable; - var inherits = require_inherits(); - var bufferFrom = require_buffer_from(); - if (typeof Uint8Array === "undefined") { - U8 = require_typedarray().Uint8Array; - } else { - U8 = Uint8Array; - } - var U8; - function ConcatStream(opts, cb) { - if (!(this instanceof ConcatStream)) - return new ConcatStream(opts, cb); - if (typeof opts === "function") { - cb = opts; - opts = {}; - } - if (!opts) - opts = {}; - var encoding = opts.encoding; - var shouldInferEncoding = false; - if (!encoding) { - shouldInferEncoding = true; - } else { - encoding = String(encoding).toLowerCase(); - if (encoding === "u8" || encoding === "uint8") { - encoding = "uint8array"; - } - } - Writable.call(this, {objectMode: true}); - this.encoding = encoding; - this.shouldInferEncoding = shouldInferEncoding; - if (cb) - this.on("finish", function() { - cb(this.getBody()); - }); - this.body = []; - } - module.exports = ConcatStream; - inherits(ConcatStream, Writable); - ConcatStream.prototype._write = function(chunk, enc, next) { - this.body.push(chunk); - next(); - }; - ConcatStream.prototype.inferEncoding = function(buff) { - var firstBuffer = buff === void 0 ? this.body[0] : buff; - if (Buffer.isBuffer(firstBuffer)) - return "buffer"; - if (typeof Uint8Array !== "undefined" && firstBuffer instanceof Uint8Array) - return "uint8array"; - if (Array.isArray(firstBuffer)) - return "array"; - if (typeof firstBuffer === "string") - return "string"; - if (Object.prototype.toString.call(firstBuffer) === "[object Object]") - return "object"; - return "buffer"; - }; - ConcatStream.prototype.getBody = function() { - if (!this.encoding && this.body.length === 0) - return []; - if (this.shouldInferEncoding) - this.encoding = this.inferEncoding(); - if (this.encoding === "array") - return arrayConcat(this.body); - if (this.encoding === "string") - return stringConcat(this.body); - if (this.encoding === "buffer") - return bufferConcat(this.body); - if (this.encoding === "uint8array") - return u8Concat(this.body); - return this.body; - }; - var isArray = Array.isArray || function(arr) { - return Object.prototype.toString.call(arr) == "[object Array]"; - }; - function isArrayish(arr) { - return /Array\]$/.test(Object.prototype.toString.call(arr)); - } - function isBufferish(p) { - return typeof p === "string" || isArrayish(p) || p && typeof p.subarray === "function"; - } - function stringConcat(parts) { - var strings = []; - var needsToString = false; - for (var i = 0; i < parts.length; i++) { - var p = parts[i]; - if (typeof p === "string") { - strings.push(p); - } else if (Buffer.isBuffer(p)) { - strings.push(p); - } else if (isBufferish(p)) { - strings.push(bufferFrom(p)); - } else { - strings.push(bufferFrom(String(p))); - } - } - if (Buffer.isBuffer(parts[0])) { - strings = Buffer.concat(strings); - strings = strings.toString("utf8"); - } else { - strings = strings.join(""); - } - return strings; - } - function bufferConcat(parts) { - var bufs = []; - for (var i = 0; i < parts.length; i++) { - var p = parts[i]; - if (Buffer.isBuffer(p)) { - bufs.push(p); - } else if (isBufferish(p)) { - bufs.push(bufferFrom(p)); - } else { - bufs.push(bufferFrom(String(p))); - } - } - return Buffer.concat(bufs); - } - function arrayConcat(parts) { - var res = []; - for (var i = 0; i < parts.length; i++) { - res.push.apply(res, parts[i]); - } - return res; - } - function u8Concat(parts) { - var len = 0; - for (var i = 0; i < parts.length; i++) { - if (typeof parts[i] === "string") { - parts[i] = bufferFrom(parts[i]); - } - len += parts[i].length; - } - var u8 = new U8(len); - for (var i = 0, offset = 0; i < parts.length; i++) { - var part = parts[i]; - for (var j = 0; j < part.length; j++) { - u8[offset++] = part[j]; - } - } - return u8; - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-recommended-bump-https-2aafa2c6d1-7139d912eb.zip/node_modules/conventional-recommended-bump/preset-resolver.js - var require_preset_resolver = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-recommended-bump-https-2aafa2c6d1-7139d912eb.zip/node_modules/conventional-recommended-bump/preset-resolver.js"(exports, module) { - "use strict"; - var promisify4 = __require("util").promisify; - module.exports = presetResolver; - function presetResolver(presetPackage) { - if (typeof presetPackage === "function") { - return promisify4(presetPackage)(); - } - if (typeof presetPackage === "object") { - return Promise.resolve(presetPackage); - } - return Promise.reject(new Error("preset package must be a promise, function, or object")); - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-recommended-bump-https-2aafa2c6d1-7139d912eb.zip/node_modules/conventional-recommended-bump/index.js - var require_conventional_recommended_bump = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/conventional-recommended-bump-https-2aafa2c6d1-7139d912eb.zip/node_modules/conventional-recommended-bump/index.js"(exports, module) { - "use strict"; - var concat = require_concat_stream(); - var conventionalCommitsFilter = require_conventional_commits_filter(); - var conventionalCommitsParser = require_conventional_commits_parser(); - var conventionalChangelogPresetLoader = require_conventional_changelog_preset_loader(); - var gitSemverTags2 = require_git_semver_tags(); - var gitRawCommits = require_git_raw_commits(); - var presetResolver = require_preset_resolver(); - var VERSIONS = ["major", "minor", "patch"]; - module.exports = conventionalRecommendedBump2; - function conventionalRecommendedBump2(optionsArgument, parserOptsArgument, cbArgument) { - if (typeof optionsArgument !== "object") { - throw new Error("The 'options' argument must be an object."); - } - const options = Object.assign({ignoreReverted: true}, optionsArgument); - const cb = typeof parserOptsArgument === "function" ? parserOptsArgument : cbArgument; - if (typeof cb !== "function") { - throw new Error("You must provide a callback function."); - } - let presetPackage = options.config || {}; - if (options.preset) { - try { - presetPackage = conventionalChangelogPresetLoader(options.preset); - } catch (err) { - if (err.message === "does not exist") { - const preset = typeof options.preset === "object" ? options.preset.name : options.preset; - return cb(new Error(`Unable to load the "${preset}" preset package. Please make sure it's installed.`)); - } else { - return cb(err); - } - } - } - presetResolver(presetPackage).then((config) => { - const whatBump = options.whatBump || (config.recommendedBumpOpts && config.recommendedBumpOpts.whatBump ? config.recommendedBumpOpts.whatBump : noop); - if (typeof whatBump !== "function") { - throw Error("whatBump must be a function"); - } - const parserOpts = Object.assign({}, config.recommendedBumpOpts && config.recommendedBumpOpts.parserOpts ? config.recommendedBumpOpts.parserOpts : config.parserOpts, parserOptsArgument); - const warn = typeof parserOpts.warn === "function" ? parserOpts.warn : noop; - gitSemverTags2({ - lernaTags: !!options.lernaPackage, - package: options.lernaPackage, - tagPrefix: options.tagPrefix, - skipUnstable: options.skipUnstable - }, (err, tags) => { - if (err) { - return cb(err); - } - gitRawCommits({ - format: "%B%n-hash-%n%H", - from: tags[0] || "", - path: options.path - }).pipe(conventionalCommitsParser(parserOpts)).pipe(concat((data) => { - const commits = options.ignoreReverted ? conventionalCommitsFilter(data) : data; - if (!commits || !commits.length) { - warn("No commits since last release"); - } - let result = whatBump(commits, options); - if (result && result.level != null) { - result.releaseType = VERSIONS[result.level]; - } else if (result == null) { - result = {}; - } - cb(null, result); - })); - }); - }).catch((err) => cb(err)); - } - function noop() { - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/wrappy-npm-1.0.2-916de4d4b3-159da4805f.zip/node_modules/wrappy/wrappy.js - var require_wrappy = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/wrappy-npm-1.0.2-916de4d4b3-159da4805f.zip/node_modules/wrappy/wrappy.js"(exports, module) { - module.exports = wrappy; - function wrappy(fn, cb) { - if (fn && cb) - return wrappy(fn)(cb); - if (typeof fn !== "function") - throw new TypeError("need wrapper function"); - Object.keys(fn).forEach(function(k) { - wrapper[k] = fn[k]; - }); - return wrapper; - function wrapper() { - var args = new Array(arguments.length); - for (var i = 0; i < args.length; i++) { - args[i] = arguments[i]; - } - var ret = fn.apply(this, args); - var cb2 = args[args.length - 1]; - if (typeof ret === "function" && ret !== cb2) { - Object.keys(cb2).forEach(function(k) { - ret[k] = cb2[k]; - }); - } - return ret; - } - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/once-npm-1.4.0-ccf03ef07a-cd0a885013.zip/node_modules/once/once.js - var require_once = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/once-npm-1.4.0-ccf03ef07a-cd0a885013.zip/node_modules/once/once.js"(exports, module) { - var wrappy = require_wrappy(); - module.exports = wrappy(once); - module.exports.strict = wrappy(onceStrict); - once.proto = once(function() { - Object.defineProperty(Function.prototype, "once", { - value: function() { - return once(this); - }, - configurable: true - }); - Object.defineProperty(Function.prototype, "onceStrict", { - value: function() { - return onceStrict(this); - }, - configurable: true - }); - }); - function once(fn) { - var f = function() { - if (f.called) - return f.value; - f.called = true; - return f.value = fn.apply(this, arguments); - }; - f.called = false; - return f; - } - function onceStrict(fn) { - var f = function() { - if (f.called) - throw new Error(f.onceError); - f.called = true; - return f.value = fn.apply(this, arguments); - }; - var name = fn.name || "Function wrapped with `once`"; - f.onceError = name + " shouldn't be called more than once"; - f.called = false; - return f; - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/multistream-npm-4.1.0-0df2458b36-305c49a1aa.zip/node_modules/multistream/index.js - var require_multistream = __commonJS({ - "pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/multistream-npm-4.1.0-0df2458b36-305c49a1aa.zip/node_modules/multistream/index.js"(exports, module) { - var stream = require_readable(); - var once = require_once(); - function toStreams2Obj(s) { - return toStreams2(s, {objectMode: true, highWaterMark: 16}); - } - function toStreams2Buf(s) { - return toStreams2(s); - } - function toStreams2(s, opts) { - if (!s || typeof s === "function" || s._readableState) - return s; - const wrap = new stream.Readable(opts).wrap(s); - if (s.destroy) { - wrap.destroy = s.destroy.bind(s); - } - return wrap; - } - var MultiStream2 = class extends stream.Readable { - constructor(streams, opts) { - super(__spreadProps(__spreadValues({}, opts), {autoDestroy: true})); - this._drained = false; - this._forwarding = false; - this._current = null; - this._toStreams2 = opts && opts.objectMode ? toStreams2Obj : toStreams2Buf; - if (typeof streams === "function") { - this._queue = streams; - } else { - this._queue = streams.map(this._toStreams2); - this._queue.forEach((stream2) => { - if (typeof stream2 !== "function") - this._attachErrorListener(stream2); - }); - } - this._next(); - } - _read() { - this._drained = true; - this._forward(); - } - _forward() { - if (this._forwarding || !this._drained || !this._current) - return; - this._forwarding = true; - let chunk; - while (this._drained && (chunk = this._current.read()) !== null) { - this._drained = this.push(chunk); - } - this._forwarding = false; - } - _destroy(err, cb) { - let streams = []; - if (this._current) - streams.push(this._current); - if (typeof this._queue !== "function") - streams = streams.concat(this._queue); - if (streams.length === 0) { - cb(err); - } else { - let counter = streams.length; - let er = err; - streams.forEach((stream2) => { - destroy(stream2, err, (err2) => { - er = er || err2; - if (--counter === 0) { - cb(er); - } - }); - }); - } - } - _next() { - this._current = null; - if (typeof this._queue === "function") { - this._queue((err, stream2) => { - if (err) - return this.destroy(err); - stream2 = this._toStreams2(stream2); - this._attachErrorListener(stream2); - this._gotNextStream(stream2); - }); - } else { - let stream2 = this._queue.shift(); - if (typeof stream2 === "function") { - stream2 = this._toStreams2(stream2()); - this._attachErrorListener(stream2); - } - this._gotNextStream(stream2); - } - } - _gotNextStream(stream2) { - if (!stream2) { - this.push(null); - return; - } - this._current = stream2; - this._forward(); - const onReadable = () => { - this._forward(); - }; - const onClose = () => { - if (!stream2._readableState.ended && !stream2.destroyed) { - const err = new Error("ERR_STREAM_PREMATURE_CLOSE"); - err.code = "ERR_STREAM_PREMATURE_CLOSE"; - this.destroy(err); - } - }; - const onEnd = () => { - this._current = null; - stream2.removeListener("readable", onReadable); - stream2.removeListener("end", onEnd); - stream2.removeListener("close", onClose); - stream2.destroy(); - this._next(); - }; - stream2.on("readable", onReadable); - stream2.once("end", onEnd); - stream2.once("close", onClose); - } - _attachErrorListener(stream2) { - if (!stream2) - return; - const onError = (err) => { - stream2.removeListener("error", onError); - this.destroy(err); - }; - stream2.once("error", onError); - } - }; - MultiStream2.obj = (streams) => new MultiStream2(streams, {objectMode: true, highWaterMark: 16}); - module.exports = MultiStream2; - function destroy(stream2, err, cb) { - if (!stream2.destroy || stream2.destroyed) { - cb(err); - } else { - const callback = once((er) => cb(er || err)); - stream2.on("error", callback).on("close", () => callback()).destroy(err, callback); - } - } - } - }); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/packages/plugin-release/sources/index.ts - var sources_exports = {}; - __export(sources_exports, { - default: () => sources_default, - releaseUtils: () => releaseUtils_exports - }); - var import_core4 = __toModule(__require("@yarnpkg/core")); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/packages/plugin-release/sources/commands/releaseCommit.ts - var import_cli = __toModule(__require("@yarnpkg/cli")); - var import_core2 = __toModule(__require("@yarnpkg/core")); - var import_clipanion = __toModule(__require("clipanion")); - var import_semver2 = __toModule(__require("semver")); - var import_stream = __toModule(__require("stream")); - var import_util2 = __toModule(__require("util")); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/packages/plugin-release/sources/releaseUtils.ts - var releaseUtils_exports = {}; - __export(releaseUtils_exports, { - changelogStream: () => changelogStream, - recommendedBump: () => recommendedBump - }); - var import_core = __toModule(__require("@yarnpkg/core")); - var import_fslib = __toModule(__require("@yarnpkg/fslib")); - var import_plugin_pnp = __toModule(__require("@yarnpkg/plugin-pnp")); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/.yarn/cache/calver-npm-22.8.4-4d96a187fe-c423ab43d8.zip/node_modules/calver/dist/node/es/index.js - var DateVersion = class { - constructor(obj, parentSeperator, isInitialVersion) { - __publicField(this, "reDigits", /[^0-9]/); - this["YYYY"] = null; - this["YY"] = null; - this["0Y"] = null; - this["MM"] = null; - this["0M"] = null; - this["WW"] = null; - this["0W"] = null; - this["DD"] = null; - this["0D"] = null; - this.hasChanged = false; - this.isInitialVersion = isInitialVersion; - this.parentSeperator = parentSeperator; - this.props = []; - this.date = new Date(Date.now()); - this.parse(obj); - } - parse(obj) { - for (const prop in obj) { - if (!this.isInitialVersion && !this.isValid(prop, obj[prop])) { - throw new Error(`Calendar tag ${prop} has an invalid value "${obj[prop]}"`); - } - this[prop] = obj[prop]; - this.props.push(prop); - } - } - inc(level) { - const prevValue = this.asString(); - const yearstr = this.date.getUTCFullYear().toString(); - this["YYYY"] = yearstr; - this["YY"] = parseInt(yearstr.slice(2)).toString(); - this["0Y"] = this["YY"].padStart(2, "0"); - const monthstr = (this.date.getUTCMonth() + 1).toString(); - this["MM"] = monthstr; - this["0M"] = this["MM"].padStart(2, "0"); - const weekstr = this.getUTCWeek(this.date).toString(); - this["WW"] = weekstr; - this["0W"] = this["WW"].padStart(2, "0"); - const daystr = this.date.getUTCDate().toString(); - this["DD"] = daystr; - this["0D"] = this["DD"].padStart(2, "0"); - const newValue = this.asString(); - this.hasChanged = prevValue != newValue; - return this; - } - isValid(prop, v) { - if (!v || typeof v != "string" || this.reDigits.test(v)) - return false; - switch (prop) { - case "YYYY": - if (v.slice(0, 1) == "0") - return false; - return v.length === 4; - case "YY": - if (v.slice(0, 1) == "0") - return false; - return v.length === 1 || v.length === 2 || v.length === 3; - case "0Y": - if ((v.length == 2 || v.length == 3) && v.slice(0, 1) == "0") - return false; - return v.length === 2 || v.length === 3; - case "MM": - return [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12].indexOf(Number(v)) !== -1; - case "0M": - return ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"].indexOf(v) !== -1; - case "WW": - return Number(v) >= 1 && Number(v) <= 52; - case "0W": - if (v.length != 2) - return false; - return Number(v) >= 1 && Number(v) <= 52; - case "DD": - return Number(v) >= 1 && Number(v) <= 31; - case "0D": - if (v.length != 2) - return false; - return Number(v) >= 1 && Number(v) <= 31; - } - } - asObject() { - return this.props.reduce((memo, prop) => { - memo[prop] = this[prop]; - return memo; - }, {}); - } - asString() { - const result = []; - for (const tag of this.constructor.tags) { - if (this.props.indexOf(tag) !== -1) - result.push(this[tag]); - } - return result.join(this.parentSeperator); - } - getUTCWeek(date) { - const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate())); - const daynum = d.getUTCDay() || 7; - d.setUTCDate(d.getUTCDate() + 4 - daynum); - const yearstart = new Date(Date.UTC(d.getUTCFullYear(), 0, 1)); - return Math.ceil(((d - yearstart) / 864e5 + 1) / 7); - } - }; - __publicField(DateVersion, "tags", ["YYYY", "YY", "0Y", "MM", "0M", "WW", "0W", "DD", "0D"]); - var SemanticVersion = class { - constructor(obj, parentSeperator, isInitialVersion) { - __publicField(this, "reDigits", /[^0-9]/); - this.MAJOR = null; - this.MINOR = null; - this.PATCH = null; - this.isInitialVersion = isInitialVersion; - this.parentSeperator = parentSeperator; - this.props = []; - this.parse(obj); - } - parse(obj) { - for (const prop in obj) { - if (!this.isInitialVersion && !this.isValid(prop, obj[prop])) { - throw new Error(`Semantic tag ${prop} has an invalid value "${obj[prop]}"`); - } - this[prop] = obj[prop]; - this.props.push(prop); - } - } - reset() { - this.props.map((prop) => this[prop] = 0); - } - inc(level) { - if (this.props.indexOf(level) === -1) { - throw new Error(`[CALVER]: You have requested to increment "${level}" but your format doesn't have it.`); - } - if (level == "MAJOR") { - this.MAJOR = (parseInt(this.MAJOR) + 1).toString(); - if (this.props.indexOf("MINOR") !== -1) - this.MINOR = "0"; - if (this.props.indexOf("PATCH") !== -1) - this.PATCH = "0"; - } - if (level == "MINOR") { - this.MINOR = (parseInt(this.MINOR) + 1).toString(); - if (this.props.indexOf("PATCH") !== -1) - this.PATCH = "0"; - } - if (level == "PATCH") { - this.PATCH = (parseInt(this.PATCH) + 1).toString(); - } - return this; - } - isValid(prop, v) { - if (!v || typeof v != "string" || this.reDigits.test(v)) - return false; - return true; - } - asObject() { - return this.props.reduce((memo, prop) => { - memo[prop] = this[prop]; - return memo; - }, {}); - } - asString() { - const result = []; - for (const tag of this.constructor.tags) { - if (this.props.indexOf(tag) !== -1) - result.push(this[tag]); - } - return result.join(this.parentSeperator); - } - }; - __publicField(SemanticVersion, "tags", ["MAJOR", "MINOR", "PATCH"]); - var ModifierVersion = class { - constructor(obj, parentSeperator, isInitialVersion) { - __publicField(this, "reDigits", /[^0-9\-]/); - this.DEV = null; - this.ALPHA = null; - this.BETA = null; - this.RC = null; - this.isInitialVersion = isInitialVersion; - this.parentSeperator = parentSeperator; - this.prop = null; - this.parse(obj); - } - parse(obj) { - for (const prop in obj) { - if (!this.isInitialVersion && !this.isValid(prop, obj[prop])) { - throw new Error(`Modifier tag ${prop} has an invalid value "${obj[prop]}"`); - } - this.prop = prop; - this[prop] = obj[prop]; - } - } - inc(level) { - if (level != this.prop) { - throw new Error(`[CALVER]: You have requested to increment "${level}" but your format doesn't have it.`); - } - this[this.prop] = (parseInt(this[this.prop]) + 1).toString(); - return this; - } - isValid(prop, v) { - if (!v || typeof v != "string" || this.reDigits.test(v)) - return false; - if (v.indexOf("-") !== -1 && v != "-1") - return false; - return true; - } - asObject() { - const result = {}; - result[this.prop] = this[this.prop]; - return result; - } - asString() { - return `${this.constructor.seperator}${this.prop}${this.parentSeperator}${this[this.prop]}`; - } - }; - __publicField(ModifierVersion, "seperator", "-"); - __publicField(ModifierVersion, "tags", ["DEV", "ALPHA", "BETA", "RC"]); - var Version = class { - constructor(version, seperator) { - this.seperator = seperator; - this.versionStringHasModifier = version.versionStringHasModifier; - this.isInitialVersion = version.isInitialVersion; - this.isCalendarLeading = version.isCalendarLeading; - this.datever = null; - this.semanticver = null; - this.modifierver = null; - this.parse(version); - } - parse(version) { - if (Object.keys(version.calendar).length > 0) { - this.datever = new DateVersion(version.calendar, this.seperator, this.isInitialVersion); - } - if (Object.keys(version.semantic).length > 0) { - this.semanticver = new SemanticVersion(version.semantic, this.seperator, this.isInitialVersion); - } - if (Object.keys(version.modifier).length > 0) { - this.modifierver = new ModifierVersion(version.modifier, this.seperator, this.isInitialVersion); - } - } - inc(levels) { - const l = levels[0]; - const removeModifier = levels.length === 1 && ["MAJOR", "MINOR", "PATCH", "CALENDAR"].indexOf(l) !== -1 && this.versionStringHasModifier; - if (removeModifier) { - this.modifierver = null; - return this; - } - if (l == "CALENDAR") - this.datever.inc(l); - if (SemanticVersion.tags.indexOf(l) !== -1) - this.semanticver.inc(l); - if (ModifierVersion.tags.indexOf(l) !== -1) - this.modifierver.inc(l); - if (levels.length > 1) { - const l2 = levels[1]; - if (ModifierVersion.tags.indexOf(l2) !== -1 && ModifierVersion.tags.indexOf(l) === -1) { - this.modifierver.inc(l2); - } else if (SemanticVersion.tags.indexOf(l2) !== -1) { - if (this.isCalendarLeading && this.datever.hasChanged) - this.semanticver.reset(); - else - this.semanticver.inc(l2); - } else { - throw new Error(`The second tag of the level should be either modifier or semantic tag. You specified "${l2}" as the second tag and "${l}" as the first tag.`); - } - } - return this; - } - asObject() { - const result = { - calendar: {}, - semantic: {}, - modifier: {} - }; - if (this.datever) - result.calendar = this.datever.asObject(); - if (this.semanticver) - result.semantic = this.semanticver.asObject(); - if (this.modifierver) - result.modifier = this.modifierver.asObject(); - return result; - } - }; - var Calver = class { - constructor() { - this.seperator = "."; - this.levels = ["CALENDAR", "MAJOR", "MINOR", "PATCH", ...ModifierVersion.tags]; - } - inc(format, version, levels) { - levels = this.validateLevels(levels); - format = this.validateFormat(format, levels); - const parsedVersion = this.parseVersion(version, format, levels); - const obj = new Version(parsedVersion, this.seperator).inc(levels).asObject(); - const result = this.asString(format, obj); - if (version == result) { - throw new Error("No change happened in the version."); - } - return result; - } - isValid(format, version) { - if (!version) - return false; - try { - format = this.validateFormat(format, []); - version = this.parseVersion(version, format, []); - new Version(version, this.seperator); - return true; - } catch (e) { - return false; - } - } - getTagType(tag) { - tag = tag.toUpperCase(); - if (DateVersion.tags.indexOf(tag) !== -1) - return "calendar"; - if (SemanticVersion.tags.indexOf(tag) !== -1) - return "semantic"; - if (ModifierVersion.tags.indexOf(tag) !== -1) - return "modifier"; - return void 0; - } - asString(format, obj) { - const result = []; - for (const tag of format.sorted) { - if (DateVersion.tags.indexOf(tag) !== -1) { - result.push(obj.calendar[tag]); - } - if (SemanticVersion.tags.indexOf(tag) !== -1) { - result.push(obj.semantic[tag]); - } - if (ModifierVersion.tags.indexOf(tag) !== -1 && obj.modifier) { - result.push(ModifierVersion.seperator + tag.toLowerCase() + this.seperator + obj.modifier[tag]); - } - } - return result.join(this.seperator).replace(this.seperator + ModifierVersion.seperator, ModifierVersion.seperator); - } - parseVersion(version, format, levels) { - const map = { - isCalendarLeading: format.isCalendarLeading, - isInitialVersion: !version, - versionStringHasModifier: /(dev|DEV|alpha|ALPHA|beta|BETA|rc|RC)/.test(version), - sorted: {}, - calendar: {}, - semantic: {}, - modifier: {} - }; - let startIndex = 0, endIndex = 0; - for (const tag of format.sorted) { - endIndex = version.indexOf(this.seperator, startIndex + 1); - if (endIndex === -1) - endIndex = void 0; - let value = version.slice(startIndex, endIndex); - if (value.indexOf(ModifierVersion.seperator) !== -1) { - endIndex = version.indexOf(ModifierVersion.seperator, startIndex + 1); - value = version.slice(startIndex, endIndex); - } - if (ModifierVersion.tags.indexOf(value.toUpperCase()) !== -1) { - if (value.toUpperCase() != tag) - value = "-1"; - else - value = version.slice(startIndex + value.length + 1); - } - if (isNaN(startIndex)) { - value = ModifierVersion.tags.indexOf(tag) !== -1 ? "-1" : "0"; - } - if (value == "") { - value = "0"; - } - map.sorted[tag] = value; - if (format.calendar.indexOf(tag) !== -1) - map.calendar[tag] = value; - if (format.semantic.indexOf(tag) !== -1) - map.semantic[tag] = value; - if (format.modifier.indexOf(tag) !== -1) - map.modifier[tag] = value; - startIndex = endIndex + 1; - } - return map; - } - validateFormat(format, levels) { - const result = { - sorted: [], - calendar: [], - semantic: [], - modifier: [] - }; - const tags = format.toUpperCase().split(this.seperator); - for (const tag of tags) { - if (DateVersion.tags.indexOf(tag) !== -1) - result.calendar.push(tag); - else if (SemanticVersion.tags.indexOf(tag) !== -1) - result.semantic.push(tag); - else - throw new Error(`[CALVER]: Invalid format tag "${tag}".`); - result.sorted.push(tag); - } - for (const level of levels) { - if (ModifierVersion.tags.indexOf(level) !== -1) { - result.modifier.push(level); - result.sorted.push(level); - } - } - result.isCalendarLeading = DateVersion.tags.indexOf(result.sorted[0]) !== -1; - return result; - } - validateLevels(levels) { - const result = []; - const arr = levels.split("."); - for (const level of arr) { - const formatted = level.toUpperCase(); - if (this.levels.indexOf(formatted) !== -1) { - result.push(formatted); - } else { - throw new Error(`[CALVER]: Invalid level "${level}".`); - } - } - return result; - } - }; - var index = new Calver(); - - // pnp:/Users/herockk/Workspaces/yarn-plugins/packages/plugin-release/sources/releaseUtils.ts - var import_conventional_changelog_core = __toModule(require_conventional_changelog_core()); - var import_conventional_changelog_preset_loader = __toModule(require_conventional_changelog_preset_loader()); - var import_conventional_recommended_bump = __toModule(require_conventional_recommended_bump()); - var import_git_semver_tags = __toModule(require_git_semver_tags()); - var import_module = __toModule(__require("module")); - var import_semver = __toModule(__require("semver")); - var import_util = __toModule(__require("util")); - var releaseTypes = {patch: 1, minor: 2, major: 3}; - var gitSemverTagsPromise = (0, import_util.promisify)(import_git_semver_tags.default); - async function changelogStream(workspace, ...args) { - var _a; - const {cwd, locator, manifest, project} = workspace; - const [options = {}, context, gitRawCommitsOpts, parserOpts, writerOpts] = args; - const require2 = absoluteRequire(project.cwd); - const isReleaseable = !manifest.private || Boolean(workspace === project.topLevelWorkspace && project.configuration.get(`releaseCalverFormat`)); - return (0, import_conventional_changelog_core.default)(__spreadValues({ - config: await loadConventionalChangelogPreset(require2, project.configuration.get(`conventionalChangelogPreset`)), - pkg: {transform: () => manifest.exportTo({version: locator.reference})}, - lernaPackage: workspace === project.topLevelWorkspace ? void 0 : import_core.structUtils.stringifyIdent(workspace.locator), - tagPrefix: workspace === project.topLevelWorkspace ? void 0 : `${import_core.structUtils.stringifyIdent(workspace.locator)}@`, - outputUnreleased: true - }, options), __spreadProps(__spreadValues({ - isPatch: false, - version: isReleaseable ? void 0 : `Unreleased` - }, context), { - date: isReleaseable ? (_a = context == null ? void 0 : context.date) != null ? _a : new Date().toISOString().split(`T`)[0] : void 0 - }), __spreadValues({path: cwd}, gitRawCommitsOpts), parserOpts, __spreadValues({ - generateOn: (commit) => { - const version = import_semver.default.valid(commit.version); - return version && (!options.skipUnstable || !import_semver.default.prerelease(version)); - } - }, writerOpts)); - } - async function recommendedBump(workspace, {prerelease, preid} = {}) { - var _a, _b; - const {cwd, manifest, project} = workspace; - const conventionalChangelogPreset = project.configuration.get(`conventionalChangelogPreset`); - const releaseCalverFormat = project.configuration.get(`releaseCalverFormat`); - const releaseCodeChangeTypes = new Set(project.configuration.get(`releaseCodeChangeTypes`)); - const conventionalRecommendedBumpPromise = (0, import_util.promisify)(import_conventional_recommended_bump.default); - if (workspace === project.topLevelWorkspace) { - return releaseCalverFormat ? incrementCalendarPatch(releaseCalverFormat, (_a = manifest.version) != null ? _a : ``, {prerelease, preid}) : void 0; - } else { - const config = await loadConventionalChangelogPreset(absoluteRequire(project.cwd), conventionalChangelogPreset); - const bump = await conventionalRecommendedBumpPromise({ - config, - path: cwd, - skipUnstable: !prerelease, - lernaPackage: import_core.structUtils.stringifyIdent(workspace.locator), - whatBump: (commits) => { - var _a2; - const shouldBump = commits.some((commit) => releaseCodeChangeTypes.has(commit.type)); - return shouldBump && ((_a2 = config.recommendedBumpOpts) == null ? void 0 : _a2.whatBump) ? config.recommendedBumpOpts.whatBump(commits) : {}; - } - }); - if (!prerelease || !bump.releaseType) - return bump.releaseType; - const [latestTag] = await gitSemverTagsPromise({skipUnstable: false, lernaTags: true, package: import_core.structUtils.stringifyIdent(workspace.locator)}); - if (!latestTag) - return `pre${bump.releaseType}`; - const [stableTag = `${import_core.structUtils.stringifyIdent(workspace.locator)}@0.0.0`] = await gitSemverTagsPromise({skipUnstable: true, lernaTags: true, package: import_core.structUtils.stringifyIdent(workspace.locator)}); - const stableVersion = import_core.structUtils.parseLocator(stableTag).reference; - const latestVersion = import_core.structUtils.parseLocator(latestTag).reference; - const unstableDiff = (_b = import_semver.default.diff(stableVersion, workspace.locator.reference)) != null ? _b : import_semver.default.diff(stableVersion, latestVersion); - if (!unstableDiff) - return `pre${bump.releaseType}`; - if (unstableDiff === `prerelease`) - return `prerelease`; - const previousStableBump = unstableDiff.slice(`pre`.length); - return releaseTypes[previousStableBump] < releaseTypes[bump.releaseType] ? `pre${bump.releaseType}` : `prerelease`; - } - } - function absoluteRequire(cwd) { - const pnpPath = (0, import_plugin_pnp.getPnpPath)({cwd}).cjs; - const absRequire = (0, import_module.createRequire)(pnpPath); - if (!process.versions.pnp && import_fslib.xfs.existsSync(pnpPath)) - absRequire(pnpPath).setup(); - return absRequire; - } - function incrementCalendarPatch(format, version, {prerelease, preid} = {}) { - if (import_semver.default.prerelease(version) && import_semver.default.lte(index.inc(format, ``, `calendar`), import_semver.default.inc(version, `patch`))) - return import_semver.default.inc(version, prerelease ? `prerelease` : `patch`, preid); - const newVersion = new import_semver.SemVer(index.inc(format, version, `calendar.patch`)); - if (prerelease) - newVersion.prerelease = preid ? [preid, 0] : [0]; - return newVersion.format(); - } - async function loadConventionalChangelogPreset(require2, request) { - try { - const config = await (0, import_conventional_changelog_preset_loader.presetLoader)(require2)(request); - return typeof config === `function` ? await (0, import_util.promisify)(config)() : config; - } catch (err) { - throw new import_core.ReportError(import_core.MessageName.UNNAMED, `Failed to load the conventional-changelog preset '${request}'. Does your top-level workspace list it as a dependency?`); - } - } - - // pnp:/Users/herockk/Workspaces/yarn-plugins/packages/plugin-release/sources/commands/releaseCommit.ts - var cliEscape = (str) => { - const specialChars = ` -$|&><\`"'`; - return specialChars.split(``).some((char) => str.includes(char)) ? `'${str.replace(/'/g, `\\'`)}'` : str; - }; - var ReleaseCommitCommand = class extends import_cli.BaseCommand { - constructor() { - super(...arguments); - this.json = import_clipanion.Option.Boolean(`--json`, false, {description: `Format the output as an NDJSON stream`}); - this.dryRun = import_clipanion.Option.Boolean(`--dry-run`, false, { - description: `Prints the recommended version bump to stdout` - }); - this.amend = import_clipanion.Option.Boolean(`--amend`, false, {description: `Amend the previous commit instead of creating a new one`}); - this.tagHead = import_clipanion.Option.String(`--tag-head`, `HEAD`, {description: `Specify an alternative commit-ish to tag`}); - } - async execute() { - const configuration = await import_core2.Configuration.find(this.context.cwd, this.context.plugins); - const {project} = await import_core2.Project.find(configuration, this.context.cwd); - const {stdout: tagListOut} = await import_core2.execUtils.execvp(`git`, [`tag`, `--list`], {cwd: project.cwd, strict: true}); - const tagList = new Set(tagListOut.trim().split(/\s+/)); - const projectTagName = project.topLevelWorkspace.manifest.version ? `v${project.topLevelWorkspace.manifest.version}` : null; - if (projectTagName && tagList.has(projectTagName)) - throw new import_clipanion.UsageError(`${projectTagName} has already been released`); - const prerelease = import_semver2.default.prerelease(project.topLevelWorkspace.locator.reference); - const report = await import_core2.StreamReport.start({ - configuration, - stdout: this.context.stdout, - json: this.json - }, async (report2) => { - const taggableWorkspaces = project.topLevelWorkspace.getRecursiveWorkspaceChildren().filter((workspace) => !workspace.manifest.private && !tagList.has(import_core2.structUtils.stringifyLocator(workspace.locator))); - if (!taggableWorkspaces.length) { - report2.reportWarning(import_core2.MessageName.UNNAMED, `There are no workspaces to tag`); - return; - } - const newWorkspaceVersions = taggableWorkspaces.map(({locator, manifest}) => `${import_core2.structUtils.stringifyIdent(locator)}: v${manifest.version}`).join(` -`); - const commitMessage = `chore: release ${projectTagName != null ? projectTagName : `${taggableWorkspaces.length} workspace(s)`} - -${newWorkspaceVersions}`; - const commitArgs = [`commit`, `-m`, commitMessage]; - if (this.amend) - commitArgs.push(`--amend`); - report2.reportJson({ - gitOpt: `commit`, - commitMessage - }); - if (this.dryRun) { - report2.reportInfo(import_core2.MessageName.UNNAMED, `git ${commitArgs.map(cliEscape).join(` `)}`); - } else { - await import_core2.execUtils.execvp(`git`, commitArgs, { - cwd: project.cwd, - strict: true - }); - } - for (const {locator} of taggableWorkspaces) { - const tagName = import_core2.structUtils.stringifyLocator(locator); - const tagArgs = [`tag`, tagName, this.tagHead]; - report2.reportJson({ - gitOp: `tag`, - tagName - }); - if (this.dryRun) { - report2.reportInfo(import_core2.MessageName.UNNAMED, `git ${tagArgs.map(cliEscape).join(` `)}`); - } else { - await import_core2.execUtils.execvp(`git`, tagArgs, { - cwd: project.cwd, - strict: true - }); - } - } - if (projectTagName) { - let changelogText = ``; - const getText = new import_stream.Transform({ - transform(chunk, encoding, callback) { - changelogText += chunk.toString(); - callback(null, chunk); - } - }); - await (0, import_util2.promisify)(import_stream.pipeline)(await changelogStream(project.topLevelWorkspace, { - releaseCount: 1, - skipUnstable: !prerelease - }), getText); - changelogText = changelogText.split(` +var plugin=(()=>{var eI=Object.create,as=Object.defineProperty,tI=Object.defineProperties,rI=Object.getOwnPropertyDescriptor,nI=Object.getOwnPropertyDescriptors,iI=Object.getOwnPropertyNames,em=Object.getOwnPropertySymbols,sI=Object.getPrototypeOf,tm=Object.prototype.hasOwnProperty,oI=Object.prototype.propertyIsEnumerable;var Kl=(e,t,r)=>t in e?as(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,st=(e,t)=>{for(var r in t||(t={}))tm.call(t,r)&&Kl(e,r,t[r]);if(em)for(var r of em(t))oI.call(t,r)&&Kl(e,r,t[r]);return e},zr=(e,t)=>tI(e,nI(t)),aI=e=>as(e,"__esModule",{value:!0});var U=e=>{if(typeof require!="undefined")return require(e);throw new Error('Dynamic require of "'+e+'" is not supported')};var _=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),rm=(e,t)=>{for(var r in t)as(e,r,{get:t[r],enumerable:!0})},uI=(e,t,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of iI(t))!tm.call(e,i)&&i!=="default"&&as(e,i,{get:()=>t[i],enumerable:!(r=rI(t,i))||r.enumerable});return e},Oe=e=>uI(aI(as(e!=null?eI(sI(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e);var Jr=(e,t,r)=>(Kl(e,typeof t!="symbol"?t+"":t,r),r);var um=_((k$,am)=>{"use strict";var im=U("stream").PassThrough,sm=U("stream").Writable,om=U("util");om.inherits(Xl,im);om.inherits(Zl,sm);function Xl(e,t){im.call(this,t),this.factory=e,this.opts=t}Xl.prototype._flush=function(e){var t=this.factory();t.pipe(new Zl(this,this.opts)).on("finish",e),t.resume()};function Zl(e,t){sm.call(this,t),this.target=e}Zl.prototype._write=function(e,t,r){this.target.push(e),r()};function Ql(e,t){t=t||{};var r;return typeof e=="function"?r=e:(e.pause(),r=function(){return e}),new Xl(r,t)}Ql.obj=function(e,t){return t=t||{},t.objectMode=!0,Ql(e,t)};am.exports=Ql});var cm=_((F$,fm)=>{"use strict";var lm=(e,t)=>e.some(r=>r instanceof RegExp?r.test(t):r===t),lI=(e,t)=>{let r=[],i=[],o=[];t=st({useEquals:!0,shortFlag:!0},t);let u=(f,h)=>{let p=t.shortFlag&&f.length===1?"-":"--",g=t.allowCamelCase?f:f.replace(/[A-Z]/g,"-$&").toLowerCase();f=p+g,t.useEquals?r.push(f+(h?`=${h}`:"")):(r.push(f),h&&r.push(h))},l=(f,h)=>{r.push(`-${f}`),h&&r.push(h)};for(let[f,h]of Object.entries(e)){let p=u;if(!(Array.isArray(t.excludes)&&lm(t.excludes,f))&&!(Array.isArray(t.includes)&&!lm(t.includes,f))){if(typeof t.aliases=="object"&&t.aliases[f]&&(f=t.aliases[f],p=l),f==="--"){if(!Array.isArray(h))throw new TypeError(`Expected key \`--\` to be Array, got ${typeof h}`);o=h;continue}if(f==="_"){if(!Array.isArray(h))throw new TypeError(`Expected key \`_\` to be Array, got ${typeof h}`);i=h;continue}if(h===!0&&p(f,""),h===!1&&!t.ignoreFalse&&p(`no-${f}`),typeof h=="string"&&p(f,h),typeof h=="number"&&!Number.isNaN(h)&&p(f,String(h)),Array.isArray(h))for(let g of h)p(f,g)}}for(let f of i)r.push(String(f));o.length>0&&r.push("--");for(let f of o)r.push(String(f));return r};fm.exports=lI});var ef=_((B$,hm)=>{hm.exports=U("stream")});var mm=_((U$,gm)=>{"use strict";function pm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,i)}return r}function fI(e){for(var t=1;t0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(r){if(this.length===0)return"";for(var i=this.head,o=""+i.data;i=i.next;)o+=r+i.data;return o}},{key:"concat",value:function(r){if(this.length===0)return Vo.alloc(0);for(var i=Vo.allocUnsafe(r>>>0),o=this.head,u=0;o;)vI(o.data,i,u),u+=o.data.length,o=o.next;return i}},{key:"consume",value:function(r,i){var o;return rl.length?l.length:r;if(f===l.length?u+=l:u+=l.slice(0,r),r-=f,r===0){f===l.length?(++o,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=l.slice(f));break}++o}return this.length-=o,u}},{key:"_getBuffer",value:function(r){var i=Vo.allocUnsafe(r),o=this.head,u=1;for(o.data.copy(i),r-=o.data.length;o=o.next;){var l=o.data,f=r>l.length?l.length:r;if(l.copy(i,i.length-r,0,f),r-=f,r===0){f===l.length?(++u,o.next?this.head=o.next:this.head=this.tail=null):(this.head=o,o.data=l.slice(f));break}++u}return this.length-=u,i}},{key:mI,value:function(r,i){return tf(this,fI({},i,{depth:0,customInspect:!1}))}}]),e}()});var nf=_((G$,ym)=>{"use strict";function yI(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return i||o?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(rf,this,e)):process.nextTick(rf,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(u){!t&&u?r._writableState?r._writableState.errorEmitted?process.nextTick(Ko,r):(r._writableState.errorEmitted=!0,process.nextTick(vm,r,u)):process.nextTick(vm,r,u):t?(process.nextTick(Ko,r),t(u)):process.nextTick(Ko,r)}),this)}function vm(e,t){rf(e,t),Ko(e)}function Ko(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function _I(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function rf(e,t){e.emit("error",t)}function bI(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}ym.exports={destroy:yI,undestroy:_I,errorOrDestroy:bI}});var Zr=_((j$,wm)=>{"use strict";var _m={};function Bt(e,t,r){r||(r=Error);function i(u,l,f){return typeof t=="string"?t:t(u,l,f)}class o extends r{constructor(l,f,h){super(i(l,f,h))}}o.prototype.name=r.name,o.prototype.code=e,_m[e]=o}function bm(e,t){if(Array.isArray(e)){let r=e.length;return e=e.map(i=>String(i)),r>2?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:r===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}function wI(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function SI(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function EI(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}Bt("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);Bt("ERR_INVALID_ARG_TYPE",function(e,t,r){let i;typeof t=="string"&&wI(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";let o;if(SI(e," argument"))o=`The ${e} ${i} ${bm(t,"type")}`;else{let u=EI(e,".")?"property":"argument";o=`The "${e}" ${u} ${i} ${bm(t,"type")}`}return o+=`. Received type ${typeof r}`,o},TypeError);Bt("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Bt("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Bt("ERR_STREAM_PREMATURE_CLOSE","Premature close");Bt("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Bt("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Bt("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Bt("ERR_STREAM_WRITE_AFTER_END","write after end");Bt("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Bt("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Bt("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");wm.exports.codes=_m});var sf=_((H$,Sm)=>{"use strict";var LI=Zr().codes.ERR_INVALID_OPT_VALUE;function AI(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function xI(e,t,r,i){var o=AI(t,i,r);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0){var u=i?r:"highWaterMark";throw new LI(u,o)}return Math.floor(o)}return e.objectMode?16:16*1024}Sm.exports={getHighWaterMark:xI}});var Em=_((W$,of)=>{typeof Object.create=="function"?of.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:of.exports=function(t,r){if(r){t.super_=r;var i=function(){};i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}}});var An=_(($$,uf)=>{try{if(af=U("util"),typeof af.inherits!="function")throw"";uf.exports=af.inherits}catch(e){uf.exports=Em()}var af});var Am=_((Y$,Lm)=>{Lm.exports=U("util").deprecate});var cf=_((V$,Tm)=>{"use strict";Tm.exports=Be;function xm(e){var t=this;this.next=null,this.entry=null,this.finish=function(){QI(t,e)}}var fi;Be.WritableState=us;var PI={deprecate:Am()},Pm=ef(),zo=U("buffer").Buffer,CI=global.Uint8Array||function(){};function OI(e){return zo.from(e)}function RI(e){return zo.isBuffer(e)||e instanceof CI}var lf=nf(),TI=sf(),II=TI.getHighWaterMark,Qr=Zr().codes,NI=Qr.ERR_INVALID_ARG_TYPE,DI=Qr.ERR_METHOD_NOT_IMPLEMENTED,MI=Qr.ERR_MULTIPLE_CALLBACK,qI=Qr.ERR_STREAM_CANNOT_PIPE,kI=Qr.ERR_STREAM_DESTROYED,FI=Qr.ERR_STREAM_NULL_VALUES,BI=Qr.ERR_STREAM_WRITE_AFTER_END,UI=Qr.ERR_UNKNOWN_ENCODING,ci=lf.errorOrDestroy;An()(Be,Pm);function GI(){}function us(e,t,r){fi=fi||xn(),e=e||{},typeof r!="boolean"&&(r=t instanceof fi),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=II(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=e.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(o){KI(t,o)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new xm(this)}us.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(us.prototype,"buffer",{get:PI.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}})();var Jo;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(Jo=Function.prototype[Symbol.hasInstance],Object.defineProperty(Be,Symbol.hasInstance,{value:function(t){return Jo.call(this,t)?!0:this!==Be?!1:t&&t._writableState instanceof us}})):Jo=function(t){return t instanceof this};function Be(e){fi=fi||xn();var t=this instanceof fi;if(!t&&!Jo.call(Be,this))return new Be(e);this._writableState=new us(e,this,t),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),Pm.call(this)}Be.prototype.pipe=function(){ci(this,new qI)};function jI(e,t){var r=new BI;ci(e,r),process.nextTick(t,r)}function HI(e,t,r,i){var o;return r===null?o=new FI:typeof r!="string"&&!t.objectMode&&(o=new NI("chunk",["string","Buffer"],r)),o?(ci(e,o),process.nextTick(i,o),!1):!0}Be.prototype.write=function(e,t,r){var i=this._writableState,o=!1,u=!i.objectMode&&RI(e);return u&&!zo.isBuffer(e)&&(e=OI(e)),typeof t=="function"&&(r=t,t=null),u?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=GI),i.ending?jI(this,r):(u||HI(this,i,e,r))&&(i.pendingcb++,o=$I(this,i,u,e,t,r)),o};Be.prototype.cork=function(){this._writableState.corked++};Be.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&Om(this,e))};Be.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new UI(t);return this._writableState.defaultEncoding=t,this};Object.defineProperty(Be.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function WI(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=zo.from(t,r)),t}Object.defineProperty(Be.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function $I(e,t,r,i,o,u){if(!r){var l=WI(t,i,o);i!==l&&(r=!0,o="buffer",i=l)}var f=t.objectMode?1:i.length;t.length+=f;var h=t.length{"use strict";var e8=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};Nm.exports=ur;var Im=df(),hf=cf();An()(ur,Im);for(pf=e8(hf.prototype),Xo=0;Xo{var Qo=U("buffer"),lr=Qo.Buffer;function Dm(e,t){for(var r in e)t[r]=e[r]}lr.from&&lr.alloc&&lr.allocUnsafe&&lr.allocUnsafeSlow?Mm.exports=Qo:(Dm(Qo,gf),gf.Buffer=Pn);function Pn(e,t,r){return lr(e,t,r)}Pn.prototype=Object.create(lr.prototype);Dm(lr,Pn);Pn.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return lr(e,t,r)};Pn.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=lr(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};Pn.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return lr(e)};Pn.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return Qo.SlowBuffer(e)}});var yf=_(Fm=>{"use strict";var mf=qm().Buffer,km=mf.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n8(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function i8(e){var t=n8(e);if(typeof t!="string"&&(mf.isEncoding===km||!km(e)))throw new Error("Unknown encoding: "+e);return t||e}Fm.StringDecoder=fs;function fs(e){this.encoding=i8(e);var t;switch(this.encoding){case"utf16le":this.text=f8,this.end=c8,t=4;break;case"utf8":this.fillLast=a8,t=4;break;case"base64":this.text=h8,this.end=p8,t=3;break;default:this.write=d8,this.end=g8;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=mf.allocUnsafe(t)}fs.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s8(e,t,r){var i=t.length-1;if(i=0?(o>0&&(e.lastNeed=o-1),o):--i=0?(o>0&&(e.lastNeed=o-2),o):--i=0?(o>0&&(o===2?o=0:e.lastNeed=o-3),o):0))}function o8(e,t,r){if((t[0]&192)!=128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!=128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!=128)return e.lastNeed=2,"\uFFFD"}}function a8(e){var t=this.lastTotal-this.lastNeed,r=o8(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function u8(e,t){var r=s8(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}function l8(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function f8(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c8(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function h8(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function p8(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d8(e){return e.toString(this.encoding)}function g8(e){return e&&e.length?this.write(e):""}});var ea=_((J$,Gm)=>{"use strict";var Bm=Zr().codes.ERR_STREAM_PREMATURE_CLOSE;function m8(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,i=new Array(r),o=0;o{"use strict";var ta;function en(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _8=ea(),tn=Symbol("lastResolve"),Cn=Symbol("lastReject"),cs=Symbol("error"),ra=Symbol("ended"),On=Symbol("lastPromise"),_f=Symbol("handlePromise"),Rn=Symbol("stream");function rn(e,t){return{value:e,done:t}}function b8(e){var t=e[tn];if(t!==null){var r=e[Rn].read();r!==null&&(e[On]=null,e[tn]=null,e[Cn]=null,t(rn(r,!1)))}}function w8(e){process.nextTick(b8,e)}function S8(e,t){return function(r,i){e.then(function(){if(t[ra]){r(rn(void 0,!0));return}t[_f](r,i)},i)}}var E8=Object.getPrototypeOf(function(){}),L8=Object.setPrototypeOf((ta={get stream(){return this[Rn]},next:function(){var t=this,r=this[cs];if(r!==null)return Promise.reject(r);if(this[ra])return Promise.resolve(rn(void 0,!0));if(this[Rn].destroyed)return new Promise(function(l,f){process.nextTick(function(){t[cs]?f(t[cs]):l(rn(void 0,!0))})});var i=this[On],o;if(i)o=new Promise(S8(i,this));else{var u=this[Rn].read();if(u!==null)return Promise.resolve(rn(u,!1));o=new Promise(this[_f])}return this[On]=o,o}},en(ta,Symbol.asyncIterator,function(){return this}),en(ta,"return",function(){var t=this;return new Promise(function(r,i){t[Rn].destroy(null,function(o){if(o){i(o);return}r(rn(void 0,!0))})})}),ta),E8),A8=function(t){var r,i=Object.create(L8,(r={},en(r,Rn,{value:t,writable:!0}),en(r,tn,{value:null,writable:!0}),en(r,Cn,{value:null,writable:!0}),en(r,cs,{value:null,writable:!0}),en(r,ra,{value:t._readableState.endEmitted,writable:!0}),en(r,_f,{value:function(u,l){var f=i[Rn].read();f?(i[On]=null,i[tn]=null,i[Cn]=null,u(rn(f,!1))):(i[tn]=u,i[Cn]=l)},writable:!0}),r));return i[On]=null,_8(t,function(o){if(o&&o.code!=="ERR_STREAM_PREMATURE_CLOSE"){var u=i[Cn];u!==null&&(i[On]=null,i[tn]=null,i[Cn]=null,u(o)),i[cs]=o;return}var l=i[tn];l!==null&&(i[On]=null,i[tn]=null,i[Cn]=null,l(rn(void 0,!0))),i[ra]=!0}),t.on("readable",w8.bind(null,i)),i};jm.exports=A8});var Vm=_((Z$,Ym)=>{"use strict";function Wm(e,t,r,i,o,u,l){try{var f=e[u](l),h=f.value}catch(p){r(p);return}f.done?t(h):Promise.resolve(h).then(i,o)}function x8(e){return function(){var t=this,r=arguments;return new Promise(function(i,o){var u=e.apply(t,r);function l(h){Wm(u,i,o,l,f,"next",h)}function f(h){Wm(u,i,o,l,f,"throw",h)}l(void 0)})}}function $m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,i)}return r}function P8(e){for(var t=1;t{"use strict";nv.exports=be;var hi;be.ReadableState=zm;var Q$=U("events").EventEmitter,Km=function(t,r){return t.listeners(r).length},hs=ef(),na=U("buffer").Buffer,T8=global.Uint8Array||function(){};function I8(e){return na.from(e)}function N8(e){return na.isBuffer(e)||e instanceof T8}var bf=U("util"),me;bf&&bf.debuglog?me=bf.debuglog("stream"):me=function(){};var D8=mm(),wf=nf(),M8=sf(),q8=M8.getHighWaterMark,ia=Zr().codes,k8=ia.ERR_INVALID_ARG_TYPE,F8=ia.ERR_STREAM_PUSH_AFTER_EOF,B8=ia.ERR_METHOD_NOT_IMPLEMENTED,U8=ia.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,pi,Sf,Ef;An()(be,hs);var ps=wf.errorOrDestroy,Lf=["error","close","destroy","pause","resume"];function G8(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function zm(e,t,r){hi=hi||xn(),e=e||{},typeof r!="boolean"&&(r=t instanceof hi),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=q8(this,e,"readableHighWaterMark",r),this.buffer=new D8,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(pi||(pi=yf().StringDecoder),this.decoder=new pi(e.encoding),this.encoding=e.encoding)}function be(e){if(hi=hi||xn(),!(this instanceof be))return new be(e);var t=this instanceof hi;this._readableState=new zm(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),hs.call(this)}Object.defineProperty(be.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(t){!this._readableState||(this._readableState.destroyed=t)}});be.prototype.destroy=wf.destroy;be.prototype._undestroy=wf.undestroy;be.prototype._destroy=function(e,t){t(e)};be.prototype.push=function(e,t){var r=this._readableState,i;return r.objectMode?i=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=na.from(e,t),t=""),i=!0),Jm(this,e,t,!1,i)};be.prototype.unshift=function(e){return Jm(this,e,null,!0,!1)};function Jm(e,t,r,i,o){me("readableAddChunk",t);var u=e._readableState;if(t===null)u.reading=!1,W8(e,u);else{var l;if(o||(l=j8(u,t)),l)ps(e,l);else if(u.objectMode||t&&t.length>0)if(typeof t!="string"&&!u.objectMode&&Object.getPrototypeOf(t)!==na.prototype&&(t=I8(t)),i)u.endEmitted?ps(e,new U8):Af(e,u,t,!0);else if(u.ended)ps(e,new F8);else{if(u.destroyed)return!1;u.reading=!1,u.decoder&&!r?(t=u.decoder.write(t),u.objectMode||t.length!==0?Af(e,u,t,!1):xf(e,u)):Af(e,u,t,!1)}else i||(u.reading=!1,xf(e,u))}return!u.ended&&(u.length=Xm?e=Xm:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function Zm(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=H8(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}be.prototype.read=function(e){me("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return me("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Cf(this):sa(this),null;if(e=Zm(e,t),e===0&&t.ended)return t.length===0&&Cf(this),null;var i=t.needReadable;me("need readable",i),(t.length===0||t.length-e0?o=tv(e,t):o=null,o===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&Cf(this)),o!==null&&this.emit("data",o),o};function W8(e,t){if(me("onEofChunk"),!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?sa(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,Qm(e)))}}function sa(e){var t=e._readableState;me("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(me("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(Qm,e))}function Qm(e){var t=e._readableState;me("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,Pf(e)}function xf(e,t){t.readingMore||(t.readingMore=!0,process.nextTick($8,e,t))}function $8(e,t){for(;!t.reading&&!t.ended&&(t.length1&&rv(i.pipes,e)!==-1)&&!p&&(me("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}function b(C){me("onerror",C),A(),e.removeListener("error",b),Km(e,"error")===0&&ps(e,C)}G8(e,"error",b);function S(){e.removeListener("finish",w),A()}e.once("close",S);function w(){me("onfinish"),e.removeListener("close",S),A()}e.once("finish",w);function A(){me("unpipe"),r.unpipe(e)}return e.emit("pipe",r),i.flowing||(me("pipe resume"),r.resume()),e};function Y8(e){return function(){var r=e._readableState;me("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&Km(e,"data")&&(r.flowing=!0,Pf(e))}}be.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var i=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var u=0;u0,i.flowing!==!1&&this.resume()):e==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,me("on readable",i.length,i.reading),i.length?sa(this):i.reading||process.nextTick(V8,this)),r};be.prototype.addListener=be.prototype.on;be.prototype.removeListener=function(e,t){var r=hs.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(ev,this),r};be.prototype.removeAllListeners=function(e){var t=hs.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(ev,this),t};function ev(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function V8(e){me("readable nexttick read 0"),e.read(0)}be.prototype.resume=function(){var e=this._readableState;return e.flowing||(me("resume"),e.flowing=!e.readableListening,K8(this,e)),e.paused=!1,this};function K8(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(z8,e,t))}function z8(e,t){me("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),Pf(e),t.flowing&&!t.reading&&e.read(0)}be.prototype.pause=function(){return me("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(me("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Pf(e){var t=e._readableState;for(me("flow",t.flowing);t.flowing&&e.read()!==null;);}be.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;e.on("end",function(){if(me("wrapped end"),r.decoder&&!r.ended){var l=r.decoder.end();l&&l.length&&t.push(l)}t.push(null)}),e.on("data",function(l){if(me("wrapped data"),r.decoder&&(l=r.decoder.write(l)),!(r.objectMode&&l==null)&&!(!r.objectMode&&(!l||!l.length))){var f=t.push(l);f||(i=!0,e.pause())}});for(var o in e)this[o]===void 0&&typeof e[o]=="function"&&(this[o]=function(f){return function(){return e[f].apply(e,arguments)}}(o));for(var u=0;u=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}function Cf(e){var t=e._readableState;me("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(J8,t,e))}function J8(e,t){if(me("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}typeof Symbol=="function"&&(be.from=function(e,t){return Ef===void 0&&(Ef=Vm()),Ef(be,e,t)});function rv(e,t){for(var r=0,i=e.length;r{"use strict";sv.exports=Cr;var oa=Zr().codes,X8=oa.ERR_METHOD_NOT_IMPLEMENTED,Z8=oa.ERR_MULTIPLE_CALLBACK,Q8=oa.ERR_TRANSFORM_ALREADY_TRANSFORMING,eN=oa.ERR_TRANSFORM_WITH_LENGTH_0,aa=xn();An()(Cr,aa);function tN(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new Z8);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length{"use strict";av.exports=ds;var ov=Of();An()(ds,ov);function ds(e){if(!(this instanceof ds))return new ds(e);ov.call(this,e)}ds.prototype._transform=function(e,t,r){r(null,e)}});var pv=_((nY,hv)=>{"use strict";var Rf;function nN(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var lv=Zr().codes,iN=lv.ERR_MISSING_ARGS,sN=lv.ERR_STREAM_DESTROYED;function fv(e){if(e)throw e}function oN(e){return e.setHeader&&typeof e.abort=="function"}function aN(e,t,r,i){i=nN(i);var o=!1;e.on("close",function(){o=!0}),Rf===void 0&&(Rf=ea()),Rf(e,{readable:t,writable:r},function(l){if(l)return i(l);o=!0,i()});var u=!1;return function(l){if(!o&&!u){if(u=!0,oN(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();i(l||new sN("pipe"))}}}function cv(e){e()}function uN(e,t){return e.pipe(t)}function lN(e){return!e.length||typeof e[e.length-1]!="function"?fv:e.pop()}function fN(){for(var e=arguments.length,t=new Array(e),r=0;r0;return aN(l,h,p,function(g){o||(o=g),g&&u.forEach(cv),!h&&(u.forEach(cv),i(o))})});return t.reduce(uN)}hv.exports=fN});var vs=_((Ut,ms)=>{var gs=U("stream");process.env.READABLE_STREAM==="disable"&&gs?(ms.exports=gs.Readable,Object.assign(ms.exports,gs),ms.exports.Stream=gs):(Ut=ms.exports=df(),Ut.Stream=gs||Ut,Ut.Readable=Ut,Ut.Writable=cf(),Ut.Duplex=xn(),Ut.Transform=Of(),Ut.PassThrough=uv(),Ut.finished=ea(),Ut.pipeline=pv())});var vv=_((iY,mv)=>{"use strict";var{Transform:cN}=vs(),{StringDecoder:hN}=U("string_decoder"),nn=Symbol("last"),ua=Symbol("decoder");function pN(e,t,r){var i;if(this.overflow){var o=this[ua].write(e);if(i=o.split(this.matcher),i.length===1)return r();i.shift(),this.overflow=!1}else this[nn]+=this[ua].write(e),i=this[nn].split(this.matcher);this[nn]=i.pop();for(var u=0;uthis.maxLength,this.overflow&&!this.skipOverflow)return r(new Error("maximum buffer reached"));r()}function dN(e){if(this[nn]+=this[ua].end(),this[nn])try{dv(this,this.mapper(this[nn]))}catch(t){return e(t)}e()}function dv(e,t){t!==void 0&&e.push(t)}function gv(e){return e}function gN(e,t,r){switch(e=e||/\r?\n/,t=t||gv,r=r||{},arguments.length){case 1:typeof e=="function"?(t=e,e=/\r?\n/):typeof e=="object"&&!(e instanceof RegExp)&&(r=e,e=/\r?\n/);break;case 2:typeof e=="function"?(r=t,t=e,e=/\r?\n/):typeof t=="object"&&(r=t,t=gv)}r=Object.assign({},r),r.transform=pN,r.flush=dN,r.readableObjectMode=!0;let i=new cN(r);return i[nn]="",i[ua]=new hN("utf8"),i.matcher=e,i.mapper=t,i.maxLength=r.maxLength,i.skipOverflow=r.skipOverflow,i.overflow=!1,i}mv.exports=gN});var Tf=_((sY,yv)=>{var mN=typeof global=="object"&&global&&global.Object===Object&&global;yv.exports=mN});var fr=_((oY,_v)=>{var vN=Tf(),yN=typeof self=="object"&&self&&self.Object===Object&&self,_N=vN||yN||Function("return this")();_v.exports=_N});var ys=_((aY,bv)=>{var bN=fr(),wN=bN.Symbol;bv.exports=wN});var Lv=_((uY,Ev)=>{var wv=ys(),Sv=Object.prototype,SN=Sv.hasOwnProperty,EN=Sv.toString,_s=wv?wv.toStringTag:void 0;function LN(e){var t=SN.call(e,_s),r=e[_s];try{e[_s]=void 0;var i=!0}catch(u){}var o=EN.call(e);return i&&(t?e[_s]=r:delete e[_s]),o}Ev.exports=LN});var xv=_((lY,Av)=>{var AN=Object.prototype,xN=AN.toString;function PN(e){return xN.call(e)}Av.exports=PN});var sn=_((fY,Ov)=>{var Pv=ys(),CN=Lv(),ON=xv(),RN="[object Null]",TN="[object Undefined]",Cv=Pv?Pv.toStringTag:void 0;function IN(e){return e==null?e===void 0?TN:RN:Cv&&Cv in Object(e)?CN(e):ON(e)}Ov.exports=IN});var di=_((cY,Rv)=>{function NN(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}Rv.exports=NN});var If=_((hY,Tv)=>{var DN=sn(),MN=di(),qN="[object AsyncFunction]",kN="[object Function]",FN="[object GeneratorFunction]",BN="[object Proxy]";function UN(e){if(!MN(e))return!1;var t=DN(e);return t==kN||t==FN||t==qN||t==BN}Tv.exports=UN});var Nv=_((pY,Iv)=>{var GN=fr(),jN=GN["__core-js_shared__"];Iv.exports=jN});var qv=_((dY,Mv)=>{var Nf=Nv(),Dv=function(){var e=/[^.]+$/.exec(Nf&&Nf.keys&&Nf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function HN(e){return!!Dv&&Dv in e}Mv.exports=HN});var Df=_((gY,kv)=>{var WN=Function.prototype,$N=WN.toString;function YN(e){if(e!=null){try{return $N.call(e)}catch(t){}try{return e+""}catch(t){}}return""}kv.exports=YN});var Bv=_((mY,Fv)=>{var VN=If(),KN=qv(),zN=di(),JN=Df(),XN=/[\\^$.*+?()[\]{}|]/g,ZN=/^\[object .+?Constructor\]$/,QN=Function.prototype,eD=Object.prototype,tD=QN.toString,rD=eD.hasOwnProperty,nD=RegExp("^"+tD.call(rD).replace(XN,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function iD(e){if(!zN(e)||KN(e))return!1;var t=VN(e)?nD:ZN;return t.test(JN(e))}Fv.exports=iD});var Gv=_((vY,Uv)=>{function sD(e,t){return e==null?void 0:e[t]}Uv.exports=sD});var on=_((yY,jv)=>{var oD=Bv(),aD=Gv();function uD(e,t){var r=aD(e,t);return oD(r)?r:void 0}jv.exports=uD});var Mf=_((_Y,Hv)=>{var lD=on(),fD=function(){try{var e=lD(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();Hv.exports=fD});var qf=_((bY,$v)=>{var Wv=Mf();function cD(e,t,r){t=="__proto__"&&Wv?Wv(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}$v.exports=cD});var gi=_((wY,Yv)=>{function hD(e,t){return e===t||e!==e&&t!==t}Yv.exports=hD});var Kv=_((SY,Vv)=>{var pD=qf(),dD=gi(),gD=Object.prototype,mD=gD.hasOwnProperty;function vD(e,t,r){var i=e[t];(!(mD.call(e,t)&&dD(i,r))||r===void 0&&!(t in e))&&pD(e,t,r)}Vv.exports=vD});var Jv=_((EY,zv)=>{var yD=Kv(),_D=qf();function bD(e,t,r,i){var o=!r;r||(r={});for(var u=-1,l=t.length;++u{function wD(e){return e}Xv.exports=wD});var Ff=_((AY,Zv)=>{function SD(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}Zv.exports=SD});var t1=_((xY,e1)=>{var ED=Ff(),Qv=Math.max;function LD(e,t,r){return t=Qv(t===void 0?e.length-1:t,0),function(){for(var i=arguments,o=-1,u=Qv(i.length-t,0),l=Array(u);++o{function AD(e){return function(){return e}}r1.exports=AD});var o1=_((CY,s1)=>{var xD=n1(),i1=Mf(),PD=kf(),CD=i1?function(e,t){return i1(e,"toString",{configurable:!0,enumerable:!1,value:xD(t),writable:!0})}:PD;s1.exports=CD});var u1=_((OY,a1)=>{var OD=800,RD=16,TD=Date.now;function ID(e){var t=0,r=0;return function(){var i=TD(),o=RD-(i-r);if(r=i,o>0){if(++t>=OD)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}a1.exports=ID});var f1=_((RY,l1)=>{var ND=o1(),DD=u1(),MD=DD(ND);l1.exports=MD});var Bf=_((TY,c1)=>{var qD=kf(),kD=t1(),FD=f1();function BD(e,t){return FD(kD(e,t,qD),e+"")}c1.exports=BD});var Uf=_((IY,h1)=>{var UD=9007199254740991;function GD(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=UD}h1.exports=GD});var la=_((NY,p1)=>{var jD=If(),HD=Uf();function WD(e){return e!=null&&HD(e.length)&&!jD(e)}p1.exports=WD});var Gf=_((DY,d1)=>{var $D=9007199254740991,YD=/^(?:0|[1-9]\d*)$/;function VD(e,t){var r=typeof e;return t=t==null?$D:t,!!t&&(r=="number"||r!="symbol"&&YD.test(e))&&e>-1&&e%1==0&&e{var KD=gi(),zD=la(),JD=Gf(),XD=di();function ZD(e,t,r){if(!XD(r))return!1;var i=typeof t;return(i=="number"?zD(r)&&JD(t,r.length):i=="string"&&t in r)?KD(r[t],e):!1}g1.exports=ZD});var v1=_((qY,m1)=>{var QD=Bf(),e5=jf();function t5(e){return QD(function(t,r){var i=-1,o=r.length,u=o>1?r[o-1]:void 0,l=o>2?r[2]:void 0;for(u=e.length>3&&typeof u=="function"?(o--,u):void 0,l&&e5(r[0],r[1],l)&&(u=o<3?void 0:u,o=1),t=Object(t);++i{function r5(e,t){for(var r=-1,i=Array(e);++r{function n5(e){return e!=null&&typeof e=="object"}b1.exports=n5});var S1=_((BY,w1)=>{var i5=sn(),s5=an(),o5="[object Arguments]";function a5(e){return s5(e)&&i5(e)==o5}w1.exports=a5});var x1=_((UY,A1)=>{var E1=S1(),u5=an(),L1=Object.prototype,l5=L1.hasOwnProperty,f5=L1.propertyIsEnumerable,c5=E1(function(){return arguments}())?E1:function(e){return u5(e)&&l5.call(e,"callee")&&!f5.call(e,"callee")};A1.exports=c5});var bs=_((GY,P1)=>{var h5=Array.isArray;P1.exports=h5});var O1=_((jY,C1)=>{function p5(){return!1}C1.exports=p5});var Hf=_((ws,mi)=>{var d5=fr(),g5=O1(),R1=typeof ws=="object"&&ws&&!ws.nodeType&&ws,T1=R1&&typeof mi=="object"&&mi&&!mi.nodeType&&mi,m5=T1&&T1.exports===R1,I1=m5?d5.Buffer:void 0,v5=I1?I1.isBuffer:void 0,y5=v5||g5;mi.exports=y5});var D1=_((HY,N1)=>{var _5=sn(),b5=Uf(),w5=an(),S5="[object Arguments]",E5="[object Array]",L5="[object Boolean]",A5="[object Date]",x5="[object Error]",P5="[object Function]",C5="[object Map]",O5="[object Number]",R5="[object Object]",T5="[object RegExp]",I5="[object Set]",N5="[object String]",D5="[object WeakMap]",M5="[object ArrayBuffer]",q5="[object DataView]",k5="[object Float32Array]",F5="[object Float64Array]",B5="[object Int8Array]",U5="[object Int16Array]",G5="[object Int32Array]",j5="[object Uint8Array]",H5="[object Uint8ClampedArray]",W5="[object Uint16Array]",$5="[object Uint32Array]",Re={};Re[k5]=Re[F5]=Re[B5]=Re[U5]=Re[G5]=Re[j5]=Re[H5]=Re[W5]=Re[$5]=!0;Re[S5]=Re[E5]=Re[M5]=Re[L5]=Re[q5]=Re[A5]=Re[x5]=Re[P5]=Re[C5]=Re[O5]=Re[R5]=Re[T5]=Re[I5]=Re[N5]=Re[D5]=!1;function Y5(e){return w5(e)&&b5(e.length)&&!!Re[_5(e)]}N1.exports=Y5});var q1=_((WY,M1)=>{function V5(e){return function(t){return e(t)}}M1.exports=V5});var F1=_((Es,vi)=>{var K5=Tf(),k1=typeof Es=="object"&&Es&&!Es.nodeType&&Es,Ss=k1&&typeof vi=="object"&&vi&&!vi.nodeType&&vi,z5=Ss&&Ss.exports===k1,Wf=z5&&K5.process,J5=function(){try{var e=Ss&&Ss.require&&Ss.require("util").types;return e||Wf&&Wf.binding&&Wf.binding("util")}catch(t){}}();vi.exports=J5});var $f=_(($Y,G1)=>{var X5=D1(),Z5=q1(),B1=F1(),U1=B1&&B1.isTypedArray,Q5=U1?Z5(U1):X5;G1.exports=Q5});var Yf=_((YY,j1)=>{var eM=_1(),tM=x1(),rM=bs(),nM=Hf(),iM=Gf(),sM=$f(),oM=Object.prototype,aM=oM.hasOwnProperty;function uM(e,t){var r=rM(e),i=!r&&tM(e),o=!r&&!i&&nM(e),u=!r&&!i&&!o&&sM(e),l=r||i||o||u,f=l?eM(e.length,String):[],h=f.length;for(var p in e)(t||aM.call(e,p))&&!(l&&(p=="length"||o&&(p=="offset"||p=="parent")||u&&(p=="buffer"||p=="byteLength"||p=="byteOffset")||iM(p,h)))&&f.push(p);return f}j1.exports=uM});var Vf=_((VY,H1)=>{var lM=Object.prototype;function fM(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||lM;return e===r}H1.exports=fM});var $1=_((KY,W1)=>{function cM(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}W1.exports=cM});var V1=_((zY,Y1)=>{var hM=di(),pM=Vf(),dM=$1(),gM=Object.prototype,mM=gM.hasOwnProperty;function vM(e){if(!hM(e))return dM(e);var t=pM(e),r=[];for(var i in e)i=="constructor"&&(t||!mM.call(e,i))||r.push(i);return r}Y1.exports=vM});var z1=_((JY,K1)=>{var yM=Yf(),_M=V1(),bM=la();function wM(e){return bM(e)?yM(e,!0):_M(e)}K1.exports=wM});var X1=_((XY,J1)=>{var SM=Jv(),EM=v1(),LM=z1(),AM=EM(function(e,t,r,i){SM(t,LM(t),e,i)});J1.exports=AM});var Kf=_((ZY,Z1)=>{function xM(e,t){return function(r){return e(t(r))}}Z1.exports=xM});var ey=_((QY,Q1)=>{var PM=Kf(),CM=PM(Object.getPrototypeOf,Object);Q1.exports=CM});var ny=_((eV,ry)=>{var OM=sn(),RM=ey(),TM=an(),IM="[object Object]",NM=Function.prototype,DM=Object.prototype,ty=NM.toString,MM=DM.hasOwnProperty,qM=ty.call(Object);function kM(e){if(!TM(e)||OM(e)!=IM)return!1;var t=RM(e);if(t===null)return!0;var r=MM.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ty.call(r)==qM}ry.exports=kM});var zf=_((tV,iy)=>{var FM=sn(),BM=an(),UM=ny(),GM="[object DOMException]",jM="[object Error]";function HM(e){if(!BM(e))return!1;var t=FM(e);return t==jM||t==GM||typeof e.message=="string"&&typeof e.name=="string"&&!UM(e)}iy.exports=HM});var oy=_((rV,sy)=>{var WM=Ff(),$M=Bf(),YM=zf(),VM=$M(function(e,t){try{return WM(e,void 0,t)}catch(r){return YM(r)?r:new Error(r)}});sy.exports=VM});var Jf=_((nV,ay)=>{function KM(e,t){for(var r=-1,i=e==null?0:e.length,o=Array(i);++r{var zM=Jf();function JM(e,t){return zM(t,function(r){return e[r]})}uy.exports=JM});var hy=_((sV,cy)=>{var XM=gi(),fy=Object.prototype,ZM=fy.hasOwnProperty;function QM(e,t,r,i){return e===void 0||XM(e,fy[r])&&!ZM.call(i,r)?t:e}cy.exports=QM});var dy=_((oV,py)=>{var e6={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"};function t6(e){return"\\"+e6[e]}py.exports=t6});var my=_((aV,gy)=>{var r6=Kf(),n6=r6(Object.keys,Object);gy.exports=n6});var yy=_((uV,vy)=>{var i6=Vf(),s6=my(),o6=Object.prototype,a6=o6.hasOwnProperty;function u6(e){if(!i6(e))return s6(e);var t=[];for(var r in Object(e))a6.call(e,r)&&r!="constructor"&&t.push(r);return t}vy.exports=u6});var fa=_((lV,_y)=>{var l6=Yf(),f6=yy(),c6=la();function h6(e){return c6(e)?l6(e):f6(e)}_y.exports=h6});var Xf=_((fV,by)=>{var p6=/<%=([\s\S]+?)%>/g;by.exports=p6});var Sy=_((cV,wy)=>{function d6(e){return function(t){return e==null?void 0:e[t]}}wy.exports=d6});var Ly=_((hV,Ey)=>{var g6=Sy(),m6={"&":"&","<":"<",">":">",'"':""","'":"'"},v6=g6(m6);Ey.exports=v6});var xy=_((pV,Ay)=>{var y6=sn(),_6=an(),b6="[object Symbol]";function w6(e){return typeof e=="symbol"||_6(e)&&y6(e)==b6}Ay.exports=w6});var Iy=_((dV,Ty)=>{var Py=ys(),S6=Jf(),E6=bs(),L6=xy(),A6=1/0,Cy=Py?Py.prototype:void 0,Oy=Cy?Cy.toString:void 0;function Ry(e){if(typeof e=="string")return e;if(E6(e))return S6(e,Ry)+"";if(L6(e))return Oy?Oy.call(e):"";var t=e+"";return t=="0"&&1/e==-A6?"-0":t}Ty.exports=Ry});var Zf=_((gV,Ny)=>{var x6=Iy();function P6(e){return e==null?"":x6(e)}Ny.exports=P6});var qy=_((mV,My)=>{var C6=Ly(),O6=Zf(),Dy=/[&<>"']/g,R6=RegExp(Dy.source);function T6(e){return e=O6(e),e&&R6.test(e)?e.replace(Dy,C6):e}My.exports=T6});var Fy=_((vV,ky)=>{var I6=/<%-([\s\S]+?)%>/g;ky.exports=I6});var Uy=_((yV,By)=>{var N6=/<%([\s\S]+?)%>/g;By.exports=N6});var jy=_((_V,Gy)=>{var D6=qy(),M6=Fy(),q6=Uy(),k6=Xf(),F6={escape:M6,evaluate:q6,interpolate:k6,variable:"",imports:{_:{escape:D6}}};Gy.exports=F6});var Ky=_((bV,Vy)=>{var Hy=X1(),B6=oy(),U6=ly(),Wy=hy(),G6=dy(),j6=zf(),H6=jf(),W6=fa(),$6=Xf(),$y=jy(),Y6=Zf(),V6="Invalid `variable` option passed into `_.template`",K6=/\b__p \+= '';/g,z6=/\b(__p \+=) '' \+/g,J6=/(__e\(.*?\)|\b__t\)) \+\n'';/g,X6=/[()=,{}\[\]\/\s]/,Z6=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ca=/($^)/,Q6=/['\n\r\u2028\u2029\\]/g,eq=Object.prototype,Yy=eq.hasOwnProperty;function tq(e,t,r){var i=$y.imports._.templateSettings||$y;r&&H6(e,t,r)&&(t=void 0),e=Y6(e),t=Hy({},t,i,Wy);var o=Hy({},t.imports,i.imports,Wy),u=W6(o),l=U6(o,u),f,h,p=0,g=t.interpolate||ca,d="__p += '",b=RegExp((t.escape||ca).source+"|"+g.source+"|"+(g===$6?Z6:ca).source+"|"+(t.evaluate||ca).source+"|$","g"),S=Yy.call(t,"sourceURL")?"//# sourceURL="+(t.sourceURL+"").replace(/\s/g," ")+` +`:"";e.replace(b,function(C,O,F,k,I,K){return F||(F=k),d+=e.slice(p,K).replace(Q6,G6),O&&(f=!0,d+=`' + +__e(`+O+`) + +'`),I&&(h=!0,d+=`'; +`+I+`; +__p += '`),F&&(d+=`' + +((__t = (`+F+`)) == null ? '' : __t) + +'`),p=K+C.length,C}),d+=`'; +`;var w=Yy.call(t,"variable")&&t.variable;if(!w)d=`with (obj) { +`+d+` +} +`;else if(X6.test(w))throw new Error(V6);d=(h?d.replace(K6,""):d).replace(z6,"$1").replace(J6,"$1;"),d="function("+(w||"obj")+`) { +`+(w?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(f?", __e = _.escape":"")+(h?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+d+`return __p +}`;var A=B6(function(){return Function(u,S+"return "+d).apply(void 0,l)});if(A.source=d,j6(A))throw A;return A}Vy.exports=tq});var Ls=_((wV,pa)=>{var{Transform:ha}=vs();function rq(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function Qf(e){return(t,r,i)=>(typeof t=="function"&&(i=r,r=t,t={}),typeof r!="function"&&(r=(o,u,l)=>l(null,o)),typeof i!="function"&&(i=null),e(t,r,i))}var nq=Qf((e,t,r)=>{let i=new ha(e);return i._transform=t,r&&(i._flush=r),i}),iq=Qf((e,t,r)=>{function i(o){if(!(this instanceof i))return new i(o);this.options=Object.assign({},e,o),ha.call(this,this.options),this._transform=t,r&&(this._flush=r)}return rq(i,ha),i}),sq=Qf(function(e,t,r){let i=new ha(Object.assign({objectMode:!0,highWaterMark:16},e));return i._transform=t,r&&(i._flush=r),i});pa.exports=nq;pa.exports.ctor=iq;pa.exports.obj=sq});var ec=_((SV,Xy)=>{"use strict";var oq=cm(),aq=U("child_process").execFile,uq=vv(),lq=U("stream"),fq=Ky(),zy=Ls(),Jy="------------------------ >8 ------------------------";function cq(e){return e=e||{},e.cwd=e.cwd||process.cwd(),e}function hq(e){return e=e||{},e.format=e.format||"%B",e.from=e.from||"",e.to=e.to||"HEAD",e}function pq(e){let t=fq("--format=<%= format %>%n"+Jy)(e),r=[e.from,e.to].filter(Boolean).join(".."),i=["log",t,r].concat(oq(e,{excludes:["debug","from","to","format","path"]}));return e.path&&i.push("--",e.path),i}function dq(e,t){let r=new lq.Readable;r._read=function(){};let i=hq(e),o=cq(t),u=pq(i);i.debug&&i.debug(`Your git-log command is: +git `+u.join(" "));let l=!1,f=aq("git",u,{cwd:o.cwd,maxBuffer:Infinity});return f.stdout.pipe(uq(Jy+` +`)).pipe(zy(function(h,p,g){r.push(h),l=!1,g()},function(h){setImmediate(function(){l||(r.push(null),r.emit("close")),h()})})),f.stderr.pipe(zy.obj(function(h){l=!0,r.emit("error",new Error(h)),r.emit("close")})),r}Xy.exports=dq});var Tn=_((yi,As)=>{(function(){var e,t="4.17.21",r=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",u="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",f=500,h="__lodash_placeholder__",p=1,g=2,d=4,b=1,S=2,w=1,A=2,C=4,O=8,F=16,k=32,I=64,K=128,Q=256,Y=512,le=30,B="...",z=800,M=16,W=1,G=2,H=3,$=1/0,te=9007199254740991,re=17976931348623157e292,ue=0/0,ie=4294967295,Ct=ie-1,gr=ie>>>1,Ot=[["ary",K],["bind",w],["bindKey",A],["curry",O],["curryRight",F],["flip",Y],["partial",k],["partialRight",I],["rearg",Q]],Me="[object Arguments]",mr="[object Array]",nr="[object AsyncFunction]",Rt="[object Boolean]",lt="[object Date]",zn="[object DOMException]",vr="[object Error]",ir="[object Function]",Ui="[object GeneratorFunction]",Vt="[object Map]",Gi="[object Number]",vx="[object Null]",yr="[object Object]",Lp="[object Promise]",yx="[object Proxy]",ji="[object RegExp]",Kt="[object Set]",Hi="[object String]",no="[object Symbol]",_x="[object Undefined]",Wi="[object WeakMap]",bx="[object WeakSet]",$i="[object ArrayBuffer]",Jn="[object DataView]",Pu="[object Float32Array]",Cu="[object Float64Array]",Ou="[object Int8Array]",Ru="[object Int16Array]",Tu="[object Int32Array]",Iu="[object Uint8Array]",Nu="[object Uint8ClampedArray]",Du="[object Uint16Array]",Mu="[object Uint32Array]",wx=/\b__p \+= '';/g,Sx=/\b(__p \+=) '' \+/g,Ex=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ap=/&(?:amp|lt|gt|quot|#39);/g,xp=/[&<>"']/g,Lx=RegExp(Ap.source),Ax=RegExp(xp.source),xx=/<%-([\s\S]+?)%>/g,Px=/<%([\s\S]+?)%>/g,Pp=/<%=([\s\S]+?)%>/g,Cx=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ox=/^\w*$/,Rx=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qu=/[\\^$.*+?()[\]{}|]/g,Tx=RegExp(qu.source),ku=/^\s+/,Ix=/\s/,Nx=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Dx=/\{\n\/\* \[wrapped with (.+)\] \*/,Mx=/,? & /,qx=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,kx=/[()=,{}\[\]\/\s]/,Fx=/\\(\\)?/g,Bx=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Cp=/\w*$/,Ux=/^[-+]0x[0-9a-f]+$/i,Gx=/^0b[01]+$/i,jx=/^\[object .+?Constructor\]$/,Hx=/^0o[0-7]+$/i,Wx=/^(?:0|[1-9]\d*)$/,$x=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,io=/($^)/,Yx=/['\n\r\u2028\u2029\\]/g,so="\\ud800-\\udfff",Vx="\\u0300-\\u036f",Kx="\\ufe20-\\ufe2f",zx="\\u20d0-\\u20ff",Op=Vx+Kx+zx,Rp="\\u2700-\\u27bf",Tp="a-z\\xdf-\\xf6\\xf8-\\xff",Jx="\\xac\\xb1\\xd7\\xf7",Xx="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Zx="\\u2000-\\u206f",Qx=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ip="A-Z\\xc0-\\xd6\\xd8-\\xde",Np="\\ufe0e\\ufe0f",Dp=Jx+Xx+Zx+Qx,Fu="['\u2019]",eP="["+so+"]",Mp="["+Dp+"]",oo="["+Op+"]",qp="\\d+",tP="["+Rp+"]",kp="["+Tp+"]",Fp="[^"+so+Dp+qp+Rp+Tp+Ip+"]",Bu="\\ud83c[\\udffb-\\udfff]",rP="(?:"+oo+"|"+Bu+")",Bp="[^"+so+"]",Uu="(?:\\ud83c[\\udde6-\\uddff]){2}",Gu="[\\ud800-\\udbff][\\udc00-\\udfff]",Xn="["+Ip+"]",Up="\\u200d",Gp="(?:"+kp+"|"+Fp+")",nP="(?:"+Xn+"|"+Fp+")",jp="(?:"+Fu+"(?:d|ll|m|re|s|t|ve))?",Hp="(?:"+Fu+"(?:D|LL|M|RE|S|T|VE))?",Wp=rP+"?",$p="["+Np+"]?",iP="(?:"+Up+"(?:"+[Bp,Uu,Gu].join("|")+")"+$p+Wp+")*",sP="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",oP="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Yp=$p+Wp+iP,aP="(?:"+[tP,Uu,Gu].join("|")+")"+Yp,uP="(?:"+[Bp+oo+"?",oo,Uu,Gu,eP].join("|")+")",lP=RegExp(Fu,"g"),fP=RegExp(oo,"g"),ju=RegExp(Bu+"(?="+Bu+")|"+uP+Yp,"g"),cP=RegExp([Xn+"?"+kp+"+"+jp+"(?="+[Mp,Xn,"$"].join("|")+")",nP+"+"+Hp+"(?="+[Mp,Xn+Gp,"$"].join("|")+")",Xn+"?"+Gp+"+"+jp,Xn+"+"+Hp,oP,sP,qp,aP].join("|"),"g"),hP=RegExp("["+Up+so+Op+Np+"]"),pP=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,dP=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],gP=-1,Ce={};Ce[Pu]=Ce[Cu]=Ce[Ou]=Ce[Ru]=Ce[Tu]=Ce[Iu]=Ce[Nu]=Ce[Du]=Ce[Mu]=!0,Ce[Me]=Ce[mr]=Ce[$i]=Ce[Rt]=Ce[Jn]=Ce[lt]=Ce[vr]=Ce[ir]=Ce[Vt]=Ce[Gi]=Ce[yr]=Ce[ji]=Ce[Kt]=Ce[Hi]=Ce[Wi]=!1;var Pe={};Pe[Me]=Pe[mr]=Pe[$i]=Pe[Jn]=Pe[Rt]=Pe[lt]=Pe[Pu]=Pe[Cu]=Pe[Ou]=Pe[Ru]=Pe[Tu]=Pe[Vt]=Pe[Gi]=Pe[yr]=Pe[ji]=Pe[Kt]=Pe[Hi]=Pe[no]=Pe[Iu]=Pe[Nu]=Pe[Du]=Pe[Mu]=!0,Pe[vr]=Pe[ir]=Pe[Wi]=!1;var mP={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},vP={"&":"&","<":"<",">":">",'"':""","'":"'"},yP={"&":"&","<":"<",">":">",""":'"',"'":"'"},_P={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},bP=parseFloat,wP=parseInt,Vp=typeof global=="object"&&global&&global.Object===Object&&global,SP=typeof self=="object"&&self&&self.Object===Object&&self,Ke=Vp||SP||Function("return this")(),Hu=typeof yi=="object"&&yi&&!yi.nodeType&&yi,gn=Hu&&typeof As=="object"&&As&&!As.nodeType&&As,Kp=gn&&gn.exports===Hu,Wu=Kp&&Vp.process,Tt=function(){try{var x=gn&&gn.require&&gn.require("util").types;return x||Wu&&Wu.binding&&Wu.binding("util")}catch(T){}}(),zp=Tt&&Tt.isArrayBuffer,Jp=Tt&&Tt.isDate,Xp=Tt&&Tt.isMap,Zp=Tt&&Tt.isRegExp,Qp=Tt&&Tt.isSet,ed=Tt&&Tt.isTypedArray;function yt(x,T,R){switch(R.length){case 0:return x.call(T);case 1:return x.call(T,R[0]);case 2:return x.call(T,R[0],R[1]);case 3:return x.call(T,R[0],R[1],R[2])}return x.apply(T,R)}function EP(x,T,R,V){for(var fe=-1,Se=x==null?0:x.length;++fe-1}function $u(x,T,R){for(var V=-1,fe=x==null?0:x.length;++V-1;);return R}function ud(x,T){for(var R=x.length;R--&&Zn(T,x[R],0)>-1;);return R}function IP(x,T){for(var R=x.length,V=0;R--;)x[R]===T&&++V;return V}var NP=zu(mP),DP=zu(vP);function MP(x){return"\\"+_P[x]}function qP(x,T){return x==null?e:x[T]}function Qn(x){return hP.test(x)}function kP(x){return pP.test(x)}function FP(x){for(var T,R=[];!(T=x.next()).done;)R.push(T.value);return R}function Qu(x){var T=-1,R=Array(x.size);return x.forEach(function(V,fe){R[++T]=[fe,V]}),R}function ld(x,T){return function(R){return x(T(R))}}function Gr(x,T){for(var R=-1,V=x.length,fe=0,Se=[];++R-1}function AC(n,s){var a=this.__data__,c=Ao(a,n);return c<0?(++this.size,a.push([n,s])):a[c][1]=s,this}_r.prototype.clear=wC,_r.prototype.delete=SC,_r.prototype.get=EC,_r.prototype.has=LC,_r.prototype.set=AC;function br(n){var s=-1,a=n==null?0:n.length;for(this.clear();++s=s?n:s)),n}function Mt(n,s,a,c,m,y){var E,L=s&p,P=s&g,N=s&d;if(a&&(E=m?a(n,c,m,y):a(n)),E!==e)return E;if(!qe(n))return n;var D=ce(n);if(D){if(E=OO(n),!L)return dt(n,E)}else{var q=it(n),j=q==ir||q==Ui;if(Kr(n))return $d(n,L);if(q==yr||q==Me||j&&!m){if(E=P||j?{}:fg(n),!L)return P?yO(n,GC(E,n)):vO(n,wd(E,n))}else{if(!Pe[q])return m?n:{};E=RO(n,q,L)}}y||(y=new Jt);var ee=y.get(n);if(ee)return ee;y.set(n,E),Bg(n)?n.forEach(function(oe){E.add(Mt(oe,s,a,oe,n,y))}):kg(n)&&n.forEach(function(oe,ve){E.set(ve,Mt(oe,s,a,ve,n,y))});var se=N?P?Al:Ll:P?mt:ze,pe=D?e:se(n);return It(pe||n,function(oe,ve){pe&&(ve=oe,oe=n[ve]),Zi(E,ve,Mt(oe,s,a,ve,n,y))}),E}function jC(n){var s=ze(n);return function(a){return Sd(a,n,s)}}function Sd(n,s,a){var c=a.length;if(n==null)return!c;for(n=Ee(n);c--;){var m=a[c],y=s[m],E=n[m];if(E===e&&!(m in n)||!y(E))return!1}return!0}function Ed(n,s,a){if(typeof n!="function")throw new Nt(o);return ss(function(){n.apply(e,a)},s)}function Qi(n,s,a,c){var m=-1,y=ao,E=!0,L=n.length,P=[],N=s.length;if(!L)return P;a&&(s=Ie(s,_t(a))),c?(y=$u,E=!1):s.length>=r&&(y=Yi,E=!1,s=new yn(s));e:for(;++mm?0:m+a),c=c===e||c>m?m:he(c),c<0&&(c+=m),c=a>c?0:Gg(c);a0&&a(L)?s>1?Qe(L,s-1,a,c,m):Ur(m,L):c||(m[m.length]=L)}return m}var ol=Xd(),xd=Xd(!0);function sr(n,s){return n&&ol(n,s,ze)}function al(n,s){return n&&xd(n,s,ze)}function Po(n,s){return Br(s,function(a){return Ar(n[a])})}function bn(n,s){s=Yr(s,n);for(var a=0,c=s.length;n!=null&&as}function $C(n,s){return n!=null&&Ae.call(n,s)}function YC(n,s){return n!=null&&s in Ee(n)}function VC(n,s,a){return n>=nt(s,a)&&n=120&&D.length>=120)?new yn(E&&D):e}D=n[0];var q=-1,j=L[0];e:for(;++q-1;)L!==n&&yo.call(L,P,1),yo.call(n,P,1);return n}function kd(n,s){for(var a=n?s.length:0,c=a-1;a--;){var m=s[a];if(a==c||m!==y){var y=m;Lr(m)?yo.call(n,m,1):vl(n,m)}}return n}function dl(n,s){return n+wo(vd()*(s-n+1))}function oO(n,s,a,c){for(var m=-1,y=Ve(bo((s-n)/(a||1)),0),E=R(y);y--;)E[c?y:++m]=n,n+=a;return E}function gl(n,s){var a="";if(!n||s<1||s>te)return a;do s%2&&(a+=n),s=wo(s/2),s&&(n+=n);while(s);return a}function ge(n,s){return Il(pg(n,s,vt),n+"")}function aO(n){return bd(li(n))}function uO(n,s){var a=li(n);return Fo(a,_n(s,0,a.length))}function rs(n,s,a,c){if(!qe(n))return n;s=Yr(s,n);for(var m=-1,y=s.length,E=y-1,L=n;L!=null&&++mm?0:m+s),a=a>m?m:a,a<0&&(a+=m),m=s>a?0:a-s>>>0,s>>>=0;for(var y=R(m);++c>>1,E=n[y];E!==null&&!wt(E)&&(a?E<=s:E=r){var N=s?null:SO(n);if(N)return lo(N);E=!1,m=Yi,P=new yn}else P=s?[]:L;e:for(;++c=c?n:qt(n,s,a)}var Wd=QP||function(n){return Ke.clearTimeout(n)};function $d(n,s){if(s)return n.slice();var a=n.length,c=hd?hd(a):new n.constructor(a);return n.copy(c),c}function wl(n){var s=new n.constructor(n.byteLength);return new mo(s).set(new mo(n)),s}function pO(n,s){var a=s?wl(n.buffer):n.buffer;return new n.constructor(a,n.byteOffset,n.byteLength)}function dO(n){var s=new n.constructor(n.source,Cp.exec(n));return s.lastIndex=n.lastIndex,s}function gO(n){return Xi?Ee(Xi.call(n)):{}}function Yd(n,s){var a=s?wl(n.buffer):n.buffer;return new n.constructor(a,n.byteOffset,n.length)}function Vd(n,s){if(n!==s){var a=n!==e,c=n===null,m=n===n,y=wt(n),E=s!==e,L=s===null,P=s===s,N=wt(s);if(!L&&!N&&!y&&n>s||y&&E&&P&&!L&&!N||c&&E&&P||!a&&P||!m)return 1;if(!c&&!y&&!N&&n=L)return P;var N=a[c];return P*(N=="desc"?-1:1)}}return n.index-s.index}function Kd(n,s,a,c){for(var m=-1,y=n.length,E=a.length,L=-1,P=s.length,N=Ve(y-E,0),D=R(P+N),q=!c;++L1?a[m-1]:e,E=m>2?a[2]:e;for(y=n.length>3&&typeof y=="function"?(m--,y):e,E&&ct(a[0],a[1],E)&&(y=m<3?e:y,m=1),s=Ee(s);++c-1?m[y?s[E]:E]:e}}function eg(n){return Er(function(s){var a=s.length,c=a,m=Dt.prototype.thru;for(n&&s.reverse();c--;){var y=s[c];if(typeof y!="function")throw new Nt(o);if(m&&!E&&qo(y)=="wrapper")var E=new Dt([],!0)}for(c=E?c:a;++c1&&_e.reverse(),D&&PL))return!1;var N=y.get(n),D=y.get(s);if(N&&D)return N==s&&D==n;var q=-1,j=!0,ee=a&S?new yn:e;for(y.set(n,s),y.set(s,n);++q1?"& ":"")+s[c],s=s.join(a>2?", ":" "),n.replace(Nx,`{ +/* [wrapped with `+s+`] */ +`)}function IO(n){return ce(n)||En(n)||!!(gd&&n&&n[gd])}function Lr(n,s){var a=typeof n;return s=s==null?te:s,!!s&&(a=="number"||a!="symbol"&&Wx.test(n))&&n>-1&&n%1==0&&n0){if(++s>=z)return arguments[0]}else s=0;return n.apply(e,arguments)}}function Fo(n,s){var a=-1,c=n.length,m=c-1;for(s=s===e?c:s;++a1?n[s-1]:e;return a=typeof a=="function"?(n.pop(),a):e,Ag(n,a)});function xg(n){var s=v(n);return s.__chain__=!0,s}function HR(n,s){return s(n),n}function Bo(n,s){return s(n)}var WR=Er(function(n){var s=n.length,a=s?n[0]:0,c=this.__wrapped__,m=function(y){return sl(y,n)};return s>1||this.__actions__.length||!(c instanceof ye)||!Lr(a)?this.thru(m):(c=c.slice(a,+a+(s?1:0)),c.__actions__.push({func:Bo,args:[m],thisArg:e}),new Dt(c,this.__chain__).thru(function(y){return s&&!y.length&&y.push(e),y}))});function $R(){return xg(this)}function YR(){return new Dt(this.value(),this.__chain__)}function VR(){this.__values__===e&&(this.__values__=Ug(this.value()));var n=this.__index__>=this.__values__.length,s=n?e:this.__values__[this.__index__++];return{done:n,value:s}}function KR(){return this}function zR(n){for(var s,a=this;a instanceof Lo;){var c=_g(a);c.__index__=0,c.__values__=e,s?m.__wrapped__=c:s=c;var m=c;a=a.__wrapped__}return m.__wrapped__=n,s}function JR(){var n=this.__wrapped__;if(n instanceof ye){var s=n;return this.__actions__.length&&(s=new ye(this)),s=s.reverse(),s.__actions__.push({func:Bo,args:[Nl],thisArg:e}),new Dt(s,this.__chain__)}return this.thru(Nl)}function XR(){return jd(this.__wrapped__,this.__actions__)}var ZR=To(function(n,s,a){Ae.call(n,a)?++n[a]:wr(n,a,1)});function QR(n,s,a){var c=ce(n)?td:HC;return a&&ct(n,s,a)&&(s=e),c(n,ne(s,3))}function e3(n,s){var a=ce(n)?Br:Ad;return a(n,ne(s,3))}var t3=Qd(bg),r3=Qd(wg);function n3(n,s){return Qe(Uo(n,s),1)}function i3(n,s){return Qe(Uo(n,s),$)}function s3(n,s,a){return a=a===e?1:he(a),Qe(Uo(n,s),a)}function Pg(n,s){var a=ce(n)?It:Wr;return a(n,ne(s,3))}function Cg(n,s){var a=ce(n)?LP:Ld;return a(n,ne(s,3))}var o3=To(function(n,s,a){Ae.call(n,a)?n[a].push(s):wr(n,a,[s])});function a3(n,s,a,c){n=gt(n)?n:li(n),a=a&&!c?he(a):0;var m=n.length;return a<0&&(a=Ve(m+a,0)),$o(n)?a<=m&&n.indexOf(s,a)>-1:!!m&&Zn(n,s,a)>-1}var u3=ge(function(n,s,a){var c=-1,m=typeof s=="function",y=gt(n)?R(n.length):[];return Wr(n,function(E){y[++c]=m?yt(s,E,a):es(E,s,a)}),y}),l3=To(function(n,s,a){wr(n,a,s)});function Uo(n,s){var a=ce(n)?Ie:Td;return a(n,ne(s,3))}function f3(n,s,a,c){return n==null?[]:(ce(s)||(s=s==null?[]:[s]),a=c?e:a,ce(a)||(a=a==null?[]:[a]),Md(n,s,a))}var c3=To(function(n,s,a){n[a?0:1].push(s)},function(){return[[],[]]});function h3(n,s,a){var c=ce(n)?Yu:sd,m=arguments.length<3;return c(n,ne(s,4),a,m,Wr)}function p3(n,s,a){var c=ce(n)?AP:sd,m=arguments.length<3;return c(n,ne(s,4),a,m,Ld)}function d3(n,s){var a=ce(n)?Br:Ad;return a(n,Ho(ne(s,3)))}function g3(n){var s=ce(n)?bd:aO;return s(n)}function m3(n,s,a){(a?ct(n,s,a):s===e)?s=1:s=he(s);var c=ce(n)?FC:uO;return c(n,s)}function v3(n){var s=ce(n)?BC:fO;return s(n)}function y3(n){if(n==null)return 0;if(gt(n))return $o(n)?ei(n):n.length;var s=it(n);return s==Vt||s==Kt?n.size:cl(n).length}function _3(n,s,a){var c=ce(n)?Vu:cO;return a&&ct(n,s,a)&&(s=e),c(n,ne(s,3))}var b3=ge(function(n,s){if(n==null)return[];var a=s.length;return a>1&&ct(n,s[0],s[1])?s=[]:a>2&&ct(s[0],s[1],s[2])&&(s=[s[0]]),Md(n,Qe(s,1),[])}),Go=eC||function(){return Ke.Date.now()};function w3(n,s){if(typeof s!="function")throw new Nt(o);return n=he(n),function(){if(--n<1)return s.apply(this,arguments)}}function Og(n,s,a){return s=a?e:s,s=n&&s==null?n.length:s,Sr(n,K,e,e,e,e,s)}function Rg(n,s){var a;if(typeof s!="function")throw new Nt(o);return n=he(n),function(){return--n>0&&(a=s.apply(this,arguments)),n<=1&&(s=e),a}}var Ml=ge(function(n,s,a){var c=w;if(a.length){var m=Gr(a,ai(Ml));c|=k}return Sr(n,c,s,a,m)}),Tg=ge(function(n,s,a){var c=w|A;if(a.length){var m=Gr(a,ai(Tg));c|=k}return Sr(s,c,n,a,m)});function Ig(n,s,a){s=a?e:s;var c=Sr(n,O,e,e,e,e,e,s);return c.placeholder=Ig.placeholder,c}function Ng(n,s,a){s=a?e:s;var c=Sr(n,F,e,e,e,e,e,s);return c.placeholder=Ng.placeholder,c}function Dg(n,s,a){var c,m,y,E,L,P,N=0,D=!1,q=!1,j=!0;if(typeof n!="function")throw new Nt(o);s=Ft(s)||0,qe(a)&&(D=!!a.leading,q="maxWait"in a,y=q?Ve(Ft(a.maxWait)||0,s):y,j="trailing"in a?!!a.trailing:j);function ee(je){var Zt=c,Pr=m;return c=m=e,N=je,E=n.apply(Pr,Zt),E}function se(je){return N=je,L=ss(ve,s),D?ee(je):E}function pe(je){var Zt=je-P,Pr=je-N,Qg=s-Zt;return q?nt(Qg,y-Pr):Qg}function oe(je){var Zt=je-P,Pr=je-N;return P===e||Zt>=s||Zt<0||q&&Pr>=y}function ve(){var je=Go();if(oe(je))return _e(je);L=ss(ve,pe(je))}function _e(je){return L=e,j&&c?ee(je):(c=m=e,E)}function St(){L!==e&&Wd(L),N=0,c=P=m=L=e}function ht(){return L===e?E:_e(Go())}function Et(){var je=Go(),Zt=oe(je);if(c=arguments,m=this,P=je,Zt){if(L===e)return se(P);if(q)return Wd(L),L=ss(ve,s),ee(P)}return L===e&&(L=ss(ve,s)),E}return Et.cancel=St,Et.flush=ht,Et}var S3=ge(function(n,s){return Ed(n,1,s)}),E3=ge(function(n,s,a){return Ed(n,Ft(s)||0,a)});function L3(n){return Sr(n,Y)}function jo(n,s){if(typeof n!="function"||s!=null&&typeof s!="function")throw new Nt(o);var a=function(){var c=arguments,m=s?s.apply(this,c):c[0],y=a.cache;if(y.has(m))return y.get(m);var E=n.apply(this,c);return a.cache=y.set(m,E)||y,E};return a.cache=new(jo.Cache||br),a}jo.Cache=br;function Ho(n){if(typeof n!="function")throw new Nt(o);return function(){var s=arguments;switch(s.length){case 0:return!n.call(this);case 1:return!n.call(this,s[0]);case 2:return!n.call(this,s[0],s[1]);case 3:return!n.call(this,s[0],s[1],s[2])}return!n.apply(this,s)}}function A3(n){return Rg(2,n)}var x3=hO(function(n,s){s=s.length==1&&ce(s[0])?Ie(s[0],_t(ne())):Ie(Qe(s,1),_t(ne()));var a=s.length;return ge(function(c){for(var m=-1,y=nt(c.length,a);++m=s}),En=Cd(function(){return arguments}())?Cd:function(n){return Fe(n)&&Ae.call(n,"callee")&&!dd.call(n,"callee")},ce=R.isArray,G3=zp?_t(zp):zC;function gt(n){return n!=null&&Wo(n.length)&&!Ar(n)}function Ge(n){return Fe(n)&>(n)}function j3(n){return n===!0||n===!1||Fe(n)&&ft(n)==Rt}var Kr=rC||Vl,H3=Jp?_t(Jp):JC;function W3(n){return Fe(n)&&n.nodeType===1&&!os(n)}function $3(n){if(n==null)return!0;if(gt(n)&&(ce(n)||typeof n=="string"||typeof n.splice=="function"||Kr(n)||ui(n)||En(n)))return!n.length;var s=it(n);if(s==Vt||s==Kt)return!n.size;if(is(n))return!cl(n).length;for(var a in n)if(Ae.call(n,a))return!1;return!0}function Y3(n,s){return ts(n,s)}function V3(n,s,a){a=typeof a=="function"?a:e;var c=a?a(n,s):e;return c===e?ts(n,s,e,a):!!c}function kl(n){if(!Fe(n))return!1;var s=ft(n);return s==vr||s==zn||typeof n.message=="string"&&typeof n.name=="string"&&!os(n)}function K3(n){return typeof n=="number"&&md(n)}function Ar(n){if(!qe(n))return!1;var s=ft(n);return s==ir||s==Ui||s==nr||s==yx}function qg(n){return typeof n=="number"&&n==he(n)}function Wo(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=te}function qe(n){var s=typeof n;return n!=null&&(s=="object"||s=="function")}function Fe(n){return n!=null&&typeof n=="object"}var kg=Xp?_t(Xp):ZC;function z3(n,s){return n===s||fl(n,s,Pl(s))}function J3(n,s,a){return a=typeof a=="function"?a:e,fl(n,s,Pl(s),a)}function X3(n){return Fg(n)&&n!=+n}function Z3(n){if(MO(n))throw new fe(i);return Od(n)}function Q3(n){return n===null}function eT(n){return n==null}function Fg(n){return typeof n=="number"||Fe(n)&&ft(n)==Gi}function os(n){if(!Fe(n)||ft(n)!=yr)return!1;var s=vo(n);if(s===null)return!0;var a=Ae.call(s,"constructor")&&s.constructor;return typeof a=="function"&&a instanceof a&&ho.call(a)==JP}var Fl=Zp?_t(Zp):QC;function tT(n){return qg(n)&&n>=-te&&n<=te}var Bg=Qp?_t(Qp):eO;function $o(n){return typeof n=="string"||!ce(n)&&Fe(n)&&ft(n)==Hi}function wt(n){return typeof n=="symbol"||Fe(n)&&ft(n)==no}var ui=ed?_t(ed):tO;function rT(n){return n===e}function nT(n){return Fe(n)&&it(n)==Wi}function iT(n){return Fe(n)&&ft(n)==bx}var sT=Mo(hl),oT=Mo(function(n,s){return n<=s});function Ug(n){if(!n)return[];if(gt(n))return $o(n)?zt(n):dt(n);if(Vi&&n[Vi])return FP(n[Vi]());var s=it(n),a=s==Vt?Qu:s==Kt?lo:li;return a(n)}function xr(n){if(!n)return n===0?n:0;if(n=Ft(n),n===$||n===-$){var s=n<0?-1:1;return s*re}return n===n?n:0}function he(n){var s=xr(n),a=s%1;return s===s?a?s-a:s:0}function Gg(n){return n?_n(he(n),0,ie):0}function Ft(n){if(typeof n=="number")return n;if(wt(n))return ue;if(qe(n)){var s=typeof n.valueOf=="function"?n.valueOf():n;n=qe(s)?s+"":s}if(typeof n!="string")return n===0?n:+n;n=od(n);var a=Gx.test(n);return a||Hx.test(n)?wP(n.slice(2),a?2:8):Ux.test(n)?ue:+n}function jg(n){return or(n,mt(n))}function aT(n){return n?_n(he(n),-te,te):n===0?n:0}function Le(n){return n==null?"":bt(n)}var uT=si(function(n,s){if(is(s)||gt(s)){or(s,ze(s),n);return}for(var a in s)Ae.call(s,a)&&Zi(n,a,s[a])}),Hg=si(function(n,s){or(s,mt(s),n)}),Yo=si(function(n,s,a,c){or(s,mt(s),n,c)}),lT=si(function(n,s,a,c){or(s,ze(s),n,c)}),fT=Er(sl);function cT(n,s){var a=ii(n);return s==null?a:wd(a,s)}var hT=ge(function(n,s){n=Ee(n);var a=-1,c=s.length,m=c>2?s[2]:e;for(m&&ct(s[0],s[1],m)&&(c=1);++a1),y}),or(n,Al(n),a),c&&(a=Mt(a,p|g|d,EO));for(var m=s.length;m--;)vl(a,s[m]);return a});function RT(n,s){return $g(n,Ho(ne(s)))}var TT=Er(function(n,s){return n==null?{}:iO(n,s)});function $g(n,s){if(n==null)return{};var a=Ie(Al(n),function(c){return[c]});return s=ne(s),qd(n,a,function(c,m){return s(c,m[0])})}function IT(n,s,a){s=Yr(s,n);var c=-1,m=s.length;for(m||(m=1,n=e);++cs){var c=n;n=s,s=c}if(a||n%1||s%1){var m=vd();return nt(n+m*(s-n+bP("1e-"+((m+"").length-1))),s)}return dl(n,s)}var HT=oi(function(n,s,a){return s=s.toLowerCase(),n+(a?Kg(s):s)});function Kg(n){return Gl(Le(n).toLowerCase())}function zg(n){return n=Le(n),n&&n.replace($x,NP).replace(fP,"")}function WT(n,s,a){n=Le(n),s=bt(s);var c=n.length;a=a===e?c:_n(he(a),0,c);var m=a;return a-=s.length,a>=0&&n.slice(a,m)==s}function $T(n){return n=Le(n),n&&Ax.test(n)?n.replace(xp,DP):n}function YT(n){return n=Le(n),n&&Tx.test(n)?n.replace(qu,"\\$&"):n}var VT=oi(function(n,s,a){return n+(a?"-":"")+s.toLowerCase()}),KT=oi(function(n,s,a){return n+(a?" ":"")+s.toLowerCase()}),zT=Zd("toLowerCase");function JT(n,s,a){n=Le(n),s=he(s);var c=s?ei(n):0;if(!s||c>=s)return n;var m=(s-c)/2;return Do(wo(m),a)+n+Do(bo(m),a)}function XT(n,s,a){n=Le(n),s=he(s);var c=s?ei(n):0;return s&&c>>0,a?(n=Le(n),n&&(typeof s=="string"||s!=null&&!Fl(s))&&(s=bt(s),!s&&Qn(n))?Vr(zt(n),0,a):n.split(s,a)):[]}var i4=oi(function(n,s,a){return n+(a?" ":"")+Gl(s)});function s4(n,s,a){return n=Le(n),a=a==null?0:_n(he(a),0,n.length),s=bt(s),n.slice(a,a+s.length)==s}function o4(n,s,a){var c=v.templateSettings;a&&ct(n,s,a)&&(s=e),n=Le(n),s=Yo({},s,c,sg);var m=Yo({},s.imports,c.imports,sg),y=ze(m),E=Zu(m,y),L,P,N=0,D=s.interpolate||io,q="__p += '",j=el((s.escape||io).source+"|"+D.source+"|"+(D===Pp?Bx:io).source+"|"+(s.evaluate||io).source+"|$","g"),ee="//# sourceURL="+(Ae.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++gP+"]")+` +`;n.replace(j,function(oe,ve,_e,St,ht,Et){return _e||(_e=St),q+=n.slice(N,Et).replace(Yx,MP),ve&&(L=!0,q+=`' + +__e(`+ve+`) + +'`),ht&&(P=!0,q+=`'; +`+ht+`; +__p += '`),_e&&(q+=`' + +((__t = (`+_e+`)) == null ? '' : __t) + +'`),N=Et+oe.length,oe}),q+=`'; +`;var se=Ae.call(s,"variable")&&s.variable;if(!se)q=`with (obj) { +`+q+` +} +`;else if(kx.test(se))throw new fe(u);q=(P?q.replace(wx,""):q).replace(Sx,"$1").replace(Ex,"$1;"),q="function("+(se||"obj")+`) { +`+(se?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(L?", __e = _.escape":"")+(P?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+q+`return __p +}`;var pe=Xg(function(){return Se(y,ee+"return "+q).apply(e,E)});if(pe.source=q,kl(pe))throw pe;return pe}function a4(n){return Le(n).toLowerCase()}function u4(n){return Le(n).toUpperCase()}function l4(n,s,a){if(n=Le(n),n&&(a||s===e))return od(n);if(!n||!(s=bt(s)))return n;var c=zt(n),m=zt(s),y=ad(c,m),E=ud(c,m)+1;return Vr(c,y,E).join("")}function f4(n,s,a){if(n=Le(n),n&&(a||s===e))return n.slice(0,fd(n)+1);if(!n||!(s=bt(s)))return n;var c=zt(n),m=ud(c,zt(s))+1;return Vr(c,0,m).join("")}function c4(n,s,a){if(n=Le(n),n&&(a||s===e))return n.replace(ku,"");if(!n||!(s=bt(s)))return n;var c=zt(n),m=ad(c,zt(s));return Vr(c,m).join("")}function h4(n,s){var a=le,c=B;if(qe(s)){var m="separator"in s?s.separator:m;a="length"in s?he(s.length):a,c="omission"in s?bt(s.omission):c}n=Le(n);var y=n.length;if(Qn(n)){var E=zt(n);y=E.length}if(a>=y)return n;var L=a-ei(c);if(L<1)return c;var P=E?Vr(E,0,L).join(""):n.slice(0,L);if(m===e)return P+c;if(E&&(L+=P.length-L),Fl(m)){if(n.slice(L).search(m)){var N,D=P;for(m.global||(m=el(m.source,Le(Cp.exec(m))+"g")),m.lastIndex=0;N=m.exec(D);)var q=N.index;P=P.slice(0,q===e?L:q)}}else if(n.indexOf(bt(m),L)!=L){var j=P.lastIndexOf(m);j>-1&&(P=P.slice(0,j))}return P+c}function p4(n){return n=Le(n),n&&Lx.test(n)?n.replace(Ap,jP):n}var d4=oi(function(n,s,a){return n+(a?" ":"")+s.toUpperCase()}),Gl=Zd("toUpperCase");function Jg(n,s,a){return n=Le(n),s=a?e:s,s===e?kP(n)?$P(n):CP(n):n.match(s)||[]}var Xg=ge(function(n,s){try{return yt(n,e,s)}catch(a){return kl(a)?a:new fe(a)}}),g4=Er(function(n,s){return It(s,function(a){a=ar(a),wr(n,a,Ml(n[a],n))}),n});function m4(n){var s=n==null?0:n.length,a=ne();return n=s?Ie(n,function(c){if(typeof c[1]!="function")throw new Nt(o);return[a(c[0]),c[1]]}):[],ge(function(c){for(var m=-1;++mte)return[];var a=ie,c=nt(n,ie);s=ne(s),n-=ie;for(var m=Xu(c,s);++a0||s<0)?new ye(a):(n<0?a=a.takeRight(-n):n&&(a=a.drop(n)),s!==e&&(s=he(s),a=s<0?a.dropRight(-s):a.take(s-n)),a)},ye.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},ye.prototype.toArray=function(){return this.take(ie)},sr(ye.prototype,function(n,s){var a=/^(?:filter|find|map|reject)|While$/.test(s),c=/^(?:head|last)$/.test(s),m=v[c?"take"+(s=="last"?"Right":""):s],y=c||/^find/.test(s);!m||(v.prototype[s]=function(){var E=this.__wrapped__,L=c?[1]:arguments,P=E instanceof ye,N=L[0],D=P||ce(E),q=function(ve){var _e=m.apply(v,Ur([ve],L));return c&&j?_e[0]:_e};D&&a&&typeof N=="function"&&N.length!=1&&(P=D=!1);var j=this.__chain__,ee=!!this.__actions__.length,se=y&&!j,pe=P&&!ee;if(!y&&D){E=pe?E:new ye(this);var oe=n.apply(E,L);return oe.__actions__.push({func:Bo,args:[q],thisArg:e}),new Dt(oe,j)}return se&&pe?n.apply(this,L):(oe=this.thru(q),se?c?oe.value()[0]:oe.value():oe)})}),It(["pop","push","shift","sort","splice","unshift"],function(n){var s=fo[n],a=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",c=/^(?:pop|shift)$/.test(n);v.prototype[n]=function(){var m=arguments;if(c&&!this.__chain__){var y=this.value();return s.apply(ce(y)?y:[],m)}return this[a](function(E){return s.apply(ce(E)?E:[],m)})}}),sr(ye.prototype,function(n,s){var a=v[s];if(a){var c=a.name+"";Ae.call(ni,c)||(ni[c]=[]),ni[c].push({name:s,func:a})}}),ni[Io(e,A).name]=[{name:"wrapper",func:e}],ye.prototype.clone=pC,ye.prototype.reverse=dC,ye.prototype.value=gC,v.prototype.at=WR,v.prototype.chain=$R,v.prototype.commit=YR,v.prototype.next=VR,v.prototype.plant=zR,v.prototype.reverse=JR,v.prototype.toJSON=v.prototype.valueOf=v.prototype.value=XR,v.prototype.first=v.prototype.head,Vi&&(v.prototype[Vi]=KR),v},jr=YP();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Ke._=jr,define(function(){return jr})):gn?((gn.exports=jr)._=jr,Hu._=jr):Ke._=jr}).call(yi)});var e_=_((EV,Qy)=>{"use strict";var Lt=Tn(),gq=/()(.+)/gi,mq="# ------------------------ >8 ------------------------";function da(e){let t=e.match(/[^\r\n]/);if(!t)return"";let r=t.index,i=e.length-1;for(;e[i]==="\r"||e[i]===` +`;)i--;return e.substring(r,i+1)}function In(e,t){return e?e+=` +`+t:e=t,e}function vq(e){return function(t){return t.charAt(0)!==e}}function yq(e){let t=e.indexOf(mq);return t===-1?e:e.slice(0,t)}function Zy(e,t){let r=[],i,o,u=e.match(t.references)!==null?t.references:gq;for(;i=u.exec(e);){let l=i[1]||null,f=i[2];for(;o=t.referenceParts.exec(f);){let h=null,p=o[1]||"",g=p.split("/");g.length>1&&(h=g.shift(),p=g.join("/"));let d={action:l,owner:h,repository:p||null,issue:o[3],raw:o[0],prefix:o[2]};r.push(d)}}return r}function _q(){return!0}function bq(e,t,r){if(!e||!e.trim())throw new TypeError("Expected a raw commit");if(Lt.isEmpty(t))throw new TypeError("Expected options");if(Lt.isEmpty(r))throw new TypeError("Expected regex");let i,o,u={},l=typeof t.commentChar=="string"?vq(t.commentChar):_q,f=G=>!G.match(/^\s*gpg:/),h=da(e).split(/\r?\n/),p=yq(h).filter(l).filter(f),g=!1,d=!0,b=Lt.map(t.headerCorrespondence,function(G){return G.trim()}),S=Lt.map(t.revertCorrespondence,function(G){return G.trim()}),w=Lt.map(t.mergeCorrespondence,function(G){return G.trim()}),A=null,C=null,O=null,F=[],k=null,I=[],K=[],Q=null;if(p.length===0)return{body:A,footer:C,header:O,mentions:F,merge:k,notes:I,references:K,revert:Q,scope:null,subject:null,type:null};k=p.shift();let Y={},le={};A="",C="";let B=k.match(t.mergePattern);if(B&&t.mergePattern){for(k=B[0],O=p.shift();O!==void 0&&!O.trim();)O=p.shift();O||(O=""),Lt.forEach(w,function(G,H){let $=B[H+1]||null;Y[G]=$})}else O=k,k=null,Lt.forEach(w,function(G){Y[G]=null});let z=O.match(t.headerPattern);if(z?Lt.forEach(b,function(G,H){let $=z[H+1]||null;le[G]=$}):Lt.forEach(b,function(G){le[G]=null}),Array.prototype.push.apply(K,Zy(O,{references:r.references,referenceParts:r.referenceParts})),Lt.forEach(p,function(G){if(t.fieldPattern){let re=t.fieldPattern.exec(G);if(re){i=re[1];return}if(i){u[i]=In(u[i],G);return}}let H,$=G.match(r.notes);if($){g=!0,d=!1,C=In(C,G);let re={title:$[1],text:$[2]};I.push(re);return}let te=Zy(G,{references:r.references,referenceParts:r.referenceParts});if(te.length>0&&(d=!1,H=!0,g=!1),Array.prototype.push.apply(K,te),H){C=In(C,G);return}if(g){I[I.length-1].text=In(I[I.length-1].text,G),C=In(C,G);return}d?A=In(A,G):C=In(C,G)}),t.breakingHeaderPattern&&I.length===0){let G=O.match(t.breakingHeaderPattern);if(G){let H=G[3];I.push({title:"BREAKING CHANGE",text:H})}}for(;o=r.mentions.exec(e);)F.push(o[1]);let M=e.match(t.revertPattern);return M?(Q={},Lt.forEach(S,function(G,H){let $=M[H+1]||null;Q[G]=$})):Q=null,Lt.map(I,function(G){return G.text=da(G.text),G}),Lt.merge(le,Y,{merge:k,header:O,body:A?da(A):null,footer:C?da(C):null,notes:I,references:K,mentions:F,revert:Q},u)}Qy.exports=bq});var n_=_((LV,r_)=>{"use strict";var t_=/(?!.*)/;function tc(e,t){return e.map(function(r){return r.trim()}).filter(function(r){return r.length}).join(t)}function wq(e,t){if(!e)return t_;let r=tc(e,"|");return t?t(r):new RegExp("^[\\s|*]*("+r+")[:\\s]+(.*)","i")}function Sq(e,t){if(!e)return t_;let r=t?"g":"gi";return new RegExp("(?:.*?)??\\s*([\\w-\\.\\/]*?)??("+tc(e,"|")+")([\\w-]*\\d+)",r)}function Eq(e){if(!e)return/()(.+)/gi;let t=tc(e,"|");return new RegExp("("+t+")(?:\\s+(.*?))(?=(?:"+t+")|$)","gi")}r_.exports=function(e){e=e||{};let t=wq(e.noteKeywords,e.notesPattern),r=Sq(e.issuePrefixes,e.issuePrefixesCaseSensitive),i=Eq(e.referenceActions);return{notes:t,referenceParts:r,references:i,mentions:/@([\w-]+)/g}}});var nc=_((AV,rc)=>{"use strict";var i_=e_(),s_=n_(),Lq=Ls(),Aq=Tn();function o_(e){return e=Aq.extend({headerPattern:/^(\w*)(?:\(([\w$.\-*/ ]*)\))?: (.*)$/,headerCorrespondence:["type","scope","subject"],referenceActions:["close","closes","closed","fix","fixes","fixed","resolve","resolves","resolved"],issuePrefixes:["#"],noteKeywords:["BREAKING CHANGE"],fieldPattern:/^-(.*?)-$/,revertPattern:/^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)\./,revertCorrespondence:["header","hash"],warn:function(){},mergePattern:null,mergeCorrespondence:null},e),typeof e.headerPattern=="string"&&(e.headerPattern=new RegExp(e.headerPattern)),typeof e.headerCorrespondence=="string"&&(e.headerCorrespondence=e.headerCorrespondence.split(",")),typeof e.referenceActions=="string"&&(e.referenceActions=e.referenceActions.split(",")),typeof e.issuePrefixes=="string"&&(e.issuePrefixes=e.issuePrefixes.split(",")),typeof e.noteKeywords=="string"&&(e.noteKeywords=e.noteKeywords.split(",")),typeof e.fieldPattern=="string"&&(e.fieldPattern=new RegExp(e.fieldPattern)),typeof e.revertPattern=="string"&&(e.revertPattern=new RegExp(e.revertPattern)),typeof e.revertCorrespondence=="string"&&(e.revertCorrespondence=e.revertCorrespondence.split(",")),typeof e.mergePattern=="string"&&(e.mergePattern=new RegExp(e.mergePattern)),e}function xq(e){e=o_(e);let t=s_(e);return Lq.obj(function(r,i,o){let u;try{u=i_(r.toString(),e,t),o(null,u)}catch(l){e.warn===!0?o(l):(e.warn(l.toString()),o(null,""))}})}function Pq(e,t){t=o_(t);let r=s_(t);return i_(e,t,r)}rc.exports=xq;rc.exports.sync=Pq});var sc=_((ic,a_)=>{(function(e){"use strict";var t=function(){var l=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|"[^"]*"|'[^']*'/g,f=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,h=/[^-+\dA-Z]/g;return function(p,g,d,b){if(arguments.length===1&&u(p)==="string"&&!/\d/.test(p)&&(g=p,p=void 0),p=p||new Date,p instanceof Date||(p=new Date(p)),isNaN(p))throw TypeError("Invalid date");g=String(t.masks[g]||g||t.masks.default);var S=g.slice(0,4);(S==="UTC:"||S==="GMT:")&&(g=g.slice(4),d=!0,S==="GMT:"&&(b=!0));var w=d?"getUTC":"get",A=p[w+"Date"](),C=p[w+"Day"](),O=p[w+"Month"](),F=p[w+"FullYear"](),k=p[w+"Hours"](),I=p[w+"Minutes"](),K=p[w+"Seconds"](),Q=p[w+"Milliseconds"](),Y=d?0:p.getTimezoneOffset(),le=i(p),B=o(p),z={d:A,dd:r(A),ddd:t.i18n.dayNames[C],dddd:t.i18n.dayNames[C+7],m:O+1,mm:r(O+1),mmm:t.i18n.monthNames[O],mmmm:t.i18n.monthNames[O+12],yy:String(F).slice(2),yyyy:F,h:k%12||12,hh:r(k%12||12),H:k,HH:r(k),M:I,MM:r(I),s:K,ss:r(K),l:r(Q,3),L:r(Math.round(Q/10)),t:k<12?t.i18n.timeNames[0]:t.i18n.timeNames[1],tt:k<12?t.i18n.timeNames[2]:t.i18n.timeNames[3],T:k<12?t.i18n.timeNames[4]:t.i18n.timeNames[5],TT:k<12?t.i18n.timeNames[6]:t.i18n.timeNames[7],Z:b?"GMT":d?"UTC":(String(p).match(f)||[""]).pop().replace(h,""),o:(Y>0?"-":"+")+r(Math.floor(Math.abs(Y)/60)*100+Math.abs(Y)%60,4),S:["th","st","nd","rd"][A%10>3?0:(A%100-A%10!=10)*A%10],W:le,N:B};return g.replace(l,function(M){return M in z?z[M]:M.slice(1,M.length-1)})}}();t.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},t.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]};function r(l,f){for(l=String(l),f=f||2;l.length{function Cq(){this.__data__=[],this.size=0}u_.exports=Cq});var xs=_((PV,f_)=>{var Oq=gi();function Rq(e,t){for(var r=e.length;r--;)if(Oq(e[r][0],t))return r;return-1}f_.exports=Rq});var h_=_((CV,c_)=>{var Tq=xs(),Iq=Array.prototype,Nq=Iq.splice;function Dq(e){var t=this.__data__,r=Tq(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():Nq.call(t,r,1),--this.size,!0}c_.exports=Dq});var d_=_((OV,p_)=>{var Mq=xs();function qq(e){var t=this.__data__,r=Mq(t,e);return r<0?void 0:t[r][1]}p_.exports=qq});var m_=_((RV,g_)=>{var kq=xs();function Fq(e){return kq(this.__data__,e)>-1}g_.exports=Fq});var y_=_((TV,v_)=>{var Bq=xs();function Uq(e,t){var r=this.__data__,i=Bq(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}v_.exports=Uq});var Ps=_((IV,__)=>{var Gq=l_(),jq=h_(),Hq=d_(),Wq=m_(),$q=y_();function _i(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{var Yq=Ps();function Vq(){this.__data__=new Yq,this.size=0}b_.exports=Vq});var E_=_((DV,S_)=>{function Kq(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}S_.exports=Kq});var A_=_((MV,L_)=>{function zq(e){return this.__data__.get(e)}L_.exports=zq});var P_=_((qV,x_)=>{function Jq(e){return this.__data__.has(e)}x_.exports=Jq});var ga=_((kV,C_)=>{var Xq=on(),Zq=fr(),Qq=Xq(Zq,"Map");C_.exports=Qq});var Cs=_((FV,O_)=>{var ek=on(),tk=ek(Object,"create");O_.exports=tk});var I_=_((BV,T_)=>{var R_=Cs();function rk(){this.__data__=R_?R_(null):{},this.size=0}T_.exports=rk});var D_=_((UV,N_)=>{function nk(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}N_.exports=nk});var q_=_((GV,M_)=>{var ik=Cs(),sk="__lodash_hash_undefined__",ok=Object.prototype,ak=ok.hasOwnProperty;function uk(e){var t=this.__data__;if(ik){var r=t[e];return r===sk?void 0:r}return ak.call(t,e)?t[e]:void 0}M_.exports=uk});var F_=_((jV,k_)=>{var lk=Cs(),fk=Object.prototype,ck=fk.hasOwnProperty;function hk(e){var t=this.__data__;return lk?t[e]!==void 0:ck.call(t,e)}k_.exports=hk});var U_=_((HV,B_)=>{var pk=Cs(),dk="__lodash_hash_undefined__";function gk(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=pk&&t===void 0?dk:t,this}B_.exports=gk});var j_=_((WV,G_)=>{var mk=I_(),vk=D_(),yk=q_(),_k=F_(),bk=U_();function bi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{var H_=j_(),wk=Ps(),Sk=ga();function Ek(){this.size=0,this.__data__={hash:new H_,map:new(Sk||wk),string:new H_}}W_.exports=Ek});var V_=_((YV,Y_)=>{function Lk(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}Y_.exports=Lk});var Os=_((VV,K_)=>{var Ak=V_();function xk(e,t){var r=e.__data__;return Ak(t)?r[typeof t=="string"?"string":"hash"]:r.map}K_.exports=xk});var J_=_((KV,z_)=>{var Pk=Os();function Ck(e){var t=Pk(this,e).delete(e);return this.size-=t?1:0,t}z_.exports=Ck});var Z_=_((zV,X_)=>{var Ok=Os();function Rk(e){return Ok(this,e).get(e)}X_.exports=Rk});var e0=_((JV,Q_)=>{var Tk=Os();function Ik(e){return Tk(this,e).has(e)}Q_.exports=Ik});var r0=_((XV,t0)=>{var Nk=Os();function Dk(e,t){var r=Nk(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}t0.exports=Dk});var oc=_((ZV,n0)=>{var Mk=$_(),qk=J_(),kk=Z_(),Fk=e0(),Bk=r0();function wi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t{var Uk=Ps(),Gk=ga(),jk=oc(),Hk=200;function Wk(e,t){var r=this.__data__;if(r instanceof Uk){var i=r.__data__;if(!Gk||i.length{var $k=Ps(),Yk=w_(),Vk=E_(),Kk=A_(),zk=P_(),Jk=s0();function Si(e){var t=this.__data__=new $k(e);this.size=t.size}Si.prototype.clear=Yk;Si.prototype.delete=Vk;Si.prototype.get=Kk;Si.prototype.has=zk;Si.prototype.set=Jk;o0.exports=Si});var u0=_((tK,a0)=>{var Xk="__lodash_hash_undefined__";function Zk(e){return this.__data__.set(e,Xk),this}a0.exports=Zk});var f0=_((rK,l0)=>{function Qk(e){return this.__data__.has(e)}l0.exports=Qk});var h0=_((nK,c0)=>{var e7=oc(),t7=u0(),r7=f0();function ma(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new e7;++t{function n7(e,t){for(var r=-1,i=e==null?0:e.length;++r{function i7(e,t){return e.has(t)}g0.exports=i7});var uc=_((oK,v0)=>{var s7=h0(),o7=d0(),a7=m0(),u7=1,l7=2;function f7(e,t,r,i,o,u){var l=r&u7,f=e.length,h=t.length;if(f!=h&&!(l&&h>f))return!1;var p=u.get(e),g=u.get(t);if(p&&g)return p==t&&g==e;var d=-1,b=!0,S=r&l7?new s7:void 0;for(u.set(e,t),u.set(t,e);++d{var c7=fr(),h7=c7.Uint8Array;y0.exports=h7});var w0=_((uK,b0)=>{function p7(e){var t=-1,r=Array(e.size);return e.forEach(function(i,o){r[++t]=[o,i]}),r}b0.exports=p7});var E0=_((lK,S0)=>{function d7(e){var t=-1,r=Array(e.size);return e.forEach(function(i){r[++t]=i}),r}S0.exports=d7});var C0=_((fK,P0)=>{var L0=ys(),A0=_0(),g7=gi(),m7=uc(),v7=w0(),y7=E0(),_7=1,b7=2,w7="[object Boolean]",S7="[object Date]",E7="[object Error]",L7="[object Map]",A7="[object Number]",x7="[object RegExp]",P7="[object Set]",C7="[object String]",O7="[object Symbol]",R7="[object ArrayBuffer]",T7="[object DataView]",x0=L0?L0.prototype:void 0,lc=x0?x0.valueOf:void 0;function I7(e,t,r,i,o,u,l){switch(r){case T7:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case R7:return!(e.byteLength!=t.byteLength||!u(new A0(e),new A0(t)));case w7:case S7:case A7:return g7(+e,+t);case E7:return e.name==t.name&&e.message==t.message;case x7:case C7:return e==t+"";case L7:var f=v7;case P7:var h=i&_7;if(f||(f=y7),e.size!=t.size&&!h)return!1;var p=l.get(e);if(p)return p==t;i|=b7,l.set(e,t);var g=m7(f(e),f(t),i,o,u,l);return l.delete(e),g;case O7:if(lc)return lc.call(e)==lc.call(t)}return!1}P0.exports=I7});var R0=_((cK,O0)=>{function N7(e,t){for(var r=-1,i=t.length,o=e.length;++r{var D7=R0(),M7=bs();function q7(e,t,r){var i=t(e);return M7(e)?i:D7(i,r(e))}T0.exports=q7});var D0=_((pK,N0)=>{function k7(e,t){for(var r=-1,i=e==null?0:e.length,o=0,u=[];++r{function F7(){return[]}M0.exports=F7});var B0=_((gK,F0)=>{var B7=D0(),U7=q0(),G7=Object.prototype,j7=G7.propertyIsEnumerable,k0=Object.getOwnPropertySymbols,H7=k0?function(e){return e==null?[]:(e=Object(e),B7(k0(e),function(t){return j7.call(e,t)}))}:U7;F0.exports=H7});var G0=_((mK,U0)=>{var W7=I0(),$7=B0(),Y7=fa();function V7(e){return W7(e,Y7,$7)}U0.exports=V7});var W0=_((vK,H0)=>{var j0=G0(),K7=1,z7=Object.prototype,J7=z7.hasOwnProperty;function X7(e,t,r,i,o,u){var l=r&K7,f=j0(e),h=f.length,p=j0(t),g=p.length;if(h!=g&&!l)return!1;for(var d=h;d--;){var b=f[d];if(!(l?b in t:J7.call(t,b)))return!1}var S=u.get(e),w=u.get(t);if(S&&w)return S==t&&w==e;var A=!0;u.set(e,t),u.set(t,e);for(var C=l;++d{var Z7=on(),Q7=fr(),eF=Z7(Q7,"DataView");$0.exports=eF});var K0=_((_K,V0)=>{var tF=on(),rF=fr(),nF=tF(rF,"Promise");V0.exports=nF});var J0=_((bK,z0)=>{var iF=on(),sF=fr(),oF=iF(sF,"Set");z0.exports=oF});var Z0=_((wK,X0)=>{var aF=on(),uF=fr(),lF=aF(uF,"WeakMap");X0.exports=lF});var o2=_((SK,s2)=>{var fc=Y0(),cc=ga(),hc=K0(),pc=J0(),dc=Z0(),Q0=sn(),Ei=Df(),e2="[object Map]",fF="[object Object]",t2="[object Promise]",r2="[object Set]",n2="[object WeakMap]",i2="[object DataView]",cF=Ei(fc),hF=Ei(cc),pF=Ei(hc),dF=Ei(pc),gF=Ei(dc),Nn=Q0;(fc&&Nn(new fc(new ArrayBuffer(1)))!=i2||cc&&Nn(new cc)!=e2||hc&&Nn(hc.resolve())!=t2||pc&&Nn(new pc)!=r2||dc&&Nn(new dc)!=n2)&&(Nn=function(e){var t=Q0(e),r=t==fF?e.constructor:void 0,i=r?Ei(r):"";if(i)switch(i){case cF:return i2;case hF:return e2;case pF:return t2;case dF:return r2;case gF:return n2}return t});s2.exports=Nn});var d2=_((EK,p2)=>{var gc=ac(),mF=uc(),vF=C0(),yF=W0(),a2=o2(),u2=bs(),l2=Hf(),_F=$f(),bF=1,f2="[object Arguments]",c2="[object Array]",va="[object Object]",wF=Object.prototype,h2=wF.hasOwnProperty;function SF(e,t,r,i,o,u){var l=u2(e),f=u2(t),h=l?c2:a2(e),p=f?c2:a2(t);h=h==f2?va:h,p=p==f2?va:p;var g=h==va,d=p==va,b=h==p;if(b&&l2(e)){if(!l2(t))return!1;l=!0,g=!1}if(b&&!g)return u||(u=new gc),l||_F(e)?mF(e,t,r,i,o,u):vF(e,t,h,r,i,o,u);if(!(r&bF)){var S=g&&h2.call(e,"__wrapped__"),w=d&&h2.call(t,"__wrapped__");if(S||w){var A=S?e.value():e,C=w?t.value():t;return u||(u=new gc),o(A,C,r,i,u)}}return b?(u||(u=new gc),yF(e,t,r,i,o,u)):!1}p2.exports=SF});var y2=_((LK,v2)=>{var EF=d2(),g2=an();function m2(e,t,r,i,o){return e===t?!0:e==null||t==null||!g2(e)&&!g2(t)?e!==e&&t!==t:EF(e,t,r,i,m2,o)}v2.exports=m2});var b2=_((AK,_2)=>{var LF=ac(),AF=y2(),xF=1,PF=2;function CF(e,t,r,i){var o=r.length,u=o,l=!i;if(e==null)return!u;for(e=Object(e);o--;){var f=r[o];if(l&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++o{var OF=di();function RF(e){return e===e&&!OF(e)}w2.exports=RF});var L2=_((PK,E2)=>{var TF=S2(),IF=fa();function NF(e){for(var t=IF(e),r=t.length;r--;){var i=t[r],o=e[i];t[r]=[i,o,TF(o)]}return t}E2.exports=NF});var x2=_((CK,A2)=>{var DF=b2(),MF=L2();function qF(e,t){return e===t||DF(e,t,MF(t))}A2.exports=qF});var C2=_((OK,P2)=>{"use strict";P2.exports=function(e,t){for(var r,i,o={},u=Object.keys(Object(e)),l=0;l{"use strict";var kF=x2(),mc=C2();function vc(e){return typeof e=="string"?e.trim():e}function FF(e){if(!Array.isArray(e))throw new TypeError("Expected an array");let t=[],r=[],i=[];return e.forEach(function(o){o.revert&&r.push(o),t.push(o)}),t=t.filter(function(o){let u=!1;return o=o.raw?mc(o.raw,vc):mc(o,vc),r.some(function(l){let f=mc(l.revert,vc);return u=kF(o,f),u&&i.push(l.hash),u}),!u}),t=t.filter(function(o){return i.indexOf(o.hash)!==0}),t}O2.exports=FF});var pt=_(At=>{"use strict";At.__esModule=!0;At.extend=R2;At.indexOf=HF;At.escapeExpression=WF;At.isEmpty=$F;At.createFrame=YF;At.blockParams=VF;At.appendContextPath=KF;var BF={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},UF=/[&<>"'`=]/g,GF=/[&<>"'`=]/;function jF(e){return BF[e]}function R2(e){for(var t=1;t{"use strict";ya.__esModule=!0;var wc=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function Sc(e,t){var r=t&&t.loc,i=void 0,o=void 0,u=void 0,l=void 0;r&&(i=r.start.line,o=r.end.line,u=r.start.column,l=r.end.column,e+=" - "+i+":"+u);for(var f=Error.prototype.constructor.call(this,e),h=0;h{"use strict";_a.__esModule=!0;var Ec=pt();_a.default=function(e){e.registerHelper("blockHelperMissing",function(t,r){var i=r.inverse,o=r.fn;if(t===!0)return o(this);if(t===!1||t==null)return i(this);if(Ec.isArray(t))return t.length>0?(r.ids&&(r.ids=[r.name]),e.helpers.each(t,r)):i(this);if(r.data&&r.ids){var u=Ec.createFrame(r.data);u.contextPath=Ec.appendContextPath(r.data.contextPath,r.name),r={data:u}}return o(t,r)})};N2.exports=_a.default});var q2=_((ba,M2)=>{"use strict";ba.__esModule=!0;function zF(e){return e&&e.__esModule?e:{default:e}}var Rs=pt(),JF=Gt(),XF=zF(JF);ba.default=function(e){e.registerHelper("each",function(t,r){if(!r)throw new XF.default("Must pass iterator to #each");var i=r.fn,o=r.inverse,u=0,l="",f=void 0,h=void 0;r.data&&r.ids&&(h=Rs.appendContextPath(r.data.contextPath,r.ids[0])+"."),Rs.isFunction(t)&&(t=t.call(this)),r.data&&(f=Rs.createFrame(r.data));function p(w,A,C){f&&(f.key=w,f.index=A,f.first=A===0,f.last=!!C,h&&(f.contextPath=h+w)),l=l+i(t[w],{data:f,blockParams:Rs.blockParams([t[w],w],[h+w,null])})}if(t&&typeof t=="object")if(Rs.isArray(t))for(var g=t.length;u{"use strict";wa.__esModule=!0;function ZF(e){return e&&e.__esModule?e:{default:e}}var QF=Gt(),eB=ZF(QF);wa.default=function(e){e.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new eB.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};k2.exports=wa.default});var j2=_((Sa,G2)=>{"use strict";Sa.__esModule=!0;function tB(e){return e&&e.__esModule?e:{default:e}}var B2=pt(),rB=Gt(),U2=tB(rB);Sa.default=function(e){e.registerHelper("if",function(t,r){if(arguments.length!=2)throw new U2.default("#if requires exactly one argument");return B2.isFunction(t)&&(t=t.call(this)),!r.hash.includeZero&&!t||B2.isEmpty(t)?r.inverse(this):r.fn(this)}),e.registerHelper("unless",function(t,r){if(arguments.length!=2)throw new U2.default("#unless requires exactly one argument");return e.helpers.if.call(this,t,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};G2.exports=Sa.default});var W2=_((Ea,H2)=>{"use strict";Ea.__esModule=!0;Ea.default=function(e){e.registerHelper("log",function(){for(var t=[void 0],r=arguments[arguments.length-1],i=0;i{"use strict";La.__esModule=!0;La.default=function(e){e.registerHelper("lookup",function(t,r,i){return t&&i.lookupProperty(t,r)})};$2.exports=La.default});var K2=_((Aa,V2)=>{"use strict";Aa.__esModule=!0;function nB(e){return e&&e.__esModule?e:{default:e}}var Ts=pt(),iB=Gt(),sB=nB(iB);Aa.default=function(e){e.registerHelper("with",function(t,r){if(arguments.length!=2)throw new sB.default("#with requires exactly one argument");Ts.isFunction(t)&&(t=t.call(this));var i=r.fn;if(Ts.isEmpty(t))return r.inverse(this);var o=r.data;return r.data&&r.ids&&(o=Ts.createFrame(r.data),o.contextPath=Ts.appendContextPath(r.data.contextPath,r.ids[0])),i(t,{data:o,blockParams:Ts.blockParams([t],[o&&o.contextPath])})})};V2.exports=Aa.default});var Lc=_(xa=>{"use strict";xa.__esModule=!0;xa.registerDefaultHelpers=bB;xa.moveHelperToHooks=wB;function Dn(e){return e&&e.__esModule?e:{default:e}}var oB=D2(),aB=Dn(oB),uB=q2(),lB=Dn(uB),fB=F2(),cB=Dn(fB),hB=j2(),pB=Dn(hB),dB=W2(),gB=Dn(dB),mB=Y2(),vB=Dn(mB),yB=K2(),_B=Dn(yB);function bB(e){aB.default(e),lB.default(e),cB.default(e),pB.default(e),gB.default(e),vB.default(e),_B.default(e)}function wB(e,t,r){e.helpers[t]&&(e.hooks[t]=e.helpers[t],r||delete e.helpers[t])}});var J2=_((Pa,z2)=>{"use strict";Pa.__esModule=!0;var SB=pt();Pa.default=function(e){e.registerDecorator("inline",function(t,r,i,o){var u=t;return r.partials||(r.partials={},u=function(l,f){var h=i.partials;i.partials=SB.extend({},h,r.partials);var p=t(l,f);return i.partials=h,p}),r.partials[o.args[0]]=o.fn,u})};z2.exports=Pa.default});var X2=_(Ac=>{"use strict";Ac.__esModule=!0;Ac.registerDefaultDecorators=xB;function EB(e){return e&&e.__esModule?e:{default:e}}var LB=J2(),AB=EB(LB);function xB(e){AB.default(e)}});var xc=_((Ca,Z2)=>{"use strict";Ca.__esModule=!0;var PB=pt(),Li={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(t){if(typeof t=="string"){var r=PB.indexOf(Li.methodMap,t.toLowerCase());r>=0?t=r:t=parseInt(t,10)}return t},log:function(t){if(t=Li.lookupLevel(t),typeof console!="undefined"&&Li.lookupLevel(Li.level)<=t){var r=Li.methodMap[t];console[r]||(r="log");for(var i=arguments.length,o=Array(i>1?i-1:0),u=1;u{"use strict";Pc.__esModule=!0;Pc.createNewLookupObject=OB;var CB=pt();function OB(){for(var e=arguments.length,t=Array(e),r=0;r{"use strict";Is.__esModule=!0;Is.createProtoAccessControl=NB;Is.resultIsAllowed=DB;Is.resetLoggedProperties=qB;function RB(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}var eb=Q2(),TB=xc(),IB=RB(TB),Oa=Object.create(null);function NB(e){var t=Object.create(null);t.constructor=!1,t.__defineGetter__=!1,t.__defineSetter__=!1,t.__lookupGetter__=!1;var r=Object.create(null);return r.__proto__=!1,{properties:{whitelist:eb.createNewLookupObject(r,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:eb.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}}function DB(e,t,r){return typeof e=="function"?tb(t.methods,r):tb(t.properties,r)}function tb(e,t){return e.whitelist[t]!==void 0?e.whitelist[t]===!0:e.defaultValue!==void 0?e.defaultValue:(MB(t),!1)}function MB(e){Oa[e]!==!0&&(Oa[e]=!0,IB.log("error",'Handlebars: Access has been denied to resolve the property "'+e+`" because it is not an "own property" of its parent. +You can add a runtime option to disable the check or this warning: +See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function qB(){Object.keys(Oa).forEach(function(e){delete Oa[e]})}});var Ta=_(cr=>{"use strict";cr.__esModule=!0;cr.HandlebarsEnvironment=Tc;function rb(e){return e&&e.__esModule?e:{default:e}}var Mn=pt(),kB=Gt(),Oc=rb(kB),FB=Lc(),BB=X2(),UB=xc(),Ra=rb(UB),GB=Cc(),jB="4.7.7";cr.VERSION=jB;var HB=8;cr.COMPILER_REVISION=HB;var WB=7;cr.LAST_COMPATIBLE_COMPILER_REVISION=WB;var $B={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};cr.REVISION_CHANGES=$B;var Rc="[object Object]";function Tc(e,t,r){this.helpers=e||{},this.partials=t||{},this.decorators=r||{},FB.registerDefaultHelpers(this),BB.registerDefaultDecorators(this)}Tc.prototype={constructor:Tc,logger:Ra.default,log:Ra.default.log,registerHelper:function(t,r){if(Mn.toString.call(t)===Rc){if(r)throw new Oc.default("Arg not supported with multiple helpers");Mn.extend(this.helpers,t)}else this.helpers[t]=r},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,r){if(Mn.toString.call(t)===Rc)Mn.extend(this.partials,t);else{if(typeof r=="undefined")throw new Oc.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=r}},unregisterPartial:function(t){delete this.partials[t]},registerDecorator:function(t,r){if(Mn.toString.call(t)===Rc){if(r)throw new Oc.default("Arg not supported with multiple decorators");Mn.extend(this.decorators,t)}else this.decorators[t]=r},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){GB.resetLoggedProperties()}};var YB=Ra.default.log;cr.log=YB;cr.createFrame=Mn.createFrame;cr.logger=Ra.default});var ib=_((Ia,nb)=>{"use strict";Ia.__esModule=!0;function Ic(e){this.string=e}Ic.prototype.toString=Ic.prototype.toHTML=function(){return""+this.string};Ia.default=Ic;nb.exports=Ia.default});var sb=_(Nc=>{"use strict";Nc.__esModule=!0;Nc.wrapHelper=VB;function VB(e,t){if(typeof e!="function")return e;var r=function(){var o=arguments[arguments.length-1];return arguments[arguments.length-1]=t(o),e.apply(this,arguments)};return r}});var fb=_(un=>{"use strict";un.__esModule=!0;un.checkRevision=QB;un.template=eU;un.wrapProgram=Na;un.resolvePartial=tU;un.invokePartial=rU;un.noop=ub;function KB(e){return e&&e.__esModule?e:{default:e}}function zB(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}var JB=pt(),Or=zB(JB),XB=Gt(),Rr=KB(XB),Tr=Ta(),ob=Lc(),ZB=sb(),ab=Cc();function QB(e){var t=e&&e[0]||1,r=Tr.COMPILER_REVISION;if(!(t>=Tr.LAST_COMPATIBLE_COMPILER_REVISION&&t<=Tr.COMPILER_REVISION))if(t{"use strict";Da.__esModule=!0;Da.default=function(e){var t=typeof global!="undefined"?global:window,r=t.Handlebars;e.noConflict=function(){return t.Handlebars===e&&(t.Handlebars=r),e}};cb.exports=Da.default});var mb=_((Ma,gb)=>{"use strict";Ma.__esModule=!0;function Mc(e){return e&&e.__esModule?e:{default:e}}function qc(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}var oU=Ta(),hb=qc(oU),aU=ib(),uU=Mc(aU),lU=Gt(),fU=Mc(lU),cU=pt(),kc=qc(cU),hU=fb(),pb=qc(hU),pU=Dc(),dU=Mc(pU);function db(){var e=new hb.HandlebarsEnvironment;return kc.extend(e,hb),e.SafeString=uU.default,e.Exception=fU.default,e.Utils=kc,e.escapeExpression=kc.escapeExpression,e.VM=pb,e.template=function(t){return pb.template(t,e)},e}var Ns=db();Ns.create=db;dU.default(Ns);Ns.default=Ns;Ma.default=Ns;gb.exports=Ma.default});var Fc=_((qa,yb)=>{"use strict";qa.__esModule=!0;var vb={helpers:{helperExpression:function(t){return t.type==="SubExpression"||(t.type==="MustacheStatement"||t.type==="BlockStatement")&&!!(t.params&&t.params.length||t.hash)},scopedId:function(t){return/^\.|this\b/.test(t.original)},simpleId:function(t){return t.parts.length===1&&!vb.helpers.scopedId(t)&&!t.depth}}};qa.default=vb;yb.exports=qa.default});var bb=_((ka,_b)=>{"use strict";ka.__esModule=!0;var gU=function(){var e={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(o,u,l,f,h,p,g){var d=p.length-1;switch(h){case 1:return p[d-1];case 2:this.$=f.prepareProgram(p[d]);break;case 3:this.$=p[d];break;case 4:this.$=p[d];break;case 5:this.$=p[d];break;case 6:this.$=p[d];break;case 7:this.$=p[d];break;case 8:this.$=p[d];break;case 9:this.$={type:"CommentStatement",value:f.stripComment(p[d]),strip:f.stripFlags(p[d],p[d]),loc:f.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:p[d],value:p[d],loc:f.locInfo(this._$)};break;case 11:this.$=f.prepareRawBlock(p[d-2],p[d-1],p[d],this._$);break;case 12:this.$={path:p[d-3],params:p[d-2],hash:p[d-1]};break;case 13:this.$=f.prepareBlock(p[d-3],p[d-2],p[d-1],p[d],!1,this._$);break;case 14:this.$=f.prepareBlock(p[d-3],p[d-2],p[d-1],p[d],!0,this._$);break;case 15:this.$={open:p[d-5],path:p[d-4],params:p[d-3],hash:p[d-2],blockParams:p[d-1],strip:f.stripFlags(p[d-5],p[d])};break;case 16:this.$={path:p[d-4],params:p[d-3],hash:p[d-2],blockParams:p[d-1],strip:f.stripFlags(p[d-5],p[d])};break;case 17:this.$={path:p[d-4],params:p[d-3],hash:p[d-2],blockParams:p[d-1],strip:f.stripFlags(p[d-5],p[d])};break;case 18:this.$={strip:f.stripFlags(p[d-1],p[d-1]),program:p[d]};break;case 19:var b=f.prepareBlock(p[d-2],p[d-1],p[d],p[d],!1,this._$),S=f.prepareProgram([b],p[d-1].loc);S.chained=!0,this.$={strip:p[d-2].strip,program:S,chain:!0};break;case 20:this.$=p[d];break;case 21:this.$={path:p[d-1],strip:f.stripFlags(p[d-2],p[d])};break;case 22:this.$=f.prepareMustache(p[d-3],p[d-2],p[d-1],p[d-4],f.stripFlags(p[d-4],p[d]),this._$);break;case 23:this.$=f.prepareMustache(p[d-3],p[d-2],p[d-1],p[d-4],f.stripFlags(p[d-4],p[d]),this._$);break;case 24:this.$={type:"PartialStatement",name:p[d-3],params:p[d-2],hash:p[d-1],indent:"",strip:f.stripFlags(p[d-4],p[d]),loc:f.locInfo(this._$)};break;case 25:this.$=f.preparePartialBlock(p[d-2],p[d-1],p[d],this._$);break;case 26:this.$={path:p[d-3],params:p[d-2],hash:p[d-1],strip:f.stripFlags(p[d-4],p[d])};break;case 27:this.$=p[d];break;case 28:this.$=p[d];break;case 29:this.$={type:"SubExpression",path:p[d-3],params:p[d-2],hash:p[d-1],loc:f.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:p[d],loc:f.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:f.id(p[d-2]),value:p[d],loc:f.locInfo(this._$)};break;case 32:this.$=f.id(p[d-1]);break;case 33:this.$=p[d];break;case 34:this.$=p[d];break;case 35:this.$={type:"StringLiteral",value:p[d],original:p[d],loc:f.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(p[d]),original:Number(p[d]),loc:f.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:p[d]==="true",original:p[d]==="true",loc:f.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:f.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:f.locInfo(this._$)};break;case 40:this.$=p[d];break;case 41:this.$=p[d];break;case 42:this.$=f.preparePath(!0,p[d],this._$);break;case 43:this.$=f.preparePath(!1,p[d],this._$);break;case 44:p[d-2].push({part:f.id(p[d]),original:p[d],separator:p[d-1]}),this.$=p[d-2];break;case 45:this.$=[{part:f.id(p[d]),original:p[d]}];break;case 46:this.$=[];break;case 47:p[d-1].push(p[d]);break;case 48:this.$=[];break;case 49:p[d-1].push(p[d]);break;case 50:this.$=[];break;case 51:p[d-1].push(p[d]);break;case 58:this.$=[];break;case 59:p[d-1].push(p[d]);break;case 64:this.$=[];break;case 65:p[d-1].push(p[d]);break;case 70:this.$=[];break;case 71:p[d-1].push(p[d]);break;case 78:this.$=[];break;case 79:p[d-1].push(p[d]);break;case 82:this.$=[];break;case 83:p[d-1].push(p[d]);break;case 86:this.$=[];break;case 87:p[d-1].push(p[d]);break;case 90:this.$=[];break;case 91:p[d-1].push(p[d]);break;case 94:this.$=[];break;case 95:p[d-1].push(p[d]);break;case 98:this.$=[p[d]];break;case 99:p[d-1].push(p[d]);break;case 100:this.$=[p[d]];break;case 101:p[d-1].push(p[d]);break}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(o,u){throw new Error(o)},parse:function(o){var u=this,l=[0],f=[null],h=[],p=this.table,g="",d=0,b=0,S=0,w=2,A=1;this.lexer.setInput(o),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc=="undefined"&&(this.lexer.yylloc={});var C=this.lexer.yylloc;h.push(C);var O=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function F(te){l.length=l.length-2*te,f.length=f.length-te,h.length=h.length-te}function k(){var te;return te=u.lexer.lex()||1,typeof te!="number"&&(te=u.symbols_[te]||te),te}for(var I,K,Q,Y,le,B,z={},M,W,G,H;;){if(Q=l[l.length-1],this.defaultActions[Q]?Y=this.defaultActions[Q]:((I===null||typeof I=="undefined")&&(I=k()),Y=p[Q]&&p[Q][I]),typeof Y=="undefined"||!Y.length||!Y[0]){var $="";if(!S){H=[];for(M in p[Q])this.terminals_[M]&&M>2&&H.push("'"+this.terminals_[M]+"'");this.lexer.showPosition?$="Parse error on line "+(d+1)+`: +`+this.lexer.showPosition()+` +Expecting `+H.join(", ")+", got '"+(this.terminals_[I]||I)+"'":$="Parse error on line "+(d+1)+": Unexpected "+(I==1?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError($,{text:this.lexer.match,token:this.terminals_[I]||I,line:this.lexer.yylineno,loc:C,expected:H})}}if(Y[0]instanceof Array&&Y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+I);switch(Y[0]){case 1:l.push(I),f.push(this.lexer.yytext),h.push(this.lexer.yylloc),l.push(Y[1]),I=null,K?(I=K,K=null):(b=this.lexer.yyleng,g=this.lexer.yytext,d=this.lexer.yylineno,C=this.lexer.yylloc,S>0&&S--);break;case 2:if(W=this.productions_[Y[1]][1],z.$=f[f.length-W],z._$={first_line:h[h.length-(W||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(W||1)].first_column,last_column:h[h.length-1].last_column},O&&(z._$.range=[h[h.length-(W||1)].range[0],h[h.length-1].range[1]]),B=this.performAction.call(z,g,b,d,this.yy,Y[1],f,h),typeof B!="undefined")return B;W&&(l=l.slice(0,-1*W*2),f=f.slice(0,-1*W),h=h.slice(0,-1*W)),l.push(this.productions_[Y[1]][0]),f.push(z.$),h.push(z._$),G=p[l[l.length-2]][l[l.length-1]],l.push(G);break;case 3:return!0}}return!0}},t=function(){var i={EOF:1,parseError:function(u,l){if(this.yy.parser)this.yy.parser.parseError(u,l);else throw new Error(u)},setInput:function(u){return this._input=u,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var l=u.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},unput:function(u){var l=u.length,f=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l-1),this.offset-=l;var h=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),f.length-1&&(this.yylineno-=f.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===h.length?this.yylloc.first_column:0)+h[h.length-f.length].length-f[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-l]),this},more:function(){return this._more=!0,this},less:function(u){this.unput(this.match.slice(u))},pastInput:function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var u=this.pastInput(),l=new Array(u.length+1).join("-");return u+this.upcomingInput()+` +`+l+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var u,l,f,h,p,g;this._more||(this.yytext="",this.match="");for(var d=this._currentRules(),b=0;bl[0].length)&&(l=f,h=b,!this.options.flex)));b++);return l?(g=l[0].match(/(?:\r\n?|\n).*/g),g&&(this.yylineno+=g.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:g?g[g.length-1].length-g[g.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+l[0].length},this.yytext+=l[0],this.match+=l[0],this.matches=l,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(l[0].length),this.matched+=l[0],u=this.performAction.call(this,this.yy,this,d[h],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),u||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var u=this.next();return typeof u!="undefined"?u:this.lex()},begin:function(u){this.conditionStack.push(u)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(u){this.begin(u)}};return i.options={},i.performAction=function(u,l,f,h){function p(d,b){return l.yytext=l.yytext.substring(d,l.yyleng-b+d)}var g=h;switch(f){case 0:if(l.yytext.slice(-2)==="\\\\"?(p(0,1),this.begin("mu")):l.yytext.slice(-1)==="\\"?(p(0,1),this.begin("emu")):this.begin("mu"),l.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(p(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(l.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return l.yytext=p(1,2).replace(/\\"/g,'"'),80;break;case 32:return l.yytext=p(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return l.yytext=l.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},i.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],i.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},i}();e.lexer=t;function r(){this.yy={}}return r.prototype=e,e.Parser=r,new r}();ka.default=gU;_b.exports=ka.default});var Ga=_((Ua,Eb)=>{"use strict";Ua.__esModule=!0;function mU(e){return e&&e.__esModule?e:{default:e}}var vU=Gt(),Bc=mU(vU);function Fa(){this.parents=[]}Fa.prototype={constructor:Fa,mutating:!1,acceptKey:function(t,r){var i=this.accept(t[r]);if(this.mutating){if(i&&!Fa.prototype[i.type])throw new Bc.default('Unexpected node type "'+i.type+'" found when accepting '+r+" on "+t.type);t[r]=i}},acceptRequired:function(t,r){if(this.acceptKey(t,r),!t[r])throw new Bc.default(t.type+" requires "+r)},acceptArray:function(t){for(var r=0,i=t.length;r{"use strict";ja.__esModule=!0;function yU(e){return e&&e.__esModule?e:{default:e}}var _U=Ga(),bU=yU(_U);function hr(){var e=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=e}hr.prototype=new bU.default;hr.prototype.Program=function(e){var t=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var i=e.body,o=0,u=i.length;o{"use strict";jt.__esModule=!0;jt.SourceLocation=EU;jt.id=LU;jt.stripFlags=AU;jt.stripComment=xU;jt.preparePath=PU;jt.prepareMustache=CU;jt.prepareRawBlock=OU;jt.prepareBlock=RU;jt.prepareProgram=TU;jt.preparePartialBlock=IU;function wU(e){return e&&e.__esModule?e:{default:e}}var SU=Gt(),jc=wU(SU);function Hc(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var r={loc:e.path.loc};throw new jc.default(e.path.original+" doesn't match "+t,r)}}function EU(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}}function LU(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}function AU(e,t){return{open:e.charAt(2)==="~",close:t.charAt(t.length-3)==="~"}}function xU(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function PU(e,t,r){r=this.locInfo(r);for(var i=e?"@":"",o=[],u=0,l=0,f=t.length;l0)throw new jc.default("Invalid path: "+i,{loc:r});h===".."&&u++}else o.push(h)}return{type:"PathExpression",data:e,depth:u,parts:o,original:i,loc:r}}function CU(e,t,r,i,o,u){var l=i.charAt(3)||i.charAt(2),f=l!=="{"&&l!=="&",h=/\*/.test(i);return{type:h?"Decorator":"MustacheStatement",path:e,params:t,hash:r,escaped:f,strip:o,loc:this.locInfo(u)}}function OU(e,t,r,i){Hc(e,r),i=this.locInfo(i);var o={type:"Program",body:t,strip:{},loc:i};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:o,openStrip:{},inverseStrip:{},closeStrip:{},loc:i}}function RU(e,t,r,i,o,u){i&&i.path&&Hc(e,i);var l=/\*/.test(e.open);t.blockParams=e.blockParams;var f=void 0,h=void 0;if(r){if(l)throw new jc.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=i.strip),h=r.strip,f=r.program}return o&&(o=f,f=t,t=o),{type:l?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:f,openStrip:e.strip,inverseStrip:h,closeStrip:i&&i.strip,loc:this.locInfo(u)}}function TU(e,t){if(!t&&e.length){var r=e[0].loc,i=e[e.length-1].loc;r&&i&&(t={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:i.end.line,column:i.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}function IU(e,t,r,i){return Hc(e,r),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:r&&r.strip,loc:this.locInfo(i)}}});var Ob=_(Ds=>{"use strict";Ds.__esModule=!0;Ds.parseWithoutProcessing=Cb;Ds.parse=UU;function NU(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function Pb(e){return e&&e.__esModule?e:{default:e}}var DU=bb(),Wc=Pb(DU),MU=Ab(),qU=Pb(MU),kU=xb(),FU=NU(kU),BU=pt();Ds.parser=Wc.default;var Ha={};BU.extend(Ha,FU);function Cb(e,t){if(e.type==="Program")return e;Wc.default.yy=Ha,Ha.locInfo=function(i){return new Ha.SourceLocation(t&&t.srcName,i)};var r=Wc.default.parse(e);return r}function UU(e,t){var r=Cb(e,t),i=new qU.default(t);return i.accept(r)}});var Nb=_(Fs=>{"use strict";Fs.__esModule=!0;Fs.Compiler=$c;Fs.precompile=WU;Fs.compile=$U;function Rb(e){return e&&e.__esModule?e:{default:e}}var GU=Gt(),Ms=Rb(GU),qs=pt(),jU=Fc(),ks=Rb(jU),HU=[].slice;function $c(){}$c.prototype={compiler:$c,equals:function(t){var r=this.opcodes.length;if(t.opcodes.length!==r)return!1;for(var i=0;i1)throw new Ms.default("Unsupported number of partial arguments: "+i.length,t);i.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):i.push({type:"PathExpression",parts:[],depth:0}));var o=t.name.original,u=t.name.type==="SubExpression";u&&this.accept(t.name),this.setupFullMustacheParams(t,r,void 0,!0);var l=t.indent||"";this.options.preventIndent&&l&&(this.opcode("appendContent",l),l=""),this.opcode("invokePartial",u,o,l),this.opcode("append")},PartialBlockStatement:function(t){this.PartialStatement(t)},MustacheStatement:function(t){this.SubExpression(t),t.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(t){this.DecoratorBlock(t)},ContentStatement:function(t){t.value&&this.opcode("appendContent",t.value)},CommentStatement:function(){},SubExpression:function(t){Ib(t);var r=this.classifySexpr(t);r==="simple"?this.simpleSexpr(t):r==="helper"?this.helperSexpr(t):this.ambiguousSexpr(t)},ambiguousSexpr:function(t,r,i){var o=t.path,u=o.parts[0],l=r!=null||i!=null;this.opcode("getContext",o.depth),this.opcode("pushProgram",r),this.opcode("pushProgram",i),o.strict=!0,this.accept(o),this.opcode("invokeAmbiguous",u,l)},simpleSexpr:function(t){var r=t.path;r.strict=!0,this.accept(r),this.opcode("resolvePossibleLambda")},helperSexpr:function(t,r,i){var o=this.setupFullMustacheParams(t,r,i),u=t.path,l=u.parts[0];if(this.options.knownHelpers[l])this.opcode("invokeKnownHelper",o.length,l);else{if(this.options.knownHelpersOnly)throw new Ms.default("You specified knownHelpersOnly, but used the unknown helper "+l,t);u.strict=!0,u.falsy=!0,this.accept(u),this.opcode("invokeHelper",o.length,u.original,ks.default.helpers.simpleId(u))}},PathExpression:function(t){this.addDepth(t.depth),this.opcode("getContext",t.depth);var r=t.parts[0],i=ks.default.helpers.scopedId(t),o=!t.depth&&!i&&this.blockParamIndex(r);o?this.opcode("lookupBlockParam",o,t.parts):r?t.data?(this.options.data=!0,this.opcode("lookupData",t.depth,t.parts,t.strict)):this.opcode("lookupOnContext",t.parts,t.falsy,t.strict,i):this.opcode("pushContext")},StringLiteral:function(t){this.opcode("pushString",t.value)},NumberLiteral:function(t){this.opcode("pushLiteral",t.value)},BooleanLiteral:function(t){this.opcode("pushLiteral",t.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(t){var r=t.pairs,i=0,o=r.length;for(this.opcode("pushHash");i=0)return[r,u]}}};function WU(e,t,r){if(e==null||typeof e!="string"&&e.type!=="Program")throw new Ms.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);t=t||{},"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var i=r.parse(e,t),o=new r.Compiler().compile(i,t);return new r.JavaScriptCompiler().compile(o,t)}function $U(e,t,r){if(t===void 0&&(t={}),e==null||typeof e!="string"&&e.type!=="Program")throw new Ms.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);t=qs.extend({},t),"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var i=void 0;function o(){var l=r.parse(e,t),f=new r.Compiler().compile(l,t),h=new r.JavaScriptCompiler().compile(f,t,void 0,!0);return r.template(h)}function u(l,f){return i||(i=o()),i.call(this,l,f)}return u._setup=function(l){return i||(i=o()),i._setup(l)},u._child=function(l,f,h,p){return i||(i=o()),i._child(l,f,h,p)},u}function Tb(e,t){if(e===t)return!0;if(qs.isArray(e)&&qs.isArray(t)&&e.length===t.length){for(var r=0;r{var Db="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Yc.encode=function(e){if(0<=e&&e{var qb=Mb(),Vc=5,kb=1<>1;return t?-r:r}Kc.encode=function(t){var r="",i,o=YU(t);do i=o&Fb,o>>>=Vc,o>0&&(i|=Bb),r+=qb.encode(i);while(o>0);return r};Kc.decode=function(t,r,i){var o=t.length,u=0,l=0,f,h;do{if(r>=o)throw new Error("Expected more digits in base 64 VLQ value.");if(h=qb.decode(t.charCodeAt(r++)),h===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));f=!!(h&Bb),h&=Fb,u=u+(h<{function KU(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}ot.getArg=KU;var Ub=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,zU=/^data:.+\,.+$/;function Bs(e){var t=e.match(Ub);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}ot.urlParse=Bs;function Ai(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}ot.urlGenerate=Ai;function Jc(e){var t=e,r=Bs(e);if(r){if(!r.path)return e;t=r.path}for(var i=ot.isAbsolute(t),o=t.split(/\/+/),u,l=0,f=o.length-1;f>=0;f--)u=o[f],u==="."?o.splice(f,1):u===".."?l++:l>0&&(u===""?(o.splice(f+1,l),l=0):(o.splice(f,2),l--));return t=o.join("/"),t===""&&(t=i?"/":"."),r?(r.path=t,Ai(r)):t}ot.normalize=Jc;function Gb(e,t){e===""&&(e="."),t===""&&(t=".");var r=Bs(t),i=Bs(e);if(i&&(e=i.path||"/"),r&&!r.scheme)return i&&(r.scheme=i.scheme),Ai(r);if(r||t.match(zU))return t;if(i&&!i.host&&!i.path)return i.host=t,Ai(i);var o=t.charAt(0)==="/"?t:Jc(e.replace(/\/+$/,"")+"/"+t);return i?(i.path=o,Ai(i)):o}ot.join=Gb;ot.isAbsolute=function(e){return e.charAt(0)==="/"||Ub.test(e)};function JU(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var r=0;t.indexOf(e+"/")!==0;){var i=e.lastIndexOf("/");if(i<0||(e=e.slice(0,i),e.match(/^([^\/]+:\/)?\/*$/)))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)}ot.relative=JU;var jb=function(){var e=Object.create(null);return!("__proto__"in e)}();function Hb(e){return e}function XU(e){return Wb(e)?"$"+e:e}ot.toSetString=jb?Hb:XU;function ZU(e){return Wb(e)?e.slice(1):e}ot.fromSetString=jb?Hb:ZU;function Wb(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var r=t-10;r>=0;r--)if(e.charCodeAt(r)!==36)return!1;return!0}function QU(e,t,r){var i=xi(e.source,t.source);return i!==0||(i=e.originalLine-t.originalLine,i!==0)||(i=e.originalColumn-t.originalColumn,i!==0||r)||(i=e.generatedColumn-t.generatedColumn,i!==0)||(i=e.generatedLine-t.generatedLine,i!==0)?i:xi(e.name,t.name)}ot.compareByOriginalPositions=QU;function eG(e,t,r){var i=e.generatedLine-t.generatedLine;return i!==0||(i=e.generatedColumn-t.generatedColumn,i!==0||r)||(i=xi(e.source,t.source),i!==0)||(i=e.originalLine-t.originalLine,i!==0)||(i=e.originalColumn-t.originalColumn,i!==0)?i:xi(e.name,t.name)}ot.compareByGeneratedPositionsDeflated=eG;function xi(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function tG(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=xi(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:xi(e.name,t.name)}ot.compareByGeneratedPositionsInflated=tG;function rG(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}ot.parseSourceMapInput=rG;function nG(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var i=Bs(r);if(!i)throw new Error("sourceMapURL could not be parsed");if(i.path){var o=i.path.lastIndexOf("/");o>=0&&(i.path=i.path.substring(0,o+1))}t=Gb(Ai(i),t)}return Jc(t)}ot.computeSourceURL=nG});var Qc=_($b=>{var Xc=Pi(),Zc=Object.prototype.hasOwnProperty,kn=typeof Map!="undefined";function Ir(){this._array=[],this._set=kn?new Map:Object.create(null)}Ir.fromArray=function(t,r){for(var i=new Ir,o=0,u=t.length;o=0)return r}else{var i=Xc.toSetString(t);if(Zc.call(this._set,i))return this._set[i]}throw new Error('"'+t+'" is not in the set.')};Ir.prototype.at=function(t){if(t>=0&&t{var Yb=Pi();function iG(e,t){var r=e.generatedLine,i=t.generatedLine,o=e.generatedColumn,u=t.generatedColumn;return i>r||i==r&&u>=o||Yb.compareByGeneratedPositionsInflated(e,t)<=0}function Wa(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Wa.prototype.unsortedForEach=function(t,r){this._array.forEach(t,r)};Wa.prototype.add=function(t){iG(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};Wa.prototype.toArray=function(){return this._sorted||(this._array.sort(Yb.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};Vb.MappingList=Wa});var eh=_(zb=>{var Us=zc(),He=Pi(),$a=Qc().ArraySet,sG=Kb().MappingList;function Ht(e){e||(e={}),this._file=He.getArg(e,"file",null),this._sourceRoot=He.getArg(e,"sourceRoot",null),this._skipValidation=He.getArg(e,"skipValidation",!1),this._sources=new $a,this._names=new $a,this._mappings=new sG,this._sourcesContents=null}Ht.prototype._version=3;Ht.fromSourceMap=function(t){var r=t.sourceRoot,i=new Ht({file:t.file,sourceRoot:r});return t.eachMapping(function(o){var u={generated:{line:o.generatedLine,column:o.generatedColumn}};o.source!=null&&(u.source=o.source,r!=null&&(u.source=He.relative(r,u.source)),u.original={line:o.originalLine,column:o.originalColumn},o.name!=null&&(u.name=o.name)),i.addMapping(u)}),t.sources.forEach(function(o){var u=o;r!==null&&(u=He.relative(r,o)),i._sources.has(u)||i._sources.add(u);var l=t.sourceContentFor(o);l!=null&&i.setSourceContent(o,l)}),i};Ht.prototype.addMapping=function(t){var r=He.getArg(t,"generated"),i=He.getArg(t,"original",null),o=He.getArg(t,"source",null),u=He.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,i,o,u),o!=null&&(o=String(o),this._sources.has(o)||this._sources.add(o)),u!=null&&(u=String(u),this._names.has(u)||this._names.add(u)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:i!=null&&i.line,originalColumn:i!=null&&i.column,source:o,name:u})};Ht.prototype.setSourceContent=function(t,r){var i=t;this._sourceRoot!=null&&(i=He.relative(this._sourceRoot,i)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[He.toSetString(i)]=r):this._sourcesContents&&(delete this._sourcesContents[He.toSetString(i)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};Ht.prototype.applySourceMap=function(t,r,i){var o=r;if(r==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);o=t.file}var u=this._sourceRoot;u!=null&&(o=He.relative(u,o));var l=new $a,f=new $a;this._mappings.unsortedForEach(function(h){if(h.source===o&&h.originalLine!=null){var p=t.originalPositionFor({line:h.originalLine,column:h.originalColumn});p.source!=null&&(h.source=p.source,i!=null&&(h.source=He.join(i,h.source)),u!=null&&(h.source=He.relative(u,h.source)),h.originalLine=p.line,h.originalColumn=p.column,p.name!=null&&(h.name=p.name))}var g=h.source;g!=null&&!l.has(g)&&l.add(g);var d=h.name;d!=null&&!f.has(d)&&f.add(d)},this),this._sources=l,this._names=f,t.sources.forEach(function(h){var p=t.sourceContentFor(h);p!=null&&(i!=null&&(h=He.join(i,h)),u!=null&&(h=He.relative(u,h)),this.setSourceContent(h,p))},this)};Ht.prototype._validateMapping=function(t,r,i,o){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!r&&!i&&!o)){if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&i)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:i,original:r,name:o}))}};Ht.prototype._serializeMappings=function(){for(var t=0,r=1,i=0,o=0,u=0,l=0,f="",h,p,g,d,b=this._mappings.toArray(),S=0,w=b.length;S0){if(!He.compareByGeneratedPositionsInflated(p,b[S-1]))continue;h+=","}h+=Us.encode(p.generatedColumn-t),t=p.generatedColumn,p.source!=null&&(d=this._sources.indexOf(p.source),h+=Us.encode(d-l),l=d,h+=Us.encode(p.originalLine-1-o),o=p.originalLine-1,h+=Us.encode(p.originalColumn-i),i=p.originalColumn,p.name!=null&&(g=this._names.indexOf(p.name),h+=Us.encode(g-u),u=g)),f+=h}return f};Ht.prototype._generateSourcesContent=function(t,r){return t.map(function(i){if(!this._sourcesContents)return null;r!=null&&(i=He.relative(r,i));var o=He.toSetString(i);return Object.prototype.hasOwnProperty.call(this._sourcesContents,o)?this._sourcesContents[o]:null},this)};Ht.prototype.toJSON=function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t};Ht.prototype.toString=function(){return JSON.stringify(this.toJSON())};zb.SourceMapGenerator=Ht});var Jb=_(Fn=>{Fn.GREATEST_LOWER_BOUND=1;Fn.LEAST_UPPER_BOUND=2;function th(e,t,r,i,o,u){var l=Math.floor((t-e)/2)+e,f=o(r,i[l],!0);return f===0?l:f>0?t-l>1?th(l,t,r,i,o,u):u==Fn.LEAST_UPPER_BOUND?t1?th(e,l,r,i,o,u):u==Fn.LEAST_UPPER_BOUND?l:e<0?-1:e}Fn.search=function(t,r,i,o){if(r.length===0)return-1;var u=th(-1,r.length,t,r,i,o||Fn.GREATEST_LOWER_BOUND);if(u<0)return-1;for(;u-1>=0&&i(r[u],r[u-1],!0)===0;)--u;return u}});var Zb=_(Xb=>{function rh(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function oG(e,t){return Math.round(e+Math.random()*(t-e))}function nh(e,t,r,i){if(r{var J=Pi(),ih=Jb(),Ci=Qc().ArraySet,aG=zc(),Gs=Zb().quickSort;function Te(e,t){var r=e;return typeof e=="string"&&(r=J.parseSourceMapInput(e)),r.sections!=null?new Qt(r,t):new et(r,t)}Te.fromSourceMap=function(e,t){return et.fromSourceMap(e,t)};Te.prototype._version=3;Te.prototype.__generatedMappings=null;Object.defineProperty(Te.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});Te.prototype.__originalMappings=null;Object.defineProperty(Te.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});Te.prototype._charIsMappingSeparator=function(t,r){var i=t.charAt(r);return i===";"||i===","};Te.prototype._parseMappings=function(t,r){throw new Error("Subclasses must implement _parseMappings")};Te.GENERATED_ORDER=1;Te.ORIGINAL_ORDER=2;Te.GREATEST_LOWER_BOUND=1;Te.LEAST_UPPER_BOUND=2;Te.prototype.eachMapping=function(t,r,i){var o=r||null,u=i||Te.GENERATED_ORDER,l;switch(u){case Te.GENERATED_ORDER:l=this._generatedMappings;break;case Te.ORIGINAL_ORDER:l=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var f=this.sourceRoot;l.map(function(h){var p=h.source===null?null:this._sources.at(h.source);return p=J.computeSourceURL(f,p,this._sourceMapURL),{source:p,generatedLine:h.generatedLine,generatedColumn:h.generatedColumn,originalLine:h.originalLine,originalColumn:h.originalColumn,name:h.name===null?null:this._names.at(h.name)}},this).forEach(t,o)};Te.prototype.allGeneratedPositionsFor=function(t){var r=J.getArg(t,"line"),i={source:J.getArg(t,"source"),originalLine:r,originalColumn:J.getArg(t,"column",0)};if(i.source=this._findSourceIndex(i.source),i.source<0)return[];var o=[],u=this._findMapping(i,this._originalMappings,"originalLine","originalColumn",J.compareByOriginalPositions,ih.LEAST_UPPER_BOUND);if(u>=0){var l=this._originalMappings[u];if(t.column===void 0)for(var f=l.originalLine;l&&l.originalLine===f;)o.push({line:J.getArg(l,"generatedLine",null),column:J.getArg(l,"generatedColumn",null),lastColumn:J.getArg(l,"lastGeneratedColumn",null)}),l=this._originalMappings[++u];else for(var h=l.originalColumn;l&&l.originalLine===r&&l.originalColumn==h;)o.push({line:J.getArg(l,"generatedLine",null),column:J.getArg(l,"generatedColumn",null),lastColumn:J.getArg(l,"lastGeneratedColumn",null)}),l=this._originalMappings[++u]}return o};Ya.SourceMapConsumer=Te;function et(e,t){var r=e;typeof e=="string"&&(r=J.parseSourceMapInput(e));var i=J.getArg(r,"version"),o=J.getArg(r,"sources"),u=J.getArg(r,"names",[]),l=J.getArg(r,"sourceRoot",null),f=J.getArg(r,"sourcesContent",null),h=J.getArg(r,"mappings"),p=J.getArg(r,"file",null);if(i!=this._version)throw new Error("Unsupported version: "+i);l&&(l=J.normalize(l)),o=o.map(String).map(J.normalize).map(function(g){return l&&J.isAbsolute(l)&&J.isAbsolute(g)?J.relative(l,g):g}),this._names=Ci.fromArray(u.map(String),!0),this._sources=Ci.fromArray(o,!0),this._absoluteSources=this._sources.toArray().map(function(g){return J.computeSourceURL(l,g,t)}),this.sourceRoot=l,this.sourcesContent=f,this._mappings=h,this._sourceMapURL=t,this.file=p}et.prototype=Object.create(Te.prototype);et.prototype.consumer=Te;et.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=J.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var r;for(r=0;r1&&(A.source=f+O[1],f+=O[1],A.originalLine=u+O[2],u=A.originalLine,A.originalLine+=1,A.originalColumn=l+O[3],l=A.originalColumn,O.length>4&&(A.name=h+O[4],h+=O[4])),w.push(A),typeof A.originalLine=="number"&&S.push(A)}Gs(w,J.compareByGeneratedPositionsDeflated),this.__generatedMappings=w,Gs(S,J.compareByOriginalPositions),this.__originalMappings=S};et.prototype._findMapping=function(t,r,i,o,u,l){if(t[i]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[i]);if(t[o]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[o]);return ih.search(t,r,u,l)};et.prototype.computeColumnSpans=function(){for(var t=0;t=0){var o=this._generatedMappings[i];if(o.generatedLine===r.generatedLine){var u=J.getArg(o,"source",null);u!==null&&(u=this._sources.at(u),u=J.computeSourceURL(this.sourceRoot,u,this._sourceMapURL));var l=J.getArg(o,"name",null);return l!==null&&(l=this._names.at(l)),{source:u,line:J.getArg(o,"originalLine",null),column:J.getArg(o,"originalColumn",null),name:l}}}return{source:null,line:null,column:null,name:null}};et.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1};et.prototype.sourceContentFor=function(t,r){if(!this.sourcesContent)return null;var i=this._findSourceIndex(t);if(i>=0)return this.sourcesContent[i];var o=t;this.sourceRoot!=null&&(o=J.relative(this.sourceRoot,o));var u;if(this.sourceRoot!=null&&(u=J.urlParse(this.sourceRoot))){var l=o.replace(/^file:\/\//,"");if(u.scheme=="file"&&this._sources.has(l))return this.sourcesContent[this._sources.indexOf(l)];if((!u.path||u.path=="/")&&this._sources.has("/"+o))return this.sourcesContent[this._sources.indexOf("/"+o)]}if(r)return null;throw new Error('"'+o+'" is not in the SourceMap.')};et.prototype.generatedPositionFor=function(t){var r=J.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var i={source:r,originalLine:J.getArg(t,"line"),originalColumn:J.getArg(t,"column")},o=this._findMapping(i,this._originalMappings,"originalLine","originalColumn",J.compareByOriginalPositions,J.getArg(t,"bias",Te.GREATEST_LOWER_BOUND));if(o>=0){var u=this._originalMappings[o];if(u.source===i.source)return{line:J.getArg(u,"generatedLine",null),column:J.getArg(u,"generatedColumn",null),lastColumn:J.getArg(u,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Ya.BasicSourceMapConsumer=et;function Qt(e,t){var r=e;typeof e=="string"&&(r=J.parseSourceMapInput(e));var i=J.getArg(r,"version"),o=J.getArg(r,"sections");if(i!=this._version)throw new Error("Unsupported version: "+i);this._sources=new Ci,this._names=new Ci;var u={line:-1,column:0};this._sections=o.map(function(l){if(l.url)throw new Error("Support for url field in sections not implemented.");var f=J.getArg(l,"offset"),h=J.getArg(f,"line"),p=J.getArg(f,"column");if(h{var uG=eh().SourceMapGenerator,Va=Pi(),lG=/(\r?\n)/,fG=10,Oi="$$$isSourceNode$$$";function xt(e,t,r,i,o){this.children=[],this.sourceContents={},this.line=e==null?null:e,this.column=t==null?null:t,this.source=r==null?null:r,this.name=o==null?null:o,this[Oi]=!0,i!=null&&this.add(i)}xt.fromStringWithSourceMap=function(t,r,i){var o=new xt,u=t.split(lG),l=0,f=function(){var b=w(),S=w()||"";return b+S;function w(){return l=0;r--)this.prepend(t[r]);else if(t[Oi]||typeof t=="string")this.children.unshift(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};xt.prototype.walk=function(t){for(var r,i=0,o=this.children.length;i0){for(r=[],i=0;i{Ka.SourceMapGenerator=eh().SourceMapGenerator;Ka.SourceMapConsumer=ew().SourceMapConsumer;Ka.SourceNode=rw().SourceNode});var aw=_((za,ow)=>{"use strict";za.__esModule=!0;var sh=pt(),Bn=void 0;try{(typeof define!="function"||!define.amd)&&(iw=nw(),Bn=iw.SourceNode)}catch(e){}var iw;Bn||(Bn=function(e,t,r,i){this.src="",i&&this.add(i)},Bn.prototype={add:function(t){sh.isArray(t)&&(t=t.join("")),this.src+=t},prepend:function(t){sh.isArray(t)&&(t=t.join("")),this.src=t+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}});function oh(e,t,r){if(sh.isArray(e)){for(var i=[],o=0,u=e.length;o{"use strict";Ja.__esModule=!0;function uw(e){return e&&e.__esModule?e:{default:e}}var lw=Ta(),cG=Gt(),ah=uw(cG),hG=pt(),pG=aw(),fw=uw(pG);function Ri(e){this.value=e}function Ti(){}Ti.prototype={nameLookup:function(t,r){return this.internalNameLookup(t,r)},depthedLookup:function(t){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(t),")"]},compilerInfo:function(){var t=lw.COMPILER_REVISION,r=lw.REVISION_CHANGES[t];return[t,r]},appendToBuffer:function(t,r,i){return hG.isArray(t)||(t=[t]),t=this.source.wrap(t,r),this.environment.isSimple?["return ",t,";"]:i?["buffer += ",t,";"]:(t.appendToBuffer=!0,t)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(t,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",t,",",JSON.stringify(r),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(t,r,i,o){this.environment=t,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!o,this.name=this.environment.name,this.isChild=!!i,this.context=i||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(t,r),this.useDepths=this.useDepths||t.useDepths||t.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||t.useBlockParams;var u=t.opcodes,l=void 0,f=void 0,h=void 0,p=void 0;for(h=0,p=u.length;h0&&(i+=", "+o.join(", "));var u=0;Object.keys(this.aliases).forEach(function(h){var p=r.aliases[h];p.children&&p.referenceCount>1&&(i+=", alias"+ ++u+"="+h,p.children[0]="alias"+u)}),this.lookupPropertyFunctionIsUsed&&(i+=", "+this.lookupPropertyFunctionVarDeclaration());var l=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&l.push("blockParams"),this.useDepths&&l.push("depths");var f=this.mergeSource(i);return t?(l.push(f),Function.apply(this,l)):this.source.wrap(["function(",l.join(","),`) { + `,f,"}"])},mergeSource:function(t){var r=this.environment.isSimple,i=!this.forceBuffer,o=void 0,u=void 0,l=void 0,f=void 0;return this.source.each(function(h){h.appendToBuffer?(l?h.prepend(" + "):l=h,f=h):(l&&(u?l.prepend("buffer += "):o=!0,f.add(";"),l=f=void 0),u=!0,r||(i=!1))}),i?l?(l.prepend("return "),f.add(";")):u||this.source.push('return "";'):(t+=", buffer = "+(o?"":this.initializeBuffer()),l?(l.prepend("return buffer + "),f.add(";")):this.source.push("return buffer;")),t&&this.source.prepend("var "+t.substring(2)+(o?"":`; +`)),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return` + lookupProperty = container.lookupProperty || function(parent, propertyName) { + if (Object.prototype.hasOwnProperty.call(parent, propertyName)) { + return parent[propertyName]; + } + return undefined + } + `.trim()},blockValue:function(t){var r=this.aliasable("container.hooks.blockHelperMissing"),i=[this.contextName(0)];this.setupHelperArgs(t,0,i);var o=this.popStack();i.splice(1,0,o),this.push(this.source.functionCall(r,"call",i))},ambiguousBlockValue:function(){var t=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var i=this.topStack();r.splice(1,0,i),this.pushSource(["if (!",this.lastHelper,") { ",i," = ",this.source.functionCall(t,"call",r),"}"])},appendContent:function(t){this.pendingContent?t=this.pendingContent+t:this.pendingLocation=this.source.currentLocation,this.pendingContent=t},append:function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var t=this.popStack();this.pushSource(["if (",t," != null) { ",this.appendToBuffer(t,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(t){this.lastContext=t},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(t,r,i,o){var u=0;!o&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(t[u++])):this.pushContext(),this.resolvePath("context",t,u,r,i)},lookupBlockParam:function(t,r){this.useBlockParams=!0,this.push(["blockParams[",t[0],"][",t[1],"]"]),this.resolvePath("context",r,1)},lookupData:function(t,r,i){t?this.pushStackLiteral("container.data(data, "+t+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,i)},resolvePath:function(t,r,i,o,u){var l=this;if(this.options.strict||this.options.assumeObjects){this.push(dG(this.options.strict&&u,this,r,t));return}for(var f=r.length;ithis.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var t=this.inlineStack;this.inlineStack=[];for(var r=0,i=t.length;r{"use strict";Xa.__esModule=!0;function js(e){return e&&e.__esModule?e:{default:e}}var gG=mb(),mG=js(gG),vG=Fc(),yG=js(vG),uh=Ob(),lh=Nb(),_G=hw(),bG=js(_G),wG=Ga(),SG=js(wG),EG=Dc(),LG=js(EG),AG=mG.default.create;function pw(){var e=AG();return e.compile=function(t,r){return lh.compile(t,r,e)},e.precompile=function(t,r){return lh.precompile(t,r,e)},e.AST=yG.default,e.Compiler=lh.Compiler,e.JavaScriptCompiler=bG.default,e.Parser=uh.parser,e.parse=uh.parse,e.parseWithoutProcessing=uh.parseWithoutProcessing,e}var Ii=pw();Ii.create=pw;LG.default(Ii);Ii.Visitor=SG.default;Ii.default=Ii;Xa.default=Ii;dw.exports=Xa.default});var mw=_(Za=>{"use strict";Za.__esModule=!0;Za.print=OG;Za.PrintVisitor=Ue;function xG(e){return e&&e.__esModule?e:{default:e}}var PG=Ga(),CG=xG(PG);function OG(e){return new Ue().accept(e)}function Ue(){this.padding=0}Ue.prototype=new CG.default;Ue.prototype.pad=function(e){for(var t="",r=0,i=this.padding;r "+t+" }}")};Ue.prototype.PartialBlockStatement=function(e){var t="PARTIAL BLOCK:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),t+=" "+this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--,this.pad("{{> "+t+" }}")};Ue.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")};Ue.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")};Ue.prototype.SubExpression=function(e){for(var t=e.params,r=[],i=void 0,o=0,u=t.length;o{fh=Sw.exports=RG;fh.getSerialize=ww;function RG(e,t,r,i){return JSON.stringify(e,ww(t,i),r)}function ww(e,t){var r=[],i=[];return t==null&&(t=function(o,u){return r[0]===u?"[Circular ~]":"[Circular ~."+i.slice(0,r.indexOf(u)).join(".")+"]"}),function(o,u){if(r.length>0){var l=r.indexOf(this);~l?r.splice(l+1):r.push(this),~l?i.splice(l,Infinity,o):i.push(o),~r.indexOf(u)&&(u=t.call(this,o,u))}else r.push(u);return e==null?u:e.call(this,o,u)}}});var Rw=_((tz,Ow)=>{"use strict";var TG=yc(),Hs=bw(),Lw=U("semver"),Xe=Tn(),IG=Ew();function Aw(e){let t=e.mainTemplate,r=e.headerPartial,i=e.commitPartial,o=e.footerPartial,u=e.partials;return Xe.isString(r)&&Hs.registerPartial("header",r),Xe.isString(i)&&Hs.registerPartial("commit",i),Xe.isString(o)&&Hs.registerPartial("footer",o),Xe.forEach(u,function(l,f){Xe.isString(l)&&Hs.registerPartial(f,l)}),Hs.compile(t,{noEscape:!0})}function NG(e){return e&&typeof e!="function"?(t,r)=>{let i="",o="";if(Array.isArray(e))for(let u of e)i+=t[u]||"",o+=r[u]||"";else i+=t[e],o+=r[e];return i.localeCompare(o)}:e}function xw(e,t,r,i){let o=[],u=Xe.groupBy(t,function(l){return l[e]||""});return Xe.forEach(u,function(l,f){f===""&&(f=!1),i&&l.sort(i),o.push({title:f,commits:l})}),r&&o.sort(r),o}function Pw(e,t,r){let i=[];return Xe.forEach(e,function(o){let u=o.title,l=!1;Xe.forEach(i,function(f){if(f.title===u)return l=!0,f.notes.push(o),!1}),l||i.push({title:u,notes:[o]})}),t&&i.sort(t),r&&Xe.forEach(i,function(o){o.notes.sort(r)}),i}function DG(e,t,r){let i;try{e=JSON.parse(e)}catch(o){}return i=Xe.cloneDeep(e),typeof t=="function"?(i=t(i,r),i&&(i.raw=e),i):(Xe.forEach(t,function(o,u){let l=Xe.get(i,u);typeof o=="function"?l=o(l,u):l=o,Xe.set(i,u,l)}),i.raw=e,i)}function Cw(e,t,r){let i={};return i.commitGroups=xw(r.groupBy,e,r.commitGroupsSort,r.commitsSort),i.noteGroups=Pw(t,r.noteGroupsSort,r.notesSort),i}function MG(e,t,r,i){let o=[],u,l=Aw(e);return e.ignoreReverted?u=TG(t):u=Xe.clone(t),Xe.forEach(u,function(f){Xe.map(f.notes,function(h){return h.commit=f,h}),o=o.concat(f.notes)}),r=Xe.merge({},r,i,Cw(u,o,e)),i&&i.committerDate&&(r.date=i.committerDate),r.version&&Lw.valid(r.version)&&r.isPatch==null&&(r.isPatch=Lw.patch(r.version)!==0),r=e.finalizeContext(r,e,u,i,t),e.debug(`Your final context is: +`+IG(r,null,2)),l(r)}Ow.exports={compileTemplates:Aw,functionify:NG,getCommitGroups:xw,getNoteGroups:Pw,processCommit:DG,getExtraContext:Cw,generate:MG}});var Mw=_((rz,Dw)=>{"use strict";var Tw=sc(),eu=U("path").join,qG=U("fs").readFileSync,kG=U("semver").valid,FG=Ls(),Wt=Rw(),Nr=Tn(),BG={mainTemplate:eu(__dirname,"templates/template.hbs"),headerPartial:eu(__dirname,"templates/header.hbs"),commitPartial:eu(__dirname,"templates/commit.hbs"),footerPartial:eu(__dirname,"templates/footer.hbs")};function Iw(e,t){e=Nr.extend({commit:"commits",issue:"issues",date:Tw(new Date,"yyyy-mm-dd",!0)},e),!Nr.isBoolean(e.linkReferences)&&(e.repository||e.repoUrl)&&e.commit&&e.issue&&(e.linkReferences=!0),t=Nr.assign({groupBy:"type",commitsSort:"header",noteGroupsSort:"title",notesSort:"text",generateOn:function(i){return kG(i.version)},finalizeContext:function(i){return i},debug:function(){},reverse:!1,includeDetails:!1,ignoreReverted:!0,doFlush:!0},t);for(let[i,o]of Object.entries(BG))t[i]==null&&(t[i]=qG(o));(typeof t.transform!="function"&&Nr.isObject(t.transform)||Nr.isUndefined(t.transform))&&(t.transform=Nr.assign({hash:function(i){if(Nr.isString(i))return i.substring(0,7)},header:function(i){return i.substring(0,100)},committerDate:function(i){if(!!i)return Tw(i,"yyyy-mm-dd",!0)}},t.transform));let r=t.generateOn;return Nr.isString(r)?r=function(i){return!Nr.isUndefined(i[t.generateOn])}:typeof r!="function"&&(r=function(){return!1}),t.commitGroupsSort=Wt.functionify(t.commitGroupsSort),t.commitsSort=Wt.functionify(t.commitsSort),t.noteGroupsSort=Wt.functionify(t.noteGroupsSort),t.notesSort=Wt.functionify(t.notesSort),{context:e,options:t,generateOn:r}}function Nw(e,t){let r;({context:e,options:t,generateOn:r}=Iw(e,t));let i=[],o=!0,u,l=!0;return FG.obj(function(f,h,p){try{let g,d=Wt.processCommit(f,t.transform,e),b=d||f;t.reverse?(d&&i.push(d),r(b,i,e,t)&&(o=!1,g=Wt.generate(t,i,e,b),t.includeDetails?this.push({log:g,keyCommit:b}):this.push(g),i=[])):(r(b,i,e,t)&&(o=!1,g=Wt.generate(t,i,e,u),(!l||t.doFlush)&&(t.includeDetails?this.push({log:g,keyCommit:u}):this.push(g)),l=!1,i=[],u=b),d&&i.push(d)),p()}catch(g){p(g)}},function(f){if(!t.doFlush&&(t.reverse||o)){f(null);return}try{let h=Wt.generate(t,i,e,u);t.includeDetails?this.push({log:h,keyCommit:u}):this.push(h),f()}catch(h){f(h)}})}Nw.parseArray=(e,t,r)=>{let i;e=[...e],{context:t,options:r,generateOn:i}=Iw(t,r);let o=[],u;r.reverse&&e.reverse();let l=[];for(let f of e){let h=Wt.processCommit(f,r.transform,t),p=h||f;i(p,o,t,r)&&(l.push(Wt.generate(r,o,t,u)),u=p,o=[]),h&&o.push(h)}return r.reverse?(l.reverse(),Wt.generate(r,o,t,u)+l.join("")):l.join("")+Wt.generate(r,o,t,u)};Dw.exports=Nw});var ch=_((nz,kw)=>{"use strict";var xe=(...e)=>e.every(t=>t)?e.join(""):"",tt=e=>e?encodeURIComponent(e):"",Ws={sshtemplate:({domain:e,user:t,project:r,committish:i})=>`git@${e}:${t}/${r}.git${xe("#",i)}`,sshurltemplate:({domain:e,user:t,project:r,committish:i})=>`git+ssh://git@${e}/${t}/${r}.git${xe("#",i)}`,browsetemplate:({domain:e,user:t,project:r,committish:i,treepath:o})=>`https://${e}/${t}/${r}${xe("/",o,"/",tt(i))}`,browsefiletemplate:({domain:e,user:t,project:r,committish:i,treepath:o,path:u,fragment:l,hashformat:f})=>`https://${e}/${t}/${r}/${o}/${tt(i||"master")}/${u}${xe("#",f(l||""))}`,docstemplate:({domain:e,user:t,project:r,treepath:i,committish:o})=>`https://${e}/${t}/${r}${xe("/",i,"/",tt(o))}#readme`,httpstemplate:({auth:e,domain:t,user:r,project:i,committish:o})=>`git+https://${xe(e,"@")}${t}/${r}/${i}.git${xe("#",o)}`,filetemplate:({domain:e,user:t,project:r,committish:i,path:o})=>`https://${e}/${t}/${r}/raw/${tt(i)||"master"}/${o}`,shortcuttemplate:({type:e,user:t,project:r,committish:i})=>`${e}:${t}/${r}${xe("#",i)}`,pathtemplate:({user:e,project:t,committish:r})=>`${e}/${t}${xe("#",r)}`,bugstemplate:({domain:e,user:t,project:r})=>`https://${e}/${t}/${r}/issues`,hashformat:qw},$t={};$t.github=Object.assign({},Ws,{protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",filetemplate:({auth:e,user:t,project:r,committish:i,path:o})=>`https://${xe(e,"@")}raw.githubusercontent.com/${t}/${r}/${tt(i)||"master"}/${o}`,gittemplate:({auth:e,domain:t,user:r,project:i,committish:o})=>`git://${xe(e,"@")}${t}/${r}/${i}.git${xe("#",o)}`,tarballtemplate:({domain:e,user:t,project:r,committish:i})=>`https://codeload.${e}/${t}/${r}/tar.gz/${tt(i)||"master"}`,extract:e=>{let[,t,r,i,o]=e.pathname.split("/",5);if(!(i&&i!=="tree")&&(i||(o=e.hash.slice(1)),r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:o}}});$t.bitbucket=Object.assign({},Ws,{protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",tarballtemplate:({domain:e,user:t,project:r,committish:i})=>`https://${e}/${t}/${r}/get/${tt(i)||"master"}.tar.gz`,extract:e=>{let[,t,r,i]=e.pathname.split("/",4);if(!["get"].includes(i)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:e.hash.slice(1)}}});$t.gitlab=Object.assign({},Ws,{protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",httpstemplate:({auth:e,domain:t,user:r,project:i,committish:o})=>`git+https://${xe(e,"@")}${t}/${r}/${i}.git${xe("#",o)}`,tarballtemplate:({domain:e,user:t,project:r,committish:i})=>`https://${e}/${t}/${r}/repository/archive.tar.gz?ref=${tt(i)||"master"}`,extract:e=>{let t=e.pathname.slice(1);if(t.includes("/-/")||t.includes("/archive.tar.gz"))return;let r=t.split("/"),i=r.pop();i.endsWith(".git")&&(i=i.slice(0,-4));let o=r.join("/");if(!(!o||!i))return{user:o,project:i,committish:e.hash.slice(1)}}});$t.gist=Object.assign({},Ws,{protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",sshtemplate:({domain:e,project:t,committish:r})=>`git@${e}:${t}.git${xe("#",r)}`,sshurltemplate:({domain:e,project:t,committish:r})=>`git+ssh://git@${e}/${t}.git${xe("#",r)}`,browsetemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${xe("/",tt(r))}`,browsefiletemplate:({domain:e,project:t,committish:r,path:i,hashformat:o})=>`https://${e}/${t}${xe("/",tt(r))}${xe("#",o(i))}`,docstemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${xe("/",tt(r))}`,httpstemplate:({domain:e,project:t,committish:r})=>`git+https://${e}/${t}.git${xe("#",r)}`,filetemplate:({user:e,project:t,committish:r,path:i})=>`https://gist.githubusercontent.com/${e}/${t}/raw${xe("/",tt(r))}/${i}`,shortcuttemplate:({type:e,project:t,committish:r})=>`${e}:${t}${xe("#",r)}`,pathtemplate:({project:e,committish:t})=>`${e}${xe("#",t)}`,bugstemplate:({domain:e,project:t})=>`https://${e}/${t}`,gittemplate:({domain:e,project:t,committish:r})=>`git://${e}/${t}.git${xe("#",r)}`,tarballtemplate:({project:e,committish:t})=>`https://codeload.github.com/gist/${e}/tar.gz/${tt(t)||"master"}`,extract:e=>{let[,t,r,i]=e.pathname.split("/",4);if(i!=="raw"){if(!r){if(!t)return;r=t,t=null}return r.endsWith(".git")&&(r=r.slice(0,-4)),{user:t,project:r,committish:e.hash.slice(1)}}},hashformat:function(e){return e&&"file-"+qw(e)}});$t.sourcehut=Object.assign({},Ws,{protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",browsefiletemplate:({domain:e,user:t,project:r,committish:i,treepath:o,path:u,fragment:l,hashformat:f})=>`https://${e}/${t}/${r}/${o}/${tt(i||"main")}/${u}${xe("#",f(l||""))}`,filetemplate:({domain:e,user:t,project:r,committish:i,path:o})=>`https://${e}/${t}/${r}/blob/${tt(i)||"main"}/${o}`,httpstemplate:({domain:e,user:t,project:r,committish:i})=>`https://${e}/${t}/${r}.git${xe("#",i)}`,tarballtemplate:({domain:e,user:t,project:r,committish:i})=>`https://${e}/${t}/${r}/archive/${tt(i)||"main"}.tar.gz`,bugstemplate:({domain:e,user:t,project:r})=>`https://todo.sr.ht/${t}/${r}`,docstemplate:({domain:e,user:t,project:r,treepath:i,committish:o})=>`https://${e}/${t}/${r}${xe("/",i,"/",tt(o))}#readme`,extract:e=>{let[,t,r,i]=e.pathname.split("/",4);if(!["archive"].includes(i)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:e.hash.slice(1)}}});var UG=Object.keys($t);$t.byShortcut={};$t.byDomain={};for(let e of UG)$t.byShortcut[`${e}:`]=e,$t.byDomain[$t[e].domain]=e;function qw(e){return e.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-")}kw.exports=$t});var Uw=_((iz,Bw)=>{"use strict";var GG=ch(),Fw=class{constructor(t,r,i,o,u,l,f={}){Object.assign(this,GG[t]),this.type=t,this.user=r,this.auth=i,this.project=o,this.committish=u,this.default=l,this.opts=f}hash(){return this.committish?`#${this.committish}`:""}ssh(t){return this._fill(this.sshtemplate,t)}_fill(t,r){if(typeof t=="function"){let i=st(st(st({},this),this.opts),r);i.path||(i.path=""),i.path.startsWith("/")&&(i.path=i.path.slice(1)),i.noCommittish&&(i.committish=null);let o=t(i);return i.noGitPlus&&o.startsWith("git+")?o.slice(4):o}return null}sshurl(t){return this._fill(this.sshurltemplate,t)}browse(t,r,i){return typeof t!="string"?this._fill(this.browsetemplate,t):(typeof r!="string"&&(i=r,r=null),this._fill(this.browsefiletemplate,zr(st({},i),{fragment:r,path:t})))}docs(t){return this._fill(this.docstemplate,t)}bugs(t){return this._fill(this.bugstemplate,t)}https(t){return this._fill(this.httpstemplate,t)}git(t){return this._fill(this.gittemplate,t)}shortcut(t){return this._fill(this.shortcuttemplate,t)}path(t){return this._fill(this.pathtemplate,t)}tarball(t){return this._fill(this.tarballtemplate,zr(st({},t),{noCommittish:!1}))}file(t,r){return this._fill(this.filetemplate,zr(st({},r),{path:t}))}getDefaultRepresentation(){return this.default}toString(t){return this.default&&typeof this[this.default]=="function"?this[this.default](t):this.sshurl(t)}};Bw.exports=Fw});var jw=_((sz,Gw)=>{"use strict";Gw.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}});var Ww=_((oz,Hw)=>{"use strict";Hw.exports=we;we.Node=Un;we.create=we;function we(e){var t=this;if(t instanceof we||(t=new we),t.tail=null,t.head=null,t.length=0,e&&typeof e.forEach=="function")e.forEach(function(o){t.push(o)});else if(arguments.length>0)for(var r=0,i=arguments.length;r1)r=t;else if(this.head)i=this.head.next,r=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var o=0;i!==null;o++)r=e(r,i.value,o),i=i.next;return r};we.prototype.reduceReverse=function(e,t){var r,i=this.tail;if(arguments.length>1)r=t;else if(this.tail)i=this.tail.prev,r=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var o=this.length-1;i!==null;o--)r=e(r,i.value,o),i=i.prev;return r};we.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;r!==null;t++)e[t]=r.value,r=r.next;return e};we.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;r!==null;t++)e[t]=r.value,r=r.prev;return e};we.prototype.slice=function(e,t){t=t||this.length,t<0&&(t+=this.length),e=e||0,e<0&&(e+=this.length);var r=new we;if(tthis.length&&(t=this.length);for(var i=0,o=this.head;o!==null&&ithis.length&&(t=this.length);for(var i=this.length,o=this.tail;o!==null&&i>t;i--)o=o.prev;for(;o!==null&&i>e;i--,o=o.prev)r.push(o.value);return r};we.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var i=0,o=this.head;o!==null&&i{"use strict";var $G=Ww(),Gn=Symbol("max"),Dr=Symbol("length"),Ni=Symbol("lengthCalculator"),$s=Symbol("allowStale"),jn=Symbol("maxAge"),Mr=Symbol("dispose"),$w=Symbol("noDisposeOnSet"),Ze=Symbol("lruList"),er=Symbol("cache"),Yw=Symbol("updateAgeOnGet"),hh=()=>1,Vw=class{constructor(t){if(typeof t=="number"&&(t={max:t}),t||(t={}),t.max&&(typeof t.max!="number"||t.max<0))throw new TypeError("max must be a non-negative number");let r=this[Gn]=t.max||Infinity,i=t.length||hh;if(this[Ni]=typeof i!="function"?hh:i,this[$s]=t.stale||!1,t.maxAge&&typeof t.maxAge!="number")throw new TypeError("maxAge must be a number");this[jn]=t.maxAge||0,this[Mr]=t.dispose,this[$w]=t.noDisposeOnSet||!1,this[Yw]=t.updateAgeOnGet||!1,this.reset()}set max(t){if(typeof t!="number"||t<0)throw new TypeError("max must be a non-negative number");this[Gn]=t||Infinity,Ys(this)}get max(){return this[Gn]}set allowStale(t){this[$s]=!!t}get allowStale(){return this[$s]}set maxAge(t){if(typeof t!="number")throw new TypeError("maxAge must be a non-negative number");this[jn]=t,Ys(this)}get maxAge(){return this[jn]}set lengthCalculator(t){typeof t!="function"&&(t=hh),t!==this[Ni]&&(this[Ni]=t,this[Dr]=0,this[Ze].forEach(r=>{r.length=this[Ni](r.value,r.key),this[Dr]+=r.length})),Ys(this)}get lengthCalculator(){return this[Ni]}get length(){return this[Dr]}get itemCount(){return this[Ze].length}rforEach(t,r){r=r||this;for(let i=this[Ze].tail;i!==null;){let o=i.prev;zw(this,t,i,r),i=o}}forEach(t,r){r=r||this;for(let i=this[Ze].head;i!==null;){let o=i.next;zw(this,t,i,r),i=o}}keys(){return this[Ze].toArray().map(t=>t.key)}values(){return this[Ze].toArray().map(t=>t.value)}reset(){this[Mr]&&this[Ze]&&this[Ze].length&&this[Ze].forEach(t=>this[Mr](t.key,t.value)),this[er]=new Map,this[Ze]=new $G,this[Dr]=0}dump(){return this[Ze].map(t=>tu(this,t)?!1:{k:t.key,v:t.value,e:t.now+(t.maxAge||0)}).toArray().filter(t=>t)}dumpLru(){return this[Ze]}set(t,r,i){if(i=i||this[jn],i&&typeof i!="number")throw new TypeError("maxAge must be a number");let o=i?Date.now():0,u=this[Ni](r,t);if(this[er].has(t)){if(u>this[Gn])return Di(this,this[er].get(t)),!1;let h=this[er].get(t).value;return this[Mr]&&(this[$w]||this[Mr](t,h.value)),h.now=o,h.maxAge=i,h.value=r,this[Dr]+=u-h.length,h.length=u,this.get(t),Ys(this),!0}let l=new Kw(t,r,u,o,i);return l.length>this[Gn]?(this[Mr]&&this[Mr](t,r),!1):(this[Dr]+=l.length,this[Ze].unshift(l),this[er].set(t,this[Ze].head),Ys(this),!0)}has(t){if(!this[er].has(t))return!1;let r=this[er].get(t).value;return!tu(this,r)}get(t){return ph(this,t,!0)}peek(t){return ph(this,t,!1)}pop(){let t=this[Ze].tail;return t?(Di(this,t),t.value):null}del(t){Di(this,this[er].get(t))}load(t){this.reset();let r=Date.now();for(let i=t.length-1;i>=0;i--){let o=t[i],u=o.e||0;if(u===0)this.set(o.k,o.v);else{let l=u-r;l>0&&this.set(o.k,o.v,l)}}}prune(){this[er].forEach((t,r)=>ph(this,r,!1))}},ph=(e,t,r)=>{let i=e[er].get(t);if(i){let o=i.value;if(tu(e,o)){if(Di(e,i),!e[$s])return}else r&&(e[Yw]&&(i.value.now=Date.now()),e[Ze].unshiftNode(i));return o.value}},tu=(e,t)=>{if(!t||!t.maxAge&&!e[jn])return!1;let r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[jn]&&r>e[jn]},Ys=e=>{if(e[Dr]>e[Gn])for(let t=e[Ze].tail;e[Dr]>e[Gn]&&t!==null;){let r=t.prev;Di(e,t),t=r}},Di=(e,t)=>{if(t){let r=t.value;e[Mr]&&e[Mr](r.key,r.value),e[Dr]-=r.length,e[er].delete(r.key),e[Ze].removeNode(t)}},Kw=class{constructor(t,r,i,o,u){this.key=t,this.value=r,this.length=i,this.now=o,this.maxAge=u||0}},zw=(e,t,r,i)=>{let o=r.value;tu(e,o)&&(Di(e,r),e[$s]||(o=void 0)),o&&t.call(i,o.value,o.key,e)};Jw.exports=Vw});var mh=_((uz,gh)=>{"use strict";var Zw=U("url"),ru=ch(),YG=gh.exports=Uw(),VG=Xw(),dh=new VG({max:1e3}),KG={"git+ssh:":"sshurl","git+https:":"https","ssh:":"sshurl","git:":"git"};function zG(e){return KG[e]||e.slice(0,-1)}var JG={"git:":!0,"https:":!0,"git+https:":!0,"http:":!0,"git+http:":!0},XG=Object.keys(ru.byShortcut).concat(["http:","https:","git:","git+ssh:","git+https:","ssh:"]);gh.exports.fromUrl=function(e,t){if(typeof e!="string")return;let r=e+JSON.stringify(t||{});return dh.has(r)||dh.set(r,ZG(e,t)),dh.get(r)};function ZG(e,t){if(!e)return;let r=e9(e)?"github:"+e:QG(e),i=r9(r);if(!i)return i;let o=ru.byShortcut[i.protocol],u=ru.byDomain[i.hostname.startsWith("www.")?i.hostname.slice(4):i.hostname],l=o||u;if(!l)return;let f=ru[o||u],h=null;JG[i.protocol]&&(i.username||i.password)&&(h=`${i.username}${i.password?":"+i.password:""}`);let p=null,g=null,d=null,b=null;try{if(o){let S=i.pathname.startsWith("/")?i.pathname.slice(1):i.pathname,w=S.indexOf("@");w>-1&&(S=S.slice(w+1));let A=S.lastIndexOf("/");A>-1?(g=decodeURIComponent(S.slice(0,A)),g||(g=null),d=decodeURIComponent(S.slice(A+1))):d=decodeURIComponent(S),d.endsWith(".git")&&(d=d.slice(0,-4)),i.hash&&(p=decodeURIComponent(i.hash.slice(1))),b="shortcut"}else{if(!f.protocols.includes(i.protocol))return;let S=f.extract(i);if(!S)return;g=S.user&&decodeURIComponent(S.user),d=decodeURIComponent(S.project),p=decodeURIComponent(S.committish),b=zG(i.protocol)}}catch(S){if(S instanceof URIError)return;throw S}return new YG(l,g,h,d,p,b,t)}var QG=e=>{let t=e.indexOf(":"),r=e.slice(0,t+1);if(XG.includes(r))return e;let i=e.indexOf("@");return i>-1?i>t?`git+ssh://${e}`:e:e.indexOf("//")===t+1?e:e.slice(0,t+1)+"//"+e.slice(t+1)},e9=e=>{let t=e.indexOf("#"),r=e.indexOf("/"),i=e.indexOf("/",r+1),o=e.indexOf(":"),u=/\s/.exec(e),l=e.indexOf("@"),f=!u||t>-1&&u.index>t,h=l===-1||t>-1&&l>t,p=o===-1||t>-1&&o>t,g=i===-1||t>-1&&i>t,d=r>0,b=t>-1?e[t-1]!=="/":!e.endsWith("/"),S=!e.startsWith(".");return f&&d&&b&&S&&h&&p&&g},t9=e=>{let t=e.indexOf("@"),r=e.lastIndexOf("#"),i=e.indexOf(":"),o=e.lastIndexOf(":",r>-1?r:Infinity),u;return o>t&&(u=e.slice(0,o)+"/"+e.slice(o+1),i=u.indexOf(":"),o=u.lastIndexOf(":")),i===-1&&e.indexOf("//")===-1&&(u=`git+ssh://${u}`),u},r9=e=>{let t;try{t=new Zw.URL(e)}catch(i){}if(t)return t;let r=t9(e);try{t=new Zw.URL(r)}catch(i){}return t}});var eS=_((lz,Qw)=>{"use strict";var{parse:n9}=U("url"),i9=new RegExp(/^\/?:?([/\w-.]+)\/([\w-.]+)\/?$/),s9=new RegExp(/^\/repos\/([\w-.]+)\/([\w-.]+)\/(?:tarball|zipball)(?:\/.+)?$/),o9=new RegExp(/^\/([\w-.]+)\/([\w-.]+)\/(?:legacy\.(?:zip|tar\.gz))(?:\/.+)?$/);Qw.exports=e=>{let t=e.replace(/^git@/,"https://git@").replace(/\.git$/,""),r=n9(t),i=o=>({browse:u9(r,o),domain:r.host,project:o[2]||null,type:a9(r),user:o[1]||null});if(r.host){if(r.host.includes("api.github.com")){let o=s9.exec(r.pathname)||[];return i(o)}if(r.host.includes("codeload.github.com")){let o=o9.exec(r.pathname)||[];return i(o)}}return i(i9.exec(r.pathname)||[])};function a9(e){return typeof e.host!="string"?null:e.host.indexOf("github")!==-1?"github":e.host.indexOf("gitlab")!==-1?"gitlab":null}function u9(e,t){let i=`${e.protocol==="http:"?"http:":"https:"}//${e.host}/${t[1]}/${t[2]}`;return()=>i}});var rS=_((fz,tS)=>{"use strict";var l9=mh(),f9=eS();tS.exports=e=>{if(!e||!e.repository||typeof e.repository!="string"&&!e.repository.url)throw new Error('No valid "repository" data found in package metadata. Please see https://docs.npmjs.com/files/package.json#repository for proper syntax.');let t=typeof e.repository=="string"?e.repository:e.repository.url;return l9.fromUrl(t)||f9(t)}});var nu=_((cz,iS)=>{"use strict";var c9=U("process"),h9=U("child_process").exec,nS=U("semver").valid,p9=/tag:\s*(.+?)[,)]/gi,d9="git log --decorate --no-color",g9=/.+-\w+\.\d+$/;function m9(e,t){return t&&!new RegExp("^"+t+"@").test(e)?!1:/^.+@[0-9]+\.[0-9]+\.[0-9]+(-.+)?$/.test(e)}iS.exports=function(t,r){typeof t=="function"&&(r=t,t={});let i=Object.assign({maxBuffer:Infinity,cwd:c9.cwd()},t);if(i.package&&!i.lernaTags){r(new Error("opts.package should only be used when running in lerna mode"));return}h9(d9,i,function(o,u){if(o){r(o);return}let l=[],f;i.tagPrefix&&(f=new RegExp("^"+i.tagPrefix+"(.*)")),u.split(` +`).forEach(function(h){let p;for(;p=p9.exec(h);){let g=p[1];if(!(i.skipUnstable&&g9.test(g)))if(i.lernaTags)m9(g,i.package)&&l.push(g);else if(i.tagPrefix){let d=g.match(f);d&&nS(d[1])&&l.push(g)}else nS(g)&&l.push(g)}}),r(null,l)})}});var iu=_((hz,sS)=>{var v9="2.0.0",y9=256,_9=Number.MAX_SAFE_INTEGER||9007199254740991,b9=16;sS.exports={SEMVER_SPEC_VERSION:v9,MAX_LENGTH:y9,MAX_SAFE_INTEGER:_9,MAX_SAFE_COMPONENT_LENGTH:b9}});var vh=_((pz,oS)=>{var w9=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};oS.exports=w9});var _h=_((fn,aS)=>{var{MAX_SAFE_COMPONENT_LENGTH:yh}=iu(),S9=vh();fn=aS.exports={};var E9=fn.re=[],X=fn.src=[],Z=fn.t={},L9=0,de=(e,t,r)=>{let i=L9++;S9(e,i,t),Z[e]=i,X[i]=t,E9[i]=new RegExp(t,r?"g":void 0)};de("NUMERICIDENTIFIER","0|[1-9]\\d*");de("NUMERICIDENTIFIERLOOSE","[0-9]+");de("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");de("MAINVERSION",`(${X[Z.NUMERICIDENTIFIER]})\\.(${X[Z.NUMERICIDENTIFIER]})\\.(${X[Z.NUMERICIDENTIFIER]})`);de("MAINVERSIONLOOSE",`(${X[Z.NUMERICIDENTIFIERLOOSE]})\\.(${X[Z.NUMERICIDENTIFIERLOOSE]})\\.(${X[Z.NUMERICIDENTIFIERLOOSE]})`);de("PRERELEASEIDENTIFIER",`(?:${X[Z.NUMERICIDENTIFIER]}|${X[Z.NONNUMERICIDENTIFIER]})`);de("PRERELEASEIDENTIFIERLOOSE",`(?:${X[Z.NUMERICIDENTIFIERLOOSE]}|${X[Z.NONNUMERICIDENTIFIER]})`);de("PRERELEASE",`(?:-(${X[Z.PRERELEASEIDENTIFIER]}(?:\\.${X[Z.PRERELEASEIDENTIFIER]})*))`);de("PRERELEASELOOSE",`(?:-?(${X[Z.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${X[Z.PRERELEASEIDENTIFIERLOOSE]})*))`);de("BUILDIDENTIFIER","[0-9A-Za-z-]+");de("BUILD",`(?:\\+(${X[Z.BUILDIDENTIFIER]}(?:\\.${X[Z.BUILDIDENTIFIER]})*))`);de("FULLPLAIN",`v?${X[Z.MAINVERSION]}${X[Z.PRERELEASE]}?${X[Z.BUILD]}?`);de("FULL",`^${X[Z.FULLPLAIN]}$`);de("LOOSEPLAIN",`[v=\\s]*${X[Z.MAINVERSIONLOOSE]}${X[Z.PRERELEASELOOSE]}?${X[Z.BUILD]}?`);de("LOOSE",`^${X[Z.LOOSEPLAIN]}$`);de("GTLT","((?:<|>)?=?)");de("XRANGEIDENTIFIERLOOSE",`${X[Z.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);de("XRANGEIDENTIFIER",`${X[Z.NUMERICIDENTIFIER]}|x|X|\\*`);de("XRANGEPLAIN",`[v=\\s]*(${X[Z.XRANGEIDENTIFIER]})(?:\\.(${X[Z.XRANGEIDENTIFIER]})(?:\\.(${X[Z.XRANGEIDENTIFIER]})(?:${X[Z.PRERELEASE]})?${X[Z.BUILD]}?)?)?`);de("XRANGEPLAINLOOSE",`[v=\\s]*(${X[Z.XRANGEIDENTIFIERLOOSE]})(?:\\.(${X[Z.XRANGEIDENTIFIERLOOSE]})(?:\\.(${X[Z.XRANGEIDENTIFIERLOOSE]})(?:${X[Z.PRERELEASELOOSE]})?${X[Z.BUILD]}?)?)?`);de("XRANGE",`^${X[Z.GTLT]}\\s*${X[Z.XRANGEPLAIN]}$`);de("XRANGELOOSE",`^${X[Z.GTLT]}\\s*${X[Z.XRANGEPLAINLOOSE]}$`);de("COERCE",`(^|[^\\d])(\\d{1,${yh}})(?:\\.(\\d{1,${yh}}))?(?:\\.(\\d{1,${yh}}))?(?:$|[^\\d])`);de("COERCERTL",X[Z.COERCE],!0);de("LONETILDE","(?:~>?)");de("TILDETRIM",`(\\s*)${X[Z.LONETILDE]}\\s+`,!0);fn.tildeTrimReplace="$1~";de("TILDE",`^${X[Z.LONETILDE]}${X[Z.XRANGEPLAIN]}$`);de("TILDELOOSE",`^${X[Z.LONETILDE]}${X[Z.XRANGEPLAINLOOSE]}$`);de("LONECARET","(?:\\^)");de("CARETTRIM",`(\\s*)${X[Z.LONECARET]}\\s+`,!0);fn.caretTrimReplace="$1^";de("CARET",`^${X[Z.LONECARET]}${X[Z.XRANGEPLAIN]}$`);de("CARETLOOSE",`^${X[Z.LONECARET]}${X[Z.XRANGEPLAINLOOSE]}$`);de("COMPARATORLOOSE",`^${X[Z.GTLT]}\\s*(${X[Z.LOOSEPLAIN]})$|^$`);de("COMPARATOR",`^${X[Z.GTLT]}\\s*(${X[Z.FULLPLAIN]})$|^$`);de("COMPARATORTRIM",`(\\s*)${X[Z.GTLT]}\\s*(${X[Z.LOOSEPLAIN]}|${X[Z.XRANGEPLAIN]})`,!0);fn.comparatorTrimReplace="$1$2$3";de("HYPHENRANGE",`^\\s*(${X[Z.XRANGEPLAIN]})\\s+-\\s+(${X[Z.XRANGEPLAIN]})\\s*$`);de("HYPHENRANGELOOSE",`^\\s*(${X[Z.XRANGEPLAINLOOSE]})\\s+-\\s+(${X[Z.XRANGEPLAINLOOSE]})\\s*$`);de("STAR","(<|>)?=?\\s*\\*");de("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");de("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var bh=_((dz,uS)=>{var A9=["includePrerelease","loose","rtl"],x9=e=>e?typeof e!="object"?{loose:!0}:A9.filter(t=>e[t]).reduce((t,r)=>(t[r]=!0,t),{}):{};uS.exports=x9});var hS=_((gz,cS)=>{var lS=/^[0-9]+$/,fS=(e,t)=>{let r=lS.test(e),i=lS.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:efS(t,e);cS.exports={compareIdentifiers:fS,rcompareIdentifiers:P9}});var vS=_((mz,mS)=>{var su=vh(),{MAX_LENGTH:pS,MAX_SAFE_INTEGER:ou}=iu(),{re:dS,t:gS}=_h(),C9=bh(),{compareIdentifiers:Mi}=hS(),Yt=class{constructor(t,r){if(r=C9(r),t instanceof Yt){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid Version: ${t}`);if(t.length>pS)throw new TypeError(`version is longer than ${pS} characters`);su("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let i=t.trim().match(r.loose?dS[gS.LOOSE]:dS[gS.FULL]);if(!i)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>ou||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ou||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ou||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(o=>{if(/^[0-9]+$/.test(o)){let u=+o;if(u>=0&&u=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);i===-1&&this.prerelease.push(0)}r&&(Mi(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=[r,0]):this.prerelease=[r,0]);break;default:throw new Error(`invalid increment argument: ${t}`)}return this.format(),this.raw=this.version,this}};mS.exports=Yt});var wh=_((vz,wS)=>{var{MAX_LENGTH:O9}=iu(),{re:yS,t:_S}=_h(),bS=vS(),R9=bh(),T9=(e,t)=>{if(t=R9(t),e instanceof bS)return e;if(typeof e!="string"||e.length>O9||!(t.loose?yS[_S.LOOSE]:yS[_S.FULL]).test(e))return null;try{return new bS(e,t)}catch(i){return null}};wS.exports=T9});var ES=_((yz,SS)=>{var I9=wh(),N9=(e,t)=>{let r=I9(e,t);return r?r.version:null};SS.exports=N9});var AS=_((_z,LS)=>{var D9=wh(),M9=(e,t)=>{let r=D9(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};LS.exports=M9});var Sh=_((bz,q9)=>{q9.exports=["0BSD","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","AMDPLPA","AML","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","Abstyles","Adobe-2006","Adobe-Glyph","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-Protection","BSD-Source-Code","BSL-1.0","BUSL-1.1","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","BlueOak-1.0.0","Borceux","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-DE","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-4.0","CC-PDDC","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","ClArtistic","Community-Spec-1.0","Condor-1.1","Crossword","CrystalStacker","Cube","D-FSL-1.0","DOC","DRL-1.0","DSDP","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Entessa","ErlPL-1.1","Eurosym","FDK-AAC","FSFAP","FSFUL","FSFULLR","FTL","Fair","Frameworx-1.0","FreeBSD-DOC","FreeImage","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Giftware","Glide","Glulxe","HPND","HPND-sell-variant","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IJG","IPA","IPL-1.0","ISC","ImageMagick","Imlib2","Info-ZIP","Intel","Intel-ACPI","Interbase-1.0","JPNIC","JSON","JasPer-2.0","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","Latex2e","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-copyleft","MIT","MIT-0","MIT-CMU","MIT-Modern-Variant","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MITNFA","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-PL","MS-RL","MTLL","MakeIndex","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCGL-UK-2.0","NCSA","NGPL","NIST-PD","NIST-PD-fallback","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTP","NTP-0","Naumen","Net-SNMP","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OML","OPL-1.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenSSL","PDDL-1.0","PHP-3.0","PHP-3.01","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","QPL-1.0","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","SAX-PD","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SMLNJ","SMPPL","SNIA","SPL-1.0","SSH-OpenSSH","SSH-short","SSPL-1.0","SWL","Saxpath","Sendmail","Sendmail-8.23","SimPL-2.0","Sleepycat","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","TAPR-OHL-1.0","TCL","TCP-wrappers","TMate","TORQUE-1.1","TOSL","TU-Berlin-1.0","TU-Berlin-2.0","UCL-1.0","UPL-1.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","Unlicense","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Wsuipa","X11","XFree86-1.1","XSkat","Xerox","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","blessing","bzip2-1.0.5","bzip2-1.0.6","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","diffmark","dvipdfm","eGenix","etalab-2.0","gSOAP-1.3b","gnuplot","iMatix","libpng-2.0","libselinux-1.0","libtiff","mpich2","psfrag","psutils","xinetd","xpp","zlib-acknowledgement"]});var xS=_((wz,k9)=>{k9.exports=["AGPL-1.0","AGPL-3.0","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","GFDL-1.1","GFDL-1.2","GFDL-1.3","GPL-1.0","GPL-2.0","GPL-2.0-with-GCC-exception","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-3.0","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.1","LGPL-3.0","Nunit","StandardML-NJ","eCos-2.0","wxWindows"]});var PS=_((Sz,F9)=>{F9.exports=["389-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-3.1","gnu-javamail-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","i2p-gpl-java-exception","Libtool-exception","Linux-syscall-note","LLVM-exception","LZMA-exception","mif-exception","Nokia-Qt-exception-1.1","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","Swift-exception","u-boot-exception-2.0","Universal-FOSS-exception-1.0","WxWindows-exception-3.1"]});var OS=_((Ez,CS)=>{"use strict";var B9=[].concat(Sh()).concat(xS()),U9=PS();CS.exports=function(e){var t=0;function r(){return t1&&e[t-2]===" ")throw new Error("Space before `+`");return w&&{type:"OPERATOR",string:w}}function l(){return i(/[A-Za-z0-9-.]+/)}function f(){var w=l();if(!w)throw new Error("Expected idstring at offset "+t);return w}function h(){if(i("DocumentRef-")){var w=f();return{type:"DOCUMENTREF",string:w}}}function p(){if(i("LicenseRef-")){var w=f();return{type:"LICENSEREF",string:w}}}function g(){var w=t,A=l();if(B9.indexOf(A)!==-1)return{type:"LICENSE",string:A};if(U9.indexOf(A)!==-1)return{type:"EXCEPTION",string:A};t=w}function d(){return u()||h()||p()||g()}for(var b=[];r()&&(o(),!!r());){var S=d();if(!S)throw new Error("Unexpected `"+e[t]+"` at offset "+t);b.push(S)}return b}});var TS=_((Lz,RS)=>{"use strict";RS.exports=function(e){var t=0;function r(){return t{"use strict";var G9=OS(),j9=TS();IS.exports=function(e){return j9(G9(e))}});var US=_((xz,BS)=>{var H9=Eh(),W9=Sh();function au(e){try{return H9(e),!0}catch(t){return!1}}var NS=[["APGL","AGPL"],["Gpl","GPL"],["GLP","GPL"],["APL","Apache"],["ISD","ISC"],["GLP","GPL"],["IST","ISC"],["Claude","Clause"],[" or later","+"],[" International",""],["GNU","GPL"],["GUN","GPL"],["+",""],["GNU GPL","GPL"],["GNU/GPL","GPL"],["GNU GLP","GPL"],["GNU General Public License","GPL"],["Gnu public license","GPL"],["GNU Public License","GPL"],["GNU GENERAL PUBLIC LICENSE","GPL"],["MTI","MIT"],["Mozilla Public License","MPL"],["Universal Permissive License","UPL"],["WTH","WTF"],["-License",""]],$9=0,Y9=1,DS=[function(e){return e.toUpperCase()},function(e){return e.trim()},function(e){return e.replace(/\./g,"")},function(e){return e.replace(/\s+/g,"")},function(e){return e.replace(/\s+/g,"-")},function(e){return e.replace("v","-")},function(e){return e.replace(/,?\s*(\d)/,"-$1")},function(e){return e.replace(/,?\s*(\d)/,"-$1.0")},function(e){return e.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(e){return e.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(e){return e[0].toUpperCase()+e.slice(1)},function(e){return e.replace("/","-")},function(e){return e.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(e){return e.indexOf("3.0")!==-1?e+"-or-later":e+"-only"},function(e){return e+"only"},function(e){return e.replace(/(\d)$/,"-$1.0")},function(e){return e.replace(/(-| )?(\d)$/,"-$2-Clause")},function(e){return e.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(e){return e.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(e){return e.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(e){return e.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(e){return e.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(e){return e.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(e){return"CC-"+e},function(e){return"CC-"+e+"-4.0"},function(e){return e.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(e){return"CC-"+e.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}],Lh=W9.map(function(e){var t=/^(.*)-\d+\.\d+$/.exec(e);return t?[t[0],t[1]]:[e,null]}).reduce(function(e,t){var r=t[1];return e[r]=e[r]||[],e[r].push(t[0]),e},{}),V9=Object.keys(Lh).map(function(t){return[t,Lh[t]]}).filter(function(t){return t[1].length===1&&t[0]!==null&&t[0]!=="APL"}).map(function(t){return[t[0],t[1][0]]});Lh=void 0;var MS=[["UNLI","Unlicense"],["WTF","WTFPL"],["2 CLAUSE","BSD-2-Clause"],["2-CLAUSE","BSD-2-Clause"],["3 CLAUSE","BSD-3-Clause"],["3-CLAUSE","BSD-3-Clause"],["AFFERO","AGPL-3.0-or-later"],["AGPL","AGPL-3.0-or-later"],["APACHE","Apache-2.0"],["ARTISTIC","Artistic-2.0"],["Affero","AGPL-3.0-or-later"],["BEER","Beerware"],["BOOST","BSL-1.0"],["BSD","BSD-2-Clause"],["CDDL","CDDL-1.1"],["ECLIPSE","EPL-1.0"],["FUCK","WTFPL"],["GNU","GPL-3.0-or-later"],["LGPL","LGPL-3.0-or-later"],["GPLV1","GPL-1.0-only"],["GPL-1","GPL-1.0-only"],["GPLV2","GPL-2.0-only"],["GPL-2","GPL-2.0-only"],["GPL","GPL-3.0-or-later"],["MIT +NO-FALSE-ATTRIBS","MITNFA"],["MIT","MIT"],["MPL","MPL-2.0"],["X11","X11"],["ZLIB","Zlib"]].concat(V9),K9=0,z9=1,qS=function(e){for(var t=0;t-1)return i[z9]}return null},FS=function(e,t){for(var r=0;r-1){var u=e.replace(o,i[Y9]),l=t(u);if(l!==null)return l}}return null};BS.exports=function(e,t){t=t||{};var r=t.upgrade===void 0?!0:!!t.upgrade;function i(f){return r?J9(f):f}var o=typeof e=="string"&&e.trim().length!==0;if(!o)throw Error("Invalid argument. Expected non-empty string.");if(e=e.trim(),au(e))return i(e);var u=e.replace(/\+$/,"").trim();if(au(u))return i(u);var l=qS(e);return l!==null||(l=FS(e,function(f){return au(f)?f:qS(f)}),l!==null)||(l=kS(e),l!==null)||(l=FS(e,kS),l!==null)?i(l):null};function J9(e){return["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(e)!==-1?e+"-only":["GPL-1.0+","GPL-2.0+","GPL-3.0+","LGPL-2.0+","LGPL-2.1+","LGPL-3.0+","AGPL-1.0+","AGPL-3.0+"].indexOf(e)!==-1?e.replace(/\+$/,"-or-later"):["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(e)!==-1?e+"-or-later":e}});var xh=_((Pz,HS)=>{var X9=Eh(),Z9=US(),GS='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN "',Q9=/^SEE LICEN[CS]E IN (.+)$/;function jS(e,t){return t.slice(0,e.length)===e}function Ah(e){if(e.hasOwnProperty("license")){var t=e.license;return jS("LicenseRef",t)||jS("DocumentRef",t)}else return Ah(e.left)||Ah(e.right)}HS.exports=function(e){var t;try{t=X9(e)}catch(u){var r;if(e==="UNLICENSED"||e==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(r=Q9.exec(e))return{validForOldPackages:!0,validForNewPackages:!0,inFile:r[1]};var i={validForOldPackages:!1,validForNewPackages:!1,warnings:[GS]};if(e.trim().length!==0){var o=Z9(e);o&&i.warnings.push('license is similar to the valid expression "'+o+'"')}return i}return Ah(t)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[GS]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}}});var $S=_((Cz,WS)=>{"use strict";var ej="Function.prototype.bind called on incompatible ",Ph=Array.prototype.slice,tj=Object.prototype.toString,rj="[object Function]";WS.exports=function(t){var r=this;if(typeof r!="function"||tj.call(r)!==rj)throw new TypeError(ej+r);for(var i=Ph.call(arguments,1),o,u=function(){if(this instanceof o){var g=r.apply(this,i.concat(Ph.call(arguments)));return Object(g)===g?g:this}else return r.apply(t,i.concat(Ph.call(arguments)))},l=Math.max(0,r.length-i.length),f=[],h=0;h{"use strict";var nj=$S();YS.exports=Function.prototype.bind||nj});var zS=_((Rz,KS)=>{"use strict";var ij=VS();KS.exports=ij.call(Function.call,Object.prototype.hasOwnProperty)});var JS=_((Tz,sj)=>{sj.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:">= 13.4 && < 13.5",worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var Vs=_((Iz,QS)=>{"use strict";var oj=zS();function aj(e,t){for(var r=e.split("."),i=t.split(" "),o=i.length>1?i[0]:"=",u=(i.length>1?i[1]:i[0]).split("."),l=0;l<3;++l){var f=parseInt(r[l]||0,10),h=parseInt(u[l]||0,10);if(f!==h)return o==="<"?f="?f>=h:!1}return o===">="}function XS(e,t){var r=t.split(/ ?&& ?/);if(r.length===0)return!1;for(var i=0;i{eE.exports=lj;function lj(e){if(!!e&&e!=="ERROR: No README data found!"){e=e.trim().split(` +`);for(var t=0;e[t]&&e[t].trim().match(/^(#|$)/);t++);for(var r=e.length,i=t+1;i{fj.exports={topLevel:{dependancies:"dependencies",dependecies:"dependencies",depdenencies:"dependencies",devEependencies:"devDependencies",depends:"dependencies","dev-dependencies":"devDependencies",devDependences:"devDependencies",devDepenencies:"devDependencies",devdependencies:"devDependencies",repostitory:"repository",repo:"repository",prefereGlobal:"preferGlobal",hompage:"homepage",hampage:"homepage",autohr:"author",autor:"author",contributers:"contributors",publicationConfig:"publishConfig",script:"scripts"},bugs:{web:"url",name:"url"},script:{server:"start",tests:"test"}}});var sE=_((Mz,iE)=>{var cj=ES(),hj=AS(),pj=xh(),uu=mh(),dj=Vs(),gj=["dependencies","devDependencies","optionalDependencies"],mj=tE(),Ch=U("url"),cn=rE();iE.exports={warn:function(){},fixRepositoryField:function(e){if(e.repositories&&(this.warn("repositories"),e.repository=e.repositories[0]),!e.repository)return this.warn("missingRepository");typeof e.repository=="string"&&(e.repository={type:"git",url:e.repository});var t=e.repository.url||"";if(t){var r=uu.fromUrl(t);r&&(t=e.repository.url=r.getDefaultRepresentation()==="shortcut"?r.https():r.toString())}t.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)&&this.warn("brokenGitUrl",t)},fixTypos:function(e){Object.keys(cn.topLevel).forEach(function(t){Object.prototype.hasOwnProperty.call(e,t)&&this.warn("typo",t,cn.topLevel[t])},this)},fixScriptsField:function(e){if(!!e.scripts){if(typeof e.scripts!="object"){this.warn("nonObjectScripts"),delete e.scripts;return}Object.keys(e.scripts).forEach(function(t){typeof e.scripts[t]!="string"?(this.warn("nonStringScript"),delete e.scripts[t]):cn.script[t]&&!e.scripts[cn.script[t]]&&this.warn("typo",t,cn.script[t],"scripts")},this)}},fixFilesField:function(e){var t=e.files;t&&!Array.isArray(t)?(this.warn("nonArrayFiles"),delete e.files):e.files&&(e.files=e.files.filter(function(r){return!r||typeof r!="string"?(this.warn("invalidFilename",r),!1):!0},this))},fixBinField:function(e){if(!!e.bin&&typeof e.bin=="string"){var t={},r;(r=e.name.match(/^@[^/]+[/](.*)$/))?t[r[1]]=e.bin:t[e.name]=e.bin,e.bin=t}},fixManField:function(e){!e.man||typeof e.man=="string"&&(e.man=[e.man])},fixBundleDependenciesField:function(e){var t="bundledDependencies",r="bundleDependencies";e[t]&&!e[r]&&(e[r]=e[t],delete e[t]),e[r]&&!Array.isArray(e[r])?(this.warn("nonArrayBundleDependencies"),delete e[r]):e[r]&&(e[r]=e[r].filter(function(i){return!i||typeof i!="string"?(this.warn("nonStringBundleDependency",i),!1):(e.dependencies||(e.dependencies={}),Object.prototype.hasOwnProperty.call(e.dependencies,i)&&(this.warn("nonDependencyBundleDependency",i),e.dependencies[i]="*"),!0)},this))},fixDependencies:function(e,t){Lj(e,this.warn),Sj(e,this.warn),this.fixBundleDependenciesField(e),["dependencies","devDependencies"].forEach(function(r){if(r in e){if(!e[r]||typeof e[r]!="object"){this.warn("nonObjectDependencies",r),delete e[r];return}Object.keys(e[r]).forEach(function(i){var o=e[r][i];typeof o!="string"&&(this.warn("nonStringDependency",i,JSON.stringify(o)),delete e[r][i]);var u=uu.fromUrl(e[r][i]);u&&(e[r][i]=u.toString())},this)}},this)},fixModulesField:function(e){e.modules&&(this.warn("deprecatedModules"),delete e.modules)},fixKeywordsField:function(e){typeof e.keywords=="string"&&(e.keywords=e.keywords.split(/,\s+/)),e.keywords&&!Array.isArray(e.keywords)?(delete e.keywords,this.warn("nonArrayKeywords")):e.keywords&&(e.keywords=e.keywords.filter(function(t){return typeof t!="string"||!t?(this.warn("nonStringKeyword"),!1):!0},this))},fixVersionField:function(e,t){var r=!t;if(!e.version)return e.version="",!0;if(!cj(e.version,r))throw new Error('Invalid version: "'+e.version+'"');return e.version=hj(e.version,r),!0},fixPeople:function(e){nE(e,bj),nE(e,wj)},fixNameField:function(e,t){typeof t=="boolean"?t={strict:t}:typeof t=="undefined"&&(t={});var r=t.strict;if(!e.name&&!r){e.name="";return}if(typeof e.name!="string")throw new Error("name field must be a string.");r||(e.name=e.name.trim()),_j(e.name,r,t.allowLegacyCase),dj(e.name)&&this.warn("conflictingName",e.name)},fixDescriptionField:function(e){e.description&&typeof e.description!="string"&&(this.warn("nonStringDescription"),delete e.description),e.readme&&!e.description&&(e.description=mj(e.readme)),e.description===void 0&&delete e.description,e.description||this.warn("missingDescription")},fixReadmeField:function(e){e.readme||(this.warn("missingReadme"),e.readme="ERROR: No README data found!")},fixBugsField:function(e){if(!e.bugs&&e.repository&&e.repository.url){var t=uu.fromUrl(e.repository.url);t&&t.bugs()&&(e.bugs={url:t.bugs()})}else if(e.bugs){var r=/^.+@.*\..+$/;if(typeof e.bugs=="string")r.test(e.bugs)?e.bugs={email:e.bugs}:Ch.parse(e.bugs).protocol?e.bugs={url:e.bugs}:this.warn("nonEmailUrlBugsString");else{Aj(e.bugs,this.warn);var i=e.bugs;e.bugs={},i.url&&(typeof i.url=="string"&&Ch.parse(i.url).protocol?e.bugs.url=i.url:this.warn("nonUrlBugsUrlField")),i.email&&(typeof i.email=="string"&&r.test(i.email)?e.bugs.email=i.email:this.warn("nonEmailBugsEmailField"))}!e.bugs.email&&!e.bugs.url&&(delete e.bugs,this.warn("emptyNormalizedBugs"))}},fixHomepageField:function(e){if(!e.homepage&&e.repository&&e.repository.url){var t=uu.fromUrl(e.repository.url);t&&t.docs()&&(e.homepage=t.docs())}if(!!e.homepage){if(typeof e.homepage!="string")return this.warn("nonUrlHomepage"),delete e.homepage;Ch.parse(e.homepage).protocol||(e.homepage="http://"+e.homepage)}},fixLicenseField:function(e){let t=e.license||e.licence;if(!t)return this.warn("missingLicense");if(typeof t!="string"||t.length<1||t.trim()==="")return this.warn("invalidLicense");if(!pj(t).validForNewPackages)return this.warn("invalidLicense")}};function vj(e){if(e.charAt(0)!=="@")return!1;var t=e.slice(1).split("/");return t.length!==2?!1:t[0]&&t[1]&&t[0]===encodeURIComponent(t[0])&&t[1]===encodeURIComponent(t[1])}function yj(e){return!e.match(/[/@\s+%:]/)&&e===encodeURIComponent(e)}function _j(e,t,r){if(e.charAt(0)==="."||!(vj(e)||yj(e))||t&&!r&&e!==e.toLowerCase()||e.toLowerCase()==="node_modules"||e.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(e))}function nE(e,t){return e.author&&(e.author=t(e.author)),["maintainers","contributors"].forEach(function(r){!Array.isArray(e[r])||(e[r]=e[r].map(t))}),e}function bj(e){if(typeof e=="string")return e;var t=e.name||"",r=e.url||e.web,i=r?" ("+r+")":"",o=e.email||e.mail,u=o?" <"+o+">":"";return t+u+i}function wj(e){if(typeof e!="string")return e;var t=e.match(/^([^(<]+)/),r=e.match(/\(([^)]+)\)/),i=e.match(/<([^>]+)>/),o={};return t&&t[0].trim()&&(o.name=t[0].trim()),i&&(o.email=i[1]),r&&(o.url=r[1]),o}function Sj(e,t){var r=e.optionalDependencies;if(!!r){var i=e.dependencies||{};Object.keys(r).forEach(function(o){i[o]=r[o]}),e.dependencies=i}}function Ej(e,t,r){if(!e)return{};if(typeof e=="string"&&(e=e.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(e))return e;r("deprecatedArrayDependencies",t);var i={};return e.filter(function(o){return typeof o=="string"}).forEach(function(o){o=o.trim().split(/(:?[@\s><=])/);var u=o.shift(),l=o.join("");l=l.trim(),l=l.replace(/^@/,""),i[u]=l}),i}function Lj(e,t){gj.forEach(function(r){!e[r]||(e[r]=Ej(e[r],r,t))})}function Aj(e,t){!e||Object.keys(e).forEach(function(r){cn.bugs[r]&&(t("typo",r,cn.bugs[r],"bugs"),e[cn.bugs[r]]=e[r],delete e[r])})}});var oE=_((qz,xj)=>{xj.exports={repositories:"'repositories' (plural) Not supported. Please pick one as the 'repository' field",missingRepository:"No repository field.",brokenGitUrl:"Probably broken git url: %s",nonObjectScripts:"scripts must be an object",nonStringScript:"script values must be string commands",nonArrayFiles:"Invalid 'files' member",invalidFilename:"Invalid filename in 'files' list: %s",nonArrayBundleDependencies:"Invalid 'bundleDependencies' list. Must be array of package names",nonStringBundleDependency:"Invalid bundleDependencies member: %s",nonDependencyBundleDependency:"Non-dependency in bundleDependencies: %s",nonObjectDependencies:"%s field must be an object",nonStringDependency:"Invalid dependency: %s %s",deprecatedArrayDependencies:"specifying %s as array is deprecated",deprecatedModules:"modules field is deprecated",nonArrayKeywords:"keywords should be an array of strings",nonStringKeyword:"keywords should be an array of strings",conflictingName:"%s is also the name of a node core module.",nonStringDescription:"'description' field should be a string",missingDescription:"No description",missingReadme:"No README data",missingLicense:"No license field.",nonEmailUrlBugsString:"Bug string field must be url, email, or {email,url}",nonUrlBugsUrlField:"bugs.url field must be a string url. Deleted.",nonEmailBugsEmailField:"bugs.email field must be a string email. Deleted.",emptyNormalizedBugs:"Normalized value of bugs field is an empty object. Deleted.",nonUrlHomepage:"homepage field must be a string url. Deleted.",invalidLicense:"license should be a valid SPDX license expression",typo:"%s should probably be %s."}});var lE=_((kz,uE)=>{var aE=U("util"),Oh=oE();uE.exports=function(){var e=Array.prototype.slice.call(arguments,0),t=e.shift();if(t==="typo")return Pj.apply(null,e);var r=Oh[t]?Oh[t]:t+": '%s'";return e.unshift(r),aE.format.apply(null,e)};function Pj(e,t,r){return r&&(e=r+"['"+e+"']",t=r+"['"+t+"']"),aE.format(Oh.typo,e,t)}});var pE=_((Fz,hE)=>{hE.exports=fE;var Rh=sE();fE.fixer=Rh;var Cj=lE(),Oj=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],Rj=["dependencies","people","typos"],Th=Oj.map(function(e){return cE(e)+"Field"});Th=Th.concat(Rj);function fE(e,t,r){t===!0&&(t=null,r=!0),r||(r=!1),(!t||e.private)&&(t=function(i){}),e.scripts&&e.scripts.install==="node-gyp rebuild"&&!e.scripts.preinstall&&(e.gypfile=!0),Rh.warn=function(){t(Cj.apply(null,arguments))},Th.forEach(function(i){Rh["fix"+cE(i)](e,r)}),e._id=e.name+"@"+e.version}function cE(e){return e.charAt(0).toUpperCase()+e.slice(1)}});var vE=_(Hn=>{Hn.parse=Hn.decode=Tj;Hn.stringify=Hn.encode=dE;Hn.safe=qi;Hn.unsafe=lu;var Ih=typeof process!="undefined"&&process.platform==="win32"?`\r +`:` +`;function dE(e,t){var r=[],i="";typeof t=="string"?t={section:t,whitespace:!1}:(t=t||{},t.whitespace=t.whitespace===!0);var o=t.whitespace?" = ":"=";return Object.keys(e).forEach(function(u,l,f){var h=e[u];h&&Array.isArray(h)?h.forEach(function(p){i+=qi(u+"[]")+o+qi(p)+` +`}):h&&typeof h=="object"?r.push(u):i+=qi(u)+o+qi(h)+Ih}),t.section&&i.length&&(i="["+qi(t.section)+"]"+Ih+i),r.forEach(function(u,l,f){var h=gE(u).join("\\."),p=(t.section?t.section+".":"")+h,g=dE(e[u],{section:p,whitespace:t.whitespace});i.length&&g.length&&(i+=Ih),i+=g}),i}function gE(e){return e.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(function(t){return t.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")})}function Tj(e){var t={},r=t,i=null,o=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i,u=e.split(/[\r\n]+/g);return u.forEach(function(l,f,h){if(!(!l||l.match(/^\s*[;#]/))){var p=l.match(o);if(!!p){if(p[1]!==void 0){if(i=lu(p[1]),i==="__proto__"){r={};return}r=t[i]=t[i]||{};return}var g=lu(p[2]);if(g!=="__proto__"){var d=p[3]?lu(p[4]):!0;switch(d){case"true":case"false":case"null":d=JSON.parse(d)}if(g.length>2&&g.slice(-2)==="[]"){if(g=g.substring(0,g.length-2),g==="__proto__")return;r[g]?Array.isArray(r[g])||(r[g]=[r[g]]):r[g]=[]}Array.isArray(r[g])?r[g].push(d):r[g]=d}}}}),Object.keys(t).filter(function(l,f,h){if(!t[l]||typeof t[l]!="object"||Array.isArray(t[l]))return!1;var p=gE(l),g=t,d=p.pop(),b=d.replace(/\\\./g,".");return p.forEach(function(S,w,A){S!=="__proto__"&&((!g[S]||typeof g[S]!="object")&&(g[S]={}),g=g[S])}),g===t&&b===d?!1:(g[b]=t[l],!0)}).forEach(function(l,f,h){delete t[l]}),t}function mE(e){return e.charAt(0)==='"'&&e.slice(-1)==='"'||e.charAt(0)==="'"&&e.slice(-1)==="'"}function qi(e){return typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&mE(e)||e!==e.trim()?JSON.stringify(e):e.replace(/;/g,"\\;").replace(/#/g,"\\#")}function lu(e,t){if(e=(e||"").trim(),mE(e)){e.charAt(0)==="'"&&(e=e.substr(1,e.length-2));try{e=JSON.parse(e)}catch(f){}}else{for(var r=!1,i="",o=0,u=e.length;o{var yE=U("fs"),Ij=vE(),Nh=U("path");bE.exports=function(e,t){_E(e,function(r){if(!r)return t(new Error("no gitconfig to be found at "+e));yE.readFile(r,function(i,o){if(i)return t(i);try{var u=Nj(Ij.parse(o.toString()))}catch(l){return t(l)}t(!1,u)})})};function Nj(e){var t={};return Object.keys(e).forEach(function(r){if(r.indexOf('"')>-1){var i=r.split('"'),o=i.shift().trim(),u=i.shift().trim();t[o]||(t[o]={}),t[o][u]=e[r]}else t[r]=e[r]}),t}function _E(e,t){var r=Nh.join(e,".git/config");yE.exists(r,function(i){if(i)return t(r);if(e===Nh.resolve(e,".."))return t(!1);_E(Nh.resolve(e,".."),t)})}});var AE=_((Gz,LE)=>{"use strict";var SE=function(e,t,r){return function(){for(var i=this,o=new Array(arguments.length),u=0;u{"use strict";var Dj=wE(),Mj=AE();xE.exports=e=>Mj(Dj)(e||process.cwd()).then(t=>{var r=t.remote&&t.remote.origin&&t.remote.origin.url;if(!r)throw new Error("Couldn't find origin url");return r})});var OE=_((Hz,CE)=>{var hn=U("constants"),qj=process.cwd,fu=null,kj=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return fu||(fu=qj.call(process)),fu};try{process.cwd()}catch(e){}typeof process.chdir=="function"&&(Dh=process.chdir,process.chdir=function(e){fu=null,Dh.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Dh));var Dh;CE.exports=Fj;function Fj(e){hn.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=u(e.chown),e.fchown=u(e.fchown),e.lchown=u(e.lchown),e.chmod=i(e.chmod),e.fchmod=i(e.fchmod),e.lchmod=i(e.lchmod),e.chownSync=l(e.chownSync),e.fchownSync=l(e.fchownSync),e.lchownSync=l(e.lchownSync),e.chmodSync=o(e.chmodSync),e.fchmodSync=o(e.fchmodSync),e.lchmodSync=o(e.lchmodSync),e.stat=f(e.stat),e.fstat=f(e.fstat),e.lstat=f(e.lstat),e.statSync=h(e.statSync),e.fstatSync=h(e.fstatSync),e.lstatSync=h(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(g,d,b){b&&process.nextTick(b)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(g,d,b,S){S&&process.nextTick(S)},e.lchownSync=function(){}),kj==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(g){function d(b,S,w){var A=Date.now(),C=0;g(b,S,function O(F){if(F&&(F.code==="EACCES"||F.code==="EPERM")&&Date.now()-A<6e4){setTimeout(function(){e.stat(S,function(k,I){k&&k.code==="ENOENT"?g(b,S,O):w(F)})},C),C<100&&(C+=10);return}w&&w(F)})}return Object.setPrototypeOf&&Object.setPrototypeOf(d,g),d}(e.rename)),e.read=typeof e.read!="function"?e.read:function(g){function d(b,S,w,A,C,O){var F;if(O&&typeof O=="function"){var k=0;F=function(I,K,Q){if(I&&I.code==="EAGAIN"&&k<10)return k++,g.call(e,b,S,w,A,C,F);O.apply(this,arguments)}}return g.call(e,b,S,w,A,C,F)}return Object.setPrototypeOf&&Object.setPrototypeOf(d,g),d}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(g){return function(d,b,S,w,A){for(var C=0;;)try{return g.call(e,d,b,S,w,A)}catch(O){if(O.code==="EAGAIN"&&C<10){C++;continue}throw O}}}(e.readSync);function t(g){g.lchmod=function(d,b,S){g.open(d,hn.O_WRONLY|hn.O_SYMLINK,b,function(w,A){if(w){S&&S(w);return}g.fchmod(A,b,function(C){g.close(A,function(O){S&&S(C||O)})})})},g.lchmodSync=function(d,b){var S=g.openSync(d,hn.O_WRONLY|hn.O_SYMLINK,b),w=!0,A;try{A=g.fchmodSync(S,b),w=!1}finally{if(w)try{g.closeSync(S)}catch(C){}else g.closeSync(S)}return A}}function r(g){hn.hasOwnProperty("O_SYMLINK")&&g.futimes?(g.lutimes=function(d,b,S,w){g.open(d,hn.O_SYMLINK,function(A,C){if(A){w&&w(A);return}g.futimes(C,b,S,function(O){g.close(C,function(F){w&&w(O||F)})})})},g.lutimesSync=function(d,b,S){var w=g.openSync(d,hn.O_SYMLINK),A,C=!0;try{A=g.futimesSync(w,b,S),C=!1}finally{if(C)try{g.closeSync(w)}catch(O){}else g.closeSync(w)}return A}):g.futimes&&(g.lutimes=function(d,b,S,w){w&&process.nextTick(w)},g.lutimesSync=function(){})}function i(g){return g&&function(d,b,S){return g.call(e,d,b,function(w){p(w)&&(w=null),S&&S.apply(this,arguments)})}}function o(g){return g&&function(d,b){try{return g.call(e,d,b)}catch(S){if(!p(S))throw S}}}function u(g){return g&&function(d,b,S,w){return g.call(e,d,b,S,function(A){p(A)&&(A=null),w&&w.apply(this,arguments)})}}function l(g){return g&&function(d,b,S){try{return g.call(e,d,b,S)}catch(w){if(!p(w))throw w}}}function f(g){return g&&function(d,b,S){typeof b=="function"&&(S=b,b=null);function w(A,C){C&&(C.uid<0&&(C.uid+=4294967296),C.gid<0&&(C.gid+=4294967296)),S&&S.apply(this,arguments)}return b?g.call(e,d,b,w):g.call(e,d,w)}}function h(g){return g&&function(d,b){var S=b?g.call(e,d,b):g.call(e,d);return S&&(S.uid<0&&(S.uid+=4294967296),S.gid<0&&(S.gid+=4294967296)),S}}function p(g){if(!g||g.code==="ENOSYS")return!0;var d=!process.getuid||process.getuid()!==0;return!!(d&&(g.code==="EINVAL"||g.code==="EPERM"))}}});var IE=_((Wz,TE)=>{var RE=U("stream").Stream;TE.exports=Bj;function Bj(e){return{ReadStream:t,WriteStream:r};function t(i,o){if(!(this instanceof t))return new t(i,o);RE.call(this);var u=this;this.path=i,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,o=o||{};for(var l=Object.keys(o),f=0,h=l.length;fthis.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){u._read()});return}e.open(this.path,this.flags,this.mode,function(g,d){if(g){u.emit("error",g),u.readable=!1;return}u.fd=d,u.emit("open",d),u._read()})}function r(i,o){if(!(this instanceof r))return new r(i,o);RE.call(this),this.path=i,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,o=o||{};for(var u=Object.keys(o),l=0,f=u.length;l= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var DE=_(($z,NE)=>{"use strict";NE.exports=Gj;var Uj=Object.getPrototypeOf||function(e){return e.__proto__};function Gj(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:Uj(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var FE=_((Yz,kh)=>{var ke=U("fs"),jj=OE(),Hj=IE(),Wj=DE(),cu=U("util"),rt,hu;typeof Symbol=="function"&&typeof Symbol.for=="function"?(rt=Symbol.for("graceful-fs.queue"),hu=Symbol.for("graceful-fs.previous")):(rt="___graceful-fs.queue",hu="___graceful-fs.previous");function $j(){}function ME(e,t){Object.defineProperty(e,rt,{get:function(){return t}})}var Wn=$j;cu.debuglog?Wn=cu.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Wn=function(){var e=cu.format.apply(cu,arguments);e="GFS4: "+e.split(/\n/).join(` +GFS4: `),console.error(e)});ke[rt]||(qE=global[rt]||[],ME(ke,qE),ke.close=function(e){function t(r,i){return e.call(ke,r,function(o){o||kE(),typeof i=="function"&&i.apply(this,arguments)})}return Object.defineProperty(t,hu,{value:e}),t}(ke.close),ke.closeSync=function(e){function t(r){e.apply(ke,arguments),kE()}return Object.defineProperty(t,hu,{value:e}),t}(ke.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Wn(ke[rt]),U("assert").equal(ke[rt].length,0)}));var qE;global[rt]||ME(global,ke[rt]);kh.exports=Mh(Wj(ke));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ke.__patched&&(kh.exports=Mh(ke),ke.__patched=!0);function Mh(e){jj(e),e.gracefulify=Mh,e.createReadStream=K,e.createWriteStream=Q;var t=e.readFile;e.readFile=r;function r(B,z,M){return typeof z=="function"&&(M=z,z=null),W(B,z,M);function W(G,H,$,te){return t(G,H,function(re){re&&(re.code==="EMFILE"||re.code==="ENFILE")?ki([W,[G,H,$],re,te||Date.now(),Date.now()]):typeof $=="function"&&$.apply(this,arguments)})}}var i=e.writeFile;e.writeFile=o;function o(B,z,M,W){return typeof M=="function"&&(W=M,M=null),G(B,z,M,W);function G(H,$,te,re,ue){return i(H,$,te,function(ie){ie&&(ie.code==="EMFILE"||ie.code==="ENFILE")?ki([G,[H,$,te,re],ie,ue||Date.now(),Date.now()]):typeof re=="function"&&re.apply(this,arguments)})}}var u=e.appendFile;u&&(e.appendFile=l);function l(B,z,M,W){return typeof M=="function"&&(W=M,M=null),G(B,z,M,W);function G(H,$,te,re,ue){return u(H,$,te,function(ie){ie&&(ie.code==="EMFILE"||ie.code==="ENFILE")?ki([G,[H,$,te,re],ie,ue||Date.now(),Date.now()]):typeof re=="function"&&re.apply(this,arguments)})}}var f=e.copyFile;f&&(e.copyFile=h);function h(B,z,M,W){return typeof M=="function"&&(W=M,M=0),G(B,z,M,W);function G(H,$,te,re,ue){return f(H,$,te,function(ie){ie&&(ie.code==="EMFILE"||ie.code==="ENFILE")?ki([G,[H,$,te,re],ie,ue||Date.now(),Date.now()]):typeof re=="function"&&re.apply(this,arguments)})}}var p=e.readdir;e.readdir=d;var g=/^v[0-5]\./;function d(B,z,M){typeof z=="function"&&(M=z,z=null);var W=g.test(process.version)?function($,te,re,ue){return p($,G($,te,re,ue))}:function($,te,re,ue){return p($,te,G($,te,re,ue))};return W(B,z,M);function G(H,$,te,re){return function(ue,ie){ue&&(ue.code==="EMFILE"||ue.code==="ENFILE")?ki([W,[H,$,te],ue,re||Date.now(),Date.now()]):(ie&&ie.sort&&ie.sort(),typeof te=="function"&&te.call(this,ue,ie))}}}if(process.version.substr(0,4)==="v0.8"){var b=Hj(e);O=b.ReadStream,k=b.WriteStream}var S=e.ReadStream;S&&(O.prototype=Object.create(S.prototype),O.prototype.open=F);var w=e.WriteStream;w&&(k.prototype=Object.create(w.prototype),k.prototype.open=I),Object.defineProperty(e,"ReadStream",{get:function(){return O},set:function(B){O=B},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return k},set:function(B){k=B},enumerable:!0,configurable:!0});var A=O;Object.defineProperty(e,"FileReadStream",{get:function(){return A},set:function(B){A=B},enumerable:!0,configurable:!0});var C=k;Object.defineProperty(e,"FileWriteStream",{get:function(){return C},set:function(B){C=B},enumerable:!0,configurable:!0});function O(B,z){return this instanceof O?(S.apply(this,arguments),this):O.apply(Object.create(O.prototype),arguments)}function F(){var B=this;le(B.path,B.flags,B.mode,function(z,M){z?(B.autoClose&&B.destroy(),B.emit("error",z)):(B.fd=M,B.emit("open",M),B.read())})}function k(B,z){return this instanceof k?(w.apply(this,arguments),this):k.apply(Object.create(k.prototype),arguments)}function I(){var B=this;le(B.path,B.flags,B.mode,function(z,M){z?(B.destroy(),B.emit("error",z)):(B.fd=M,B.emit("open",M))})}function K(B,z){return new e.ReadStream(B,z)}function Q(B,z){return new e.WriteStream(B,z)}var Y=e.open;e.open=le;function le(B,z,M,W){return typeof M=="function"&&(W=M,M=null),G(B,z,M,W);function G(H,$,te,re,ue){return Y(H,$,te,function(ie,Ct){ie&&(ie.code==="EMFILE"||ie.code==="ENFILE")?ki([G,[H,$,te,re],ie,ue||Date.now(),Date.now()]):typeof re=="function"&&re.apply(this,arguments)})}}return e}function ki(e){Wn("ENQUEUE",e[0].name,e[1]),ke[rt].push(e),qh()}var pu;function kE(){for(var e=Date.now(),t=0;t2&&(ke[rt][t][3]=e,ke[rt][t][4]=e);qh()}function qh(){if(clearTimeout(pu),pu=void 0,ke[rt].length!==0){var e=ke[rt].shift(),t=e[0],r=e[1],i=e[2],o=e[3],u=e[4];if(o===void 0)Wn("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-o>=6e4){Wn("TIMEOUT",t.name,r);var l=r.pop();typeof l=="function"&&l.call(null,i)}else{var f=Date.now()-u,h=Math.max(u-o,1),p=Math.min(h*1.2,100);f>=p?(Wn("RETRY",t.name,r),t.apply(null,r.concat([o]))):ke[rt].push(e)}pu===void 0&&(pu=setTimeout(qh,0))}}});var UE=_((Vz,BE)=>{"use strict";BE.exports=e=>{if(typeof e!="string")throw new TypeError("Expected a string, got "+typeof e);return e.charCodeAt(0)===65279?e.slice(1):e}});var jE=_((Kz,GE)=>{"use strict";GE.exports=function(t){return t?t instanceof Array||Array.isArray(t)||t.length>=0&&t.splice instanceof Function:!1}});var WE=_((zz,HE)=>{"use strict";var Yj=U("util"),Vj=jE(),Fh=function(t,r){(!t||t.constructor!==String)&&(r=t||{},t=Error.name);var i=function o(u){if(!this)return new o(u);u=u instanceof Error?u.message:u||this.message,Error.call(this,u),Error.captureStackTrace(this,i),this.name=t,Object.defineProperty(this,"message",{configurable:!0,enumerable:!1,get:function(){var g=u.split(/\r?\n/g);for(var d in r)if(!!r.hasOwnProperty(d)){var b=r[d];"message"in b&&(g=b.message(this[d],g)||g,Vj(g)||(g=[g]))}return g.join(` +`)},set:function(g){u=g}});var l=null,f=Object.getOwnPropertyDescriptor(this,"stack"),h=f.get,p=f.value;delete f.value,delete f.writable,f.set=function(g){l=g},f.get=function(){var g=(l||(h?h.call(this):p)).split(/\r?\n+/g);l||(g[0]=this.name+": "+this.message);var d=1;for(var b in r)if(!!r.hasOwnProperty(b)){var S=r[b];if("line"in S){var w=S.line(this[b]);w&&g.splice(d++,0," "+w)}"stack"in S&&S.stack(this[b],g)}return g.join(` +`)},Object.defineProperty(this,"stack",f)};return Object.setPrototypeOf?(Object.setPrototypeOf(i.prototype,Error.prototype),Object.setPrototypeOf(i,Error)):Yj.inherits(i,Error),i};Fh.append=function(e,t){return{message:function(r,i){return r=r||t,r&&(i[0]+=" "+e.replace("%s",r.toString())),i}}};Fh.line=function(e,t){return{line:function(r){return r=r||t,r?e.replace("%s",r.toString()):null}}};HE.exports=Fh});var YE=_((Jz,$E)=>{"use strict";$E.exports=Kj;function Kj(e,t,r){r=r||20;try{return JSON.parse(e,t)}catch(i){if(typeof e!="string"){let l=Array.isArray(e)&&e.length===0,f="Cannot parse "+(l?"an empty array":String(e));throw new TypeError(f)}let o=i.message.match(/^Unexpected token.*position\s+(\d+)/i),u=o?+o[1]:i.message.match(/^Unexpected end of JSON.*/i)?e.length-1:null;if(u!=null){let l=u<=r?0:u-r,f=u+r>=e.length?e.length:u+r;i.message+=` while parsing near '${l===0?"":"..."}${e.slice(l,f)}${f===e.length?"":"..."}'`}else i.message+=` while parsing '${e.slice(0,r*2)}'`;throw i}}});var zE=_((Xz,KE)=>{"use strict";var VE=WE(),zj=YE(),Jj=VE("JSONError",{fileName:VE.append("in %s")});KE.exports=(e,t,r)=>{typeof t=="string"&&(r=t,t=null);try{try{return JSON.parse(e,t)}catch(i){throw zj(e,t),i}}catch(i){i.message=i.message.replace(/\n/g,"");let o=new Jj(i);throw r&&(o.fileName=r),o}}});var Bh=_((Zz,XE)=>{"use strict";var JE=(e,t)=>function(){let r=t.promiseModule,i=new Array(arguments.length);for(let o=0;o{t.errorFirst?i.push(function(l,f){if(t.multiArgs){let h=new Array(arguments.length-1);for(let p=1;p{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},t);let r=o=>{let u=l=>typeof l=="string"?o===l:l.test(o);return t.include?t.include.some(u):!t.exclude.some(u)},i;typeof e=="function"?i=function(){return t.excludeMain?e.apply(this,arguments):JE(e,t).apply(this,arguments)}:i=Object.create(Object.getPrototypeOf(e));for(let o in e){let u=e[o];i[o]=typeof u=="function"&&r(o)?JE(u,t):u}return i}});var eL=_((Qz,Uh)=>{"use strict";var Xj=U("path"),ZE=FE(),Zj=UE(),Qj=zE(),eH=Bh(),QE=(e,t)=>Qj(Zj(e),Xj.relative(".",t));Uh.exports=e=>eH(ZE.readFile)(e,"utf8").then(t=>QE(t,e));Uh.exports.sync=e=>QE(ZE.readFileSync(e,"utf8"),e)});var rL=_($n=>{"use strict";var tL=U("fs"),tH=Bh();function Gh(e,t,r){return typeof r!="string"?Promise.reject(new TypeError(`Expected a string, got ${typeof r}`)):tH(tL[e])(r).then(i=>i[t]()).catch(i=>{if(i.code==="ENOENT")return!1;throw i})}function jh(e,t,r){if(typeof r!="string")throw new TypeError(`Expected a string, got ${typeof r}`);try{return tL[e](r)[t]()}catch(i){if(i.code==="ENOENT")return!1;throw i}}$n.file=Gh.bind(null,"stat","isFile");$n.dir=Gh.bind(null,"stat","isDirectory");$n.symlink=Gh.bind(null,"lstat","isSymbolicLink");$n.fileSync=jh.bind(null,"statSync","isFile");$n.dirSync=jh.bind(null,"statSync","isDirectory");$n.symlinkSync=jh.bind(null,"lstatSync","isSymbolicLink")});var Hh=_((tJ,sL)=>{"use strict";var Ks=sL.exports={github:{protocols:["git","http","git+ssh","git+https","ssh","https"],domain:"github.com",treepath:"tree",filetemplate:"https://{auth@}raw.githubusercontent.com/{user}/{project}/{committish}/{path}",bugstemplate:"https://{domain}/{user}/{project}/issues",gittemplate:"git://{auth@}{domain}/{user}/{project}.git{#committish}",tarballtemplate:"https://codeload.{domain}/{user}/{project}/tar.gz/{committish}"},bitbucket:{protocols:["git+ssh","git+https","ssh","https"],domain:"bitbucket.org",treepath:"src",tarballtemplate:"https://{domain}/{user}/{project}/get/{committish}.tar.gz"},gitlab:{protocols:["git+ssh","git+https","ssh","https"],domain:"gitlab.com",treepath:"tree",bugstemplate:"https://{domain}/{user}/{project}/issues",httpstemplate:"git+https://{auth@}{domain}/{user}/{projectPath}.git{#committish}",tarballtemplate:"https://{domain}/{user}/{project}/repository/archive.tar.gz?ref={committish}",pathmatch:/^[/]([^/]+)[/]((?!.*(\/-\/|\/repository\/archive\.tar\.gz\?=.*|\/repository\/[^/]+\/archive.tar.gz$)).*?)(?:[.]git|[/])?$/},gist:{protocols:["git","git+ssh","git+https","ssh","https"],domain:"gist.github.com",pathmatch:/^[/](?:([^/]+)[/])?([a-z0-9]{32,})(?:[.]git)?$/,filetemplate:"https://gist.githubusercontent.com/{user}/{project}/raw{/committish}/{path}",bugstemplate:"https://{domain}/{project}",gittemplate:"git://{domain}/{project}.git{#committish}",sshtemplate:"git@{domain}:/{project}.git{#committish}",sshurltemplate:"git+ssh://git@{domain}/{project}.git{#committish}",browsetemplate:"https://{domain}/{project}{/committish}",browsefiletemplate:"https://{domain}/{project}{/committish}{#path}",docstemplate:"https://{domain}/{project}{/committish}",httpstemplate:"git+https://{domain}/{project}.git{#committish}",shortcuttemplate:"{type}:{project}{#committish}",pathtemplate:"{project}{#committish}",tarballtemplate:"https://codeload.github.com/gist/{project}/tar.gz/{committish}",hashformat:function(e){return"file-"+iL(e)}}},nL={sshtemplate:"git@{domain}:{user}/{project}.git{#committish}",sshurltemplate:"git+ssh://git@{domain}/{user}/{project}.git{#committish}",browsetemplate:"https://{domain}/{user}/{project}{/tree/committish}",browsefiletemplate:"https://{domain}/{user}/{project}/{treepath}/{committish}/{path}{#fragment}",docstemplate:"https://{domain}/{user}/{project}{/tree/committish}#readme",httpstemplate:"git+https://{auth@}{domain}/{user}/{project}.git{#committish}",filetemplate:"https://{domain}/{user}/{project}/raw/{committish}/{path}",shortcuttemplate:"{type}:{user}/{project}{#committish}",pathtemplate:"{user}/{project}{#committish}",pathmatch:/^[/]([^/]+)[/]([^/]+?)(?:[.]git|[/])?$/,hashformat:iL};Object.keys(Ks).forEach(function(e){Object.keys(nL).forEach(function(t){Ks[e][t]||(Ks[e][t]=nL[t])}),Ks[e].protocols_re=RegExp("^("+Ks[e].protocols.map(function(t){return t.replace(/([\\+*{}()[\]$^|])/g,"\\$1")}).join("|")+"):$")});function iL(e){return e.toLowerCase().replace(/^\W+|\/|\W+$/g,"").replace(/\W+/g,"-")}});var uL=_((rJ,aL)=>{"use strict";var oL=Hh(),Fi=Object.assign||function(t,r){if(r===null||typeof r!="object")return t;for(var i=Object.keys(r),o=i.length;o--;)t[i[o]]=r[i[o]];return t};aL.exports=at;function at(e,t,r,i,o,u,l){var f=this;f.type=e,Object.keys(oL[e]).forEach(function(h){f[h]=oL[e][h]}),f.user=t,f.auth=r,f.project=i,f.committish=o,f.default=u,f.opts=l||{}}at.prototype.hash=function(){return this.committish?"#"+this.committish:""};at.prototype._fill=function(e,t){if(!!e){var r=Fi({},t);r.path=r.path?r.path.replace(/^[/]+/g,""):"",t=Fi(Fi({},this.opts),t);var i=this;Object.keys(this).forEach(function(g){i[g]!=null&&r[g]==null&&(r[g]=i[g])});var o=r.auth,u=r.committish,l=r.fragment,f=r.path,h=r.project;Object.keys(r).forEach(function(g){var d=r[g];(g==="path"||g==="project")&&typeof d=="string"?r[g]=d.split("/").map(function(b){return encodeURIComponent(b)}).join("/"):r[g]=encodeURIComponent(d)}),r["auth@"]=o?o+"@":"",r["#fragment"]=l?"#"+this.hashformat(l):"",r.fragment=r.fragment?r.fragment:"",r["#path"]=f?"#"+this.hashformat(f):"",r["/path"]=r.path?"/"+r.path:"",r.projectPath=h.split("/").map(encodeURIComponent).join("/"),t.noCommittish?(r["#committish"]="",r["/tree/committish"]="",r["/committish"]="",r.committish=""):(r["#committish"]=u?"#"+u:"",r["/tree/committish"]=r.committish?"/"+r.treepath+"/"+r.committish:"",r["/committish"]=r.committish?"/"+r.committish:"",r.committish=r.committish||"master");var p=e;return Object.keys(r).forEach(function(g){p=p.replace(new RegExp("[{]"+g+"[}]","g"),r[g])}),t.noGitPlus?p.replace(/^git[+]/,""):p}};at.prototype.ssh=function(e){return this._fill(this.sshtemplate,e)};at.prototype.sshurl=function(e){return this._fill(this.sshurltemplate,e)};at.prototype.browse=function(e,t,r){return typeof e=="string"?(typeof t!="string"&&(r=t,t=null),this._fill(this.browsefiletemplate,Fi({fragment:t,path:e},r))):this._fill(this.browsetemplate,e)};at.prototype.docs=function(e){return this._fill(this.docstemplate,e)};at.prototype.bugs=function(e){return this._fill(this.bugstemplate,e)};at.prototype.https=function(e){return this._fill(this.httpstemplate,e)};at.prototype.git=function(e){return this._fill(this.gittemplate,e)};at.prototype.shortcut=function(e){return this._fill(this.shortcuttemplate,e)};at.prototype.path=function(e){return this._fill(this.pathtemplate,e)};at.prototype.tarball=function(e){var t=Fi({},e,{noCommittish:!1});return this._fill(this.tarballtemplate,t)};at.prototype.file=function(e,t){return this._fill(this.filetemplate,Fi({path:e},t))};at.prototype.getDefaultRepresentation=function(){return this.default};at.prototype.toString=function(e){return this.default&&typeof this[this.default]=="function"?this[this.default](e):this.sshurl(e)}});var fL=_((nJ,$h)=>{"use strict";var du=U("url"),lL=Hh(),rH=$h.exports=uL(),nH={"git+ssh:":"sshurl","git+https:":"https","ssh:":"sshurl","git:":"git"};function iH(e){return nH[e]||e.slice(0,-1)}var sH={"git:":!0,"https:":!0,"git+https:":!0,"http:":!0,"git+http:":!0},Wh={};$h.exports.fromUrl=function(e,t){if(typeof e=="string"){var r=e+JSON.stringify(t||{});return r in Wh||(Wh[r]=oH(e,t)),Wh[r]}};function oH(e,t){if(!(e==null||e==="")){var r=uH(aH(e)?"github:"+e:e),i=lH(r),o=r.match(/^([^:]+):(?:[^@]+@)?(?:([^/]*)\/)?([^#]+)/),u=Object.keys(lL).map(function(l){try{var f=lL[l],h=null;i.auth&&sH[i.protocol]&&(h=i.auth);var p=i.hash?decodeURIComponent(i.hash.substr(1)):null,g=null,d=null,b=null;if(o&&o[1]===l)g=o[2]&&decodeURIComponent(o[2]),d=decodeURIComponent(o[3].replace(/\.git$/,"")),b="shortcut";else{if(i.host&&i.host!==f.domain&&i.host.replace(/^www[.]/,"")!==f.domain||!f.protocols_re.test(i.protocol)||!i.path)return;var S=f.pathmatch,w=i.path.match(S);if(!w)return;w[1]!==null&&w[1]!==void 0&&(g=decodeURIComponent(w[1].replace(/^:/,""))),d=decodeURIComponent(w[2]),b=iH(i.protocol)}return new rH(l,g,h,d,p,b,t)}catch(A){if(!(A instanceof URIError))throw A}}).filter(function(l){return l});if(u.length===1)return u[0]}}function aH(e){return/^[^:@%/\s.-][^:@%/\s]*[/][^:@\s/%]+(?:#.*)?$/.test(e)}function uH(e){var t=du.parse(e);return t.protocol==="gist:"&&t.host&&!t.path?t.protocol+"/"+t.host:e}function lH(e){var t=e.match(/^([^@]+)@([^:/]+):[/]?((?:[^/]+[/])?[^/]+?)(?:[.]git)?(#.*)?$/);if(!t){var r=du.parse(e);if(r.auth&&typeof du.URL=="function"){var i=e.match(/[^@]+@[^:/]+/);if(i){var o=new du.URL(i[0]);r.auth=o.username||"",o.password&&(r.auth+=":"+o.password)}}return r}return{protocol:"git+ssh:",slashes:!0,auth:t[1],host:t[2],port:null,hostname:t[2],hash:t[4],search:null,query:null,pathname:"/"+t[3],path:"/"+t[3],href:"git+ssh://"+t[1]+"@"+t[2]+"/"+t[3]+(t[4]||"")}}});var Yh=_((iJ,cL)=>{"use strict";var fH=U("os");cL.exports=fH.homedir||function(){var t=process.env.HOME,r=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;return process.platform==="win32"?process.env.USERPROFILE||process.env.HOMEDRIVE+process.env.HOMEPATH||t||null:process.platform==="darwin"?t||(r?"/Users/"+r:null):process.platform==="linux"?t||(process.getuid()===0?"/root":r?"/home/"+r:null):t||null}});var Vh=_((sJ,hL)=>{hL.exports=function(){var e=Error.prepareStackTrace;Error.prepareStackTrace=function(r,i){return i};var t=new Error().stack;return Error.prepareStackTrace=e,t[2].getFileName()}});var pL=_((oJ,zs)=>{"use strict";var cH=process.platform==="win32",hH=/^(((?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?[\\\/]?)(?:[^\\\/]*[\\\/])*)((\.{1,2}|[^\\\/]+?|)(\.[^.\/\\]*|))[\\\/]*$/,Kh={};function pH(e){return hH.exec(e).slice(1)}Kh.parse=function(e){if(typeof e!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=pH(e);if(!t||t.length!==5)throw new TypeError("Invalid path '"+e+"'");return{root:t[1],dir:t[0]===t[1]?t[0]:t[0].slice(0,-1),base:t[2],ext:t[4],name:t[3]}};var dH=/^((\/?)(?:[^\/]*\/)*)((\.{1,2}|[^\/]+?|)(\.[^.\/]*|))[\/]*$/,zh={};function gH(e){return dH.exec(e).slice(1)}zh.parse=function(e){if(typeof e!="string")throw new TypeError("Parameter 'pathString' must be a string, not "+typeof e);var t=gH(e);if(!t||t.length!==5)throw new TypeError("Invalid path '"+e+"'");return{root:t[1],dir:t[0].slice(0,-1),base:t[2],ext:t[4],name:t[3]}};cH?zs.exports=Kh.parse:zs.exports=zh.parse;zs.exports.posix=zh.parse;zs.exports.win32=Kh.parse});var Jh=_((aJ,vL)=>{var dL=U("path"),gL=dL.parse||pL(),mL=function(t,r){var i="/";/^([A-Za-z]:)/.test(t)?i="":/^\\\\/.test(t)&&(i="\\\\");for(var o=[t],u=gL(t);u.dir!==o[o.length-1];)o.push(u.dir),u=gL(u.dir);return o.reduce(function(l,f){return l.concat(r.map(function(h){return dL.resolve(i,f,h)}))},[])};vL.exports=function(t,r,i){var o=r&&r.moduleDirectory?[].concat(r.moduleDirectory):["node_modules"];if(r&&typeof r.paths=="function")return r.paths(i,t,function(){return mL(t,o)},r);var u=mL(t,o);return r&&r.paths?u.concat(r.paths):u}});var Xh=_((uJ,yL)=>{var Js=U("path");yL.exports=function(e,t){if(t=t||{},t.forceNodeResolution||!process.versions.pnp)return t;let{findPnpApi:r}=U("module"),i=(p,g)=>{let d=p.match(/^((?:@[^/]+\/)?[^/]+)(\/.*)?/);if(!d)throw new Error(`Assertion failed: Expected the "resolve" package to call the "paths" callback with package names only (got "${p}")`);g.charAt(g.length-1)!=="/"&&(g=Js.join(g,"/"));let b=r(g);if(b===null)return;let S;try{S=b.resolveToUnqualified(`${d[1]}/package.json`,g,{considerBuiltins:!1})}catch(C){return null}if(S===null)throw new Error(`Assertion failed: The resolution thinks that "${d[1]}" is a Node builtin`);let w=Js.dirname(S),A=typeof d[2]!="undefined"?Js.join(w,d[2]):w;return{packagePath:w,unqualifiedPath:A}},o=(p,g)=>{for(let d=0;d{let S=[g].concat(u),w=o(p,S);return w==null?d():[w.unqualifiedPath]},f=(p,g,d,b)=>{let S=[g].concat(u),w=o(p,S);if(w==null)return d().concat(u);let A=Js.dirname(w.packagePath);return p.match(/^@[^/]+\//)&&(A=Js.dirname(A)),[A]},h=!1;return t.__skipPackageIterator||(t.packageIterator=function(p,g,d,b){h=!0;try{return l(p,g,d,b)}finally{h=!1}}),t.paths=function(p,g,d,b){return h?d().concat(u):f(p,g,d,b)},t}});var wL=_((lJ,bL)=>{var Yn=U("fs"),mH=Yh(),We=U("path"),vH=Vh(),yH=Jh(),_H=Xh(),bH=Vs(),wH=Yn.realpath&&typeof Yn.realpath.native=="function"?Yn.realpath.native:Yn.realpath,_L=mH(),SH=function(){return[We.join(_L,".node_modules"),We.join(_L,".node_libraries")]},EH=function(t,r){Yn.stat(t,function(i,o){return i?i.code==="ENOENT"||i.code==="ENOTDIR"?r(null,!1):r(i):r(null,o.isFile()||o.isFIFO())})},LH=function(t,r){Yn.stat(t,function(i,o){return i?i.code==="ENOENT"||i.code==="ENOTDIR"?r(null,!1):r(i):r(null,o.isDirectory())})},AH=function(t,r){wH(t,function(i,o){i&&i.code!=="ENOENT"?r(i):r(null,i?t:o)})},Xs=function(t,r,i,o){i&&i.preserveSymlinks===!1?t(r,o):o(null,r)},xH=function(t,r,i){t(r,function(o,u){if(o)i(o);else try{var l=JSON.parse(u);i(null,l)}catch(f){i(null)}})},PH=function(t,r,i){for(var o=yH(r,i,t),u=0;u{CH.exports={assert:!0,"node:assert":[">= 14.18 && < 15",">= 16"],"assert/strict":">= 15","node:assert/strict":">= 16",async_hooks:">= 8","node:async_hooks":[">= 14.18 && < 15",">= 16"],buffer_ieee754:">= 0.5 && < 0.9.7",buffer:!0,"node:buffer":[">= 14.18 && < 15",">= 16"],child_process:!0,"node:child_process":[">= 14.18 && < 15",">= 16"],cluster:">= 0.5","node:cluster":[">= 14.18 && < 15",">= 16"],console:!0,"node:console":[">= 14.18 && < 15",">= 16"],constants:!0,"node:constants":[">= 14.18 && < 15",">= 16"],crypto:!0,"node:crypto":[">= 14.18 && < 15",">= 16"],_debug_agent:">= 1 && < 8",_debugger:"< 8",dgram:!0,"node:dgram":[">= 14.18 && < 15",">= 16"],diagnostics_channel:[">= 14.17 && < 15",">= 15.1"],"node:diagnostics_channel":[">= 14.18 && < 15",">= 16"],dns:!0,"node:dns":[">= 14.18 && < 15",">= 16"],"dns/promises":">= 15","node:dns/promises":">= 16",domain:">= 0.7.12","node:domain":[">= 14.18 && < 15",">= 16"],events:!0,"node:events":[">= 14.18 && < 15",">= 16"],freelist:"< 6",fs:!0,"node:fs":[">= 14.18 && < 15",">= 16"],"fs/promises":[">= 10 && < 10.1",">= 14"],"node:fs/promises":[">= 14.18 && < 15",">= 16"],_http_agent:">= 0.11.1","node:_http_agent":[">= 14.18 && < 15",">= 16"],_http_client:">= 0.11.1","node:_http_client":[">= 14.18 && < 15",">= 16"],_http_common:">= 0.11.1","node:_http_common":[">= 14.18 && < 15",">= 16"],_http_incoming:">= 0.11.1","node:_http_incoming":[">= 14.18 && < 15",">= 16"],_http_outgoing:">= 0.11.1","node:_http_outgoing":[">= 14.18 && < 15",">= 16"],_http_server:">= 0.11.1","node:_http_server":[">= 14.18 && < 15",">= 16"],http:!0,"node:http":[">= 14.18 && < 15",">= 16"],http2:">= 8.8","node:http2":[">= 14.18 && < 15",">= 16"],https:!0,"node:https":[">= 14.18 && < 15",">= 16"],inspector:">= 8","node:inspector":[">= 14.18 && < 15",">= 16"],_linklist:"< 8",module:!0,"node:module":[">= 14.18 && < 15",">= 16"],net:!0,"node:net":[">= 14.18 && < 15",">= 16"],"node-inspect/lib/_inspect":">= 7.6 && < 12","node-inspect/lib/internal/inspect_client":">= 7.6 && < 12","node-inspect/lib/internal/inspect_repl":">= 7.6 && < 12",os:!0,"node:os":[">= 14.18 && < 15",">= 16"],path:!0,"node:path":[">= 14.18 && < 15",">= 16"],"path/posix":">= 15.3","node:path/posix":">= 16","path/win32":">= 15.3","node:path/win32":">= 16",perf_hooks:">= 8.5","node:perf_hooks":[">= 14.18 && < 15",">= 16"],process:">= 1","node:process":[">= 14.18 && < 15",">= 16"],punycode:">= 0.5","node:punycode":[">= 14.18 && < 15",">= 16"],querystring:!0,"node:querystring":[">= 14.18 && < 15",">= 16"],readline:!0,"node:readline":[">= 14.18 && < 15",">= 16"],"readline/promises":">= 17","node:readline/promises":">= 17",repl:!0,"node:repl":[">= 14.18 && < 15",">= 16"],smalloc:">= 0.11.5 && < 3",_stream_duplex:">= 0.9.4","node:_stream_duplex":[">= 14.18 && < 15",">= 16"],_stream_transform:">= 0.9.4","node:_stream_transform":[">= 14.18 && < 15",">= 16"],_stream_wrap:">= 1.4.1","node:_stream_wrap":[">= 14.18 && < 15",">= 16"],_stream_passthrough:">= 0.9.4","node:_stream_passthrough":[">= 14.18 && < 15",">= 16"],_stream_readable:">= 0.9.4","node:_stream_readable":[">= 14.18 && < 15",">= 16"],_stream_writable:">= 0.9.4","node:_stream_writable":[">= 14.18 && < 15",">= 16"],stream:!0,"node:stream":[">= 14.18 && < 15",">= 16"],"stream/consumers":">= 16.7","node:stream/consumers":">= 16.7","stream/promises":">= 15","node:stream/promises":">= 16","stream/web":">= 16.5","node:stream/web":">= 16.5",string_decoder:!0,"node:string_decoder":[">= 14.18 && < 15",">= 16"],sys:[">= 0.4 && < 0.7",">= 0.8"],"node:sys":[">= 14.18 && < 15",">= 16"],timers:!0,"node:timers":[">= 14.18 && < 15",">= 16"],"timers/promises":">= 15","node:timers/promises":">= 16",_tls_common:">= 0.11.13","node:_tls_common":[">= 14.18 && < 15",">= 16"],_tls_legacy:">= 0.11.3 && < 10",_tls_wrap:">= 0.11.3","node:_tls_wrap":[">= 14.18 && < 15",">= 16"],tls:!0,"node:tls":[">= 14.18 && < 15",">= 16"],trace_events:">= 10","node:trace_events":[">= 14.18 && < 15",">= 16"],tty:!0,"node:tty":[">= 14.18 && < 15",">= 16"],url:!0,"node:url":[">= 14.18 && < 15",">= 16"],util:!0,"node:util":[">= 14.18 && < 15",">= 16"],"util/types":">= 15.3","node:util/types":">= 16","v8/tools/arguments":">= 10 && < 12","v8/tools/codemap":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/consarray":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/csvparser":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/logreader":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/profile_view":[">= 4.4 && < 5",">= 5.2 && < 12"],"v8/tools/splaytree":[">= 4.4 && < 5",">= 5.2 && < 12"],v8:">= 1","node:v8":[">= 14.18 && < 15",">= 16"],vm:!0,"node:vm":[">= 14.18 && < 15",">= 16"],wasi:">= 13.4 && < 13.5",worker_threads:">= 11.7","node:worker_threads":[">= 14.18 && < 15",">= 16"],zlib:">= 0.5","node:zlib":[">= 14.18 && < 15",">= 16"]}});var xL=_((cJ,AL)=>{var OH=process.versions&&process.versions.node&&process.versions.node.split(".")||[];function RH(e){for(var t=e.split(" "),r=t.length>1?t[0]:"=",i=(t.length>1?t[1]:t[0]).split("."),o=0;o<3;++o){var u=parseInt(OH[o]||0,10),l=parseInt(i[o]||0,10);if(u!==l)return r==="<"?u="?u>=l:!1}return r===">="}function EL(e){var t=e.split(/ ?&& ?/);if(t.length===0)return!1;for(var r=0;r{var IH=Vs();PL.exports=function(t){return IH(t)}});var TL=_((pJ,RL)=>{var NH=Vs(),Vn=U("fs"),ut=U("path"),DH=Yh(),MH=Vh(),qH=Jh(),kH=Xh(),FH=Vn.realpathSync&&typeof Vn.realpathSync.native=="function"?Vn.realpathSync.native:Vn.realpathSync,OL=DH(),BH=function(){return[ut.join(OL,".node_modules"),ut.join(OL,".node_libraries")]},UH=function(t){try{var r=Vn.statSync(t,{throwIfNoEntry:!1})}catch(i){if(i&&(i.code==="ENOENT"||i.code==="ENOTDIR"))return!1;throw i}return!!r&&(r.isFile()||r.isFIFO())},GH=function(t){try{var r=Vn.statSync(t,{throwIfNoEntry:!1})}catch(i){if(i&&(i.code==="ENOENT"||i.code==="ENOTDIR"))return!1;throw i}return!!r&&r.isDirectory()},jH=function(t){try{return FH(t)}catch(r){if(r.code!=="ENOENT")throw r}return t},Zs=function(t,r,i){return i&&i.preserveSymlinks===!1?t(r):r},HH=function(t,r){var i=t(r);try{var o=JSON.parse(i);return o}catch(u){}},WH=function(t,r,i){for(var o=qH(r,i,t),u=0;u{var gu=wL();gu.core=xL();gu.isCore=CL();gu.sync=TL();IL.exports=gu});var ML=_((gJ,DL)=>{DL.exports=$H;function $H(e){if(!!e&&e!=="ERROR: No README data found!"){e=e.trim().split(` +`);for(var t=0;e[t]&&e[t].trim().match(/^(#|$)/);t++);for(var r=e.length,i=t+1;i{YH.exports={topLevel:{dependancies:"dependencies",dependecies:"dependencies",depdenencies:"dependencies",devEependencies:"devDependencies",depends:"dependencies","dev-dependencies":"devDependencies",devDependences:"devDependencies",devDepenencies:"devDependencies",devdependencies:"devDependencies",repostitory:"repository",repo:"repository",prefereGlobal:"preferGlobal",hompage:"homepage",hampage:"homepage",autohr:"author",autor:"author",contributers:"contributors",publicationConfig:"publishConfig",script:"scripts"},bugs:{web:"url",name:"url"},script:{server:"start",tests:"test"}}});var UL=_((yJ,BL)=>{var kL=U("semver"),VH=xh(),mu=fL(),KH=NL().isCore,zH=["dependencies","devDependencies","optionalDependencies"],JH=ML(),ep=U("url"),pn=qL(),vJ=BL.exports={warn:function(){},fixRepositoryField:function(e){if(e.repositories&&(this.warn("repositories"),e.repository=e.repositories[0]),!e.repository)return this.warn("missingRepository");typeof e.repository=="string"&&(e.repository={type:"git",url:e.repository});var t=e.repository.url||"";if(t){var r=mu.fromUrl(t);r&&(t=e.repository.url=r.getDefaultRepresentation()=="shortcut"?r.https():r.toString())}t.match(/github.com\/[^\/]+\/[^\/]+\.git\.git$/)&&this.warn("brokenGitUrl",t)},fixTypos:function(e){Object.keys(pn.topLevel).forEach(function(t){e.hasOwnProperty(t)&&this.warn("typo",t,pn.topLevel[t])},this)},fixScriptsField:function(e){if(!!e.scripts){if(typeof e.scripts!="object"){this.warn("nonObjectScripts"),delete e.scripts;return}Object.keys(e.scripts).forEach(function(t){typeof e.scripts[t]!="string"?(this.warn("nonStringScript"),delete e.scripts[t]):pn.script[t]&&!e.scripts[pn.script[t]]&&this.warn("typo",t,pn.script[t],"scripts")},this)}},fixFilesField:function(e){var t=e.files;t&&!Array.isArray(t)?(this.warn("nonArrayFiles"),delete e.files):e.files&&(e.files=e.files.filter(function(r){return!r||typeof r!="string"?(this.warn("invalidFilename",r),!1):!0},this))},fixBinField:function(e){if(!!e.bin&&typeof e.bin=="string"){var t={},r;(r=e.name.match(/^@[^/]+[/](.*)$/))?t[r[1]]=e.bin:t[e.name]=e.bin,e.bin=t}},fixManField:function(e){!e.man||typeof e.man=="string"&&(e.man=[e.man])},fixBundleDependenciesField:function(e){var t="bundledDependencies",r="bundleDependencies";e[t]&&!e[r]&&(e[r]=e[t],delete e[t]),e[r]&&!Array.isArray(e[r])?(this.warn("nonArrayBundleDependencies"),delete e[r]):e[r]&&(e[r]=e[r].filter(function(i){return!i||typeof i!="string"?(this.warn("nonStringBundleDependency",i),!1):(e.dependencies||(e.dependencies={}),e.dependencies.hasOwnProperty(i)||(this.warn("nonDependencyBundleDependency",i),e.dependencies[i]="*"),!0)},this))},fixDependencies:function(e,t){var r=!t;iW(e,this.warn),rW(e,this.warn),this.fixBundleDependenciesField(e),["dependencies","devDependencies"].forEach(function(i){if(i in e){if(!e[i]||typeof e[i]!="object"){this.warn("nonObjectDependencies",i),delete e[i];return}Object.keys(e[i]).forEach(function(o){var u=e[i][o];typeof u!="string"&&(this.warn("nonStringDependency",o,JSON.stringify(u)),delete e[i][o]);var l=mu.fromUrl(e[i][o]);l&&(e[i][o]=l.toString())},this)}},this)},fixModulesField:function(e){e.modules&&(this.warn("deprecatedModules"),delete e.modules)},fixKeywordsField:function(e){typeof e.keywords=="string"&&(e.keywords=e.keywords.split(/,\s+/)),e.keywords&&!Array.isArray(e.keywords)?(delete e.keywords,this.warn("nonArrayKeywords")):e.keywords&&(e.keywords=e.keywords.filter(function(t){return typeof t!="string"||!t?(this.warn("nonStringKeyword"),!1):!0},this))},fixVersionField:function(e,t){var r=!t;if(!e.version)return e.version="",!0;if(!kL.valid(e.version,r))throw new Error('Invalid version: "'+e.version+'"');return e.version=kL.clean(e.version,r),!0},fixPeople:function(e){FL(e,eW),FL(e,tW)},fixNameField:function(e,t){typeof t=="boolean"?t={strict:t}:typeof t=="undefined"&&(t={});var r=t.strict;if(!e.name&&!r){e.name="";return}if(typeof e.name!="string")throw new Error("name field must be a string.");r||(e.name=e.name.trim()),QH(e.name,r,t.allowLegacyCase),KH(e.name)&&this.warn("conflictingName",e.name)},fixDescriptionField:function(e){e.description&&typeof e.description!="string"&&(this.warn("nonStringDescription"),delete e.description),e.readme&&!e.description&&(e.description=JH(e.readme)),e.description===void 0&&delete e.description,e.description||this.warn("missingDescription")},fixReadmeField:function(e){e.readme||(this.warn("missingReadme"),e.readme="ERROR: No README data found!")},fixBugsField:function(e){if(!e.bugs&&e.repository&&e.repository.url){var t=mu.fromUrl(e.repository.url);t&&t.bugs()&&(e.bugs={url:t.bugs()})}else if(e.bugs){var r=/^.+@.*\..+$/;if(typeof e.bugs=="string")r.test(e.bugs)?e.bugs={email:e.bugs}:ep.parse(e.bugs).protocol?e.bugs={url:e.bugs}:this.warn("nonEmailUrlBugsString");else{sW(e.bugs,this.warn);var i=e.bugs;e.bugs={},i.url&&(typeof i.url=="string"&&ep.parse(i.url).protocol?e.bugs.url=i.url:this.warn("nonUrlBugsUrlField")),i.email&&(typeof i.email=="string"&&r.test(i.email)?e.bugs.email=i.email:this.warn("nonEmailBugsEmailField"))}!e.bugs.email&&!e.bugs.url&&(delete e.bugs,this.warn("emptyNormalizedBugs"))}},fixHomepageField:function(e){if(!e.homepage&&e.repository&&e.repository.url){var t=mu.fromUrl(e.repository.url);t&&t.docs()&&(e.homepage=t.docs())}if(!!e.homepage){if(typeof e.homepage!="string")return this.warn("nonUrlHomepage"),delete e.homepage;ep.parse(e.homepage).protocol||(e.homepage="http://"+e.homepage)}},fixLicenseField:function(e){if(e.license)typeof e.license!="string"||e.license.length<1||e.license.trim()===""?this.warn("invalidLicense"):VH(e.license).validForNewPackages||this.warn("invalidLicense");else return this.warn("missingLicense")}};function XH(e){if(e.charAt(0)!=="@")return!1;var t=e.slice(1).split("/");return t.length!==2?!1:t[0]&&t[1]&&t[0]===encodeURIComponent(t[0])&&t[1]===encodeURIComponent(t[1])}function ZH(e){return!e.match(/[\/@\s\+%:]/)&&e===encodeURIComponent(e)}function QH(e,t,r){if(e.charAt(0)==="."||!(XH(e)||ZH(e))||t&&!r&&e!==e.toLowerCase()||e.toLowerCase()==="node_modules"||e.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(e))}function FL(e,t){return e.author&&(e.author=t(e.author)),["maintainers","contributors"].forEach(function(r){!Array.isArray(e[r])||(e[r]=e[r].map(t))}),e}function eW(e){if(typeof e=="string")return e;var t=e.name||"",r=e.url||e.web,i=r?" ("+r+")":"",o=e.email||e.mail,u=o?" <"+o+">":"";return t+u+i}function tW(e){if(typeof e!="string")return e;var t=e.match(/^([^\(<]+)/),r=e.match(/\(([^\)]+)\)/),i=e.match(/<([^>]+)>/),o={};return t&&t[0].trim()&&(o.name=t[0].trim()),i&&(o.email=i[1]),r&&(o.url=r[1]),o}function rW(e,t){var r=e.optionalDependencies;if(!!r){var i=e.dependencies||{};Object.keys(r).forEach(function(o){i[o]=r[o]}),e.dependencies=i}}function nW(e,t,r){if(!e)return{};if(typeof e=="string"&&(e=e.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(e))return e;r("deprecatedArrayDependencies",t);var i={};return e.filter(function(o){return typeof o=="string"}).forEach(function(o){o=o.trim().split(/(:?[@\s><=])/);var u=o.shift(),l=o.join("");l=l.trim(),l=l.replace(/^@/,""),i[u]=l}),i}function iW(e,t){zH.forEach(function(r){!e[r]||(e[r]=nW(e[r],r,t))})}function sW(e,t){!e||Object.keys(e).forEach(function(r){pn.bugs[r]&&(t("typo",r,pn.bugs[r],"bugs"),e[pn.bugs[r]]=e[r],delete e[r])})}});var GL=_((_J,oW)=>{oW.exports={repositories:"'repositories' (plural) Not supported. Please pick one as the 'repository' field",missingRepository:"No repository field.",brokenGitUrl:"Probably broken git url: %s",nonObjectScripts:"scripts must be an object",nonStringScript:"script values must be string commands",nonArrayFiles:"Invalid 'files' member",invalidFilename:"Invalid filename in 'files' list: %s",nonArrayBundleDependencies:"Invalid 'bundleDependencies' list. Must be array of package names",nonStringBundleDependency:"Invalid bundleDependencies member: %s",nonDependencyBundleDependency:"Non-dependency in bundleDependencies: %s",nonObjectDependencies:"%s field must be an object",nonStringDependency:"Invalid dependency: %s %s",deprecatedArrayDependencies:"specifying %s as array is deprecated",deprecatedModules:"modules field is deprecated",nonArrayKeywords:"keywords should be an array of strings",nonStringKeyword:"keywords should be an array of strings",conflictingName:"%s is also the name of a node core module.",nonStringDescription:"'description' field should be a string",missingDescription:"No description",missingReadme:"No README data",missingLicense:"No license field.",nonEmailUrlBugsString:"Bug string field must be url, email, or {email,url}",nonUrlBugsUrlField:"bugs.url field must be a string url. Deleted.",nonEmailBugsEmailField:"bugs.email field must be a string email. Deleted.",emptyNormalizedBugs:"Normalized value of bugs field is an empty object. Deleted.",nonUrlHomepage:"homepage field must be a string url. Deleted.",invalidLicense:"license should be a valid SPDX license expression",typo:"%s should probably be %s."}});var WL=_((bJ,HL)=>{var jL=U("util"),tp=GL();HL.exports=function(){var e=Array.prototype.slice.call(arguments,0),t=e.shift();if(t=="typo")return aW.apply(null,e);var r=tp[t]?tp[t]:t+": '%s'";return e.unshift(r),jL.format.apply(null,e)};function aW(e,t,r){return r&&(e=r+"['"+e+"']",t=r+"['"+t+"']"),jL.format(tp.typo,e,t)}});var ip=_((wJ,VL)=>{VL.exports=$L;var rp=UL();$L.fixer=rp;var uW=WL(),lW=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],fW=["dependencies","people","typos"],np=lW.map(function(e){return YL(e)+"Field"});np=np.concat(fW);function $L(e,t,r){t===!0&&(t=null,r=!0),r||(r=!1),(!t||e.private)&&(t=function(i){}),e.scripts&&e.scripts.install==="node-gyp rebuild"&&!e.scripts.preinstall&&(e.gypfile=!0),rp.warn=function(){t(uW.apply(null,arguments))},np.forEach(function(i){rp["fix"+YL(i)](e,r)}),e._id=e.name+"@"+e.version}function YL(e){return e.charAt(0).toUpperCase()+e.slice(1)}});var op=_((SJ,sp)=>{"use strict";var KL=U("path"),zL=eL(),JL=rL();sp.exports=(e,t)=>(typeof e!="string"&&(t=e,e="."),t=t||{},JL.dir(e).then(r=>(r&&(e=KL.join(e,"package.json")),zL(e))).then(r=>(t.normalize!==!1&&ip()(r),r)));sp.exports.sync=(e,t)=>{typeof e!="string"&&(t=e,e="."),t=t||{},e=JL.dirSync(e)?KL.join(e,"package.json"):e;let r=zL.sync(e);return t.normalize!==!1&&ip()(r),r}});var ZL=_((EJ,ap)=>{"use strict";var XL=U("fs");ap.exports=e=>new Promise(t=>{XL.access(e,r=>{t(!r)})});ap.exports.sync=e=>{try{return XL.accessSync(e),!0}catch(t){return!1}}});var eA=_((LJ,QL)=>{"use strict";QL.exports=e=>new Promise(t=>{t(e())})});var rA=_((AJ,tA)=>{"use strict";var cW=eA();tA.exports=e=>{if(e<1)throw new TypeError("Expected `concurrency` to be a number from 1 and up");let t=[],r=0,i=()=>{r--,t.length>0&&t.shift()()};return o=>new Promise((u,l)=>{let f=()=>{r++,cW(o).then(h=>{u(h),i()},h=>{l(h),i()})};r{"use strict";var nA=rA(),up=class extends Error{constructor(t){super();this.value=t}},hW=e=>Promise.all(e).then(t=>t[1]===!0&&Promise.reject(new up(t[0])));iA.exports=(e,t,r)=>{r=Object.assign({concurrency:Infinity,preserveOrder:!0},r);let i=nA(r.concurrency),o=Array.from(e).map(l=>[l,i(()=>Promise.resolve(l).then(t))]),u=nA(r.preserveOrder?1:Infinity);return Promise.all(o.map(l=>u(()=>hW(l)))).then(()=>{}).catch(l=>l instanceof up?l.value:Promise.reject(l))}});var uA=_((PJ,lp)=>{"use strict";var oA=U("path"),aA=ZL(),pW=sA();lp.exports=(e,t)=>(t=Object.assign({cwd:process.cwd()},t),pW(e,r=>aA(oA.resolve(t.cwd,r)),t));lp.exports.sync=(e,t)=>{t=Object.assign({cwd:process.cwd()},t);for(let r of e)if(aA.sync(oA.resolve(t.cwd,r)))return r}});var fA=_((CJ,fp)=>{"use strict";var dn=U("path"),lA=uA();fp.exports=(e,t)=>{t=t||{};let r=dn.resolve(t.cwd||""),i=dn.parse(r).root,o=[].concat(e);return new Promise(u=>{(function l(f){lA(o,{cwd:f}).then(h=>{h?u(dn.join(f,h)):f===i?u(null):l(dn.dirname(f))})})(r)})};fp.exports.sync=(e,t)=>{t=t||{};let r=dn.resolve(t.cwd||""),i=dn.parse(r).root,o=[].concat(e);for(;;){let u=lA.sync(o,{cwd:r});if(u)return dn.join(r,u);if(r===i)return null;r=dn.dirname(r)}}});var pA=_((OJ,cp)=>{"use strict";var cA=fA(),hA=op();cp.exports=e=>cA("package.json",e).then(t=>t?hA(t,e).then(r=>({pkg:r,path:t})):{});cp.exports.sync=e=>{let t=cA.sync("package.json",e);return t?{pkg:hA.sync(t,e),path:t}:{}}});var dA=_((RJ,dW)=>{dW.exports={issue:"issue",commit:"commits",referenceActions:["close","closes","closed","closing","fix","fixes","fixed","fixing","resolve","resolves","resolved","resolving"],issuePrefixes:["#"]}});var gA=_((TJ,gW)=>{gW.exports={issue:"issues",commit:"commit",referenceActions:["close","closes","closed","fix","fixes","fixed","resolve","resolves","resolved"],issuePrefixes:["#","gh-"]}});var mA=_((IJ,mW)=>{mW.exports={issue:"issues",commit:"commit",referenceActions:["close","closes","closed","closing","fix","fixes","fixed","fixing"],issuePrefixes:["#"]}});var _A=_((NJ,yA)=>{"use strict";var vW=U("util").promisify,yW=sc(),_W=rS(),bW=nu(),wW=pE(),hp;try{hp=PE()}catch(e){hp=function(){return Promise.reject(e)}}var SW=op(),EW=pA(),LW=U("url").URL,pr=Tn(),vA={bitbucket:dA(),github:gA(),gitlab:mA()},AW=new RegExp(Object.keys(vA).join("|"),"i");Promise.allSettled=Promise.allSettled||function(e){let t=e.map(r=>Promise.resolve(r).then(i=>({status:"fulfilled",value:i}),i=>({status:"rejected",reason:i})));return Promise.all(t)};function xW(e){return new Promise(function(t,r){bW({lernaTags:!!e.lernaPackage,package:e.lernaPackage,tagPrefix:e.tagPrefix,skipUnstable:e.skipUnstable},function(i,o){i?r(i):t(o)})})}function PW(e,t){return e?e[0]==="v"&&t[0]!=="v"?"v"+t:e[0]!=="v"&&t[0]==="v"?t.replace(/^v/,""):t:t[0]!=="v"?"v"+t:t}function CW(e,t,r,i,o,u){let l,f;t=t||{},r=r||{},u=u||{};let h=e&&e.tagPrefix?new RegExp(`tag:\\s*[=]?${e.tagPrefix}(.+?)[,)]`,"gi"):/tag:\s*[v=]?(.+?)[,)]/gi;e=pr.merge({pkg:{transform:function(g){return g}},append:!1,releaseCount:1,skipUnstable:!1,debug:function(){},transform:function(g,d){if(pr.isString(g.gitTags)){let b=h.exec(g.gitTags);h.lastIndex=0,b&&(g.version=b[1])}g.committerDate&&(g.committerDate=yW(g.committerDate,"yyyy-mm-dd",!0)),d(null,g)},lernaPackage:null},e),e.warn=e.warn||e.debug,e.config&&(typeof e.config=="function"?l=vW(e.config)():l=Promise.resolve(e.config)),e.pkg&&(e.pkg.path?f=SW(e.pkg.path):f=EW());let p=hp();return Promise.allSettled([l,f,xW(e),p]).then(function([g,d,b,S]){let w,A,C,O,F,k=[];if(l?g.status==="fulfilled"?w=g.value:(e.warn("Error in config"+g.reason.toString()),w={}):w={},t=pr.assign(t,w.context),e.pkg&&(d.status==="fulfilled"?(e.pkg.path?A=d.value:A=d.value.pkg||{},A=e.pkg.transform(A)):e.pkg.path&&e.warn(d.reason.toString())),(!A||!A.repository||!A.repository.url)&&S.status==="fulfilled"&&(A=A||{},A.repository=A.repository||{},A.repository.url=S.value,wW(A)),A){t.version=t.version||A.version;try{O=_W(A)}catch(I){O={}}if(O.browse){let I=O.browse();if(!t.host)if(O.domain){let K=new LW(I);K.origin.indexOf("//")!==-1?t.host=K.protocol+"//"+O.domain:t.host=K.protocol+O.domain}else t.host=null;t.owner=t.owner||O.user||"",t.repository=t.repository||O.project,O.host&&O.project&&O.user?t.repoUrl=I:t.repoUrl=t.host}t.packageData=A}if(t.version=t.version||"",b.status==="fulfilled"){k=t.gitSemverTags=b.value,C=k[e.releaseCount-1];let I=k[0];(I===t.version||I==="v"+t.version)&&(e.outputUnreleased?t.version="Unreleased":e.outputUnreleased=!1)}if(pr.isBoolean(e.outputUnreleased)||(e.outputUnreleased=!0),t.host&&(!t.issue||!t.commit||!i||!i.referenceActions)){let I;if(t.host){let K=t.host.match(AW);K&&(I=K[0])}else O&&O.type&&(I=O.type);I?(F=vA[I],t=pr.assign({issue:F.issue,commit:F.commit},t)):(e.warn('Host: "'+t.host+'" does not exist'),F={})}else F={};return t.resetChangelog&&(C=null),r=pr.assign({format:"%B%n-hash-%n%H%n-gitTags-%n%d%n-committerDate-%n%ci",from:C,merges:!1,debug:e.debug},w.gitRawCommitsOpts,r),e.append&&(r.reverse=r.reverse||!0),i=pr.assign({},w.parserOpts,{warn:e.warn},i),F.referenceActions&&i&&(i.referenceActions=F.referenceActions),pr.isEmpty(i.issuePrefixes)&&F.issuePrefixes&&(i.issuePrefixes=F.issuePrefixes),o=pr.assign({finalizeContext:function(I,K,Q,Y,le){let B=le[0],z=le[le.length-1],M=B?B.hash:null,W=z?z.hash:null;if((!I.currentTag||!I.previousTag)&&Y){let G=/tag:\s*(.+?)[,)]/gi.exec(Y.gitTags),H=I.currentTag;I.currentTag=H||G?G[1]:null;let $=k.indexOf(I.currentTag);$===-1?I.currentTag=H||null:(I.previousTag=k[$+1])||(e.append?I.previousTag=I.previousTag||M:I.previousTag=I.previousTag||W)}else I.previousTag=I.previousTag||k[0],I.version==="Unreleased"?e.append?I.currentTag=I.currentTag||W:I.currentTag=I.currentTag||M:I.currentTag||(e.lernaPackage?I.currentTag=e.lernaPackage+"@"+I.version:e.tagPrefix?I.currentTag=e.tagPrefix+I.version:I.currentTag=PW(k[0],I.version));return!pr.isBoolean(I.linkCompare)&&I.previousTag&&I.currentTag&&(I.linkCompare=!0),I},debug:e.debug},w.writerOpts,{reverse:e.append,doFlush:e.outputUnreleased},o),{options:e,context:t,gitRawCommitsOpts:r,parserOpts:i,writerOpts:o,gitRawExecOpts:u}})}yA.exports=CW});var LA=_((DJ,EA)=>{"use strict";var OW=um(),bA=ec(),RW=nc(),TW=Mw(),IW=Tn(),wA=U("stream"),SA=Ls(),NW=U("child_process").execFileSync,DW=_A();function MW(e,t,r,i,o,u){o=o||{};let l=new wA.Readable({objectMode:o.includeDetails});l._read=function(){};let f=!1,h=new wA.Readable({objectMode:!0});h._read=function(){};function p(g,d){return bA(IW.merge({},r,{from:g,to:d})).on("error",function(b){f||(setImmediate(h.emit.bind(h),"error",b),f=!0)})}return DW(e,t,r,i,o,u).then(function(g){e=g.options,t=g.context,r=g.gitRawCommitsOpts,i=g.parserOpts,o=g.writerOpts,u=g.gitRawExecOpts;try{NW("git",["rev-parse","--verify","HEAD"],{stdio:"ignore"});let d=t.gitSemverTags.slice(0).reverse();d.push("HEAD"),r.from&&(d.indexOf(r.from)!==-1?d=d.slice(d.indexOf(r.from)):d=[r.from,"HEAD"]);let b=d.map((S,w)=>{let A=w>0?d[w-1]:"";return p(A,S)});r.from&&(b=b.splice(1)),r.reverse&&b.reverse(),b.reduce((S,w)=>w.pipe(OW(S))).on("data",function(S){setImmediate(h.emit.bind(h),"data",S)}).on("end",function(){setImmediate(h.emit.bind(h),"end")})}catch(d){h=bA(r,u)}h.on("error",function(d){d.message="Error in git-raw-commits: "+d.message,setImmediate(l.emit.bind(l),"error",d)}).pipe(RW(i)).on("error",function(d){d.message="Error in conventional-commits-parser: "+d.message,setImmediate(l.emit.bind(l),"error",d)}).pipe(SA.obj(function(d,b,S){try{e.transform.call(this,d,S)}catch(w){S(w)}})).on("error",function(d){d.message="Error in options.transform: "+d.message,setImmediate(l.emit.bind(l),"error",d)}).pipe(TW(t,o)).on("error",function(d){d.message="Error in conventional-changelog-writer: "+d.message,setImmediate(l.emit.bind(l),"error",d)}).pipe(SA({objectMode:o.includeDetails},function(d,b,S){try{l.push(d)}catch(w){setImmediate(function(){throw w})}S()},function(d){l.push(null),d()}))}).catch(function(g){setImmediate(l.emit.bind(l),"error",g)}),l}EA.exports=MW});var dp=_((MJ,pp)=>{"use strict";var AA=U("path");pp.exports=xA(U);pp.exports.presetLoader=xA;function xA(e){return t=>{let r="",i="",o="";if(typeof t=="string")r=t.toLowerCase(),AA.isAbsolute(t)&&(o=t);else if(typeof t=="object"&&t.name)r=t.name.toLowerCase(),AA.isAbsolute(t.name)&&(o=t.name);else throw Error("preset must be string or object with key name");if(!o){if(r[0]==="@"){let u=r.split("/");i=u.shift()+"/",r=u.join("/")}r.startsWith("conventional-changelog-")||(r=`conventional-changelog-${r}`)}try{let u=e(o||`${i}${r}`);return u&&!u.then&&typeof t=="object"?u(t):u}catch(u){throw Error("does not exist")}}}});var CA=_((qJ,PA)=>{var qW=Object.prototype.toString,gp=typeof Buffer!="undefined"&&typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function kW(e){return qW.call(e).slice(8,-1)==="ArrayBuffer"}function FW(e,t,r){t>>>=0;var i=e.byteLength-t;if(i<0)throw new RangeError("'offset' is out of bounds");if(r===void 0)r=i;else if(r>>>=0,r>i)throw new RangeError("'length' is out of bounds");return gp?Buffer.from(e.slice(t,t+r)):new Buffer(new Uint8Array(e.slice(t,t+r)))}function BW(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!Buffer.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return gp?Buffer.from(e,t):new Buffer(e,t)}function UW(e,t,r){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return kW(e)?FW(e,t,r):typeof e=="string"?BW(e,t):gp?Buffer.from(e):new Buffer(e)}PA.exports=UW});var DA=_(ae=>{var OA=void 0,GW=1e5,De=function(){var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty;return{Class:function(r){return e.call(r).replace(/^\[object *|\]$/g,"")},HasProperty:function(r,i){return i in r},HasOwnProperty:function(r,i){return t.call(r,i)},IsCallable:function(r){return typeof r=="function"},ToInt32:function(r){return r>>0},ToUint32:function(r){return r>>>0}}}(),jW=Math.LN2,HW=Math.abs,vu=Math.floor,WW=Math.log,$W=Math.min,tr=Math.pow,YW=Math.round;function mp(e){if(RA&&Bi){var t=RA(e),r;for(r=0;rGW)throw new RangeError("Array too large for polyfill");function t(i){Bi(e,i,{get:function(){return e._getter(i)},set:function(o){e._setter(i,o)},enumerable:!0,configurable:!1})}var r;for(r=0;r>r}function yp(e,t){var r=32-t;return e<>>r}function KW(e){return[e&255]}function zW(e){return vp(e[0],8)}function JW(e){return[e&255]}function TA(e){return yp(e[0],8)}function XW(e){return e=YW(Number(e)),[e<0?0:e>255?255:e&255]}function ZW(e){return[e>>8&255,e&255]}function QW(e){return vp(e[0]<<8|e[1],16)}function e$(e){return[e>>8&255,e&255]}function t$(e){return yp(e[0]<<8|e[1],16)}function r$(e){return[e>>24&255,e>>16&255,e>>8&255,e&255]}function n$(e){return vp(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function i$(e){return[e>>24&255,e>>16&255,e>>8&255,e&255]}function s$(e){return yp(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function IA(e,t,r){var i=(1<.5||w%2?w+1:w}for(e!==e?(u=(1<=tr(2,1-i)?(u=$W(vu(WW(e)/jW),1023),l=b(e/tr(2,u)*tr(2,r)),l/tr(2,r)>=2&&(u=u+1,l=1),u>i?(u=(1<>1;return i.reverse(),f=i.join(""),h=(1<0?p*tr(2,g-h)*(1+d/tr(2,r)):d!==0?p*tr(2,-(h-1))*(d/tr(2,r)):p<0?-0:0}function o$(e){return NA(e,11,52)}function a$(e){return IA(e,11,52)}function u$(e){return NA(e,8,23)}function l$(e){return IA(e,8,23)}(function(){var e=function(S){if(S=De.ToInt32(S),S<0)throw new RangeError("ArrayBuffer size is not a small enough positive integer");this.byteLength=S,this._bytes=[],this._bytes.length=S;var w;for(w=0;wthis.buffer.byteLength)throw new RangeError("byteOffset out of range");if(this.byteOffset%this.BYTES_PER_ELEMENT)throw new RangeError("ArrayBuffer length minus the byteOffset is not a multiple of the element size.");if(arguments.length<3){if(this.byteLength=this.buffer.byteLength-this.byteOffset,this.byteLength%this.BYTES_PER_ELEMENT)throw new RangeError("length of buffer minus byteOffset not a multiple of the element size");this.length=this.byteLength/this.BYTES_PER_ELEMENT}else this.length=De.ToUint32(F),this.byteLength=this.length*this.BYTES_PER_ELEMENT;if(this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer")}else throw new TypeError("Unexpected argument type(s)");this.constructor=A,mp(this),VW(this)},A.prototype=new t,A.prototype.BYTES_PER_ELEMENT=b,A.prototype._pack=S,A.prototype._unpack=w,A.BYTES_PER_ELEMENT=b,A.prototype._getter=function(C){if(arguments.length<1)throw new SyntaxError("Not enough arguments");if(C=De.ToUint32(C),C>=this.length)return OA;var O=[],F,k;for(F=0,k=this.byteOffset+C*this.BYTES_PER_ELEMENT;F=this.length)return OA;var F=this._pack(O),k,I;for(k=0,I=this.byteOffset+C*this.BYTES_PER_ELEMENT;kthis.length)throw new RangeError("Offset plus length of array is out of range");if(B=this.byteOffset+I*this.BYTES_PER_ELEMENT,z=F.length*this.BYTES_PER_ELEMENT,F.buffer===this.buffer){for(M=[],Q=0,Y=F.byteOffset;Qthis.length)throw new RangeError("Offset plus length of array is out of range");for(Q=0;QQ?Q:I}C=De.ToInt32(C),O=De.ToInt32(O),arguments.length<1&&(C=0),arguments.length<2&&(O=this.length),C<0&&(C=this.length+C),O<0&&(O=this.length+O),C=F(C,0,this.length),O=F(O,0,this.length);var k=O-C;return k<0&&(k=0),new this.constructor(this.buffer,this.byteOffset+C*this.BYTES_PER_ELEMENT,k)},A}var i=r(1,KW,zW),o=r(1,JW,TA),u=r(1,XW,TA),l=r(2,ZW,QW),f=r(2,e$,t$),h=r(4,r$,n$),p=r(4,i$,s$),g=r(4,l$,u$),d=r(8,a$,o$);ae.Int8Array=ae.Int8Array||i,ae.Uint8Array=ae.Uint8Array||o,ae.Uint8ClampedArray=ae.Uint8ClampedArray||u,ae.Int16Array=ae.Int16Array||l,ae.Uint16Array=ae.Uint16Array||f,ae.Int32Array=ae.Int32Array||h,ae.Uint32Array=ae.Uint32Array||p,ae.Float32Array=ae.Float32Array||g,ae.Float64Array=ae.Float64Array||d})();(function(){function e(u,l){return De.IsCallable(u.get)?u.get(l):u[l]}var t=function(){var u=new ae.Uint16Array([4660]),l=new ae.Uint8Array(u.buffer);return e(l,0)===18}(),r=function(l,f,h){if(arguments.length===0)l=new ae.ArrayBuffer(0);else if(!(l instanceof ae.ArrayBuffer||De.Class(l)==="ArrayBuffer"))throw new TypeError("TypeError");if(this.buffer=l||new ae.ArrayBuffer(0),this.byteOffset=De.ToUint32(f),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(arguments.length<3?this.byteLength=this.buffer.byteLength-this.byteOffset:this.byteLength=De.ToUint32(h),this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer");mp(this)};function i(u){return function(l,f){if(l=De.ToUint32(l),l+u.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");l+=this.byteOffset;var h=new ae.Uint8Array(this.buffer,l,u.BYTES_PER_ELEMENT),p=[],g;for(g=0;gthis.byteLength)throw new RangeError("Array index out of range");var p=new u([f]),g=new ae.Uint8Array(p.buffer),d=[],b,S;for(b=0;b{var MA=vs().Writable,f$=An(),Qs=CA();typeof Uint8Array=="undefined"?yu=DA().Uint8Array:yu=Uint8Array;var yu;function Kn(e,t){if(!(this instanceof Kn))return new Kn(e,t);typeof e=="function"&&(t=e,e={}),e||(e={});var r=e.encoding,i=!1;r?(r=String(r).toLowerCase(),(r==="u8"||r==="uint8")&&(r="uint8array")):i=!0,MA.call(this,{objectMode:!0}),this.encoding=r,this.shouldInferEncoding=i,t&&this.on("finish",function(){t(this.getBody())}),this.body=[]}kA.exports=Kn;f$(Kn,MA);Kn.prototype._write=function(e,t,r){this.body.push(e),r()};Kn.prototype.inferEncoding=function(e){var t=e===void 0?this.body[0]:e;return Buffer.isBuffer(t)?"buffer":typeof Uint8Array!="undefined"&&t instanceof Uint8Array?"uint8array":Array.isArray(t)?"array":typeof t=="string"?"string":Object.prototype.toString.call(t)==="[object Object]"?"object":"buffer"};Kn.prototype.getBody=function(){return!this.encoding&&this.body.length===0?[]:(this.shouldInferEncoding&&(this.encoding=this.inferEncoding()),this.encoding==="array"?d$(this.body):this.encoding==="string"?h$(this.body):this.encoding==="buffer"?p$(this.body):this.encoding==="uint8array"?g$(this.body):this.body)};var FJ=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"};function c$(e){return/Array\]$/.test(Object.prototype.toString.call(e))}function qA(e){return typeof e=="string"||c$(e)||e&&typeof e.subarray=="function"}function h$(e){for(var t=[],r=!1,i=0;i{"use strict";var m$=U("util").promisify;BA.exports=v$;function v$(e){return typeof e=="function"?m$(e)():typeof e=="object"?Promise.resolve(e):Promise.reject(new Error("preset package must be a promise, function, or object"))}});var HA=_((GJ,jA)=>{"use strict";var y$=FA(),_$=yc(),b$=nc(),w$=dp(),S$=nu(),E$=ec(),L$=UA(),A$=["major","minor","patch"];jA.exports=x$;function x$(e,t,r){if(typeof e!="object")throw new Error("The 'options' argument must be an object.");let i=Object.assign({ignoreReverted:!0},e),o=typeof t=="function"?t:r;if(typeof o!="function")throw new Error("You must provide a callback function.");let u=i.config||{};if(i.preset)try{u=w$(i.preset)}catch(l){if(l.message==="does not exist"){let f=typeof i.preset=="object"?i.preset.name:i.preset;return o(new Error(`Unable to load the "${f}" preset package. Please make sure it's installed.`))}else return o(l)}L$(u).then(l=>{let f=i.whatBump||(l.recommendedBumpOpts&&l.recommendedBumpOpts.whatBump?l.recommendedBumpOpts.whatBump:GA);if(typeof f!="function")throw Error("whatBump must be a function");let h=Object.assign({},l.recommendedBumpOpts&&l.recommendedBumpOpts.parserOpts?l.recommendedBumpOpts.parserOpts:l.parserOpts,t),p=typeof h.warn=="function"?h.warn:GA;S$({lernaTags:!!i.lernaPackage,package:i.lernaPackage,tagPrefix:i.tagPrefix,skipUnstable:i.skipUnstable},(g,d)=>{if(g)return o(g);E$({format:"%B%n-hash-%n%H",from:d[0]||"",path:i.path}).pipe(b$(h)).pipe(y$(b=>{let S=i.ignoreReverted?_$(b):b;(!S||!S.length)&&p("No commits since last release");let w=f(S,i);w&&w.level!=null?w.releaseType=A$[w.level]:w==null&&(w={}),o(null,w)}))})}).catch(l=>o(l))}function GA(){}});var ax=_((KJ,ox)=>{ox.exports=sx;function sx(e,t){if(e&&t)return sx(e)(t);if(typeof e!="function")throw new TypeError("need wrapper function");return Object.keys(e).forEach(function(i){r[i]=e[i]}),r;function r(){for(var i=new Array(arguments.length),o=0;o{var ux=ax();Sp.exports=ux(wu);Sp.exports.strict=ux(lx);wu.proto=wu(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return wu(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return lx(this)},configurable:!0})});function wu(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function lx(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}});var dx=_((JJ,px)=>{var cx=vs(),C$=fx();function O$(e){return hx(e,{objectMode:!0,highWaterMark:16})}function R$(e){return hx(e)}function hx(e,t){if(!e||typeof e=="function"||e._readableState)return e;let r=new cx.Readable(t).wrap(e);return e.destroy&&(r.destroy=e.destroy.bind(e)),r}var Su=class extends cx.Readable{constructor(t,r){super(zr(st({},r),{autoDestroy:!0}));this._drained=!1,this._forwarding=!1,this._current=null,this._toStreams2=r&&r.objectMode?O$:R$,typeof t=="function"?this._queue=t:(this._queue=t.map(this._toStreams2),this._queue.forEach(i=>{typeof i!="function"&&this._attachErrorListener(i)})),this._next()}_read(){this._drained=!0,this._forward()}_forward(){if(this._forwarding||!this._drained||!this._current)return;this._forwarding=!0;let t;for(;this._drained&&(t=this._current.read())!==null;)this._drained=this.push(t);this._forwarding=!1}_destroy(t,r){let i=[];if(this._current&&i.push(this._current),typeof this._queue!="function"&&(i=i.concat(this._queue)),i.length===0)r(t);else{let o=i.length,u=t;i.forEach(l=>{T$(l,t,f=>{u=u||f,--o==0&&r(u)})})}}_next(){if(this._current=null,typeof this._queue=="function")this._queue((t,r)=>{if(t)return this.destroy(t);r=this._toStreams2(r),this._attachErrorListener(r),this._gotNextStream(r)});else{let t=this._queue.shift();typeof t=="function"&&(t=this._toStreams2(t()),this._attachErrorListener(t)),this._gotNextStream(t)}}_gotNextStream(t){if(!t){this.push(null);return}this._current=t,this._forward();let r=()=>{this._forward()},i=()=>{if(!t._readableState.ended&&!t.destroyed){let u=new Error("ERR_STREAM_PREMATURE_CLOSE");u.code="ERR_STREAM_PREMATURE_CLOSE",this.destroy(u)}},o=()=>{this._current=null,t.removeListener("readable",r),t.removeListener("end",o),t.removeListener("close",i),t.destroy(),this._next()};t.on("readable",r),t.once("end",o),t.once("close",i)}_attachErrorListener(t){if(!t)return;let r=i=>{t.removeListener("error",r),this.destroy(i)};t.once("error",r)}};Su.obj=e=>new Su(e,{objectMode:!0,highWaterMark:16});px.exports=Su;function T$(e,t,r){if(!e.destroy||e.destroyed)r(t);else{let i=C$(o=>r(o||t));e.on("error",i).on("close",()=>i()).destroy(t,i)}}});var D$={};rm(D$,{default:()=>N$,releaseUtils:()=>bp});var xu=Oe(U("@yarnpkg/core"));var tx=Oe(U("@yarnpkg/cli")),$e=Oe(U("@yarnpkg/core")),qr=Oe(U("clipanion")),rx=Oe(U("semver")),bu=Oe(U("stream")),nx=Oe(U("util"));var bp={};rm(bp,{changelogStream:()=>eo,recommendedBump:()=>_p});var Pt=Oe(U("@yarnpkg/core")),WA=Oe(U("@yarnpkg/fslib")),$A=Oe(U("@yarnpkg/plugin-pnp"));var Ln=class{constructor(t,r,i){Jr(this,"reDigits",/[^0-9]/);this.YYYY=null,this.YY=null,this["0Y"]=null,this.MM=null,this["0M"]=null,this.WW=null,this["0W"]=null,this.DD=null,this["0D"]=null,this.hasChanged=!1,this.isInitialVersion=i,this.parentSeperator=r,this.props=[],this.date=new Date(Date.now()),this.parse(t)}parse(t){for(let r in t){if(!this.isInitialVersion&&!this.isValid(r,t[r]))throw new Error(`Calendar tag ${r} has an invalid value "${t[r]}"`);this[r]=t[r],this.props.push(r)}}inc(t){let r=this.asString(),i=this.date.getUTCFullYear().toString();this.YYYY=i,this.YY=parseInt(i.slice(2)).toString(),this["0Y"]=this.YY.padStart(2,"0");let o=(this.date.getUTCMonth()+1).toString();this.MM=o,this["0M"]=this.MM.padStart(2,"0");let u=this.getUTCWeek(this.date).toString();this.WW=u,this["0W"]=this.WW.padStart(2,"0");let l=this.date.getUTCDate().toString();this.DD=l,this["0D"]=this.DD.padStart(2,"0");let f=this.asString();return this.hasChanged=r!=f,this}isValid(t,r){if(!r||typeof r!="string"||this.reDigits.test(r))return!1;switch(t){case"YYYY":return r.slice(0,1)=="0"?!1:r.length===4;case"YY":return r.slice(0,1)=="0"?!1:r.length===1||r.length===2||r.length===3;case"0Y":return(r.length==2||r.length==3)&&r.slice(0,1)=="0"?!1:r.length===2||r.length===3;case"MM":return[1,2,3,4,5,6,7,8,9,10,11,12].indexOf(Number(r))!==-1;case"0M":return["01","02","03","04","05","06","07","08","09","10","11","12"].indexOf(r)!==-1;case"WW":return Number(r)>=1&&Number(r)<=52;case"0W":return r.length!=2?!1:Number(r)>=1&&Number(r)<=52;case"DD":return Number(r)>=1&&Number(r)<=31;case"0D":return r.length!=2?!1:Number(r)>=1&&Number(r)<=31}}asObject(){return this.props.reduce((t,r)=>(t[r]=this[r],t),{})}asString(){let t=[];for(let r of this.constructor.tags)this.props.indexOf(r)!==-1&&t.push(this[r]);return t.join(this.parentSeperator)}getUTCWeek(t){let r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())),i=r.getUTCDay()||7;r.setUTCDate(r.getUTCDate()+4-i);let o=new Date(Date.UTC(r.getUTCFullYear(),0,1));return Math.ceil(((r-o)/864e5+1)/7)}};Jr(Ln,"tags",["YYYY","YY","0Y","MM","0M","WW","0W","DD","0D"]);var Xr=class{constructor(t,r,i){Jr(this,"reDigits",/[^0-9]/);this.MAJOR=null,this.MINOR=null,this.PATCH=null,this.isInitialVersion=i,this.parentSeperator=r,this.props=[],this.parse(t)}parse(t){for(let r in t){if(!this.isInitialVersion&&!this.isValid(r,t[r]))throw new Error(`Semantic tag ${r} has an invalid value "${t[r]}"`);this[r]=t[r],this.props.push(r)}}reset(){this.props.map(t=>this[t]=0)}inc(t){if(this.props.indexOf(t)===-1)throw new Error(`[CALVER]: You have requested to increment "${t}" but your format doesn't have it.`);return t=="MAJOR"&&(this.MAJOR=(parseInt(this.MAJOR)+1).toString(),this.props.indexOf("MINOR")!==-1&&(this.MINOR="0"),this.props.indexOf("PATCH")!==-1&&(this.PATCH="0")),t=="MINOR"&&(this.MINOR=(parseInt(this.MINOR)+1).toString(),this.props.indexOf("PATCH")!==-1&&(this.PATCH="0")),t=="PATCH"&&(this.PATCH=(parseInt(this.PATCH)+1).toString()),this}isValid(t,r){return!(!r||typeof r!="string"||this.reDigits.test(r))}asObject(){return this.props.reduce((t,r)=>(t[r]=this[r],t),{})}asString(){let t=[];for(let r of this.constructor.tags)this.props.indexOf(r)!==-1&&t.push(this[r]);return t.join(this.parentSeperator)}};Jr(Xr,"tags",["MAJOR","MINOR","PATCH"]);var Je=class{constructor(t,r,i){Jr(this,"reDigits",/[^0-9\-]/);this.DEV=null,this.ALPHA=null,this.BETA=null,this.RC=null,this.isInitialVersion=i,this.parentSeperator=r,this.prop=null,this.parse(t)}parse(t){for(let r in t){if(!this.isInitialVersion&&!this.isValid(r,t[r]))throw new Error(`Modifier tag ${r} has an invalid value "${t[r]}"`);this.prop=r,this[r]=t[r]}}inc(t){if(t!=this.prop)throw new Error(`[CALVER]: You have requested to increment "${t}" but your format doesn't have it.`);return this[this.prop]=(parseInt(this[this.prop])+1).toString(),this}isValid(t,r){return!(!r||typeof r!="string"||this.reDigits.test(r)||r.indexOf("-")!==-1&&r!="-1")}asObject(){let t={};return t[this.prop]=this[this.prop],t}asString(){return`${this.constructor.seperator}${this.prop}${this.parentSeperator}${this[this.prop]}`}};Jr(Je,"seperator","-"),Jr(Je,"tags",["DEV","ALPHA","BETA","RC"]);var zl=class{constructor(t,r){this.seperator=r,this.versionStringHasModifier=t.versionStringHasModifier,this.isInitialVersion=t.isInitialVersion,this.isCalendarLeading=t.isCalendarLeading,this.datever=null,this.semanticver=null,this.modifierver=null,this.parse(t)}parse(t){Object.keys(t.calendar).length>0&&(this.datever=new Ln(t.calendar,this.seperator,this.isInitialVersion)),Object.keys(t.semantic).length>0&&(this.semanticver=new Xr(t.semantic,this.seperator,this.isInitialVersion)),Object.keys(t.modifier).length>0&&(this.modifierver=new Je(t.modifier,this.seperator,this.isInitialVersion))}inc(t){let r=t[0];if(t.length===1&&["MAJOR","MINOR","PATCH","CALENDAR"].indexOf(r)!==-1&&this.versionStringHasModifier)return this.modifierver=null,this;if(r=="CALENDAR"&&this.datever.inc(r),Xr.tags.indexOf(r)!==-1&&this.semanticver.inc(r),Je.tags.indexOf(r)!==-1&&this.modifierver.inc(r),t.length>1){let o=t[1];if(Je.tags.indexOf(o)!==-1&&Je.tags.indexOf(r)===-1)this.modifierver.inc(o);else if(Xr.tags.indexOf(o)!==-1)this.isCalendarLeading&&this.datever.hasChanged?this.semanticver.reset():this.semanticver.inc(o);else throw new Error(`The second tag of the level should be either modifier or semantic tag. You specified "${o}" as the second tag and "${r}" as the first tag.`)}return this}asObject(){let t={calendar:{},semantic:{},modifier:{}};return this.datever&&(t.calendar=this.datever.asObject()),this.semanticver&&(t.semantic=this.semanticver.asObject()),this.modifierver&&(t.modifier=this.modifierver.asObject()),t}},nm=class{constructor(){this.seperator=".",this.levels=["CALENDAR","MAJOR","MINOR","PATCH",...Je.tags]}inc(t,r,i){i=this.validateLevels(i),t=this.validateFormat(t,i);let o=this.parseVersion(r,t,i),u=new zl(o,this.seperator).inc(i).asObject(),l=this.asString(t,u);if(r==l)throw new Error("No change happened in the version.");return l}isValid(t,r){if(!r)return!1;try{return t=this.validateFormat(t,[]),r=this.parseVersion(r,t,[]),new zl(r,this.seperator),!0}catch(i){return!1}}getTagType(t){if(t=t.toUpperCase(),Ln.tags.indexOf(t)!==-1)return"calendar";if(Xr.tags.indexOf(t)!==-1)return"semantic";if(Je.tags.indexOf(t)!==-1)return"modifier"}asString(t,r){let i=[];for(let o of t.sorted)Ln.tags.indexOf(o)!==-1&&i.push(r.calendar[o]),Xr.tags.indexOf(o)!==-1&&i.push(r.semantic[o]),Je.tags.indexOf(o)!==-1&&r.modifier&&i.push(Je.seperator+o.toLowerCase()+this.seperator+r.modifier[o]);return i.join(this.seperator).replace(this.seperator+Je.seperator,Je.seperator)}parseVersion(t,r,i){let o={isCalendarLeading:r.isCalendarLeading,isInitialVersion:!t,versionStringHasModifier:/(dev|DEV|alpha|ALPHA|beta|BETA|rc|RC)/.test(t),sorted:{},calendar:{},semantic:{},modifier:{}},u=0,l=0;for(let f of r.sorted){l=t.indexOf(this.seperator,u+1),l===-1&&(l=void 0);let h=t.slice(u,l);h.indexOf(Je.seperator)!==-1&&(l=t.indexOf(Je.seperator,u+1),h=t.slice(u,l)),Je.tags.indexOf(h.toUpperCase())!==-1&&(h.toUpperCase()!=f?h="-1":h=t.slice(u+h.length+1)),isNaN(u)&&(h=Je.tags.indexOf(f)!==-1?"-1":"0"),h==""&&(h="0"),o.sorted[f]=h,r.calendar.indexOf(f)!==-1&&(o.calendar[f]=h),r.semantic.indexOf(f)!==-1&&(o.semantic[f]=h),r.modifier.indexOf(f)!==-1&&(o.modifier[f]=h),u=l+1}return o}validateFormat(t,r){let i={sorted:[],calendar:[],semantic:[],modifier:[]},o=t.toUpperCase().split(this.seperator);for(let u of o){if(Ln.tags.indexOf(u)!==-1)i.calendar.push(u);else if(Xr.tags.indexOf(u)!==-1)i.semantic.push(u);else throw new Error(`[CALVER]: Invalid format tag "${u}".`);i.sorted.push(u)}for(let u of r)Je.tags.indexOf(u)!==-1&&(i.modifier.push(u),i.sorted.push(u));return i.isCalendarLeading=Ln.tags.indexOf(i.sorted[0])!==-1,i}validateLevels(t){let r=[],i=t.split(".");for(let o of i){let u=o.toUpperCase();if(this.levels.indexOf(u)!==-1)r.push(u);else throw new Error(`[CALVER]: Invalid level "${o}".`)}return r}},Jl=new nm;var YA=Oe(LA()),VA=Oe(dp()),KA=Oe(HA()),zA=Oe(nu()),JA=Oe(U("module")),rr=Oe(U("semver")),_u=Oe(U("util")),XA={patch:1,minor:2,major:3},ZA=(0,_u.promisify)(zA.default);async function eo(e,...t){var S;let{cwd:r,locator:i,manifest:o,project:u}=e,[l={},f,h,p,g]=t,d=QA(u.cwd),b=!o.private||Boolean(e===u.topLevelWorkspace&&u.configuration.get("releaseCalverFormat"));return(0,YA.default)(st({config:await ex(d,u.configuration.get("conventionalChangelogPreset")),pkg:{transform:()=>o.exportTo({version:i.reference})},lernaPackage:e===u.topLevelWorkspace?void 0:Pt.structUtils.stringifyIdent(e.locator),tagPrefix:e===u.topLevelWorkspace?void 0:`${Pt.structUtils.stringifyIdent(e.locator)}@`,outputUnreleased:!0},l),zr(st({isPatch:!1,version:b?void 0:"Unreleased"},f),{date:b?(S=f==null?void 0:f.date)!=null?S:new Date().toISOString().split("T")[0]:void 0}),st({path:r},h),p,st({generateOn:w=>{let A=rr.default.valid(w.version);return A&&(!l.skipUnstable||!rr.default.prerelease(A))}},g))}async function _p(e,{prerelease:t,preid:r}={}){var g,d;let{cwd:i,manifest:o,project:u}=e,l=u.configuration.get("conventionalChangelogPreset"),f=u.configuration.get("releaseCalverFormat"),h=new Set(u.configuration.get("releaseCodeChangeTypes")),p=(0,_u.promisify)(KA.default);if(e===u.topLevelWorkspace)return f?P$(f,(g=o.version)!=null?g:"",{prerelease:t,preid:r}):void 0;{let b=await ex(QA(u.cwd),l),S=await p({config:b,path:i,skipUnstable:!t,lernaPackage:Pt.structUtils.stringifyIdent(e.locator),whatBump:I=>{var Q;return I.some(Y=>h.has(Y.type))&&((Q=b.recommendedBumpOpts)==null?void 0:Q.whatBump)?b.recommendedBumpOpts.whatBump(I):{}}});if(!t||!S.releaseType)return S.releaseType;let[w]=await ZA({skipUnstable:!1,lernaTags:!0,package:Pt.structUtils.stringifyIdent(e.locator)});if(!w)return`pre${S.releaseType}`;let[A=`${Pt.structUtils.stringifyIdent(e.locator)}@0.0.0`]=await ZA({skipUnstable:!0,lernaTags:!0,package:Pt.structUtils.stringifyIdent(e.locator)}),C=Pt.structUtils.parseLocator(A).reference,O=Pt.structUtils.parseLocator(w).reference,F=(d=rr.default.diff(C,e.locator.reference))!=null?d:rr.default.diff(C,O);if(!F)return`pre${S.releaseType}`;if(F==="prerelease")return"prerelease";let k=F.slice("pre".length);return XA[k]` +$|&><\`"'`.split("").some(r=>e.includes(r))?`'${e.replace(/'/g,"\\'")}'`:e,to=class extends tx.BaseCommand{constructor(){super(...arguments);this.json=qr.Option.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"});this.dryRun=qr.Option.Boolean("--dry-run",!1,{description:"Prints the recommended version bump to stdout"});this.amend=qr.Option.Boolean("--amend",!1,{description:"Amend the previous commit instead of creating a new one"});this.tagHead=qr.Option.String("--tag-head","HEAD",{description:"Specify an alternative commit-ish to tag"})}async execute(){let t=await $e.Configuration.find(this.context.cwd,this.context.plugins),{project:r}=await $e.Project.find(t,this.context.cwd),{stdout:i}=await $e.execUtils.execvp("git",["tag","--list"],{cwd:r.cwd,strict:!0}),o=new Set(i.trim().split(/\s+/)),u=r.topLevelWorkspace.manifest.version?`v${r.topLevelWorkspace.manifest.version}`:null;if(u&&o.has(u))throw new qr.UsageError(`${u} has already been released`);let l=rx.default.prerelease(r.topLevelWorkspace.locator.reference);return(await $e.StreamReport.start({configuration:t,stdout:this.context.stdout,json:this.json},async h=>{let p=r.topLevelWorkspace.getRecursiveWorkspaceChildren().filter(S=>!S.manifest.private&&!o.has($e.structUtils.stringifyLocator(S.locator)));if(!p.length){h.reportWarning($e.MessageName.UNNAMED,"There are no workspaces to tag");return}let g=p.map(({locator:S,manifest:w})=>`${$e.structUtils.stringifyIdent(S)}: v${w.version}`).join(` +`),d=`chore: release ${u!=null?u:`${p.length} workspace(s)`} + +${g}`,b=["commit","-m",d];this.amend&&b.push("--amend"),h.reportJson({gitOpt:"commit",commitMessage:d}),this.dryRun?h.reportInfo($e.MessageName.UNNAMED,`git ${b.map(wp).join(" ")}`):await $e.execUtils.execvp("git",b,{cwd:r.cwd,strict:!0});for(let{locator:S}of p){let w=$e.structUtils.stringifyLocator(S),A=["tag",w,this.tagHead];h.reportJson({gitOp:"tag",tagName:w}),this.dryRun?h.reportInfo($e.MessageName.UNNAMED,`git ${A.map(wp).join(" ")}`):await $e.execUtils.execvp("git",A,{cwd:r.cwd,strict:!0})}if(u){let S="",w=new bu.Transform({transform(C,O,F){S+=C.toString(),F(null,C)}});await(0,nx.promisify)(bu.pipeline)(await eo(r.topLevelWorkspace,{releaseCount:1,skipUnstable:!l}),w),S=S.split(` `).slice(2).join(` -`); - const tagArgs = [`tag`, `-a`, `-m`, `${projectTagName} -${changelogText}`, `--cleanup=verbatim`, projectTagName, this.tagHead]; - report2.reportJson({ - tagName: projectTagName, - tagMessage: changelogText - }); - if (this.dryRun) { - report2.reportInfo(import_core2.MessageName.UNNAMED, `git ${tagArgs.map(cliEscape).join(` `)}`); - } else { - await import_core2.execUtils.execvp(`git`, tagArgs, { - cwd: project.cwd, - strict: true - }); - } - } - }); - return report.exitCode(); - } - }; - ReleaseCommitCommand.usage = import_clipanion.Command.Usage({ - category: `Release-related commands`, - description: `Commits and tags releases`, - details: ` +`);let A=["tag","-a","-m",`${u} +${S}`,"--cleanup=verbatim",u,this.tagHead];h.reportJson({tagName:u,tagMessage:S}),this.dryRun?h.reportInfo($e.MessageName.UNNAMED,`git ${A.map(wp).join(" ")}`):await $e.execUtils.execvp("git",A,{cwd:r.cwd,strict:!0})}})).exitCode()}};to.usage=qr.Command.Usage({category:"Release-related commands",description:"Commits and tags releases",details:` This command will create a release for the current git project. - `, - examples: [ - [ - `Commits and tags a release for this project's workspaces`, - `yarn release-commit` - ] - ] - }); - ReleaseCommitCommand.paths = [[`release-commit`]]; - var releaseCommit_default = ReleaseCommitCommand; - - // pnp:/Users/herockk/Workspaces/yarn-plugins/packages/plugin-release/sources/commands/release.ts - var import_cli2 = __toModule(__require("@yarnpkg/cli")); - var import_core3 = __toModule(__require("@yarnpkg/core")); - var import_fslib2 = __toModule(__require("@yarnpkg/fslib")); - var import_clipanion2 = __toModule(__require("clipanion")); - var import_multistream = __toModule(require_multistream()); - var import_semver3 = __toModule(__require("semver")); - var import_stream2 = __toModule(__require("stream")); - var import_util3 = __toModule(__require("util")); - var CHANGELOG = `CHANGELOG.md`; - var ReleaseCommand = class extends import_cli2.BaseCommand { - constructor() { - super(...arguments); - this.json = import_clipanion2.Option.Boolean(`--json`, false, {description: `Format the output as an NDJSON stream`}); - this.dryRun = import_clipanion2.Option.Boolean(`--dry-run`, false, { - description: `Prints the recommended version bump to stdout` - }); - this.firstRelease = import_clipanion2.Option.Boolean(`--first-release`, false, { - description: `Skips bumping the version and regenerates the changelog from scratch` - }); - this.date = import_clipanion2.Option.String(`--date`, { - description: `Override the release date in the changelog with the provided string` - }); - this.prerelease = import_clipanion2.Option.String(`--prerelease`, false, { - description: `Add a prerelease identifier to new versions`, - tolerateBoolean: true - }); - this.includeUnstable = import_clipanion2.Option.Boolean(`--include-unstable`, false, { - description: `Create sections for unstable tags in the generated changelog. Implied by the --prerelease option` - }); - } - async execute() { - this.includeUnstable || (this.includeUnstable = this.prerelease !== false); - const configuration = await import_core3.Configuration.find(this.context.cwd, this.context.plugins); - const {project, workspace} = await import_core3.Project.find(configuration, this.context.cwd); - if (!workspace) - throw new import_cli2.WorkspaceRequiredError(project.cwd, this.context.cwd); - const ident = import_core3.structUtils.stringifyIdent(workspace.locator); - const report = await import_core3.StreamReport.start({ - configuration, - stdout: this.context.stdout, - json: this.json - }, async (report2) => { - const needsVersion = !workspace.manifest.private || Boolean(workspace === project.topLevelWorkspace && project.configuration.get(`releaseCalverFormat`)); - const preid = typeof this.prerelease === `string` ? this.prerelease : void 0; - if (needsVersion && !this.firstRelease) { - const recommendedStrategy = await recommendedBump(workspace, {prerelease: this.prerelease !== false, preid}); - if (!recommendedStrategy) { - report2.reportWarning(import_core3.MessageName.UNNAMED, `${ident} has no code changes since last release`); - return; - } - const version = new import_semver3.SemVer(workspace.locator.reference); - if (import_semver3.default.valid(recommendedStrategy)) { - workspace.manifest.version = recommendedStrategy; - report2.reportJson({ident, newVersion: workspace.manifest.version}); - } else { - version.inc(recommendedStrategy, preid); - version.format(); - workspace.manifest.version = version.format(); - report2.reportJson({ident, strategy: recommendedStrategy, newVersion: workspace.manifest.version}); - } - report2.reportInfo(import_core3.MessageName.UNNAMED, `Recommended version bump: ${recommendedStrategy}`); - if (!this.dryRun) { - await workspace.persistManifest(); - } - } - const changelogPath = import_fslib2.ppath.join(workspace.cwd, CHANGELOG); - let text = ``; - const getText = new import_stream2.Transform({ - transform(chunk, encoding, callback) { - text += chunk.toString(); - callback(null, chunk); - } - }); - const changelog = await changelogStream(workspace, { - releaseCount: this.firstRelease ? 0 : 1, - skipUnstable: !this.includeUnstable - }, this.date == null ? void 0 : {date: this.date}); - const additionalStreams = []; - if (this.dryRun) { - additionalStreams.push(report2.createStreamReporter()); - await (0, import_util3.promisify)(import_stream2.pipeline)(changelog, getText, ...additionalStreams); - } else { - const outPath = import_fslib2.ppath.join(await import_fslib2.xfs.mktempPromise(), CHANGELOG); - const existingChangelog = new import_stream2.PassThrough(); - if (needsVersion && !this.firstRelease) { - import_fslib2.xfs.createReadStream(changelogPath).on(`error`, function(err) { - if (err.code !== `ENOENT`) - throw err; - this.unpipe(existingChangelog); - existingChangelog.push(null); - }).pipe(existingChangelog); - } else { - existingChangelog.push(null); - } - const newChangelog = new import_stream2.PassThrough(); - additionalStreams.push(newChangelog); - await Promise.all([ - (0, import_util3.promisify)(import_stream2.pipeline)(new import_multistream.default([ - newChangelog, - existingChangelog - ]), import_fslib2.xfs.createWriteStream(outPath)), - (0, import_util3.promisify)(import_stream2.pipeline)(changelog, getText, ...additionalStreams) - ]); - await import_fslib2.xfs.copyFilePromise(outPath, changelogPath); - } - report2.reportJson({ident, changelogPath, changelog: text}); - if (!this.dryRun) { - await import_core3.execUtils.execvp(`git`, [`add`, import_fslib2.Filename.manifest, CHANGELOG], { - cwd: workspace.cwd, - strict: true - }); - await project.install({ - cache: await import_core3.Cache.find(configuration), - report: new import_core3.ThrowReport(), - persistProject: false - }); - await import_core3.scriptUtils.maybeExecuteWorkspaceLifecycleScript(workspace, `postrelease`, {report: report2}); - } - if (needsVersion) { - report2.reportInfo(import_core3.MessageName.UNNAMED, `Released v${workspace.manifest.version}`); - } - }); - return report.exitCode(); - } - }; - ReleaseCommand.usage = import_clipanion2.Command.Usage({ - category: `Release-related commands`, - description: `Bumps version and generates a changelog for the active workspace`, - details: ` + `,examples:[["Commits and tags a release for this project's workspaces","yarn release-commit"]]}),to.paths=[["release-commit"]];var ix=to;var Eu=Oe(U("@yarnpkg/cli")),Ye=Oe(U("@yarnpkg/core")),dr=Oe(U("@yarnpkg/fslib")),kr=Oe(U("clipanion")),gx=Oe(dx()),Lu=Oe(U("semver")),Fr=Oe(U("stream")),Au=Oe(U("util"));var Ep="CHANGELOG.md",ro=class extends Eu.BaseCommand{constructor(){super(...arguments);this.json=kr.Option.Boolean("--json",!1,{description:"Format the output as an NDJSON stream"});this.dryRun=kr.Option.Boolean("--dry-run",!1,{description:"Prints the recommended version bump to stdout"});this.firstRelease=kr.Option.Boolean("--first-release",!1,{description:"Skips bumping the version and regenerates the changelog from scratch"});this.date=kr.Option.String("--date",{description:"Override the release date in the changelog with the provided string"});this.prerelease=kr.Option.String("--prerelease",!1,{description:"Add a prerelease identifier to new versions",tolerateBoolean:!0});this.includeUnstable=kr.Option.Boolean("--include-unstable",!1,{description:"Create sections for unstable tags in the generated changelog. Implied by the --prerelease option"})}async execute(){this.includeUnstable||(this.includeUnstable=this.prerelease!==!1);let t=await Ye.Configuration.find(this.context.cwd,this.context.plugins),{project:r,workspace:i}=await Ye.Project.find(t,this.context.cwd);if(!i)throw new Eu.WorkspaceRequiredError(r.cwd,this.context.cwd);let o=Ye.structUtils.stringifyIdent(i.locator);return(await Ye.StreamReport.start({configuration:t,stdout:this.context.stdout,json:this.json},async l=>{let f=!i.manifest.private||Boolean(i===r.topLevelWorkspace&&r.configuration.get("releaseCalverFormat")),h=typeof this.prerelease=="string"?this.prerelease:void 0;if(f&&!this.firstRelease){let w=await _p(i,{prerelease:this.prerelease!==!1,preid:h});if(!w){l.reportWarning(Ye.MessageName.UNNAMED,`${o} has no code changes since last release`);return}let A=new Lu.SemVer(i.locator.reference);Lu.default.valid(w)?(i.manifest.version=w,l.reportJson({ident:o,newVersion:i.manifest.version})):(A.inc(w,h),A.format(),i.manifest.version=A.format(),l.reportJson({ident:o,strategy:w,newVersion:i.manifest.version})),l.reportInfo(Ye.MessageName.UNNAMED,`Recommended version bump: ${w}`),this.dryRun||await i.persistManifest()}let p=dr.ppath.join(i.cwd,Ep),g="",d=new Fr.Transform({transform(w,A,C){g+=w.toString(),C(null,w)}}),b=await eo(i,{releaseCount:this.firstRelease?0:1,skipUnstable:!this.includeUnstable},this.date==null?void 0:{date:this.date}),S=[];if(this.dryRun)S.push(l.createStreamReporter()),await(0,Au.promisify)(Fr.pipeline)(b,d,...S);else{let w=dr.ppath.join(await dr.xfs.mktempPromise(),Ep),A=new Fr.PassThrough;f&&!this.firstRelease?dr.xfs.createReadStream(p).on("error",function(O){if(O.code!=="ENOENT")throw O;this.unpipe(A),A.push(null)}).pipe(A):A.push(null);let C=new Fr.PassThrough;S.push(C),await Promise.all([(0,Au.promisify)(Fr.pipeline)(new gx.default([C,A]),dr.xfs.createWriteStream(w)),(0,Au.promisify)(Fr.pipeline)(b,d,...S)]),await dr.xfs.copyFilePromise(w,p)}l.reportJson({ident:o,changelogPath:p,changelog:g}),this.dryRun||(await Ye.execUtils.execvp("git",["add",dr.Filename.manifest,Ep],{cwd:i.cwd,strict:!0}),await r.install({cache:await Ye.Cache.find(t),report:new Ye.ThrowReport,persistProject:!1}),await Ye.scriptUtils.maybeExecuteWorkspaceLifecycleScript(i,"postrelease",{report:l})),f&&l.reportInfo(Ye.MessageName.UNNAMED,`Released v${i.manifest.version}`)})).exitCode()}};ro.usage=kr.Command.Usage({category:"Release-related commands",description:"Bumps version and generates a changelog for the active workspace",details:` This command will prepare the current workspace for a new release. - `, - examples: [ - [ - `Creates a release for the current workspace`, - `yarn release` - ], - [ - `Creates a release candidate for the current workspace`, - `yarn release --prerelease=rc` - ] - ] - }); - ReleaseCommand.paths = [[`release`]]; - var release_default = ReleaseCommand; - - // pnp:/Users/herockk/Workspaces/yarn-plugins/packages/plugin-release/sources/index.ts - var plugin = { - configuration: { - releaseCalverFormat: { - description: `A CalVer (calendar version) format to use for monorepo versions. Must include the semver level and conform to SemVer (no more than 3 parts).`, - isNullable: true, - type: import_core4.SettingsType.STRING, - default: null - }, - releaseCodeChangeTypes: { - description: `A list of commit types that correlate to code changes. Types outside of this set will not generate new releases.`, - isArray: true, - type: import_core4.SettingsType.STRING, - default: [`feat`, `fix`, `perf`, `refactor`] - }, - conventionalChangelogPreset: { - description: `A preset value to pass to conventional-changelog-preset-loader`, - type: import_core4.SettingsType.STRING, - default: `conventionalcommits` - } - }, - commands: [ - release_default, - releaseCommit_default - ] - }; - var sources_default = plugin; - return sources_exports; -})(); + `,examples:[["Creates a release for the current workspace","yarn release"],["Creates a release candidate for the current workspace","yarn release --prerelease=rc"]]}),ro.paths=[["release"]];var mx=ro;var I$={configuration:{releaseCalverFormat:{description:"A CalVer (calendar version) format to use for monorepo versions. Must include the semver level and conform to SemVer (no more than 3 parts).",isNullable:!0,type:xu.SettingsType.STRING,default:null},releaseCodeChangeTypes:{description:"A list of commit types that correlate to code changes. Types outside of this set will not generate new releases.",isArray:!0,type:xu.SettingsType.STRING,default:["feat","fix","perf","refactor"]},conventionalChangelogPreset:{description:"A preset value to pass to conventional-changelog-preset-loader",type:xu.SettingsType.STRING,default:"conventionalcommits"}},commands:[mx,ix]},N$=I$;return D$;})(); /*! multistream. MIT License. Feross Aboukhadijeh */ /*! safe-buffer. MIT License. Feross Aboukhadijeh */ /** diff --git a/packages/plugin-release/package.json b/packages/plugin-release/package.json index d6083b1..639bf4c 100644 --- a/packages/plugin-release/package.json +++ b/packages/plugin-release/package.json @@ -1,6 +1,6 @@ { "name": "@kherock/yarn-plugin-release", - "version": "1.8.0", + "version": "2.0.0", "license": "BSD-2-Clause", "main": "./sources/index.ts", "author": "Kyle Herock ",