@swagger-api/apidom-parser-adapter-api-design-systems-yaml 0.91.0 → 0.93.0

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.
@@ -6799,38 +6799,6 @@ var isUndefined = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_stubUnde
6799
6799
 
6800
6800
  /***/ }),
6801
6801
 
6802
- /***/ 71329:
6803
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6804
-
6805
- "use strict";
6806
- __webpack_require__.r(__webpack_exports__);
6807
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6808
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
6809
- /* harmony export */ });
6810
- /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(16360);
6811
- /* harmony import */ var _stubUndefined__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(72031);
6812
-
6813
-
6814
-
6815
- /**
6816
- * A function that performs no operations.
6817
- *
6818
- * @func noop
6819
- * @memberOf RA
6820
- * @since {@link https://char0n.github.io/ramda-adjunct/1.0.0|v1.0.0}
6821
- * @category Function
6822
- * @sig ... -> undefined
6823
- * @return {undefined}
6824
- * @example
6825
- *
6826
- * RA.noop(); //=> undefined
6827
- * RA.noop(1, 2, 3); //=> undefined
6828
- */
6829
- var noop = (0,ramda__WEBPACK_IMPORTED_MODULE_0__["default"])((0,_stubUndefined__WEBPACK_IMPORTED_MODULE_1__["default"])());
6830
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (noop);
6831
-
6832
- /***/ }),
6833
-
6834
6802
  /***/ 68612:
6835
6803
  /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6836
6804
 
@@ -7023,10 +6991,383 @@ var trimStart = (0,_isFunction__WEBPACK_IMPORTED_MODULE_2__["default"])(String.p
7023
6991
 
7024
6992
  /***/ }),
7025
6993
 
7026
- /***/ 86591:
7027
- /***/ ((module) => {
6994
+ /***/ 96252:
6995
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
6996
+
6997
+ "use strict";
6998
+ __webpack_require__.r(__webpack_exports__);
6999
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7000
+ /* harmony export */ Mixin: () => (/* binding */ Mixin),
7001
+ /* harmony export */ decorate: () => (/* binding */ decorate),
7002
+ /* harmony export */ hasMixin: () => (/* binding */ hasMixin),
7003
+ /* harmony export */ mix: () => (/* binding */ mix),
7004
+ /* harmony export */ settings: () => (/* binding */ settings)
7005
+ /* harmony export */ });
7006
+ /**
7007
+ * Utility function that works like `Object.apply`, but copies getters and setters properly as well. Additionally gives
7008
+ * the option to exclude properties by name.
7009
+ */
7010
+ const copyProps = (dest, src, exclude = []) => {
7011
+ const props = Object.getOwnPropertyDescriptors(src);
7012
+ for (let prop of exclude)
7013
+ delete props[prop];
7014
+ Object.defineProperties(dest, props);
7015
+ };
7016
+ /**
7017
+ * Returns the full chain of prototypes up until Object.prototype given a starting object. The order of prototypes will
7018
+ * be closest to farthest in the chain.
7019
+ */
7020
+ const protoChain = (obj, currentChain = [obj]) => {
7021
+ const proto = Object.getPrototypeOf(obj);
7022
+ if (proto === null)
7023
+ return currentChain;
7024
+ return protoChain(proto, [...currentChain, proto]);
7025
+ };
7026
+ /**
7027
+ * Identifies the nearest ancestor common to all the given objects in their prototype chains. For most unrelated
7028
+ * objects, this function should return Object.prototype.
7029
+ */
7030
+ const nearestCommonProto = (...objs) => {
7031
+ if (objs.length === 0)
7032
+ return undefined;
7033
+ let commonProto = undefined;
7034
+ const protoChains = objs.map(obj => protoChain(obj));
7035
+ while (protoChains.every(protoChain => protoChain.length > 0)) {
7036
+ const protos = protoChains.map(protoChain => protoChain.pop());
7037
+ const potentialCommonProto = protos[0];
7038
+ if (protos.every(proto => proto === potentialCommonProto))
7039
+ commonProto = potentialCommonProto;
7040
+ else
7041
+ break;
7042
+ }
7043
+ return commonProto;
7044
+ };
7045
+ /**
7046
+ * Creates a new prototype object that is a mixture of the given prototypes. The mixing is achieved by first
7047
+ * identifying the nearest common ancestor and using it as the prototype for a new object. Then all properties/methods
7048
+ * downstream of this prototype (ONLY downstream) are copied into the new object.
7049
+ *
7050
+ * The resulting prototype is more performant than softMixProtos(...), as well as ES5 compatible. However, it's not as
7051
+ * flexible as updates to the source prototypes aren't captured by the mixed result. See softMixProtos for why you may
7052
+ * want to use that instead.
7053
+ */
7054
+ const hardMixProtos = (ingredients, constructor, exclude = []) => {
7055
+ var _a;
7056
+ const base = (_a = nearestCommonProto(...ingredients)) !== null && _a !== void 0 ? _a : Object.prototype;
7057
+ const mixedProto = Object.create(base);
7058
+ // Keeps track of prototypes we've already visited to avoid copying the same properties multiple times. We init the
7059
+ // list with the proto chain below the nearest common ancestor because we don't want any of those methods mixed in
7060
+ // when they will already be accessible via prototype access.
7061
+ const visitedProtos = protoChain(base);
7062
+ for (let prototype of ingredients) {
7063
+ let protos = protoChain(prototype);
7064
+ // Apply the prototype chain in reverse order so that old methods don't override newer ones.
7065
+ for (let i = protos.length - 1; i >= 0; i--) {
7066
+ let newProto = protos[i];
7067
+ if (visitedProtos.indexOf(newProto) === -1) {
7068
+ copyProps(mixedProto, newProto, ['constructor', ...exclude]);
7069
+ visitedProtos.push(newProto);
7070
+ }
7071
+ }
7072
+ }
7073
+ mixedProto.constructor = constructor;
7074
+ return mixedProto;
7075
+ };
7076
+ const unique = (arr) => arr.filter((e, i) => arr.indexOf(e) == i);
7077
+
7078
+ /**
7079
+ * Finds the ingredient with the given prop, searching in reverse order and breadth-first if searching ingredient
7080
+ * prototypes is required.
7081
+ */
7082
+ const getIngredientWithProp = (prop, ingredients) => {
7083
+ const protoChains = ingredients.map(ingredient => protoChain(ingredient));
7084
+ // since we search breadth-first, we need to keep track of our depth in the prototype chains
7085
+ let protoDepth = 0;
7086
+ // not all prototype chains are the same depth, so this remains true as long as at least one of the ingredients'
7087
+ // prototype chains has an object at this depth
7088
+ let protosAreLeftToSearch = true;
7089
+ while (protosAreLeftToSearch) {
7090
+ // with the start of each horizontal slice, we assume this is the one that's deeper than any of the proto chains
7091
+ protosAreLeftToSearch = false;
7092
+ // scan through the ingredients right to left
7093
+ for (let i = ingredients.length - 1; i >= 0; i--) {
7094
+ const searchTarget = protoChains[i][protoDepth];
7095
+ if (searchTarget !== undefined && searchTarget !== null) {
7096
+ // if we find something, this is proof that this horizontal slice potentially more objects to search
7097
+ protosAreLeftToSearch = true;
7098
+ // eureka, we found it
7099
+ if (Object.getOwnPropertyDescriptor(searchTarget, prop) != undefined) {
7100
+ return protoChains[i][0];
7101
+ }
7102
+ }
7103
+ }
7104
+ protoDepth++;
7105
+ }
7106
+ return undefined;
7107
+ };
7108
+ /**
7109
+ * "Mixes" ingredients by wrapping them in a Proxy. The optional prototype argument allows the mixed object to sit
7110
+ * downstream of an existing prototype chain. Note that "properties" cannot be added, deleted, or modified.
7111
+ */
7112
+ const proxyMix = (ingredients, prototype = Object.prototype) => new Proxy({}, {
7113
+ getPrototypeOf() {
7114
+ return prototype;
7115
+ },
7116
+ setPrototypeOf() {
7117
+ throw Error('Cannot set prototype of Proxies created by ts-mixer');
7118
+ },
7119
+ getOwnPropertyDescriptor(_, prop) {
7120
+ return Object.getOwnPropertyDescriptor(getIngredientWithProp(prop, ingredients) || {}, prop);
7121
+ },
7122
+ defineProperty() {
7123
+ throw new Error('Cannot define new properties on Proxies created by ts-mixer');
7124
+ },
7125
+ has(_, prop) {
7126
+ return getIngredientWithProp(prop, ingredients) !== undefined || prototype[prop] !== undefined;
7127
+ },
7128
+ get(_, prop) {
7129
+ return (getIngredientWithProp(prop, ingredients) || prototype)[prop];
7130
+ },
7131
+ set(_, prop, val) {
7132
+ const ingredientWithProp = getIngredientWithProp(prop, ingredients);
7133
+ if (ingredientWithProp === undefined)
7134
+ throw new Error('Cannot set new properties on Proxies created by ts-mixer');
7135
+ ingredientWithProp[prop] = val;
7136
+ return true;
7137
+ },
7138
+ deleteProperty() {
7139
+ throw new Error('Cannot delete properties on Proxies created by ts-mixer');
7140
+ },
7141
+ ownKeys() {
7142
+ return ingredients
7143
+ .map(Object.getOwnPropertyNames)
7144
+ .reduce((prev, curr) => curr.concat(prev.filter(key => curr.indexOf(key) < 0)));
7145
+ },
7146
+ });
7147
+ /**
7148
+ * Creates a new proxy-prototype object that is a "soft" mixture of the given prototypes. The mixing is achieved by
7149
+ * proxying all property access to the ingredients. This is not ES5 compatible and less performant. However, any
7150
+ * changes made to the source prototypes will be reflected in the proxy-prototype, which may be desirable.
7151
+ */
7152
+ const softMixProtos = (ingredients, constructor) => proxyMix([...ingredients, { constructor }]);
7153
+
7154
+ const settings = {
7155
+ initFunction: null,
7156
+ staticsStrategy: 'copy',
7157
+ prototypeStrategy: 'copy',
7158
+ decoratorInheritance: 'deep',
7159
+ };
7160
+
7161
+ // Keeps track of constituent classes for every mixin class created by ts-mixer.
7162
+ const mixins = new Map();
7163
+ const getMixinsForClass = (clazz) => mixins.get(clazz);
7164
+ const registerMixins = (mixedClass, constituents) => mixins.set(mixedClass, constituents);
7165
+ const hasMixin = (instance, mixin) => {
7166
+ if (instance instanceof mixin)
7167
+ return true;
7168
+ const constructor = instance.constructor;
7169
+ const visited = new Set();
7170
+ let frontier = new Set();
7171
+ frontier.add(constructor);
7172
+ while (frontier.size > 0) {
7173
+ // check if the frontier has the mixin we're looking for. if not, we can say we visited every item in the frontier
7174
+ if (frontier.has(mixin))
7175
+ return true;
7176
+ frontier.forEach(item => visited.add(item));
7177
+ // build a new frontier based on the associated mixin classes and prototype chains of each frontier item
7178
+ const newFrontier = new Set();
7179
+ frontier.forEach(item => {
7180
+ var _a;
7181
+ const itemConstituents = (_a = mixins.get(item)) !== null && _a !== void 0 ? _a : protoChain(item.prototype).map(proto => proto.constructor).filter(item => item !== null);
7182
+ if (itemConstituents)
7183
+ itemConstituents.forEach(constituent => {
7184
+ if (!visited.has(constituent) && !frontier.has(constituent))
7185
+ newFrontier.add(constituent);
7186
+ });
7187
+ });
7188
+ // we have a new frontier, now search again
7189
+ frontier = newFrontier;
7190
+ }
7191
+ // if we get here, we couldn't find the mixin anywhere in the prototype chain or associated mixin classes
7192
+ return false;
7193
+ };
7194
+
7195
+ const mergeObjectsOfDecorators = (o1, o2) => {
7196
+ var _a, _b;
7197
+ const allKeys = unique([...Object.getOwnPropertyNames(o1), ...Object.getOwnPropertyNames(o2)]);
7198
+ const mergedObject = {};
7199
+ for (let key of allKeys)
7200
+ mergedObject[key] = unique([...((_a = o1 === null || o1 === void 0 ? void 0 : o1[key]) !== null && _a !== void 0 ? _a : []), ...((_b = o2 === null || o2 === void 0 ? void 0 : o2[key]) !== null && _b !== void 0 ? _b : [])]);
7201
+ return mergedObject;
7202
+ };
7203
+ const mergePropertyAndMethodDecorators = (d1, d2) => {
7204
+ var _a, _b, _c, _d;
7205
+ return ({
7206
+ property: mergeObjectsOfDecorators((_a = d1 === null || d1 === void 0 ? void 0 : d1.property) !== null && _a !== void 0 ? _a : {}, (_b = d2 === null || d2 === void 0 ? void 0 : d2.property) !== null && _b !== void 0 ? _b : {}),
7207
+ method: mergeObjectsOfDecorators((_c = d1 === null || d1 === void 0 ? void 0 : d1.method) !== null && _c !== void 0 ? _c : {}, (_d = d2 === null || d2 === void 0 ? void 0 : d2.method) !== null && _d !== void 0 ? _d : {}),
7208
+ });
7209
+ };
7210
+ const mergeDecorators = (d1, d2) => {
7211
+ var _a, _b, _c, _d, _e, _f;
7212
+ return ({
7213
+ class: unique([...(_a = d1 === null || d1 === void 0 ? void 0 : d1.class) !== null && _a !== void 0 ? _a : [], ...(_b = d2 === null || d2 === void 0 ? void 0 : d2.class) !== null && _b !== void 0 ? _b : []]),
7214
+ static: mergePropertyAndMethodDecorators((_c = d1 === null || d1 === void 0 ? void 0 : d1.static) !== null && _c !== void 0 ? _c : {}, (_d = d2 === null || d2 === void 0 ? void 0 : d2.static) !== null && _d !== void 0 ? _d : {}),
7215
+ instance: mergePropertyAndMethodDecorators((_e = d1 === null || d1 === void 0 ? void 0 : d1.instance) !== null && _e !== void 0 ? _e : {}, (_f = d2 === null || d2 === void 0 ? void 0 : d2.instance) !== null && _f !== void 0 ? _f : {}),
7216
+ });
7217
+ };
7218
+ const decorators = new Map();
7219
+ const findAllConstituentClasses = (...classes) => {
7220
+ var _a;
7221
+ const allClasses = new Set();
7222
+ const frontier = new Set([...classes]);
7223
+ while (frontier.size > 0) {
7224
+ for (let clazz of frontier) {
7225
+ const protoChainClasses = protoChain(clazz.prototype).map(proto => proto.constructor);
7226
+ const mixinClasses = (_a = getMixinsForClass(clazz)) !== null && _a !== void 0 ? _a : [];
7227
+ const potentiallyNewClasses = [...protoChainClasses, ...mixinClasses];
7228
+ const newClasses = potentiallyNewClasses.filter(c => !allClasses.has(c));
7229
+ for (let newClass of newClasses)
7230
+ frontier.add(newClass);
7231
+ allClasses.add(clazz);
7232
+ frontier.delete(clazz);
7233
+ }
7234
+ }
7235
+ return [...allClasses];
7236
+ };
7237
+ const deepDecoratorSearch = (...classes) => {
7238
+ const decoratorsForClassChain = findAllConstituentClasses(...classes)
7239
+ .map(clazz => decorators.get(clazz))
7240
+ .filter(decorators => !!decorators);
7241
+ if (decoratorsForClassChain.length == 0)
7242
+ return {};
7243
+ if (decoratorsForClassChain.length == 1)
7244
+ return decoratorsForClassChain[0];
7245
+ return decoratorsForClassChain.reduce((d1, d2) => mergeDecorators(d1, d2));
7246
+ };
7247
+ const directDecoratorSearch = (...classes) => {
7248
+ const classDecorators = classes.map(clazz => getDecoratorsForClass(clazz));
7249
+ if (classDecorators.length === 0)
7250
+ return {};
7251
+ if (classDecorators.length === 1)
7252
+ return classDecorators[0];
7253
+ return classDecorators.reduce((d1, d2) => mergeDecorators(d1, d2));
7254
+ };
7255
+ const getDecoratorsForClass = (clazz) => {
7256
+ let decoratorsForClass = decorators.get(clazz);
7257
+ if (!decoratorsForClass) {
7258
+ decoratorsForClass = {};
7259
+ decorators.set(clazz, decoratorsForClass);
7260
+ }
7261
+ return decoratorsForClass;
7262
+ };
7263
+ const decorateClass = (decorator) => ((clazz) => {
7264
+ const decoratorsForClass = getDecoratorsForClass(clazz);
7265
+ let classDecorators = decoratorsForClass.class;
7266
+ if (!classDecorators) {
7267
+ classDecorators = [];
7268
+ decoratorsForClass.class = classDecorators;
7269
+ }
7270
+ classDecorators.push(decorator);
7271
+ return decorator(clazz);
7272
+ });
7273
+ const decorateMember = (decorator) => ((object, key, ...otherArgs) => {
7274
+ var _a, _b, _c;
7275
+ const decoratorTargetType = typeof object === 'function' ? 'static' : 'instance';
7276
+ const decoratorType = typeof object[key] === 'function' ? 'method' : 'property';
7277
+ const clazz = decoratorTargetType === 'static' ? object : object.constructor;
7278
+ const decoratorsForClass = getDecoratorsForClass(clazz);
7279
+ const decoratorsForTargetType = (_a = decoratorsForClass === null || decoratorsForClass === void 0 ? void 0 : decoratorsForClass[decoratorTargetType]) !== null && _a !== void 0 ? _a : {};
7280
+ decoratorsForClass[decoratorTargetType] = decoratorsForTargetType;
7281
+ let decoratorsForType = (_b = decoratorsForTargetType === null || decoratorsForTargetType === void 0 ? void 0 : decoratorsForTargetType[decoratorType]) !== null && _b !== void 0 ? _b : {};
7282
+ decoratorsForTargetType[decoratorType] = decoratorsForType;
7283
+ let decoratorsForKey = (_c = decoratorsForType === null || decoratorsForType === void 0 ? void 0 : decoratorsForType[key]) !== null && _c !== void 0 ? _c : [];
7284
+ decoratorsForType[key] = decoratorsForKey;
7285
+ // @ts-ignore: array is type `A[] | B[]` and item is type `A | B`, so technically a type error, but it's fine
7286
+ decoratorsForKey.push(decorator);
7287
+ // @ts-ignore
7288
+ return decorator(object, key, ...otherArgs);
7289
+ });
7290
+ const decorate = (decorator) => ((...args) => {
7291
+ if (args.length === 1)
7292
+ return decorateClass(decorator)(args[0]);
7293
+ return decorateMember(decorator)(...args);
7294
+ });
7295
+
7296
+ function Mixin(...constructors) {
7297
+ var _a, _b, _c;
7298
+ const prototypes = constructors.map(constructor => constructor.prototype);
7299
+ // Here we gather up the init functions of the ingredient prototypes, combine them into one init function, and
7300
+ // attach it to the mixed class prototype. The reason we do this is because we want the init functions to mix
7301
+ // similarly to constructors -- not methods, which simply override each other.
7302
+ const initFunctionName = settings.initFunction;
7303
+ if (initFunctionName !== null) {
7304
+ const initFunctions = prototypes
7305
+ .map(proto => proto[initFunctionName])
7306
+ .filter(func => typeof func === 'function');
7307
+ const combinedInitFunction = function (...args) {
7308
+ for (let initFunction of initFunctions)
7309
+ initFunction.apply(this, args);
7310
+ };
7311
+ const extraProto = { [initFunctionName]: combinedInitFunction };
7312
+ prototypes.push(extraProto);
7313
+ }
7314
+ function MixedClass(...args) {
7315
+ for (const constructor of constructors)
7316
+ // @ts-ignore: potentially abstract class
7317
+ copyProps(this, new constructor(...args));
7318
+ if (initFunctionName !== null && typeof this[initFunctionName] === 'function')
7319
+ this[initFunctionName].apply(this, args);
7320
+ }
7321
+ MixedClass.prototype = settings.prototypeStrategy === 'copy'
7322
+ ? hardMixProtos(prototypes, MixedClass)
7323
+ : softMixProtos(prototypes, MixedClass);
7324
+ Object.setPrototypeOf(MixedClass, settings.staticsStrategy === 'copy'
7325
+ ? hardMixProtos(constructors, null, ['prototype'])
7326
+ : proxyMix(constructors, Function.prototype));
7327
+ let DecoratedMixedClass = MixedClass;
7328
+ if (settings.decoratorInheritance !== 'none') {
7329
+ const classDecorators = settings.decoratorInheritance === 'deep'
7330
+ ? deepDecoratorSearch(...constructors)
7331
+ : directDecoratorSearch(...constructors);
7332
+ for (let decorator of (_a = classDecorators === null || classDecorators === void 0 ? void 0 : classDecorators.class) !== null && _a !== void 0 ? _a : []) {
7333
+ const result = decorator(DecoratedMixedClass);
7334
+ if (result) {
7335
+ DecoratedMixedClass = result;
7336
+ }
7337
+ }
7338
+ applyPropAndMethodDecorators((_b = classDecorators === null || classDecorators === void 0 ? void 0 : classDecorators.static) !== null && _b !== void 0 ? _b : {}, DecoratedMixedClass);
7339
+ applyPropAndMethodDecorators((_c = classDecorators === null || classDecorators === void 0 ? void 0 : classDecorators.instance) !== null && _c !== void 0 ? _c : {}, DecoratedMixedClass.prototype);
7340
+ }
7341
+ registerMixins(DecoratedMixedClass, constructors);
7342
+ return DecoratedMixedClass;
7343
+ }
7344
+ const applyPropAndMethodDecorators = (propAndMethodDecorators, target) => {
7345
+ const propDecorators = propAndMethodDecorators.property;
7346
+ const methodDecorators = propAndMethodDecorators.method;
7347
+ if (propDecorators)
7348
+ for (let key in propDecorators)
7349
+ for (let decorator of propDecorators[key])
7350
+ decorator(target, key);
7351
+ if (methodDecorators)
7352
+ for (let key in methodDecorators)
7353
+ for (let decorator of methodDecorators[key])
7354
+ decorator(target, key, Object.getOwnPropertyDescriptor(target, key));
7355
+ };
7356
+ /**
7357
+ * A decorator version of the `Mixin` function. You'll want to use this instead of `Mixin` for mixing generic classes.
7358
+ */
7359
+ const mix = (...ingredients) => decoratedClass => {
7360
+ // @ts-ignore
7361
+ const mixedClass = Mixin(...ingredients.concat([decoratedClass]));
7362
+ Object.defineProperty(mixedClass, 'name', {
7363
+ value: decoratedClass.name,
7364
+ writable: false,
7365
+ });
7366
+ return mixedClass;
7367
+ };
7368
+
7369
+
7028
7370
 
