Schema-e94716c8.js 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682
  1. import { _ as _createForOfIteratorHelper, h as _slicedToArray, a as _typeof, b as _createClass, e as _defineProperty, c as _classCallCheck, d as defaultTagPrefix, n as defaultTags } from './PlainValue-b8036b75.js';
  2. import { d as YAMLMap, g as resolveMap, Y as YAMLSeq, h as resolveSeq, j as resolveString, c as stringifyString, s as strOptions, S as Scalar, n as nullOptions, a as boolOptions, i as intOptions, k as stringifyNumber, N as Node, A as Alias, P as Pair } from './resolveSeq-492ab440.js';
  3. import { b as binary, o as omap, p as pairs, s as set, i as intTime, f as floatTime, t as timestamp, a as warnOptionDeprecation } from './warnings-df54cb69.js';
  4. function createMap(schema, obj, ctx) {
  5. var map = new YAMLMap(schema);
  6. if (obj instanceof Map) {
  7. var _iterator = _createForOfIteratorHelper(obj),
  8. _step;
  9. try {
  10. for (_iterator.s(); !(_step = _iterator.n()).done;) {
  11. var _step$value = _slicedToArray(_step.value, 2),
  12. key = _step$value[0],
  13. value = _step$value[1];
  14. map.items.push(schema.createPair(key, value, ctx));
  15. }
  16. } catch (err) {
  17. _iterator.e(err);
  18. } finally {
  19. _iterator.f();
  20. }
  21. } else if (obj && _typeof(obj) === 'object') {
  22. for (var _i = 0, _Object$keys = Object.keys(obj); _i < _Object$keys.length; _i++) {
  23. var _key = _Object$keys[_i];
  24. map.items.push(schema.createPair(_key, obj[_key], ctx));
  25. }
  26. }
  27. if (typeof schema.sortMapEntries === 'function') {
  28. map.items.sort(schema.sortMapEntries);
  29. }
  30. return map;
  31. }
  32. var map = {
  33. createNode: createMap,
  34. default: true,
  35. nodeClass: YAMLMap,
  36. tag: 'tag:yaml.org,2002:map',
  37. resolve: resolveMap
  38. };
  39. function createSeq(schema, obj, ctx) {
  40. var seq = new YAMLSeq(schema);
  41. if (obj && obj[Symbol.iterator]) {
  42. var _iterator = _createForOfIteratorHelper(obj),
  43. _step;
  44. try {
  45. for (_iterator.s(); !(_step = _iterator.n()).done;) {
  46. var it = _step.value;
  47. var v = schema.createNode(it, ctx.wrapScalars, null, ctx);
  48. seq.items.push(v);
  49. }
  50. } catch (err) {
  51. _iterator.e(err);
  52. } finally {
  53. _iterator.f();
  54. }
  55. }
  56. return seq;
  57. }
  58. var seq = {
  59. createNode: createSeq,
  60. default: true,
  61. nodeClass: YAMLSeq,
  62. tag: 'tag:yaml.org,2002:seq',
  63. resolve: resolveSeq
  64. };
  65. var string = {
  66. identify: function identify(value) {
  67. return typeof value === 'string';
  68. },
  69. default: true,
  70. tag: 'tag:yaml.org,2002:str',
  71. resolve: resolveString,
  72. stringify: function stringify(item, ctx, onComment, onChompKeep) {
  73. ctx = Object.assign({
  74. actualString: true
  75. }, ctx);
  76. return stringifyString(item, ctx, onComment, onChompKeep);
  77. },
  78. options: strOptions
  79. };
  80. var failsafe = [map, seq, string];
  81. /* global BigInt */
  82. var intIdentify$2 = function intIdentify(value) {
  83. return typeof value === 'bigint' || Number.isInteger(value);
  84. };
  85. var intResolve$1 = function intResolve(src, part, radix) {
  86. return intOptions.asBigInt ? BigInt(src) : parseInt(part, radix);
  87. };
  88. function intStringify$1(node, radix, prefix) {
  89. var value = node.value;
  90. if (intIdentify$2(value) && value >= 0) return prefix + value.toString(radix);
  91. return stringifyNumber(node);
  92. }
  93. var nullObj = {
  94. identify: function identify(value) {
  95. return value == null;
  96. },
  97. createNode: function createNode(schema, value, ctx) {
  98. return ctx.wrapScalars ? new Scalar(null) : null;
  99. },
  100. default: true,
  101. tag: 'tag:yaml.org,2002:null',
  102. test: /^(?:~|[Nn]ull|NULL)?$/,
  103. resolve: function resolve() {
  104. return null;
  105. },
  106. options: nullOptions,
  107. stringify: function stringify() {
  108. return nullOptions.nullStr;
  109. }
  110. };
  111. var boolObj = {
  112. identify: function identify(value) {
  113. return typeof value === 'boolean';
  114. },
  115. default: true,
  116. tag: 'tag:yaml.org,2002:bool',
  117. test: /^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,
  118. resolve: function resolve(str) {
  119. return str[0] === 't' || str[0] === 'T';
  120. },
  121. options: boolOptions,
  122. stringify: function stringify(_ref) {
  123. var value = _ref.value;
  124. return value ? boolOptions.trueStr : boolOptions.falseStr;
  125. }
  126. };
  127. var octObj = {
  128. identify: function identify(value) {
  129. return intIdentify$2(value) && value >= 0;
  130. },
  131. default: true,
  132. tag: 'tag:yaml.org,2002:int',
  133. format: 'OCT',
  134. test: /^0o([0-7]+)$/,
  135. resolve: function resolve(str, oct) {
  136. return intResolve$1(str, oct, 8);
  137. },
  138. options: intOptions,
  139. stringify: function stringify(node) {
  140. return intStringify$1(node, 8, '0o');
  141. }
  142. };
  143. var intObj = {
  144. identify: intIdentify$2,
  145. default: true,
  146. tag: 'tag:yaml.org,2002:int',
  147. test: /^[-+]?[0-9]+$/,
  148. resolve: function resolve(str) {
  149. return intResolve$1(str, str, 10);
  150. },
  151. options: intOptions,
  152. stringify: stringifyNumber
  153. };
  154. var hexObj = {
  155. identify: function identify(value) {
  156. return intIdentify$2(value) && value >= 0;
  157. },
  158. default: true,
  159. tag: 'tag:yaml.org,2002:int',
  160. format: 'HEX',
  161. test: /^0x([0-9a-fA-F]+)$/,
  162. resolve: function resolve(str, hex) {
  163. return intResolve$1(str, hex, 16);
  164. },
  165. options: intOptions,
  166. stringify: function stringify(node) {
  167. return intStringify$1(node, 16, '0x');
  168. }
  169. };
  170. var nanObj = {
  171. identify: function identify(value) {
  172. return typeof value === 'number';
  173. },
  174. default: true,
  175. tag: 'tag:yaml.org,2002:float',
  176. test: /^(?:[-+]?\.inf|(\.nan))$/i,
  177. resolve: function resolve(str, nan) {
  178. return nan ? NaN : str[0] === '-' ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY;
  179. },
  180. stringify: stringifyNumber
  181. };
  182. var expObj = {
  183. identify: function identify(value) {
  184. return typeof value === 'number';
  185. },
  186. default: true,
  187. tag: 'tag:yaml.org,2002:float',
  188. format: 'EXP',
  189. test: /^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,
  190. resolve: function resolve(str) {
  191. return parseFloat(str);
  192. },
  193. stringify: function stringify(_ref2) {
  194. var value = _ref2.value;
  195. return Number(value).toExponential();
  196. }
  197. };
  198. var floatObj = {
  199. identify: function identify(value) {
  200. return typeof value === 'number';
  201. },
  202. default: true,
  203. tag: 'tag:yaml.org,2002:float',
  204. test: /^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,
  205. resolve: function resolve(str, frac1, frac2) {
  206. var frac = frac1 || frac2;
  207. var node = new Scalar(parseFloat(str));
  208. if (frac && frac[frac.length - 1] === '0') node.minFractionDigits = frac.length;
  209. return node;
  210. },
  211. stringify: stringifyNumber
  212. };
  213. var core = failsafe.concat([nullObj, boolObj, octObj, intObj, hexObj, nanObj, expObj, floatObj]);
  214. /* global BigInt */
  215. var intIdentify$1 = function intIdentify(value) {
  216. return typeof value === 'bigint' || Number.isInteger(value);
  217. };
  218. var stringifyJSON = function stringifyJSON(_ref) {
  219. var value = _ref.value;
  220. return JSON.stringify(value);
  221. };
  222. var json = [map, seq, {
  223. identify: function identify(value) {
  224. return typeof value === 'string';
  225. },
  226. default: true,
  227. tag: 'tag:yaml.org,2002:str',
  228. resolve: resolveString,
  229. stringify: stringifyJSON
  230. }, {
  231. identify: function identify(value) {
  232. return value == null;
  233. },
  234. createNode: function createNode(schema, value, ctx) {
  235. return ctx.wrapScalars ? new Scalar(null) : null;
  236. },
  237. default: true,
  238. tag: 'tag:yaml.org,2002:null',
  239. test: /^null$/,
  240. resolve: function resolve() {
  241. return null;
  242. },
  243. stringify: stringifyJSON
  244. }, {
  245. identify: function identify(value) {
  246. return typeof value === 'boolean';
  247. },
  248. default: true,
  249. tag: 'tag:yaml.org,2002:bool',
  250. test: /^true|false$/,
  251. resolve: function resolve(str) {
  252. return str === 'true';
  253. },
  254. stringify: stringifyJSON
  255. }, {
  256. identify: intIdentify$1,
  257. default: true,
  258. tag: 'tag:yaml.org,2002:int',
  259. test: /^-?(?:0|[1-9][0-9]*)$/,
  260. resolve: function resolve(str) {
  261. return intOptions.asBigInt ? BigInt(str) : parseInt(str, 10);
  262. },
  263. stringify: function stringify(_ref2) {
  264. var value = _ref2.value;
  265. return intIdentify$1(value) ? value.toString() : JSON.stringify(value);
  266. }
  267. }, {
  268. identify: function identify(value) {
  269. return typeof value === 'number';
  270. },
  271. default: true,
  272. tag: 'tag:yaml.org,2002:float',
  273. test: /^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,
  274. resolve: function resolve(str) {
  275. return parseFloat(str);
  276. },
  277. stringify: stringifyJSON
  278. }];
  279. json.scalarFallback = function (str) {
  280. throw new SyntaxError("Unresolved plain scalar ".concat(JSON.stringify(str)));
  281. };
  282. /* global BigInt */
  283. var boolStringify = function boolStringify(_ref) {
  284. var value = _ref.value;
  285. return value ? boolOptions.trueStr : boolOptions.falseStr;
  286. };
  287. var intIdentify = function intIdentify(value) {
  288. return typeof value === 'bigint' || Number.isInteger(value);
  289. };
  290. function intResolve(sign, src, radix) {
  291. var str = src.replace(/_/g, '');
  292. if (intOptions.asBigInt) {
  293. switch (radix) {
  294. case 2:
  295. str = "0b".concat(str);
  296. break;
  297. case 8:
  298. str = "0o".concat(str);
  299. break;
  300. case 16:
  301. str = "0x".concat(str);
  302. break;
  303. }
  304. var _n = BigInt(str);
  305. return sign === '-' ? BigInt(-1) * _n : _n;
  306. }
  307. var n = parseInt(str, radix);
  308. return sign === '-' ? -1 * n : n;
  309. }
  310. function intStringify(node, radix, prefix) {
  311. var value = node.value;
  312. if (intIdentify(value)) {
  313. var str = value.toString(radix);
  314. return value < 0 ? '-' + prefix + str.substr(1) : prefix + str;
  315. }
  316. return stringifyNumber(node);
  317. }
  318. var yaml11 = failsafe.concat([{
  319. identify: function identify(value) {
  320. return value == null;
  321. },
  322. createNode: function createNode(schema, value, ctx) {
  323. return ctx.wrapScalars ? new Scalar(null) : null;
  324. },
  325. default: true,
  326. tag: 'tag:yaml.org,2002:null',
  327. test: /^(?:~|[Nn]ull|NULL)?$/,
  328. resolve: function resolve() {
  329. return null;
  330. },
  331. options: nullOptions,
  332. stringify: function stringify() {
  333. return nullOptions.nullStr;
  334. }
  335. }, {
  336. identify: function identify(value) {
  337. return typeof value === 'boolean';
  338. },
  339. default: true,
  340. tag: 'tag:yaml.org,2002:bool',
  341. test: /^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,
  342. resolve: function resolve() {
  343. return true;
  344. },
  345. options: boolOptions,
  346. stringify: boolStringify
  347. }, {
  348. identify: function identify(value) {
  349. return typeof value === 'boolean';
  350. },
  351. default: true,
  352. tag: 'tag:yaml.org,2002:bool',
  353. test: /^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,
  354. resolve: function resolve() {
  355. return false;
  356. },
  357. options: boolOptions,
  358. stringify: boolStringify
  359. }, {
  360. identify: intIdentify,
  361. default: true,
  362. tag: 'tag:yaml.org,2002:int',
  363. format: 'BIN',
  364. test: /^([-+]?)0b([0-1_]+)$/,
  365. resolve: function resolve(str, sign, bin) {
  366. return intResolve(sign, bin, 2);
  367. },
  368. stringify: function stringify(node) {
  369. return intStringify(node, 2, '0b');
  370. }
  371. }, {
  372. identify: intIdentify,
  373. default: true,
  374. tag: 'tag:yaml.org,2002:int',
  375. format: 'OCT',
  376. test: /^([-+]?)0([0-7_]+)$/,
  377. resolve: function resolve(str, sign, oct) {
  378. return intResolve(sign, oct, 8);
  379. },
  380. stringify: function stringify(node) {
  381. return intStringify(node, 8, '0');
  382. }
  383. }, {
  384. identify: intIdentify,
  385. default: true,
  386. tag: 'tag:yaml.org,2002:int',
  387. test: /^([-+]?)([0-9][0-9_]*)$/,
  388. resolve: function resolve(str, sign, abs) {
  389. return intResolve(sign, abs, 10);
  390. },
  391. stringify: stringifyNumber
  392. }, {
  393. identify: intIdentify,
  394. default: true,
  395. tag: 'tag:yaml.org,2002:int',
  396. format: 'HEX',
  397. test: /^([-+]?)0x([0-9a-fA-F_]+)$/,
  398. resolve: function resolve(str, sign, hex) {
  399. return intResolve(sign, hex, 16);
  400. },
  401. stringify: function stringify(node) {
  402. return intStringify(node, 16, '0x');
  403. }
  404. }, {
  405. identify: function identify(value) {
  406. return typeof value === 'number';
  407. },
  408. default: true,
  409. tag: 'tag:yaml.org,2002:float',
  410. test: /^(?:[-+]?\.inf|(\.nan))$/i,
  411. resolve: function resolve(str, nan) {
  412. return nan ? NaN : str[0] === '-' ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY;
  413. },
  414. stringify: stringifyNumber
  415. }, {
  416. identify: function identify(value) {
  417. return typeof value === 'number';
  418. },
  419. default: true,
  420. tag: 'tag:yaml.org,2002:float',
  421. format: 'EXP',
  422. test: /^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,
  423. resolve: function resolve(str) {
  424. return parseFloat(str.replace(/_/g, ''));
  425. },
  426. stringify: function stringify(_ref2) {
  427. var value = _ref2.value;
  428. return Number(value).toExponential();
  429. }
  430. }, {
  431. identify: function identify(value) {
  432. return typeof value === 'number';
  433. },
  434. default: true,
  435. tag: 'tag:yaml.org,2002:float',
  436. test: /^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,
  437. resolve: function resolve(str, frac) {
  438. var node = new Scalar(parseFloat(str.replace(/_/g, '')));
  439. if (frac) {
  440. var f = frac.replace(/_/g, '');
  441. if (f[f.length - 1] === '0') node.minFractionDigits = f.length;
  442. }
  443. return node;
  444. },
  445. stringify: stringifyNumber
  446. }], binary, omap, pairs, set, intTime, floatTime, timestamp);
  447. var schemas = {
  448. core: core,
  449. failsafe: failsafe,
  450. json: json,
  451. yaml11: yaml11
  452. };
  453. var tags = {
  454. binary: binary,
  455. bool: boolObj,
  456. float: floatObj,
  457. floatExp: expObj,
  458. floatNaN: nanObj,
  459. floatTime: floatTime,
  460. int: intObj,
  461. intHex: hexObj,
  462. intOct: octObj,
  463. intTime: intTime,
  464. map: map,
  465. null: nullObj,
  466. omap: omap,
  467. pairs: pairs,
  468. seq: seq,
  469. set: set,
  470. timestamp: timestamp
  471. };
  472. function findTagObject(value, tagName, tags) {
  473. if (tagName) {
  474. var match = tags.filter(function (t) {
  475. return t.tag === tagName;
  476. });
  477. var tagObj = match.find(function (t) {
  478. return !t.format;
  479. }) || match[0];
  480. if (!tagObj) throw new Error("Tag ".concat(tagName, " not found"));
  481. return tagObj;
  482. } // TODO: deprecate/remove class check
  483. return tags.find(function (t) {
  484. return (t.identify && t.identify(value) || t.class && value instanceof t.class) && !t.format;
  485. });
  486. }
  487. function createNode(value, tagName, ctx) {
  488. if (value instanceof Node) return value;
  489. var defaultPrefix = ctx.defaultPrefix,
  490. onTagObj = ctx.onTagObj,
  491. prevObjects = ctx.prevObjects,
  492. schema = ctx.schema,
  493. wrapScalars = ctx.wrapScalars;
  494. if (tagName && tagName.startsWith('!!')) tagName = defaultPrefix + tagName.slice(2);
  495. var tagObj = findTagObject(value, tagName, schema.tags);
  496. if (!tagObj) {
  497. if (typeof value.toJSON === 'function') value = value.toJSON();
  498. if (!value || _typeof(value) !== 'object') return wrapScalars ? new Scalar(value) : value;
  499. tagObj = value instanceof Map ? map : value[Symbol.iterator] ? seq : map;
  500. }
  501. if (onTagObj) {
  502. onTagObj(tagObj);
  503. delete ctx.onTagObj;
  504. } // Detect duplicate references to the same object & use Alias nodes for all
  505. // after first. The `obj` wrapper allows for circular references to resolve.
  506. var obj = {
  507. value: undefined,
  508. node: undefined
  509. };
  510. if (value && _typeof(value) === 'object' && prevObjects) {
  511. var prev = prevObjects.get(value);
  512. if (prev) {
  513. var alias = new Alias(prev); // leaves source dirty; must be cleaned by caller
  514. ctx.aliasNodes.push(alias); // defined along with prevObjects
  515. return alias;
  516. }
  517. obj.value = value;
  518. prevObjects.set(value, obj);
  519. }
  520. obj.node = tagObj.createNode ? tagObj.createNode(ctx.schema, value, ctx) : wrapScalars ? new Scalar(value) : value;
  521. if (tagName && obj.node instanceof Node) obj.node.tag = tagName;
  522. return obj.node;
  523. }
  524. function getSchemaTags(schemas, knownTags, customTags, schemaId) {
  525. var tags = schemas[schemaId.replace(/\W/g, '')]; // 'yaml-1.1' -> 'yaml11'
  526. if (!tags) {
  527. var keys = Object.keys(schemas).map(function (key) {
  528. return JSON.stringify(key);
  529. }).join(', ');
  530. throw new Error("Unknown schema \"".concat(schemaId, "\"; use one of ").concat(keys));
  531. }
  532. if (Array.isArray(customTags)) {
  533. var _iterator = _createForOfIteratorHelper(customTags),
  534. _step;
  535. try {
  536. for (_iterator.s(); !(_step = _iterator.n()).done;) {
  537. var tag = _step.value;
  538. tags = tags.concat(tag);
  539. }
  540. } catch (err) {
  541. _iterator.e(err);
  542. } finally {
  543. _iterator.f();
  544. }
  545. } else if (typeof customTags === 'function') {
  546. tags = customTags(tags.slice());
  547. }
  548. for (var i = 0; i < tags.length; ++i) {
  549. var _tag = tags[i];
  550. if (typeof _tag === 'string') {
  551. var tagObj = knownTags[_tag];
  552. if (!tagObj) {
  553. var _keys = Object.keys(knownTags).map(function (key) {
  554. return JSON.stringify(key);
  555. }).join(', ');
  556. throw new Error("Unknown custom tag \"".concat(_tag, "\"; use one of ").concat(_keys));
  557. }
  558. tags[i] = tagObj;
  559. }
  560. }
  561. return tags;
  562. }
  563. var sortMapEntriesByKey = function sortMapEntriesByKey(a, b) {
  564. return a.key < b.key ? -1 : a.key > b.key ? 1 : 0;
  565. };
  566. var Schema = /*#__PURE__*/function () {
  567. // TODO: remove in v2
  568. // TODO: remove in v2
  569. function Schema(_ref) {
  570. var customTags = _ref.customTags,
  571. merge = _ref.merge,
  572. schema = _ref.schema,
  573. sortMapEntries = _ref.sortMapEntries,
  574. deprecatedCustomTags = _ref.tags;
  575. _classCallCheck(this, Schema);
  576. this.merge = !!merge;
  577. this.name = schema;
  578. this.sortMapEntries = sortMapEntries === true ? sortMapEntriesByKey : sortMapEntries || null;
  579. if (!customTags && deprecatedCustomTags) warnOptionDeprecation('tags', 'customTags');
  580. this.tags = getSchemaTags(schemas, tags, customTags || deprecatedCustomTags, schema);
  581. }
  582. _createClass(Schema, [{
  583. key: "createNode",
  584. value: function createNode$1(value, wrapScalars, tagName, ctx) {
  585. var baseCtx = {
  586. defaultPrefix: Schema.defaultPrefix,
  587. schema: this,
  588. wrapScalars: wrapScalars
  589. };
  590. var createCtx = ctx ? Object.assign(ctx, baseCtx) : baseCtx;
  591. return createNode(value, tagName, createCtx);
  592. }
  593. }, {
  594. key: "createPair",
  595. value: function createPair(key, value, ctx) {
  596. if (!ctx) ctx = {
  597. wrapScalars: true
  598. };
  599. var k = this.createNode(key, ctx.wrapScalars, null, ctx);
  600. var v = this.createNode(value, ctx.wrapScalars, null, ctx);
  601. return new Pair(k, v);
  602. }
  603. }]);
  604. return Schema;
  605. }();
  606. _defineProperty(Schema, "defaultPrefix", defaultTagPrefix);
  607. _defineProperty(Schema, "defaultTags", defaultTags);
  608. export { Schema as S };