@accordproject/concerto-cto 5.0.0-beta.1 → 5.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/{chunk-KXXMUWWS.mjs → chunk-ADOFOC62.mjs} +19 -8
- package/dist/esm/chunk-ADOFOC62.mjs.map +7 -0
- package/dist/esm/{chunk-TXONDDFZ.mjs → chunk-AKCFZ6K2.mjs} +2 -2
- package/dist/esm/{chunk-N5WVDVIT.mjs → chunk-L6QXUSLL.mjs} +26 -38
- package/dist/esm/{chunk-N5WVDVIT.mjs.map → chunk-L6QXUSLL.mjs.map} +3 -3
- package/dist/esm/{chunk-JIDG6RUM.mjs → chunk-Z274WV22.mjs} +6 -6
- package/dist/esm/chunk-Z274WV22.mjs.map +7 -0
- package/dist/esm/external.mjs +2 -2
- package/dist/esm/index.mjs +4 -4
- package/dist/esm/parserMain.mjs +2 -2
- package/dist/esm/printer.mjs +1 -1
- package/dist/esm-browser/{chunk-VCWYA55K.mjs → chunk-5Z2F6LHO.mjs} +2 -2
- package/dist/esm-browser/{chunk-YAX4W2RL.mjs → chunk-HZQXVGUH.mjs} +2 -2
- package/dist/esm-browser/{chunk-SEXNR5Y5.mjs → chunk-TQPDAJQB.mjs} +6 -6
- package/dist/esm-browser/chunk-TQPDAJQB.mjs.map +7 -0
- package/dist/esm-browser/{chunk-ABBFUZVB.mjs → chunk-W7LTTM2O.mjs} +19 -8
- package/dist/esm-browser/chunk-W7LTTM2O.mjs.map +7 -0
- package/dist/esm-browser/external.mjs +2 -2
- package/dist/esm-browser/index.mjs +4 -4
- package/dist/esm-browser/parserMain.mjs +2 -2
- package/dist/esm-browser/printer.mjs +1 -1
- package/dist/parser.js +5 -5
- package/dist/parser.js.map +1 -1
- package/dist/printer.js +36 -7
- package/dist/printer.js.map +1 -1
- package/package.json +2 -2
- package/dist/esm/chunk-JIDG6RUM.mjs.map +0 -7
- package/dist/esm/chunk-KXXMUWWS.mjs.map +0 -7
- package/dist/esm-browser/chunk-ABBFUZVB.mjs.map +0 -7
- package/dist/esm-browser/chunk-SEXNR5Y5.mjs.map +0 -7
- /package/dist/esm/{chunk-TXONDDFZ.mjs.map → chunk-AKCFZ6K2.mjs.map} +0 -0
- /package/dist/esm-browser/{chunk-VCWYA55K.mjs.map → chunk-5Z2F6LHO.mjs.map} +0 -0
- /package/dist/esm-browser/{chunk-YAX4W2RL.mjs.map → chunk-HZQXVGUH.mjs.map} +0 -0
|
@@ -27,7 +27,7 @@ function decoratorArgFromMetaModel(mm) {
|
|
|
27
27
|
break;
|
|
28
28
|
case `${MetaModelNamespace}.DecoratorString`:
|
|
29
29
|
const strRef = mm;
|
|
30
|
-
result +=
|
|
30
|
+
result += toStringLiteral(strRef.value);
|
|
31
31
|
break;
|
|
32
32
|
default:
|
|
33
33
|
result += `${mm.value}`;
|
|
@@ -121,8 +121,8 @@ function modifiersFromMetaModel(mm) {
|
|
|
121
121
|
break;
|
|
122
122
|
case `${MetaModelNamespace}.DateTimeProperty`:
|
|
123
123
|
case `${MetaModelNamespace}.DateTimeScalar`:
|
|
124
|
-
if (mm.defaultValue) {
|
|
125
|
-
defaultString += ` default
|
|
124
|
+
if (mm.defaultValue !== void 0) {
|
|
125
|
+
defaultString += ` default=${toStringLiteral(mm.defaultValue)}`;
|
|
126
126
|
}
|
|
127
127
|
break;
|
|
128
128
|
case `${MetaModelNamespace}.DoubleProperty`:
|
|
@@ -161,11 +161,11 @@ function modifiersFromMetaModel(mm) {
|
|
|
161
161
|
break;
|
|
162
162
|
case `${MetaModelNamespace}.StringProperty`:
|
|
163
163
|
case `${MetaModelNamespace}.StringScalar`:
|
|
164
|
-
if (mm.defaultValue) {
|
|
165
|
-
defaultString += ` default
|
|
164
|
+
if (mm.defaultValue !== void 0) {
|
|
165
|
+
defaultString += ` default=${toStringLiteral(mm.defaultValue)}`;
|
|
166
166
|
}
|
|
167
167
|
if (mm.validator) {
|
|
168
|
-
validatorString += ` regex
|
|
168
|
+
validatorString += ` regex=${toRegexLiteral(mm.validator.pattern, mm.validator.flags)}`;
|
|
169
169
|
}
|
|
170
170
|
if (mm.lengthValidator) {
|
|
171
171
|
const minLength = mm.lengthValidator.minLength !== void 0 ? mm.lengthValidator.minLength : "";
|
|
@@ -174,7 +174,7 @@ function modifiersFromMetaModel(mm) {
|
|
|
174
174
|
}
|
|
175
175
|
break;
|
|
176
176
|
case `${MetaModelNamespace}.ObjectProperty`:
|
|
177
|
-
if (mm.defaultValue) {
|
|
177
|
+
if (mm.defaultValue !== void 0) {
|
|
178
178
|
defaultString += ` default="${mm.defaultValue}"`;
|
|
179
179
|
}
|
|
180
180
|
break;
|
|
@@ -186,6 +186,17 @@ function modifiersFromMetaModel(mm) {
|
|
|
186
186
|
}
|
|
187
187
|
return result + defaultString + validatorString;
|
|
188
188
|
}
|
|
189
|
+
function toStringLiteral(value) {
|
|
190
|
+
return JSON.stringify(String(value));
|
|
191
|
+
}
|
|
192
|
+
function toRegexLiteral(pattern, flags) {
|
|
193
|
+
let source = pattern;
|
|
194
|
+
try {
|
|
195
|
+
source = new RegExp(pattern, flags).source;
|
|
196
|
+
} catch {
|
|
197
|
+
}
|
|
198
|
+
return `/${source}/${flags || ""}`;
|
|
199
|
+
}
|
|
189
200
|
function toDoubleString(value) {
|
|
190
201
|
const normalizedValue = Number(value).toLocaleString("en-US", {
|
|
191
202
|
useGrouping: false,
|
|
@@ -367,4 +378,4 @@ export {
|
|
|
367
378
|
toCTO,
|
|
368
379
|
printer_default
|
|
369
380
|
};
|
|
370
|
-
//# sourceMappingURL=chunk-
|
|
381
|
+
//# sourceMappingURL=chunk-ADOFOC62.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/printer.ts"],
|
|
4
|
+
"sourcesContent": ["/*\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n MetaModelNamespace,\n IDeclaration,\n IDecorator,\n IDecoratorLiteral,\n IDecoratorString,\n IDecoratorTypeReference,\n IMapDeclaration,\n IModel,\n IProperty,\n IImport,\n IImportTypes,\n IConceptDeclaration,\n IIdentifiedBy,\n IImportType,\n IDecoratorBoolean,\n IDecoratorNumber\n} from '@accordproject/concerto-metamodel';\n\n/**\n * Returns true if the metamodel is a MapDeclaration\n * @param {object} mm - the metamodel\n * @return {boolean} the string for that model\n */\nfunction isMap(mm: IDeclaration): boolean {\n return mm.$class === `${MetaModelNamespace}.MapDeclaration`;\n}\n\n/**\n * Returns true if the metamodel is a ScalarDeclaration\n * @param {object} mm - the metamodel\n * @return {boolean} the string for that model\n */\nfunction isScalar(mm: IDeclaration): boolean {\n return [\n `${MetaModelNamespace}.BooleanScalar`,\n `${MetaModelNamespace}.IntegerScalar`,\n `${MetaModelNamespace}.LongScalar`,\n `${MetaModelNamespace}.DoubleScalar`,\n `${MetaModelNamespace}.StringScalar`,\n `${MetaModelNamespace}.DateTimeScalar`,\n ].includes(mm.$class);\n}\n\n/**\n * Create decorator argument string from a metamodel\n * @param {object} mm - the metamodel\n * @return {string} the string for the decorator argument\n */\nfunction decoratorArgFromMetaModel(mm: IDecoratorLiteral): string {\n let result = '';\n switch (mm.$class) {\n case `${MetaModelNamespace}.DecoratorTypeReference`:\n const typeRef = mm as IDecoratorTypeReference;\n result += `${typeRef.type.name}${!!typeRef.isArray ? '[]' : ''}`;\n break;\n case `${MetaModelNamespace}.DecoratorString`:\n const strRef = mm as IDecoratorString;\n result += toStringLiteral(strRef.value);\n break;\n default:\n result += `${(mm as (IDecoratorNumber | IDecoratorBoolean)).value}`;\n break;\n }\n return result;\n}\n\n/**\n * Create decorator string from a metamodel\n * @param {object} mm - the metamodel\n * @return {string} the string for the decorator\n */\nfunction decoratorFromMetaModel(mm: IDecorator): string {\n let result = '';\n result += `@${mm.name}`;\n if (mm.arguments) {\n result += '(';\n result += mm.arguments.map(decoratorArgFromMetaModel).join(',');\n result += ')';\n }\n return result;\n}\n\n/**\n * Create decorators string from a metamodel\n * @param {object} mm - the metamodel\n * @param {string} prefix - indentation\n * @return {string} the string for the decorators\n */\nfunction decoratorsFromMetaModel(mm: IDecorator[], prefix: string): string {\n let result = '';\n result += mm.map(decoratorFromMetaModel).join(`\\n${prefix}`);\n result += `\\n${prefix}`;\n return result;\n}\n\n/**\n * Create type string from a metamodel\n *\n * @param {object} mm - the metamodel\n * @return {string} the string for the type\n */\nfunction typeFromMetaModel(mm: any): string {\n let result = '';\n switch (mm.$class) {\n case `${MetaModelNamespace}.EnumProperty`:\n break;\n case `${MetaModelNamespace}.BooleanScalar`:\n case `${MetaModelNamespace}.BooleanProperty`:\n case `${MetaModelNamespace}.BooleanMapValueType`:\n result += ' Boolean';\n break;\n case `${MetaModelNamespace}.DateTimeProperty`:\n case `${MetaModelNamespace}.DateTimeScalar`:\n case `${MetaModelNamespace}.DateTimeMapKeyType`:\n case `${MetaModelNamespace}.DateTimeMapValueType`:\n result += ' DateTime';\n break;\n case `${MetaModelNamespace}.DoubleProperty`:\n case `${MetaModelNamespace}.DoubleScalar`:\n case `${MetaModelNamespace}.DoubleMapValueType`:\n result += ' Double';\n break;\n case `${MetaModelNamespace}.IntegerProperty`:\n case `${MetaModelNamespace}.IntegerScalar`:\n case `${MetaModelNamespace}.IntegerMapValueType`:\n result += ' Integer';\n break;\n case `${MetaModelNamespace}.LongProperty`:\n case `${MetaModelNamespace}.LongScalar`:\n case `${MetaModelNamespace}.LongMapValueType`:\n result += ' Long';\n break;\n case `${MetaModelNamespace}.StringProperty`:\n case `${MetaModelNamespace}.StringScalar`:\n case `${MetaModelNamespace}.StringMapKeyType`:\n case `${MetaModelNamespace}.StringMapValueType`:\n result += ' String';\n break;\n case `${MetaModelNamespace}.ObjectProperty`:\n case `${MetaModelNamespace}.ObjectMapKeyType`:\n case `${MetaModelNamespace}.ObjectMapValueType`:\n result += ` ${mm.type.name}`;\n break;\n case `${MetaModelNamespace}.RelationshipProperty`:\n case `${MetaModelNamespace}.RelationshipMapValueType`:\n result += ` ${mm.type.name}`;\n break;\n }\n return result;\n}\n\n/**\n * Create modifiers string from a metamodel\n *\n * @param {object} mm - the metamodel\n * @return {string} the string for the modifiers\n */\nfunction modifiersFromMetaModel(mm: any): string {\n let result = '';\n let defaultString = '';\n let validatorString = '';\n\n switch (mm.$class) {\n case `${MetaModelNamespace}.EnumProperty`:\n break;\n case `${MetaModelNamespace}.BooleanProperty`:\n case `${MetaModelNamespace}.BooleanScalar`:\n if (mm.defaultValue === true || mm.defaultValue === false) {\n if (mm.defaultValue) {\n defaultString += ' default=true';\n } else {\n defaultString += ' default=false';\n }\n }\n break;\n case `${MetaModelNamespace}.DateTimeProperty`:\n case `${MetaModelNamespace}.DateTimeScalar`:\n if (mm.defaultValue !== undefined) {\n defaultString += ` default=${toStringLiteral(mm.defaultValue)}`;\n }\n break;\n case `${MetaModelNamespace}.DoubleProperty`:\n case `${MetaModelNamespace}.DoubleScalar`:\n if (mm.defaultValue !== undefined) {\n const doubleString = toDoubleString(mm.defaultValue);\n defaultString += ` default=${doubleString}`;\n }\n if (mm.validator) {\n const lowerString = mm.validator.lower !== undefined ? toDoubleString(mm.validator.lower) : '';\n const upperString = mm.validator.upper !== undefined ? toDoubleString(mm.validator.upper) : '';\n validatorString += ` range=[${lowerString},${upperString}]`;\n }\n break;\n case `${MetaModelNamespace}.IntegerProperty`:\n case `${MetaModelNamespace}.IntegerScalar`:\n if (mm.defaultValue !== undefined) {\n defaultString += ` default=${mm.defaultValue.toString()}`;\n }\n if (mm.validator) {\n const lowerString = mm.validator.lower !== undefined ? mm.validator.lower : '';\n const upperString = mm.validator.upper !== undefined ? mm.validator.upper : '';\n validatorString += ` range=[${lowerString},${upperString}]`;\n }\n break;\n case `${MetaModelNamespace}.LongProperty`:\n case `${MetaModelNamespace}.LongScalar`:\n if (mm.defaultValue !== undefined) {\n defaultString += ` default=${mm.defaultValue.toString()}`;\n }\n if (mm.validator) {\n const lowerString = mm.validator.lower !== undefined ? mm.validator.lower : '';\n const upperString = mm.validator.upper !== undefined ? mm.validator.upper : '';\n validatorString += ` range=[${lowerString},${upperString}]`;\n }\n break;\n case `${MetaModelNamespace}.StringProperty`:\n case `${MetaModelNamespace}.StringScalar`:\n if (mm.defaultValue !== undefined) {\n defaultString += ` default=${toStringLiteral(mm.defaultValue)}`;\n }\n if (mm.validator) {\n validatorString += ` regex=${toRegexLiteral(mm.validator.pattern, mm.validator.flags)}`;\n }\n if (mm.lengthValidator) {\n const minLength = mm.lengthValidator.minLength !== undefined ? mm.lengthValidator.minLength : '';\n const maxLength = mm.lengthValidator.maxLength !== undefined ? mm.lengthValidator.maxLength : '';\n validatorString += ` length=[${minLength},${maxLength}]`;\n }\n break;\n case `${MetaModelNamespace}.ObjectProperty`:\n if (mm.defaultValue !== undefined) {\n defaultString += ` default=\"${mm.defaultValue}\"`;\n }\n break;\n }\n\n if (mm.sizeValidator) {\n const minSize = mm.sizeValidator.minSize !== undefined ? mm.sizeValidator.minSize : '';\n const maxSize = mm.sizeValidator.maxSize !== undefined ? mm.sizeValidator.maxSize : '';\n validatorString += ` size=[${minSize},${maxSize}]`;\n }\n\n return result + defaultString + validatorString;\n}\n\n/**\n * Format a string as a quoted CTO string literal, escaping any characters that\n * would otherwise terminate the literal or break parsing.\n * @param {string} value - string value to quote\n * @returns {string} CTO-compatible quoted string literal\n */\nfunction toStringLiteral(value: string): string {\n return JSON.stringify(String(value));\n}\n\n/**\n * Format a regular expression validator as a CTO regex literal. Unescaped\n * forward slashes and line terminators in the pattern would terminate the\n * literal early, so the pattern is normalized the same way JavaScript\n * normalizes RegExp.prototype.source. Patterns that are not valid regular\n * expressions are emitted unchanged.\n * @param {string} pattern - the regular expression pattern\n * @param {string} [flags] - the regular expression flags\n * @returns {string} CTO-compatible regex literal\n */\nfunction toRegexLiteral(pattern: string, flags?: string): string {\n let source = pattern;\n try {\n source = new RegExp(pattern, flags).source;\n } catch {\n // Leave invalid patterns untouched rather than throwing while printing\n }\n return `/${source}/${flags || ''}`;\n}\n\n/**\n * Format a numeric literal as a Double token for CTO output.\n * @param {number} value - numeric value to format\n * @returns {string} CTO-compatible Double literal\n */\nfunction toDoubleString(value: number): string {\n const normalizedValue = Number(value).toLocaleString('en-US', {\n useGrouping: false,\n // Intl.NumberFormat permits 1..21; use the maximum to avoid exponent output.\n maximumSignificantDigits: 21,\n });\n\n if (!normalizedValue.includes('.')) {\n return `${normalizedValue}.0`;\n }\n\n return normalizedValue;\n}\n\n/**\n * Create property string from a metamodel\n *\n * @param {object} prop - the property metamodel object\n * @return {string} the string for the property\n */\nfunction propertyFromMetaModel(prop: IProperty): string {\n let result = '';\n\n if (prop.decorators) {\n result += decoratorsFromMetaModel(prop.decorators, ' ');\n }\n\n if (prop.$class === `${MetaModelNamespace}.RelationshipProperty`) {\n result += '-->';\n } else {\n result += 'o';\n }\n result += typeFromMetaModel(prop);\n if (prop.isArray) {\n result += '[]';\n }\n result += ` ${prop.name}`;\n result += modifiersFromMetaModel(prop);\n if (prop.isOptional) {\n result += ' optional';\n }\n return result;\n}\n\n/**\n * Create map type string from a metamodel map\n *\n * @param {object} entry - the map metamodel object\n * @return {string} the string for the map\n */\nfunction mapFromMetaModel(entry: any): string {\n let result = '';\n if (entry.decorators) {\n result += decoratorsFromMetaModel(entry.decorators, ' ');\n }\n if (entry.$class === `${MetaModelNamespace}.RelationshipMapValueType`) {\n result += '-->';\n } else {\n result += 'o';\n }\n result += typeFromMetaModel(entry);\n return result;\n}\n\n/**\n * Create declaration string from a metamodel\n *\n * @param {object} mm - the declaration metamodel object\n * @return {string} the string for the declaration\n */\nfunction declFromMetaModel(mm: IDeclaration): string {\n let result = '';\n\n if (mm.decorators) {\n result += decoratorsFromMetaModel(mm.decorators, '');\n }\n\n if (isScalar(mm)) {\n result += `scalar ${mm.name} extends`;\n result += typeFromMetaModel(mm);\n result += modifiersFromMetaModel(mm);\n } else if (isMap(mm)) {\n result += `map ${mm.name} {`;\n const mapDecl = mm as IMapDeclaration;\n result += `\\n ${mapFromMetaModel(mapDecl.key)}`;\n result += `\\n ${mapFromMetaModel(mapDecl.value)}`;\n result += '\\n}';\n } else {\n const conceptDecl = mm as IConceptDeclaration;\n if (conceptDecl.isAbstract) {\n result += 'abstract ';\n }\n switch (mm.$class) {\n case `${MetaModelNamespace}.AssetDeclaration`:\n result += `asset ${mm.name} `;\n break;\n case `${MetaModelNamespace}.ConceptDeclaration`:\n result += `concept ${mm.name} `;\n break;\n case `${MetaModelNamespace}.EventDeclaration`:\n result += `event ${mm.name} `;\n break;\n case `${MetaModelNamespace}.ParticipantDeclaration`:\n result += `participant ${mm.name} `;\n break;\n case `${MetaModelNamespace}.TransactionDeclaration`:\n result += `transaction ${mm.name} `;\n break;\n case `${MetaModelNamespace}.EnumDeclaration`:\n result += `enum ${mm.name} `;\n break;\n }\n\n // Handle identified\n if (conceptDecl.identified) {\n if (conceptDecl.identified.$class === `${MetaModelNamespace}.IdentifiedBy`) {\n const identifiedBy = conceptDecl.identified as IIdentifiedBy;\n result += `identified by ${identifiedBy.name} `;\n } else {\n result += 'identified ';\n }\n }\n\n // Handle supertype\n if (conceptDecl.superType) {\n if (conceptDecl.superType.name === mm.name) {\n throw new Error(`The declaration \"${mm.name}\" cannot extend itself.`);\n }\n result += `extends ${conceptDecl.superType.name} `;\n }\n\n result += '{';\n\n // Handle properties\n conceptDecl.properties.forEach((property: IProperty) => {\n result += `\\n ${propertyFromMetaModel(property)}`;\n });\n result += '\\n}';\n }\n\n return result;\n}\n\n/**\n * Converts a metamodel instance to a CTO string\n *\n * @param {*} metaModel - the metamodel instance\n * @return {string} the CTO model as a string\n */\nexport function toCTO(metaModel: IModel): string {\n let result = '';\n\n // version\n if (metaModel.concertoVersion) {\n result += `concerto version \"${metaModel.concertoVersion}\"\\n\\n`;\n }\n\n // decorators\n if (metaModel.decorators && metaModel.decorators.length > 0) {\n result += decoratorsFromMetaModel(metaModel.decorators, '');\n }\n\n // namespace\n result += `namespace ${metaModel.namespace}`;\n\n // imports\n if (metaModel.imports && metaModel.imports.length > 0) {\n result += '\\n';\n metaModel.imports.forEach((imp: IImport) => {\n switch (imp.$class) {\n case `${MetaModelNamespace}.ImportType`:\n case `${MetaModelNamespace}.ImportTypeFrom`: {\n const typedImport = imp as IImportType;\n result += `\\nimport ${imp.namespace}.${typedImport.name}`;\n break;\n }\n case `${MetaModelNamespace}.ImportAll`:\n case `${MetaModelNamespace}.ImportAllFrom`:\n result += `\\nimport ${imp.namespace}.*`;\n break;\n case `${MetaModelNamespace}.ImportTypes`: {\n const typesImport = imp as IImportTypes;\n if (!typesImport.types || typesImport.types.length === 0) {\n break;\n }\n const aliasedTypes = typesImport.aliasedTypes\n ? new Map(\n typesImport.aliasedTypes.map((aliasedType: any) => [\n aliasedType.name,\n aliasedType.aliasedName,\n ])\n )\n : new Map();\n const commaSeparatedTypesString = typesImport.types\n .map((type: string) =>\n aliasedTypes.has(type)\n ? `${type} as ${aliasedTypes.get(type)}`\n : type\n )\n .join(',');\n result += `\\nimport ${imp.namespace}.{${commaSeparatedTypesString}}`;\n break;\n }\n default:\n throw new Error('Unrecognized import');\n }\n if (imp.uri) {\n result += ` from ${imp.uri}`;\n }\n });\n }\n\n // declarations\n if (metaModel.declarations && metaModel.declarations.length > 0) {\n metaModel.declarations.forEach((decl: IDeclaration) => {\n result += `\\n\\n${declFromMetaModel(decl)}`;\n });\n }\n\n return result;\n}\n\nconst Printer = {\n toCTO,\n};\nexport default Printer;\n"],
|
|
5
|
+
"mappings": ";;;;AAcA;AAAA,EACI;AAAA,OAgBG;AAOP,SAAS,MAAM,IAA2B;AACtC,SAAO,GAAG,WAAW,GAAG,kBAAkB;AA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;AAAA,EACL;AAGA,MAAI,UAAU,gBAAgB,UAAU,aAAa,SAAS,GAAG;AAC7D,cAAU,aAAa,QAAQ,CAAC,SAAuB;AACnD,gBAAU;AAAA;AAAA,EAAO,kBAAkB,IAAI,CAAC;AAAA,IAC5C,CAAC;AAAA,EACL;AAEA,SAAO;AACX;AAEA,IAAM,UAAU;AAAA,EACZ;AACJ;AACA,IAAO,kBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -2,7 +2,7 @@ import { createRequire as __createRequire } from "module";
|
|
|
2
2
|
const require = __createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
require_parser
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-Z274WV22.mjs";
|
|
6
6
|
import {
|
|
7
7
|
parseexception_default
|
|
8
8
|
} from "./chunk-ADZEFNZ5.mjs";
|
|
@@ -50,4 +50,4 @@ export {
|
|
|
50
50
|
parseModels,
|
|
51
51
|
parserMain_default
|
|
52
52
|
};
|
|
53
|
-
//# sourceMappingURL=chunk-
|
|
53
|
+
//# sourceMappingURL=chunk-AKCFZ6K2.mjs.map
|
|
@@ -2,7 +2,7 @@ import { createRequire as __createRequire } from "module";
|
|
|
2
2
|
const require = __createRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
require_parser
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-Z274WV22.mjs";
|
|
6
6
|
import {
|
|
7
7
|
__commonJS,
|
|
8
8
|
__require,
|
|
@@ -470,29 +470,27 @@ var require_has_flag = __commonJS({
|
|
|
470
470
|
}
|
|
471
471
|
});
|
|
472
472
|
|
|
473
|
-
// node_modules/supports-color/index.js
|
|
473
|
+
// ../../node_modules/supports-color/index.js
|
|
474
474
|
var require_supports_color = __commonJS({
|
|
475
|
-
"node_modules/supports-color/index.js"(exports, module) {
|
|
475
|
+
"../../node_modules/supports-color/index.js"(exports, module) {
|
|
476
476
|
"use strict";
|
|
477
477
|
var os = __require("os");
|
|
478
478
|
var tty = __require("tty");
|
|
479
479
|
var hasFlag = require_has_flag();
|
|
480
480
|
var { env } = process;
|
|
481
|
-
var
|
|
481
|
+
var forceColor;
|
|
482
482
|
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
483
|
-
|
|
483
|
+
forceColor = 0;
|
|
484
484
|
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
485
|
-
|
|
485
|
+
forceColor = 1;
|
|
486
486
|
}
|
|
487
|
-
|
|
488
|
-
if (
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
}
|
|
495
|
-
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
487
|
+
if ("FORCE_COLOR" in env) {
|
|
488
|
+
if (env.FORCE_COLOR === "true") {
|
|
489
|
+
forceColor = 1;
|
|
490
|
+
} else if (env.FORCE_COLOR === "false") {
|
|
491
|
+
forceColor = 0;
|
|
492
|
+
} else {
|
|
493
|
+
forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
|
496
494
|
}
|
|
497
495
|
}
|
|
498
496
|
function translateLevel(level) {
|
|
@@ -506,22 +504,15 @@ var require_supports_color = __commonJS({
|
|
|
506
504
|
has16m: level >= 3
|
|
507
505
|
};
|
|
508
506
|
}
|
|
509
|
-
function supportsColor(haveStream,
|
|
510
|
-
const noFlagForceColor = envForceColor();
|
|
511
|
-
if (noFlagForceColor !== void 0) {
|
|
512
|
-
flagForceColor = noFlagForceColor;
|
|
513
|
-
}
|
|
514
|
-
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
507
|
+
function supportsColor(haveStream, streamIsTTY) {
|
|
515
508
|
if (forceColor === 0) {
|
|
516
509
|
return 0;
|
|
517
510
|
}
|
|
518
|
-
if (
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
return 2;
|
|
524
|
-
}
|
|
511
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
512
|
+
return 3;
|
|
513
|
+
}
|
|
514
|
+
if (hasFlag("color=256")) {
|
|
515
|
+
return 2;
|
|
525
516
|
}
|
|
526
517
|
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
527
518
|
return 0;
|
|
@@ -538,7 +529,7 @@ var require_supports_color = __commonJS({
|
|
|
538
529
|
return 1;
|
|
539
530
|
}
|
|
540
531
|
if ("CI" in env) {
|
|
541
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"
|
|
532
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
542
533
|
return 1;
|
|
543
534
|
}
|
|
544
535
|
return min;
|
|
@@ -550,7 +541,7 @@ var require_supports_color = __commonJS({
|
|
|
550
541
|
return 3;
|
|
551
542
|
}
|
|
552
543
|
if ("TERM_PROGRAM" in env) {
|
|
553
|
-
const version =
|
|
544
|
+
const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
554
545
|
switch (env.TERM_PROGRAM) {
|
|
555
546
|
case "iTerm.app":
|
|
556
547
|
return version >= 3 ? 3 : 2;
|
|
@@ -569,17 +560,14 @@ var require_supports_color = __commonJS({
|
|
|
569
560
|
}
|
|
570
561
|
return min;
|
|
571
562
|
}
|
|
572
|
-
function getSupportLevel(stream
|
|
573
|
-
const level = supportsColor(stream,
|
|
574
|
-
streamIsTTY: stream && stream.isTTY,
|
|
575
|
-
...options
|
|
576
|
-
});
|
|
563
|
+
function getSupportLevel(stream) {
|
|
564
|
+
const level = supportsColor(stream, stream && stream.isTTY);
|
|
577
565
|
return translateLevel(level);
|
|
578
566
|
}
|
|
579
567
|
module.exports = {
|
|
580
568
|
supportsColor: getSupportLevel,
|
|
581
|
-
stdout:
|
|
582
|
-
stderr:
|
|
569
|
+
stdout: translateLevel(supportsColor(true, tty.isatty(1))),
|
|
570
|
+
stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
|
583
571
|
};
|
|
584
572
|
}
|
|
585
573
|
});
|
|
@@ -828,4 +816,4 @@ export {
|
|
|
828
816
|
createDefaultFileDownloader,
|
|
829
817
|
external_default
|
|
830
818
|
};
|
|
831
|
-
//# sourceMappingURL=chunk-
|
|
819
|
+
//# sourceMappingURL=chunk-L6QXUSLL.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../node_modules/ms/index.js", "../../node_modules/debug/src/common.js", "../../node_modules/debug/src/browser.js", "../../../../node_modules/has-flag/index.js", "
|
|
4
|
-
"sourcesContent": ["/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function(val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n", "\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n */\n\nfunction setup(env) {\n\tcreateDebug.debug = createDebug;\n\tcreateDebug.default = createDebug;\n\tcreateDebug.coerce = coerce;\n\tcreateDebug.disable = disable;\n\tcreateDebug.enable = enable;\n\tcreateDebug.enabled = enabled;\n\tcreateDebug.humanize = require('ms');\n\tcreateDebug.destroy = destroy;\n\n\tObject.keys(env).forEach(key => {\n\t\tcreateDebug[key] = env[key];\n\t});\n\n\t/**\n\t* The currently active debug mode names, and names to skip.\n\t*/\n\n\tcreateDebug.names = [];\n\tcreateDebug.skips = [];\n\n\t/**\n\t* Map of special \"%n\" handling functions, for the debug \"format\" argument.\n\t*\n\t* Valid key names are a single, lower or upper-case letter, i.e. \"n\" and \"N\".\n\t*/\n\tcreateDebug.formatters = {};\n\n\t/**\n\t* Selects a color for a debug namespace\n\t* @param {String} namespace The namespace string for the debug instance to be colored\n\t* @return {Number|String} An ANSI color code for the given namespace\n\t* @api private\n\t*/\n\tfunction selectColor(namespace) {\n\t\tlet hash = 0;\n\n\t\tfor (let i = 0; i < namespace.length; i++) {\n\t\t\thash = ((hash << 5) - hash) + namespace.charCodeAt(i);\n\t\t\thash |= 0; // Convert to 32bit integer\n\t\t}\n\n\t\treturn createDebug.colors[Math.abs(hash) % createDebug.colors.length];\n\t}\n\tcreateDebug.selectColor = selectColor;\n\n\t/**\n\t* Create a debugger with the given `namespace`.\n\t*\n\t* @param {String} namespace\n\t* @return {Function}\n\t* @api public\n\t*/\n\tfunction createDebug(namespace) {\n\t\tlet prevTime;\n\t\tlet enableOverride = null;\n\t\tlet namespacesCache;\n\t\tlet enabledCache;\n\n\t\tfunction debug(...args) {\n\t\t\t// Disabled?\n\t\t\tif (!debug.enabled) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst self = debug;\n\n\t\t\t// Set `diff` timestamp\n\t\t\tconst curr = Number(new Date());\n\t\t\tconst ms = curr - (prevTime || curr);\n\t\t\tself.diff = ms;\n\t\t\tself.prev = prevTime;\n\t\t\tself.curr = curr;\n\t\t\tprevTime = curr;\n\n\t\t\targs[0] = createDebug.coerce(args[0]);\n\n\t\t\tif (typeof args[0] !== 'string') {\n\t\t\t\t// Anything else let's inspect with %O\n\t\t\t\targs.unshift('%O');\n\t\t\t}\n\n\t\t\t// Apply any `formatters` transformations\n\t\t\tlet index = 0;\n\t\t\targs[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {\n\t\t\t\t// If we encounter an escaped % then don't increase the array index\n\t\t\t\tif (match === '%%') {\n\t\t\t\t\treturn '%';\n\t\t\t\t}\n\t\t\t\tindex++;\n\t\t\t\tconst formatter = createDebug.formatters[format];\n\t\t\t\tif (typeof formatter === 'function') {\n\t\t\t\t\tconst val = args[index];\n\t\t\t\t\tmatch = formatter.call(self, val);\n\n\t\t\t\t\t// Now we need to remove `args[index]` since it's inlined in the `format`\n\t\t\t\t\targs.splice(index, 1);\n\t\t\t\t\tindex--;\n\t\t\t\t}\n\t\t\t\treturn match;\n\t\t\t});\n\n\t\t\t// Apply env-specific formatting (colors, etc.)\n\t\t\tcreateDebug.formatArgs.call(self, args);\n\n\t\t\tconst logFn = self.log || createDebug.log;\n\t\t\tlogFn.apply(self, args);\n\t\t}\n\n\t\tdebug.namespace = namespace;\n\t\tdebug.useColors = createDebug.useColors();\n\t\tdebug.color = createDebug.selectColor(namespace);\n\t\tdebug.extend = extend;\n\t\tdebug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.\n\n\t\tObject.defineProperty(debug, 'enabled', {\n\t\t\tenumerable: true,\n\t\t\tconfigurable: false,\n\t\t\tget: () => {\n\t\t\t\tif (enableOverride !== null) {\n\t\t\t\t\treturn enableOverride;\n\t\t\t\t}\n\t\t\t\tif (namespacesCache !== createDebug.namespaces) {\n\t\t\t\t\tnamespacesCache = createDebug.namespaces;\n\t\t\t\t\tenabledCache = createDebug.enabled(namespace);\n\t\t\t\t}\n\n\t\t\t\treturn enabledCache;\n\t\t\t},\n\t\t\tset: v => {\n\t\t\t\tenableOverride = v;\n\t\t\t}\n\t\t});\n\n\t\t// Env-specific initialization logic for debug instances\n\t\tif (typeof createDebug.init === 'function') {\n\t\t\tcreateDebug.init(debug);\n\t\t}\n\n\t\treturn debug;\n\t}\n\n\tfunction extend(namespace, delimiter) {\n\t\tconst newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);\n\t\tnewDebug.log = this.log;\n\t\treturn newDebug;\n\t}\n\n\t/**\n\t* Enables a debug mode by namespaces. This can include modes\n\t* separated by a colon and wildcards.\n\t*\n\t* @param {String} namespaces\n\t* @api public\n\t*/\n\tfunction enable(namespaces) {\n\t\tcreateDebug.save(namespaces);\n\t\tcreateDebug.namespaces = namespaces;\n\n\t\tcreateDebug.names = [];\n\t\tcreateDebug.skips = [];\n\n\t\tlet i;\n\t\tconst split = (typeof namespaces === 'string' ? namespaces : '').split(/[\\s,]+/);\n\t\tconst len = split.length;\n\n\t\tfor (i = 0; i < len; i++) {\n\t\t\tif (!split[i]) {\n\t\t\t\t// ignore empty strings\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tnamespaces = split[i].replace(/\\*/g, '.*?');\n\n\t\t\tif (namespaces[0] === '-') {\n\t\t\t\tcreateDebug.skips.push(new RegExp('^' + namespaces.slice(1) + '$'));\n\t\t\t} else {\n\t\t\t\tcreateDebug.names.push(new RegExp('^' + namespaces + '$'));\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t* Disable debug output.\n\t*\n\t* @return {String} namespaces\n\t* @api public\n\t*/\n\tfunction disable() {\n\t\tconst namespaces = [\n\t\t\t...createDebug.names.map(toNamespace),\n\t\t\t...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace)\n\t\t].join(',');\n\t\tcreateDebug.enable('');\n\t\treturn namespaces;\n\t}\n\n\t/**\n\t* Returns true if the given mode name is enabled, false otherwise.\n\t*\n\t* @param {String} name\n\t* @return {Boolean}\n\t* @api public\n\t*/\n\tfunction enabled(name) {\n\t\tif (name[name.length - 1] === '*') {\n\t\t\treturn true;\n\t\t}\n\n\t\tlet i;\n\t\tlet len;\n\n\t\tfor (i = 0, len = createDebug.skips.length; i < len; i++) {\n\t\t\tif (createDebug.skips[i].test(name)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tfor (i = 0, len = createDebug.names.length; i < len; i++) {\n\t\t\tif (createDebug.names[i].test(name)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}\n\n\t/**\n\t* Convert regexp to namespace\n\t*\n\t* @param {RegExp} regxep\n\t* @return {String} namespace\n\t* @api private\n\t*/\n\tfunction toNamespace(regexp) {\n\t\treturn regexp.toString()\n\t\t\t.substring(2, regexp.toString().length - 2)\n\t\t\t.replace(/\\.\\*\\?$/, '*');\n\t}\n\n\t/**\n\t* Coerce `val`.\n\t*\n\t* @param {Mixed} val\n\t* @return {Mixed}\n\t* @api private\n\t*/\n\tfunction coerce(val) {\n\t\tif (val instanceof Error) {\n\t\t\treturn val.stack || val.message;\n\t\t}\n\t\treturn val;\n\t}\n\n\t/**\n\t* XXX DO NOT USE. This is a temporary stub function.\n\t* XXX It WILL be removed in the next major release.\n\t*/\n\tfunction destroy() {\n\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t}\n\n\tcreateDebug.enable(createDebug.load());\n\n\treturn createDebug;\n}\n\nmodule.exports = setup;\n", "/* eslint-env browser */\n\n/**\n * This is the web browser implementation of `debug()`.\n */\n\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = localstorage();\nexports.destroy = (() => {\n\tlet warned = false;\n\n\treturn () => {\n\t\tif (!warned) {\n\t\t\twarned = true;\n\t\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t\t}\n\t};\n})();\n\n/**\n * Colors.\n */\n\nexports.colors = [\n\t'#0000CC',\n\t'#0000FF',\n\t'#0033CC',\n\t'#0033FF',\n\t'#0066CC',\n\t'#0066FF',\n\t'#0099CC',\n\t'#0099FF',\n\t'#00CC00',\n\t'#00CC33',\n\t'#00CC66',\n\t'#00CC99',\n\t'#00CCCC',\n\t'#00CCFF',\n\t'#3300CC',\n\t'#3300FF',\n\t'#3333CC',\n\t'#3333FF',\n\t'#3366CC',\n\t'#3366FF',\n\t'#3399CC',\n\t'#3399FF',\n\t'#33CC00',\n\t'#33CC33',\n\t'#33CC66',\n\t'#33CC99',\n\t'#33CCCC',\n\t'#33CCFF',\n\t'#6600CC',\n\t'#6600FF',\n\t'#6633CC',\n\t'#6633FF',\n\t'#66CC00',\n\t'#66CC33',\n\t'#9900CC',\n\t'#9900FF',\n\t'#9933CC',\n\t'#9933FF',\n\t'#99CC00',\n\t'#99CC33',\n\t'#CC0000',\n\t'#CC0033',\n\t'#CC0066',\n\t'#CC0099',\n\t'#CC00CC',\n\t'#CC00FF',\n\t'#CC3300',\n\t'#CC3333',\n\t'#CC3366',\n\t'#CC3399',\n\t'#CC33CC',\n\t'#CC33FF',\n\t'#CC6600',\n\t'#CC6633',\n\t'#CC9900',\n\t'#CC9933',\n\t'#CCCC00',\n\t'#CCCC33',\n\t'#FF0000',\n\t'#FF0033',\n\t'#FF0066',\n\t'#FF0099',\n\t'#FF00CC',\n\t'#FF00FF',\n\t'#FF3300',\n\t'#FF3333',\n\t'#FF3366',\n\t'#FF3399',\n\t'#FF33CC',\n\t'#FF33FF',\n\t'#FF6600',\n\t'#FF6633',\n\t'#FF9900',\n\t'#FF9933',\n\t'#FFCC00',\n\t'#FFCC33'\n];\n\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n\n// eslint-disable-next-line complexity\nfunction useColors() {\n\t// NB: In an Electron preload script, document will be defined but not fully\n\t// initialized. Since we know we're in Chrome, we'll just detect this case\n\t// explicitly\n\tif (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {\n\t\treturn true;\n\t}\n\n\t// Internet Explorer and Edge do not support colors.\n\tif (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n\t\treturn false;\n\t}\n\n\t// Is webkit? http://stackoverflow.com/a/16459606/376773\n\t// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n\treturn (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||\n\t\t// Is firebug? http://stackoverflow.com/a/398120/376773\n\t\t(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||\n\t\t// Is firefox >= v31?\n\t\t// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||\n\t\t// Double check webkit in userAgent just in case we are in a worker\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/));\n}\n\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n\targs[0] = (this.useColors ? '%c' : '') +\n\t\tthis.namespace +\n\t\t(this.useColors ? ' %c' : ' ') +\n\t\targs[0] +\n\t\t(this.useColors ? '%c ' : ' ') +\n\t\t'+' + module.exports.humanize(this.diff);\n\n\tif (!this.useColors) {\n\t\treturn;\n\t}\n\n\tconst c = 'color: ' + this.color;\n\targs.splice(1, 0, c, 'color: inherit');\n\n\t// The final \"%c\" is somewhat tricky, because there could be other\n\t// arguments passed either before or after the %c, so we need to\n\t// figure out the correct index to insert the CSS into\n\tlet index = 0;\n\tlet lastC = 0;\n\targs[0].replace(/%[a-zA-Z%]/g, match => {\n\t\tif (match === '%%') {\n\t\t\treturn;\n\t\t}\n\t\tindex++;\n\t\tif (match === '%c') {\n\t\t\t// We only are interested in the *last* %c\n\t\t\t// (the user may have provided their own)\n\t\t\tlastC = index;\n\t\t}\n\t});\n\n\targs.splice(lastC, 0, c);\n}\n\n/**\n * Invokes `console.debug()` when available.\n * No-op when `console.debug` is not a \"function\".\n * If `console.debug` is not available, falls back\n * to `console.log`.\n *\n * @api public\n */\nexports.log = console.debug || console.log || (() => {});\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\nfunction save(namespaces) {\n\ttry {\n\t\tif (namespaces) {\n\t\t\texports.storage.setItem('debug', namespaces);\n\t\t} else {\n\t\t\texports.storage.removeItem('debug');\n\t\t}\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\nfunction load() {\n\tlet r;\n\ttry {\n\t\tr = exports.storage.getItem('debug');\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n\n\t// If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n\tif (!r && typeof process !== 'undefined' && 'env' in process) {\n\t\tr = process.env.DEBUG;\n\t}\n\n\treturn r;\n}\n\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\nfunction localstorage() {\n\ttry {\n\t\t// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context\n\t\t// The Browser also has localStorage in the global context.\n\t\treturn localStorage;\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\nmodule.exports = require('./common')(exports);\n\nconst {formatters} = module.exports;\n\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\nformatters.j = function (v) {\n\ttry {\n\t\treturn JSON.stringify(v);\n\t} catch (error) {\n\t\treturn '[UnexpectedJSONParseError]: ' + error.message;\n\t}\n};\n", "'use strict';\n\nmodule.exports = (flag, argv = process.argv) => {\n\tconst prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');\n\tconst position = argv.indexOf(prefix + flag);\n\tconst terminatorPosition = argv.indexOf('--');\n\treturn position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);\n};\n", "'use strict';\nconst os = require('os');\nconst tty = require('tty');\nconst hasFlag = require('has-flag');\n\nconst {env} = process;\n\nlet flagForceColor;\nif (hasFlag('no-color') ||\n\thasFlag('no-colors') ||\n\thasFlag('color=false') ||\n\thasFlag('color=never')) {\n\tflagForceColor = 0;\n} else if (hasFlag('color') ||\n\thasFlag('colors') ||\n\thasFlag('color=true') ||\n\thasFlag('color=always')) {\n\tflagForceColor = 1;\n}\n\nfunction envForceColor() {\n\tif ('FORCE_COLOR' in env) {\n\t\tif (env.FORCE_COLOR === 'true') {\n\t\t\treturn 1;\n\t\t}\n\n\t\tif (env.FORCE_COLOR === 'false') {\n\t\t\treturn 0;\n\t\t}\n\n\t\treturn env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);\n\t}\n}\n\nfunction translateLevel(level) {\n\tif (level === 0) {\n\t\treturn false;\n\t}\n\n\treturn {\n\t\tlevel,\n\t\thasBasic: true,\n\t\thas256: level >= 2,\n\t\thas16m: level >= 3\n\t};\n}\n\nfunction supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) {\n\tconst noFlagForceColor = envForceColor();\n\tif (noFlagForceColor !== undefined) {\n\t\tflagForceColor = noFlagForceColor;\n\t}\n\n\tconst forceColor = sniffFlags ? flagForceColor : noFlagForceColor;\n\n\tif (forceColor === 0) {\n\t\treturn 0;\n\t}\n\n\tif (sniffFlags) {\n\t\tif (hasFlag('color=16m') ||\n\t\t\thasFlag('color=full') ||\n\t\t\thasFlag('color=truecolor')) {\n\t\t\treturn 3;\n\t\t}\n\n\t\tif (hasFlag('color=256')) {\n\t\t\treturn 2;\n\t\t}\n\t}\n\n\tif (haveStream && !streamIsTTY && forceColor === undefined) {\n\t\treturn 0;\n\t}\n\n\tconst min = forceColor || 0;\n\n\tif (env.TERM === 'dumb') {\n\t\treturn min;\n\t}\n\n\tif (process.platform === 'win32') {\n\t\t// Windows 10 build 10586 is the first Windows release that supports 256 colors.\n\t\t// Windows 10 build 14931 is the first release that supports 16m/TrueColor.\n\t\tconst osRelease = os.release().split('.');\n\t\tif (\n\t\t\tNumber(osRelease[0]) >= 10 &&\n\t\t\tNumber(osRelease[2]) >= 10586\n\t\t) {\n\t\t\treturn Number(osRelease[2]) >= 14931 ? 3 : 2;\n\t\t}\n\n\t\treturn 1;\n\t}\n\n\tif ('CI' in env) {\n\t\tif (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE', 'DRONE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {\n\t\t\treturn 1;\n\t\t}\n\n\t\treturn min;\n\t}\n\n\tif ('TEAMCITY_VERSION' in env) {\n\t\treturn /^(9\\.(0*[1-9]\\d*)\\.|\\d{2,}\\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;\n\t}\n\n\tif (env.COLORTERM === 'truecolor') {\n\t\treturn 3;\n\t}\n\n\tif ('TERM_PROGRAM' in env) {\n\t\tconst version = Number.parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);\n\n\t\tswitch (env.TERM_PROGRAM) {\n\t\t\tcase 'iTerm.app':\n\t\t\t\treturn version >= 3 ? 3 : 2;\n\t\t\tcase 'Apple_Terminal':\n\t\t\t\treturn 2;\n\t\t\t// No default\n\t\t}\n\t}\n\n\tif (/-256(color)?$/i.test(env.TERM)) {\n\t\treturn 2;\n\t}\n\n\tif (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {\n\t\treturn 1;\n\t}\n\n\tif ('COLORTERM' in env) {\n\t\treturn 1;\n\t}\n\n\treturn min;\n}\n\nfunction getSupportLevel(stream, options = {}) {\n\tconst level = supportsColor(stream, {\n\t\tstreamIsTTY: stream && stream.isTTY,\n\t\t...options\n\t});\n\n\treturn translateLevel(level);\n}\n\nmodule.exports = {\n\tsupportsColor: getSupportLevel,\n\tstdout: getSupportLevel({isTTY: tty.isatty(1)}),\n\tstderr: getSupportLevel({isTTY: tty.isatty(2)})\n};\n", "/**\n * Module dependencies.\n */\n\nconst tty = require('tty');\nconst util = require('util');\n\n/**\n * This is the Node.js implementation of `debug()`.\n */\n\nexports.init = init;\nexports.log = log;\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.destroy = util.deprecate(\n\t() => {},\n\t'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'\n);\n\n/**\n * Colors.\n */\n\nexports.colors = [6, 2, 3, 4, 5, 1];\n\ntry {\n\t// Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)\n\t// eslint-disable-next-line import/no-extraneous-dependencies\n\tconst supportsColor = require('supports-color');\n\n\tif (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {\n\t\texports.colors = [\n\t\t\t20,\n\t\t\t21,\n\t\t\t26,\n\t\t\t27,\n\t\t\t32,\n\t\t\t33,\n\t\t\t38,\n\t\t\t39,\n\t\t\t40,\n\t\t\t41,\n\t\t\t42,\n\t\t\t43,\n\t\t\t44,\n\t\t\t45,\n\t\t\t56,\n\t\t\t57,\n\t\t\t62,\n\t\t\t63,\n\t\t\t68,\n\t\t\t69,\n\t\t\t74,\n\t\t\t75,\n\t\t\t76,\n\t\t\t77,\n\t\t\t78,\n\t\t\t79,\n\t\t\t80,\n\t\t\t81,\n\t\t\t92,\n\t\t\t93,\n\t\t\t98,\n\t\t\t99,\n\t\t\t112,\n\t\t\t113,\n\t\t\t128,\n\t\t\t129,\n\t\t\t134,\n\t\t\t135,\n\t\t\t148,\n\t\t\t149,\n\t\t\t160,\n\t\t\t161,\n\t\t\t162,\n\t\t\t163,\n\t\t\t164,\n\t\t\t165,\n\t\t\t166,\n\t\t\t167,\n\t\t\t168,\n\t\t\t169,\n\t\t\t170,\n\t\t\t171,\n\t\t\t172,\n\t\t\t173,\n\t\t\t178,\n\t\t\t179,\n\t\t\t184,\n\t\t\t185,\n\t\t\t196,\n\t\t\t197,\n\t\t\t198,\n\t\t\t199,\n\t\t\t200,\n\t\t\t201,\n\t\t\t202,\n\t\t\t203,\n\t\t\t204,\n\t\t\t205,\n\t\t\t206,\n\t\t\t207,\n\t\t\t208,\n\t\t\t209,\n\t\t\t214,\n\t\t\t215,\n\t\t\t220,\n\t\t\t221\n\t\t];\n\t}\n} catch (error) {\n\t// Swallow - we only care if `supports-color` is available; it doesn't have to be.\n}\n\n/**\n * Build up the default `inspectOpts` object from the environment variables.\n *\n * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js\n */\n\nexports.inspectOpts = Object.keys(process.env).filter(key => {\n\treturn /^debug_/i.test(key);\n}).reduce((obj, key) => {\n\t// Camel-case\n\tconst prop = key\n\t\t.substring(6)\n\t\t.toLowerCase()\n\t\t.replace(/_([a-z])/g, (_, k) => {\n\t\t\treturn k.toUpperCase();\n\t\t});\n\n\t// Coerce string value into JS value\n\tlet val = process.env[key];\n\tif (/^(yes|on|true|enabled)$/i.test(val)) {\n\t\tval = true;\n\t} else if (/^(no|off|false|disabled)$/i.test(val)) {\n\t\tval = false;\n\t} else if (val === 'null') {\n\t\tval = null;\n\t} else {\n\t\tval = Number(val);\n\t}\n\n\tobj[prop] = val;\n\treturn obj;\n}, {});\n\n/**\n * Is stdout a TTY? Colored output is enabled when `true`.\n */\n\nfunction useColors() {\n\treturn 'colors' in exports.inspectOpts ?\n\t\tBoolean(exports.inspectOpts.colors) :\n\t\ttty.isatty(process.stderr.fd);\n}\n\n/**\n * Adds ANSI color escape codes if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n\tconst {namespace: name, useColors} = this;\n\n\tif (useColors) {\n\t\tconst c = this.color;\n\t\tconst colorCode = '\\u001B[3' + (c < 8 ? c : '8;5;' + c);\n\t\tconst prefix = ` ${colorCode};1m${name} \\u001B[0m`;\n\n\t\targs[0] = prefix + args[0].split('\\n').join('\\n' + prefix);\n\t\targs.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\\u001B[0m');\n\t} else {\n\t\targs[0] = getDate() + name + ' ' + args[0];\n\t}\n}\n\nfunction getDate() {\n\tif (exports.inspectOpts.hideDate) {\n\t\treturn '';\n\t}\n\treturn new Date().toISOString() + ' ';\n}\n\n/**\n * Invokes `util.format()` with the specified arguments and writes to stderr.\n */\n\nfunction log(...args) {\n\treturn process.stderr.write(util.format(...args) + '\\n');\n}\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\nfunction save(namespaces) {\n\tif (namespaces) {\n\t\tprocess.env.DEBUG = namespaces;\n\t} else {\n\t\t// If you set a process.env field to null or undefined, it gets cast to the\n\t\t// string 'null' or 'undefined'. Just delete instead.\n\t\tdelete process.env.DEBUG;\n\t}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\n\nfunction load() {\n\treturn process.env.DEBUG;\n}\n\n/**\n * Init logic for `debug` instances.\n *\n * Create a new `inspectOpts` object in case `useColors` is set\n * differently for a particular `debug` instance.\n */\n\nfunction init(debug) {\n\tdebug.inspectOpts = {};\n\n\tconst keys = Object.keys(exports.inspectOpts);\n\tfor (let i = 0; i < keys.length; i++) {\n\t\tdebug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];\n\t}\n}\n\nmodule.exports = require('./common')(exports);\n\nconst {formatters} = module.exports;\n\n/**\n * Map %o to `util.inspect()`, all on a single line.\n */\n\nformatters.o = function (v) {\n\tthis.inspectOpts.colors = this.useColors;\n\treturn util.inspect(v, this.inspectOpts)\n\t\t.split('\\n')\n\t\t.map(str => str.trim())\n\t\t.join(' ');\n};\n\n/**\n * Map %O to `util.inspect()`, allowing multiple lines if needed.\n */\n\nformatters.O = function (v) {\n\tthis.inspectOpts.colors = this.useColors;\n\treturn util.inspect(v, this.inspectOpts);\n};\n", "/**\n * Detect Electron renderer / nwjs process, which is node, but we should\n * treat as a browser.\n */\n\nif (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {\n\tmodule.exports = require('./browser.js');\n} else {\n\tmodule.exports = require('./node.js');\n}\n", "/*\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport debug from 'debug';\nimport * as pathBrowserify from 'path-browserify';\nimport { DefaultFileLoader, FileDownloader } from '@accordproject/concerto-util';\nimport { MetaModelUtil, MetaModelNamespace, IModel, IModels } from '@accordproject/concerto-metamodel';\n\nimport * as Parser from './parser';\n\nconst debugLog = debug('concerto:ModelManager');\n\n/**\n * Update models with a new model\n * @param {*} models - existing models\n * @param {*} newModel - new model\n * @return {*} the updated models\n */\nfunction updateModels(models: IModels, newModel: IModel): IModels {\n const result: IModels = {\n $class: `${MetaModelNamespace}.Models`,\n models: [],\n };\n const newNamespace = newModel.namespace;\n const priors = models.models;\n let found = false;\n priors.forEach((priorModel) => {\n if (priorModel.namespace === newNamespace) {\n result.models.push(newModel);\n found = true;\n } else {\n result.models.push(priorModel);\n }\n });\n if (!found) {\n result.models.push(newModel);\n }\n return result;\n}\n\n/**\n * Options passed through to the underlying FileDownloader (and, in turn, to the\n * FileLoader's `fetch` call) when resolving external model dependencies.\n */\nexport type ResolveExternalOptions = RequestInit;\n\n/**\n * Downloads all ModelFiles that are external dependencies and adds or\n * updates them in this ModelManager.\n * @param {*} models - the AST for all the known models\n * @param {Object} [options] - Options object passed to ModelFileLoaders\n * @param {FileDownloader} [fileDownloader] - an optional FileDownloader\n * @throws {IllegalModelException} if the models fail validation\n * @return {Promise} a promise when the download and update operation is completed.\n */\nexport async function resolveExternal(models: IModels, options?: ResolveExternalOptions, fileDownloader?: FileDownloader<IModel>): Promise<IModels> {\n const NAME = 'updateExternalModels';\n debugLog(NAME, 'updateExternalModels', options);\n\n // Create default file downloader if none provided\n const downloader = fileDownloader || createDefaultFileDownloader();\n\n const externalModelFiles = await downloader.downloadExternalDependencies(models.models, options);\n\n let result = models;\n externalModelFiles.forEach((mf: IModel) => {\n result = updateModels(result, mf);\n });\n\n return result;\n}\n\n/**\n * Creates a default file downloader\n * @return {FileDownloader} a default file downloader instance\n */\nexport function createDefaultFileDownloader(): FileDownloader<IModel> {\n // How to create a modelfile from the external content\n const processFile = (name: string, data: string): IModel => {\n // Note: JSON URLs seem to be already parsed in 'data'\n // return { ast: data, data, name };\n if (pathBrowserify.extname(name) === '.cto') {\n return Parser.parse(data);\n }\n throw new Error('External model file references are expected to have a .cto extension');\n };\n return new FileDownloader(new DefaultFileLoader(processFile), (file) => MetaModelUtil.getExternalImports(file) as Record<string, string>);\n}\n\nconst External = {\n resolveExternal,\n createDefaultFileDownloader,\n};\nexport default External;\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;AAAA;AAAA;AAIA,QAAI,IAAI;AACR,QAAI,IAAI,IAAI;AACZ,QAAI,IAAI,IAAI;AACZ,QAAI,IAAI,IAAI;AACZ,QAAI,IAAI,IAAI;AACZ,QAAI,IAAI,IAAI;AAgBZ,WAAO,UAAU,SAAS,KAAK,SAAS;AACtC,gBAAU,WAAW,CAAC;AACtB,UAAI,OAAO,OAAO;AAClB,UAAI,SAAS,YAAY,IAAI,SAAS,GAAG;AACvC,eAAOA,OAAM,GAAG;AAAA,MAClB,WA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AAO,IAAI,eAAe,IAAI,kBAAkB,WAAW,GAAG,CAAC,SAAS,cAAc,mBAAmB,IAAI,CAA2B;AAC5I;AAEA,IAAM,WAAW;AAAA,EACb;AAAA,EACA;AACJ;AACA,IAAO,mBAAQ;",
|
|
3
|
+
"sources": ["../../node_modules/ms/index.js", "../../node_modules/debug/src/common.js", "../../node_modules/debug/src/browser.js", "../../../../node_modules/has-flag/index.js", "../../../../node_modules/supports-color/index.js", "../../node_modules/debug/src/node.js", "../../node_modules/debug/src/index.js", "../../src/external.ts"],
|
|
4
|
+
"sourcesContent": ["/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function(val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n", "\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n */\n\nfunction setup(env) {\n\tcreateDebug.debug = createDebug;\n\tcreateDebug.default = createDebug;\n\tcreateDebug.coerce = coerce;\n\tcreateDebug.disable = disable;\n\tcreateDebug.enable = enable;\n\tcreateDebug.enabled = enabled;\n\tcreateDebug.humanize = require('ms');\n\tcreateDebug.destroy = destroy;\n\n\tObject.keys(env).forEach(key => {\n\t\tcreateDebug[key] = env[key];\n\t});\n\n\t/**\n\t* The currently active debug mode names, and names to skip.\n\t*/\n\n\tcreateDebug.names = [];\n\tcreateDebug.skips = [];\n\n\t/**\n\t* Map of special \"%n\" handling functions, for the debug \"format\" argument.\n\t*\n\t* Valid key names are a single, lower or upper-case letter, i.e. \"n\" and \"N\".\n\t*/\n\tcreateDebug.formatters = {};\n\n\t/**\n\t* Selects a color for a debug namespace\n\t* @param {String} namespace The namespace string for the debug instance to be colored\n\t* @return {Number|String} An ANSI color code for the given namespace\n\t* @api private\n\t*/\n\tfunction selectColor(namespace) {\n\t\tlet hash = 0;\n\n\t\tfor (let i = 0; i < namespace.length; i++) {\n\t\t\thash = ((hash << 5) - hash) + namespace.charCodeAt(i);\n\t\t\thash |= 0; // Convert to 32bit integer\n\t\t}\n\n\t\treturn createDebug.colors[Math.abs(hash) % createDebug.colors.length];\n\t}\n\tcreateDebug.selectColor = selectColor;\n\n\t/**\n\t* Create a debugger with the given `namespace`.\n\t*\n\t* @param {String} namespace\n\t* @return {Function}\n\t* @api public\n\t*/\n\tfunction createDebug(namespace) {\n\t\tlet prevTime;\n\t\tlet enableOverride = null;\n\t\tlet namespacesCache;\n\t\tlet enabledCache;\n\n\t\tfunction debug(...args) {\n\t\t\t// Disabled?\n\t\t\tif (!debug.enabled) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst self = debug;\n\n\t\t\t// Set `diff` timestamp\n\t\t\tconst curr = Number(new Date());\n\t\t\tconst ms = curr - (prevTime || curr);\n\t\t\tself.diff = ms;\n\t\t\tself.prev = prevTime;\n\t\t\tself.curr = curr;\n\t\t\tprevTime = curr;\n\n\t\t\targs[0] = createDebug.coerce(args[0]);\n\n\t\t\tif (typeof args[0] !== 'string') {\n\t\t\t\t// Anything else let's inspect with %O\n\t\t\t\targs.unshift('%O');\n\t\t\t}\n\n\t\t\t// Apply any `formatters` transformations\n\t\t\tlet index = 0;\n\t\t\targs[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {\n\t\t\t\t// If we encounter an escaped % then don't increase the array index\n\t\t\t\tif (match === '%%') {\n\t\t\t\t\treturn '%';\n\t\t\t\t}\n\t\t\t\tindex++;\n\t\t\t\tconst formatter = createDebug.formatters[format];\n\t\t\t\tif (typeof formatter === 'function') {\n\t\t\t\t\tconst val = args[index];\n\t\t\t\t\tmatch = formatter.call(self, val);\n\n\t\t\t\t\t// Now we need to remove `args[index]` since it's inlined in the `format`\n\t\t\t\t\targs.splice(index, 1);\n\t\t\t\t\tindex--;\n\t\t\t\t}\n\t\t\t\treturn match;\n\t\t\t});\n\n\t\t\t// Apply env-specific formatting (colors, etc.)\n\t\t\tcreateDebug.formatArgs.call(self, args);\n\n\t\t\tconst logFn = self.log || createDebug.log;\n\t\t\tlogFn.apply(self, args);\n\t\t}\n\n\t\tdebug.namespace = namespace;\n\t\tdebug.useColors = createDebug.useColors();\n\t\tdebug.color = createDebug.selectColor(namespace);\n\t\tdebug.extend = extend;\n\t\tdebug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.\n\n\t\tObject.defineProperty(debug, 'enabled', {\n\t\t\tenumerable: true,\n\t\t\tconfigurable: false,\n\t\t\tget: () => {\n\t\t\t\tif (enableOverride !== null) {\n\t\t\t\t\treturn enableOverride;\n\t\t\t\t}\n\t\t\t\tif (namespacesCache !== createDebug.namespaces) {\n\t\t\t\t\tnamespacesCache = createDebug.namespaces;\n\t\t\t\t\tenabledCache = createDebug.enabled(namespace);\n\t\t\t\t}\n\n\t\t\t\treturn enabledCache;\n\t\t\t},\n\t\t\tset: v => {\n\t\t\t\tenableOverride = v;\n\t\t\t}\n\t\t});\n\n\t\t// Env-specific initialization logic for debug instances\n\t\tif (typeof createDebug.init === 'function') {\n\t\t\tcreateDebug.init(debug);\n\t\t}\n\n\t\treturn debug;\n\t}\n\n\tfunction extend(namespace, delimiter) {\n\t\tconst newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);\n\t\tnewDebug.log = this.log;\n\t\treturn newDebug;\n\t}\n\n\t/**\n\t* Enables a debug mode by namespaces. This can include modes\n\t* separated by a colon and wildcards.\n\t*\n\t* @param {String} namespaces\n\t* @api public\n\t*/\n\tfunction enable(namespaces) {\n\t\tcreateDebug.save(namespaces);\n\t\tcreateDebug.namespaces = namespaces;\n\n\t\tcreateDebug.names = [];\n\t\tcreateDebug.skips = [];\n\n\t\tlet i;\n\t\tconst split = (typeof namespaces === 'string' ? namespaces : '').split(/[\\s,]+/);\n\t\tconst len = split.length;\n\n\t\tfor (i = 0; i < len; i++) {\n\t\t\tif (!split[i]) {\n\t\t\t\t// ignore empty strings\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tnamespaces = split[i].replace(/\\*/g, '.*?');\n\n\t\t\tif (namespaces[0] === '-') {\n\t\t\t\tcreateDebug.skips.push(new RegExp('^' + namespaces.slice(1) + '$'));\n\t\t\t} else {\n\t\t\t\tcreateDebug.names.push(new RegExp('^' + namespaces + '$'));\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t* Disable debug output.\n\t*\n\t* @return {String} namespaces\n\t* @api public\n\t*/\n\tfunction disable() {\n\t\tconst namespaces = [\n\t\t\t...createDebug.names.map(toNamespace),\n\t\t\t...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace)\n\t\t].join(',');\n\t\tcreateDebug.enable('');\n\t\treturn namespaces;\n\t}\n\n\t/**\n\t* Returns true if the given mode name is enabled, false otherwise.\n\t*\n\t* @param {String} name\n\t* @return {Boolean}\n\t* @api public\n\t*/\n\tfunction enabled(name) {\n\t\tif (name[name.length - 1] === '*') {\n\t\t\treturn true;\n\t\t}\n\n\t\tlet i;\n\t\tlet len;\n\n\t\tfor (i = 0, len = createDebug.skips.length; i < len; i++) {\n\t\t\tif (createDebug.skips[i].test(name)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tfor (i = 0, len = createDebug.names.length; i < len; i++) {\n\t\t\tif (createDebug.names[i].test(name)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}\n\n\t/**\n\t* Convert regexp to namespace\n\t*\n\t* @param {RegExp} regxep\n\t* @return {String} namespace\n\t* @api private\n\t*/\n\tfunction toNamespace(regexp) {\n\t\treturn regexp.toString()\n\t\t\t.substring(2, regexp.toString().length - 2)\n\t\t\t.replace(/\\.\\*\\?$/, '*');\n\t}\n\n\t/**\n\t* Coerce `val`.\n\t*\n\t* @param {Mixed} val\n\t* @return {Mixed}\n\t* @api private\n\t*/\n\tfunction coerce(val) {\n\t\tif (val instanceof Error) {\n\t\t\treturn val.stack || val.message;\n\t\t}\n\t\treturn val;\n\t}\n\n\t/**\n\t* XXX DO NOT USE. This is a temporary stub function.\n\t* XXX It WILL be removed in the next major release.\n\t*/\n\tfunction destroy() {\n\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t}\n\n\tcreateDebug.enable(createDebug.load());\n\n\treturn createDebug;\n}\n\nmodule.exports = setup;\n", "/* eslint-env browser */\n\n/**\n * This is the web browser implementation of `debug()`.\n */\n\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = localstorage();\nexports.destroy = (() => {\n\tlet warned = false;\n\n\treturn () => {\n\t\tif (!warned) {\n\t\t\twarned = true;\n\t\t\tconsole.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');\n\t\t}\n\t};\n})();\n\n/**\n * Colors.\n */\n\nexports.colors = [\n\t'#0000CC',\n\t'#0000FF',\n\t'#0033CC',\n\t'#0033FF',\n\t'#0066CC',\n\t'#0066FF',\n\t'#0099CC',\n\t'#0099FF',\n\t'#00CC00',\n\t'#00CC33',\n\t'#00CC66',\n\t'#00CC99',\n\t'#00CCCC',\n\t'#00CCFF',\n\t'#3300CC',\n\t'#3300FF',\n\t'#3333CC',\n\t'#3333FF',\n\t'#3366CC',\n\t'#3366FF',\n\t'#3399CC',\n\t'#3399FF',\n\t'#33CC00',\n\t'#33CC33',\n\t'#33CC66',\n\t'#33CC99',\n\t'#33CCCC',\n\t'#33CCFF',\n\t'#6600CC',\n\t'#6600FF',\n\t'#6633CC',\n\t'#6633FF',\n\t'#66CC00',\n\t'#66CC33',\n\t'#9900CC',\n\t'#9900FF',\n\t'#9933CC',\n\t'#9933FF',\n\t'#99CC00',\n\t'#99CC33',\n\t'#CC0000',\n\t'#CC0033',\n\t'#CC0066',\n\t'#CC0099',\n\t'#CC00CC',\n\t'#CC00FF',\n\t'#CC3300',\n\t'#CC3333',\n\t'#CC3366',\n\t'#CC3399',\n\t'#CC33CC',\n\t'#CC33FF',\n\t'#CC6600',\n\t'#CC6633',\n\t'#CC9900',\n\t'#CC9933',\n\t'#CCCC00',\n\t'#CCCC33',\n\t'#FF0000',\n\t'#FF0033',\n\t'#FF0066',\n\t'#FF0099',\n\t'#FF00CC',\n\t'#FF00FF',\n\t'#FF3300',\n\t'#FF3333',\n\t'#FF3366',\n\t'#FF3399',\n\t'#FF33CC',\n\t'#FF33FF',\n\t'#FF6600',\n\t'#FF6633',\n\t'#FF9900',\n\t'#FF9933',\n\t'#FFCC00',\n\t'#FFCC33'\n];\n\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n\n// eslint-disable-next-line complexity\nfunction useColors() {\n\t// NB: In an Electron preload script, document will be defined but not fully\n\t// initialized. Since we know we're in Chrome, we'll just detect this case\n\t// explicitly\n\tif (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {\n\t\treturn true;\n\t}\n\n\t// Internet Explorer and Edge do not support colors.\n\tif (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n\t\treturn false;\n\t}\n\n\t// Is webkit? http://stackoverflow.com/a/16459606/376773\n\t// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n\treturn (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||\n\t\t// Is firebug? http://stackoverflow.com/a/398120/376773\n\t\t(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||\n\t\t// Is firefox >= v31?\n\t\t// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||\n\t\t// Double check webkit in userAgent just in case we are in a worker\n\t\t(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/));\n}\n\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n\targs[0] = (this.useColors ? '%c' : '') +\n\t\tthis.namespace +\n\t\t(this.useColors ? ' %c' : ' ') +\n\t\targs[0] +\n\t\t(this.useColors ? '%c ' : ' ') +\n\t\t'+' + module.exports.humanize(this.diff);\n\n\tif (!this.useColors) {\n\t\treturn;\n\t}\n\n\tconst c = 'color: ' + this.color;\n\targs.splice(1, 0, c, 'color: inherit');\n\n\t// The final \"%c\" is somewhat tricky, because there could be other\n\t// arguments passed either before or after the %c, so we need to\n\t// figure out the correct index to insert the CSS into\n\tlet index = 0;\n\tlet lastC = 0;\n\targs[0].replace(/%[a-zA-Z%]/g, match => {\n\t\tif (match === '%%') {\n\t\t\treturn;\n\t\t}\n\t\tindex++;\n\t\tif (match === '%c') {\n\t\t\t// We only are interested in the *last* %c\n\t\t\t// (the user may have provided their own)\n\t\t\tlastC = index;\n\t\t}\n\t});\n\n\targs.splice(lastC, 0, c);\n}\n\n/**\n * Invokes `console.debug()` when available.\n * No-op when `console.debug` is not a \"function\".\n * If `console.debug` is not available, falls back\n * to `console.log`.\n *\n * @api public\n */\nexports.log = console.debug || console.log || (() => {});\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\nfunction save(namespaces) {\n\ttry {\n\t\tif (namespaces) {\n\t\t\texports.storage.setItem('debug', namespaces);\n\t\t} else {\n\t\t\texports.storage.removeItem('debug');\n\t\t}\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\nfunction load() {\n\tlet r;\n\ttry {\n\t\tr = exports.storage.getItem('debug');\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n\n\t// If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n\tif (!r && typeof process !== 'undefined' && 'env' in process) {\n\t\tr = process.env.DEBUG;\n\t}\n\n\treturn r;\n}\n\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\nfunction localstorage() {\n\ttry {\n\t\t// TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context\n\t\t// The Browser also has localStorage in the global context.\n\t\treturn localStorage;\n\t} catch (error) {\n\t\t// Swallow\n\t\t// XXX (@Qix-) should we be logging these?\n\t}\n}\n\nmodule.exports = require('./common')(exports);\n\nconst {formatters} = module.exports;\n\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\nformatters.j = function (v) {\n\ttry {\n\t\treturn JSON.stringify(v);\n\t} catch (error) {\n\t\treturn '[UnexpectedJSONParseError]: ' + error.message;\n\t}\n};\n", "'use strict';\n\nmodule.exports = (flag, argv = process.argv) => {\n\tconst prefix = flag.startsWith('-') ? '' : (flag.length === 1 ? '-' : '--');\n\tconst position = argv.indexOf(prefix + flag);\n\tconst terminatorPosition = argv.indexOf('--');\n\treturn position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);\n};\n", "'use strict';\nconst os = require('os');\nconst tty = require('tty');\nconst hasFlag = require('has-flag');\n\nconst {env} = process;\n\nlet forceColor;\nif (hasFlag('no-color') ||\n\thasFlag('no-colors') ||\n\thasFlag('color=false') ||\n\thasFlag('color=never')) {\n\tforceColor = 0;\n} else if (hasFlag('color') ||\n\thasFlag('colors') ||\n\thasFlag('color=true') ||\n\thasFlag('color=always')) {\n\tforceColor = 1;\n}\n\nif ('FORCE_COLOR' in env) {\n\tif (env.FORCE_COLOR === 'true') {\n\t\tforceColor = 1;\n\t} else if (env.FORCE_COLOR === 'false') {\n\t\tforceColor = 0;\n\t} else {\n\t\tforceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);\n\t}\n}\n\nfunction translateLevel(level) {\n\tif (level === 0) {\n\t\treturn false;\n\t}\n\n\treturn {\n\t\tlevel,\n\t\thasBasic: true,\n\t\thas256: level >= 2,\n\t\thas16m: level >= 3\n\t};\n}\n\nfunction supportsColor(haveStream, streamIsTTY) {\n\tif (forceColor === 0) {\n\t\treturn 0;\n\t}\n\n\tif (hasFlag('color=16m') ||\n\t\thasFlag('color=full') ||\n\t\thasFlag('color=truecolor')) {\n\t\treturn 3;\n\t}\n\n\tif (hasFlag('color=256')) {\n\t\treturn 2;\n\t}\n\n\tif (haveStream && !streamIsTTY && forceColor === undefined) {\n\t\treturn 0;\n\t}\n\n\tconst min = forceColor || 0;\n\n\tif (env.TERM === 'dumb') {\n\t\treturn min;\n\t}\n\n\tif (process.platform === 'win32') {\n\t\t// Windows 10 build 10586 is the first Windows release that supports 256 colors.\n\t\t// Windows 10 build 14931 is the first release that supports 16m/TrueColor.\n\t\tconst osRelease = os.release().split('.');\n\t\tif (\n\t\t\tNumber(osRelease[0]) >= 10 &&\n\t\t\tNumber(osRelease[2]) >= 10586\n\t\t) {\n\t\t\treturn Number(osRelease[2]) >= 14931 ? 3 : 2;\n\t\t}\n\n\t\treturn 1;\n\t}\n\n\tif ('CI' in env) {\n\t\tif (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI', 'GITHUB_ACTIONS', 'BUILDKITE'].some(sign => sign in env) || env.CI_NAME === 'codeship') {\n\t\t\treturn 1;\n\t\t}\n\n\t\treturn min;\n\t}\n\n\tif ('TEAMCITY_VERSION' in env) {\n\t\treturn /^(9\\.(0*[1-9]\\d*)\\.|\\d{2,}\\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;\n\t}\n\n\tif (env.COLORTERM === 'truecolor') {\n\t\treturn 3;\n\t}\n\n\tif ('TERM_PROGRAM' in env) {\n\t\tconst version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);\n\n\t\tswitch (env.TERM_PROGRAM) {\n\t\t\tcase 'iTerm.app':\n\t\t\t\treturn version >= 3 ? 3 : 2;\n\t\t\tcase 'Apple_Terminal':\n\t\t\t\treturn 2;\n\t\t\t// No default\n\t\t}\n\t}\n\n\tif (/-256(color)?$/i.test(env.TERM)) {\n\t\treturn 2;\n\t}\n\n\tif (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {\n\t\treturn 1;\n\t}\n\n\tif ('COLORTERM' in env) {\n\t\treturn 1;\n\t}\n\n\treturn min;\n}\n\nfunction getSupportLevel(stream) {\n\tconst level = supportsColor(stream, stream && stream.isTTY);\n\treturn translateLevel(level);\n}\n\nmodule.exports = {\n\tsupportsColor: getSupportLevel,\n\tstdout: translateLevel(supportsColor(true, tty.isatty(1))),\n\tstderr: translateLevel(supportsColor(true, tty.isatty(2)))\n};\n", "/**\n * Module dependencies.\n */\n\nconst tty = require('tty');\nconst util = require('util');\n\n/**\n * This is the Node.js implementation of `debug()`.\n */\n\nexports.init = init;\nexports.log = log;\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.destroy = util.deprecate(\n\t() => {},\n\t'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'\n);\n\n/**\n * Colors.\n */\n\nexports.colors = [6, 2, 3, 4, 5, 1];\n\ntry {\n\t// Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json)\n\t// eslint-disable-next-line import/no-extraneous-dependencies\n\tconst supportsColor = require('supports-color');\n\n\tif (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {\n\t\texports.colors = [\n\t\t\t20,\n\t\t\t21,\n\t\t\t26,\n\t\t\t27,\n\t\t\t32,\n\t\t\t33,\n\t\t\t38,\n\t\t\t39,\n\t\t\t40,\n\t\t\t41,\n\t\t\t42,\n\t\t\t43,\n\t\t\t44,\n\t\t\t45,\n\t\t\t56,\n\t\t\t57,\n\t\t\t62,\n\t\t\t63,\n\t\t\t68,\n\t\t\t69,\n\t\t\t74,\n\t\t\t75,\n\t\t\t76,\n\t\t\t77,\n\t\t\t78,\n\t\t\t79,\n\t\t\t80,\n\t\t\t81,\n\t\t\t92,\n\t\t\t93,\n\t\t\t98,\n\t\t\t99,\n\t\t\t112,\n\t\t\t113,\n\t\t\t128,\n\t\t\t129,\n\t\t\t134,\n\t\t\t135,\n\t\t\t148,\n\t\t\t149,\n\t\t\t160,\n\t\t\t161,\n\t\t\t162,\n\t\t\t163,\n\t\t\t164,\n\t\t\t165,\n\t\t\t166,\n\t\t\t167,\n\t\t\t168,\n\t\t\t169,\n\t\t\t170,\n\t\t\t171,\n\t\t\t172,\n\t\t\t173,\n\t\t\t178,\n\t\t\t179,\n\t\t\t184,\n\t\t\t185,\n\t\t\t196,\n\t\t\t197,\n\t\t\t198,\n\t\t\t199,\n\t\t\t200,\n\t\t\t201,\n\t\t\t202,\n\t\t\t203,\n\t\t\t204,\n\t\t\t205,\n\t\t\t206,\n\t\t\t207,\n\t\t\t208,\n\t\t\t209,\n\t\t\t214,\n\t\t\t215,\n\t\t\t220,\n\t\t\t221\n\t\t];\n\t}\n} catch (error) {\n\t// Swallow - we only care if `supports-color` is available; it doesn't have to be.\n}\n\n/**\n * Build up the default `inspectOpts` object from the environment variables.\n *\n * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js\n */\n\nexports.inspectOpts = Object.keys(process.env).filter(key => {\n\treturn /^debug_/i.test(key);\n}).reduce((obj, key) => {\n\t// Camel-case\n\tconst prop = key\n\t\t.substring(6)\n\t\t.toLowerCase()\n\t\t.replace(/_([a-z])/g, (_, k) => {\n\t\t\treturn k.toUpperCase();\n\t\t});\n\n\t// Coerce string value into JS value\n\tlet val = process.env[key];\n\tif (/^(yes|on|true|enabled)$/i.test(val)) {\n\t\tval = true;\n\t} else if (/^(no|off|false|disabled)$/i.test(val)) {\n\t\tval = false;\n\t} else if (val === 'null') {\n\t\tval = null;\n\t} else {\n\t\tval = Number(val);\n\t}\n\n\tobj[prop] = val;\n\treturn obj;\n}, {});\n\n/**\n * Is stdout a TTY? Colored output is enabled when `true`.\n */\n\nfunction useColors() {\n\treturn 'colors' in exports.inspectOpts ?\n\t\tBoolean(exports.inspectOpts.colors) :\n\t\ttty.isatty(process.stderr.fd);\n}\n\n/**\n * Adds ANSI color escape codes if enabled.\n *\n * @api public\n */\n\nfunction formatArgs(args) {\n\tconst {namespace: name, useColors} = this;\n\n\tif (useColors) {\n\t\tconst c = this.color;\n\t\tconst colorCode = '\\u001B[3' + (c < 8 ? c : '8;5;' + c);\n\t\tconst prefix = ` ${colorCode};1m${name} \\u001B[0m`;\n\n\t\targs[0] = prefix + args[0].split('\\n').join('\\n' + prefix);\n\t\targs.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\\u001B[0m');\n\t} else {\n\t\targs[0] = getDate() + name + ' ' + args[0];\n\t}\n}\n\nfunction getDate() {\n\tif (exports.inspectOpts.hideDate) {\n\t\treturn '';\n\t}\n\treturn new Date().toISOString() + ' ';\n}\n\n/**\n * Invokes `util.format()` with the specified arguments and writes to stderr.\n */\n\nfunction log(...args) {\n\treturn process.stderr.write(util.format(...args) + '\\n');\n}\n\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\nfunction save(namespaces) {\n\tif (namespaces) {\n\t\tprocess.env.DEBUG = namespaces;\n\t} else {\n\t\t// If you set a process.env field to null or undefined, it gets cast to the\n\t\t// string 'null' or 'undefined'. Just delete instead.\n\t\tdelete process.env.DEBUG;\n\t}\n}\n\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\n\nfunction load() {\n\treturn process.env.DEBUG;\n}\n\n/**\n * Init logic for `debug` instances.\n *\n * Create a new `inspectOpts` object in case `useColors` is set\n * differently for a particular `debug` instance.\n */\n\nfunction init(debug) {\n\tdebug.inspectOpts = {};\n\n\tconst keys = Object.keys(exports.inspectOpts);\n\tfor (let i = 0; i < keys.length; i++) {\n\t\tdebug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]];\n\t}\n}\n\nmodule.exports = require('./common')(exports);\n\nconst {formatters} = module.exports;\n\n/**\n * Map %o to `util.inspect()`, all on a single line.\n */\n\nformatters.o = function (v) {\n\tthis.inspectOpts.colors = this.useColors;\n\treturn util.inspect(v, this.inspectOpts)\n\t\t.split('\\n')\n\t\t.map(str => str.trim())\n\t\t.join(' ');\n};\n\n/**\n * Map %O to `util.inspect()`, allowing multiple lines if needed.\n */\n\nformatters.O = function (v) {\n\tthis.inspectOpts.colors = this.useColors;\n\treturn util.inspect(v, this.inspectOpts);\n};\n", "/**\n * Detect Electron renderer / nwjs process, which is node, but we should\n * treat as a browser.\n */\n\nif (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) {\n\tmodule.exports = require('./browser.js');\n} else {\n\tmodule.exports = require('./node.js');\n}\n", "/*\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport debug from 'debug';\nimport * as pathBrowserify from 'path-browserify';\nimport { DefaultFileLoader, FileDownloader } from '@accordproject/concerto-util';\nimport { MetaModelUtil, MetaModelNamespace, IModel, IModels } from '@accordproject/concerto-metamodel';\n\nimport * as Parser from './parser';\n\nconst debugLog = debug('concerto:ModelManager');\n\n/**\n * Update models with a new model\n * @param {*} models - existing models\n * @param {*} newModel - new model\n * @return {*} the updated models\n */\nfunction updateModels(models: IModels, newModel: IModel): IModels {\n const result: IModels = {\n $class: `${MetaModelNamespace}.Models`,\n models: [],\n };\n const newNamespace = newModel.namespace;\n const priors = models.models;\n let found = false;\n priors.forEach((priorModel) => {\n if (priorModel.namespace === newNamespace) {\n result.models.push(newModel);\n found = true;\n } else {\n result.models.push(priorModel);\n }\n });\n if (!found) {\n result.models.push(newModel);\n }\n return result;\n}\n\n/**\n * Options passed through to the underlying FileDownloader (and, in turn, to the\n * FileLoader's `fetch` call) when resolving external model dependencies.\n */\nexport type ResolveExternalOptions = RequestInit;\n\n/**\n * Downloads all ModelFiles that are external dependencies and adds or\n * updates them in this ModelManager.\n * @param {*} models - the AST for all the known models\n * @param {Object} [options] - Options object passed to ModelFileLoaders\n * @param {FileDownloader} [fileDownloader] - an optional FileDownloader\n * @throws {IllegalModelException} if the models fail validation\n * @return {Promise} a promise when the download and update operation is completed.\n */\nexport async function resolveExternal(models: IModels, options?: ResolveExternalOptions, fileDownloader?: FileDownloader<IModel>): Promise<IModels> {\n const NAME = 'updateExternalModels';\n debugLog(NAME, 'updateExternalModels', options);\n\n // Create default file downloader if none provided\n const downloader = fileDownloader || createDefaultFileDownloader();\n\n const externalModelFiles = await downloader.downloadExternalDependencies(models.models, options);\n\n let result = models;\n externalModelFiles.forEach((mf: IModel) => {\n result = updateModels(result, mf);\n });\n\n return result;\n}\n\n/**\n * Creates a default file downloader\n * @return {FileDownloader} a default file downloader instance\n */\nexport function createDefaultFileDownloader(): FileDownloader<IModel> {\n // How to create a modelfile from the external content\n const processFile = (name: string, data: string): IModel => {\n // Note: JSON URLs seem to be already parsed in 'data'\n // return { ast: data, data, name };\n if (pathBrowserify.extname(name) === '.cto') {\n return Parser.parse(data);\n }\n throw new Error('External model file references are expected to have a .cto extension');\n };\n return new FileDownloader(new DefaultFileLoader(processFile), (file) => MetaModelUtil.getExternalImports(file) as Record<string, string>);\n}\n\nconst External = {\n resolveExternal,\n createDefaultFileDownloader,\n};\nexport default External;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;AAAA;AAAA;AAIA,QAAI,IAAI;AACR,QAAI,IAAI,IAAI;AACZ,QAAI,IAAI,IAAI;AACZ,QAAI,IAAI,IAAI;AACZ,QAAI,IAAI,IAAI;AACZ,QAAI,IAAI,IAAI;AAgBZ,WAAO,UAAU,SAAS,KAAK,SAAS;AACtC,gBAAU,WAAW,CAAC;AACtB,UAAI,OAAO,OAAO;AAClB,UAAI,SAAS,YAAY,IAAI,SAAS,GAAG;AACvC,eAAOA,OAAM,GAAG;AAAA,MAClB,WAAW,SAAS,YAAY,SAAS,GAAG,GAAG;AAC7C,eAAO,QAAQ,OAAO,QAAQ,GAAG,IAAI,SAAS,GAAG;AAAA,MACnD;AACA,YAAM,IAAI;AAAA,QACR,0DACE,KAAK,UAAU,GAAG;AAAA,MACtB;AAAA,IACF;AAUA,aAASA,OAAM,KAAK;AAClB,YAAM,OAAO,GAAG;AAChB,UAAI,IAAI,SAAS,KAAK;AACpB;AAAA,MACF;AACA,UAAI,QAAQ,mIAAmI;AAAA,QAC7I;AAAA,MACF;AACA,UAAI,CAAC,OAAO;AACV;AAAA,MACF;AACA,UAAI,IAAI,WAAW,MAAM,CAAC,CAAC;AAC3B,UAAI,QAAQ,MAAM,CAAC,KAAK,MAAM,YAAY;AAC1C,cAAQ,MAAM;AAAA,QACZ,KAAK;AAAA,QACL,KAAK;AAAA,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S,MAAM,wBAAwB,OAAO;AAG9C,QAAM,aAAa,kBAAkB,4BAA4B;AAEjE,QAAM,qBAAqB,MAAM,WAAW,6BAA6B,OAAO,QAAQ,OAAO;AAE/F,MAAI,SAAS;AACb,qBAAmB,QAAQ,CAAC,OAAe;AACvC,aAAS,aAAa,QAAQ,EAAE;AAAA,EACpC,CAAC;AAED,SAAO;AACX;AAMO,SAAS,8BAAsD;AAElE,QAAM,cAAc,CAAC,MAAc,SAAyB;AAGxD,QAAmB,uBAAQ,IAAI,MAAM,QAAQ;AACzC,aAAc,aAAM,IAAI;AAAA,IAC5B;AACA,UAAM,IAAI,MAAM,sEAAsE;AAAA,EAC1F;AACA,SAAO,IAAI,eAAe,IAAI,kBAAkB,WAAW,GAAG,CAAC,SAAS,cAAc,mBAAmB,IAAI,CAA2B;AAC5I;AAEA,IAAM,WAAW;AAAA,EACb;AAAA,EACA;AACJ;AACA,IAAO,mBAAQ;",
|
|
6
6
|
"names": ["parse", "debug", "useColors", "debug", "debug"]
|
|
7
7
|
}
|
|
@@ -795,7 +795,7 @@ var require_parser = __commonJS({
|
|
|
795
795
|
const result = {
|
|
796
796
|
$class: "concerto.metamodel@1.0.0.StringScalar"
|
|
797
797
|
};
|
|
798
|
-
if (d) {
|
|
798
|
+
if (d !== null) {
|
|
799
799
|
result.defaultValue = d;
|
|
800
800
|
}
|
|
801
801
|
if (validators.regex) {
|
|
@@ -810,7 +810,7 @@ var require_parser = __commonJS({
|
|
|
810
810
|
const result = {
|
|
811
811
|
$class: "concerto.metamodel@1.0.0.DateTimeScalar"
|
|
812
812
|
};
|
|
813
|
-
if (d) {
|
|
813
|
+
if (d !== null) {
|
|
814
814
|
result.defaultValue = d;
|
|
815
815
|
}
|
|
816
816
|
return result;
|
|
@@ -859,7 +859,7 @@ var require_parser = __commonJS({
|
|
|
859
859
|
isOptional: buildBoolean(optional),
|
|
860
860
|
...buildRange(location())
|
|
861
861
|
};
|
|
862
|
-
if (d) {
|
|
862
|
+
if (d !== null) {
|
|
863
863
|
result.defaultValue = d;
|
|
864
864
|
}
|
|
865
865
|
if (decorators.length > 0) {
|
|
@@ -897,7 +897,7 @@ var require_parser = __commonJS({
|
|
|
897
897
|
isOptional: buildBoolean(optional),
|
|
898
898
|
...buildRange(location())
|
|
899
899
|
};
|
|
900
|
-
if (d) {
|
|
900
|
+
if (d !== null) {
|
|
901
901
|
result.defaultValue = d;
|
|
902
902
|
}
|
|
903
903
|
if (decorators.length > 0) {
|
|
@@ -916,7 +916,7 @@ var require_parser = __commonJS({
|
|
|
916
916
|
isOptional: buildBoolean(optional),
|
|
917
917
|
...buildRange(location())
|
|
918
918
|
};
|
|
919
|
-
if (d) {
|
|
919
|
+
if (d !== null) {
|
|
920
920
|
result.defaultValue = d;
|
|
921
921
|
}
|
|
922
922
|
if (decorators.length > 0) {
|
|
@@ -11848,4 +11848,4 @@ var require_parser = __commonJS({
|
|
|
11848
11848
|
export {
|
|
11849
11849
|
require_parser
|
|
11850
11850
|
};
|
|
11851
|
-
//# sourceMappingURL=chunk-
|
|
11851
|
+
//# sourceMappingURL=chunk-Z274WV22.mjs.map
|