7029
- !function(){"use strict";var u,c,a,s,f,y="properties",l="deepProperties",b="propertyDescriptors",d="staticProperties",O="staticDeepProperties",h="staticPropertyDescriptors",g="configuration",m="deepConfiguration",P="deepProps",A="deepStatics",j="deepConf",v="initializers",_="methods",w="composers",D="compose";function S(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r):[])}function r(r,t){return Array.prototype.slice.call(arguments,2).reduce(r,t)}var x=r.bind(0,function r(t,e){if(e)for(var n=S(e),o=0;o<n.length;o+=1)Object.defineProperty(t,n[o],Object.getOwnPropertyDescriptor(e,n[o]));return t});function C(r){return"function"==typeof r}function N(r){return r&&"object"==typeof r||C(r)}function z(r){return r&&"object"==typeof r&&r.__proto__==Object.prototype}var E=r.bind(0,function r(t,e){if(e===u)return t;if(Array.isArray(e))return(Array.isArray(t)?t:[]).concat(e);if(!z(e))return e;for(var n,o,i=S(e),p=0;p<i.length;)n=i[p++],(o=Object.getOwnPropertyDescriptor(e,n)).hasOwnProperty("value")?o.value!==u&&(t[n]=r(z(t[n])||Array.isArray(e[n])?t[n]:{},e[n])):Object.defineProperty(t,n,o);return t});function I(){return(c=Array.prototype.concat.apply([],arguments).filter(function(r,t,e){return C(r)&&e.indexOf(r)===t})).length?c:u}function t(r){return c=function r(){return function r(t){var e,n,o=r[D]||{},i={__proto__:o[_]},p=o[v],c=Array.prototype.slice.apply(arguments),a=o[l];if(a&&E(i,a),(a=o[y])&&x(i,a),(a=o[b])&&Object.defineProperties(i,a),!p||!p.length)return i;for(t===u&&(t={}),o=0;o<p.length;)C(e=p[o++])&&(i=(n=e.call(i,t,{instance:i,stamp:r,args:c}))===u?i:n);return i}}(),(a=r[O])&&E(c,a),(a=r[d])&&x(c,a),(a=r[h])&&Object.defineProperties(c,a),a=C(c[D])?c[D]:R,x(c[D]=function(){return a.apply(this,arguments)},r),c}function e(e,n){function r(r,t){N(n[r])&&(N(e[r])||(e[r]={}),(t||x)(e[r],n[r]))}function t(r){(c=I(e[r],n[r]))&&(e[r]=c)}return n&&N(n=n[D]||n)&&(r(_),r(y),r(l,E),r(b),r(d),r(O,E),r(h),r(g),r(m,E),t(v),t(w)),e}function R(){return t(Array.prototype.concat.apply([this],arguments).reduce(e,{}))}function V(r){return C(r)&&C(r[D])}var n={};function o(r,t){return function(){return(s={})[r]=t.apply(u,Array.prototype.concat.apply([{}],arguments)),((c=this)&&c[D]||a).call(c,s)}}n[_]=o(_,x),n[y]=n.props=o(y,x),n[v]=n.init=o(v,I),n[w]=o(w,I),n[l]=n[P]=o(l,E),n[d]=n.statics=o(d,x),n[O]=n[A]=o(O,E),n[g]=n.conf=o(g,x),n[m]=n[j]=o(m,E),n[b]=o(b,x),n[h]=o(h,x),a=n[D]=x(function r(){for(var t,e,n=0,o=[],i=arguments,p=this;n<i.length;)N(t=i[n++])&&o.push(V(t)?t:((s={})[_]=(e=t)[_]||u,a=e.props,s[y]=N((c=e[y])||a)?x({},a,c):u,s[v]=I(e.init,e[v]),s[w]=I(e[w]),a=e[P],s[l]=N((c=e[l])||a)?E({},a,c):u,s[b]=e[b],a=e.statics,s[d]=N((c=e[d])||a)?x({},a,c):u,a=e[A],s[O]=N((c=e[O])||a)?E({},a,c):u,c=e[h],s[h]=N((a=e.name&&{name:{value:e.name}})||c)?x({},c,a):u,a=e.conf,s[g]=N((c=e[g])||a)?x({},a,c):u,a=e[j],s[m]=N((c=e[m])||a)?E({},a,c):u,s));if(t=R.apply(p||f,o),p&&o.unshift(p),Array.isArray(i=t[D][w]))for(n=0;n<i.length;)t=V(p=i[n++]({stamp:t,composables:o}))?p:t;return t},n),n.create=function(){return this.apply(u,arguments)},(s={})[d]=n,f=R(s),a[D]=a.bind(),a.version="4.3.2",typeof u!="object"?module.exports=a:self.stampit=a}();
7030
7371
 
7031
7372
  /***/ }),
7032
7373
 
@@ -15911,26 +16252,22 @@ __webpack_require__.r(__webpack_exports__);
15911
16252
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
15912
16253
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
15913
16254
  /* harmony export */ });
15914
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
15915
- /* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9824);
15916
-
16255
+ /* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9824);
15917
16256
 
15918
- const Error = stampit__WEBPACK_IMPORTED_MODULE_0__(_Node_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], {
15919
- statics: {
15920
- type: 'error'
15921
- },
15922
- props: {
15923
- value: null,
15924
- isUnexpected: false
15925
- },
15926
- init({
15927
- value = null,
15928
- isUnexpected = false
16257
+ class Error extends _Node_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
16258
+ static type = 'error';
16259
+ constructor({
16260
+ value,
16261
+ isUnexpected = false,
16262
+ ...rest
15929
16263
  } = {}) {
16264
+ super({
16265
+ ...rest
16266
+ });
15930
16267
  this.value = value;
15931
16268
  this.isUnexpected = isUnexpected;
15932
16269
  }
15933
- });
16270
+ }
15934
16271
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Error);
15935
16272
 
15936
16273
  /***/ }),
@@ -15943,23 +16280,20 @@ __webpack_require__.r(__webpack_exports__);
15943
16280
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
15944
16281
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
15945
16282
  /* harmony export */ });
15946
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
15947
- /* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9824);
16283
+ /* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9824);
15948
16284
 
15949
-
15950
- const Literal = stampit__WEBPACK_IMPORTED_MODULE_0__(_Node_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], {
15951
- statics: {
15952
- type: 'literal'
15953
- },
15954
- props: {
15955
- value: null
15956
- },
15957
- init({
15958
- value = null
16285
+ class Literal extends _Node_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
16286
+ static type = 'literal';
16287
+ constructor({
16288
+ value,
16289
+ ...rest
15959
16290
  } = {}) {
16291
+ super({
16292
+ ...rest
16293
+ });
15960
16294
  this.value = value;
15961
16295
  }
15962
- });
16296
+ }
15963
16297
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Literal);
15964
16298
 
15965
16299
  /***/ }),
@@ -15972,45 +16306,36 @@ __webpack_require__.r(__webpack_exports__);
15972
16306
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
15973
16307
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
15974
16308
  /* harmony export */ });
15975
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
15976
-
15977
- const Node = stampit__WEBPACK_IMPORTED_MODULE_0__({
15978
- props: {
15979
- type: null,
15980
- position: null,
15981
- children: []
15982
- },
15983
- // eslint-disable-next-line @typescript-eslint/default-param-last
15984
- init({
16309
+ class Node {
16310
+ static type = 'node';
16311
+ type = 'node';
16312
+ constructor({
15985
16313
  children = [],
15986
- position = null,
16314
+ position,
15987
16315
  isMissing = false
15988
- } = {}, {
15989
- stamp = {}
15990
- }) {
15991
- this.type = stamp.type;
16316
+ } = {}) {
16317
+ this.type = this.constructor.type;
15992
16318
  this.isMissing = isMissing;
15993
16319
  this.children = children;
15994
16320
  this.position = position;
15995
- },
15996
- methods: {
15997
- // creates shallow clone of node
15998
- clone() {
15999
- // 1. copy has same prototype as orig
16000
- const copy = Object.create(Object.getPrototypeOf(this));
16001
-
16002
- // 2. copy has all of orig’s properties
16003
- Object.getOwnPropertyNames(this) // (1)
16004
- .forEach(propKey => {
16005
- // (2)
16006
- const descriptor = Object.getOwnPropertyDescriptor(this, propKey); // (3)
16007
- // @ts-ignore
16008
- Object.defineProperty(copy, propKey, descriptor); // (4)
16009
- });
16010
- return copy;
16011
- }
16012
16321
  }
16013
- });
16322
+
16323
+ // creates shallow clone of node
16324
+ clone() {
16325
+ // 1. copy has same prototype as orig
16326
+ const copy = Object.create(Object.getPrototypeOf(this));
16327
+
16328
+ // 2. copy has all of orig’s properties
16329
+ Object.getOwnPropertyNames(this) // (1)
16330
+ .forEach(propKey => {
16331
+ // (2)
16332
+ const descriptor = Object.getOwnPropertyDescriptor(this, propKey); // (3)
16333
+ // @ts-ignore
16334
+ Object.defineProperty(copy, propKey, descriptor); // (4)
16335
+ });
16336
+ return copy;
16337
+ }
16338
+ }
16014
16339
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Node);
16015
16340
 
16016
16341
  /***/ }),
@@ -16023,24 +16348,16 @@ __webpack_require__.r(__webpack_exports__);
16023
16348
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
16024
16349
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
16025
16350
  /* harmony export */ });
16026
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
16027
- /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(87018);
16028
- /* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9824);
16351
+ /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(87018);
16352
+ /* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9824);
16029
16353
 
16030
16354
 
16031
-
16032
- const ParseResult = stampit__WEBPACK_IMPORTED_MODULE_0__(_Node_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], {
16033
- statics: {
16034
- type: 'parseResult'
16035
- },
16036
- methods: {
16037
- // @ts-ignore
16038
- get rootNode() {
16039
- // @ts-ignore
16040
- return (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(this.children);
16041
- }
16355
+ class ParseResult extends _Node_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
16356
+ static type = 'parseResult';
16357
+ get rootNode() {
16358
+ return (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])(this.children);
16042
16359
  }
16043
- });
16360
+ }
16044
16361
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ParseResult);
16045
16362
 
16046
16363
  /***/ }),
@@ -16054,45 +16371,32 @@ __webpack_require__.r(__webpack_exports__);
16054
16371
  /* harmony export */ Point: () => (/* binding */ Point),
16055
16372
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
16056
16373
  /* harmony export */ });
16057
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
16374
+ /* eslint-disable max-classes-per-file */
16058
16375
 
16059
- const Point = stampit__WEBPACK_IMPORTED_MODULE_0__({
16060
- statics: {
16061
- type: 'point'
16062
- },
16063
- props: {
16064
- type: 'point',
16065
- row: null,
16066
- column: null,
16067
- char: null
16068
- },
16069
- init({
16070
- row = null,
16071
- column = null,
16072
- char = null
16073
- } = {}) {
16376
+ class Point {
16377
+ static type = 'point';
16378
+ type = Point.type;
16379
+ constructor({
16380
+ row,
16381
+ column,
16382
+ char
16383
+ }) {
16074
16384
  this.row = row;
16075
16385
  this.column = column;
16076
16386
  this.char = char;
16077
16387
  }
16078
- });
16079
- const Position = stampit__WEBPACK_IMPORTED_MODULE_0__({
16080
- statics: {
16081
- type: 'position'
16082
- },
16083
- props: {
16084
- type: 'position',
16085
- start: null,
16086
- end: null
16087
- },
16088
- init({
16089
- start = null,
16090
- end = null
16091
- } = {}) {
16388
+ }
16389
+ class Position {
16390
+ static type = 'position';
16391
+ type = Position.type;
16392
+ constructor({
16393
+ start,
16394
+ end
16395
+ }) {
16092
16396
  this.start = start;
16093
16397
  this.end = end;
16094
16398
  }
16095
- });
16399
+ }
16096
16400
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Position);
16097
16401
 
16098
16402
  /***/ }),
@@ -16109,11 +16413,11 @@ __webpack_require__.r(__webpack_exports__);
16109
16413
  /* harmony export */ isPoint: () => (/* binding */ isPoint),
16110
16414
  /* harmony export */ isPosition: () => (/* binding */ isPosition)
16111
16415
  /* harmony export */ });
16112
- const isNodeType = (type, node) => (node === null || node === void 0 ? void 0 : node.type) === type;
16113
- const isLiteral = isNodeType.bind(undefined, 'literal');
16114
- const isPosition = isNodeType.bind(undefined, 'position');
16115
- const isPoint = isNodeType.bind(undefined, 'point');
16116
- const isParseResult = isNodeType.bind(undefined, 'parseResult');
16416
+ const isNodeType = (type, node) => node != null && typeof node === 'object' && 'type' in node && node.type === type;
16417
+ const isLiteral = node => isNodeType('literal', node);
16418
+ const isPosition = node => isNodeType('position', node);
16419
+ const isPoint = node => isNodeType('point', node);
16420
+ const isParseResult = node => isNodeType('parseResult', node);
16117
16421
 
16118
16422
  /***/ }),
16119
16423
 
@@ -16688,23 +16992,20 @@ __webpack_require__.r(__webpack_exports__);
16688
16992
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
16689
16993
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
16690
16994
  /* harmony export */ });
16691
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
16692
- /* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9824);
16693
-
16995
+ /* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9824);
16694
16996
 
16695
- const YamlAnchor = stampit__WEBPACK_IMPORTED_MODULE_0__(_Node_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], {
16696
- statics: {
16697
- type: 'anchor'
16698
- },
16699
- props: {
16700
- name: null
16701
- },
16702
- init({
16703
- name = null
16704
- } = {}) {
16997
+ class YamlAnchor extends _Node_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
16998
+ static type = 'anchor';
16999
+ constructor({
17000
+ name,
17001
+ ...rest
17002
+ }) {
17003
+ super({
17004
+ ...rest
17005
+ });
16705
17006
  this.name = name;
16706
17007
  }
16707
- });
17008
+ }
16708
17009
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (YamlAnchor);
16709
17010
 
16710
17011
  /***/ }),
@@ -16717,11 +17018,9 @@ __webpack_require__.r(__webpack_exports__);
16717
17018
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
16718
17019
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
16719
17020
  /* harmony export */ });
16720
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
16721
- /* harmony import */ var _YamlNode_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(96815);
17021
+ /* harmony import */ var _YamlNode_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(96815);
16722
17022
 
16723
-
16724
- const YamlCollection = stampit__WEBPACK_IMPORTED_MODULE_0__(_YamlNode_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], {});
17023
+ class YamlCollection extends _YamlNode_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {}
16725
17024
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (YamlCollection);
16726
17025
 
16727
17026
  /***/ }),
@@ -16734,23 +17033,20 @@ __webpack_require__.r(__webpack_exports__);
16734
17033
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
16735
17034
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
16736
17035
  /* harmony export */ });
16737
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
16738
- /* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9824);
16739
-
17036
+ /* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9824);
16740
17037
 
16741
- const YamlComment = stampit__WEBPACK_IMPORTED_MODULE_0__(_Node_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], {
16742
- statics: {
16743
- type: 'comment'
16744
- },
16745
- props: {
16746
- content: null
16747
- },
16748
- init({
16749
- content = null
16750
- } = {}) {
17038
+ class YamlComment extends _Node_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
17039
+ static type = 'comment';
17040
+ constructor({
17041
+ content,
17042
+ ...rest
17043
+ }) {
17044
+ super({
17045
+ ...rest
17046
+ });
16751
17047
  this.content = content;
16752
17048
  }
16753
- });
17049
+ }
16754
17050
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (YamlComment);
16755
17051
 
16756
17052
  /***/ }),
@@ -16763,32 +17059,28 @@ __webpack_require__.r(__webpack_exports__);
16763
17059
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
16764
17060
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
16765
17061
  /* harmony export */ });
16766
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
16767
- /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(89627);
16768
- /* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9824);
17062
+ /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(89627);
17063
+ /* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9824);
16769
17064
 
16770
17065
 
16771
-
16772
- const YamlDirective = stampit__WEBPACK_IMPORTED_MODULE_0__(_Node_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], {
16773
- statics: {
16774
- type: 'directive'
16775
- },
16776
- props: {
16777
- name: null,
16778
- parameters: null
16779
- },
16780
- init({
16781
- name = null,
16782
- parameters = {}
16783
- } = {}) {
17066
+ class YamlDirective extends _Node_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
17067
+ static type = 'directive';
17068
+ constructor({
17069
+ name,
17070
+ parameters,
17071
+ ...rest
17072
+ }) {
17073
+ super({
17074
+ ...rest
17075
+ });
16784
17076
  this.name = name;
16785
- this.parameters = (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])({
16786
- version: null,
16787
- handle: null,
16788
- prefix: null
17077
+ this.parameters = (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])({
17078
+ version: undefined,
17079
+ handle: undefined,
17080
+ prefix: undefined
16789
17081
  }, parameters);
16790
17082
  }
16791
- });
17083
+ }
16792
17084
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (YamlDirective);
16793
17085
 
16794
17086
  /***/ }),
@@ -16801,15 +17093,11 @@ __webpack_require__.r(__webpack_exports__);
16801
17093
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
16802
17094
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
16803
17095
  /* harmony export */ });
16804
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
16805
- /* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9824);
16806
-
17096
+ /* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9824);
16807
17097
 
16808
- const YamlDocument = stampit__WEBPACK_IMPORTED_MODULE_0__(_Node_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], {
16809
- statics: {
16810
- type: 'document'
16811
- }
16812
- });
17098
+ class YamlDocument extends _Node_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
17099
+ static type = 'document';
17100
+ }
16813
17101
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (YamlDocument);
16814
17102
 
16815
17103
  /***/ }),
@@ -16822,41 +17110,40 @@ __webpack_require__.r(__webpack_exports__);
16822
17110
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
16823
17111
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
16824
17112
  /* harmony export */ });
16825
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
16826
- /* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9824);
16827
- /* harmony import */ var _YamlStyle_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4314);
16828
- /* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23320);
16829
-
17113
+ /* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9824);
17114
+ /* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23320);
16830
17115
 
16831
17116
 
16832
-
16833
- const YamlKeyValuePair = stampit__WEBPACK_IMPORTED_MODULE_0__(_Node_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _YamlStyle_mjs__WEBPACK_IMPORTED_MODULE_2__["default"], {
16834
- statics: {
16835
- type: 'keyValuePair'
17117
+ class YamlKeyValuePair extends _Node_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
17118
+ static type = 'keyValuePair';
17119
+ constructor({
17120
+ styleGroup,
17121
+ ...rest
17122
+ }) {
17123
+ super({
17124
+ ...rest
17125
+ });
17126
+ this.styleGroup = styleGroup;
17127
+ }
17128
+ }
17129
+ Object.defineProperties(YamlKeyValuePair.prototype, {
17130
+ key: {
17131
+ get() {
17132
+ return this.children.filter(node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isScalar)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isMapping)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isSequence)(node))[0];
17133
+ },
17134
+ enumerable: true
16836
17135
  },
16837
- propertyDescriptors: {
16838
- key: {
16839
- get() {
16840
- // @ts-ignore
16841
- return this.children.filter(node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_3__.isScalar)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_3__.isMapping)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_3__.isSequence)(node))[0];
16842
- },
16843
- enumerable: true
17136
+ value: {
17137
+ get() {
17138
+ const {
17139
+ key,
17140
+ children
17141
+ } = this;
17142
+ const excludeKeyPredicate = node => node !== key;
17143
+ const valuePredicate = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isScalar)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isMapping)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isSequence)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isAlias)(node);
17144
+ return children.filter(node => excludeKeyPredicate(node) && valuePredicate(node))[0];
16844
17145
  },
16845
- value: {
16846
- get() {
16847
- // @ts-ignore
16848
- const {
16849
- key,
16850
- children
16851
- } = this;
16852
- const excludeKeyPredicate = node => node !== key;
16853
- const valuePredicate = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_3__.isScalar)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_3__.isMapping)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_3__.isSequence)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_3__.isAlias)(node);
16854
-
16855
- // @ts-ignore
16856
- return children.filter(node => excludeKeyPredicate(node) && valuePredicate(node))[0];
16857
- },
16858
- enumerable: true
16859
- }
17146
+ enumerable: true
16860
17147
  }
16861
17148
  });
16862
17149
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (YamlKeyValuePair);
@@ -16871,25 +17158,18 @@ __webpack_require__.r(__webpack_exports__);
16871
17158
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
16872
17159
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
16873
17160
  /* harmony export */ });
16874
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
16875
- /* harmony import */ var _YamlCollection_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(64509);
16876
- /* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23320);
17161
+ /* harmony import */ var _YamlCollection_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(64509);
17162
+ /* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23320);
16877
17163
 
16878
17164
 
16879
-
16880
- const YamlMapping = stampit__WEBPACK_IMPORTED_MODULE_0__(_YamlCollection_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], {
16881
- statics: {
16882
- type: 'mapping'
17165
+ class YamlMapping extends _YamlCollection_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
17166
+ static type = 'mapping';
17167
+ }
17168
+ Object.defineProperty(YamlMapping.prototype, 'content', {
17169
+ get() {
17170
+ return Array.isArray(this.children) ? this.children.filter(_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isKeyValuePair) : [];
16883
17171
  },
16884
- propertyDescriptors: {
16885
- content: {
16886
- get() {
16887
- // @ts-ignore
16888
- return Array.isArray(this.children) ? this.children.filter(_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isKeyValuePair) : [];
16889
- },
16890
- enumerable: true
16891
- }
16892
- }
17172
+ enumerable: true
16893
17173
  });
16894
17174
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (YamlMapping);
16895
17175
 
@@ -16903,29 +17183,25 @@ __webpack_require__.r(__webpack_exports__);
16903
17183
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
16904
17184
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
16905
17185
  /* harmony export */ });
16906
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
16907
- /* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9824);
17186
+ /* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9824);
16908
17187
 
16909
-
16910
- const YamlNode = stampit__WEBPACK_IMPORTED_MODULE_0__(_Node_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], {
16911
- props: {
16912
- anchor: null,
16913
- tag: null,
16914
- style: null,
16915
- styleGroup: null
16916
- },
16917
- init({
16918
- anchor = null,
16919
- tag = null,
16920
- style = null,
16921
- styleGroup = null
16922
- } = {}) {
17188
+ class YamlNode extends _Node_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
17189
+ constructor({
17190
+ anchor,
17191
+ tag,
17192
+ style,
17193
+ styleGroup,
17194
+ ...rest
17195
+ }) {
17196
+ super({
17197
+ ...rest
17198
+ });
16923
17199
  this.anchor = anchor;
16924
17200
  this.tag = tag;
16925
17201
  this.style = style;
16926
17202
  this.styleGroup = styleGroup;
16927
17203
  }
16928
- });
17204
+ }
16929
17205
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (YamlNode);
16930
17206
 
16931
17207
  /***/ }),
@@ -16938,23 +17214,20 @@ __webpack_require__.r(__webpack_exports__);
16938
17214
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
16939
17215
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
16940
17216
  /* harmony export */ });
16941
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
16942
- /* harmony import */ var _YamlNode_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(96815);
17217
+ /* harmony import */ var _YamlNode_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(96815);
16943
17218
 
16944
-
16945
- const YamlScalar = stampit__WEBPACK_IMPORTED_MODULE_0__(_YamlNode_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], {
16946
- statics: {
16947
- type: 'scalar'
16948
- },
16949
- props: {
16950
- content: ''
16951
- },
16952
- init({
16953
- content
16954
- } = {}) {
17219
+ class YamlScalar extends _YamlNode_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
17220
+ static type = 'scalar';
17221
+ constructor({
17222
+ content,
17223
+ ...rest
17224
+ }) {
17225
+ super({
17226
+ ...rest
17227
+ });
16955
17228
  this.content = content;
16956
17229
  }
16957
- });
17230
+ }
16958
17231
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (YamlScalar);
16959
17232
 
16960
17233
  /***/ }),
@@ -16967,28 +17240,21 @@ __webpack_require__.r(__webpack_exports__);
16967
17240
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
16968
17241
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
16969
17242
  /* harmony export */ });
16970
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
16971
- /* harmony import */ var _YamlCollection_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(64509);
16972
- /* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23320);
16973
-
17243
+ /* harmony import */ var _YamlCollection_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(64509);
17244
+ /* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23320);
16974
17245
 
16975
17246
 
16976
- const YamlSequence = stampit__WEBPACK_IMPORTED_MODULE_0__(_YamlCollection_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], {
16977
- statics: {
16978
- type: 'sequence'
17247
+ class YamlSequence extends _YamlCollection_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
17248
+ static type = 'sequence';
17249
+ }
17250
+ Object.defineProperty(YamlSequence.prototype, 'content', {
17251
+ get() {
17252
+ const {
17253
+ children
17254
+ } = this;
17255
+ return Array.isArray(children) ? children.filter(node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isSequence)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isMapping)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isScalar)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isAlias)(node)) : [];
16979
17256
  },
16980
- propertyDescriptors: {
16981
- content: {
16982
- get() {
16983
- // @ts-ignore
16984
- const {
16985
- children
16986
- } = this;
16987
- return Array.isArray(children) ? children.filter(node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isSequence)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isMapping)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isScalar)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isAlias)(node)) : [];
16988
- },
16989
- enumerable: true
16990
- }
16991
- }
17257
+ enumerable: true
16992
17258
  });
16993
17259
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (YamlSequence);
16994
17260
 
@@ -17002,27 +17268,18 @@ __webpack_require__.r(__webpack_exports__);
17002
17268
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
17003
17269
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
17004
17270
  /* harmony export */ });
17005
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
17006
- /* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9824);
17007
- /* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(23320);
17008
-
17271
+ /* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9824);
17272
+ /* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23320);
17009
17273
 
17010
17274
 
17011
- const YamlStream = stampit__WEBPACK_IMPORTED_MODULE_0__(_Node_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], {
17012
- statics: {
17013
- type: 'stream'
17275
+ class YamlStream extends _Node_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
17276
+ static type = 'stream';
17277
+ }
17278
+ Object.defineProperty(YamlStream.prototype, 'content', {
17279
+ get() {
17280
+ return Array.isArray(this.children) ? this.children.filter(node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isDocument)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_1__.isComment)(node)) : [];
17014
17281
  },
17015
- propertyDescriptors: {
17016
- content: {
17017
- get() {
17018
- // @ts-ignore
17019
- return Array.isArray(this.children) ?
17020
- // @ts-ignore
17021
- this.children.filter(node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isDocument)(node) || (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_2__.isComment)(node)) : [];
17022
- },
17023
- enumerable: true
17024
- }
17025
- }
17282
+ enumerable: true
17026
17283
  });
17027
17284
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (YamlStream);
17028
17285
 
@@ -17035,11 +17292,8 @@ const YamlStream = stampit__WEBPACK_IMPORTED_MODULE_0__(_Node_mjs__WEBPACK_IMPOR
17035
17292
  __webpack_require__.r(__webpack_exports__);
17036
17293
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
17037
17294
  /* harmony export */ YamlStyle: () => (/* binding */ YamlStyle),
17038
- /* harmony export */ YamlStyleGroup: () => (/* binding */ YamlStyleGroup),
17039
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
17295
+ /* harmony export */ YamlStyleGroup: () => (/* binding */ YamlStyleGroup)
17040
17296
  /* harmony export */ });
17041
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
17042
-
17043
17297
  let YamlStyle = /*#__PURE__*/function (YamlStyle) {
17044
17298
  YamlStyle["Plain"] = "Plain";
17045
17299
  YamlStyle["SingleQuoted"] = "SingleQuoted";
@@ -17057,13 +17311,6 @@ let YamlStyleGroup = /*#__PURE__*/function (YamlStyleGroup) {
17057
17311
  YamlStyleGroup["Block"] = "Block";
17058
17312
  return YamlStyleGroup;
17059
17313
  }({});
17060
- const YamlStyleModel = stampit__WEBPACK_IMPORTED_MODULE_0__({
17061
- props: {
17062
- styleGroup: null,
17063
- style: null
17064
- }
17065
- });
17066
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (YamlStyleModel);
17067
17314
 
17068
17315
  /***/ }),
17069
17316
 
@@ -17076,9 +17323,7 @@ __webpack_require__.r(__webpack_exports__);
17076
17323
  /* harmony export */ YamlNodeKind: () => (/* binding */ YamlNodeKind),
17077
17324
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
17078
17325
  /* harmony export */ });
17079
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
17080
- /* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9824);
17081
-
17326
+ /* harmony import */ var _Node_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9824);
17082
17327
 
17083
17328
  let YamlNodeKind = /*#__PURE__*/function (YamlNodeKind) {
17084
17329
  YamlNodeKind["Scalar"] = "Scalar";
@@ -17086,22 +17331,20 @@ let YamlNodeKind = /*#__PURE__*/function (YamlNodeKind) {
17086
17331
  YamlNodeKind["Mapping"] = "Mapping";
17087
17332
  return YamlNodeKind;
17088
17333
  }({});
17089
- const YamlTag = stampit__WEBPACK_IMPORTED_MODULE_0__(_Node_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], {
17090
- statics: {
17091
- type: 'tag'
17092
- },
17093
- props: {
17094
- explicitName: '',
17095
- kind: null
17096
- },
17097
- init({
17334
+ class YamlTag extends _Node_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
17335
+ static type = 'tag';
17336
+ constructor({
17098
17337
  explicitName,
17099
- kind
17100
- } = {}) {
17338
+ kind,
17339
+ ...rest
17340
+ }) {
17341
+ super({
17342
+ ...rest
17343
+ });
17101
17344
  this.explicitName = explicitName;
17102
17345
  this.kind = kind;
17103
17346
  }
17104
- });
17347
+ }
17105
17348
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (YamlTag);
17106
17349
 
17107
17350
  /***/ }),
@@ -17125,16 +17368,16 @@ __webpack_require__.r(__webpack_exports__);
17125
17368
  /* harmony export */ });
17126
17369
  /* harmony import */ var _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(62771);
17127
17370
 
17128
- const isStream = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType.bind(undefined, 'stream');
17129
- const isDocument = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType.bind(undefined, 'document');
17130
- const isMapping = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType.bind(undefined, 'mapping');
17131
- const isSequence = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType.bind(undefined, 'sequence');
17132
- const isKeyValuePair = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType.bind(undefined, 'keyValuePair');
17133
- const isTag = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType.bind(undefined, 'tag');
17134
- const isScalar = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType.bind(undefined, 'scalar');
17135
- const isAlias = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType.bind(undefined, 'alias');
17136
- const isDirective = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType.bind(undefined, 'directive');
17137
- const isComment = _predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType.bind(undefined, 'comment');
17371
+ const isStream = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('stream', node);
17372
+ const isDocument = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('document', node);
17373
+ const isMapping = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('mapping', node);
17374
+ const isSequence = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('sequence', node);
17375
+ const isKeyValuePair = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('keyValuePair', node);
17376
+ const isTag = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('tag', node);
17377
+ const isScalar = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('scalar', node);
17378
+ const isAlias = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('alias', node);
17379
+ const isDirective = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('directive', node);
17380
+ const isComment = node => (0,_predicates_mjs__WEBPACK_IMPORTED_MODULE_0__.isNodeType)('comment', node);
17138
17381
 
17139
17382
  /***/ }),
17140
17383
 
@@ -17146,46 +17389,37 @@ __webpack_require__.r(__webpack_exports__);
17146
17389
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
17147
17390
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
17148
17391
  /* harmony export */ });
17149
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
17150
- /* harmony import */ var _canonical_format_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(81001);
17151
- /* harmony import */ var _nodes_YamlStyle_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4314);
17152
- /* harmony import */ var _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(37837);
17153
-
17392
+ /* harmony import */ var _canonical_format_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(81001);
17393
+ /* harmony import */ var _nodes_YamlStyle_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4314);
17394
+ /* harmony import */ var _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(37837);
17154
17395
 
17155
17396
 
17156
17397
 
17157
- const ScalarTag = stampit__WEBPACK_IMPORTED_MODULE_0__({
17158
- methods: {
17159
- test(node) {
17160
- return node.tag.kind === _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_1__.YamlNodeKind.Scalar && typeof node.content === 'string';
17161
- },
17162
- canonicalFormat(node) {
17163
- let canonicalForm = node.content;
17164
- const nodeClone = node.clone();
17165
- if (node.style === _nodes_YamlStyle_mjs__WEBPACK_IMPORTED_MODULE_2__.YamlStyle.Plain) {
17166
- // @ts-ignore
17167
- canonicalForm = (0,_canonical_format_mjs__WEBPACK_IMPORTED_MODULE_3__.formatFlowPlain)(node.content);
17168
- } else if (node.style === _nodes_YamlStyle_mjs__WEBPACK_IMPORTED_MODULE_2__.YamlStyle.SingleQuoted) {
17169
- // @ts-ignore
17170
- canonicalForm = (0,_canonical_format_mjs__WEBPACK_IMPORTED_MODULE_3__.formatFlowSingleQuoted)(node.content);
17171
- } else if (node.style === _nodes_YamlStyle_mjs__WEBPACK_IMPORTED_MODULE_2__.YamlStyle.DoubleQuoted) {
17172
- // @ts-ignore
17173
- canonicalForm = (0,_canonical_format_mjs__WEBPACK_IMPORTED_MODULE_3__.formatFlowDoubleQuoted)(node.content);
17174
- } else if (node.style === _nodes_YamlStyle_mjs__WEBPACK_IMPORTED_MODULE_2__.YamlStyle.Literal) {
17175
- // @ts-ignore
17176
- canonicalForm = (0,_canonical_format_mjs__WEBPACK_IMPORTED_MODULE_3__.formatBlockLiteral)(node.content);
17177
- } else if (node.style === _nodes_YamlStyle_mjs__WEBPACK_IMPORTED_MODULE_2__.YamlStyle.Folded) {
17178
- // @ts-ignore
17179
- canonicalForm = (0,_canonical_format_mjs__WEBPACK_IMPORTED_MODULE_3__.formatBlockFolded)(node.content);
17180
- }
17181
- nodeClone.content = canonicalForm;
17182
- return nodeClone;
17183
- },
17184
- resolve(node) {
17185
- return node;
17398
+ class ScalarTag {
17399
+ static test(node) {
17400
+ return node.tag.kind === _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_0__.YamlNodeKind.Scalar && typeof node.content === 'string';
17401
+ }
17402
+ static canonicalFormat(node) {
17403
+ let canonicalForm = node.content;
17404
+ const nodeClone = node.clone();
17405
+ if (node.style === _nodes_YamlStyle_mjs__WEBPACK_IMPORTED_MODULE_1__.YamlStyle.Plain) {
17406
+ canonicalForm = (0,_canonical_format_mjs__WEBPACK_IMPORTED_MODULE_2__.formatFlowPlain)(node.content);
17407
+ } else if (node.style === _nodes_YamlStyle_mjs__WEBPACK_IMPORTED_MODULE_1__.YamlStyle.SingleQuoted) {
17408
+ canonicalForm = (0,_canonical_format_mjs__WEBPACK_IMPORTED_MODULE_2__.formatFlowSingleQuoted)(node.content);
17409
+ } else if (node.style === _nodes_YamlStyle_mjs__WEBPACK_IMPORTED_MODULE_1__.YamlStyle.DoubleQuoted) {
17410
+ canonicalForm = (0,_canonical_format_mjs__WEBPACK_IMPORTED_MODULE_2__.formatFlowDoubleQuoted)(node.content);
17411
+ } else if (node.style === _nodes_YamlStyle_mjs__WEBPACK_IMPORTED_MODULE_1__.YamlStyle.Literal) {
17412
+ canonicalForm = (0,_canonical_format_mjs__WEBPACK_IMPORTED_MODULE_2__.formatBlockLiteral)(node.content);
17413
+ } else if (node.style === _nodes_YamlStyle_mjs__WEBPACK_IMPORTED_MODULE_1__.YamlStyle.Folded) {
17414
+ canonicalForm = (0,_canonical_format_mjs__WEBPACK_IMPORTED_MODULE_2__.formatBlockFolded)(node.content);
17186
17415
  }
17416
+ nodeClone.content = canonicalForm;
17417
+ return nodeClone;
17187
17418
  }
17188
- });
17419
+ static resolve(node) {
17420
+ return node;
17421
+ }
17422
+ }
17189
17423
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ScalarTag);
17190
17424
 
17191
17425
  /***/ }),
@@ -17198,15 +17432,24 @@ __webpack_require__.r(__webpack_exports__);
17198
17432
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
17199
17433
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
17200
17434
  /* harmony export */ });
17201
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
17202
- /* harmony import */ var _ScalarTag_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4449);
17203
-
17435
+ /* eslint-disable class-methods-use-this */
17436
+ class Tag {
17437
+ static uri = '';
17438
+ tag = '';
17439
+ constructor() {
17440
+ this.tag = this.constructor.uri;
17441
+ }
17204
17442
 
17205
- const Tag = stampit__WEBPACK_IMPORTED_MODULE_0__(_ScalarTag_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], {
17206
- props: {
17207
- tag: ''
17443
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
17444
+ test(node) {
17445
+ return true;
17208
17446
  }
17209
- });
17447
+ resolve(node) {
17448
+ return node;
17449
+ }
17450
+ }
17451
+ /* eslint-enable class-methods-use-this */
17452
+
17210
17453
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Tag);
17211
17454
 
17212
17455
  /***/ }),
@@ -17376,31 +17619,19 @@ __webpack_require__.r(__webpack_exports__);
17376
17619
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
17377
17620
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
17378
17621
  /* harmony export */ });
17379
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
17380
- /* harmony import */ var _Tag_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9664);
17381
- /* harmony import */ var _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(37837);
17382
-
17622
+ /* harmony import */ var _Tag_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9664);
17623
+ /* harmony import */ var _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(37837);
17383
17624
 
17384
17625
 
17385
- const GenericMapping = stampit__WEBPACK_IMPORTED_MODULE_0__(_Tag_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], {
17386
- statics: {
17387
- uri: 'tag:yaml.org,2002:map'
17388
- },
17389
- init(args, {
17390
- stamp
17391
- }) {
17392
- this.tag = stamp.uri;
17393
- },
17394
- methods: {
17395
- test(node) {
17396
- // @ts-ignore
17397
- return node.tag.kind === _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_2__.YamlNodeKind.Mapping;
17398
- },
17399
- resolve(node) {
17400
- return node;
17401
- }
17626
+ /* eslint-disable class-methods-use-this */
17627
+ class GenericMapping extends _Tag_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
17628
+ static uri = 'tag:yaml.org,2002:map';
17629
+ test(node) {
17630
+ return node.tag.kind === _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_1__.YamlNodeKind.Mapping;
17402
17631
  }
17403
- });
17632
+ }
17633
+ /* eslint-enable class-methods-use-this */
17634
+
17404
17635
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (GenericMapping);
17405
17636
 
17406
17637
  /***/ }),
@@ -17413,31 +17644,19 @@ __webpack_require__.r(__webpack_exports__);
17413
17644
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
17414
17645
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
17415
17646
  /* harmony export */ });
17416
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
17417
- /* harmony import */ var _Tag_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9664);
17418
- /* harmony import */ var _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(37837);
17419
-
17647
+ /* harmony import */ var _Tag_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9664);
17648
+ /* harmony import */ var _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(37837);
17420
17649
 
17421
17650
 
17422
- const GenericSequence = stampit__WEBPACK_IMPORTED_MODULE_0__(_Tag_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], {
17423
- statics: {
17424
- uri: 'tag:yaml.org,2002:seq'
17425
- },
17426
- init(args, {
17427
- stamp
17428
- }) {
17429
- this.tag = stamp.uri;
17430
- },
17431
- methods: {
17432
- test(node) {
17433
- // @ts-ignore
17434
- return node.tag.kind === _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_2__.YamlNodeKind.Sequence;
17435
- },
17436
- resolve(node) {
17437
- return node;
17438
- }
17651
+ /* eslint-disable class-methods-use-this */
17652
+ class GenericSequence extends _Tag_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
17653
+ static uri = 'tag:yaml.org,2002:seq';
17654
+ test(node) {
17655
+ return node.tag.kind === _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_1__.YamlNodeKind.Sequence;
17439
17656
  }
17440
- });
17657
+ }
17658
+ /* eslint-enable class-methods-use-this */
17659
+
17441
17660
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (GenericSequence);
17442
17661
 
17443
17662
  /***/ }),
@@ -17450,25 +17669,11 @@ __webpack_require__.r(__webpack_exports__);
17450
17669
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
17451
17670
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
17452
17671
  /* harmony export */ });
17453
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
17454
- /* harmony import */ var _Tag_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9664);
17672
+ /* harmony import */ var _Tag_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9664);
17455
17673
 
17456
-
17457
- const GenericString = stampit__WEBPACK_IMPORTED_MODULE_0__(_Tag_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], {
17458
- statics: {
17459
- uri: 'tag:yaml.org,2002:str'
17460
- },
17461
- init(args, {
17462
- stamp
17463
- }) {
17464
- this.tag = stamp.uri;
17465
- },
17466
- methods: {
17467
- resolve(node) {
17468
- return node;
17469
- }
17470
- }
17471
- });
17674
+ class GenericString extends _Tag_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
17675
+ static uri = 'tag:yaml.org,2002:str';
17676
+ }
17472
17677
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (GenericString);
17473
17678
 
17474
17679
  /***/ }),
@@ -17481,15 +17686,13 @@ __webpack_require__.r(__webpack_exports__);
17481
17686
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
17482
17687
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
17483
17688
  /* harmony export */ });
17484
- /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(20302);
17485
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
17486
- /* harmony import */ var _errors_YamlTagError_mjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(77469);
17487
- /* harmony import */ var _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(37837);
17488
- /* harmony import */ var _GenericMapping_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39565);
17489
- /* harmony import */ var _GenericSequence_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(92844);
17490
- /* harmony import */ var _GenericString_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(58314);
17491
- /* harmony import */ var _ScalarTag_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(4449);
17492
-
17689
+ /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(20302);
17690
+ /* harmony import */ var _errors_YamlTagError_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77469);
17691
+ /* harmony import */ var _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(37837);
17692
+ /* harmony import */ var _GenericMapping_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(39565);
17693
+ /* harmony import */ var _GenericSequence_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(92844);
17694
+ /* harmony import */ var _GenericString_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(58314);
17695
+ /* harmony import */ var _ScalarTag_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4449);
17493
17696
 
17494
17697
 
17495
17698
 
@@ -17497,102 +17700,97 @@ __webpack_require__.r(__webpack_exports__);
17497
17700
 
17498
17701
 
17499
17702
 
17500
- const FailsafeSchema = stampit__WEBPACK_IMPORTED_MODULE_0__({
17501
- props: {
17502
- tags: [],
17503
- tagDirectives: []
17504
- },
17505
- init() {
17703
+ class FailsafeSchema {
17704
+ constructor() {
17506
17705
  this.tags = [];
17507
17706
  this.tagDirectives = [];
17508
- this.registerTag((0,_GenericMapping_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])());
17509
- this.registerTag((0,_GenericSequence_mjs__WEBPACK_IMPORTED_MODULE_2__["default"])());
17510
- this.registerTag((0,_GenericString_mjs__WEBPACK_IMPORTED_MODULE_3__["default"])());
17511
- },
17512
- methods: {
17513
- toSpecificTagName(node) {
17514
- let specificTagName = node.tag.explicitName;
17515
- if (node.tag.explicitName === '!') {
17516
- // non-specific tag; we assume tag by kind
17517
- if (node.tag.kind === _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_4__.YamlNodeKind.Scalar) {
17518
- // @ts-ignore
17519
- specificTagName = _GenericString_mjs__WEBPACK_IMPORTED_MODULE_3__["default"].uri;
17520
- } else if (node.tag.kind === _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_4__.YamlNodeKind.Sequence) {
17521
- // @ts-ignore
17522
- specificTagName = _GenericSequence_mjs__WEBPACK_IMPORTED_MODULE_2__["default"].uri;
17523
- } else if (node.tag.kind === _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_4__.YamlNodeKind.Mapping) {
17524
- // @ts-ignore
17525
- specificTagName = _GenericMapping_mjs__WEBPACK_IMPORTED_MODULE_1__["default"].uri;
17526
- }
17527
- } else if (node.tag.explicitName.startsWith('!<')) {
17528
- // verbatim form
17529
- specificTagName = node.tag.explicitName.replace(/^!</, '').replace(/>$/, '');
17530
- } else if (node.tag.explicitName.startsWith('!!')) {
17531
- // shorthand notation
17532
- specificTagName = `tag:yaml.org,2002:${node.tag.explicitName.replace(/^!!/, '')}`;
17533
- }
17534
- return specificTagName;
17535
- },
17536
- registerTagDirective(tagDirective) {
17537
- this.tagDirectives.push({
17538
- handle: tagDirective.parameters.handle,
17539
- prefix: tagDirective.parameters.prefix
17540
- });
17541
- },
17542
- registerTag(tag, beginning = false) {
17543
- if (beginning) {
17544
- this.tags.unshift(tag);
17545
- } else {
17546
- this.tags.push(tag);
17707
+ this.registerTag(new _GenericMapping_mjs__WEBPACK_IMPORTED_MODULE_0__["default"]());
17708
+ this.registerTag(new _GenericSequence_mjs__WEBPACK_IMPORTED_MODULE_1__["default"]());
17709
+ this.registerTag(new _GenericString_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]());
17710
+ }
17711
+
17712
+ // eslint-disable-next-line class-methods-use-this
17713
+ toSpecificTagName(node) {
17714
+ let specificTagName = node.tag.explicitName;
17715
+ if (node.tag.explicitName === '!') {
17716
+ // non-specific tag; we assume tag by kind
17717
+ if (node.tag.kind === _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_3__.YamlNodeKind.Scalar) {
17718
+ specificTagName = _GenericString_mjs__WEBPACK_IMPORTED_MODULE_2__["default"].uri;
17719
+ } else if (node.tag.kind === _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_3__.YamlNodeKind.Sequence) {
17720
+ specificTagName = _GenericSequence_mjs__WEBPACK_IMPORTED_MODULE_1__["default"].uri;
17721
+ } else if (node.tag.kind === _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_3__.YamlNodeKind.Mapping) {
17722
+ specificTagName = _GenericMapping_mjs__WEBPACK_IMPORTED_MODULE_0__["default"].uri;
17547
17723
  }
17548
- return this;
17549
- },
17550
- overrideTag(tag) {
17551
- this.tags = this.tags.filter(itag => itag.tag === tag.tag);
17724
+ } else if (node.tag.explicitName.startsWith('!<')) {
17725
+ // verbatim form
17726
+ specificTagName = node.tag.explicitName.replace(/^!</, '').replace(/>$/, '');
17727
+ } else if (node.tag.explicitName.startsWith('!!')) {
17728
+ // shorthand notation
17729
+ specificTagName = `tag:yaml.org,2002:${node.tag.explicitName.replace(/^!!/, '')}`;
17730
+ }
17731
+ return specificTagName;
17732
+ }
17733
+ registerTagDirective(tagDirective) {
17734
+ this.tagDirectives.push({
17735
+ // @ts-ignore
17736
+ handle: tagDirective.parameters.handle,
17737
+ // @ts-ignore
17738
+ prefix: tagDirective.parameters.prefix
17739
+ });
17740
+ }
17741
+ registerTag(tag, beginning = false) {
17742
+ if (beginning) {
17743
+ this.tags.unshift(tag);
17744
+ } else {
17552
17745
  this.tags.push(tag);
17553
- return this;
17554
- },
17555
- resolve(node) {
17556
- const specificTagName = this.toSpecificTagName(node);
17746
+ }
17747
+ return this;
17748
+ }
17749
+ overrideTag(tag) {
17750
+ this.tags = this.tags.filter(itag => itag.tag === tag.tag);
17751
+ this.tags.push(tag);
17752
+ return this;
17753
+ }
17754
+ resolve(node) {
17755
+ const specificTagName = this.toSpecificTagName(node);
17557
17756
 
17558
- // leave this node unresolved
17559
- if (specificTagName === '?') {
17560
- return node;
17561
- }
17757
+ // leave this node unresolved
17758
+ if (specificTagName === '?') {
17759
+ return node;
17760
+ }
17562
17761
 
17563
- // turn scalar nodes into canonical format before resolving
17564
- let canonicalNode = node;
17565
- if (node.tag.kind === _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_4__.YamlNodeKind.Scalar) {
17566
- canonicalNode = (0,_ScalarTag_mjs__WEBPACK_IMPORTED_MODULE_5__["default"])().canonicalFormat(node);
17567
- }
17568
- const tag = this.tags.find(itag => (itag === null || itag === void 0 ? void 0 : itag.tag) === specificTagName);
17569
-
17570
- // mechanism for resolving node (tag implementation) not found
17571
- if (typeof tag === 'undefined') {
17572
- throw new _errors_YamlTagError_mjs__WEBPACK_IMPORTED_MODULE_6__["default"](`Tag "${specificTagName}" was not recognized.`, {
17573
- specificTagName,
17574
- explicitTagName: node.tag.explicitName,
17575
- tagKind: node.tag.kind,
17576
- tagPosition: (0,ramda__WEBPACK_IMPORTED_MODULE_7__["default"])(node.tag.position),
17577
- node: node.clone()
17578
- });
17579
- }
17762
+ // turn scalar nodes into canonical format before resolving
17763
+ let canonicalNode = node;
17764
+ if (_ScalarTag_mjs__WEBPACK_IMPORTED_MODULE_4__["default"].test(node)) {
17765
+ canonicalNode = _ScalarTag_mjs__WEBPACK_IMPORTED_MODULE_4__["default"].canonicalFormat(node);
17766
+ }
17767
+ const tag = this.tags.find(itag => (itag === null || itag === void 0 ? void 0 : itag.tag) === specificTagName);
17580
17768
 
17581
- // node content is not compatible with resolving mechanism (tag implementation)
17582
- if (!tag.test(canonicalNode)) {
17583
- throw new _errors_YamlTagError_mjs__WEBPACK_IMPORTED_MODULE_6__["default"](`Node couldn't be resolved against the tag "${specificTagName}"`, {
17584
- specificTagName,
17585
- explicitTagName: node.tag.explicitName,
17586
- tagKind: node.tag.kind,
17587
- tagPosition: (0,ramda__WEBPACK_IMPORTED_MODULE_7__["default"])(node.tag.position),
17588
- nodeCanonicalContent: canonicalNode.content,
17589
- node: node.clone()
17590
- });
17591
- }
17592
- return tag.resolve(canonicalNode);
17769
+ // mechanism for resolving node (tag implementation) not found
17770
+ if (typeof tag === 'undefined') {
17771
+ throw new _errors_YamlTagError_mjs__WEBPACK_IMPORTED_MODULE_5__["default"](`Tag "${specificTagName}" was not recognized.`, {
17772
+ specificTagName,
17773
+ explicitTagName: node.tag.explicitName,
17774
+ tagKind: node.tag.kind,
17775
+ tagPosition: (0,ramda__WEBPACK_IMPORTED_MODULE_6__["default"])(node.tag.position),
17776
+ node: node.clone()
17777
+ });
17593
17778
  }
17779
+
17780
+ // node content is not compatible with resolving mechanism (tag implementation)
17781
+ if (!tag.test(canonicalNode)) {
17782
+ throw new _errors_YamlTagError_mjs__WEBPACK_IMPORTED_MODULE_5__["default"](`Node couldn't be resolved against the tag "${specificTagName}"`, {
17783
+ specificTagName,
17784
+ explicitTagName: node.tag.explicitName,
17785
+ tagKind: node.tag.kind,
17786
+ tagPosition: (0,ramda__WEBPACK_IMPORTED_MODULE_6__["default"])(node.tag.position),
17787
+ nodeCanonicalContent: canonicalNode.content,
17788
+ node: node.clone()
17789
+ });
17790
+ }
17791
+ return tag.resolve(canonicalNode);
17594
17792
  }
17595
- });
17793
+ }
17596
17794
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (FailsafeSchema);
17597
17795
 
17598
17796
  /***/ }),
@@ -17605,31 +17803,23 @@ __webpack_require__.r(__webpack_exports__);
17605
17803
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
17606
17804
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
17607
17805
  /* harmony export */ });
17608
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
17609
- /* harmony import */ var _Tag_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9664);
17610
-
17806
+ /* harmony import */ var _Tag_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9664);
17611
17807
 
17612
- const Boolean = stampit__WEBPACK_IMPORTED_MODULE_0__(_Tag_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], {
17613
- statics: {
17614
- uri: 'tag:yaml.org,2002:bool'
17615
- },
17616
- init(args, {
17617
- stamp
17618
- }) {
17619
- this.tag = stamp.uri;
17620
- },
17621
- methods: {
17622
- test(node) {
17623
- return /^(true|false)$/.test(node.content);
17624
- },
17625
- resolve(node) {
17626
- const content = node.content === 'true';
17627
- const nodeClone = node.clone();
17628
- nodeClone.content = content;
17629
- return nodeClone;
17630
- }
17808
+ /* eslint-disable class-methods-use-this */
17809
+ class Boolean extends _Tag_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
17810
+ static uri = 'tag:yaml.org,2002:bool';
17811
+ test(node) {
17812
+ return /^(true|false)$/.test(node.content);
17631
17813
  }
17632
- });
17814
+ resolve(node) {
17815
+ const content = node.content === 'true';
17816
+ const nodeClone = node.clone();
17817
+ nodeClone.content = content;
17818
+ return nodeClone;
17819
+ }
17820
+ }
17821
+ /* eslint-enable class-methods-use-this */
17822
+
17633
17823
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Boolean);
17634
17824
 
17635
17825
  /***/ }),
@@ -17642,31 +17832,23 @@ __webpack_require__.r(__webpack_exports__);
17642
17832
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
17643
17833
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
17644
17834
  /* harmony export */ });
17645
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
17646
- /* harmony import */ var _Tag_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9664);
17647
-
17835
+ /* harmony import */ var _Tag_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9664);
17648
17836
 
17649
- const FloatingPoint = stampit__WEBPACK_IMPORTED_MODULE_0__(_Tag_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], {
17650
- statics: {
17651
- uri: 'tag:yaml.org,2002:float'
17652
- },
17653
- init(args, {
17654
- stamp
17655
- }) {
17656
- this.tag = stamp.uri;
17657
- },
17658
- methods: {
17659
- test(node) {
17660
- return /^-?(0|[1-9][0-9]*)(\.[0-9]*)?([eE][-+]?[0-9]+)?$/.test(node.content);
17661
- },
17662
- resolve(node) {
17663
- const content = parseFloat(node.content);
17664
- const nodeClone = node.clone();
17665
- nodeClone.content = content;
17666
- return nodeClone;
17667
- }
17837
+ /* eslint-disable class-methods-use-this */
17838
+ class FloatingPoint extends _Tag_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
17839
+ static uri = 'tag:yaml.org,2002:float';
17840
+ test(node) {
17841
+ return /^-?(0|[1-9][0-9]*)(\.[0-9]*)?([eE][-+]?[0-9]+)?$/.test(node.content);
17668
17842
  }
17669
- });
17843
+ resolve(node) {
17844
+ const content = parseFloat(node.content);
17845
+ const nodeClone = node.clone();
17846
+ nodeClone.content = content;
17847
+ return nodeClone;
17848
+ }
17849
+ }
17850
+ /* eslint-enable class-methods-use-this */
17851
+
17670
17852
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (FloatingPoint);
17671
17853
 
17672
17854
  /***/ }),
@@ -17679,31 +17861,23 @@ __webpack_require__.r(__webpack_exports__);
17679
17861
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
17680
17862
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
17681
17863
  /* harmony export */ });
17682
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
17683
- /* harmony import */ var _Tag_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9664);
17684
-
17864
+ /* harmony import */ var _Tag_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9664);
17685
17865
 
17686
- const Integer = stampit__WEBPACK_IMPORTED_MODULE_0__(_Tag_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], {
17687
- statics: {
17688
- uri: 'tag:yaml.org,2002:int'
17689
- },
17690
- init(args, {
17691
- stamp
17692
- }) {
17693
- this.tag = stamp.uri;
17694
- },
17695
- methods: {
17696
- test(node) {
17697
- return /^-?(0|[1-9][0-9]*)$/.test(node.content);
17698
- },
17699
- resolve(node) {
17700
- const content = parseInt(node.content, 10);
17701
- const nodeClone = node.clone();
17702
- nodeClone.content = content;
17703
- return nodeClone;
17704
- }
17866
+ /* eslint-disable class-methods-use-this */
17867
+ class Integer extends _Tag_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
17868
+ static uri = 'tag:yaml.org,2002:int';
17869
+ test(node) {
17870
+ return /^-?(0|[1-9][0-9]*)$/.test(node.content);
17705
17871
  }
17706
- });
17872
+ resolve(node) {
17873
+ const content = parseInt(node.content, 10);
17874
+ const nodeClone = node.clone();
17875
+ nodeClone.content = content;
17876
+ return nodeClone;
17877
+ }
17878
+ }
17879
+ /* eslint-enable class-methods-use-this */
17880
+
17707
17881
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Integer);
17708
17882
 
17709
17883
  /***/ }),
@@ -17716,30 +17890,22 @@ __webpack_require__.r(__webpack_exports__);
17716
17890
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
17717
17891
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
17718
17892
  /* harmony export */ });
17719
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
17720
- /* harmony import */ var _Tag_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9664);
17721
-
17893
+ /* harmony import */ var _Tag_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9664);
17722
17894
 
17723
- const Null = stampit__WEBPACK_IMPORTED_MODULE_0__(_Tag_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], {
17724
- statics: {
17725
- uri: 'tag:yaml.org,2002:null'
17726
- },
17727
- init(args, {
17728
- stamp
17729
- }) {
17730
- this.tag = stamp.uri;
17731
- },
17732
- methods: {
17733
- test(node) {
17734
- return /^null$/.test(node.content);
17735
- },
17736
- resolve(node) {
17737
- const nodeClone = node.clone();
17738
- nodeClone.content = null;
17739
- return nodeClone;
17740
- }
17895
+ /* eslint-disable class-methods-use-this */
17896
+ class Null extends _Tag_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
17897
+ static uri = 'tag:yaml.org,2002:null';
17898
+ test(node) {
17899
+ return /^null$/.test(node.content);
17741
17900
  }
17742
- });
17901
+ resolve(node) {
17902
+ const nodeClone = node.clone();
17903
+ nodeClone.content = null;
17904
+ return nodeClone;
17905
+ }
17906
+ }
17907
+ /* eslint-enable class-methods-use-this */
17908
+
17743
17909
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Null);
17744
17910
 
17745
17911
  /***/ }),
@@ -17752,16 +17918,14 @@ __webpack_require__.r(__webpack_exports__);
17752
17918
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
17753
17919
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
17754
17920
  /* harmony export */ });
17755
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
17756
- /* harmony import */ var _failsafe_index_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(59870);
17757
- /* harmony import */ var _Boolean_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(89949);
17758
- /* harmony import */ var _FloatingPoint_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(39170);
17759
- /* harmony import */ var _Integer_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4267);
17760
- /* harmony import */ var _Null_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(71416);
17761
- /* harmony import */ var _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(37837);
17762
- /* harmony import */ var _failsafe_GenericSequence_mjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(92844);
17763
- /* harmony import */ var _failsafe_GenericMapping_mjs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(39565);
17764
-
17921
+ /* harmony import */ var _failsafe_index_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(59870);
17922
+ /* harmony import */ var _Boolean_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(89949);
17923
+ /* harmony import */ var _FloatingPoint_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(39170);
17924
+ /* harmony import */ var _Integer_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4267);
17925
+ /* harmony import */ var _Null_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(71416);
17926
+ /* harmony import */ var _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(37837);
17927
+ /* harmony import */ var _failsafe_GenericSequence_mjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(92844);
17928
+ /* harmony import */ var _failsafe_GenericMapping_mjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(39565);
17765
17929
 
17766
17930
 
17767
17931
 
@@ -17770,37 +17934,32 @@ __webpack_require__.r(__webpack_exports__);
17770
17934
 
17771
17935
 
17772
17936
 
17773
- const JsonSchema = stampit__WEBPACK_IMPORTED_MODULE_0__(_failsafe_index_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], {
17774
- init() {
17937
+ class JsonSchema extends _failsafe_index_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
17938
+ constructor() {
17939
+ super();
17775
17940
  /**
17776
17941
  * We're registering more specific tags before more generic ones from Failsafe schema.
17777
17942
  */
17778
- this.registerTag((0,_Boolean_mjs__WEBPACK_IMPORTED_MODULE_2__["default"])(), true);
17779
- this.registerTag((0,_FloatingPoint_mjs__WEBPACK_IMPORTED_MODULE_3__["default"])(), true);
17780
- this.registerTag((0,_Integer_mjs__WEBPACK_IMPORTED_MODULE_4__["default"])(), true);
17781
- this.registerTag((0,_Null_mjs__WEBPACK_IMPORTED_MODULE_5__["default"])(), true);
17782
- },
17783
- methods: {
17784
- toSpecificTagName(node) {
17785
- // @ts-ignore
17786
- let specificTagName = _failsafe_index_mjs__WEBPACK_IMPORTED_MODULE_1__["default"].compose.methods.toSpecificTagName.call(this, node);
17787
- if (specificTagName === '?') {
17788
- if (node.tag.vkind === _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_6__.YamlNodeKind.Sequence) {
17789
- // @ts-ignore
17790
- specificTagName = _failsafe_GenericSequence_mjs__WEBPACK_IMPORTED_MODULE_7__["default"].uri;
17791
- } else if (node.tag.kind === _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_6__.YamlNodeKind.Mapping) {
17792
- // @ts-ignore
17793
- specificTagName = _failsafe_GenericMapping_mjs__WEBPACK_IMPORTED_MODULE_8__["default"].uri;
17794
- } else if (node.tag.kind === _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_6__.YamlNodeKind.Scalar) {
17795
- // @ts-ignore
17796
- const foundTag = this.tags.find(tag => tag.test(node));
17797
- specificTagName = (foundTag === null || foundTag === void 0 ? void 0 : foundTag.tag) || '?';
17798
- }
17943
+ this.registerTag(new _Boolean_mjs__WEBPACK_IMPORTED_MODULE_1__["default"](), true);
17944
+ this.registerTag(new _FloatingPoint_mjs__WEBPACK_IMPORTED_MODULE_2__["default"](), true);
17945
+ this.registerTag(new _Integer_mjs__WEBPACK_IMPORTED_MODULE_3__["default"](), true);
17946
+ this.registerTag(new _Null_mjs__WEBPACK_IMPORTED_MODULE_4__["default"](), true);
17947
+ }
17948
+ toSpecificTagName(node) {
17949
+ let specificTagName = super.toSpecificTagName(node);
17950
+ if (specificTagName === '?') {
17951
+ if (node.tag.vkind === _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_5__.YamlNodeKind.Sequence) {
17952
+ specificTagName = _failsafe_GenericSequence_mjs__WEBPACK_IMPORTED_MODULE_6__["default"].uri;
17953
+ } else if (node.tag.kind === _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_5__.YamlNodeKind.Mapping) {
17954
+ specificTagName = _failsafe_GenericMapping_mjs__WEBPACK_IMPORTED_MODULE_7__["default"].uri;
17955
+ } else if (node.tag.kind === _nodes_YamlTag_mjs__WEBPACK_IMPORTED_MODULE_5__.YamlNodeKind.Scalar) {
17956
+ const foundTag = this.tags.find(tag => tag.test(node));
17957
+ specificTagName = (foundTag === null || foundTag === void 0 ? void 0 : foundTag.tag) || '?';
17799
17958
  }
17800
- return specificTagName;
17801
17959
  }
17960
+ return specificTagName;
17802
17961
  }
17803
- });
17962
+ }
17804
17963
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (JsonSchema);
17805
17964
 
17806
17965
  /***/ }),
@@ -18140,7 +18299,7 @@ class SourceMap extends minim__WEBPACK_IMPORTED_MODULE_0__.ArrayElement {
18140
18299
  return this.children.filter(item => item.classes.contains('position')).get(1);
18141
18300
  }
18142
18301
  set position(position) {
18143
- if (position === null) {
18302
+ if (typeof position === 'undefined') {
18144
18303
  return;
18145
18304
  }
18146
18305
  const start = new minim__WEBPACK_IMPORTED_MODULE_0__.ArrayElement([position.start.row, position.start.column, position.start.char]);
@@ -18655,77 +18814,73 @@ __webpack_require__.r(__webpack_exports__);
18655
18814
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
18656
18815
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
18657
18816
  /* harmony export */ });
18658
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
18659
- /* harmony import */ var _visitor_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(62056);
18660
- /* harmony import */ var _ast_ephemeral_array_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(86353);
18661
- /* harmony import */ var _ast_ephemeral_object_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(34575);
18662
- /* harmony import */ var _predicates_index_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36903);
18663
-
18817
+ /* harmony import */ var _visitor_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(62056);
18818
+ /* harmony import */ var _ast_ephemeral_array_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(86353);
18819
+ /* harmony import */ var _ast_ephemeral_object_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(34575);
18820
+ /* harmony import */ var _predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36903);
18664
18821
 
18665
18822
 
18666
18823
 
18667
18824
 
18668
- /* eslint-disable @typescript-eslint/naming-convention */
18669
- const Visitor = stampit__WEBPACK_IMPORTED_MODULE_0__.init(function _Visitor() {
18670
- const references = new WeakMap();
18671
- this.BooleanElement = function _BooleanElement(element) {
18672
- return element.toValue();
18673
- };
18674
- this.NumberElement = function _NumberElement(element) {
18675
- return element.toValue();
18676
- };
18677
- this.StringElement = function _StringElement(element) {
18678
- return element.toValue();
18679
- };
18680
- this.NullElement = function _NullElement() {
18681
- return null;
18682
- };
18683
- this.ObjectElement = {
18684
- enter(element) {
18685
- if (references.has(element)) {
18686
- return references.get(element).toReference();
18825
+ /* eslint-disable class-methods-use-this */
18826
+ class Visitor {
18827
+ ObjectElement = {
18828
+ enter: element => {
18829
+ if (this.references.has(element)) {
18830
+ return this.references.get(element).toReference();
18687
18831
  }
18688
- const ephemeral = new _ast_ephemeral_object_mjs__WEBPACK_IMPORTED_MODULE_1__["default"](element.content);
18689
- references.set(element, ephemeral);
18832
+ const ephemeral = new _ast_ephemeral_object_mjs__WEBPACK_IMPORTED_MODULE_0__["default"](element.content);
18833
+ this.references.set(element, ephemeral);
18690
18834
  return ephemeral;
18691
18835
  }
18692
18836
  };
18693
- this.EphemeralObject = {
18694
- leave(ephemeral) {
18837
+ EphemeralObject = {
18838
+ leave: ephemeral => {
18695
18839
  return ephemeral.toObject();
18696
18840
  }
18697
18841
  };
18698
- this.MemberElement = {
18699
- enter(element) {
18842
+ MemberElement = {
18843
+ enter: element => {
18700
18844
  return [element.key, element.value];
18701
18845
  }
18702
18846
  };
18703
- this.ArrayElement = {
18704
- enter(element) {
18705
- if (references.has(element)) {
18706
- return references.get(element).toReference();
18847
+ ArrayElement = {
18848
+ enter: element => {
18849
+ if (this.references.has(element)) {
18850
+ return this.references.get(element).toReference();
18707
18851
  }
18708
- const ephemeral = new _ast_ephemeral_array_mjs__WEBPACK_IMPORTED_MODULE_2__["default"](element.content);
18709
- references.set(element, ephemeral);
18852
+ const ephemeral = new _ast_ephemeral_array_mjs__WEBPACK_IMPORTED_MODULE_1__["default"](element.content);
18853
+ this.references.set(element, ephemeral);
18710
18854
  return ephemeral;
18711
18855
  }
18712
18856
  };
18713
- this.EphemeralArray = {
18714
- leave(ephemeral) {
18857
+ EphemeralArray = {
18858
+ leave: ephemeral => {
18715
18859
  return ephemeral.toArray();
18716
18860
  }
18717
18861
  };
18718
- });
18719
- /* eslint-enable */
18720
-
18862
+ references = new WeakMap();
18863
+ BooleanElement(element) {
18864
+ return element.toValue();
18865
+ }
18866
+ NumberElement(element) {
18867
+ return element.toValue();
18868
+ }
18869
+ StringElement(element) {
18870
+ return element.toValue();
18871
+ }
18872
+ NullElement() {
18873
+ return null;
18874
+ }
18875
+ }
18721
18876
  const serializer = element => {
18722
- if (!(0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_3__.isElement)(element)) return element;
18877
+ if (!(0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__.isElement)(element)) return element;
18723
18878
 
18724
18879
  // shortcut optimization for certain element types
18725
- if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_3__.isStringElement)(element) || (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_3__.isNumberElement)(element) || (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_3__.isBooleanElement)(element) || (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_3__.isNullElement)(element)) {
18880
+ if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__.isStringElement)(element) || (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__.isNumberElement)(element) || (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__.isBooleanElement)(element) || (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__.isNullElement)(element)) {
18726
18881
  return element.toValue();
18727
18882
  }
18728
- return (0,_visitor_mjs__WEBPACK_IMPORTED_MODULE_4__.visit)(element, Visitor());
18883
+ return (0,_visitor_mjs__WEBPACK_IMPORTED_MODULE_3__.visit)(element, new Visitor());
18729
18884
  };
18730
18885
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (serializer);
18731
18886
 
@@ -18799,23 +18954,21 @@ visit[Symbol.for('nodejs.util.promisify.custom')] = async (root, {
18799
18954
  "use strict";
18800
18955
  __webpack_require__.r(__webpack_exports__);
18801
18956
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
18802
- /* harmony export */ BREAK: () => (/* reexport safe */ _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__.BREAK),
18957
+ /* harmony export */ BREAK: () => (/* reexport safe */ _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__.BREAK),
18803
18958
  /* harmony export */ PredicateVisitor: () => (/* binding */ PredicateVisitor),
18804
18959
  /* harmony export */ cloneNode: () => (/* binding */ cloneNode),
18805
18960
  /* harmony export */ getNodeType: () => (/* binding */ getNodeType),
18806
18961
  /* harmony export */ isNode: () => (/* binding */ isNode),
18807
18962
  /* harmony export */ keyMapDefault: () => (/* binding */ keyMapDefault),
18808
- /* harmony export */ mergeAllVisitors: () => (/* reexport safe */ _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__.mergeAll),
18963
+ /* harmony export */ mergeAllVisitors: () => (/* reexport safe */ _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__.mergeAll),
18809
18964
  /* harmony export */ visit: () => (/* binding */ visit)
18810
18965
  /* harmony export */ });
18811
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
18812
- /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(64205);
18813
- /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(25561);
18814
- /* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(25992);
18815
- /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51394);
18816
- /* harmony import */ var _predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36903);
18817
- /* harmony import */ var _clone_index_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(82434);
18818
-
18966
+ /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(64205);
18967
+ /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(25561);
18968
+ /* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(25992);
18969
+ /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(51394);
18970
+ /* harmony import */ var _predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36903);
18971
+ /* harmony import */ var _clone_index_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(82434);
18819
18972
 
18820
18973
 
18821
18974
 
@@ -18832,19 +18985,19 @@ const getNodeType = element => {
18832
18985
  *
18833
18986
  * There is a problem with naming visitor methods described here: https://github.com/babel/babel/discussions/12874
18834
18987
  */
18835
- return (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__.isObjectElement)(element) ? 'ObjectElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__.isArrayElement)(element) ? 'ArrayElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__.isMemberElement)(element) ? 'MemberElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__.isStringElement)(element) ? 'StringElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__.isBooleanElement)(element) ? 'BooleanElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__.isNumberElement)(element) ? 'NumberElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__.isNullElement)(element) ? 'NullElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__.isLinkElement)(element) ? 'LinkElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__.isRefElement)(element) ? 'RefElement' : undefined;
18988
+ return (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isObjectElement)(element) ? 'ObjectElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isArrayElement)(element) ? 'ArrayElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isMemberElement)(element) ? 'MemberElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isStringElement)(element) ? 'StringElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isBooleanElement)(element) ? 'BooleanElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isNumberElement)(element) ? 'NumberElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isNullElement)(element) ? 'NullElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isLinkElement)(element) ? 'LinkElement' : (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isRefElement)(element) ? 'RefElement' : undefined;
18836
18989
  };
18837
18990
 
18838
18991
  // cloneNode :: a -> a
18839
18992
  const cloneNode = node => {
18840
- if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_2__.isElement)(node)) {
18841
- return (0,_clone_index_mjs__WEBPACK_IMPORTED_MODULE_3__.cloneShallow)(node);
18993
+ if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isElement)(node)) {
18994
+ return (0,_clone_index_mjs__WEBPACK_IMPORTED_MODULE_2__.cloneShallow)(node);
18842
18995
  }
18843
- return (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__.cloneNode)(node);
18996
+ return (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__.cloneNode)(node);
18844
18997
  };
18845
18998
 
18846
18999
  // isNode :: Node -> Boolean
18847
- const isNode = (0,ramda__WEBPACK_IMPORTED_MODULE_4__["default"])(getNodeType, ramda_adjunct__WEBPACK_IMPORTED_MODULE_5__["default"]);
19000
+ const isNode = (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(getNodeType, ramda_adjunct__WEBPACK_IMPORTED_MODULE_4__["default"]);
18848
19001
  const keyMapDefault = {
18849
19002
  ObjectElement: ['content'],
18850
19003
  ArrayElement: ['content'],
@@ -18860,38 +19013,25 @@ const keyMapDefault = {
18860
19013
  ParseResultElement: ['content'],
18861
19014
  SourceMap: ['content']
18862
19015
  };
18863
- const PredicateVisitor = stampit__WEBPACK_IMPORTED_MODULE_0__({
18864
- props: {
18865
- result: [],
18866
- predicate: ramda__WEBPACK_IMPORTED_MODULE_6__["default"],
18867
- returnOnTrue: undefined,
18868
- returnOnFalse: undefined
18869
- },
18870
- init({
18871
- // @ts-ignore
18872
- predicate = this.predicate,
18873
- // @ts-ignore
18874
- returnOnTrue = this.returnOnTrue,
18875
- // @ts-ignore
18876
- returnOnFalse = this.returnOnFalse
19016
+ class PredicateVisitor {
19017
+ constructor({
19018
+ predicate = ramda__WEBPACK_IMPORTED_MODULE_5__["default"],
19019
+ returnOnTrue,
19020
+ returnOnFalse
18877
19021
  } = {}) {
18878
19022
  this.result = [];
18879
19023
  this.predicate = predicate;
18880
19024
  this.returnOnTrue = returnOnTrue;
18881
19025
  this.returnOnFalse = returnOnFalse;
18882
- },
18883
- methods: {
18884
- enter(element) {
18885
- if (this.predicate(element)) {
18886
- this.result.push(element);
18887
- return this.returnOnTrue;
18888
- }
18889
- return this.returnOnFalse;
19026
+ }
19027
+ enter(element) {
19028
+ if (this.predicate(element)) {
19029
+ this.result.push(element);
19030
+ return this.returnOnTrue;
18890
19031
  }
19032
+ return this.returnOnFalse;
18891
19033
  }
18892
- });
18893
-
18894
- // @ts-ignore
19034
+ }
18895
19035
  const visit = (root,
18896
19036
  // @ts-ignore
18897
19037
  visitor, {
@@ -18899,7 +19039,7 @@ visitor, {
18899
19039
  ...rest
18900
19040
  } = {}) => {
18901
19041
  // @ts-ignore
18902
- return (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__.visit)(root, visitor, {
19042
+ return (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__.visit)(root, visitor, {
18903
19043
  // @ts-ignore
18904
19044
  keyMap,
18905
19045
  // @ts-ignore
@@ -18918,7 +19058,7 @@ visitor, {
18918
19058
  ...rest
18919
19059
  } = {}) => {
18920
19060
  // @ts-ignore
18921
- return _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__.visit[Symbol.for('nodejs.util.promisify.custom')](root, visitor, {
19061
+ return _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__.visit[Symbol.for('nodejs.util.promisify.custom')](root, visitor, {
18922
19062
  // @ts-ignore
18923
19063
  keyMap,
18924
19064
  // @ts-ignore
@@ -19598,7 +19738,7 @@ __webpack_require__.r(__webpack_exports__);
19598
19738
  /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(55416);
19599
19739
  /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(50821);
19600
19740
  /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(77541);
19601
- /* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(80037);
19741
+ /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(79154);
19602
19742
  /* harmony import */ var _specification_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24899);
19603
19743
  /* harmony import */ var _traversal_visitor_mjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(32364);
19604
19744
  /* harmony import */ var _toolbox_mjs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(33628);
@@ -19619,7 +19759,9 @@ const refract = (value, {
19619
19759
  * We don't allow consumers to hook into this translation.
19620
19760
  * Though we allow consumers to define their onw plugins on already transformed ApiDOM.
19621
19761
  */
19622
- const rootVisitor = (0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_3__["default"])(specPath, [], resolvedSpec);
19762
+ const RootVisitorClass = (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(specPath, resolvedSpec);
19763
+ const rootVisitor = new RootVisitorClass();
19764
+
19623
19765
  // @ts-ignore
19624
19766
  (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.visit)(element, rootVisitor, {
19625
19767
  state: {
@@ -19691,7 +19833,7 @@ _elements_Principle_mjs__WEBPACK_IMPORTED_MODULE_3__["default"].refract = (0,_in
19691
19833
  _elements_Requirement_mjs__WEBPACK_IMPORTED_MODULE_4__["default"].refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(['visitors', 'document', 'objects', 'Requirement', '$visitor']);
19692
19834
  _elements_RequirementLevel_mjs__WEBPACK_IMPORTED_MODULE_5__["default"].refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(['visitors', 'document', 'objects', 'RequirementLevel', '$visitor']);
19693
19835
  _elements_Scenario_mjs__WEBPACK_IMPORTED_MODULE_6__["default"].refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(['visitors', 'document', 'objects', 'Scenario', '$visitor']);
19694
- _elements_Standard_mjs__WEBPACK_IMPORTED_MODULE_7__["default"].refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(['visitors', 'document', 'objects', 'Standards', '$visitor']);
19836
+ _elements_Standard_mjs__WEBPACK_IMPORTED_MODULE_7__["default"].refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(['visitors', 'document', 'objects', 'Standard', '$visitor']);
19695
19837
  _elements_StandardIdentifier_mjs__WEBPACK_IMPORTED_MODULE_8__["default"].refract = (0,_index_mjs__WEBPACK_IMPORTED_MODULE_1__.createRefractor)(['visitors', 'document', 'objects', 'StandardIdentifier', '$visitor']);
19696
19838
 
19697
19839
 
@@ -19838,8 +19980,12 @@ const specification = {
19838
19980
  follows: _visitors_api_design_systems_requirement_FollowsVisitor_mjs__WEBPACK_IMPORTED_MODULE_22__["default"]
19839
19981
  }
19840
19982
  },
19841
- StandardIdentifier: _visitors_api_design_systems_standard_identifier_index_mjs__WEBPACK_IMPORTED_MODULE_23__["default"],
19842
- RequirementLevel: _visitors_api_design_systems_requirement_level_index_mjs__WEBPACK_IMPORTED_MODULE_24__["default"]
19983
+ StandardIdentifier: {
19984
+ $visitor: _visitors_api_design_systems_standard_identifier_index_mjs__WEBPACK_IMPORTED_MODULE_23__["default"]
19985
+ },
19986
+ RequirementLevel: {
19987
+ $visitor: _visitors_api_design_systems_requirement_level_index_mjs__WEBPACK_IMPORTED_MODULE_24__["default"]
19988
+ }
19843
19989
  }
19844
19990
  }
19845
19991
  }
@@ -19886,11 +20032,9 @@ __webpack_require__.r(__webpack_exports__);
19886
20032
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
19887
20033
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
19888
20034
  /* harmony export */ });
19889
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
19890
- /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(82434);
19891
- /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(51394);
19892
- /* harmony import */ var _Visitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80592);
19893
-
20035
+ /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(82434);
20036
+ /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(51394);
20037
+ /* harmony import */ var _Visitor_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80592);
19894
20038
 
19895
20039
 
19896
20040
  /**
@@ -19899,14 +20043,12 @@ __webpack_require__.r(__webpack_exports__);
19899
20043
  * different Element is provided FallBackVisitor is responsible to assigning
19900
20044
  * this Element as current element.
19901
20045
  */
19902
- const FallbackVisitor = stampit__WEBPACK_IMPORTED_MODULE_0__(_Visitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], {
19903
- methods: {
19904
- enter(element) {
19905
- this.element = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.cloneDeep)(element);
19906
- return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.BREAK;
19907
- }
20046
+ class FallbackVisitor extends _Visitor_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
20047
+ enter(element) {
20048
+ this.element = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.cloneDeep)(element);
20049
+ return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.BREAK;
19908
20050
  }
19909
- });
20051
+ }
19910
20052
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (FallbackVisitor);
19911
20053
 
19912
20054
  /***/ }),
@@ -19919,16 +20061,15 @@ __webpack_require__.r(__webpack_exports__);
19919
20061
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
19920
20062
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
19921
20063
  /* harmony export */ });
19922
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
19923
- /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3060);
19924
- /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(79154);
19925
- /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(34465);
19926
- /* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(79028);
19927
- /* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(39471);
19928
- /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(82434);
19929
- /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(50821);
19930
- /* harmony import */ var _traversal_visitor_mjs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(32364);
19931
- /* harmony import */ var _Visitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80592);
20064
+ /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3060);
20065
+ /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(79154);
20066
+ /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(34465);
20067
+ /* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(79028);
20068
+ /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(82434);
20069
+ /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(50821);
20070
+ /* harmony import */ var _traversal_visitor_mjs__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(32364);
20071
+ /* harmony import */ var _Visitor_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80592);
20072
+ /* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(7447);
19932
20073
 
19933
20074
 
19934
20075
 
@@ -19936,72 +20077,65 @@ __webpack_require__.r(__webpack_exports__);
19936
20077
 
19937
20078
 
19938
20079
  /**
19939
- * This is a base Type for every visitor that does
20080
+ * This is a base class for every visitor that does
19940
20081
  * internal look-ups to retrieve other child visitors.
19941
20082
  */
19942
- const SpecificationVisitor = stampit__WEBPACK_IMPORTED_MODULE_0__(_Visitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], {
19943
- props: {
19944
- specObj: null,
19945
- passingOptionsNames: ['specObj']
19946
- },
19947
- // @ts-ignore
19948
- init({
19949
- specObj = this.specObj
19950
- }) {
19951
- this.specObj = specObj;
19952
- },
19953
- methods: {
19954
- retrievePassingOptions() {
19955
- return (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(this.passingOptionsNames, this);
19956
- },
19957
- retrieveFixedFields(specPath) {
19958
- const fixedFields = (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(['visitors', ...specPath, 'fixedFields'], this.specObj);
19959
- if (typeof fixedFields === 'object' && fixedFields !== null) {
19960
- return Object.keys(fixedFields);
19961
- }
19962
- return [];
19963
- },
19964
- retrieveVisitor(specPath) {
19965
- if ((0,ramda__WEBPACK_IMPORTED_MODULE_4__["default"])(ramda_adjunct__WEBPACK_IMPORTED_MODULE_5__["default"], ['visitors', ...specPath], this.specObj)) {
19966
- return (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(['visitors', ...specPath], this.specObj);
19967
- }
19968
- return (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(['visitors', ...specPath, '$visitor'], this.specObj);
19969
- },
19970
- retrieveVisitorInstance(specPath, options = {}) {
19971
- const passingOpts = this.retrievePassingOptions();
19972
- return this.retrieveVisitor(specPath)({
19973
- ...passingOpts,
19974
- ...options
19975
- });
19976
- },
19977
- toRefractedElement(specPath, element, options = {}) {
19978
- /**
19979
- * This is `Visitor shortcut`: mechanism for short circuiting the traversal and replacing
19980
- * it by basic node cloning.
19981
- *
19982
- * Visiting the element is equivalent to cloning it if the prototype of a visitor
19983
- * is the same as the prototype of FallbackVisitor. If that's the case, we can avoid
19984
- * bootstrapping the traversal cycle for fields that don't require any special visiting.
19985
- */
19986
- const visitor = this.retrieveVisitorInstance(specPath, options);
19987
- const visitorPrototype = Object.getPrototypeOf(visitor);
19988
- if ((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_6__["default"])(this.fallbackVisitorPrototype)) {
19989
- this.fallbackVisitorPrototype = Object.getPrototypeOf(this.retrieveVisitorInstance(['value']));
19990
- }
19991
- if (this.fallbackVisitorPrototype === visitorPrototype) {
19992
- return (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_7__.cloneDeep)(element);
19993
- }
20083
+ class SpecificationVisitor extends _Visitor_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
20084
+ passingOptionsNames = ['specObj'];
20085
+ constructor(options = {}) {
20086
+ super();
20087
+ Object.assign(this, options);
20088
+ }
20089
+ retrievePassingOptions() {
20090
+ return (0,ramda__WEBPACK_IMPORTED_MODULE_1__["default"])(this.passingOptionsNames, this);
20091
+ }
20092
+ retrieveFixedFields(specPath) {
20093
+ const fixedFields = (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(['visitors', ...specPath, 'fixedFields'], this.specObj);
20094
+ if (typeof fixedFields === 'object' && fixedFields !== null) {
20095
+ return Object.keys(fixedFields);
20096
+ }
20097
+ return [];
20098
+ }
20099
+ retrieveVisitor(specPath) {
20100
+ if ((0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(ramda_adjunct__WEBPACK_IMPORTED_MODULE_4__["default"], ['visitors', ...specPath], this.specObj)) {
20101
+ return (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(['visitors', ...specPath], this.specObj);
20102
+ }
20103
+ return (0,ramda__WEBPACK_IMPORTED_MODULE_2__["default"])(['visitors', ...specPath, '$visitor'], this.specObj);
20104
+ }
20105
+ retrieveVisitorInstance(specPath, options = {}) {
20106
+ const passingOpts = this.retrievePassingOptions();
20107
+ const VisitorClz = this.retrieveVisitor(specPath);
20108
+ const visitorOpts = {
20109
+ ...passingOpts,
20110
+ ...options
20111
+ };
19994
20112
 
19995
- // standard processing continues
19996
- (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_8__.visit)(element, visitor, {
19997
- keyMap: _traversal_visitor_mjs__WEBPACK_IMPORTED_MODULE_9__.keyMap,
19998
- ...options,
19999
- nodeTypeGetter: _traversal_visitor_mjs__WEBPACK_IMPORTED_MODULE_9__.getNodeType
20000
- });
20001
- return visitor.element;
20113
+ // @ts-ignore
20114
+ return new VisitorClz(visitorOpts);
20115
+ }
20116
+ toRefractedElement(specPath, element, options = {}) {
20117
+ /**
20118
+ * This is `Visitor shortcut`: mechanism for short circuiting the traversal and replacing
20119
+ * it by basic node cloning.
20120
+ *
20121
+ * Visiting the element is equivalent to cloning it if the prototype of a visitor
20122
+ * is the same as the prototype of FallbackVisitor. If that's the case, we can avoid
20123
+ * bootstrapping the traversal cycle for fields that don't require any special visiting.
20124
+ */
20125
+ const visitor = this.retrieveVisitorInstance(specPath, options);
20126
+ if (visitor instanceof _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_5__["default"] && (visitor === null || visitor === void 0 ? void 0 : visitor.constructor) === _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_5__["default"]) {
20127
+ return (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_6__.cloneDeep)(element);
20002
20128
  }
20129
+
20130
+ // @ts-ignore
20131
+ (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_7__.visit)(element, visitor, {
20132
+ keyMap: _traversal_visitor_mjs__WEBPACK_IMPORTED_MODULE_8__.keyMap,
20133
+ ...options,
20134
+ nodeTypeGetter: _traversal_visitor_mjs__WEBPACK_IMPORTED_MODULE_8__.getNodeType
20135
+ });
20136
+ return visitor.element;
20003
20137
  }
20004
- });
20138
+ }
20005
20139
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SpecificationVisitor);
20006
20140
 
20007
20141
  /***/ }),
@@ -20014,23 +20148,17 @@ __webpack_require__.r(__webpack_exports__);
20014
20148
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
20015
20149
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
20016
20150
  /* harmony export */ });
20017
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
20018
- /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36903);
20019
-
20151
+ /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(36903);
20020
20152
 
20021
- const Visitor = stampit__WEBPACK_IMPORTED_MODULE_0__({
20022
- props: {
20023
- element: null
20024
- },
20025
- methods: {
20026
- copyMetaAndAttributes(from, to) {
20027
- // copy sourcemaps
20028
- if ((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.hasElementSourceMap)(from)) {
20029
- to.meta.set('sourceMap', from.meta.get('sourceMap'));
20030
- }
20153
+ class Visitor {
20154
+ // eslint-disable-next-line class-methods-use-this
20155
+ copyMetaAndAttributes(from, to) {
20156
+ // copy sourcemaps
20157
+ if ((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.hasElementSourceMap)(from)) {
20158
+ to.meta.set('sourceMap', from.meta.get('sourceMap'));
20031
20159
  }
20032
20160
  }
20033
- });
20161
+ }
20034
20162
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Visitor);
20035
20163
 
20036
20164
  /***/ }),
@@ -20073,8 +20201,8 @@ __webpack_require__.r(__webpack_exports__);
20073
20201
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
20074
20202
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
20075
20203
  /* harmony export */ });
20076
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
20077
20204
  /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(16360);
20205
+ /* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(96252);
20078
20206
  /* harmony import */ var _elements_Info_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2189);
20079
20207
  /* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
20080
20208
  /* harmony import */ var _generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(94627);
@@ -20083,14 +20211,13 @@ __webpack_require__.r(__webpack_exports__);
20083
20211
 
20084
20212
 
20085
20213
 
20086
- const InfoVisitor = stampit__WEBPACK_IMPORTED_MODULE_0__(_generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"], {
20087
- props: {
20088
- specPath: (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(['document', 'objects', 'Info'])
20089
- },
20090
- init() {
20214
+ class InfoVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
20215
+ constructor(options = {}) {
20216
+ super(options);
20217
+ this.specPath = (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(['document', 'objects', 'Info']);
20091
20218
  this.element = new _elements_Info_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]();
20092
20219
  }
20093
- });
20220
+ }
20094
20221
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (InfoVisitor);
20095
20222
 
20096
20223
  /***/ }),
@@ -20103,7 +20230,7 @@ __webpack_require__.r(__webpack_exports__);
20103
20230
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
20104
20231
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
20105
20232
  /* harmony export */ });
20106
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
20233
+ /* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(96252);
20107
20234
  /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48355);
20108
20235
  /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(51394);
20109
20236
  /* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
@@ -20112,23 +20239,22 @@ __webpack_require__.r(__webpack_exports__);
20112
20239
 
20113
20240
 
20114
20241
 
20115
- const PrinciplesVisitor = stampit__WEBPACK_IMPORTED_MODULE_0__(_SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"], {
20116
- init() {
20242
+ class PrinciplesVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
20243
+ constructor(options = {}) {
20244
+ super(options);
20117
20245
  this.element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.ArrayElement();
20118
20246
  this.element.classes.push('main-principles');
20119
- },
20120
- methods: {
20121
- ArrayElement(arrayElement) {
20122
- arrayElement.forEach(item => {
20123
- const specPath = ['document', 'objects', 'Principle'];
20124
- const element = this.toRefractedElement(specPath, item);
20125
- this.element.push(element);
20126
- });
20127
- this.copyMetaAndAttributes(arrayElement, this.element);
20128
- return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
20129
- }
20130
20247
  }
20131
- });
20248
+ ArrayElement(arrayElement) {
20249
+ arrayElement.forEach(item => {
20250
+ const specPath = ['document', 'objects', 'Principle'];
20251
+ const element = this.toRefractedElement(specPath, item);
20252
+ this.element.push(element);
20253
+ });
20254
+ this.copyMetaAndAttributes(arrayElement, this.element);
20255
+ return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
20256
+ }
20257
+ }
20132
20258
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PrinciplesVisitor);
20133
20259
 
20134
20260
  /***/ }),
@@ -20141,7 +20267,7 @@ __webpack_require__.r(__webpack_exports__);
20141
20267
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
20142
20268
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
20143
20269
  /* harmony export */ });
20144
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
20270
+ /* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(96252);
20145
20271
  /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48355);
20146
20272
  /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(51394);
20147
20273
  /* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
@@ -20150,23 +20276,22 @@ __webpack_require__.r(__webpack_exports__);
20150
20276
 
20151
20277
 
20152
20278
 
20153
- const ScenariosVisitor = stampit__WEBPACK_IMPORTED_MODULE_0__(_SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"], {
20154
- init() {
20279
+ class ScenariosVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
20280
+ constructor(options = {}) {
20281
+ super(options);
20155
20282
  this.element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.ArrayElement();
20156
20283
  this.element.classes.push('main-scenarios');
20157
- },
20158
- methods: {
20159
- ArrayElement(arrayElement) {
20160
- arrayElement.forEach(item => {
20161
- const specPath = ['document', 'objects', 'Scenario'];
20162
- const element = this.toRefractedElement(specPath, item);
20163
- this.element.push(element);
20164
- });
20165
- this.copyMetaAndAttributes(arrayElement, this.element);
20166
- return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
20167
- }
20168
20284
  }
20169
- });
20285
+ ArrayElement(arrayElement) {
20286
+ arrayElement.forEach(item => {
20287
+ const specPath = ['document', 'objects', 'Scenario'];
20288
+ const element = this.toRefractedElement(specPath, item);
20289
+ this.element.push(element);
20290
+ });
20291
+ this.copyMetaAndAttributes(arrayElement, this.element);
20292
+ return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
20293
+ }
20294
+ }
20170
20295
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ScenariosVisitor);
20171
20296
 
20172
20297
  /***/ }),
@@ -20179,32 +20304,31 @@ __webpack_require__.r(__webpack_exports__);
20179
20304
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
20180
20305
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
20181
20306
  /* harmony export */ });
20182
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
20307
+ /* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(96252);
20183
20308
  /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48355);
20184
20309
  /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(51394);
20185
- /* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
20186
- /* harmony import */ var _SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49894);
20310
+ /* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7447);
20311
+ /* harmony import */ var _SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49894);
20187
20312
 
20188
20313
 
20189
20314
 
20190
20315
 
20191
- const StandardsVisitor = stampit__WEBPACK_IMPORTED_MODULE_0__(_SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"], {
20192
- init() {
20316
+ class StandardsVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
20317
+ constructor(options = {}) {
20318
+ super(options);
20193
20319
  this.element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.ArrayElement();
20194
20320
  this.element.classes.push('main-standards');
20195
- },
20196
- methods: {
20197
- ArrayElement(arrayElement) {
20198
- arrayElement.forEach(item => {
20199
- const specPath = ['document', 'objects', 'Standard'];
20200
- const element = this.toRefractedElement(specPath, item);
20201
- this.element.push(element);
20202
- });
20203
- this.copyMetaAndAttributes(arrayElement, this.element);
20204
- return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
20205
- }
20206
20321
  }
20207
- });
20322
+ ArrayElement(arrayElement) {
20323
+ arrayElement.forEach(item => {
20324
+ const specPath = ['document', 'objects', 'Standard'];
20325
+ const element = this.toRefractedElement(specPath, item);
20326
+ this.element.push(element);
20327
+ });
20328
+ this.copyMetaAndAttributes(arrayElement, this.element);
20329
+ return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
20330
+ }
20331
+ }
20208
20332
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (StandardsVisitor);
20209
20333
 
20210
20334
  /***/ }),
@@ -20232,7 +20356,7 @@ __webpack_require__.r(__webpack_exports__);
20232
20356
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
20233
20357
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
20234
20358
  /* harmony export */ });
20235
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
20359
+ /* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(96252);
20236
20360
  /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(16360);
20237
20361
  /* harmony import */ var _elements_Main_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(34783);
20238
20362
  /* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
@@ -20242,14 +20366,13 @@ __webpack_require__.r(__webpack_exports__);
20242
20366
 
20243
20367
 
20244
20368
 
20245
- const MainVisitor = stampit__WEBPACK_IMPORTED_MODULE_0__(_generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"], {
20246
- props: {
20247
- specPath: (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(['document', 'objects', 'Main'])
20248
- },
20249
- init() {
20369
+ class MainVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
20370
+ constructor(options = {}) {
20371
+ super(options);
20372
+ this.specPath = (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(['document', 'objects', 'Main']);
20250
20373
  this.element = new _elements_Main_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]();
20251
20374
  }
20252
- });
20375
+ }
20253
20376
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (MainVisitor);
20254
20377
 
20255
20378
  /***/ }),
@@ -20307,8 +20430,8 @@ __webpack_require__.r(__webpack_exports__);
20307
20430
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
20308
20431
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
20309
20432
  /* harmony export */ });
20310
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
20311
20433
  /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(16360);
20434
+ /* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(96252);
20312
20435
  /* harmony import */ var _elements_Principle_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4028);
20313
20436
  /* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
20314
20437
  /* harmony import */ var _generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(94627);
@@ -20317,14 +20440,13 @@ __webpack_require__.r(__webpack_exports__);
20317
20440
 
20318
20441
 
20319
20442
 
20320
- const PrincipleVisitor = stampit__WEBPACK_IMPORTED_MODULE_0__(_generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"], {
20321
- props: {
20322
- specPath: (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(['document', 'objects', 'Principle'])
20323
- },
20324
- init() {
20443
+ class PrincipleVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
20444
+ constructor(options = {}) {
20445
+ super(options);
20446
+ this.specPath = (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(['document', 'objects', 'Principle']);
20325
20447
  this.element = new _elements_Principle_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]();
20326
20448
  }
20327
- });
20449
+ }
20328
20450
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PrincipleVisitor);
20329
20451
 
20330
20452
  /***/ }),
@@ -20337,7 +20459,7 @@ __webpack_require__.r(__webpack_exports__);
20337
20459
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
20338
20460
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
20339
20461
  /* harmony export */ });
20340
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
20462
+ /* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(96252);
20341
20463
  /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(83130);
20342
20464
  /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(51394);
20343
20465
  /* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
@@ -20348,16 +20470,14 @@ __webpack_require__.r(__webpack_exports__);
20348
20470
 
20349
20471
 
20350
20472
 
20351
- const RequirementLevelVisitor = stampit__WEBPACK_IMPORTED_MODULE_0__(_SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"], {
20352
- methods: {
20353
- StringElement(stringElement) {
20354
- const requirementLevelElement = new _elements_RequirementLevel_mjs__WEBPACK_IMPORTED_MODULE_3__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__["default"])(stringElement));
20355
- this.copyMetaAndAttributes(stringElement, requirementLevelElement);
20356
- this.element = requirementLevelElement;
20357
- return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_5__.BREAK;
20358
- }
20473
+ class RequirementLevelVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
20474
+ StringElement(stringElement) {
20475
+ const requirementLevelElement = new _elements_RequirementLevel_mjs__WEBPACK_IMPORTED_MODULE_3__["default"]((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__["default"])(stringElement));
20476
+ this.copyMetaAndAttributes(stringElement, requirementLevelElement);
20477
+ this.element = requirementLevelElement;
20478
+ return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_5__.BREAK;
20359
20479
  }
20360
- });
20480
+ }
20361
20481
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (RequirementLevelVisitor);
20362
20482
 
20363
20483
  /***/ }),
@@ -20400,8 +20520,8 @@ __webpack_require__.r(__webpack_exports__);
20400
20520
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
20401
20521
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
20402
20522
  /* harmony export */ });
20403
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
20404
20523
  /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(16360);
20524
+ /* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(96252);
20405
20525
  /* harmony import */ var _elements_Requirement_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(49618);
20406
20526
  /* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
20407
20527
  /* harmony import */ var _generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(94627);
@@ -20410,14 +20530,13 @@ __webpack_require__.r(__webpack_exports__);
20410
20530
 
20411
20531
 
20412
20532
 
20413
- const RequirementVisitor = stampit__WEBPACK_IMPORTED_MODULE_0__(_generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"], {
20414
- props: {
20415
- specPath: (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(['document', 'objects', 'Requirement'])
20416
- },
20417
- init() {
20533
+ class RequirementVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
20534
+ constructor(options = {}) {
20535
+ super(options);
20536
+ this.specPath = (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(['document', 'objects', 'Requirement']);
20418
20537
  this.element = new _elements_Requirement_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]();
20419
20538
  }
20420
- });
20539
+ }
20421
20540
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (RequirementVisitor);
20422
20541
 
20423
20542
  /***/ }),
@@ -20445,7 +20564,7 @@ __webpack_require__.r(__webpack_exports__);
20445
20564
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
20446
20565
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
20447
20566
  /* harmony export */ });
20448
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
20567
+ /* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(96252);
20449
20568
  /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48355);
20450
20569
  /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(51394);
20451
20570
  /* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
@@ -20454,23 +20573,22 @@ __webpack_require__.r(__webpack_exports__);
20454
20573
 
20455
20574
 
20456
20575
 
20457
- const ThenVisitor = stampit__WEBPACK_IMPORTED_MODULE_0__(_SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"], {
20458
- init() {
20576
+ class ThenVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
20577
+ constructor(options = {}) {
20578
+ super(options);
20459
20579
  this.element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.ArrayElement();
20460
20580
  this.element.classes.push('scenario-then');
20461
- },
20462
- methods: {
20463
- ArrayElement(arrayElement) {
20464
- arrayElement.forEach(item => {
20465
- const specPath = ['document', 'objects', 'Requirement'];
20466
- const element = this.toRefractedElement(specPath, item);
20467
- this.element.push(element);
20468
- });
20469
- this.copyMetaAndAttributes(arrayElement, this.element);
20470
- return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
20471
- }
20472
20581
  }
20473
- });
20582
+ ArrayElement(arrayElement) {
20583
+ arrayElement.forEach(item => {
20584
+ const specPath = ['document', 'objects', 'Requirement'];
20585
+ const element = this.toRefractedElement(specPath, item);
20586
+ this.element.push(element);
20587
+ });
20588
+ this.copyMetaAndAttributes(arrayElement, this.element);
20589
+ return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
20590
+ }
20591
+ }
20474
20592
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ThenVisitor);
20475
20593
 
20476
20594
  /***/ }),
@@ -20483,8 +20601,8 @@ __webpack_require__.r(__webpack_exports__);
20483
20601
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
20484
20602
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
20485
20603
  /* harmony export */ });
20486
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
20487
20604
  /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(16360);
20605
+ /* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(96252);
20488
20606
  /* harmony import */ var _elements_Scenario_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(60075);
20489
20607
  /* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
20490
20608
  /* harmony import */ var _generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(94627);
@@ -20493,14 +20611,13 @@ __webpack_require__.r(__webpack_exports__);
20493
20611
 
20494
20612
 
20495
20613
 
20496
- const ScenarioVisitor = stampit__WEBPACK_IMPORTED_MODULE_0__(_generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"], {
20497
- props: {
20498
- specPath: (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(['document', 'objects', 'Scenario'])
20499
- },
20500
- init() {
20614
+ class ScenarioVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
20615
+ constructor(options = {}) {
20616
+ super(options);
20617
+ this.specPath = (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(['document', 'objects', 'Scenario']);
20501
20618
  this.element = new _elements_Scenario_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]();
20502
20619
  }
20503
- });
20620
+ }
20504
20621
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ScenarioVisitor);
20505
20622
 
20506
20623
  /***/ }),
@@ -20513,7 +20630,7 @@ __webpack_require__.r(__webpack_exports__);
20513
20630
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
20514
20631
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
20515
20632
  /* harmony export */ });
20516
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
20633
+ /* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(96252);
20517
20634
  /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(51394);
20518
20635
  /* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
20519
20636
  /* harmony import */ var _SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49894);
@@ -20523,22 +20640,21 @@ __webpack_require__.r(__webpack_exports__);
20523
20640
 
20524
20641
 
20525
20642
 
20526
- const StandardIdentifierVisitor = stampit__WEBPACK_IMPORTED_MODULE_0__(_SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"], {
20527
- init() {
20643
+ class StandardIdentifierVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
20644
+ constructor(options = {}) {
20645
+ super(options);
20528
20646
  this.element = new _elements_StandardIdentifier_mjs__WEBPACK_IMPORTED_MODULE_3__["default"]();
20529
- },
20530
- methods: {
20531
- ArrayElement(arrayElement) {
20532
- arrayElement.forEach(item => {
20533
- const specPath = ['document', 'objects', 'StandardIdentifier'];
20534
- const element = this.toRefractedElement(specPath, item);
20535
- this.element.push(element);
20536
- });
20537
- this.copyMetaAndAttributes(arrayElement, this.element);
20538
- return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
20539
- }
20540
20647
  }
20541
- });
20648
+ ArrayElement(arrayElement) {
20649
+ arrayElement.forEach(item => {
20650
+ const specPath = ['document', 'objects', 'StandardIdentifier'];
20651
+ const element = this.toRefractedElement(specPath, item);
20652
+ this.element.push(element);
20653
+ });
20654
+ this.copyMetaAndAttributes(arrayElement, this.element);
20655
+ return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.BREAK;
20656
+ }
20657
+ }
20542
20658
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (StandardIdentifierVisitor);
20543
20659
 
20544
20660
  /***/ }),
@@ -20596,8 +20712,8 @@ __webpack_require__.r(__webpack_exports__);
20596
20712
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
20597
20713
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
20598
20714
  /* harmony export */ });
20599
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
20600
20715
  /* harmony import */ var ramda__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(16360);
20716
+ /* harmony import */ var ts_mixer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(96252);
20601
20717
  /* harmony import */ var _elements_Standard_mjs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(10734);
20602
20718
  /* harmony import */ var _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7447);
20603
20719
  /* harmony import */ var _generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(94627);
@@ -20606,14 +20722,13 @@ __webpack_require__.r(__webpack_exports__);
20606
20722
 
20607
20723
 
20608
20724
 
20609
- const StandardVisitor = stampit__WEBPACK_IMPORTED_MODULE_0__(_generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"], {
20610
- props: {
20611
- specPath: (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(['document', 'objects', 'Standard'])
20612
- },
20613
- init() {
20725
+ class StandardVisitor extends (0,ts_mixer__WEBPACK_IMPORTED_MODULE_0__.Mixin)(_generics_FixedFieldsVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], _FallbackVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]) {
20726
+ constructor(options = {}) {
20727
+ super(options);
20728
+ this.specPath = (0,ramda__WEBPACK_IMPORTED_MODULE_3__["default"])(['document', 'objects', 'Standard']);
20614
20729
  this.element = new _elements_Standard_mjs__WEBPACK_IMPORTED_MODULE_4__["default"]();
20615
20730
  }
20616
- });
20731
+ }
20617
20732
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (StandardVisitor);
20618
20733
 
20619
20734
  /***/ }),
@@ -20626,52 +20741,36 @@ __webpack_require__.r(__webpack_exports__);
20626
20741
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
20627
20742
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
20628
20743
  /* harmony export */ });
20629
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
20630
- /* harmony import */ var ramda_adjunct__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(71329);
20631
- /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36903);
20632
- /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(83130);
20633
- /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(67952);
20634
- /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(82434);
20635
- /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(51394);
20636
- /* harmony import */ var _SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(49894);
20637
-
20744
+ /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36903);
20745
+ /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(83130);
20746
+ /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67952);
20747
+ /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(82434);
20748
+ /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(51394);
20749
+ /* harmony import */ var _SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(49894);
20638
20750
 
20639
20751
 
20752
+ class FixedFieldsVisitor extends _SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_0__["default"] {
20753
+ ignoredFields = [];
20754
+ ObjectElement(objectElement) {
20755
+ const specPath = this.specPath(objectElement);
20756
+ const fields = this.retrieveFixedFields(specPath);
20640
20757
 
20641
- const FixedFieldsVisitor = stampit__WEBPACK_IMPORTED_MODULE_0__(_SpecificationVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"], {
20642
- props: {
20643
- specPath: ramda_adjunct__WEBPACK_IMPORTED_MODULE_2__["default"],
20644
- ignoredFields: []
20645
- },
20646
- init({
20647
- // @ts-ignore
20648
- specPath = this.specPath,
20649
20758
  // @ts-ignore
20650
- ignoredFields = this.ignoredFields
20651
- } = {}) {
20652
- this.specPath = specPath;
20653
- this.ignoredFields = ignoredFields;
20654
- },
20655
- methods: {
20656
- ObjectElement(objectElement) {
20657
- const specPath = this.specPath(objectElement);
20658
- const fields = this.retrieveFixedFields(specPath);
20659
- objectElement.forEach((value, key, memberElement) => {
20660
- if ((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.isStringElement)(key) && fields.includes((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__["default"])(key)) && !this.ignoredFields.includes((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__["default"])(key))) {
20661
- const fixedFieldElement = this.toRefractedElement([...specPath, 'fixedFields', (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__["default"])(key)], value);
20662
- const newMemberElement = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_5__.MemberElement((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_6__.cloneDeep)(key), fixedFieldElement);
20663
- newMemberElement.classes.push('fixed-field');
20664
- this.copyMetaAndAttributes(memberElement, newMemberElement);
20665
- this.element.content.push(newMemberElement);
20666
- } else if (!this.ignoredFields.includes((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__["default"])(key))) {
20667
- this.element.content.push((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_6__.cloneDeep)(memberElement));
20668
- }
20669
- });
20670
- this.copyMetaAndAttributes(objectElement, this.element);
20671
- return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_7__.BREAK;
20672
- }
20759
+ objectElement.forEach((value, key, memberElement) => {
20760
+ if ((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.isStringElement)(key) && fields.includes((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__["default"])(key)) && !this.ignoredFields.includes((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__["default"])(key))) {
20761
+ const fixedFieldElement = this.toRefractedElement([...specPath, 'fixedFields', (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__["default"])(key)], value);
20762
+ const newMemberElement = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.MemberElement((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.cloneDeep)(key), fixedFieldElement);
20763
+ newMemberElement.classes.push('fixed-field');
20764
+ this.copyMetaAndAttributes(memberElement, newMemberElement);
20765
+ this.element.content.push(newMemberElement);
20766
+ } else if (!this.ignoredFields.includes((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__["default"])(key))) {
20767
+ this.element.content.push((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.cloneDeep)(memberElement));
20768
+ }
20769
+ });
20770
+ this.copyMetaAndAttributes(objectElement, this.element);
20771
+ return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_5__.BREAK;
20673
20772
  }
20674
- });
20773
+ }
20675
20774
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (FixedFieldsVisitor);
20676
20775
 
20677
20776
  /***/ }),
@@ -21084,9 +21183,9 @@ const analyze = (cst, {
21084
21183
  const cursor = cst.walk();
21085
21184
  const iterator = new _TreeCursorIterator_mjs__WEBPACK_IMPORTED_MODULE_0__["default"](cursor);
21086
21185
  const [rootNode] = Array.from(iterator);
21087
- const cstVisitor = (0,_visitors_CstVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"])();
21088
- const astVisitor = (0,_visitors_YamlAstVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"])();
21089
- const schema = (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__["default"])();
21186
+ const cstVisitor = new _visitors_CstVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__["default"]();
21187
+ const astVisitor = new _visitors_YamlAstVisitor_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]();
21188
+ const schema = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__["default"]();
21090
21189
  const yamlAst = (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__.visit)(rootNode, cstVisitor, {
21091
21190
  // @ts-ignore
21092
21191
  keyMap: _visitors_CstVisitor_mjs__WEBPACK_IMPORTED_MODULE_1__.keyMap,
@@ -21120,25 +21219,23 @@ __webpack_require__.r(__webpack_exports__);
21120
21219
  /* harmony export */ isNode: () => (/* binding */ isNode),
21121
21220
  /* harmony export */ keyMap: () => (/* binding */ keyMap)
21122
21221
  /* harmony export */ });
21123
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
21124
- /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51394);
21125
- /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(87127);
21126
- /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(37837);
21127
- /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(20860);
21128
- /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(94093);
21129
- /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4314);
21130
- /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(78681);
21131
- /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(84768);
21132
- /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(69348);
21133
- /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(75795);
21134
- /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(55676);
21135
- /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(13856);
21136
- /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(49873);
21137
- /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(10914);
21138
- /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(40968);
21139
- /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(5773);
21140
- /* harmony import */ var _TreeCursorSyntaxNode_mjs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(6411);
21141
-
21222
+ /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(51394);
21223
+ /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(87127);
21224
+ /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(37837);
21225
+ /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(20860);
21226
+ /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(94093);
21227
+ /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(4314);
21228
+ /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(84768);
21229
+ /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(69348);
21230
+ /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(75795);
21231
+ /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(55676);
21232
+ /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(13856);
21233
+ /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(49873);
21234
+ /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(10914);
21235
+ /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(40968);
21236
+ /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(78681);
21237
+ /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(5773);
21238
+ /* harmony import */ var _TreeCursorSyntaxNode_mjs__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(6411);
21142
21239
 
21143
21240
 
21144
21241
  const keyMap = {
@@ -21149,526 +21246,523 @@ const keyMap = {
21149
21246
  sequence: ['children'],
21150
21247
  error: ['children']
21151
21248
  };
21152
-
21153
- // @ts-ignore
21154
- const isNode = node => Array.isArray(node) || (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__.isNode)(node);
21249
+ const isNode = node => Array.isArray(node) || (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_0__.isNode)(node);
21155
21250
 
21156
21251
  /* eslint-disable no-param-reassign */
21157
21252
 
21158
- const CstVisitor = stampit__WEBPACK_IMPORTED_MODULE_0__({
21159
- props: {
21160
- schema: null
21161
- },
21162
- init() {
21163
- /**
21164
- * Private API.
21165
- */
21253
+ class CstVisitor {
21254
+ static isScalar = this.isKind('scalar');
21255
+ static isMapping = this.isKind('mapping');
21256
+ static isSequence = this.isKind('sequence');
21257
+ static isKind(ending) {
21258
+ return node => node != null && typeof node === 'object' && 'type' in node && typeof node.type === 'string' && node.type.endsWith(ending);
21259
+ }
21260
+ static toPosition(node) {
21261
+ const start = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__.Point({
21262
+ row: node.startPosition.row,
21263
+ column: node.startPosition.column,
21264
+ char: node.startIndex
21265
+ });
21266
+ const end = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__.Point({
21267
+ row: node.endPosition.row,
21268
+ column: node.endPosition.column,
21269
+ char: node.endIndex
21270
+ });
21271
+ return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__["default"]({
21272
+ start,
21273
+ end
21274
+ });
21275
+ }
21276
+ static hasKeyValuePairEmptyKey(node) {
21277
+ if (node.type !== 'block_mapping_pair' && node.type !== 'flow_pair') {
21278
+ return false;
21279
+ }
21280
+ // keyNode was not explicitly provided; tag and anchor are missing too
21281
+ return typeof node.keyNode === 'undefined';
21282
+ }
21283
+ static hasKeyValuePairEmptyValue(node) {
21284
+ if (node.type !== 'block_mapping_pair' && node.type !== 'flow_pair') {
21285
+ return false;
21286
+ }
21287
+ // valueNode was not explicitly provided; tag and anchor are missing too
21288
+ return typeof node.valueNode === 'undefined';
21289
+ }
21290
+ static kindNodeToYamlTag(node) {
21291
+ const {
21292
+ tag: tagNode
21293
+ } = node;
21294
+ const explicitName = (tagNode === null || tagNode === void 0 ? void 0 : tagNode.text) || (node.type === 'plain_scalar' ? '?' : '!');
21295
+ const kind = node.type.endsWith('mapping') ? _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__.YamlNodeKind.Mapping : node.type.endsWith('sequence') ? _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__.YamlNodeKind.Sequence : _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__.YamlNodeKind.Scalar;
21296
+ const position = tagNode ? CstVisitor.toPosition(tagNode) : undefined;
21297
+ return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__["default"]({
21298
+ explicitName,
21299
+ kind,
21300
+ position
21301
+ });
21302
+ }
21303
+ static kindNodeToYamlAnchor(node) {
21304
+ const {
21305
+ anchor: anchorNode
21306
+ } = node;
21307
+ if (typeof anchorNode === 'undefined') return undefined;
21308
+ return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__["default"]({
21309
+ name: anchorNode.text,
21310
+ position: CstVisitor.toPosition(anchorNode)
21311
+ });
21312
+ }
21313
+ static createKeyValuePairEmptyKey(node) {
21314
+ const emptyPoint = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__.Point({
21315
+ row: node.startPosition.row,
21316
+ column: node.startPosition.column,
21317
+ char: node.startIndex
21318
+ });
21319
+ const {
21320
+ keyNode
21321
+ } = node;
21322
+ const children = (keyNode === null || keyNode === void 0 ? void 0 : keyNode.children) || [];
21323
+ const tagNode = children.find(CstVisitor.isKind('tag'));
21324
+ const anchorNode = children.find(CstVisitor.isKind('anchor'));
21325
+ const tag = typeof tagNode !== 'undefined' ? new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__["default"]({
21326
+ explicitName: tagNode.text,
21327
+ kind: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__.YamlNodeKind.Scalar,
21328
+ position: CstVisitor.toPosition(tagNode)
21329
+ }) : new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__["default"]({
21330
+ explicitName: '?',
21331
+ kind: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__.YamlNodeKind.Scalar
21332
+ });
21333
+ const anchor = typeof anchorNode !== 'undefined' ? new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__["default"]({
21334
+ name: anchorNode.text,
21335
+ position: CstVisitor.toPosition(anchorNode)
21336
+ }) : undefined;
21337
+ return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__["default"]({
21338
+ content: '',
21339
+ position: new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__["default"]({
21340
+ start: emptyPoint,
21341
+ end: emptyPoint
21342
+ }),
21343
+ tag,
21344
+ anchor,
21345
+ styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__.YamlStyleGroup.Flow,
21346
+ style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__.YamlStyle.Plain
21347
+ });
21348
+ }
21349
+ static createKeyValuePairEmptyValue(node) {
21350
+ const emptyPoint = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__.Point({
21351
+ row: node.endPosition.row,
21352
+ column: node.endPosition.column,
21353
+ char: node.endIndex
21354
+ });
21355
+ const {
21356
+ valueNode
21357
+ } = node;
21358
+ const children = (valueNode === null || valueNode === void 0 ? void 0 : valueNode.children) || [];
21359
+ const tagNode = children.find(CstVisitor.isKind('tag'));
21360
+ const anchorNode = children.find(CstVisitor.isKind('anchor'));
21361
+ const tag = typeof tagNode !== 'undefined' ? new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__["default"]({
21362
+ explicitName: tagNode.text,
21363
+ kind: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__.YamlNodeKind.Scalar,
21364
+ position: CstVisitor.toPosition(tagNode)
21365
+ }) : new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__["default"]({
21366
+ explicitName: '?',
21367
+ kind: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__.YamlNodeKind.Scalar
21368
+ });
21369
+ const anchor = typeof anchorNode !== 'undefined' ? new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__["default"]({
21370
+ name: anchorNode.text,
21371
+ position: CstVisitor.toPosition(anchorNode)
21372
+ }) : undefined;
21373
+ return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__["default"]({
21374
+ content: '',
21375
+ position: new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__["default"]({
21376
+ start: emptyPoint,
21377
+ end: emptyPoint
21378
+ }),
21379
+ tag,
21380
+ anchor,
21381
+ styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__.YamlStyleGroup.Flow,
21382
+ style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__.YamlStyle.Plain
21383
+ });
21384
+ }
21385
+
21386
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
21166
21387
 
21167
- const toPosition = node => {
21168
- const start = (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__.Point)({
21169
- row: node.startPosition.row,
21170
- column: node.startPosition.column,
21171
- char: node.startIndex
21388
+ stream = {
21389
+ enter: node => {
21390
+ const position = CstVisitor.toPosition(node);
21391
+ return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__["default"]({
21392
+ children: node.children,
21393
+ position,
21394
+ isMissing: node.isMissing
21172
21395
  });
21173
- const end = (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__.Point)({
21174
- row: node.endPosition.row,
21175
- column: node.endPosition.column,
21176
- char: node.endIndex
21396
+ },
21397
+ leave: stream => {
21398
+ return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_7__["default"]({
21399
+ children: [stream]
21177
21400
  });
21178
- return (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__["default"])({
21179
- start,
21180
- end
21401
+ }
21402
+ };
21403
+ yaml_directive = {
21404
+ enter: node => {
21405
+ var _node$firstNamedChild;
21406
+ const position = CstVisitor.toPosition(node);
21407
+ const version = node === null || node === void 0 || (_node$firstNamedChild = node.firstNamedChild) === null || _node$firstNamedChild === void 0 ? void 0 : _node$firstNamedChild.text;
21408
+ return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__["default"]({
21409
+ position,
21410
+ name: '%YAML',
21411
+ parameters: {
21412
+ version
21413
+ }
21181
21414
  });
21182
- };
21183
- const kindNodeToYamlTag = node => {
21184
- const {
21185
- tag: tagNode
21186
- } = node;
21187
- const explicitName = (tagNode === null || tagNode === void 0 ? void 0 : tagNode.text) || (node.type === 'plain_scalar' ? '?' : '!');
21188
- const kind = node.type.endsWith('mapping') ? _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__.YamlNodeKind.Mapping : node.type.endsWith('sequence') ? _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__.YamlNodeKind.Sequence : _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__.YamlNodeKind.Scalar;
21189
- const position = tagNode ? toPosition(tagNode) : null;
21190
- return (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__["default"])({
21191
- explicitName,
21192
- kind,
21193
- position
21415
+ }
21416
+ };
21417
+ tag_directive = {
21418
+ enter: node => {
21419
+ const position = CstVisitor.toPosition(node);
21420
+ const tagHandleNode = node.children[0];
21421
+ const tagPrefixNode = node.children[1];
21422
+ const tagDirective = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__["default"]({
21423
+ position,
21424
+ name: '%TAG',
21425
+ parameters: {
21426
+ handle: tagHandleNode === null || tagHandleNode === void 0 ? void 0 : tagHandleNode.text,
21427
+ prefix: tagPrefixNode === null || tagPrefixNode === void 0 ? void 0 : tagPrefixNode.text
21428
+ }
21194
21429
  });
21195
- };
21196
- const kindNodeToYamlAnchor = node => {
21197
- const {
21198
- anchor: anchorNode
21199
- } = node;
21200
- if (typeof anchorNode === 'undefined') return null;
21201
- return (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__["default"])({
21202
- name: anchorNode.text,
21203
- position: toPosition(anchorNode)
21430
+ this.schema.registerTagDirective(tagDirective);
21431
+ return tagDirective;
21432
+ }
21433
+ };
21434
+ reserved_directive = {
21435
+ enter: node => {
21436
+ const position = CstVisitor.toPosition(node);
21437
+ const directiveNameNode = node.children[0];
21438
+ const directiveParameter1Node = node.children[1];
21439
+ const directiveParameter2Node = node.children[2];
21440
+ return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__["default"]({
21441
+ position,
21442
+ name: directiveNameNode === null || directiveNameNode === void 0 ? void 0 : directiveNameNode.text,
21443
+ parameters: {
21444
+ handle: directiveParameter1Node === null || directiveParameter1Node === void 0 ? void 0 : directiveParameter1Node.text,
21445
+ prefix: directiveParameter2Node === null || directiveParameter2Node === void 0 ? void 0 : directiveParameter2Node.text
21446
+ }
21204
21447
  });
21205
- };
21206
- const isKind = ending => node => typeof (node === null || node === void 0 ? void 0 : node.type) === 'string' && node.type.endsWith(ending);
21207
- const isScalar = isKind('scalar');
21208
- const isMapping = isKind('mapping');
21209
- const isSequence = isKind('sequence');
21210
- const hasKeyValuePairEmptyKey = node => {
21211
- if (node.type !== 'block_mapping_pair' && node.type !== 'flow_pair') {
21212
- return false;
21213
- }
21214
- // keyNode was not explicitly provided; tag and anchor are missing too
21215
- return typeof node.keyNode === 'undefined';
21216
- };
21217
- const hasKeyValuePairEmptyValue = node => {
21218
- if (node.type !== 'block_mapping_pair' && node.type !== 'flow_pair') {
21219
- return false;
21220
- }
21221
- // valueNode was not explicitly provided; tag and anchor are missing too
21222
- return typeof node.valueNode === 'undefined';
21223
- };
21224
- const createKeyValuePairEmptyKey = node => {
21225
- const emptyPoint = (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__.Point)({
21226
- row: node.startPosition.row,
21227
- column: node.startPosition.column,
21228
- char: node.startIndex
21448
+ }
21449
+ };
21450
+ document = {
21451
+ enter: node => {
21452
+ const position = CstVisitor.toPosition(node);
21453
+ return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__["default"]({
21454
+ children: node.children,
21455
+ position,
21456
+ isMissing: node.isMissing
21229
21457
  });
21230
- const {
21231
- keyNode
21232
- } = node;
21233
- const children = (keyNode === null || keyNode === void 0 ? void 0 : keyNode.children) || [];
21234
- const tagNode = children.find(isKind('tag'));
21235
- const anchorNode = children.find(isKind('anchor'));
21236
- const tag = typeof tagNode !== 'undefined' ? (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__["default"])({
21237
- explicitName: tagNode.text,
21238
- kind: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__.YamlNodeKind.Scalar,
21239
- position: toPosition(tagNode)
21240
- }) : (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__["default"])({
21241
- explicitName: '?',
21242
- kind: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__.YamlNodeKind.Scalar
21458
+ },
21459
+ leave: node => {
21460
+ node.children = node.children.flat();
21461
+ }
21462
+ };
21463
+ block_node = {
21464
+ enter: node => {
21465
+ return node.children;
21466
+ }
21467
+ };
21468
+ flow_node = {
21469
+ enter: node => {
21470
+ const [kindCandidate] = node.children.slice(-1);
21471
+
21472
+ // kind node is present in flow node
21473
+ if (CstVisitor.isScalar(kindCandidate) || CstVisitor.isMapping(kindCandidate) || CstVisitor.isSequence(kindCandidate)) {
21474
+ return node.children;
21475
+ }
21476
+
21477
+ // kind node not present in flow node, creating empty node
21478
+ const emptyPoint = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__.Point({
21479
+ row: kindCandidate.endPosition.row,
21480
+ column: kindCandidate.endPosition.column,
21481
+ char: kindCandidate.endIndex
21243
21482
  });
21244
- const anchor = typeof anchorNode !== 'undefined' ? (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__["default"])({
21245
- name: anchorNode.text,
21246
- position: toPosition(anchorNode)
21247
- }) : null;
21248
- return (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__["default"])({
21483
+ const emptyScalarNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__["default"]({
21249
21484
  content: '',
21250
- position: (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__["default"])({
21485
+ anchor: CstVisitor.kindNodeToYamlAnchor(kindCandidate),
21486
+ tag: CstVisitor.kindNodeToYamlTag(kindCandidate),
21487
+ position: new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__["default"]({
21251
21488
  start: emptyPoint,
21252
21489
  end: emptyPoint
21253
21490
  }),
21491
+ styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__.YamlStyleGroup.Flow,
21492
+ style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__.YamlStyle.Plain
21493
+ });
21494
+ return [...node.children, emptyScalarNode];
21495
+ }
21496
+ };
21497
+ tag = {
21498
+ enter: () => {
21499
+ return null;
21500
+ }
21501
+ };
21502
+ anchor = {
21503
+ enter: () => {
21504
+ return null;
21505
+ }
21506
+ };
21507
+ block_mapping = {
21508
+ enter: node => {
21509
+ const position = CstVisitor.toPosition(node);
21510
+ const tag = CstVisitor.kindNodeToYamlTag(node);
21511
+ const anchor = CstVisitor.kindNodeToYamlAnchor(node);
21512
+ const mappingNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_10__["default"]({
21513
+ children: node.children,
21514
+ position,
21515
+ anchor,
21254
21516
  tag,
21517
+ styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__.YamlStyleGroup.Block,
21518
+ style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__.YamlStyle.NextLine,
21519
+ isMissing: node.isMissing
21520
+ });
21521
+ return this.schema.resolve(mappingNode);
21522
+ }
21523
+ };
21524
+ block_mapping_pair = {
21525
+ enter: node => {
21526
+ const position = CstVisitor.toPosition(node);
21527
+ const children = [...node.children];
21528
+ if (CstVisitor.hasKeyValuePairEmptyKey(node)) {
21529
+ const keyNode = CstVisitor.createKeyValuePairEmptyKey(node);
21530
+ children.unshift(keyNode);
21531
+ }
21532
+ if (CstVisitor.hasKeyValuePairEmptyValue(node)) {
21533
+ const valueNode = CstVisitor.createKeyValuePairEmptyValue(node);
21534
+ children.push(valueNode);
21535
+ }
21536
+ return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_11__["default"]({
21537
+ children,
21538
+ position,
21539
+ styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__.YamlStyleGroup.Block,
21540
+ isMissing: node.isMissing
21541
+ });
21542
+ }
21543
+ };
21544
+ flow_mapping = {
21545
+ enter: node => {
21546
+ const position = CstVisitor.toPosition(node);
21547
+ const tag = CstVisitor.kindNodeToYamlTag(node);
21548
+ const anchor = CstVisitor.kindNodeToYamlAnchor(node);
21549
+ const mappingNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_10__["default"]({
21550
+ children: node.children,
21551
+ position,
21255
21552
  anchor,
21256
- styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__.YamlStyleGroup.Flow,
21257
- style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__.YamlStyle.Plain
21553
+ tag,
21554
+ styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__.YamlStyleGroup.Flow,
21555
+ style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__.YamlStyle.Explicit,
21556
+ isMissing: node.isMissing
21258
21557
  });
21259
- };
21260
- const createKeyValuePairEmptyValue = node => {
21261
- const emptyPoint = (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__.Point)({
21558
+ return this.schema.resolve(mappingNode);
21559
+ }
21560
+ };
21561
+ flow_pair = {
21562
+ enter: node => {
21563
+ const position = CstVisitor.toPosition(node);
21564
+ const children = [...node.children];
21565
+ if (CstVisitor.hasKeyValuePairEmptyKey(node)) {
21566
+ const keyNode = CstVisitor.createKeyValuePairEmptyKey(node);
21567
+ children.unshift(keyNode);
21568
+ }
21569
+ if (CstVisitor.hasKeyValuePairEmptyValue(node)) {
21570
+ const valueNode = CstVisitor.createKeyValuePairEmptyValue(node);
21571
+ children.push(valueNode);
21572
+ }
21573
+ return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_11__["default"]({
21574
+ children,
21575
+ position,
21576
+ styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__.YamlStyleGroup.Flow,
21577
+ isMissing: node.isMissing
21578
+ });
21579
+ }
21580
+ };
21581
+ keyValuePair = {
21582
+ leave: node => {
21583
+ node.children = node.children.flat();
21584
+ }
21585
+ };
21586
+ block_sequence = {
21587
+ enter: node => {
21588
+ const position = CstVisitor.toPosition(node);
21589
+ const tag = CstVisitor.kindNodeToYamlTag(node);
21590
+ const anchor = CstVisitor.kindNodeToYamlAnchor(node);
21591
+ const sequenceNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_12__["default"]({
21592
+ children: node.children,
21593
+ position,
21594
+ anchor,
21595
+ tag,
21596
+ styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__.YamlStyleGroup.Block,
21597
+ style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__.YamlStyle.NextLine
21598
+ });
21599
+ return this.schema.resolve(sequenceNode);
21600
+ }
21601
+ };
21602
+ block_sequence_item = {
21603
+ enter: node => {
21604
+ // flow or block node present; first node is always `-` literal
21605
+ if (node.children.length > 1) {
21606
+ return node.children;
21607
+ }
21608
+
21609
+ // create empty node
21610
+ const emptyPoint = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__.Point({
21262
21611
  row: node.endPosition.row,
21263
21612
  column: node.endPosition.column,
21264
21613
  char: node.endIndex
21265
21614
  });
21266
- const {
21267
- valueNode
21268
- } = node;
21269
- const children = (valueNode === null || valueNode === void 0 ? void 0 : valueNode.children) || [];
21270
- const tagNode = children.find(isKind('tag'));
21271
- const anchorNode = children.find(isKind('anchor'));
21272
- const tag = typeof tagNode !== 'undefined' ? (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__["default"])({
21273
- explicitName: tagNode.text,
21274
- kind: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__.YamlNodeKind.Scalar,
21275
- position: toPosition(tagNode)
21276
- }) : (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__["default"])({
21277
- explicitName: '?',
21278
- kind: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__.YamlNodeKind.Scalar
21279
- });
21280
- const anchor = typeof anchorNode !== 'undefined' ? (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__["default"])({
21281
- name: anchorNode.text,
21282
- position: toPosition(anchorNode)
21283
- }) : null;
21284
- return (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__["default"])({
21615
+ const emptyScalarNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__["default"]({
21285
21616
  content: '',
21286
- position: (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__["default"])({
21617
+ tag: new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__["default"]({
21618
+ explicitName: '?',
21619
+ kind: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__.YamlNodeKind.Scalar
21620
+ }),
21621
+ position: new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_1__["default"]({
21287
21622
  start: emptyPoint,
21288
21623
  end: emptyPoint
21289
21624
  }),
21625
+ styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__.YamlStyleGroup.Flow,
21626
+ style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__.YamlStyle.Plain
21627
+ });
21628
+ return [emptyScalarNode];
21629
+ }
21630
+ };
21631
+ flow_sequence = {
21632
+ enter: node => {
21633
+ const position = CstVisitor.toPosition(node);
21634
+ const tag = CstVisitor.kindNodeToYamlTag(node);
21635
+ const anchor = CstVisitor.kindNodeToYamlAnchor(node);
21636
+ const sequenceNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_12__["default"]({
21637
+ children: node.children.flat(),
21638
+ position,
21639
+ anchor,
21290
21640
  tag,
21641
+ styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__.YamlStyleGroup.Flow,
21642
+ style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__.YamlStyle.Explicit
21643
+ });
21644
+ return this.schema.resolve(sequenceNode);
21645
+ }
21646
+ };
21647
+ sequence = {
21648
+ leave: node => {
21649
+ node.children = node.children.flat(+Infinity);
21650
+ }
21651
+ };
21652
+ plain_scalar = {
21653
+ enter: node => {
21654
+ const position = CstVisitor.toPosition(node);
21655
+ const tag = CstVisitor.kindNodeToYamlTag(node);
21656
+ const anchor = CstVisitor.kindNodeToYamlAnchor(node);
21657
+ const scalarNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__["default"]({
21658
+ content: node.text,
21291
21659
  anchor,
21292
- styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__.YamlStyleGroup.Flow,
21293
- style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__.YamlStyle.Plain
21660
+ tag,
21661
+ position,
21662
+ styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__.YamlStyleGroup.Flow,
21663
+ style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__.YamlStyle.Plain
21294
21664
  });
21295
- };
21296
-
21297
- /**
21298
- * Public API.
21299
- */
21300
-
21301
- this.enter = function enter(node) {
21302
- // missing anonymous literals from CST transformed into AST literal nodes
21303
- if (node instanceof _TreeCursorSyntaxNode_mjs__WEBPACK_IMPORTED_MODULE_7__["default"] && !node.isNamed) {
21304
- const position = toPosition(node);
21305
- const value = node.type || node.text;
21306
- const {
21307
- isMissing
21308
- } = node;
21309
- return (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_8__["default"])({
21310
- value,
21311
- position,
21312
- isMissing
21313
- });
21314
- }
21315
- return undefined;
21316
- };
21317
- this.stream = {
21318
- enter(node) {
21319
- const position = toPosition(node);
21320
- return (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_9__["default"])({
21321
- children: node.children,
21322
- position,
21323
- isMissing: node.isMissing
21324
- });
21325
- },
21326
- leave(stream) {
21327
- return (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_10__["default"])({
21328
- children: [stream]
21329
- });
21330
- }
21331
- };
21332
- this.yaml_directive = {
21333
- enter(node) {
21334
- var _node$firstNamedChild;
21335
- const position = toPosition(node);
21336
- const version = (node === null || node === void 0 || (_node$firstNamedChild = node.firstNamedChild) === null || _node$firstNamedChild === void 0 ? void 0 : _node$firstNamedChild.text) || null;
21337
- return (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_11__["default"])({
21338
- position,
21339
- name: '%YAML',
21340
- parameters: {
21341
- version
21342
- }
21343
- });
21344
- }
21345
- };
21346
- this.tag_directive = {
21347
- enter(node) {
21348
- const position = toPosition(node);
21349
- const tagHandleNode = node.children[0];
21350
- const tagPrefixNode = node.children[1];
21351
- const tagDirective = (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_11__["default"])({
21352
- position,
21353
- name: '%TAG',
21354
- parameters: {
21355
- handle: (tagHandleNode === null || tagHandleNode === void 0 ? void 0 : tagHandleNode.text) || null,
21356
- prefix: (tagPrefixNode === null || tagPrefixNode === void 0 ? void 0 : tagPrefixNode.text) || null
21357
- }
21358
- });
21359
- this.schema.registerTagDirective(tagDirective);
21360
- return tagDirective;
21361
- }
21362
- };
21363
- this.reserved_directive = {
21364
- enter(node) {
21365
- const position = toPosition(node);
21366
- const directiveNameNode = node.children[0];
21367
- const directiveParameter1Node = node.children[1];
21368
- const directiveParameter2Node = node.children[2];
21369
- return (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_11__["default"])({
21370
- position,
21371
- name: (directiveNameNode === null || directiveNameNode === void 0 ? void 0 : directiveNameNode.text) || null,
21372
- parameters: {
21373
- handle: (directiveParameter1Node === null || directiveParameter1Node === void 0 ? void 0 : directiveParameter1Node.text) || null,
21374
- prefix: (directiveParameter2Node === null || directiveParameter2Node === void 0 ? void 0 : directiveParameter2Node.text) || null
21375
- }
21376
- });
21377
- }
21378
- };
21379
- this.document = {
21380
- enter(node) {
21381
- const position = toPosition(node);
21382
- return (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_12__["default"])({
21383
- children: node.children,
21384
- position,
21385
- isMissing: node.isMissing
21386
- });
21387
- },
21388
- leave(node) {
21389
- node.children = node.children.flat();
21390
- }
21391
- };
21392
- this.block_node = {
21393
- enter(node) {
21394
- return node.children;
21395
- }
21396
- };
21397
- this.flow_node = {
21398
- enter(node) {
21399
- const [kindCandidate] = node.children.slice(-1);
21400
-
21401
- // kind node is present in flow node
21402
- if (isScalar(kindCandidate) || isMapping(kindCandidate) || isSequence(kindCandidate)) {
21403
- return node.children;
21404
- }
21665
+ return this.schema.resolve(scalarNode);
21666
+ }
21667
+ };
21668
+ single_quote_scalar = {
21669
+ enter: node => {
21670
+ const position = CstVisitor.toPosition(node);
21671
+ const tag = CstVisitor.kindNodeToYamlTag(node);
21672
+ const anchor = CstVisitor.kindNodeToYamlAnchor(node);
21673
+ const scalarNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__["default"]({
21674
+ content: node.text,
21675
+ anchor,
21676
+ tag,
21677
+ position,
21678
+ styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__.YamlStyleGroup.Flow,
21679
+ style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__.YamlStyle.SingleQuoted
21680
+ });
21681
+ return this.schema.resolve(scalarNode);
21682
+ }
21683
+ };
21684
+ double_quote_scalar = {
21685
+ enter: node => {
21686
+ const position = CstVisitor.toPosition(node);
21687
+ const tag = CstVisitor.kindNodeToYamlTag(node);
21688
+ const anchor = CstVisitor.kindNodeToYamlAnchor(node);
21689
+ const scalarNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__["default"]({
21690
+ content: node.text,
21691
+ anchor,
21692
+ tag,
21693
+ position,
21694
+ styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__.YamlStyleGroup.Flow,
21695
+ style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__.YamlStyle.DoubleQuoted
21696
+ });
21697
+ return this.schema.resolve(scalarNode);
21698
+ }
21699
+ };
21700
+ block_scalar = {
21701
+ enter: node => {
21702
+ const position = CstVisitor.toPosition(node);
21703
+ const tag = CstVisitor.kindNodeToYamlTag(node);
21704
+ const anchor = CstVisitor.kindNodeToYamlAnchor(node);
21705
+ const style = node.text.startsWith('|') ? _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__.YamlStyle.Literal : node.text.startsWith('>') ? _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__.YamlStyle.Folded : _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__.YamlStyle.Plain;
21706
+ const scalarNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_4__["default"]({
21707
+ content: node.text,
21708
+ anchor,
21709
+ tag,
21710
+ position,
21711
+ styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__.YamlStyleGroup.Block,
21712
+ style
21713
+ });
21714
+ return this.schema.resolve(scalarNode);
21715
+ }
21716
+ };
21717
+ comment = {
21718
+ enter: node => {
21719
+ return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_13__["default"]({
21720
+ content: node.text
21721
+ });
21722
+ }
21723
+ };
21405
21724
 
21406
- // kind node not present in flow node, creating empty node
21407
- const emptyPoint = (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__.Point)({
21408
- row: kindCandidate.endPosition.row,
21409
- column: kindCandidate.endPosition.column,
21410
- char: kindCandidate.endIndex
21411
- });
21412
- const emptyScalarNode = (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__["default"])({
21413
- content: '',
21414
- anchor: kindNodeToYamlAnchor(kindCandidate),
21415
- tag: kindNodeToYamlTag(kindCandidate),
21416
- position: (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__["default"])({
21417
- start: emptyPoint,
21418
- end: emptyPoint
21419
- }),
21420
- styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__.YamlStyleGroup.Flow,
21421
- style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__.YamlStyle.Plain
21422
- });
21423
- return [...node.children, emptyScalarNode];
21424
- }
21425
- };
21426
- this.tag = {
21427
- enter() {
21428
- return null;
21429
- }
21430
- };
21431
- this.anchor = {
21432
- enter() {
21433
- return null;
21434
- }
21435
- };
21436
- this.block_mapping = {
21437
- enter(node) {
21438
- const position = toPosition(node);
21439
- const tag = kindNodeToYamlTag(node);
21440
- const anchor = kindNodeToYamlAnchor(node);
21441
- const mappingNode = (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_13__["default"])({
21442
- children: node.children,
21443
- position,
21444
- anchor,
21445
- tag,
21446
- styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__.YamlStyleGroup.Block,
21447
- style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__.YamlStyle.NextLine,
21448
- isMissing: node.isMissing
21449
- });
21450
- return this.schema.resolve(mappingNode);
21451
- }
21452
- };
21453
- this.block_mapping_pair = {
21454
- enter(node) {
21455
- const position = toPosition(node);
21456
- const children = [...node.children];
21457
- if (hasKeyValuePairEmptyKey(node)) {
21458
- const keyNode = createKeyValuePairEmptyKey(node);
21459
- children.unshift(keyNode);
21460
- }
21461
- if (hasKeyValuePairEmptyValue(node)) {
21462
- const valueNode = createKeyValuePairEmptyValue(node);
21463
- children.push(valueNode);
21464
- }
21465
- return (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_14__["default"])({
21466
- children,
21467
- position,
21468
- styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__.YamlStyleGroup.Block,
21469
- isMissing: node.isMissing
21470
- });
21471
- }
21472
- };
21473
- this.flow_mapping = {
21474
- enter(node) {
21475
- const position = toPosition(node);
21476
- const tag = kindNodeToYamlTag(node);
21477
- const anchor = kindNodeToYamlAnchor(node);
21478
- const mappingNode = (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_13__["default"])({
21479
- children: node.children,
21480
- position,
21481
- anchor,
21482
- tag,
21483
- styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__.YamlStyleGroup.Flow,
21484
- style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__.YamlStyle.Explicit,
21485
- isMissing: node.isMissing
21486
- });
21487
- return this.schema.resolve(mappingNode);
21488
- }
21489
- };
21490
- this.flow_pair = {
21491
- enter(node) {
21492
- const position = toPosition(node);
21493
- const children = [...node.children];
21494
- if (hasKeyValuePairEmptyKey(node)) {
21495
- const keyNode = createKeyValuePairEmptyKey(node);
21496
- children.unshift(keyNode);
21497
- }
21498
- if (hasKeyValuePairEmptyValue(node)) {
21499
- const valueNode = createKeyValuePairEmptyValue(node);
21500
- children.push(valueNode);
21501
- }
21502
- return (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_14__["default"])({
21503
- children,
21504
- position,
21505
- styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__.YamlStyleGroup.Flow,
21506
- isMissing: node.isMissing
21507
- });
21508
- }
21509
- };
21510
- this.keyValuePair = {
21511
- leave(node) {
21512
- node.children = node.children.flat();
21513
- }
21514
- };
21515
- this.block_sequence = {
21516
- enter(node) {
21517
- const position = toPosition(node);
21518
- const tag = kindNodeToYamlTag(node);
21519
- const anchor = kindNodeToYamlAnchor(node);
21520
- const sequenceNode = (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_15__["default"])({
21521
- children: node.children,
21522
- position,
21523
- anchor,
21524
- tag,
21525
- styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__.YamlStyleGroup.Block,
21526
- style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__.YamlStyle.NextLine
21527
- });
21528
- return this.schema.resolve(sequenceNode);
21529
- }
21530
- };
21531
- this.block_sequence_item = {
21532
- enter(node) {
21533
- // flow or block node present; first node is always `-` literal
21534
- if (node.children.length > 1) {
21535
- return node.children;
21536
- }
21725
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
21726
+ constructor(schema) {
21727
+ this.schema = schema;
21728
+ }
21537
21729
 
21538
- // create empty node
21539
- const emptyPoint = (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__.Point)({
21540
- row: node.endPosition.row,
21541
- column: node.endPosition.column,
21542
- char: node.endIndex
21543
- });
21544
- const emptyScalarNode = (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__["default"])({
21545
- content: '',
21546
- anchor: null,
21547
- tag: (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__["default"])({
21548
- explicitName: '?',
21549
- kind: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__.YamlNodeKind.Scalar
21550
- }),
21551
- position: (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__["default"])({
21552
- start: emptyPoint,
21553
- end: emptyPoint
21554
- }),
21555
- styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__.YamlStyleGroup.Flow,
21556
- style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__.YamlStyle.Plain
21557
- });
21558
- return [emptyScalarNode];
21559
- }
21560
- };
21561
- this.flow_sequence = {
21562
- enter(node) {
21563
- const position = toPosition(node);
21564
- const tag = kindNodeToYamlTag(node);
21565
- const anchor = kindNodeToYamlAnchor(node);
21566
- const sequenceNode = (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_15__["default"])({
21567
- children: node.children.flat(),
21568
- position,
21569
- anchor,
21570
- tag,
21571
- styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__.YamlStyleGroup.Flow,
21572
- style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__.YamlStyle.Explicit
21573
- });
21574
- return this.schema.resolve(sequenceNode);
21575
- }
21576
- };
21577
- this.sequence = {
21578
- leave(node) {
21579
- node.children = node.children.flat(+Infinity);
21580
- }
21581
- };
21582
- this.plain_scalar = {
21583
- enter(node) {
21584
- const position = toPosition(node);
21585
- const tag = kindNodeToYamlTag(node);
21586
- const anchor = kindNodeToYamlAnchor(node);
21587
- const scalarNode = (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__["default"])({
21588
- content: node.text,
21589
- anchor,
21590
- tag,
21591
- position,
21592
- styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__.YamlStyleGroup.Flow,
21593
- style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__.YamlStyle.Plain
21594
- });
21595
- return this.schema.resolve(scalarNode);
21596
- }
21597
- };
21598
- this.single_quote_scalar = {
21599
- enter(node) {
21600
- const position = toPosition(node);
21601
- const tag = kindNodeToYamlTag(node);
21602
- const anchor = kindNodeToYamlAnchor(node);
21603
- const scalarNode = (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__["default"])({
21604
- content: node.text,
21605
- anchor,
21606
- tag,
21607
- position,
21608
- styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__.YamlStyleGroup.Flow,
21609
- style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__.YamlStyle.SingleQuoted
21610
- });
21611
- return this.schema.resolve(scalarNode);
21612
- }
21613
- };
21614
- this.double_quote_scalar = {
21615
- enter(node) {
21616
- const position = toPosition(node);
21617
- const tag = kindNodeToYamlTag(node);
21618
- const anchor = kindNodeToYamlAnchor(node);
21619
- const scalarNode = (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__["default"])({
21620
- content: node.text,
21621
- anchor,
21622
- tag,
21623
- position,
21624
- styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__.YamlStyleGroup.Flow,
21625
- style: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__.YamlStyle.DoubleQuoted
21626
- });
21627
- return this.schema.resolve(scalarNode);
21628
- }
21629
- };
21630
- this.block_scalar = {
21631
- enter(node) {
21632
- const position = toPosition(node);
21633
- const tag = kindNodeToYamlTag(node);
21634
- const anchor = kindNodeToYamlAnchor(node);
21635
- const style = node.text.startsWith('|') ? _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__.YamlStyle.Literal : node.text.startsWith('>') ? _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__.YamlStyle.Folded : null;
21636
- const scalarNode = (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_5__["default"])({
21637
- content: node.text,
21638
- anchor,
21639
- tag,
21640
- position,
21641
- styleGroup: _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__.YamlStyleGroup.Block,
21642
- style
21643
- });
21644
- return this.schema.resolve(scalarNode);
21645
- }
21646
- };
21647
- this.comment = {
21648
- enter(node) {
21649
- return (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_16__["default"])({
21650
- content: node.text
21651
- });
21652
- }
21653
- };
21654
- this.ERROR = function ERROR(node, key, parent, path) {
21655
- const position = toPosition(node);
21656
- const errorNode = (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_17__["default"])({
21657
- children: node.children,
21730
+ // eslint-disable-next-line class-methods-use-this
21731
+ enter(node) {
21732
+ // missing anonymous literals from CST transformed into AST literal nodes
21733
+ if (node instanceof _TreeCursorSyntaxNode_mjs__WEBPACK_IMPORTED_MODULE_14__["default"] && !node.isNamed) {
21734
+ const position = CstVisitor.toPosition(node);
21735
+ const value = node.type || node.text;
21736
+ const {
21737
+ isMissing
21738
+ } = node;
21739
+ return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_15__["default"]({
21740
+ value,
21658
21741
  position,
21659
- isUnexpected: !node.hasError,
21660
- isMissing: node.isMissing,
21661
- value: node.text
21742
+ isMissing
21662
21743
  });
21663
- if (path.length === 0) {
21664
- return (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_10__["default"])({
21665
- children: [errorNode]
21666
- });
21667
- }
21668
- return errorNode;
21669
- };
21744
+ }
21745
+ return undefined;
21670
21746
  }
21671
- });
21747
+
21748
+ // eslint-disable-next-line class-methods-use-this
21749
+ ERROR(node, key, parent, path) {
21750
+ const position = CstVisitor.toPosition(node);
21751
+ const errorNode = new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_16__["default"]({
21752
+ children: node.children,
21753
+ position,
21754
+ isUnexpected: !node.hasError,
21755
+ isMissing: node.isMissing,
21756
+ value: node.text
21757
+ });
21758
+ if (path.length === 0) {
21759
+ return new _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_7__["default"]({
21760
+ children: [errorNode]
21761
+ });
21762
+ }
21763
+ return errorNode;
21764
+ }
21765
+ }
21672
21766
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CstVisitor);
21673
21767
 
21674
21768
  /***/ }),
@@ -21684,15 +21778,13 @@ __webpack_require__.r(__webpack_exports__);
21684
21778
  /* harmony export */ isNode: () => (/* binding */ isNode),
21685
21779
  /* harmony export */ keyMap: () => (/* binding */ keyMap)
21686
21780
  /* harmony export */ });
21687
- /* harmony import */ var stampit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86591);
21688
- /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(51394);
21689
- /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(4314);
21690
- /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50821);
21691
- /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(36903);
21692
- /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(48355);
21693
- /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(84651);
21694
- /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(67952);
21695
-
21781
+ /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(51394);
21782
+ /* harmony import */ var _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(4314);
21783
+ /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(50821);
21784
+ /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(36903);
21785
+ /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48355);
21786
+ /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(84651);
21787
+ /* harmony import */ var _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(67952);
21696
21788
 
21697
21789
 
21698
21790
  const keyMap = {
@@ -21702,164 +21794,155 @@ const keyMap = {
21702
21794
  keyValuePair: ['children'],
21703
21795
  sequence: ['children'],
21704
21796
  error: ['children'],
21705
- ..._swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.keyMapDefault
21797
+ ..._swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.keyMapDefault
21706
21798
  };
21707
21799
  const getNodeType = node => {
21708
- if ((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.isElement)(node)) {
21709
- return (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.getNodeType)(node);
21800
+ if ((0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.isElement)(node)) {
21801
+ return (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__.getNodeType)(node);
21710
21802
  }
21711
- return (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__.getNodeType)(node);
21803
+ return (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__.getNodeType)(node);
21712
21804
  };
21713
- const isNode = node => (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.isElement)(node) || (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_3__.isNode)(node) || Array.isArray(node);
21805
+ const isNode = node => (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.isElement)(node) || (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__.isNode)(node) || Array.isArray(node);
21714
21806
 
21715
21807
  /* eslint-disable no-underscore-dangle */
21716
21808
 
21717
- const YamlAstVisitor = stampit__WEBPACK_IMPORTED_MODULE_0__({
21718
- props: {
21719
- sourceMap: false,
21720
- processedDocumentCount: 0,
21721
- annotations: [],
21722
- namespace: null
21723
- },
21724
- init() {
21725
- /**
21726
- * Private API.
21727
- */
21728
-
21729
- const maybeAddSourceMap = (node, element) => {
21730
- if (!this.sourceMap) {
21731
- return;
21732
- }
21733
- const sourceMap = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.SourceMapElement();
21734
- // @ts-ignore
21735
- sourceMap.position = node.position;
21736
- // @ts-ignore
21737
- sourceMap.astNode = node;
21738
- element.meta.set('sourceMap', sourceMap);
21739
- };
21740
-
21741
- /**
21742
- * Public API.
21743
- */
21744
-
21745
- this.namespace = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_5__.createNamespace)();
21746
- this.annotations = [];
21747
- this.stream = {
21748
- leave(node) {
21749
- const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.ParseResultElement();
21750
- // @ts-ignore
21751
- element._content = node.children.flat(1);
21752
-
21753
- // mark first-non Annotation element as result
21754
- // @ts-ignore
21755
- const elements = element.findElements(_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.isPrimitiveElement);
21756
- if (elements.length > 0) {
21757
- const resultElement = elements[0];
21758
- resultElement.classes.push('result');
21759
- }
21760
-
21761
- // provide annotations
21762
- this.annotations.forEach(annotationElement => {
21763
- element.push(annotationElement);
21764
- });
21765
- this.annotations = [];
21766
- return element;
21767
- }
21768
- };
21769
- this.comment = function comment(node) {
21770
- const isStreamComment = this.processedDocumentCount === 0;
21771
-
21772
- // we're only interested of stream comments before the first document
21773
- if (isStreamComment) {
21774
- // @ts-ignore
21775
- const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.CommentElement(node.content);
21776
- maybeAddSourceMap(node, element);
21777
- return element;
21778
- }
21779
- return null;
21780
- };
21781
- this.document = function document(node) {
21782
- const shouldWarnAboutMoreDocuments = this.processedDocumentCount === 1;
21783
- const shouldSkipVisitingMoreDocuments = this.processedDocumentCount >= 1;
21784
- if (shouldWarnAboutMoreDocuments) {
21785
- const message = 'Only first document within YAML stream will be used. Rest will be discarded.';
21786
- const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.AnnotationElement(message);
21787
- element.classes.push('warning');
21788
- maybeAddSourceMap(node, element);
21789
- this.annotations.push(element);
21790
- }
21791
- if (shouldSkipVisitingMoreDocuments) {
21792
- return null;
21793
- }
21794
- this.processedDocumentCount += 1;
21795
- return node.children;
21796
- };
21797
- this.mapping = function mapping(node) {
21798
- const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.ObjectElement();
21809
+ class YamlAstVisitor {
21810
+ sourceMap = false;
21811
+ processedDocumentCount = 0;
21812
+ stream = {
21813
+ leave: node => {
21814
+ const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.ParseResultElement();
21799
21815
  // @ts-ignore
21800
- element._content = node.children;
21801
- maybeAddSourceMap(node, element);
21802
- return element;
21803
- };
21804
- this.keyValuePair = function keyValuePair(node) {
21805
- const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_6__.MemberElement();
21816
+ element._content = node.children.flat(1);
21806
21817
 
21818
+ // mark first-non Annotation element as result
21807
21819
  // @ts-ignore
21808
- element.content.key = node.key;
21809
- // @ts-ignore
21810
- element.content.value = node.value;
21811
- maybeAddSourceMap(node, element);
21820
+ const elements = element.findElements(_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.isPrimitiveElement);
21821
+ if (elements.length > 0) {
21822
+ const resultElement = elements[0];
21823
+ resultElement.classes.push('result');
21824
+ }
21812
21825
 
21813
- // process possible errors here that may be present in property node children as we're using direct field access
21814
- node.children.filter(child => child.type === 'error').forEach(errorNode => {
21815
- this.error(errorNode, node, [], [node]);
21826
+ // provide annotations
21827
+ this.annotations.forEach(annotationElement => {
21828
+ element.push(annotationElement);
21816
21829
  });
21830
+ this.annotations = [];
21817
21831
  return element;
21818
- };
21819
- this.sequence = function sequence(node) {
21820
- const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.ArrayElement();
21821
- // @ts-ignore
21822
- element._content = node.children;
21823
- maybeAddSourceMap(node, element);
21824
- return element;
21825
- };
21826
- this.scalar = function scalar(node) {
21827
- const element = this.namespace.toElement(node.content);
21832
+ }
21833
+ };
21834
+ constructor() {
21835
+ this.annotations = [];
21836
+ this.namespace = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.createNamespace)();
21837
+ }
21838
+ comment(node) {
21839
+ const isStreamComment = this.processedDocumentCount === 0;
21828
21840
 
21829
- // translate style information about empty nodes
21830
- if (node.content === '' && node.style === _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_7__.YamlStyle.Plain) {
21831
- element.classes.push('yaml-e-node');
21832
- element.classes.push('yaml-e-scalar');
21833
- }
21834
- maybeAddSourceMap(node, element);
21841
+ // we're only interested of stream comments before the first document
21842
+ if (isStreamComment) {
21843
+ // @ts-ignore
21844
+ const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.CommentElement(node.content);
21845
+ this.maybeAddSourceMap(node, element);
21835
21846
  return element;
21836
- };
21837
- this.literal = function literal(node) {
21838
- if (node.isMissing) {
21839
- const message = `(Missing ${node.value})`;
21840
- const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.AnnotationElement(message);
21841
- element.classes.push('warning');
21842
- maybeAddSourceMap(node, element);
21843
- this.annotations.push(element);
21844
- }
21845
- return null;
21846
- };
21847
- this.error = function error(node, key, parent, path) {
21848
- const message = node.isUnexpected ? '(Unexpected YAML syntax error)' : '(Error YAML syntax error)';
21849
- const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.AnnotationElement(message);
21850
- element.classes.push('error');
21851
- maybeAddSourceMap(node, element);
21852
- if (path.length === 0) {
21853
- // no document to visit, only error is present in CST
21854
- const parseResultElement = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_4__.ParseResultElement();
21855
- parseResultElement.push(element);
21856
- return parseResultElement;
21857
- }
21847
+ }
21848
+ return null;
21849
+ }
21850
+ document(node) {
21851
+ const shouldWarnAboutMoreDocuments = this.processedDocumentCount === 1;
21852
+ const shouldSkipVisitingMoreDocuments = this.processedDocumentCount >= 1;
21853
+ if (shouldWarnAboutMoreDocuments) {
21854
+ const message = 'Only first document within YAML stream will be used. Rest will be discarded.';
21855
+ const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.AnnotationElement(message);
21856
+ element.classes.push('warning');
21857
+ this.maybeAddSourceMap(node, element);
21858
21858
  this.annotations.push(element);
21859
+ }
21860
+ if (shouldSkipVisitingMoreDocuments) {
21859
21861
  return null;
21860
- };
21862
+ }
21863
+ this.processedDocumentCount += 1;
21864
+ return node.children;
21861
21865
  }
21862
- });
21866
+ mapping(node) {
21867
+ const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.ObjectElement();
21868
+ // @ts-ignore
21869
+ element._content = node.children;
21870
+ this.maybeAddSourceMap(node, element);
21871
+ return element;
21872
+ }
21873
+ keyValuePair(node) {
21874
+ const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_5__.MemberElement();
21875
+
21876
+ // @ts-ignore
21877
+ element.content.key = node.key;
21878
+ // @ts-ignore
21879
+ element.content.value = node.value;
21880
+ this.maybeAddSourceMap(node, element);
21881
+
21882
+ // process possible errors here that may be present in property node children as we're using direct field access
21883
+ node.children
21884
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
21885
+ .filter(child => child.type === 'error')
21886
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
21887
+ .forEach(errorNode => {
21888
+ this.error(errorNode, node, [], [node]);
21889
+ });
21890
+ return element;
21891
+ }
21892
+ sequence(node) {
21893
+ const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.ArrayElement();
21894
+ // @ts-ignore
21895
+ element._content = node.children;
21896
+ this.maybeAddSourceMap(node, element);
21897
+ return element;
21898
+ }
21899
+ scalar(node) {
21900
+ const element = this.namespace.toElement(node.content);
21901
+
21902
+ // translate style information about empty nodes
21903
+ if (node.content === '' && node.style === _swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_6__.YamlStyle.Plain) {
21904
+ element.classes.push('yaml-e-node');
21905
+ element.classes.push('yaml-e-scalar');
21906
+ }
21907
+ this.maybeAddSourceMap(node, element);
21908
+ return element;
21909
+ }
21910
+ literal(node) {
21911
+ if (node.isMissing) {
21912
+ const message = `(Missing ${node.value})`;
21913
+ const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.AnnotationElement(message);
21914
+ element.classes.push('warning');
21915
+ this.maybeAddSourceMap(node, element);
21916
+ this.annotations.push(element);
21917
+ }
21918
+ return null;
21919
+ }
21920
+ error(node, key, parent, path) {
21921
+ const message = node.isUnexpected ? '(Unexpected YAML syntax error)' : '(Error YAML syntax error)';
21922
+ const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.AnnotationElement(message);
21923
+ element.classes.push('error');
21924
+ this.maybeAddSourceMap(node, element);
21925
+ if (path.length === 0) {
21926
+ // no document to visit, only error is present in CST
21927
+ const parseResultElement = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.ParseResultElement();
21928
+ parseResultElement.push(element);
21929
+ return parseResultElement;
21930
+ }
21931
+ this.annotations.push(element);
21932
+ return null;
21933
+ }
21934
+ maybeAddSourceMap(node, element) {
21935
+ if (!this.sourceMap) {
21936
+ return;
21937
+ }
21938
+ const sourceMap = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.SourceMapElement();
21939
+ // @ts-ignore
21940
+ sourceMap.position = node.position;
21941
+ // @ts-ignore
21942
+ sourceMap.astNode = node;
21943
+ element.meta.set('sourceMap', sourceMap);
21944
+ }
21945
+ }
21863
21946
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (YamlAstVisitor);
21864
21947
 
21865
21948
  /***/ })