>>2]|=e<>>2]|=(192|e>>>6)<
>>2]|=(128|63&e)<
=57344?(a[i>>>2]|=(224|e>>>12)<
>>2]|=(128|e>>>6&63)<
>>2]|=(128|63&e)<
>>2]|=(240|e>>>18)<
>>2]|=(128|e>>>12&63)<
>>2]|=(128|e>>>6&63)<
>>2]|=(128|63&e)<
>>2]|=t[h]<
=64?(this.start=i-64,this.hash(),this.hashed=!0):this.start=i}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this},t.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,r=this.lastByteIndex;t[r>>>2]|=y[3&r],r>=56&&(this.hashed||this.hash(),t[0]=t[16],t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.bytes<<3,t[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},t.prototype.hash=function(){var t,r,e,i,s,h,n=this.blocks;this.first?r=((r=((t=((t=n[0]-680876937)<<7|t>>>25)-271733879<<0)^(e=((e=(-271733879^(i=((i=(-1732584194^2004318071&t)+n[1]-117830708)<<12|i>>>20)+t<<0)&(-271733879^t))+n[2]-1126478375)<<17|e>>>15)+i<<0)&(i^t))+n[3]-1316259209)<<22|r>>>10)+e<<0:(t=this.h0,r=this.h1,e=this.h2,r=((r+=((t=((t+=((i=this.h3)^r&(e^i))+n[0]-680876936)<<7|t>>>25)+r<<0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+n[1]-389564586)<<12|i>>>20)+t<<0)&(t^r))+n[2]+606105819)<<17|e>>>15)+i<<0)&(i^t))+n[3]-1044525330)<<22|r>>>10)+e<<0),r=((r+=((t=((t+=(i^r&(e^i))+n[4]-176418897)<<7|t>>>25)+r<<0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+n[5]+1200080426)<<12|i>>>20)+t<<0)&(t^r))+n[6]-1473231341)<<17|e>>>15)+i<<0)&(i^t))+n[7]-45705983)<<22|r>>>10)+e<<0,r=((r+=((t=((t+=(i^r&(e^i))+n[8]+1770035416)<<7|t>>>25)+r<<0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+n[9]-1958414417)<<12|i>>>20)+t<<0)&(t^r))+n[10]-42063)<<17|e>>>15)+i<<0)&(i^t))+n[11]-1990404162)<<22|r>>>10)+e<<0,r=((r+=((t=((t+=(i^r&(e^i))+n[12]+1804603682)<<7|t>>>25)+r<<0)^(e=((e+=(r^(i=((i+=(e^t&(r^e))+n[13]-40341101)<<12|i>>>20)+t<<0)&(t^r))+n[14]-1502002290)<<17|e>>>15)+i<<0)&(i^t))+n[15]+1236535329)<<22|r>>>10)+e<<0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+n[1]-165796510)<<5|t>>>27)+r<<0)^r))+n[6]-1069501632)<<9|i>>>23)+t<<0)^t&((e=((e+=(t^r&(i^t))+n[11]+643717713)<<14|e>>>18)+i<<0)^i))+n[0]-373897302)<<20|r>>>12)+e<<0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+n[5]-701558691)<<5|t>>>27)+r<<0)^r))+n[10]+38016083)<<9|i>>>23)+t<<0)^t&((e=((e+=(t^r&(i^t))+n[15]-660478335)<<14|e>>>18)+i<<0)^i))+n[4]-405537848)<<20|r>>>12)+e<<0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+n[9]+568446438)<<5|t>>>27)+r<<0)^r))+n[14]-1019803690)<<9|i>>>23)+t<<0)^t&((e=((e+=(t^r&(i^t))+n[3]-187363961)<<14|e>>>18)+i<<0)^i))+n[8]+1163531501)<<20|r>>>12)+e<<0,r=((r+=((i=((i+=(r^e&((t=((t+=(e^i&(r^e))+n[13]-1444681467)<<5|t>>>27)+r<<0)^r))+n[2]-51403784)<<9|i>>>23)+t<<0)^t&((e=((e+=(t^r&(i^t))+n[7]+1735328473)<<14|e>>>18)+i<<0)^i))+n[12]-1926607734)<<20|r>>>12)+e<<0,r=((r+=((h=(i=((i+=((s=r^e)^(t=((t+=(s^i)+n[5]-378558)<<4|t>>>28)+r<<0))+n[8]-2022574463)<<11|i>>>21)+t<<0)^t)^(e=((e+=(h^r)+n[11]+1839030562)<<16|e>>>16)+i<<0))+n[14]-35309556)<<23|r>>>9)+e<<0,r=((r+=((h=(i=((i+=((s=r^e)^(t=((t+=(s^i)+n[1]-1530992060)<<4|t>>>28)+r<<0))+n[4]+1272893353)<<11|i>>>21)+t<<0)^t)^(e=((e+=(h^r)+n[7]-155497632)<<16|e>>>16)+i<<0))+n[10]-1094730640)<<23|r>>>9)+e<<0,r=((r+=((h=(i=((i+=((s=r^e)^(t=((t+=(s^i)+n[13]+681279174)<<4|t>>>28)+r<<0))+n[0]-358537222)<<11|i>>>21)+t<<0)^t)^(e=((e+=(h^r)+n[3]-722521979)<<16|e>>>16)+i<<0))+n[6]+76029189)<<23|r>>>9)+e<<0,r=((r+=((h=(i=((i+=((s=r^e)^(t=((t+=(s^i)+n[9]-640364487)<<4|t>>>28)+r<<0))+n[12]-421815835)<<11|i>>>21)+t<<0)^t)^(e=((e+=(h^r)+n[15]+530742520)<<16|e>>>16)+i<<0))+n[2]-995338651)<<23|r>>>9)+e<<0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+n[0]-198630844)<<6|t>>>26)+r<<0)|~e))+n[7]+1126891415)<<10|i>>>22)+t<<0)^((e=((e+=(t^(i|~r))+n[14]-1416354905)<<15|e>>>17)+i<<0)|~t))+n[5]-57434055)<<21|r>>>11)+e<<0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+n[12]+1700485571)<<6|t>>>26)+r<<0)|~e))+n[3]-1894986606)<<10|i>>>22)+t<<0)^((e=((e+=(t^(i|~r))+n[10]-1051523)<<15|e>>>17)+i<<0)|~t))+n[1]-2054922799)<<21|r>>>11)+e<<0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+n[8]+1873313359)<<6|t>>>26)+r<<0)|~e))+n[15]-30611744)<<10|i>>>22)+t<<0)^((e=((e+=(t^(i|~r))+n[6]-1560198380)<<15|e>>>17)+i<<0)|~t))+n[13]+1309151649)<<21|r>>>11)+e<<0,r=((r+=((i=((i+=(r^((t=((t+=(e^(r|~i))+n[4]-145523070)<<6|t>>>26)+r<<0)|~e))+n[11]-1120210379)<<10|i>>>22)+t<<0)^((e=((e+=(t^(i|~r))+n[2]+718787259)<<15|e>>>17)+i<<0)|~t))+n[9]-343485551)<<21|r>>>11)+e<<0,this.first?(this.h0=t+1732584193<<0,this.h1=r-271733879<<0,this.h2=e-1732584194<<0,this.h3=i+271733878<<0,this.first=!1):(this.h0=this.h0+t<<0,this.h1=this.h1+r<<0,this.h2=this.h2+e<<0,this.h3=this.h3+i<<0)},t.prototype.hex=function(){this.finalize();var t=this.h0,r=this.h1,e=this.h2,i=this.h3;return c[t>>>4&15]+c[15&t]+c[t>>>12&15]+c[t>>>8&15]+c[t>>>20&15]+c[t>>>16&15]+c[t>>>28&15]+c[t>>>24&15]+c[r>>>4&15]+c[15&r]+c[r>>>12&15]+c[r>>>8&15]+c[r>>>20&15]+c[r>>>16&15]+c[r>>>28&15]+c[r>>>24&15]+c[e>>>4&15]+c[15&e]+c[e>>>12&15]+c[e>>>8&15]+c[e>>>20&15]+c[e>>>16&15]+c[e>>>28&15]+c[e>>>24&15]+c[i>>>4&15]+c[15&i]+c[i>>>12&15]+c[i>>>8&15]+c[i>>>20&15]+c[i>>>16&15]+c[i>>>28&15]+c[i>>>24&15]},t.prototype.toString=t.prototype.hex,t.prototype.digest=function(){this.finalize();var t=this.h0,r=this.h1,e=this.h2,i=this.h3;return[255&t,t>>>8&255,t>>>16&255,t>>>24&255,255&r,r>>>8&255,r>>>16&255,r>>>24&255,255&e,e>>>8&255,e>>>16&255,e>>>24&255,255&i,i>>>8&255,i>>>16&255,i>>>24&255]},t.prototype.array=t.prototype.digest,t.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(16),r=new Uint32Array(t);return r[0]=this.h0,r[1]=this.h1,r[2]=this.h2,r[3]=this.h3,t},t.prototype.buffer=t.prototype.arrayBuffer,t.prototype.base64=function(){for(var t,r,e,i="",s=this.array(),h=0;h<15;)t=s[h++],r=s[h++],e=s[h++],i+=l[t>>>2]+l[63&(t<<4|r>>>4)]+l[63&(r<<2|e>>>6)]+l[63&e];return t=s[h],i+=l[t>>>2]+l[t<<4&63]+"=="},(r.prototype=new t).finalize=function(){if(t.prototype.finalize.call(this),this.inner){this.inner=!1;var r=this.array();t.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(r),t.prototype.finalize.call(this)}};var O=function(){var r=B("hex");n&&(r=g(r)),r.create=function(){return new t},r.update=function(t){return r.create().update(t)};for(var e=0;e",
+ "homepage": "https://github.com/emn178/js-md5",
+ "bugs": {
+ "url": "https://github.com/emn178/js-md5/issues"
+ },
+ "nyc": {
+ "exclude": [
+ "tests"
+ ]
+ },
+ "browser": {
+ "crypto": false,
+ "buffer": false
+ }
+}
diff --git a/node_modules/js-md5/src/md5.js b/node_modules/js-md5/src/md5.js
new file mode 100644
index 0000000000000000000000000000000000000000..e4bf0eb08c4e2ccbd1e460425320c2bce0224c93
--- /dev/null
+++ b/node_modules/js-md5/src/md5.js
@@ -0,0 +1,876 @@
+/**
+ * [js-md5]{@link https://github.com/emn178/js-md5}
+ *
+ * @namespace md5
+ * @version 0.8.3
+ * @author Chen, Yi-Cyuan [emn178@gmail.com]
+ * @copyright Chen, Yi-Cyuan 2014-2023
+ * @license MIT
+ */
+(function () {
+ 'use strict';
+
+ var INPUT_ERROR = 'input is invalid type';
+ var FINALIZE_ERROR = 'finalize already called';
+ var WINDOW = typeof window === 'object';
+ var root = WINDOW ? window : {};
+ if (root.JS_MD5_NO_WINDOW) {
+ WINDOW = false;
+ }
+ var WEB_WORKER = !WINDOW && typeof self === 'object';
+ var NODE_JS = !root.JS_MD5_NO_NODE_JS && typeof process === 'object' && process.versions && process.versions.node;
+ if (NODE_JS) {
+ root = global;
+ } else if (WEB_WORKER) {
+ root = self;
+ }
+ var COMMON_JS = !root.JS_MD5_NO_COMMON_JS && typeof module === 'object' && module.exports;
+ var AMD = typeof define === 'function' && define.amd;
+ var ARRAY_BUFFER = !root.JS_MD5_NO_ARRAY_BUFFER && typeof ArrayBuffer !== 'undefined';
+ var HEX_CHARS = '0123456789abcdef'.split('');
+ var EXTRA = [128, 32768, 8388608, -2147483648];
+ var SHIFT = [0, 8, 16, 24];
+ var OUTPUT_TYPES = ['hex', 'array', 'digest', 'buffer', 'arrayBuffer', 'base64'];
+ var BASE64_ENCODE_CHAR = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'.split('');
+
+ var blocks = [], buffer8;
+ if (ARRAY_BUFFER) {
+ var buffer = new ArrayBuffer(68);
+ buffer8 = new Uint8Array(buffer);
+ blocks = new Uint32Array(buffer);
+ }
+
+ var isArray = Array.isArray;
+ if (root.JS_MD5_NO_NODE_JS || !isArray) {
+ isArray = function (obj) {
+ return Object.prototype.toString.call(obj) === '[object Array]';
+ };
+ }
+
+ var isView = ArrayBuffer.isView;
+ if (ARRAY_BUFFER && (root.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW || !isView)) {
+ isView = function (obj) {
+ return typeof obj === 'object' && obj.buffer && obj.buffer.constructor === ArrayBuffer;
+ };
+ }
+
+ // [message: string, isString: bool]
+ var formatMessage = function (message) {
+ var type = typeof message;
+ if (type === 'string') {
+ return [message, true];
+ }
+ if (type !== 'object' || message === null) {
+ throw new Error(INPUT_ERROR);
+ }
+ if (ARRAY_BUFFER && message.constructor === ArrayBuffer) {
+ return [new Uint8Array(message), false];
+ }
+ if (!isArray(message) && !isView(message)) {
+ throw new Error(INPUT_ERROR);
+ }
+ return [message, false];
+ }
+
+ /**
+ * @method hex
+ * @memberof md5
+ * @description Output hash as hex string
+ * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
+ * @returns {String} Hex string
+ * @example
+ * md5.hex('The quick brown fox jumps over the lazy dog');
+ * // equal to
+ * md5('The quick brown fox jumps over the lazy dog');
+ */
+ /**
+ * @method digest
+ * @memberof md5
+ * @description Output hash as bytes array
+ * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
+ * @returns {Array} Bytes array
+ * @example
+ * md5.digest('The quick brown fox jumps over the lazy dog');
+ */
+ /**
+ * @method array
+ * @memberof md5
+ * @description Output hash as bytes array
+ * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
+ * @returns {Array} Bytes array
+ * @example
+ * md5.array('The quick brown fox jumps over the lazy dog');
+ */
+ /**
+ * @method arrayBuffer
+ * @memberof md5
+ * @description Output hash as ArrayBuffer
+ * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
+ * @returns {ArrayBuffer} ArrayBuffer
+ * @example
+ * md5.arrayBuffer('The quick brown fox jumps over the lazy dog');
+ */
+ /**
+ * @method buffer
+ * @deprecated This maybe confuse with Buffer in node.js. Please use arrayBuffer instead.
+ * @memberof md5
+ * @description Output hash as ArrayBuffer
+ * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
+ * @returns {ArrayBuffer} ArrayBuffer
+ * @example
+ * md5.buffer('The quick brown fox jumps over the lazy dog');
+ */
+ /**
+ * @method base64
+ * @memberof md5
+ * @description Output hash as base64 string
+ * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
+ * @returns {String} base64 string
+ * @example
+ * md5.base64('The quick brown fox jumps over the lazy dog');
+ */
+ var createOutputMethod = function (outputType) {
+ return function (message) {
+ return new Md5(true).update(message)[outputType]();
+ };
+ };
+
+ /**
+ * @method create
+ * @memberof md5
+ * @description Create Md5 object
+ * @returns {Md5} Md5 object.
+ * @example
+ * var hash = md5.create();
+ */
+ /**
+ * @method update
+ * @memberof md5
+ * @description Create and update Md5 object
+ * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
+ * @returns {Md5} Md5 object.
+ * @example
+ * var hash = md5.update('The quick brown fox jumps over the lazy dog');
+ * // equal to
+ * var hash = md5.create();
+ * hash.update('The quick brown fox jumps over the lazy dog');
+ */
+ var createMethod = function () {
+ var method = createOutputMethod('hex');
+ if (NODE_JS) {
+ method = nodeWrap(method);
+ }
+ method.create = function () {
+ return new Md5();
+ };
+ method.update = function (message) {
+ return method.create().update(message);
+ };
+ for (var i = 0; i < OUTPUT_TYPES.length; ++i) {
+ var type = OUTPUT_TYPES[i];
+ method[type] = createOutputMethod(type);
+ }
+ return method;
+ };
+
+ var nodeWrap = function (method) {
+ var crypto = require('crypto')
+ var Buffer = require('buffer').Buffer;
+ var bufferFrom;
+ if (Buffer.from && !root.JS_MD5_NO_BUFFER_FROM) {
+ bufferFrom = Buffer.from;
+ } else {
+ bufferFrom = function (message) {
+ return new Buffer(message);
+ };
+ }
+ var nodeMethod = function (message) {
+ if (typeof message === 'string') {
+ return crypto.createHash('md5').update(message, 'utf8').digest('hex');
+ } else {
+ if (message === null || message === undefined) {
+ throw new Error(INPUT_ERROR);
+ } else if (message.constructor === ArrayBuffer) {
+ message = new Uint8Array(message);
+ }
+ }
+ if (isArray(message) || isView(message) ||
+ message.constructor === Buffer) {
+ return crypto.createHash('md5').update(bufferFrom(message)).digest('hex');
+ } else {
+ return method(message);
+ }
+ };
+ return nodeMethod;
+ };
+
+ /**
+ * @namespace md5.hmac
+ */
+ /**
+ * @method hex
+ * @memberof md5.hmac
+ * @description Output hash as hex string
+ * @param {String|Array|Uint8Array|ArrayBuffer} key key
+ * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
+ * @returns {String} Hex string
+ * @example
+ * md5.hmac.hex('key', 'The quick brown fox jumps over the lazy dog');
+ * // equal to
+ * md5.hmac('key', 'The quick brown fox jumps over the lazy dog');
+ */
+
+ /**
+ * @method digest
+ * @memberof md5.hmac
+ * @description Output hash as bytes array
+ * @param {String|Array|Uint8Array|ArrayBuffer} key key
+ * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
+ * @returns {Array} Bytes array
+ * @example
+ * md5.hmac.digest('key', 'The quick brown fox jumps over the lazy dog');
+ */
+ /**
+ * @method array
+ * @memberof md5.hmac
+ * @description Output hash as bytes array
+ * @param {String|Array|Uint8Array|ArrayBuffer} key key
+ * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
+ * @returns {Array} Bytes array
+ * @example
+ * md5.hmac.array('key', 'The quick brown fox jumps over the lazy dog');
+ */
+ /**
+ * @method arrayBuffer
+ * @memberof md5.hmac
+ * @description Output hash as ArrayBuffer
+ * @param {String|Array|Uint8Array|ArrayBuffer} key key
+ * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
+ * @returns {ArrayBuffer} ArrayBuffer
+ * @example
+ * md5.hmac.arrayBuffer('key', 'The quick brown fox jumps over the lazy dog');
+ */
+ /**
+ * @method buffer
+ * @deprecated This maybe confuse with Buffer in node.js. Please use arrayBuffer instead.
+ * @memberof md5.hmac
+ * @description Output hash as ArrayBuffer
+ * @param {String|Array|Uint8Array|ArrayBuffer} key key
+ * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
+ * @returns {ArrayBuffer} ArrayBuffer
+ * @example
+ * md5.hmac.buffer('key', 'The quick brown fox jumps over the lazy dog');
+ */
+ /**
+ * @method base64
+ * @memberof md5.hmac
+ * @description Output hash as base64 string
+ * @param {String|Array|Uint8Array|ArrayBuffer} key key
+ * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
+ * @returns {String} base64 string
+ * @example
+ * md5.hmac.base64('key', 'The quick brown fox jumps over the lazy dog');
+ */
+ var createHmacOutputMethod = function (outputType) {
+ return function (key, message) {
+ return new HmacMd5(key, true).update(message)[outputType]();
+ };
+ };
+
+ /**
+ * @method create
+ * @memberof md5.hmac
+ * @description Create HmacMd5 object
+ * @param {String|Array|Uint8Array|ArrayBuffer} key key
+ * @returns {HmacMd5} HmacMd5 object.
+ * @example
+ * var hash = md5.hmac.create('key');
+ */
+ /**
+ * @method update
+ * @memberof md5.hmac
+ * @description Create and update HmacMd5 object
+ * @param {String|Array|Uint8Array|ArrayBuffer} key key
+ * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
+ * @returns {HmacMd5} HmacMd5 object.
+ * @example
+ * var hash = md5.hmac.update('key', 'The quick brown fox jumps over the lazy dog');
+ * // equal to
+ * var hash = md5.hmac.create('key');
+ * hash.update('The quick brown fox jumps over the lazy dog');
+ */
+ var createHmacMethod = function () {
+ var method = createHmacOutputMethod('hex');
+ method.create = function (key) {
+ return new HmacMd5(key);
+ };
+ method.update = function (key, message) {
+ return method.create(key).update(message);
+ };
+ for (var i = 0; i < OUTPUT_TYPES.length; ++i) {
+ var type = OUTPUT_TYPES[i];
+ method[type] = createHmacOutputMethod(type);
+ }
+ return method;
+ };
+
+ /**
+ * Md5 class
+ * @class Md5
+ * @description This is internal class.
+ * @see {@link md5.create}
+ */
+ function Md5(sharedMemory) {
+ if (sharedMemory) {
+ blocks[0] = blocks[16] = blocks[1] = blocks[2] = blocks[3] =
+ blocks[4] = blocks[5] = blocks[6] = blocks[7] =
+ blocks[8] = blocks[9] = blocks[10] = blocks[11] =
+ blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0;
+ this.blocks = blocks;
+ this.buffer8 = buffer8;
+ } else {
+ if (ARRAY_BUFFER) {
+ var buffer = new ArrayBuffer(68);
+ this.buffer8 = new Uint8Array(buffer);
+ this.blocks = new Uint32Array(buffer);
+ } else {
+ this.blocks = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
+ }
+ }
+ this.h0 = this.h1 = this.h2 = this.h3 = this.start = this.bytes = this.hBytes = 0;
+ this.finalized = this.hashed = false;
+ this.first = true;
+ }
+
+ /**
+ * @method update
+ * @memberof Md5
+ * @instance
+ * @description Update hash
+ * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
+ * @returns {Md5} Md5 object.
+ * @see {@link md5.update}
+ */
+ Md5.prototype.update = function (message) {
+ if (this.finalized) {
+ throw new Error(FINALIZE_ERROR);
+ }
+
+ var result = formatMessage(message);
+ message = result[0];
+ var isString = result[1];
+ var code, index = 0, i, length = message.length, blocks = this.blocks;
+ var buffer8 = this.buffer8;
+
+ while (index < length) {
+ if (this.hashed) {
+ this.hashed = false;
+ blocks[0] = blocks[16];
+ blocks[16] = blocks[1] = blocks[2] = blocks[3] =
+ blocks[4] = blocks[5] = blocks[6] = blocks[7] =
+ blocks[8] = blocks[9] = blocks[10] = blocks[11] =
+ blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0;
+ }
+
+ if (isString) {
+ if (ARRAY_BUFFER) {
+ for (i = this.start; index < length && i < 64; ++index) {
+ code = message.charCodeAt(index);
+ if (code < 0x80) {
+ buffer8[i++] = code;
+ } else if (code < 0x800) {
+ buffer8[i++] = 0xc0 | (code >>> 6);
+ buffer8[i++] = 0x80 | (code & 0x3f);
+ } else if (code < 0xd800 || code >= 0xe000) {
+ buffer8[i++] = 0xe0 | (code >>> 12);
+ buffer8[i++] = 0x80 | ((code >>> 6) & 0x3f);
+ buffer8[i++] = 0x80 | (code & 0x3f);
+ } else {
+ code = 0x10000 + (((code & 0x3ff) << 10) | (message.charCodeAt(++index) & 0x3ff));
+ buffer8[i++] = 0xf0 | (code >>> 18);
+ buffer8[i++] = 0x80 | ((code >>> 12) & 0x3f);
+ buffer8[i++] = 0x80 | ((code >>> 6) & 0x3f);
+ buffer8[i++] = 0x80 | (code & 0x3f);
+ }
+ }
+ } else {
+ for (i = this.start; index < length && i < 64; ++index) {
+ code = message.charCodeAt(index);
+ if (code < 0x80) {
+ blocks[i >>> 2] |= code << SHIFT[i++ & 3];
+ } else if (code < 0x800) {
+ blocks[i >>> 2] |= (0xc0 | (code >>> 6)) << SHIFT[i++ & 3];
+ blocks[i >>> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3];
+ } else if (code < 0xd800 || code >= 0xe000) {
+ blocks[i >>> 2] |= (0xe0 | (code >>> 12)) << SHIFT[i++ & 3];
+ blocks[i >>> 2] |= (0x80 | ((code >>> 6) & 0x3f)) << SHIFT[i++ & 3];
+ blocks[i >>> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3];
+ } else {
+ code = 0x10000 + (((code & 0x3ff) << 10) | (message.charCodeAt(++index) & 0x3ff));
+ blocks[i >>> 2] |= (0xf0 | (code >>> 18)) << SHIFT[i++ & 3];
+ blocks[i >>> 2] |= (0x80 | ((code >>> 12) & 0x3f)) << SHIFT[i++ & 3];
+ blocks[i >>> 2] |= (0x80 | ((code >>> 6) & 0x3f)) << SHIFT[i++ & 3];
+ blocks[i >>> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3];
+ }
+ }
+ }
+ } else {
+ if (ARRAY_BUFFER) {
+ for (i = this.start; index < length && i < 64; ++index) {
+ buffer8[i++] = message[index];
+ }
+ } else {
+ for (i = this.start; index < length && i < 64; ++index) {
+ blocks[i >>> 2] |= message[index] << SHIFT[i++ & 3];
+ }
+ }
+ }
+ this.lastByteIndex = i;
+ this.bytes += i - this.start;
+ if (i >= 64) {
+ this.start = i - 64;
+ this.hash();
+ this.hashed = true;
+ } else {
+ this.start = i;
+ }
+ }
+ if (this.bytes > 4294967295) {
+ this.hBytes += this.bytes / 4294967296 << 0;
+ this.bytes = this.bytes % 4294967296;
+ }
+ return this;
+ };
+
+ Md5.prototype.finalize = function () {
+ if (this.finalized) {
+ return;
+ }
+ this.finalized = true;
+ var blocks = this.blocks, i = this.lastByteIndex;
+ blocks[i >>> 2] |= EXTRA[i & 3];
+ if (i >= 56) {
+ if (!this.hashed) {
+ this.hash();
+ }
+ blocks[0] = blocks[16];
+ blocks[16] = blocks[1] = blocks[2] = blocks[3] =
+ blocks[4] = blocks[5] = blocks[6] = blocks[7] =
+ blocks[8] = blocks[9] = blocks[10] = blocks[11] =
+ blocks[12] = blocks[13] = blocks[14] = blocks[15] = 0;
+ }
+ blocks[14] = this.bytes << 3;
+ blocks[15] = this.hBytes << 3 | this.bytes >>> 29;
+ this.hash();
+ };
+
+ Md5.prototype.hash = function () {
+ var a, b, c, d, bc, da, blocks = this.blocks;
+
+ if (this.first) {
+ a = blocks[0] - 680876937;
+ a = (a << 7 | a >>> 25) - 271733879 << 0;
+ d = (-1732584194 ^ a & 2004318071) + blocks[1] - 117830708;
+ d = (d << 12 | d >>> 20) + a << 0;
+ c = (-271733879 ^ (d & (a ^ -271733879))) + blocks[2] - 1126478375;
+ c = (c << 17 | c >>> 15) + d << 0;
+ b = (a ^ (c & (d ^ a))) + blocks[3] - 1316259209;
+ b = (b << 22 | b >>> 10) + c << 0;
+ } else {
+ a = this.h0;
+ b = this.h1;
+ c = this.h2;
+ d = this.h3;
+ a += (d ^ (b & (c ^ d))) + blocks[0] - 680876936;
+ a = (a << 7 | a >>> 25) + b << 0;
+ d += (c ^ (a & (b ^ c))) + blocks[1] - 389564586;
+ d = (d << 12 | d >>> 20) + a << 0;
+ c += (b ^ (d & (a ^ b))) + blocks[2] + 606105819;
+ c = (c << 17 | c >>> 15) + d << 0;
+ b += (a ^ (c & (d ^ a))) + blocks[3] - 1044525330;
+ b = (b << 22 | b >>> 10) + c << 0;
+ }
+
+ a += (d ^ (b & (c ^ d))) + blocks[4] - 176418897;
+ a = (a << 7 | a >>> 25) + b << 0;
+ d += (c ^ (a & (b ^ c))) + blocks[5] + 1200080426;
+ d = (d << 12 | d >>> 20) + a << 0;
+ c += (b ^ (d & (a ^ b))) + blocks[6] - 1473231341;
+ c = (c << 17 | c >>> 15) + d << 0;
+ b += (a ^ (c & (d ^ a))) + blocks[7] - 45705983;
+ b = (b << 22 | b >>> 10) + c << 0;
+ a += (d ^ (b & (c ^ d))) + blocks[8] + 1770035416;
+ a = (a << 7 | a >>> 25) + b << 0;
+ d += (c ^ (a & (b ^ c))) + blocks[9] - 1958414417;
+ d = (d << 12 | d >>> 20) + a << 0;
+ c += (b ^ (d & (a ^ b))) + blocks[10] - 42063;
+ c = (c << 17 | c >>> 15) + d << 0;
+ b += (a ^ (c & (d ^ a))) + blocks[11] - 1990404162;
+ b = (b << 22 | b >>> 10) + c << 0;
+ a += (d ^ (b & (c ^ d))) + blocks[12] + 1804603682;
+ a = (a << 7 | a >>> 25) + b << 0;
+ d += (c ^ (a & (b ^ c))) + blocks[13] - 40341101;
+ d = (d << 12 | d >>> 20) + a << 0;
+ c += (b ^ (d & (a ^ b))) + blocks[14] - 1502002290;
+ c = (c << 17 | c >>> 15) + d << 0;
+ b += (a ^ (c & (d ^ a))) + blocks[15] + 1236535329;
+ b = (b << 22 | b >>> 10) + c << 0;
+ a += (c ^ (d & (b ^ c))) + blocks[1] - 165796510;
+ a = (a << 5 | a >>> 27) + b << 0;
+ d += (b ^ (c & (a ^ b))) + blocks[6] - 1069501632;
+ d = (d << 9 | d >>> 23) + a << 0;
+ c += (a ^ (b & (d ^ a))) + blocks[11] + 643717713;
+ c = (c << 14 | c >>> 18) + d << 0;
+ b += (d ^ (a & (c ^ d))) + blocks[0] - 373897302;
+ b = (b << 20 | b >>> 12) + c << 0;
+ a += (c ^ (d & (b ^ c))) + blocks[5] - 701558691;
+ a = (a << 5 | a >>> 27) + b << 0;
+ d += (b ^ (c & (a ^ b))) + blocks[10] + 38016083;
+ d = (d << 9 | d >>> 23) + a << 0;
+ c += (a ^ (b & (d ^ a))) + blocks[15] - 660478335;
+ c = (c << 14 | c >>> 18) + d << 0;
+ b += (d ^ (a & (c ^ d))) + blocks[4] - 405537848;
+ b = (b << 20 | b >>> 12) + c << 0;
+ a += (c ^ (d & (b ^ c))) + blocks[9] + 568446438;
+ a = (a << 5 | a >>> 27) + b << 0;
+ d += (b ^ (c & (a ^ b))) + blocks[14] - 1019803690;
+ d = (d << 9 | d >>> 23) + a << 0;
+ c += (a ^ (b & (d ^ a))) + blocks[3] - 187363961;
+ c = (c << 14 | c >>> 18) + d << 0;
+ b += (d ^ (a & (c ^ d))) + blocks[8] + 1163531501;
+ b = (b << 20 | b >>> 12) + c << 0;
+ a += (c ^ (d & (b ^ c))) + blocks[13] - 1444681467;
+ a = (a << 5 | a >>> 27) + b << 0;
+ d += (b ^ (c & (a ^ b))) + blocks[2] - 51403784;
+ d = (d << 9 | d >>> 23) + a << 0;
+ c += (a ^ (b & (d ^ a))) + blocks[7] + 1735328473;
+ c = (c << 14 | c >>> 18) + d << 0;
+ b += (d ^ (a & (c ^ d))) + blocks[12] - 1926607734;
+ b = (b << 20 | b >>> 12) + c << 0;
+ bc = b ^ c;
+ a += (bc ^ d) + blocks[5] - 378558;
+ a = (a << 4 | a >>> 28) + b << 0;
+ d += (bc ^ a) + blocks[8] - 2022574463;
+ d = (d << 11 | d >>> 21) + a << 0;
+ da = d ^ a;
+ c += (da ^ b) + blocks[11] + 1839030562;
+ c = (c << 16 | c >>> 16) + d << 0;
+ b += (da ^ c) + blocks[14] - 35309556;
+ b = (b << 23 | b >>> 9) + c << 0;
+ bc = b ^ c;
+ a += (bc ^ d) + blocks[1] - 1530992060;
+ a = (a << 4 | a >>> 28) + b << 0;
+ d += (bc ^ a) + blocks[4] + 1272893353;
+ d = (d << 11 | d >>> 21) + a << 0;
+ da = d ^ a;
+ c += (da ^ b) + blocks[7] - 155497632;
+ c = (c << 16 | c >>> 16) + d << 0;
+ b += (da ^ c) + blocks[10] - 1094730640;
+ b = (b << 23 | b >>> 9) + c << 0;
+ bc = b ^ c;
+ a += (bc ^ d) + blocks[13] + 681279174;
+ a = (a << 4 | a >>> 28) + b << 0;
+ d += (bc ^ a) + blocks[0] - 358537222;
+ d = (d << 11 | d >>> 21) + a << 0;
+ da = d ^ a;
+ c += (da ^ b) + blocks[3] - 722521979;
+ c = (c << 16 | c >>> 16) + d << 0;
+ b += (da ^ c) + blocks[6] + 76029189;
+ b = (b << 23 | b >>> 9) + c << 0;
+ bc = b ^ c;
+ a += (bc ^ d) + blocks[9] - 640364487;
+ a = (a << 4 | a >>> 28) + b << 0;
+ d += (bc ^ a) + blocks[12] - 421815835;
+ d = (d << 11 | d >>> 21) + a << 0;
+ da = d ^ a;
+ c += (da ^ b) + blocks[15] + 530742520;
+ c = (c << 16 | c >>> 16) + d << 0;
+ b += (da ^ c) + blocks[2] - 995338651;
+ b = (b << 23 | b >>> 9) + c << 0;
+ a += (c ^ (b | ~d)) + blocks[0] - 198630844;
+ a = (a << 6 | a >>> 26) + b << 0;
+ d += (b ^ (a | ~c)) + blocks[7] + 1126891415;
+ d = (d << 10 | d >>> 22) + a << 0;
+ c += (a ^ (d | ~b)) + blocks[14] - 1416354905;
+ c = (c << 15 | c >>> 17) + d << 0;
+ b += (d ^ (c | ~a)) + blocks[5] - 57434055;
+ b = (b << 21 | b >>> 11) + c << 0;
+ a += (c ^ (b | ~d)) + blocks[12] + 1700485571;
+ a = (a << 6 | a >>> 26) + b << 0;
+ d += (b ^ (a | ~c)) + blocks[3] - 1894986606;
+ d = (d << 10 | d >>> 22) + a << 0;
+ c += (a ^ (d | ~b)) + blocks[10] - 1051523;
+ c = (c << 15 | c >>> 17) + d << 0;
+ b += (d ^ (c | ~a)) + blocks[1] - 2054922799;
+ b = (b << 21 | b >>> 11) + c << 0;
+ a += (c ^ (b | ~d)) + blocks[8] + 1873313359;
+ a = (a << 6 | a >>> 26) + b << 0;
+ d += (b ^ (a | ~c)) + blocks[15] - 30611744;
+ d = (d << 10 | d >>> 22) + a << 0;
+ c += (a ^ (d | ~b)) + blocks[6] - 1560198380;
+ c = (c << 15 | c >>> 17) + d << 0;
+ b += (d ^ (c | ~a)) + blocks[13] + 1309151649;
+ b = (b << 21 | b >>> 11) + c << 0;
+ a += (c ^ (b | ~d)) + blocks[4] - 145523070;
+ a = (a << 6 | a >>> 26) + b << 0;
+ d += (b ^ (a | ~c)) + blocks[11] - 1120210379;
+ d = (d << 10 | d >>> 22) + a << 0;
+ c += (a ^ (d | ~b)) + blocks[2] + 718787259;
+ c = (c << 15 | c >>> 17) + d << 0;
+ b += (d ^ (c | ~a)) + blocks[9] - 343485551;
+ b = (b << 21 | b >>> 11) + c << 0;
+
+ if (this.first) {
+ this.h0 = a + 1732584193 << 0;
+ this.h1 = b - 271733879 << 0;
+ this.h2 = c - 1732584194 << 0;
+ this.h3 = d + 271733878 << 0;
+ this.first = false;
+ } else {
+ this.h0 = this.h0 + a << 0;
+ this.h1 = this.h1 + b << 0;
+ this.h2 = this.h2 + c << 0;
+ this.h3 = this.h3 + d << 0;
+ }
+ };
+
+ /**
+ * @method hex
+ * @memberof Md5
+ * @instance
+ * @description Output hash as hex string
+ * @returns {String} Hex string
+ * @see {@link md5.hex}
+ * @example
+ * hash.hex();
+ */
+ Md5.prototype.hex = function () {
+ this.finalize();
+
+ var h0 = this.h0, h1 = this.h1, h2 = this.h2, h3 = this.h3;
+
+ return HEX_CHARS[(h0 >>> 4) & 0x0F] + HEX_CHARS[h0 & 0x0F] +
+ HEX_CHARS[(h0 >>> 12) & 0x0F] + HEX_CHARS[(h0 >>> 8) & 0x0F] +
+ HEX_CHARS[(h0 >>> 20) & 0x0F] + HEX_CHARS[(h0 >>> 16) & 0x0F] +
+ HEX_CHARS[(h0 >>> 28) & 0x0F] + HEX_CHARS[(h0 >>> 24) & 0x0F] +
+ HEX_CHARS[(h1 >>> 4) & 0x0F] + HEX_CHARS[h1 & 0x0F] +
+ HEX_CHARS[(h1 >>> 12) & 0x0F] + HEX_CHARS[(h1 >>> 8) & 0x0F] +
+ HEX_CHARS[(h1 >>> 20) & 0x0F] + HEX_CHARS[(h1 >>> 16) & 0x0F] +
+ HEX_CHARS[(h1 >>> 28) & 0x0F] + HEX_CHARS[(h1 >>> 24) & 0x0F] +
+ HEX_CHARS[(h2 >>> 4) & 0x0F] + HEX_CHARS[h2 & 0x0F] +
+ HEX_CHARS[(h2 >>> 12) & 0x0F] + HEX_CHARS[(h2 >>> 8) & 0x0F] +
+ HEX_CHARS[(h2 >>> 20) & 0x0F] + HEX_CHARS[(h2 >>> 16) & 0x0F] +
+ HEX_CHARS[(h2 >>> 28) & 0x0F] + HEX_CHARS[(h2 >>> 24) & 0x0F] +
+ HEX_CHARS[(h3 >>> 4) & 0x0F] + HEX_CHARS[h3 & 0x0F] +
+ HEX_CHARS[(h3 >>> 12) & 0x0F] + HEX_CHARS[(h3 >>> 8) & 0x0F] +
+ HEX_CHARS[(h3 >>> 20) & 0x0F] + HEX_CHARS[(h3 >>> 16) & 0x0F] +
+ HEX_CHARS[(h3 >>> 28) & 0x0F] + HEX_CHARS[(h3 >>> 24) & 0x0F];
+ };
+
+ /**
+ * @method toString
+ * @memberof Md5
+ * @instance
+ * @description Output hash as hex string
+ * @returns {String} Hex string
+ * @see {@link md5.hex}
+ * @example
+ * hash.toString();
+ */
+ Md5.prototype.toString = Md5.prototype.hex;
+
+ /**
+ * @method digest
+ * @memberof Md5
+ * @instance
+ * @description Output hash as bytes array
+ * @returns {Array} Bytes array
+ * @see {@link md5.digest}
+ * @example
+ * hash.digest();
+ */
+ Md5.prototype.digest = function () {
+ this.finalize();
+
+ var h0 = this.h0, h1 = this.h1, h2 = this.h2, h3 = this.h3;
+ return [
+ h0 & 0xFF, (h0 >>> 8) & 0xFF, (h0 >>> 16) & 0xFF, (h0 >>> 24) & 0xFF,
+ h1 & 0xFF, (h1 >>> 8) & 0xFF, (h1 >>> 16) & 0xFF, (h1 >>> 24) & 0xFF,
+ h2 & 0xFF, (h2 >>> 8) & 0xFF, (h2 >>> 16) & 0xFF, (h2 >>> 24) & 0xFF,
+ h3 & 0xFF, (h3 >>> 8) & 0xFF, (h3 >>> 16) & 0xFF, (h3 >>> 24) & 0xFF
+ ];
+ };
+
+ /**
+ * @method array
+ * @memberof Md5
+ * @instance
+ * @description Output hash as bytes array
+ * @returns {Array} Bytes array
+ * @see {@link md5.array}
+ * @example
+ * hash.array();
+ */
+ Md5.prototype.array = Md5.prototype.digest;
+
+ /**
+ * @method arrayBuffer
+ * @memberof Md5
+ * @instance
+ * @description Output hash as ArrayBuffer
+ * @returns {ArrayBuffer} ArrayBuffer
+ * @see {@link md5.arrayBuffer}
+ * @example
+ * hash.arrayBuffer();
+ */
+ Md5.prototype.arrayBuffer = function () {
+ this.finalize();
+
+ var buffer = new ArrayBuffer(16);
+ var blocks = new Uint32Array(buffer);
+ blocks[0] = this.h0;
+ blocks[1] = this.h1;
+ blocks[2] = this.h2;
+ blocks[3] = this.h3;
+ return buffer;
+ };
+
+ /**
+ * @method buffer
+ * @deprecated This maybe confuse with Buffer in node.js. Please use arrayBuffer instead.
+ * @memberof Md5
+ * @instance
+ * @description Output hash as ArrayBuffer
+ * @returns {ArrayBuffer} ArrayBuffer
+ * @see {@link md5.buffer}
+ * @example
+ * hash.buffer();
+ */
+ Md5.prototype.buffer = Md5.prototype.arrayBuffer;
+
+ /**
+ * @method base64
+ * @memberof Md5
+ * @instance
+ * @description Output hash as base64 string
+ * @returns {String} base64 string
+ * @see {@link md5.base64}
+ * @example
+ * hash.base64();
+ */
+ Md5.prototype.base64 = function () {
+ var v1, v2, v3, base64Str = '', bytes = this.array();
+ for (var i = 0; i < 15;) {
+ v1 = bytes[i++];
+ v2 = bytes[i++];
+ v3 = bytes[i++];
+ base64Str += BASE64_ENCODE_CHAR[v1 >>> 2] +
+ BASE64_ENCODE_CHAR[(v1 << 4 | v2 >>> 4) & 63] +
+ BASE64_ENCODE_CHAR[(v2 << 2 | v3 >>> 6) & 63] +
+ BASE64_ENCODE_CHAR[v3 & 63];
+ }
+ v1 = bytes[i];
+ base64Str += BASE64_ENCODE_CHAR[v1 >>> 2] +
+ BASE64_ENCODE_CHAR[(v1 << 4) & 63] +
+ '==';
+ return base64Str;
+ };
+
+ /**
+ * HmacMd5 class
+ * @class HmacMd5
+ * @extends Md5
+ * @description This is internal class.
+ * @see {@link md5.hmac.create}
+ */
+ function HmacMd5(key, sharedMemory) {
+ var i, result = formatMessage(key);
+ key = result[0];
+ if (result[1]) {
+ var bytes = [], length = key.length, index = 0, code;
+ for (i = 0; i < length; ++i) {
+ code = key.charCodeAt(i);
+ if (code < 0x80) {
+ bytes[index++] = code;
+ } else if (code < 0x800) {
+ bytes[index++] = (0xc0 | (code >>> 6));
+ bytes[index++] = (0x80 | (code & 0x3f));
+ } else if (code < 0xd800 || code >= 0xe000) {
+ bytes[index++] = (0xe0 | (code >>> 12));
+ bytes[index++] = (0x80 | ((code >>> 6) & 0x3f));
+ bytes[index++] = (0x80 | (code & 0x3f));
+ } else {
+ code = 0x10000 + (((code & 0x3ff) << 10) | (key.charCodeAt(++i) & 0x3ff));
+ bytes[index++] = (0xf0 | (code >>> 18));
+ bytes[index++] = (0x80 | ((code >>> 12) & 0x3f));
+ bytes[index++] = (0x80 | ((code >>> 6) & 0x3f));
+ bytes[index++] = (0x80 | (code & 0x3f));
+ }
+ }
+ key = bytes;
+ }
+
+ if (key.length > 64) {
+ key = (new Md5(true)).update(key).array();
+ }
+
+ var oKeyPad = [], iKeyPad = [];
+ for (i = 0; i < 64; ++i) {
+ var b = key[i] || 0;
+ oKeyPad[i] = 0x5c ^ b;
+ iKeyPad[i] = 0x36 ^ b;
+ }
+
+ Md5.call(this, sharedMemory);
+
+ this.update(iKeyPad);
+ this.oKeyPad = oKeyPad;
+ this.inner = true;
+ this.sharedMemory = sharedMemory;
+ }
+ HmacMd5.prototype = new Md5();
+
+ HmacMd5.prototype.finalize = function () {
+ Md5.prototype.finalize.call(this);
+ if (this.inner) {
+ this.inner = false;
+ var innerHash = this.array();
+ Md5.call(this, this.sharedMemory);
+ this.update(this.oKeyPad);
+ this.update(innerHash);
+ Md5.prototype.finalize.call(this);
+ }
+ };
+
+ var exports = createMethod();
+ exports.md5 = exports;
+ exports.md5.hmac = createHmacMethod();
+
+ if (COMMON_JS) {
+ module.exports = exports;
+ } else {
+ /**
+ * @method md5
+ * @description Md5 hash function, export to global in browsers.
+ * @param {String|Array|Uint8Array|ArrayBuffer} message message to hash
+ * @returns {String} md5 hashes
+ * @example
+ * md5(''); // d41d8cd98f00b204e9800998ecf8427e
+ * md5('The quick brown fox jumps over the lazy dog'); // 9e107d9d372bb6826bd81d3542a419d6
+ * md5('The quick brown fox jumps over the lazy dog.'); // e4d909c290d0fb1ca068ffaddf22cbd0
+ *
+ * // It also supports UTF-8 encoding
+ * md5('中文'); // a7bac2239fcdcb3a067903d8077c4a07
+ *
+ * // It also supports byte `Array`, `Uint8Array`, `ArrayBuffer`
+ * md5([]); // d41d8cd98f00b204e9800998ecf8427e
+ * md5(new Uint8Array([])); // d41d8cd98f00b204e9800998ecf8427e
+ */
+ root.md5 = exports;
+ if (AMD) {
+ define(function () {
+ return exports;
+ });
+ }
+ }
+})();
diff --git a/node_modules/js-tokens/CHANGELOG.md b/node_modules/js-tokens/CHANGELOG.md
new file mode 100644
index 0000000000000000000000000000000000000000..755e6f6ec82ec715a1bcb407608bbb6dab3ab7b7
--- /dev/null
+++ b/node_modules/js-tokens/CHANGELOG.md
@@ -0,0 +1,151 @@
+### Version 4.0.0 (2018-01-28) ###
+
+- Added: Support for ES2018. The only change needed was recognizing the `s`
+ regex flag.
+- Changed: _All_ tokens returned by the `matchToToken` function now have a
+ `closed` property. It is set to `undefined` for the tokens where “closed”
+ doesn’t make sense. This means that all tokens objects have the same shape,
+ which might improve performance.
+
+These are the breaking changes:
+
+- `'/a/s'.match(jsTokens)` no longer returns `['/', 'a', '/', 's']`, but
+ `['/a/s']`. (There are of course other variations of this.)
+- Code that rely on some token objects not having the `closed` property could
+ now behave differently.
+
+
+### Version 3.0.2 (2017-06-28) ###
+
+- No code changes. Just updates to the readme.
+
+
+### Version 3.0.1 (2017-01-30) ###
+
+- Fixed: ES2015 unicode escapes with more than 6 hex digits are now matched
+ correctly.
+
+
+### Version 3.0.0 (2017-01-11) ###
+
+This release contains one breaking change, that should [improve performance in
+V8][v8-perf]:
+
+> So how can you, as a JavaScript developer, ensure that your RegExps are fast?
+> If you are not interested in hooking into RegExp internals, make sure that
+> neither the RegExp instance, nor its prototype is modified in order to get the
+> best performance:
+>
+> ```js
+> var re = /./g;
+> re.exec(''); // Fast path.
+> re.new_property = 'slow';
+> ```
+
+This module used to export a single regex, with `.matchToToken` bolted
+on, just like in the above example. This release changes the exports of
+the module to avoid this issue.
+
+Before:
+
+```js
+import jsTokens from "js-tokens"
+// or:
+var jsTokens = require("js-tokens")
+var matchToToken = jsTokens.matchToToken
+```
+
+After:
+
+```js
+import jsTokens, {matchToToken} from "js-tokens"
+// or:
+var jsTokens = require("js-tokens").default
+var matchToToken = require("js-tokens").matchToToken
+```
+
+[v8-perf]: http://v8project.blogspot.se/2017/01/speeding-up-v8-regular-expressions.html
+
+
+### Version 2.0.0 (2016-06-19) ###
+
+- Added: Support for ES2016. In other words, support for the `**` exponentiation
+ operator.
+
+These are the breaking changes:
+
+- `'**'.match(jsTokens)` no longer returns `['*', '*']`, but `['**']`.
+- `'**='.match(jsTokens)` no longer returns `['*', '*=']`, but `['**=']`.
+
+
+### Version 1.0.3 (2016-03-27) ###
+
+- Improved: Made the regex ever so slightly smaller.
+- Updated: The readme.
+
+
+### Version 1.0.2 (2015-10-18) ###
+
+- Improved: Limited npm package contents for a smaller download. Thanks to
+ @zertosh!
+
+
+### Version 1.0.1 (2015-06-20) ###
+
+- Fixed: Declared an undeclared variable.
+
+
+### Version 1.0.0 (2015-02-26) ###
+
+- Changed: Merged the 'operator' and 'punctuation' types into 'punctuator'. That
+ type is now equivalent to the Punctuator token in the ECMAScript
+ specification. (Backwards-incompatible change.)
+- Fixed: A `-` followed by a number is now correctly matched as a punctuator
+ followed by a number. It used to be matched as just a number, but there is no
+ such thing as negative number literals. (Possibly backwards-incompatible
+ change.)
+
+
+### Version 0.4.1 (2015-02-21) ###
+
+- Added: Support for the regex `u` flag.
+
+
+### Version 0.4.0 (2015-02-21) ###
+
+- Improved: `jsTokens.matchToToken` performance.
+- Added: Support for octal and binary number literals.
+- Added: Support for template strings.
+
+
+### Version 0.3.1 (2015-01-06) ###
+
+- Fixed: Support for unicode spaces. They used to be allowed in names (which is
+ very confusing), and some unicode newlines were wrongly allowed in strings and
+ regexes.
+
+
+### Version 0.3.0 (2014-12-19) ###
+
+- Changed: The `jsTokens.names` array has been replaced with the
+ `jsTokens.matchToToken` function. The capturing groups of `jsTokens` are no
+ longer part of the public API; instead use said function. See this [gist] for
+ an example. (Backwards-incompatible change.)
+- Changed: The empty string is now considered an “invalid” token, instead an
+ “empty” token (its own group). (Backwards-incompatible change.)
+- Removed: component support. (Backwards-incompatible change.)
+
+[gist]: https://gist.github.com/lydell/be49dbf80c382c473004
+
+
+### Version 0.2.0 (2014-06-19) ###
+
+- Changed: Match ES6 function arrows (`=>`) as an operator, instead of its own
+ category (“functionArrow”), for simplicity. (Backwards-incompatible change.)
+- Added: ES6 splats (`...`) are now matched as an operator (instead of three
+ punctuations). (Backwards-incompatible change.)
+
+
+### Version 0.1.0 (2014-03-08) ###
+
+- Initial release.
diff --git a/node_modules/js-tokens/LICENSE b/node_modules/js-tokens/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..54aef52f3a464e59316eca4068f24717a40b0ec0
--- /dev/null
+++ b/node_modules/js-tokens/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014, 2015, 2016, 2017, 2018 Simon Lydell
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/node_modules/js-tokens/README.md b/node_modules/js-tokens/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..00cdf1634db1d9385ddb795e8814cd286cac43f6
--- /dev/null
+++ b/node_modules/js-tokens/README.md
@@ -0,0 +1,240 @@
+Overview [](https://travis-ci.org/lydell/js-tokens)
+========
+
+A regex that tokenizes JavaScript.
+
+```js
+var jsTokens = require("js-tokens").default
+
+var jsString = "var foo=opts.foo;\n..."
+
+jsString.match(jsTokens)
+// ["var", " ", "foo", "=", "opts", ".", "foo", ";", "\n", ...]
+```
+
+
+Installation
+============
+
+`npm install js-tokens`
+
+```js
+import jsTokens from "js-tokens"
+// or:
+var jsTokens = require("js-tokens").default
+```
+
+
+Usage
+=====
+
+### `jsTokens` ###
+
+A regex with the `g` flag that matches JavaScript tokens.
+
+The regex _always_ matches, even invalid JavaScript and the empty string.
+
+The next match is always directly after the previous.
+
+### `var token = matchToToken(match)` ###
+
+```js
+import {matchToToken} from "js-tokens"
+// or:
+var matchToToken = require("js-tokens").matchToToken
+```
+
+Takes a `match` returned by `jsTokens.exec(string)`, and returns a `{type:
+String, value: String}` object. The following types are available:
+
+- string
+- comment
+- regex
+- number
+- name
+- punctuator
+- whitespace
+- invalid
+
+Multi-line comments and strings also have a `closed` property indicating if the
+token was closed or not (see below).
+
+Comments and strings both come in several flavors. To distinguish them, check if
+the token starts with `//`, `/*`, `'`, `"` or `` ` ``.
+
+Names are ECMAScript IdentifierNames, that is, including both identifiers and
+keywords. You may use [is-keyword-js] to tell them apart.
+
+Whitespace includes both line terminators and other whitespace.
+
+[is-keyword-js]: https://github.com/crissdev/is-keyword-js
+
+
+ECMAScript support
+==================
+
+The intention is to always support the latest ECMAScript version whose feature
+set has been finalized.
+
+If adding support for a newer version requires changes, a new version with a
+major verion bump will be released.
+
+Currently, ECMAScript 2018 is supported.
+
+
+Invalid code handling
+=====================
+
+Unterminated strings are still matched as strings. JavaScript strings cannot
+contain (unescaped) newlines, so unterminated strings simply end at the end of
+the line. Unterminated template strings can contain unescaped newlines, though,
+so they go on to the end of input.
+
+Unterminated multi-line comments are also still matched as comments. They
+simply go on to the end of the input.
+
+Unterminated regex literals are likely matched as division and whatever is
+inside the regex.
+
+Invalid ASCII characters have their own capturing group.
+
+Invalid non-ASCII characters are treated as names, to simplify the matching of
+names (except unicode spaces which are treated as whitespace). Note: See also
+the [ES2018](#es2018) section.
+
+Regex literals may contain invalid regex syntax. They are still matched as
+regex literals. They may also contain repeated regex flags, to keep the regex
+simple.
+
+Strings may contain invalid escape sequences.
+
+
+Limitations
+===========
+
+Tokenizing JavaScript using regexes—in fact, _one single regex_—won’t be
+perfect. But that’s not the point either.
+
+You may compare jsTokens with [esprima] by using `esprima-compare.js`.
+See `npm run esprima-compare`!
+
+[esprima]: http://esprima.org/
+
+### Template string interpolation ###
+
+Template strings are matched as single tokens, from the starting `` ` `` to the
+ending `` ` ``, including interpolations (whose tokens are not matched
+individually).
+
+Matching template string interpolations requires recursive balancing of `{` and
+`}`—something that JavaScript regexes cannot do. Only one level of nesting is
+supported.
+
+### Division and regex literals collision ###
+
+Consider this example:
+
+```js
+var g = 9.82
+var number = bar / 2/g
+
+var regex = / 2/g
+```
+
+A human can easily understand that in the `number` line we’re dealing with
+division, and in the `regex` line we’re dealing with a regex literal. How come?
+Because humans can look at the whole code to put the `/` characters in context.
+A JavaScript regex cannot. It only sees forwards. (Well, ES2018 regexes can also
+look backwards. See the [ES2018](#es2018) section).
+
+When the `jsTokens` regex scans throught the above, it will see the following
+at the end of both the `number` and `regex` rows:
+
+```js
+/ 2/g
+```
+
+It is then impossible to know if that is a regex literal, or part of an
+expression dealing with division.
+
+Here is a similar case:
+
+```js
+foo /= 2/g
+foo(/= 2/g)
+```
+
+The first line divides the `foo` variable with `2/g`. The second line calls the
+`foo` function with the regex literal `/= 2/g`. Again, since `jsTokens` only
+sees forwards, it cannot tell the two cases apart.
+
+There are some cases where we _can_ tell division and regex literals apart,
+though.
+
+First off, we have the simple cases where there’s only one slash in the line:
+
+```js
+var foo = 2/g
+foo /= 2
+```
+
+Regex literals cannot contain newlines, so the above cases are correctly
+identified as division. Things are only problematic when there are more than
+one non-comment slash in a single line.
+
+Secondly, not every character is a valid regex flag.
+
+```js
+var number = bar / 2/e
+```
+
+The above example is also correctly identified as division, because `e` is not a
+valid regex flag. I initially wanted to future-proof by allowing `[a-zA-Z]*`
+(any letter) as flags, but it is not worth it since it increases the amount of
+ambigous cases. So only the standard `g`, `m`, `i`, `y` and `u` flags are
+allowed. This means that the above example will be identified as division as
+long as you don’t rename the `e` variable to some permutation of `gmiyus` 1 to 6
+characters long.
+
+Lastly, we can look _forward_ for information.
+
+- If the token following what looks like a regex literal is not valid after a
+ regex literal, but is valid in a division expression, then the regex literal
+ is treated as division instead. For example, a flagless regex cannot be
+ followed by a string, number or name, but all of those three can be the
+ denominator of a division.
+- Generally, if what looks like a regex literal is followed by an operator, the
+ regex literal is treated as division instead. This is because regexes are
+ seldomly used with operators (such as `+`, `*`, `&&` and `==`), but division
+ could likely be part of such an expression.
+
+Please consult the regex source and the test cases for precise information on
+when regex or division is matched (should you need to know). In short, you
+could sum it up as:
+
+If the end of a statement looks like a regex literal (even if it isn’t), it
+will be treated as one. Otherwise it should work as expected (if you write sane
+code).
+
+### ES2018 ###
+
+ES2018 added some nice regex improvements to the language.
+
+- [Unicode property escapes] should allow telling names and invalid non-ASCII
+ characters apart without blowing up the regex size.
+- [Lookbehind assertions] should allow matching telling division and regex
+ literals apart in more cases.
+- [Named capture groups] might simplify some things.
+
+These things would be nice to do, but are not critical. They probably have to
+wait until the oldest maintained Node.js LTS release supports those features.
+
+[Unicode property escapes]: http://2ality.com/2017/07/regexp-unicode-property-escapes.html
+[Lookbehind assertions]: http://2ality.com/2017/05/regexp-lookbehind-assertions.html
+[Named capture groups]: http://2ality.com/2017/05/regexp-named-capture-groups.html
+
+
+License
+=======
+
+[MIT](LICENSE).
diff --git a/node_modules/js-tokens/index.js b/node_modules/js-tokens/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..b23a4a0e7f4527221c37e5f3d0b8176878f0f600
--- /dev/null
+++ b/node_modules/js-tokens/index.js
@@ -0,0 +1,23 @@
+// Copyright 2014, 2015, 2016, 2017, 2018 Simon Lydell
+// License: MIT. (See LICENSE.)
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+})
+
+// This regex comes from regex.coffee, and is inserted here by generate-index.js
+// (run `npm run build`).
+exports.default = /((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g
+
+exports.matchToToken = function(match) {
+ var token = {type: "invalid", value: match[0], closed: undefined}
+ if (match[ 1]) token.type = "string" , token.closed = !!(match[3] || match[4])
+ else if (match[ 5]) token.type = "comment"
+ else if (match[ 6]) token.type = "comment", token.closed = !!match[7]
+ else if (match[ 8]) token.type = "regex"
+ else if (match[ 9]) token.type = "number"
+ else if (match[10]) token.type = "name"
+ else if (match[11]) token.type = "punctuator"
+ else if (match[12]) token.type = "whitespace"
+ return token
+}
diff --git a/node_modules/js-tokens/package.json b/node_modules/js-tokens/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..66752fab275101253f6ff42463b8765ad9e3ae41
--- /dev/null
+++ b/node_modules/js-tokens/package.json
@@ -0,0 +1,30 @@
+{
+ "name": "js-tokens",
+ "version": "4.0.0",
+ "author": "Simon Lydell",
+ "license": "MIT",
+ "description": "A regex that tokenizes JavaScript.",
+ "keywords": [
+ "JavaScript",
+ "js",
+ "token",
+ "tokenize",
+ "regex"
+ ],
+ "files": [
+ "index.js"
+ ],
+ "repository": "lydell/js-tokens",
+ "scripts": {
+ "test": "mocha --ui tdd",
+ "esprima-compare": "node esprima-compare ./index.js everything.js/es5.js",
+ "build": "node generate-index.js",
+ "dev": "npm run build && npm test"
+ },
+ "devDependencies": {
+ "coffeescript": "2.1.1",
+ "esprima": "4.0.0",
+ "everything.js": "1.0.3",
+ "mocha": "5.0.0"
+ }
+}
diff --git a/node_modules/js-yaml/LICENSE b/node_modules/js-yaml/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..09d3a29e93d1239edf737a58fb1cd893808abc82
--- /dev/null
+++ b/node_modules/js-yaml/LICENSE
@@ -0,0 +1,21 @@
+(The MIT License)
+
+Copyright (C) 2011-2015 by Vitaly Puzrin
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/node_modules/js-yaml/README.md b/node_modules/js-yaml/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..829e1c2d336507906ad19b2713caea54a39b8a6b
--- /dev/null
+++ b/node_modules/js-yaml/README.md
@@ -0,0 +1,231 @@
+JS-YAML - YAML 1.2 parser / writer for JavaScript
+=================================================
+
+[](https://github.com/nodeca/js-yaml/actions/workflows/ci.yml)
+[](https://www.npmjs.org/package/js-yaml)
+
+__[Online Demo](https://nodeca.github.io/js-yaml/)__
+
+
+This is an implementation of [YAML](https://yaml.org/), a human-friendly data
+serialization language. Started as [PyYAML](https://pyyaml.org/) port, it was
+completely rewritten from scratch. Now it's very fast, and supports 1.2 spec.
+
+
+Installation
+------------
+
+### YAML module for node.js
+
+```
+npm install js-yaml
+```
+
+
+### CLI executable
+
+If you want to inspect your YAML files from CLI, install js-yaml globally:
+
+```
+npm install -g js-yaml
+```
+
+#### Usage
+
+```
+usage: js-yaml [-h] [-v] [-c] [-t] file
+
+Positional arguments:
+ file File with YAML document(s)
+
+Optional arguments:
+ -h, --help Show this help message and exit.
+ -v, --version Show program's version number and exit.
+ -c, --compact Display errors in compact mode
+ -t, --trace Show stack trace on error
+```
+
+
+API
+---
+
+Here we cover the most 'useful' methods. If you need advanced details (creating
+your own tags), see [examples](https://github.com/nodeca/js-yaml/tree/master/examples)
+for more info.
+
+``` javascript
+const yaml = require('js-yaml');
+const fs = require('fs');
+
+// Get document, or throw exception on error
+try {
+ const doc = yaml.load(fs.readFileSync('/home/ixti/example.yml', 'utf8'));
+ console.log(doc);
+} catch (e) {
+ console.log(e);
+}
+```
+
+
+### load (string [ , options ])
+
+Parses `string` as single YAML document. Returns either a
+plain object, a string, a number, `null` or `undefined`, or throws `YAMLException` on error. By default, does
+not support regexps, functions and undefined.
+
+options:
+
+- `filename` _(default: null)_ - string to be used as a file path in
+ error/warning messages.
+- `onWarning` _(default: null)_ - function to call on warning messages.
+ Loader will call this function with an instance of `YAMLException` for each warning.
+- `schema` _(default: `DEFAULT_SCHEMA`)_ - specifies a schema to use.
+ - `FAILSAFE_SCHEMA` - only strings, arrays and plain objects:
+ https://www.yaml.org/spec/1.2/spec.html#id2802346
+ - `JSON_SCHEMA` - all JSON-supported types:
+ https://www.yaml.org/spec/1.2/spec.html#id2803231
+ - `CORE_SCHEMA` - same as `JSON_SCHEMA`:
+ https://www.yaml.org/spec/1.2/spec.html#id2804923
+ - `DEFAULT_SCHEMA` - all supported YAML types.
+- `json` _(default: false)_ - compatibility with JSON.parse behaviour. If true, then duplicate keys in a mapping will override values rather than throwing an error.
+- `maxDepth` _(default: 100)_ - limits nesting depth for collections.
+- `maxMergeSeqLength` _(default: 20)_ - limits the number of elements in merge
+ (`<<`) sequences.
+
+NOTE: This function **does not** understand multi-document sources, it throws
+exception on those.
+
+NOTE: JS-YAML **does not** support schema-specific tag resolution restrictions.
+So, the JSON schema is not as strictly defined in the YAML specification.
+It allows numbers in any notation, use `Null` and `NULL` as `null`, etc.
+The core schema also has no such restrictions. It allows binary notation for integers.
+
+
+### loadAll (string [, iterator] [, options ])
+
+Same as `load()`, but understands multi-document sources. Applies
+`iterator` to each document if specified, or returns array of documents.
+
+``` javascript
+const yaml = require('js-yaml');
+
+yaml.loadAll(data, function (doc) {
+ console.log(doc);
+});
+```
+
+
+### dump (object [ , options ])
+
+Serializes `object` as a YAML document. Uses `DEFAULT_SCHEMA`, so it will
+throw an exception if you try to dump regexps or functions. However, you can
+disable exceptions by setting the `skipInvalid` option to `true`.
+
+options:
+
+- `indent` _(default: 2)_ - indentation width to use (in spaces).
+- `noArrayIndent` _(default: false)_ - when true, will not add an indentation level to array elements
+- `skipInvalid` _(default: false)_ - do not throw on invalid types (like function
+ in the safe schema) and skip pairs and single values with such types.
+- `flowLevel` _(default: -1)_ - specifies level of nesting, when to switch from
+ block to flow style for collections. -1 means block style everwhere
+- `styles` - "tag" => "style" map. Each tag may have own set of styles.
+- `schema` _(default: `DEFAULT_SCHEMA`)_ specifies a schema to use.
+- `sortKeys` _(default: `false`)_ - if `true`, sort keys when dumping YAML. If a
+ function, use the function to sort the keys.
+- `lineWidth` _(default: `80`)_ - set max line width. Set `-1` for unlimited width.
+- `noRefs` _(default: `false`)_ - if `true`, don't convert duplicate objects into references
+- `noCompatMode` _(default: `false`)_ - if `true` don't try to be compatible with older
+ yaml versions. Currently: don't quote "yes", "no" and so on, as required for YAML 1.1
+- `condenseFlow` _(default: `false`)_ - if `true` flow sequences will be condensed, omitting the space between `a, b`. Eg. `'[a,b]'`, and omitting the space between `key: value` and quoting the key. Eg. `'{"a":b}'` Can be useful when using yaml for pretty URL query params as spaces are %-encoded.
+- `quotingType` _(`'` or `"`, default: `'`)_ - strings will be quoted using this quoting style. If you specify single quotes, double quotes will still be used for non-printable characters.
+- `forceQuotes` _(default: `false`)_ - if `true`, all non-key strings will be quoted even if they normally don't need to.
+- `replacer` - callback `function (key, value)` called recursively on each key/value in source object (see `replacer` docs for `JSON.stringify`).
+
+The following table show availlable styles (e.g. "canonical",
+"binary"...) available for each tag (.e.g. !!null, !!int ...). Yaml
+output is shown on the right side after `=>` (default setting) or `->`:
+
+``` none
+!!null
+ "canonical" -> "~"
+ "lowercase" => "null"
+ "uppercase" -> "NULL"
+ "camelcase" -> "Null"
+ "empty" -> ""
+
+!!int
+ "binary" -> "0b1", "0b101010", "0b1110001111010"
+ "octal" -> "0o1", "0o52", "0o16172"
+ "decimal" => "1", "42", "7290"
+ "hexadecimal" -> "0x1", "0x2A", "0x1C7A"
+
+!!bool
+ "lowercase" => "true", "false"
+ "uppercase" -> "TRUE", "FALSE"
+ "camelcase" -> "True", "False"
+
+!!float
+ "lowercase" => ".nan", '.inf'
+ "uppercase" -> ".NAN", '.INF'
+ "camelcase" -> ".NaN", '.Inf'
+```
+
+Example:
+
+``` javascript
+dump(object, {
+ 'styles': {
+ '!!null': 'canonical' // dump null as ~
+ },
+ 'sortKeys': true // sort object keys
+});
+```
+
+Supported YAML types
+--------------------
+
+The list of standard YAML tags and corresponding JavaScript types. See also
+[YAML tag discussion](https://pyyaml.org/wiki/YAMLTagDiscussion) and
+[YAML types repository](https://yaml.org/type/).
+
+```
+!!null '' # null
+!!bool 'yes' # bool
+!!int '3...' # number
+!!float '3.14...' # number
+!!binary '...base64...' # buffer
+!!timestamp 'YYYY-...' # date
+!!omap [ ... ] # array of key-value pairs
+!!pairs [ ... ] # array or array pairs
+!!set { ... } # array of objects with given keys and null values
+!!str '...' # string
+!!seq [ ... ] # array
+!!map { ... } # object
+```
+
+**JavaScript-specific tags**
+
+See [js-yaml-js-types](https://github.com/nodeca/js-yaml-js-types) for
+extra types.
+
+
+Caveats
+-------
+
+Note, that you use arrays or objects as key in JS-YAML. JS does not allow objects
+or arrays as keys, and stringifies (by calling `toString()` method) them at the
+moment of adding them.
+
+``` yaml
+---
+? [ foo, bar ]
+: - baz
+? { foo: bar }
+: - baz
+ - baz
+```
+
+``` javascript
+{ "foo,bar": ["baz"], "[object Object]": ["baz", "baz"] }
+```
diff --git a/node_modules/js-yaml/bin/js-yaml.js b/node_modules/js-yaml/bin/js-yaml.js
new file mode 100644
index 0000000000000000000000000000000000000000..abcd7e000bd312d4c03f3faf85f75b7a82218d5a
--- /dev/null
+++ b/node_modules/js-yaml/bin/js-yaml.js
@@ -0,0 +1,117 @@
+#!/usr/bin/env node
+
+'use strict'
+
+const fs = require('fs')
+const argparse = require('argparse')
+const yaml = require('..')
+
+/// /////////////////////////////////////////////////////////////////////////////
+
+const cli = new argparse.ArgumentParser({
+ prog: 'js-yaml',
+ add_help: true
+})
+
+cli.add_argument('-v', '--version', {
+ action: 'version',
+ version: require('../package.json').version
+})
+
+cli.add_argument('-c', '--compact', {
+ help: 'Display errors in compact mode',
+ action: 'store_true'
+})
+
+// deprecated (not needed after we removed output colors)
+// option suppressed, but not completely removed for compatibility
+cli.add_argument('-j', '--to-json', {
+ help: argparse.SUPPRESS,
+ dest: 'json',
+ action: 'store_true'
+})
+
+cli.add_argument('-t', '--trace', {
+ help: 'Show stack trace on error',
+ action: 'store_true'
+})
+
+cli.add_argument('file', {
+ help: 'File to read, utf-8 encoded without BOM',
+ nargs: '?',
+ default: '-'
+})
+
+/// /////////////////////////////////////////////////////////////////////////////
+
+const options = cli.parse_args()
+
+/// /////////////////////////////////////////////////////////////////////////////
+
+function readFile (filename, encoding, callback) {
+ if (options.file === '-') {
+ // read from stdin
+
+ const chunks = []
+
+ process.stdin.on('data', function (chunk) {
+ chunks.push(chunk)
+ })
+
+ process.stdin.on('end', function () {
+ return callback(null, Buffer.concat(chunks).toString(encoding))
+ })
+ } else {
+ fs.readFile(filename, encoding, callback)
+ }
+}
+
+readFile(options.file, 'utf8', function (error, input) {
+ let output
+ let isYaml
+
+ if (error) {
+ if (error.code === 'ENOENT') {
+ console.error('File not found: ' + options.file)
+ process.exit(2)
+ }
+
+ console.error(
+ (options.trace && error.stack) ||
+ error.message ||
+ String(error))
+
+ process.exit(1)
+ }
+
+ try {
+ output = JSON.parse(input)
+ isYaml = false
+ } catch (err) {
+ if (err instanceof SyntaxError) {
+ try {
+ output = []
+ yaml.loadAll(input, function (doc) { output.push(doc) }, {})
+ isYaml = true
+
+ if (output.length === 0) output = null
+ else if (output.length === 1) output = output[0]
+ } catch (e) {
+ if (options.trace && err.stack) console.error(e.stack)
+ else console.error(e.toString(options.compact))
+
+ process.exit(1)
+ }
+ } else {
+ console.error(
+ (options.trace && err.stack) ||
+ err.message ||
+ String(err))
+
+ process.exit(1)
+ }
+ }
+
+ if (isYaml) console.log(JSON.stringify(output, null, ' '))
+ else console.log(yaml.dump(output))
+})
diff --git a/node_modules/js-yaml/index.js b/node_modules/js-yaml/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..0b66b8f2764fa589f30d534bc91d722d0d1b8083
--- /dev/null
+++ b/node_modules/js-yaml/index.js
@@ -0,0 +1,44 @@
+'use strict'
+
+const loader = require('./lib/loader')
+const dumper = require('./lib/dumper')
+
+function renamed (from, to) {
+ return function () {
+ throw new Error('Function yaml.' + from + ' is removed in js-yaml 4. ' +
+ 'Use yaml.' + to + ' instead, which is now safe by default.')
+ }
+}
+
+module.exports.Type = require('./lib/type')
+module.exports.Schema = require('./lib/schema')
+module.exports.FAILSAFE_SCHEMA = require('./lib/schema/failsafe')
+module.exports.JSON_SCHEMA = require('./lib/schema/json')
+module.exports.CORE_SCHEMA = require('./lib/schema/core')
+module.exports.DEFAULT_SCHEMA = require('./lib/schema/default')
+module.exports.load = loader.load
+module.exports.loadAll = loader.loadAll
+module.exports.dump = dumper.dump
+module.exports.YAMLException = require('./lib/exception')
+
+// Re-export all types in case user wants to create custom schema
+module.exports.types = {
+ binary: require('./lib/type/binary'),
+ float: require('./lib/type/float'),
+ map: require('./lib/type/map'),
+ null: require('./lib/type/null'),
+ pairs: require('./lib/type/pairs'),
+ set: require('./lib/type/set'),
+ timestamp: require('./lib/type/timestamp'),
+ bool: require('./lib/type/bool'),
+ int: require('./lib/type/int'),
+ merge: require('./lib/type/merge'),
+ omap: require('./lib/type/omap'),
+ seq: require('./lib/type/seq'),
+ str: require('./lib/type/str')
+}
+
+// Removed functions from JS-YAML 3.0.x
+module.exports.safeLoad = renamed('safeLoad', 'load')
+module.exports.safeLoadAll = renamed('safeLoadAll', 'loadAll')
+module.exports.safeDump = renamed('safeDump', 'dump')
diff --git a/node_modules/js-yaml/lib/common.js b/node_modules/js-yaml/lib/common.js
new file mode 100644
index 0000000000000000000000000000000000000000..d1fd4dc231ded4feb828c42dc611fe9502b71264
--- /dev/null
+++ b/node_modules/js-yaml/lib/common.js
@@ -0,0 +1,50 @@
+'use strict'
+
+function isNothing (subject) {
+ return (typeof subject === 'undefined') || (subject === null)
+}
+
+function isObject (subject) {
+ return (typeof subject === 'object') && (subject !== null)
+}
+
+function toArray (sequence) {
+ if (Array.isArray(sequence)) return sequence
+ else if (isNothing(sequence)) return []
+
+ return [sequence]
+}
+
+function extend (target, source) {
+ if (source) {
+ const sourceKeys = Object.keys(source)
+
+ for (let index = 0, length = sourceKeys.length; index < length; index += 1) {
+ const key = sourceKeys[index]
+ target[key] = source[key]
+ }
+ }
+
+ return target
+}
+
+function repeat (string, count) {
+ let result = ''
+
+ for (let cycle = 0; cycle < count; cycle += 1) {
+ result += string
+ }
+
+ return result
+}
+
+function isNegativeZero (number) {
+ return (number === 0) && (Number.NEGATIVE_INFINITY === 1 / number)
+}
+
+module.exports.isNothing = isNothing
+module.exports.isObject = isObject
+module.exports.toArray = toArray
+module.exports.repeat = repeat
+module.exports.isNegativeZero = isNegativeZero
+module.exports.extend = extend
diff --git a/node_modules/js-yaml/lib/dumper.js b/node_modules/js-yaml/lib/dumper.js
new file mode 100644
index 0000000000000000000000000000000000000000..a5b6acd67af93339ac1d7194983ce030ca3580fc
--- /dev/null
+++ b/node_modules/js-yaml/lib/dumper.js
@@ -0,0 +1,937 @@
+'use strict'
+
+const common = require('./common')
+const YAMLException = require('./exception')
+const DEFAULT_SCHEMA = require('./schema/default')
+
+const _toString = Object.prototype.toString
+const _hasOwnProperty = Object.prototype.hasOwnProperty
+
+const CHAR_BOM = 0xFEFF
+const CHAR_TAB = 0x09 /* Tab */
+const CHAR_LINE_FEED = 0x0A /* LF */
+const CHAR_CARRIAGE_RETURN = 0x0D /* CR */
+const CHAR_SPACE = 0x20 /* Space */
+const CHAR_EXCLAMATION = 0x21 /* ! */
+const CHAR_DOUBLE_QUOTE = 0x22 /* " */
+const CHAR_SHARP = 0x23 /* # */
+const CHAR_PERCENT = 0x25 /* % */
+const CHAR_AMPERSAND = 0x26 /* & */
+const CHAR_SINGLE_QUOTE = 0x27 /* ' */
+const CHAR_ASTERISK = 0x2A /* * */
+const CHAR_COMMA = 0x2C /* , */
+const CHAR_MINUS = 0x2D /* - */
+const CHAR_COLON = 0x3A /* : */
+const CHAR_EQUALS = 0x3D /* = */
+const CHAR_GREATER_THAN = 0x3E /* > */
+const CHAR_QUESTION = 0x3F /* ? */
+const CHAR_COMMERCIAL_AT = 0x40 /* @ */
+const CHAR_LEFT_SQUARE_BRACKET = 0x5B /* [ */
+const CHAR_RIGHT_SQUARE_BRACKET = 0x5D /* ] */
+const CHAR_GRAVE_ACCENT = 0x60 /* ` */
+const CHAR_LEFT_CURLY_BRACKET = 0x7B /* { */
+const CHAR_VERTICAL_LINE = 0x7C /* | */
+const CHAR_RIGHT_CURLY_BRACKET = 0x7D /* } */
+
+const ESCAPE_SEQUENCES = {}
+
+ESCAPE_SEQUENCES[0x00] = '\\0'
+ESCAPE_SEQUENCES[0x07] = '\\a'
+ESCAPE_SEQUENCES[0x08] = '\\b'
+ESCAPE_SEQUENCES[0x09] = '\\t'
+ESCAPE_SEQUENCES[0x0A] = '\\n'
+ESCAPE_SEQUENCES[0x0B] = '\\v'
+ESCAPE_SEQUENCES[0x0C] = '\\f'
+ESCAPE_SEQUENCES[0x0D] = '\\r'
+ESCAPE_SEQUENCES[0x1B] = '\\e'
+ESCAPE_SEQUENCES[0x22] = '\\"'
+ESCAPE_SEQUENCES[0x5C] = '\\\\'
+ESCAPE_SEQUENCES[0x85] = '\\N'
+ESCAPE_SEQUENCES[0xA0] = '\\_'
+ESCAPE_SEQUENCES[0x2028] = '\\L'
+ESCAPE_SEQUENCES[0x2029] = '\\P'
+
+const DEPRECATED_BOOLEANS_SYNTAX = [
+ 'y', 'Y', 'yes', 'Yes', 'YES', 'on', 'On', 'ON',
+ 'n', 'N', 'no', 'No', 'NO', 'off', 'Off', 'OFF'
+]
+
+const DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/
+
+function compileStyleMap (schema, map) {
+ if (map === null) return {}
+
+ const result = {}
+ const keys = Object.keys(map)
+
+ for (let index = 0, length = keys.length; index < length; index += 1) {
+ let tag = keys[index]
+ let style = String(map[tag])
+
+ if (tag.slice(0, 2) === '!!') {
+ tag = 'tag:yaml.org,2002:' + tag.slice(2)
+ }
+ const type = schema.compiledTypeMap['fallback'][tag]
+
+ if (type && _hasOwnProperty.call(type.styleAliases, style)) {
+ style = type.styleAliases[style]
+ }
+
+ result[tag] = style
+ }
+
+ return result
+}
+
+function encodeHex (character) {
+ let handle
+ let length
+
+ const string = character.toString(16).toUpperCase()
+
+ if (character <= 0xFF) {
+ handle = 'x'
+ length = 2
+ } else if (character <= 0xFFFF) {
+ handle = 'u'
+ length = 4
+ } else if (character <= 0xFFFFFFFF) {
+ handle = 'U'
+ length = 8
+ } else {
+ throw new YAMLException('code point within a string may not be greater than 0xFFFFFFFF')
+ }
+
+ return '\\' + handle + common.repeat('0', length - string.length) + string
+}
+
+const QUOTING_TYPE_SINGLE = 1
+const QUOTING_TYPE_DOUBLE = 2
+
+function State (options) {
+ this.schema = options['schema'] || DEFAULT_SCHEMA
+ this.indent = Math.max(1, (options['indent'] || 2))
+ this.noArrayIndent = options['noArrayIndent'] || false
+ this.skipInvalid = options['skipInvalid'] || false
+ this.flowLevel = (common.isNothing(options['flowLevel']) ? -1 : options['flowLevel'])
+ this.styleMap = compileStyleMap(this.schema, options['styles'] || null)
+ this.sortKeys = options['sortKeys'] || false
+ this.lineWidth = options['lineWidth'] || 80
+ this.noRefs = options['noRefs'] || false
+ this.noCompatMode = options['noCompatMode'] || false
+ this.condenseFlow = options['condenseFlow'] || false
+ this.quotingType = options['quotingType'] === '"' ? QUOTING_TYPE_DOUBLE : QUOTING_TYPE_SINGLE
+ this.forceQuotes = options['forceQuotes'] || false
+ this.replacer = typeof options['replacer'] === 'function' ? options['replacer'] : null
+
+ this.implicitTypes = this.schema.compiledImplicit
+ this.explicitTypes = this.schema.compiledExplicit
+
+ this.tag = null
+ this.result = ''
+
+ this.duplicates = []
+ this.usedDuplicates = null
+}
+
+// Indents every line in a string. Empty lines (\n only) are not indented.
+function indentString (string, spaces) {
+ const ind = common.repeat(' ', spaces)
+ let position = 0
+ let result = ''
+ const length = string.length
+
+ while (position < length) {
+ let line
+ const next = string.indexOf('\n', position)
+ if (next === -1) {
+ line = string.slice(position)
+ position = length
+ } else {
+ line = string.slice(position, next + 1)
+ position = next + 1
+ }
+
+ if (line.length && line !== '\n') result += ind
+
+ result += line
+ }
+
+ return result
+}
+
+function generateNextLine (state, level) {
+ return '\n' + common.repeat(' ', state.indent * level)
+}
+
+function testImplicitResolving (state, str) {
+ for (let index = 0, length = state.implicitTypes.length; index < length; index += 1) {
+ const type = state.implicitTypes[index]
+
+ if (type.resolve(str)) {
+ return true
+ }
+ }
+
+ return false
+}
+
+// [33] s-white ::= s-space | s-tab
+function isWhitespace (c) {
+ return c === CHAR_SPACE || c === CHAR_TAB
+}
+
+// Returns true if the character can be printed without escaping.
+// From YAML 1.2: "any allowed characters known to be non-printable
+// should also be escaped. [However,] This isn’t mandatory"
+// Derived from nb-char - \t - #x85 - #xA0 - #x2028 - #x2029.
+function isPrintable (c) {
+ return (c >= 0x00020 && c <= 0x00007E) ||
+ ((c >= 0x000A1 && c <= 0x00D7FF) && c !== 0x2028 && c !== 0x2029) ||
+ ((c >= 0x0E000 && c <= 0x00FFFD) && c !== CHAR_BOM) ||
+ (c >= 0x10000 && c <= 0x10FFFF)
+}
+
+// [34] ns-char ::= nb-char - s-white
+// [27] nb-char ::= c-printable - b-char - c-byte-order-mark
+// [26] b-char ::= b-line-feed | b-carriage-return
+// Including s-white (for some reason, examples doesn't match specs in this aspect)
+// ns-char ::= c-printable - b-line-feed - b-carriage-return - c-byte-order-mark
+function isNsCharOrWhitespace (c) {
+ return isPrintable(c) &&
+ c !== CHAR_BOM &&
+ // - b-char
+ c !== CHAR_CARRIAGE_RETURN &&
+ c !== CHAR_LINE_FEED
+}
+
+// [127] ns-plain-safe(c) ::= c = flow-out ⇒ ns-plain-safe-out
+// c = flow-in ⇒ ns-plain-safe-in
+// c = block-key ⇒ ns-plain-safe-out
+// c = flow-key ⇒ ns-plain-safe-in
+// [128] ns-plain-safe-out ::= ns-char
+// [129] ns-plain-safe-in ::= ns-char - c-flow-indicator
+// [130] ns-plain-char(c) ::= ( ns-plain-safe(c) - “:” - “#” )
+// | ( /* An ns-char preceding */ “#” )
+// | ( “:” /* Followed by an ns-plain-safe(c) */ )
+function isPlainSafe (c, prev, inblock) {
+ const cIsNsCharOrWhitespace = isNsCharOrWhitespace(c)
+ const cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c)
+ return (
+ (
+ // ns-plain-safe
+ inblock // c = flow-in
+ ? cIsNsCharOrWhitespace
+ : cIsNsCharOrWhitespace &&
+ // - c-flow-indicator
+ c !== CHAR_COMMA &&
+ c !== CHAR_LEFT_SQUARE_BRACKET &&
+ c !== CHAR_RIGHT_SQUARE_BRACKET &&
+ c !== CHAR_LEFT_CURLY_BRACKET &&
+ c !== CHAR_RIGHT_CURLY_BRACKET
+ ) &&
+ // ns-plain-char
+ c !== CHAR_SHARP && // false on '#'
+ !(prev === CHAR_COLON && !cIsNsChar)
+ ) || // false on ': '
+ (isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c === CHAR_SHARP) || // change to true on '[^ ]#'
+ (prev === CHAR_COLON && cIsNsChar) // change to true on ':[^ ]'
+}
+
+// Simplified test for values allowed as the first character in plain style.
+function isPlainSafeFirst (c) {
+ // Uses a subset of ns-char - c-indicator
+ // where ns-char = nb-char - s-white.
+ // No support of ( ( “?” | “:” | “-” ) /* Followed by an ns-plain-safe(c)) */ ) part
+ return isPrintable(c) &&
+ c !== CHAR_BOM &&
+ !isWhitespace(c) && // - s-white
+ // - (c-indicator ::=
+ // “-” | “?” | “:” | “,” | “[” | “]” | “{” | “}”
+ c !== CHAR_MINUS &&
+ c !== CHAR_QUESTION &&
+ c !== CHAR_COLON &&
+ c !== CHAR_COMMA &&
+ c !== CHAR_LEFT_SQUARE_BRACKET &&
+ c !== CHAR_RIGHT_SQUARE_BRACKET &&
+ c !== CHAR_LEFT_CURLY_BRACKET &&
+ c !== CHAR_RIGHT_CURLY_BRACKET &&
+ // | “#” | “&” | “*” | “!” | “|” | “=” | “>” | “'” | “"”
+ c !== CHAR_SHARP &&
+ c !== CHAR_AMPERSAND &&
+ c !== CHAR_ASTERISK &&
+ c !== CHAR_EXCLAMATION &&
+ c !== CHAR_VERTICAL_LINE &&
+ c !== CHAR_EQUALS &&
+ c !== CHAR_GREATER_THAN &&
+ c !== CHAR_SINGLE_QUOTE &&
+ c !== CHAR_DOUBLE_QUOTE &&
+ // | “%” | “@” | “`”)
+ c !== CHAR_PERCENT &&
+ c !== CHAR_COMMERCIAL_AT &&
+ c !== CHAR_GRAVE_ACCENT
+}
+
+// Simplified test for values allowed as the last character in plain style.
+function isPlainSafeLast (c) {
+ // just not whitespace or colon, it will be checked to be plain character later
+ return !isWhitespace(c) && c !== CHAR_COLON
+}
+
+// Same as 'string'.codePointAt(pos), but works in older browsers.
+function codePointAt (string, pos) {
+ const first = string.charCodeAt(pos)
+ let second
+
+ if (first >= 0xD800 && first <= 0xDBFF && pos + 1 < string.length) {
+ second = string.charCodeAt(pos + 1)
+ if (second >= 0xDC00 && second <= 0xDFFF) {
+ // https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae
+ return (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000
+ }
+ }
+ return first
+}
+
+// Determines whether block indentation indicator is required.
+function needIndentIndicator (string) {
+ const leadingSpaceRe = /^\n* /
+ return leadingSpaceRe.test(string)
+}
+
+const STYLE_PLAIN = 1
+const STYLE_SINGLE = 2
+const STYLE_LITERAL = 3
+const STYLE_FOLDED = 4
+const STYLE_DOUBLE = 5
+
+// Determines which scalar styles are possible and returns the preferred style.
+// lineWidth = -1 => no limit.
+// Pre-conditions: str.length > 0.
+// Post-conditions:
+// STYLE_PLAIN or STYLE_SINGLE => no \n are in the string.
+// STYLE_LITERAL => no lines are suitable for folding (or lineWidth is -1).
+// STYLE_FOLDED => a line > lineWidth and can be folded (and lineWidth != -1).
+function chooseScalarStyle (string, singleLineOnly, indentPerLevel, lineWidth,
+ testAmbiguousType, quotingType, forceQuotes, inblock) {
+ let i
+ let char = 0
+ let prevChar = null
+ let hasLineBreak = false
+ let hasFoldableLine = false // only checked if shouldTrackWidth
+ const shouldTrackWidth = lineWidth !== -1
+ let previousLineBreak = -1 // count the first line correctly
+ let plain = isPlainSafeFirst(codePointAt(string, 0)) &&
+ isPlainSafeLast(codePointAt(string, string.length - 1))
+
+ if (singleLineOnly || forceQuotes) {
+ // Case: no block styles.
+ // Check for disallowed characters to rule out plain and single.
+ for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) {
+ char = codePointAt(string, i)
+ if (!isPrintable(char)) {
+ return STYLE_DOUBLE
+ }
+ plain = plain && isPlainSafe(char, prevChar, inblock)
+ prevChar = char
+ }
+ } else {
+ // Case: block styles permitted.
+ for (i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) {
+ char = codePointAt(string, i)
+ if (char === CHAR_LINE_FEED) {
+ hasLineBreak = true
+ // Check if any line can be folded.
+ if (shouldTrackWidth) {
+ hasFoldableLine = hasFoldableLine ||
+ // Foldable line = too long, and not more-indented.
+ (i - previousLineBreak - 1 > lineWidth &&
+ string[previousLineBreak + 1] !== ' ')
+ previousLineBreak = i
+ }
+ } else if (!isPrintable(char)) {
+ return STYLE_DOUBLE
+ }
+ plain = plain && isPlainSafe(char, prevChar, inblock)
+ prevChar = char
+ }
+ // in case the end is missing a \n
+ hasFoldableLine = hasFoldableLine || (shouldTrackWidth &&
+ (i - previousLineBreak - 1 > lineWidth &&
+ string[previousLineBreak + 1] !== ' '))
+ }
+ // Although every style can represent \n without escaping, prefer block styles
+ // for multiline, since they're more readable and they don't add empty lines.
+ // Also prefer folding a super-long line.
+ if (!hasLineBreak && !hasFoldableLine) {
+ // Strings interpretable as another type have to be quoted;
+ // e.g. the string 'true' vs. the boolean true.
+ if (plain && !forceQuotes && !testAmbiguousType(string)) {
+ return STYLE_PLAIN
+ }
+ return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE
+ }
+ // Edge case: block indentation indicator can only have one digit.
+ if (indentPerLevel > 9 && needIndentIndicator(string)) {
+ return STYLE_DOUBLE
+ }
+ // At this point we know block styles are valid.
+ // Prefer literal style unless we want to fold.
+ if (!forceQuotes) {
+ return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL
+ }
+ return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE
+}
+
+// Note: line breaking/folding is implemented for only the folded style.
+// NB. We drop the last trailing newline (if any) of a returned block scalar
+// since the dumper adds its own newline. This always works:
+// • No ending newline => unaffected; already using strip "-" chomping.
+// • Ending newline => removed then restored.
+// Importantly, this keeps the "+" chomp indicator from gaining an extra line.
+function writeScalar (state, string, level, iskey, inblock) {
+ state.dump = (function () {
+ if (string.length === 0) {
+ return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''"
+ }
+ if (!state.noCompatMode) {
+ if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) {
+ return state.quotingType === QUOTING_TYPE_DOUBLE ? ('"' + string + '"') : ("'" + string + "'")
+ }
+ }
+
+ const indent = state.indent * Math.max(1, level) // no 0-indent scalars
+ // As indentation gets deeper, let the width decrease monotonically
+ // to the lower bound min(state.lineWidth, 40).
+ // Note that this implies
+ // state.lineWidth ≤ 40 + state.indent: width is fixed at the lower bound.
+ // state.lineWidth > 40 + state.indent: width decreases until the lower bound.
+ // This behaves better than a constant minimum width which disallows narrower options,
+ // or an indent threshold which causes the width to suddenly increase.
+ const lineWidth = (state.lineWidth === -1)
+ ? -1
+ : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent)
+
+ // Without knowing if keys are implicit/explicit, assume implicit for safety.
+ const singleLineOnly = iskey ||
+ // No block styles in flow mode.
+ (state.flowLevel > -1 && level >= state.flowLevel)
+ function testAmbiguity (string) {
+ return testImplicitResolving(state, string)
+ }
+
+ switch (chooseScalarStyle(string, singleLineOnly, state.indent, lineWidth,
+ testAmbiguity, state.quotingType, state.forceQuotes && !iskey, inblock)) {
+ case STYLE_PLAIN:
+ return string
+ case STYLE_SINGLE:
+ return "'" + string.replace(/'/g, "''") + "'"
+ case STYLE_LITERAL:
+ return '|' + blockHeader(string, state.indent) +
+ dropEndingNewline(indentString(string, indent))
+ case STYLE_FOLDED:
+ return '>' + blockHeader(string, state.indent) +
+ dropEndingNewline(indentString(foldString(string, lineWidth), indent))
+ case STYLE_DOUBLE:
+ return '"' + escapeString(string, lineWidth) + '"'
+ default:
+ throw new YAMLException('impossible error: invalid scalar style')
+ }
+ }())
+}
+
+// Pre-conditions: string is valid for a block scalar, 1 <= indentPerLevel <= 9.
+function blockHeader (string, indentPerLevel) {
+ const indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : ''
+
+ // note the special case: the string '\n' counts as a "trailing" empty line.
+ const clip = string[string.length - 1] === '\n'
+ const keep = clip && (string[string.length - 2] === '\n' || string === '\n')
+ const chomp = keep ? '+' : (clip ? '' : '-')
+
+ return indentIndicator + chomp + '\n'
+}
+
+// (See the note for writeScalar.)
+function dropEndingNewline (string) {
+ return string[string.length - 1] === '\n' ? string.slice(0, -1) : string
+}
+
+// Note: a long line without a suitable break point will exceed the width limit.
+// Pre-conditions: every char in str isPrintable, str.length > 0, width > 0.
+function foldString (string, width) {
+ // In folded style, $k$ consecutive newlines output as $k+1$ newlines—
+ // unless they're before or after a more-indented line, or at the very
+ // beginning or end, in which case $k$ maps to $k$.
+ // Therefore, parse each chunk as newline(s) followed by a content line.
+ const lineRe = /(\n+)([^\n]*)/g
+
+ // first line (possibly an empty line)
+ let result = (function () {
+ let nextLF = string.indexOf('\n')
+ nextLF = nextLF !== -1 ? nextLF : string.length
+ lineRe.lastIndex = nextLF
+ return foldLine(string.slice(0, nextLF), width)
+ }())
+ // If we haven't reached the first content line yet, don't add an extra \n.
+ let prevMoreIndented = string[0] === '\n' || string[0] === ' '
+ let moreIndented
+
+ // rest of the lines
+ let match
+ while ((match = lineRe.exec(string))) {
+ const prefix = match[1]
+ const line = match[2]
+
+ moreIndented = (line[0] === ' ')
+ result += prefix +
+ ((!prevMoreIndented && !moreIndented && line !== '') ? '\n' : '') +
+ foldLine(line, width)
+ prevMoreIndented = moreIndented
+ }
+
+ return result
+}
+
+// Greedy line breaking.
+// Picks the longest line under the limit each time,
+// otherwise settles for the shortest line over the limit.
+// NB. More-indented lines *cannot* be folded, as that would add an extra \n.
+function foldLine (line, width) {
+ if (line === '' || line[0] === ' ') return line
+
+ // Since a more-indented line adds a \n, breaks can't be followed by a space.
+ const breakRe = / [^ ]/g // note: the match index will always be <= length-2.
+ let match
+ // start is an inclusive index. end, curr, and next are exclusive.
+ let start = 0
+ let end
+ let curr = 0
+ let next = 0
+ let result = ''
+
+ // Invariants: 0 <= start <= length-1.
+ // 0 <= curr <= next <= max(0, length-2). curr - start <= width.
+ // Inside the loop:
+ // A match implies length >= 2, so curr and next are <= length-2.
+ while ((match = breakRe.exec(line))) {
+ next = match.index
+ // maintain invariant: curr - start <= width
+ if (next - start > width) {
+ end = (curr > start) ? curr : next // derive end <= length-2
+ result += '\n' + line.slice(start, end)
+ // skip the space that was output as \n
+ start = end + 1 // derive start <= length-1
+ }
+ curr = next
+ }
+
+ // By the invariants, start <= length-1, so there is something left over.
+ // It is either the whole string or a part starting from non-whitespace.
+ result += '\n'
+ // Insert a break if the remainder is too long and there is a break available.
+ if (line.length - start > width && curr > start) {
+ result += line.slice(start, curr) + '\n' + line.slice(curr + 1)
+ } else {
+ result += line.slice(start)
+ }
+
+ return result.slice(1) // drop extra \n joiner
+}
+
+// Escapes a double-quoted string.
+function escapeString (string) {
+ let result = ''
+ let char = 0
+
+ for (let i = 0; i < string.length; char >= 0x10000 ? i += 2 : i++) {
+ char = codePointAt(string, i)
+ const escapeSeq = ESCAPE_SEQUENCES[char]
+
+ if (!escapeSeq && isPrintable(char)) {
+ result += string[i]
+ if (char >= 0x10000) result += string[i + 1]
+ } else {
+ result += escapeSeq || encodeHex(char)
+ }
+ }
+
+ return result
+}
+
+function writeFlowSequence (state, level, object) {
+ let _result = ''
+ const _tag = state.tag
+
+ for (let index = 0, length = object.length; index < length; index += 1) {
+ let value = object[index]
+
+ if (state.replacer) {
+ value = state.replacer.call(object, String(index), value)
+ }
+
+ // Write only valid elements, put null instead of invalid elements.
+ if (writeNode(state, level, value, false, false) ||
+ (typeof value === 'undefined' &&
+ writeNode(state, level, null, false, false))) {
+ if (_result !== '') _result += ',' + (!state.condenseFlow ? ' ' : '')
+ _result += state.dump
+ }
+ }
+
+ state.tag = _tag
+ state.dump = '[' + _result + ']'
+}
+
+function writeBlockSequence (state, level, object, compact) {
+ let _result = ''
+ const _tag = state.tag
+
+ for (let index = 0, length = object.length; index < length; index += 1) {
+ let value = object[index]
+
+ if (state.replacer) {
+ value = state.replacer.call(object, String(index), value)
+ }
+
+ // Write only valid elements, put null instead of invalid elements.
+ if (writeNode(state, level + 1, value, true, true, false, true) ||
+ (typeof value === 'undefined' &&
+ writeNode(state, level + 1, null, true, true, false, true))) {
+ if (!compact || _result !== '') {
+ _result += generateNextLine(state, level)
+ }
+
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
+ _result += '-'
+ } else {
+ _result += '- '
+ }
+
+ _result += state.dump
+ }
+ }
+
+ state.tag = _tag
+ state.dump = _result || '[]' // Empty sequence if no valid values.
+}
+
+function writeFlowMapping (state, level, object) {
+ let _result = ''
+ const _tag = state.tag
+ const objectKeyList = Object.keys(object)
+
+ for (let index = 0, length = objectKeyList.length; index < length; index += 1) {
+ let pairBuffer = ''
+ if (_result !== '') pairBuffer += ', '
+
+ if (state.condenseFlow) pairBuffer += '"'
+
+ const objectKey = objectKeyList[index]
+ let objectValue = object[objectKey]
+
+ if (state.replacer) {
+ objectValue = state.replacer.call(object, objectKey, objectValue)
+ }
+
+ if (!writeNode(state, level, objectKey, false, false)) {
+ continue // Skip this pair because of invalid key;
+ }
+
+ if (state.dump.length > 1024) pairBuffer += '? '
+
+ pairBuffer += state.dump + (state.condenseFlow ? '"' : '') + ':' + (state.condenseFlow ? '' : ' ')
+
+ if (!writeNode(state, level, objectValue, false, false)) {
+ continue // Skip this pair because of invalid value.
+ }
+
+ pairBuffer += state.dump
+
+ // Both key and value are valid.
+ _result += pairBuffer
+ }
+
+ state.tag = _tag
+ state.dump = '{' + _result + '}'
+}
+
+function writeBlockMapping (state, level, object, compact) {
+ let _result = ''
+ const _tag = state.tag
+ const objectKeyList = Object.keys(object)
+
+ // Allow sorting keys so that the output file is deterministic
+ if (state.sortKeys === true) {
+ // Default sorting
+ objectKeyList.sort()
+ } else if (typeof state.sortKeys === 'function') {
+ // Custom sort function
+ objectKeyList.sort(state.sortKeys)
+ } else if (state.sortKeys) {
+ // Something is wrong
+ throw new YAMLException('sortKeys must be a boolean or a function')
+ }
+
+ for (let index = 0, length = objectKeyList.length; index < length; index += 1) {
+ let pairBuffer = ''
+
+ if (!compact || _result !== '') {
+ pairBuffer += generateNextLine(state, level)
+ }
+
+ const objectKey = objectKeyList[index]
+ let objectValue = object[objectKey]
+
+ if (state.replacer) {
+ objectValue = state.replacer.call(object, objectKey, objectValue)
+ }
+
+ if (!writeNode(state, level + 1, objectKey, true, true, true)) {
+ continue // Skip this pair because of invalid key.
+ }
+
+ const explicitPair = (state.tag !== null && state.tag !== '?') ||
+ (state.dump && state.dump.length > 1024)
+
+ if (explicitPair) {
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
+ pairBuffer += '?'
+ } else {
+ pairBuffer += '? '
+ }
+ }
+
+ pairBuffer += state.dump
+
+ if (explicitPair) {
+ pairBuffer += generateNextLine(state, level)
+ }
+
+ if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {
+ continue // Skip this pair because of invalid value.
+ }
+
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
+ pairBuffer += ':'
+ } else {
+ pairBuffer += ': '
+ }
+
+ pairBuffer += state.dump
+
+ // Both key and value are valid.
+ _result += pairBuffer
+ }
+
+ state.tag = _tag
+ state.dump = _result || '{}' // Empty mapping if no valid pairs.
+}
+
+function detectType (state, object, explicit) {
+ const typeList = explicit ? state.explicitTypes : state.implicitTypes
+
+ for (let index = 0, length = typeList.length; index < length; index += 1) {
+ const type = typeList[index]
+
+ if ((type.instanceOf || type.predicate) &&
+ (!type.instanceOf || ((typeof object === 'object') && (object instanceof type.instanceOf))) &&
+ (!type.predicate || type.predicate(object))) {
+ if (explicit) {
+ if (type.multi && type.representName) {
+ state.tag = type.representName(object)
+ } else {
+ state.tag = type.tag
+ }
+ } else {
+ state.tag = '?'
+ }
+
+ if (type.represent) {
+ const style = state.styleMap[type.tag] || type.defaultStyle
+
+ let _result
+ if (_toString.call(type.represent) === '[object Function]') {
+ _result = type.represent(object, style)
+ } else if (_hasOwnProperty.call(type.represent, style)) {
+ _result = type.represent[style](object, style)
+ } else {
+ throw new YAMLException('!<' + type.tag + '> tag resolver accepts not "' + style + '" style')
+ }
+
+ state.dump = _result
+ }
+
+ return true
+ }
+ }
+
+ return false
+}
+
+// Serializes `object` and writes it to global `result`.
+// Returns true on success, or false on invalid object.
+//
+function writeNode (state, level, object, block, compact, iskey, isblockseq) {
+ state.tag = null
+ state.dump = object
+
+ if (!detectType(state, object, false)) {
+ detectType(state, object, true)
+ }
+
+ const type = _toString.call(state.dump)
+ const inblock = block
+
+ if (block) {
+ block = (state.flowLevel < 0 || state.flowLevel > level)
+ }
+
+ const objectOrArray = type === '[object Object]' || type === '[object Array]'
+ let duplicateIndex
+ let duplicate
+
+ if (objectOrArray) {
+ duplicateIndex = state.duplicates.indexOf(object)
+ duplicate = duplicateIndex !== -1
+ }
+
+ if ((state.tag !== null && state.tag !== '?') || duplicate || (state.indent !== 2 && level > 0)) {
+ compact = false
+ }
+
+ if (duplicate && state.usedDuplicates[duplicateIndex]) {
+ state.dump = '*ref_' + duplicateIndex
+ } else {
+ if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
+ state.usedDuplicates[duplicateIndex] = true
+ }
+ if (type === '[object Object]') {
+ if (block && (Object.keys(state.dump).length !== 0)) {
+ writeBlockMapping(state, level, state.dump, compact)
+ if (duplicate) {
+ state.dump = '&ref_' + duplicateIndex + state.dump
+ }
+ } else {
+ writeFlowMapping(state, level, state.dump)
+ if (duplicate) {
+ state.dump = '&ref_' + duplicateIndex + ' ' + state.dump
+ }
+ }
+ } else if (type === '[object Array]') {
+ if (block && (state.dump.length !== 0)) {
+ if (state.noArrayIndent && !isblockseq && level > 0) {
+ writeBlockSequence(state, level - 1, state.dump, compact)
+ } else {
+ writeBlockSequence(state, level, state.dump, compact)
+ }
+ if (duplicate) {
+ state.dump = '&ref_' + duplicateIndex + state.dump
+ }
+ } else {
+ writeFlowSequence(state, level, state.dump)
+ if (duplicate) {
+ state.dump = '&ref_' + duplicateIndex + ' ' + state.dump
+ }
+ }
+ } else if (type === '[object String]') {
+ if (state.tag !== '?') {
+ writeScalar(state, state.dump, level, iskey, inblock)
+ }
+ } else if (type === '[object Undefined]') {
+ return false
+ } else {
+ if (state.skipInvalid) return false
+ throw new YAMLException('unacceptable kind of an object to dump ' + type)
+ }
+
+ if (state.tag !== null && state.tag !== '?') {
+ // Need to encode all characters except those allowed by the spec:
+ //
+ // [35] ns-dec-digit ::= [#x30-#x39] /* 0-9 */
+ // [36] ns-hex-digit ::= ns-dec-digit
+ // | [#x41-#x46] /* A-F */ | [#x61-#x66] /* a-f */
+ // [37] ns-ascii-letter ::= [#x41-#x5A] /* A-Z */ | [#x61-#x7A] /* a-z */
+ // [38] ns-word-char ::= ns-dec-digit | ns-ascii-letter | “-”
+ // [39] ns-uri-char ::= “%” ns-hex-digit ns-hex-digit | ns-word-char | “#”
+ // | “;” | “/” | “?” | “:” | “@” | “&” | “=” | “+” | “$” | “,”
+ // | “_” | “.” | “!” | “~” | “*” | “'” | “(” | “)” | “[” | “]”
+ //
+ // Also need to encode '!' because it has special meaning (end of tag prefix).
+ //
+ let tagStr = encodeURI(
+ state.tag[0] === '!' ? state.tag.slice(1) : state.tag
+ ).replace(/!/g, '%21')
+
+ if (state.tag[0] === '!') {
+ tagStr = '!' + tagStr
+ } else if (tagStr.slice(0, 18) === 'tag:yaml.org,2002:') {
+ tagStr = '!!' + tagStr.slice(18)
+ } else {
+ tagStr = '!<' + tagStr + '>'
+ }
+
+ state.dump = tagStr + ' ' + state.dump
+ }
+ }
+
+ return true
+}
+
+function getDuplicateReferences (object, state) {
+ const objects = []
+ const duplicatesIndexes = []
+
+ inspectNode(object, objects, duplicatesIndexes)
+
+ const length = duplicatesIndexes.length
+ for (let index = 0; index < length; index += 1) {
+ state.duplicates.push(objects[duplicatesIndexes[index]])
+ }
+ state.usedDuplicates = new Array(length)
+}
+
+function inspectNode (object, objects, duplicatesIndexes) {
+ if (object !== null && typeof object === 'object') {
+ const index = objects.indexOf(object)
+ if (index !== -1) {
+ if (duplicatesIndexes.indexOf(index) === -1) {
+ duplicatesIndexes.push(index)
+ }
+ } else {
+ objects.push(object)
+
+ if (Array.isArray(object)) {
+ for (let i = 0, length = object.length; i < length; i += 1) {
+ inspectNode(object[i], objects, duplicatesIndexes)
+ }
+ } else {
+ const objectKeyList = Object.keys(object)
+
+ for (let i = 0, length = objectKeyList.length; i < length; i += 1) {
+ inspectNode(object[objectKeyList[i]], objects, duplicatesIndexes)
+ }
+ }
+ }
+ }
+}
+
+function dump (input, options) {
+ options = options || {}
+
+ const state = new State(options)
+
+ if (!state.noRefs) getDuplicateReferences(input, state)
+
+ let value = input
+
+ if (state.replacer) {
+ value = state.replacer.call({ '': value }, '', value)
+ }
+
+ if (writeNode(state, 0, value, true, true)) return state.dump + '\n'
+
+ return ''
+}
+
+module.exports.dump = dump
diff --git a/node_modules/js-yaml/lib/exception.js b/node_modules/js-yaml/lib/exception.js
new file mode 100644
index 0000000000000000000000000000000000000000..8571562eda090408990b0f204387220908518a76
--- /dev/null
+++ b/node_modules/js-yaml/lib/exception.js
@@ -0,0 +1,51 @@
+// YAML error class. http://stackoverflow.com/questions/8458984
+//
+'use strict'
+
+function formatError (exception, compact) {
+ let where = ''
+ const message = exception.reason || '(unknown reason)'
+
+ if (!exception.mark) return message
+
+ if (exception.mark.name) {
+ where += 'in "' + exception.mark.name + '" '
+ }
+
+ where += '(' + (exception.mark.line + 1) + ':' + (exception.mark.column + 1) + ')'
+
+ if (!compact && exception.mark.snippet) {
+ where += '\n\n' + exception.mark.snippet
+ }
+
+ return message + ' ' + where
+}
+
+function YAMLException (reason, mark) {
+ // Super constructor
+ Error.call(this)
+
+ this.name = 'YAMLException'
+ this.reason = reason
+ this.mark = mark
+ this.message = formatError(this, false)
+
+ // Include stack trace in error object
+ if (Error.captureStackTrace) {
+ // Chrome and NodeJS
+ Error.captureStackTrace(this, this.constructor)
+ } else {
+ // FF, IE 10+ and Safari 6+. Fallback for others
+ this.stack = (new Error()).stack || ''
+ }
+}
+
+// Inherit from Error
+YAMLException.prototype = Object.create(Error.prototype)
+YAMLException.prototype.constructor = YAMLException
+
+YAMLException.prototype.toString = function toString (compact) {
+ return this.name + ': ' + formatError(this, compact)
+}
+
+module.exports = YAMLException
diff --git a/node_modules/js-yaml/lib/index_vite_proxy.tmp.mjs b/node_modules/js-yaml/lib/index_vite_proxy.tmp.mjs
new file mode 100644
index 0000000000000000000000000000000000000000..303f23165ddb9ad7d88ba4a0a17ec7dc8d3f665d
--- /dev/null
+++ b/node_modules/js-yaml/lib/index_vite_proxy.tmp.mjs
@@ -0,0 +1,37 @@
+import yaml from '../index.js'
+
+const {
+ Type,
+ Schema,
+ FAILSAFE_SCHEMA,
+ JSON_SCHEMA,
+ CORE_SCHEMA,
+ DEFAULT_SCHEMA,
+ load,
+ loadAll,
+ dump,
+ YAMLException,
+ types,
+ safeLoad,
+ safeLoadAll,
+ safeDump
+} = yaml
+
+export {
+ Type,
+ Schema,
+ FAILSAFE_SCHEMA,
+ JSON_SCHEMA,
+ CORE_SCHEMA,
+ DEFAULT_SCHEMA,
+ load,
+ loadAll,
+ dump,
+ YAMLException,
+ types,
+ safeLoad,
+ safeLoadAll,
+ safeDump
+}
+
+export default yaml
diff --git a/node_modules/js-yaml/lib/loader.js b/node_modules/js-yaml/lib/loader.js
new file mode 100644
index 0000000000000000000000000000000000000000..18f7ac3a69ba4b35d820607a46d615eda291c427
--- /dev/null
+++ b/node_modules/js-yaml/lib/loader.js
@@ -0,0 +1,1794 @@
+'use strict'
+
+const common = require('./common')
+const YAMLException = require('./exception')
+const makeSnippet = require('./snippet')
+const DEFAULT_SCHEMA = require('./schema/default')
+
+const _hasOwnProperty = Object.prototype.hasOwnProperty
+
+const CONTEXT_FLOW_IN = 1
+const CONTEXT_FLOW_OUT = 2
+const CONTEXT_BLOCK_IN = 3
+const CONTEXT_BLOCK_OUT = 4
+
+const CHOMPING_CLIP = 1
+const CHOMPING_STRIP = 2
+const CHOMPING_KEEP = 3
+
+// eslint-disable-next-line no-control-regex
+const PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/
+const PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/
+// eslint-disable-next-line no-useless-escape
+const PATTERN_FLOW_INDICATORS = /[,\[\]{}]/
+// eslint-disable-next-line no-useless-escape
+const PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/
+// eslint-disable-next-line no-useless-escape
+const PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i
+
+function _class (obj) { return Object.prototype.toString.call(obj) }
+
+function isEol (c) {
+ return (c === 0x0A/* LF */) || (c === 0x0D/* CR */)
+}
+
+function isWhiteSpace (c) {
+ return (c === 0x09/* Tab */) || (c === 0x20/* Space */)
+}
+
+function isWsOrEol (c) {
+ return (c === 0x09/* Tab */) ||
+ (c === 0x20/* Space */) ||
+ (c === 0x0A/* LF */) ||
+ (c === 0x0D/* CR */)
+}
+
+function isFlowIndicator (c) {
+ return c === 0x2C/* , */ ||
+ c === 0x5B/* [ */ ||
+ c === 0x5D/* ] */ ||
+ c === 0x7B/* { */ ||
+ c === 0x7D/* } */
+}
+
+function fromHexCode (c) {
+ if ((c >= 0x30/* 0 */) && (c <= 0x39/* 9 */)) {
+ return c - 0x30
+ }
+
+ const lc = c | 0x20
+
+ if ((lc >= 0x61/* a */) && (lc <= 0x66/* f */)) {
+ return lc - 0x61 + 10
+ }
+
+ return -1
+}
+
+function escapedHexLen (c) {
+ if (c === 0x78/* x */) { return 2 }
+ if (c === 0x75/* u */) { return 4 }
+ if (c === 0x55/* U */) { return 8 }
+ return 0
+}
+
+function fromDecimalCode (c) {
+ if ((c >= 0x30/* 0 */) && (c <= 0x39/* 9 */)) {
+ return c - 0x30
+ }
+
+ return -1
+}
+
+function simpleEscapeSequence (c) {
+ switch (c) {
+ case 0x30/* 0 */: return '\x00'
+ case 0x61/* a */: return '\x07'
+ case 0x62/* b */: return '\x08'
+ case 0x74/* t */: return '\x09'
+ case 0x09/* Tab */: return '\x09'
+ case 0x6E/* n */: return '\x0A'
+ case 0x76/* v */: return '\x0B'
+ case 0x66/* f */: return '\x0C'
+ case 0x72/* r */: return '\x0D'
+ case 0x65/* e */: return '\x1B'
+ case 0x20/* Space */: return ' '
+ case 0x22/* " */: return '\x22'
+ case 0x2F/* / */: return '/'
+ case 0x5C/* \ */: return '\x5C'
+ case 0x4E/* N */: return '\x85'
+ case 0x5F/* _ */: return '\xA0'
+ case 0x4C/* L */: return '\u2028'
+ case 0x50/* P */: return '\u2029'
+ default: return ''
+ }
+}
+
+function charFromCodepoint (c) {
+ if (c <= 0xFFFF) {
+ return String.fromCharCode(c)
+ }
+ // Encode UTF-16 surrogate pair
+ // https://en.wikipedia.org/wiki/UTF-16#Code_points_U.2B010000_to_U.2B10FFFF
+ return String.fromCharCode(
+ ((c - 0x010000) >> 10) + 0xD800,
+ ((c - 0x010000) & 0x03FF) + 0xDC00
+ )
+}
+
+// set a property of a literal object, while protecting against prototype pollution,
+// see https://github.com/nodeca/js-yaml/issues/164 for more details
+function setProperty (object, key, value) {
+ // used for this specific key only because Object.defineProperty is slow
+ if (key === '__proto__') {
+ Object.defineProperty(object, key, {
+ configurable: true,
+ enumerable: true,
+ writable: true,
+ value: value
+ })
+ } else {
+ object[key] = value
+ }
+}
+
+const simpleEscapeCheck = new Array(256) // integer, for fast access
+const simpleEscapeMap = new Array(256)
+for (let i = 0; i < 256; i++) {
+ simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0
+ simpleEscapeMap[i] = simpleEscapeSequence(i)
+}
+
+function State (input, options) {
+ this.input = input
+
+ this.filename = options['filename'] || null
+ this.schema = options['schema'] || DEFAULT_SCHEMA
+ this.onWarning = options['onWarning'] || null
+ // (Hidden) Remove? makes the loader to expect YAML 1.1 documents
+ // if such documents have no explicit %YAML directive
+ this.legacy = options['legacy'] || false
+
+ this.json = options['json'] || false
+ this.listener = options['listener'] || null
+ this.maxDepth = typeof options['maxDepth'] === 'number' ? options['maxDepth'] : 100
+ this.maxMergeSeqLength = typeof options['maxMergeSeqLength'] === 'number' ? options['maxMergeSeqLength'] : 20
+
+ this.implicitTypes = this.schema.compiledImplicit
+ this.typeMap = this.schema.compiledTypeMap
+
+ this.length = input.length
+ this.position = 0
+ this.line = 0
+ this.lineStart = 0
+ this.lineIndent = 0
+ this.depth = 0
+
+ // position of first leading tab in the current line,
+ // used to make sure there are no tabs in the indentation
+ this.firstTabInLine = -1
+
+ this.documents = []
+ this.anchorMapTransactions = []
+
+ /*
+ this.version;
+ this.checkLineBreaks;
+ this.tagMap;
+ this.anchorMap;
+ this.tag;
+ this.anchor;
+ this.kind;
+ this.result; */
+}
+
+function generateError (state, message) {
+ const mark = {
+ name: state.filename,
+ buffer: state.input.slice(0, -1), // omit trailing \0
+ position: state.position,
+ line: state.line,
+ column: state.position - state.lineStart
+ }
+
+ mark.snippet = makeSnippet(mark)
+
+ return new YAMLException(message, mark)
+}
+
+function throwError (state, message) {
+ throw generateError(state, message)
+}
+
+function throwWarning (state, message) {
+ if (state.onWarning) {
+ state.onWarning.call(null, generateError(state, message))
+ }
+}
+
+function storeAnchor (state, name, value) {
+ const transactions = state.anchorMapTransactions
+
+ if (transactions.length !== 0) {
+ const transaction = transactions[transactions.length - 1]
+
+ if (!_hasOwnProperty.call(transaction, name)) {
+ transaction[name] = {
+ existed: _hasOwnProperty.call(state.anchorMap, name),
+ value: state.anchorMap[name]
+ }
+ }
+ }
+
+ state.anchorMap[name] = value
+}
+
+function beginAnchorTransaction (state) {
+ state.anchorMapTransactions.push(Object.create(null))
+}
+
+function commitAnchorTransaction (state) {
+ const transaction = state.anchorMapTransactions.pop()
+ const transactions = state.anchorMapTransactions
+
+ if (transactions.length === 0) return
+
+ const parent = transactions[transactions.length - 1]
+ const names = Object.keys(transaction)
+
+ for (let index = 0, length = names.length; index < length; index += 1) {
+ const name = names[index]
+
+ if (!_hasOwnProperty.call(parent, name)) {
+ parent[name] = transaction[name]
+ }
+ }
+}
+
+function rollbackAnchorTransaction (state) {
+ const transaction = state.anchorMapTransactions.pop()
+ const names = Object.keys(transaction)
+
+ for (let index = names.length - 1; index >= 0; index -= 1) {
+ const entry = transaction[names[index]]
+
+ if (entry.existed) {
+ state.anchorMap[names[index]] = entry.value
+ } else {
+ delete state.anchorMap[names[index]]
+ }
+ }
+}
+
+function snapshotState (state) {
+ return {
+ position: state.position,
+ line: state.line,
+ lineStart: state.lineStart,
+ lineIndent: state.lineIndent,
+ firstTabInLine: state.firstTabInLine,
+ tag: state.tag,
+ anchor: state.anchor,
+ kind: state.kind,
+ result: state.result
+ }
+}
+
+function restoreState (state, snapshot) {
+ state.position = snapshot.position
+ state.line = snapshot.line
+ state.lineStart = snapshot.lineStart
+ state.lineIndent = snapshot.lineIndent
+ state.firstTabInLine = snapshot.firstTabInLine
+ state.tag = snapshot.tag
+ state.anchor = snapshot.anchor
+ state.kind = snapshot.kind
+ state.result = snapshot.result
+}
+
+const directiveHandlers = {
+
+ YAML: function handleYamlDirective (state, name, args) {
+ if (state.version !== null) {
+ throwError(state, 'duplication of %YAML directive')
+ }
+
+ if (args.length !== 1) {
+ throwError(state, 'YAML directive accepts exactly one argument')
+ }
+
+ const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0])
+
+ if (match === null) {
+ throwError(state, 'ill-formed argument of the YAML directive')
+ }
+
+ const major = parseInt(match[1], 10)
+ const minor = parseInt(match[2], 10)
+
+ if (major !== 1) {
+ throwError(state, 'unacceptable YAML version of the document')
+ }
+
+ state.version = args[0]
+ state.checkLineBreaks = (minor < 2)
+
+ if (minor !== 1 && minor !== 2) {
+ throwWarning(state, 'unsupported YAML version of the document')
+ }
+ },
+
+ TAG: function handleTagDirective (state, name, args) {
+ let prefix
+
+ if (args.length !== 2) {
+ throwError(state, 'TAG directive accepts exactly two arguments')
+ }
+
+ const handle = args[0]
+ prefix = args[1]
+
+ if (!PATTERN_TAG_HANDLE.test(handle)) {
+ throwError(state, 'ill-formed tag handle (first argument) of the TAG directive')
+ }
+
+ if (_hasOwnProperty.call(state.tagMap, handle)) {
+ throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle')
+ }
+
+ if (!PATTERN_TAG_URI.test(prefix)) {
+ throwError(state, 'ill-formed tag prefix (second argument) of the TAG directive')
+ }
+
+ try {
+ prefix = decodeURIComponent(prefix)
+ } catch (err) {
+ throwError(state, 'tag prefix is malformed: ' + prefix)
+ }
+
+ state.tagMap[handle] = prefix
+ }
+}
+
+function captureSegment (state, start, end, checkJson) {
+ if (start < end) {
+ const _result = state.input.slice(start, end)
+
+ if (checkJson) {
+ for (let _position = 0, _length = _result.length; _position < _length; _position += 1) {
+ const _character = _result.charCodeAt(_position)
+ if (!(_character === 0x09 ||
+ (_character >= 0x20 && _character <= 0x10FFFF))) {
+ throwError(state, 'expected valid JSON character')
+ }
+ }
+ } else if (PATTERN_NON_PRINTABLE.test(_result)) {
+ throwError(state, 'the stream contains non-printable characters')
+ }
+
+ state.result += _result
+ }
+}
+
+function mergeMappings (state, destination, source, overridableKeys) {
+ if (!common.isObject(source)) {
+ throwError(state, 'cannot merge mappings; the provided source object is unacceptable')
+ }
+
+ const sourceKeys = Object.keys(source)
+
+ for (let index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
+ const key = sourceKeys[index]
+
+ if (!_hasOwnProperty.call(destination, key)) {
+ setProperty(destination, key, source[key])
+ overridableKeys[key] = true
+ }
+ }
+}
+
+function storeMappingPair (state, _result, overridableKeys, keyTag, keyNode, valueNode,
+ startLine, startLineStart, startPos) {
+ // The output is a plain object here, so keys can only be strings.
+ // We need to convert keyNode to a string, but doing so can hang the process
+ // (deeply nested arrays that explode exponentially using aliases).
+ if (Array.isArray(keyNode)) {
+ keyNode = Array.prototype.slice.call(keyNode)
+
+ for (let index = 0, quantity = keyNode.length; index < quantity; index += 1) {
+ if (Array.isArray(keyNode[index])) {
+ throwError(state, 'nested arrays are not supported inside keys')
+ }
+
+ if (typeof keyNode === 'object' && _class(keyNode[index]) === '[object Object]') {
+ keyNode[index] = '[object Object]'
+ }
+ }
+ }
+
+ // Avoid code execution in load() via toString property
+ // (still use its own toString for arrays, timestamps,
+ // and whatever user schema extensions happen to have @@toStringTag)
+ if (typeof keyNode === 'object' && _class(keyNode) === '[object Object]') {
+ keyNode = '[object Object]'
+ }
+
+ keyNode = String(keyNode)
+
+ if (_result === null) {
+ _result = {}
+ }
+
+ if (keyTag === 'tag:yaml.org,2002:merge') {
+ if (Array.isArray(valueNode)) {
+ if (valueNode.length > state.maxMergeSeqLength) {
+ throwError(state, 'merge sequence length exceeded maxMergeSeqLength (' + state.maxMergeSeqLength + ')')
+ }
+ const seen = new Set()
+ for (let index = 0, quantity = valueNode.length; index < quantity; index += 1) {
+ const src = valueNode[index]
+ // Existing keys are not overridden on merge, so dedupe sources to
+ // avoid redundant work on repeated aliases.
+ if (seen.has(src)) continue
+ seen.add(src)
+ mergeMappings(state, _result, src, overridableKeys)
+ }
+ } else {
+ mergeMappings(state, _result, valueNode, overridableKeys)
+ }
+ } else {
+ if (!state.json &&
+ !_hasOwnProperty.call(overridableKeys, keyNode) &&
+ _hasOwnProperty.call(_result, keyNode)) {
+ state.line = startLine || state.line
+ state.lineStart = startLineStart || state.lineStart
+ state.position = startPos || state.position
+ throwError(state, 'duplicated mapping key')
+ }
+
+ setProperty(_result, keyNode, valueNode)
+ delete overridableKeys[keyNode]
+ }
+
+ return _result
+}
+
+function readLineBreak (state) {
+ const ch = state.input.charCodeAt(state.position)
+
+ if (ch === 0x0A/* LF */) {
+ state.position++
+ } else if (ch === 0x0D/* CR */) {
+ state.position++
+ if (state.input.charCodeAt(state.position) === 0x0A/* LF */) {
+ state.position++
+ }
+ } else {
+ throwError(state, 'a line break is expected')
+ }
+
+ state.line += 1
+ state.lineStart = state.position
+ state.firstTabInLine = -1
+}
+
+function skipSeparationSpace (state, allowComments, checkIndent) {
+ let lineBreaks = 0
+ let ch = state.input.charCodeAt(state.position)
+
+ while (ch !== 0) {
+ while (isWhiteSpace(ch)) {
+ if (ch === 0x09/* Tab */ && state.firstTabInLine === -1) {
+ state.firstTabInLine = state.position
+ }
+ ch = state.input.charCodeAt(++state.position)
+ }
+
+ if (allowComments && ch === 0x23/* # */) {
+ do {
+ ch = state.input.charCodeAt(++state.position)
+ } while (ch !== 0x0A/* LF */ && ch !== 0x0D/* CR */ && ch !== 0)
+ }
+
+ if (isEol(ch)) {
+ readLineBreak(state)
+
+ ch = state.input.charCodeAt(state.position)
+ lineBreaks++
+ state.lineIndent = 0
+
+ while (ch === 0x20/* Space */) {
+ state.lineIndent++
+ ch = state.input.charCodeAt(++state.position)
+ }
+ } else {
+ break
+ }
+ }
+
+ if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {
+ throwWarning(state, 'deficient indentation')
+ }
+
+ return lineBreaks
+}
+
+function testDocumentSeparator (state) {
+ let _position = state.position
+ let ch = state.input.charCodeAt(_position)
+
+ // Condition state.position === state.lineStart is tested
+ // in parent on each call, for efficiency. No needs to test here again.
+ if ((ch === 0x2D/* - */ || ch === 0x2E/* . */) &&
+ ch === state.input.charCodeAt(_position + 1) &&
+ ch === state.input.charCodeAt(_position + 2)) {
+ _position += 3
+
+ ch = state.input.charCodeAt(_position)
+
+ if (ch === 0 || isWsOrEol(ch)) {
+ return true
+ }
+ }
+
+ return false
+}
+
+function writeFoldedLines (state, count) {
+ if (count === 1) {
+ state.result += ' '
+ } else if (count > 1) {
+ state.result += common.repeat('\n', count - 1)
+ }
+}
+
+function readPlainScalar (state, nodeIndent, withinFlowCollection) {
+ let captureStart
+ let captureEnd
+ let hasPendingContent
+ let _line
+ let _lineStart
+ let _lineIndent
+ const _kind = state.kind
+ const _result = state.result
+
+ let ch = state.input.charCodeAt(state.position)
+
+ if (isWsOrEol(ch) ||
+ isFlowIndicator(ch) ||
+ ch === 0x23/* # */ ||
+ ch === 0x26/* & */ ||
+ ch === 0x2A/* * */ ||
+ ch === 0x21/* ! */ ||
+ ch === 0x7C/* | */ ||
+ ch === 0x3E/* > */ ||
+ ch === 0x27/* ' */ ||
+ ch === 0x22/* " */ ||
+ ch === 0x25/* % */ ||
+ ch === 0x40/* @ */ ||
+ ch === 0x60/* ` */) {
+ return false
+ }
+
+ if (ch === 0x3F/* ? */ || ch === 0x2D/* - */) {
+ const following = state.input.charCodeAt(state.position + 1)
+
+ if (isWsOrEol(following) ||
+ (withinFlowCollection && isFlowIndicator(following))) {
+ return false
+ }
+ }
+
+ state.kind = 'scalar'
+ state.result = ''
+ captureStart = captureEnd = state.position
+ hasPendingContent = false
+
+ while (ch !== 0) {
+ if (ch === 0x3A/* : */) {
+ const following = state.input.charCodeAt(state.position + 1)
+
+ if (isWsOrEol(following) ||
+ (withinFlowCollection && isFlowIndicator(following))) {
+ break
+ }
+ } else if (ch === 0x23/* # */) {
+ const preceding = state.input.charCodeAt(state.position - 1)
+
+ if (isWsOrEol(preceding)) {
+ break
+ }
+ } else if ((state.position === state.lineStart && testDocumentSeparator(state)) ||
+ (withinFlowCollection && isFlowIndicator(ch))) {
+ break
+ } else if (isEol(ch)) {
+ _line = state.line
+ _lineStart = state.lineStart
+ _lineIndent = state.lineIndent
+ skipSeparationSpace(state, false, -1)
+
+ if (state.lineIndent >= nodeIndent) {
+ hasPendingContent = true
+ ch = state.input.charCodeAt(state.position)
+ continue
+ } else {
+ state.position = captureEnd
+ state.line = _line
+ state.lineStart = _lineStart
+ state.lineIndent = _lineIndent
+ break
+ }
+ }
+
+ if (hasPendingContent) {
+ captureSegment(state, captureStart, captureEnd, false)
+ writeFoldedLines(state, state.line - _line)
+ captureStart = captureEnd = state.position
+ hasPendingContent = false
+ }
+
+ if (!isWhiteSpace(ch)) {
+ captureEnd = state.position + 1
+ }
+
+ ch = state.input.charCodeAt(++state.position)
+ }
+
+ captureSegment(state, captureStart, captureEnd, false)
+
+ if (state.result) {
+ return true
+ }
+
+ state.kind = _kind
+ state.result = _result
+ return false
+}
+
+function readSingleQuotedScalar (state, nodeIndent) {
+ let captureStart
+ let captureEnd
+
+ let ch = state.input.charCodeAt(state.position)
+
+ if (ch !== 0x27/* ' */) {
+ return false
+ }
+
+ state.kind = 'scalar'
+ state.result = ''
+ state.position++
+ captureStart = captureEnd = state.position
+
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
+ if (ch === 0x27/* ' */) {
+ captureSegment(state, captureStart, state.position, true)
+ ch = state.input.charCodeAt(++state.position)
+
+ if (ch === 0x27/* ' */) {
+ captureStart = state.position
+ state.position++
+ captureEnd = state.position
+ } else {
+ return true
+ }
+ } else if (isEol(ch)) {
+ captureSegment(state, captureStart, captureEnd, true)
+ writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent))
+ captureStart = captureEnd = state.position
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
+ throwError(state, 'unexpected end of the document within a single quoted scalar')
+ } else {
+ state.position++
+ if (!isWhiteSpace(ch)) {
+ captureEnd = state.position
+ }
+ }
+ }
+
+ throwError(state, 'unexpected end of the stream within a single quoted scalar')
+}
+
+function readDoubleQuotedScalar (state, nodeIndent) {
+ let captureStart
+ let captureEnd
+ let tmp
+
+ let ch = state.input.charCodeAt(state.position)
+
+ if (ch !== 0x22/* " */) {
+ return false
+ }
+
+ state.kind = 'scalar'
+ state.result = ''
+ state.position++
+ captureStart = captureEnd = state.position
+
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
+ if (ch === 0x22/* " */) {
+ captureSegment(state, captureStart, state.position, true)
+ state.position++
+ return true
+ } else if (ch === 0x5C/* \ */) {
+ captureSegment(state, captureStart, state.position, true)
+ ch = state.input.charCodeAt(++state.position)
+
+ if (isEol(ch)) {
+ skipSeparationSpace(state, false, nodeIndent)
+
+ // TODO: rework to inline fn with no type cast?
+ } else if (ch < 256 && simpleEscapeCheck[ch]) {
+ state.result += simpleEscapeMap[ch]
+ state.position++
+ } else if ((tmp = escapedHexLen(ch)) > 0) {
+ let hexLength = tmp
+ let hexResult = 0
+
+ for (; hexLength > 0; hexLength--) {
+ ch = state.input.charCodeAt(++state.position)
+
+ if ((tmp = fromHexCode(ch)) >= 0) {
+ hexResult = (hexResult << 4) + tmp
+ } else {
+ throwError(state, 'expected hexadecimal character')
+ }
+ }
+
+ state.result += charFromCodepoint(hexResult)
+
+ state.position++
+ } else {
+ throwError(state, 'unknown escape sequence')
+ }
+
+ captureStart = captureEnd = state.position
+ } else if (isEol(ch)) {
+ captureSegment(state, captureStart, captureEnd, true)
+ writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent))
+ captureStart = captureEnd = state.position
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
+ throwError(state, 'unexpected end of the document within a double quoted scalar')
+ } else {
+ state.position++
+ if (!isWhiteSpace(ch)) {
+ captureEnd = state.position
+ }
+ }
+ }
+
+ throwError(state, 'unexpected end of the stream within a double quoted scalar')
+}
+
+function readFlowCollection (state, nodeIndent) {
+ let readNext = true
+ let _line
+ let _lineStart
+ let _pos
+ const _tag = state.tag
+ let _result
+ const _anchor = state.anchor
+ let terminator
+ let isPair
+ let isExplicitPair
+ let isMapping
+ const overridableKeys = Object.create(null)
+ let keyNode
+ let keyTag
+ let valueNode
+
+ let ch = state.input.charCodeAt(state.position)
+
+ if (ch === 0x5B/* [ */) {
+ terminator = 0x5D/* ] */
+ isMapping = false
+ _result = []
+ } else if (ch === 0x7B/* { */) {
+ terminator = 0x7D/* } */
+ isMapping = true
+ _result = {}
+ } else {
+ return false
+ }
+
+ if (state.anchor !== null) {
+ storeAnchor(state, state.anchor, _result)
+ }
+
+ ch = state.input.charCodeAt(++state.position)
+
+ while (ch !== 0) {
+ skipSeparationSpace(state, true, nodeIndent)
+
+ ch = state.input.charCodeAt(state.position)
+
+ if (ch === terminator) {
+ state.position++
+ state.tag = _tag
+ state.anchor = _anchor
+ state.kind = isMapping ? 'mapping' : 'sequence'
+ state.result = _result
+ return true
+ } else if (!readNext) {
+ throwError(state, 'missed comma between flow collection entries')
+ } else if (ch === 0x2C/* , */) {
+ // "flow collection entries can never be completely empty", as per YAML 1.2, section 7.4
+ throwError(state, "expected the node content, but found ','")
+ }
+
+ keyTag = keyNode = valueNode = null
+ isPair = isExplicitPair = false
+
+ if (ch === 0x3F/* ? */) {
+ const following = state.input.charCodeAt(state.position + 1)
+
+ if (isWsOrEol(following)) {
+ isPair = isExplicitPair = true
+ state.position++
+ skipSeparationSpace(state, true, nodeIndent)
+ }
+ }
+
+ _line = state.line // Save the current line.
+ _lineStart = state.lineStart
+ _pos = state.position
+ composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true)
+ keyTag = state.tag
+ keyNode = state.result
+ skipSeparationSpace(state, true, nodeIndent)
+
+ ch = state.input.charCodeAt(state.position)
+
+ if ((isExplicitPair || state.line === _line) && ch === 0x3A/* : */) {
+ isPair = true
+ ch = state.input.charCodeAt(++state.position)
+ skipSeparationSpace(state, true, nodeIndent)
+ composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true)
+ valueNode = state.result
+ }
+
+ if (isMapping) {
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos)
+ } else if (isPair) {
+ _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos))
+ } else {
+ _result.push(keyNode)
+ }
+
+ skipSeparationSpace(state, true, nodeIndent)
+
+ ch = state.input.charCodeAt(state.position)
+
+ if (ch === 0x2C/* , */) {
+ readNext = true
+ ch = state.input.charCodeAt(++state.position)
+ } else {
+ readNext = false
+ }
+ }
+
+ throwError(state, 'unexpected end of the stream within a flow collection')
+}
+
+function readBlockScalar (state, nodeIndent) {
+ let folding
+ let chomping = CHOMPING_CLIP
+ let didReadContent = false
+ let detectedIndent = false
+ let textIndent = nodeIndent
+ let emptyLines = 0
+ let atMoreIndented = false
+ let tmp
+
+ let ch = state.input.charCodeAt(state.position)
+
+ if (ch === 0x7C/* | */) {
+ folding = false
+ } else if (ch === 0x3E/* > */) {
+ folding = true
+ } else {
+ return false
+ }
+
+ state.kind = 'scalar'
+ state.result = ''
+
+ while (ch !== 0) {
+ ch = state.input.charCodeAt(++state.position)
+
+ if (ch === 0x2B/* + */ || ch === 0x2D/* - */) {
+ if (CHOMPING_CLIP === chomping) {
+ chomping = (ch === 0x2B/* + */) ? CHOMPING_KEEP : CHOMPING_STRIP
+ } else {
+ throwError(state, 'repeat of a chomping mode identifier')
+ }
+ } else if ((tmp = fromDecimalCode(ch)) >= 0) {
+ if (tmp === 0) {
+ throwError(state, 'bad explicit indentation width of a block scalar; it cannot be less than one')
+ } else if (!detectedIndent) {
+ textIndent = nodeIndent + tmp - 1
+ detectedIndent = true
+ } else {
+ throwError(state, 'repeat of an indentation width identifier')
+ }
+ } else {
+ break
+ }
+ }
+
+ if (isWhiteSpace(ch)) {
+ do { ch = state.input.charCodeAt(++state.position) }
+ while (isWhiteSpace(ch))
+
+ if (ch === 0x23/* # */) {
+ do { ch = state.input.charCodeAt(++state.position) }
+ while (!isEol(ch) && (ch !== 0))
+ }
+ }
+
+ while (ch !== 0) {
+ readLineBreak(state)
+ state.lineIndent = 0
+
+ ch = state.input.charCodeAt(state.position)
+
+ // eslint-disable-next-line no-unmodified-loop-condition
+ while ((!detectedIndent || state.lineIndent < textIndent) &&
+ (ch === 0x20/* Space */)) {
+ state.lineIndent++
+ ch = state.input.charCodeAt(++state.position)
+ }
+
+ if (!detectedIndent && state.lineIndent > textIndent) {
+ textIndent = state.lineIndent
+ }
+
+ if (isEol(ch)) {
+ emptyLines++
+ continue
+ }
+
+ if (!detectedIndent && textIndent === 0) {
+ throwError(state, 'missing indentation for block scalar')
+ }
+
+ // End of the scalar.
+ if (state.lineIndent < textIndent) {
+ // Perform the chomping.
+ if (chomping === CHOMPING_KEEP) {
+ state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines)
+ } else if (chomping === CHOMPING_CLIP) {
+ if (didReadContent) { // i.e. only if the scalar is not empty.
+ state.result += '\n'
+ }
+ }
+
+ // Break this `while` cycle and go to the funciton's epilogue.
+ break
+ }
+
+ // Folded style: use fancy rules to handle line breaks.
+ if (folding) {
+ // Lines starting with white space characters (more-indented lines) are not folded.
+ if (isWhiteSpace(ch)) {
+ atMoreIndented = true
+ // except for the first content line (cf. Example 8.1)
+ state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines)
+
+ // End of more-indented block.
+ } else if (atMoreIndented) {
+ atMoreIndented = false
+ state.result += common.repeat('\n', emptyLines + 1)
+
+ // Just one line break - perceive as the same line.
+ } else if (emptyLines === 0) {
+ if (didReadContent) { // i.e. only if we have already read some scalar content.
+ state.result += ' '
+ }
+
+ // Several line breaks - perceive as different lines.
+ } else {
+ state.result += common.repeat('\n', emptyLines)
+ }
+
+ // Literal style: just add exact number of line breaks between content lines.
+ } else {
+ // Keep all line breaks except the header line break.
+ state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines)
+ }
+
+ didReadContent = true
+ detectedIndent = true
+ emptyLines = 0
+ const captureStart = state.position
+
+ while (!isEol(ch) && (ch !== 0)) {
+ ch = state.input.charCodeAt(++state.position)
+ }
+
+ captureSegment(state, captureStart, state.position, false)
+ }
+
+ return true
+}
+
+function readBlockSequence (state, nodeIndent) {
+ const _tag = state.tag
+ const _anchor = state.anchor
+ const _result = []
+ let detected = false
+
+ // there is a leading tab before this token, so it can't be a block sequence/mapping;
+ // it can still be flow sequence/mapping or a scalar
+ if (state.firstTabInLine !== -1) return false
+
+ if (state.anchor !== null) {
+ storeAnchor(state, state.anchor, _result)
+ }
+
+ let ch = state.input.charCodeAt(state.position)
+
+ while (ch !== 0) {
+ if (state.firstTabInLine !== -1) {
+ state.position = state.firstTabInLine
+ throwError(state, 'tab characters must not be used in indentation')
+ }
+
+ if (ch !== 0x2D/* - */) {
+ break
+ }
+
+ const following = state.input.charCodeAt(state.position + 1)
+
+ if (!isWsOrEol(following)) {
+ break
+ }
+
+ detected = true
+ state.position++
+
+ if (skipSeparationSpace(state, true, -1)) {
+ if (state.lineIndent <= nodeIndent) {
+ _result.push(null)
+ ch = state.input.charCodeAt(state.position)
+ continue
+ }
+ }
+
+ const _line = state.line
+ composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true)
+ _result.push(state.result)
+ skipSeparationSpace(state, true, -1)
+
+ ch = state.input.charCodeAt(state.position)
+
+ if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) {
+ throwError(state, 'bad indentation of a sequence entry')
+ } else if (state.lineIndent < nodeIndent) {
+ break
+ }
+ }
+
+ if (detected) {
+ state.tag = _tag
+ state.anchor = _anchor
+ state.kind = 'sequence'
+ state.result = _result
+ return true
+ }
+ return false
+}
+
+function readBlockMapping (state, nodeIndent, flowIndent) {
+ let allowCompact
+ let _keyLine
+ let _keyLineStart
+ let _keyPos
+ const _tag = state.tag
+ const _anchor = state.anchor
+ const _result = {}
+ const overridableKeys = Object.create(null)
+ let keyTag = null
+ let keyNode = null
+ let valueNode = null
+ let atExplicitKey = false
+ let detected = false
+
+ // there is a leading tab before this token, so it can't be a block sequence/mapping;
+ // it can still be flow sequence/mapping or a scalar
+ if (state.firstTabInLine !== -1) return false
+
+ if (state.anchor !== null) {
+ storeAnchor(state, state.anchor, _result)
+ }
+
+ let ch = state.input.charCodeAt(state.position)
+
+ while (ch !== 0) {
+ if (!atExplicitKey && state.firstTabInLine !== -1) {
+ state.position = state.firstTabInLine
+ throwError(state, 'tab characters must not be used in indentation')
+ }
+
+ const following = state.input.charCodeAt(state.position + 1)
+ const _line = state.line // Save the current line.
+
+ //
+ // Explicit notation case. There are two separate blocks:
+ // first for the key (denoted by "?") and second for the value (denoted by ":")
+ //
+ if ((ch === 0x3F/* ? */ || ch === 0x3A/* : */) && isWsOrEol(following)) {
+ if (ch === 0x3F/* ? */) {
+ if (atExplicitKey) {
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos)
+ keyTag = keyNode = valueNode = null
+ }
+
+ detected = true
+ atExplicitKey = true
+ allowCompact = true
+ } else if (atExplicitKey) {
+ // i.e. 0x3A/* : */ === character after the explicit key.
+ atExplicitKey = false
+ allowCompact = true
+ } else {
+ throwError(state, 'incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line')
+ }
+
+ state.position += 1
+ ch = following
+
+ //
+ // Implicit notation case. Flow-style node as the key first, then ":", and the value.
+ //
+ } else {
+ _keyLine = state.line
+ _keyLineStart = state.lineStart
+ _keyPos = state.position
+
+ if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {
+ // Neither implicit nor explicit notation.
+ // Reading is done. Go to the epilogue.
+ break
+ }
+
+ if (state.line === _line) {
+ ch = state.input.charCodeAt(state.position)
+
+ while (isWhiteSpace(ch)) {
+ ch = state.input.charCodeAt(++state.position)
+ }
+
+ if (ch === 0x3A/* : */) {
+ ch = state.input.charCodeAt(++state.position)
+
+ if (!isWsOrEol(ch)) {
+ throwError(state, 'a whitespace character is expected after the key-value separator within a block mapping')
+ }
+
+ if (atExplicitKey) {
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos)
+ keyTag = keyNode = valueNode = null
+ }
+
+ detected = true
+ atExplicitKey = false
+ allowCompact = false
+ keyTag = state.tag
+ keyNode = state.result
+ } else if (detected) {
+ throwError(state, 'can not read an implicit mapping pair; a colon is missed')
+ } else {
+ state.tag = _tag
+ state.anchor = _anchor
+ return true // Keep the result of `composeNode`.
+ }
+ } else if (detected) {
+ throwError(state, 'can not read a block mapping entry; a multiline key may not be an implicit key')
+ } else {
+ state.tag = _tag
+ state.anchor = _anchor
+ return true // Keep the result of `composeNode`.
+ }
+ }
+
+ //
+ // Common reading code for both explicit and implicit notations.
+ //
+ if (state.line === _line || state.lineIndent > nodeIndent) {
+ if (atExplicitKey) {
+ _keyLine = state.line
+ _keyLineStart = state.lineStart
+ _keyPos = state.position
+ }
+
+ if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
+ if (atExplicitKey) {
+ keyNode = state.result
+ } else {
+ valueNode = state.result
+ }
+ }
+
+ if (!atExplicitKey) {
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos)
+ keyTag = keyNode = valueNode = null
+ }
+
+ skipSeparationSpace(state, true, -1)
+ ch = state.input.charCodeAt(state.position)
+ }
+
+ if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) {
+ throwError(state, 'bad indentation of a mapping entry')
+ } else if (state.lineIndent < nodeIndent) {
+ break
+ }
+ }
+
+ //
+ // Epilogue.
+ //
+
+ // Special case: last mapping's node contains only the key in explicit notation.
+ if (atExplicitKey) {
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos)
+ }
+
+ // Expose the resulting mapping.
+ if (detected) {
+ state.tag = _tag
+ state.anchor = _anchor
+ state.kind = 'mapping'
+ state.result = _result
+ }
+
+ return detected
+}
+
+function readTagProperty (state) {
+ let isVerbatim = false
+ let isNamed = false
+ let tagHandle
+ let tagName
+
+ let ch = state.input.charCodeAt(state.position)
+
+ if (ch !== 0x21/* ! */) return false
+
+ if (state.tag !== null) {
+ throwError(state, 'duplication of a tag property')
+ }
+
+ ch = state.input.charCodeAt(++state.position)
+
+ if (ch === 0x3C/* < */) {
+ isVerbatim = true
+ ch = state.input.charCodeAt(++state.position)
+ } else if (ch === 0x21/* ! */) {
+ isNamed = true
+ tagHandle = '!!'
+ ch = state.input.charCodeAt(++state.position)
+ } else {
+ tagHandle = '!'
+ }
+
+ let _position = state.position
+
+ if (isVerbatim) {
+ do { ch = state.input.charCodeAt(++state.position) }
+ while (ch !== 0 && ch !== 0x3E/* > */)
+
+ if (state.position < state.length) {
+ tagName = state.input.slice(_position, state.position)
+ ch = state.input.charCodeAt(++state.position)
+ } else {
+ throwError(state, 'unexpected end of the stream within a verbatim tag')
+ }
+ } else {
+ while (ch !== 0 && !isWsOrEol(ch)) {
+ if (ch === 0x21/* ! */) {
+ if (!isNamed) {
+ tagHandle = state.input.slice(_position - 1, state.position + 1)
+
+ if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
+ throwError(state, 'named tag handle cannot contain such characters')
+ }
+
+ isNamed = true
+ _position = state.position + 1
+ } else {
+ throwError(state, 'tag suffix cannot contain exclamation marks')
+ }
+ }
+
+ ch = state.input.charCodeAt(++state.position)
+ }
+
+ tagName = state.input.slice(_position, state.position)
+
+ if (PATTERN_FLOW_INDICATORS.test(tagName)) {
+ throwError(state, 'tag suffix cannot contain flow indicator characters')
+ }
+ }
+
+ if (tagName && !PATTERN_TAG_URI.test(tagName)) {
+ throwError(state, 'tag name cannot contain such characters: ' + tagName)
+ }
+
+ try {
+ tagName = decodeURIComponent(tagName)
+ } catch (err) {
+ throwError(state, 'tag name is malformed: ' + tagName)
+ }
+
+ if (isVerbatim) {
+ state.tag = tagName
+ } else if (_hasOwnProperty.call(state.tagMap, tagHandle)) {
+ state.tag = state.tagMap[tagHandle] + tagName
+ } else if (tagHandle === '!') {
+ state.tag = '!' + tagName
+ } else if (tagHandle === '!!') {
+ state.tag = 'tag:yaml.org,2002:' + tagName
+ } else {
+ throwError(state, 'undeclared tag handle "' + tagHandle + '"')
+ }
+
+ return true
+}
+
+function readAnchorProperty (state) {
+ let ch = state.input.charCodeAt(state.position)
+
+ if (ch !== 0x26/* & */) return false
+
+ if (state.anchor !== null) {
+ throwError(state, 'duplication of an anchor property')
+ }
+
+ ch = state.input.charCodeAt(++state.position)
+ const _position = state.position
+
+ while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
+ ch = state.input.charCodeAt(++state.position)
+ }
+
+ if (state.position === _position) {
+ throwError(state, 'name of an anchor node must contain at least one character')
+ }
+
+ state.anchor = state.input.slice(_position, state.position)
+ return true
+}
+
+function readAlias (state) {
+ let ch = state.input.charCodeAt(state.position)
+
+ if (ch !== 0x2A/* * */) return false
+
+ ch = state.input.charCodeAt(++state.position)
+ const _position = state.position
+
+ while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
+ ch = state.input.charCodeAt(++state.position)
+ }
+
+ if (state.position === _position) {
+ throwError(state, 'name of an alias node must contain at least one character')
+ }
+
+ const alias = state.input.slice(_position, state.position)
+
+ if (!_hasOwnProperty.call(state.anchorMap, alias)) {
+ throwError(state, 'unidentified alias "' + alias + '"')
+ }
+
+ state.result = state.anchorMap[alias]
+ skipSeparationSpace(state, true, -1)
+ return true
+}
+
+function tryReadBlockMappingFromProperty (state, propertyStart, nodeIndent, flowIndent) {
+ const fallbackState = snapshotState(state)
+
+ beginAnchorTransaction(state)
+ restoreState(state, propertyStart)
+
+ // Re-read the leading properties as part of the first implicit key, not as
+ // properties of the current node.
+ state.tag = null
+ state.anchor = null
+ state.kind = null
+ state.result = null
+
+ if (readBlockMapping(state, nodeIndent, flowIndent) && state.kind === 'mapping') {
+ commitAnchorTransaction(state)
+ return true
+ }
+
+ rollbackAnchorTransaction(state)
+ restoreState(state, fallbackState)
+ return false
+}
+
+function composeNode (state, parentIndent, nodeContext, allowToSeek, allowCompact) {
+ let allowBlockScalars
+ let allowBlockCollections
+ let indentStatus = 1 // 1: this>parent, 0: this=parent, -1: this= state.maxDepth) {
+ throwError(state, 'nesting exceeded maxDepth (' + state.maxDepth + ')')
+ }
+
+ state.depth += 1
+
+ if (state.listener !== null) {
+ state.listener('open', state)
+ }
+
+ state.tag = null
+ state.anchor = null
+ state.kind = null
+ state.result = null
+
+ const allowBlockStyles = allowBlockScalars = allowBlockCollections =
+ CONTEXT_BLOCK_OUT === nodeContext ||
+ CONTEXT_BLOCK_IN === nodeContext
+
+ if (allowToSeek) {
+ if (skipSeparationSpace(state, true, -1)) {
+ atNewLine = true
+
+ if (state.lineIndent > parentIndent) {
+ indentStatus = 1
+ } else if (state.lineIndent === parentIndent) {
+ indentStatus = 0
+ } else if (state.lineIndent < parentIndent) {
+ indentStatus = -1
+ }
+ }
+ }
+
+ if (indentStatus === 1) {
+ while (true) {
+ const ch = state.input.charCodeAt(state.position)
+ const propertyState = snapshotState(state)
+
+ // A duplicate property token after a line break can be the first key of
+ // a nested block mapping, e.g. `!!map\n !!str key: value`.
+ if (atNewLine &&
+ ((ch === 0x21/* ! */ && state.tag !== null) ||
+ (ch === 0x26/* & */ && state.anchor !== null))) {
+ break
+ }
+
+ if (!readTagProperty(state) && !readAnchorProperty(state)) {
+ break
+ }
+
+ if (propertyStart === null) {
+ propertyStart = propertyState
+ }
+
+ if (skipSeparationSpace(state, true, -1)) {
+ atNewLine = true
+ allowBlockCollections = allowBlockStyles
+
+ if (state.lineIndent > parentIndent) {
+ indentStatus = 1
+ } else if (state.lineIndent === parentIndent) {
+ indentStatus = 0
+ } else if (state.lineIndent < parentIndent) {
+ indentStatus = -1
+ }
+ } else {
+ allowBlockCollections = false
+ }
+ }
+ }
+
+ if (allowBlockCollections) {
+ allowBlockCollections = atNewLine || allowCompact
+ }
+
+ if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
+ if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {
+ flowIndent = parentIndent
+ } else {
+ flowIndent = parentIndent + 1
+ }
+
+ blockIndent = state.position - state.lineStart
+
+ if (indentStatus === 1) {
+ if ((allowBlockCollections &&
+ (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent))) ||
+ readFlowCollection(state, flowIndent)) {
+ hasContent = true
+ } else {
+ const ch = state.input.charCodeAt(state.position)
+
+ if (propertyStart !== null && allowBlockStyles && !allowBlockCollections &&
+ ch !== 0x7C/* | */ && ch !== 0x3E/* > */ &&
+ tryReadBlockMappingFromProperty(
+ state,
+ propertyStart,
+ propertyStart.position - propertyStart.lineStart,
+ flowIndent
+ )) {
+ hasContent = true
+ } else if ((allowBlockScalars && readBlockScalar(state, flowIndent)) ||
+ readSingleQuotedScalar(state, flowIndent) ||
+ readDoubleQuotedScalar(state, flowIndent)) {
+ hasContent = true
+ } else if (readAlias(state)) {
+ hasContent = true
+
+ if (state.tag !== null || state.anchor !== null) {
+ throwError(state, 'alias node should not have any properties')
+ }
+ } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
+ hasContent = true
+
+ if (state.tag === null) {
+ state.tag = '?'
+ }
+ }
+
+ if (state.anchor !== null) {
+ storeAnchor(state, state.anchor, state.result)
+ }
+ }
+ } else if (indentStatus === 0) {
+ // Special case: block sequences are allowed to have same indentation level as the parent.
+ // http://www.yaml.org/spec/1.2/spec.html#id2799784
+ hasContent = allowBlockCollections && readBlockSequence(state, blockIndent)
+ }
+ }
+
+ if (state.tag === null) {
+ if (state.anchor !== null) {
+ storeAnchor(state, state.anchor, state.result)
+ }
+ } else if (state.tag === '?') {
+ // Implicit resolving is not allowed for non-scalar types, and '?'
+ // non-specific tag is only automatically assigned to plain scalars.
+ //
+ // We only need to check kind conformity in case user explicitly assigns '?'
+ // tag, for example like this: "!> [0]"
+ //
+ if (state.result !== null && state.kind !== 'scalar') {
+ throwError(state, 'unacceptable node kind for !> tag; it should be "scalar", not "' + state.kind + '"')
+ }
+
+ for (let typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) {
+ type = state.implicitTypes[typeIndex]
+
+ if (type.resolve(state.result)) { // `state.result` updated in resolver if matched
+ state.result = type.construct(state.result)
+ state.tag = type.tag
+ if (state.anchor !== null) {
+ storeAnchor(state, state.anchor, state.result)
+ }
+ break
+ }
+ }
+ } else if (state.tag !== '!') {
+ if (_hasOwnProperty.call(state.typeMap[state.kind || 'fallback'], state.tag)) {
+ type = state.typeMap[state.kind || 'fallback'][state.tag]
+ } else {
+ // looking for multi type
+ type = null
+ const typeList = state.typeMap.multi[state.kind || 'fallback']
+
+ for (let typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) {
+ if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
+ type = typeList[typeIndex]
+ break
+ }
+ }
+ }
+
+ if (!type) {
+ throwError(state, 'unknown tag !<' + state.tag + '>')
+ }
+
+ if (state.result !== null && type.kind !== state.kind) {
+ throwError(state, 'unacceptable node kind for !<' + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"')
+ }
+
+ if (!type.resolve(state.result, state.tag)) { // `state.result` updated in resolver if matched
+ throwError(state, 'cannot resolve a node with !<' + state.tag + '> explicit tag')
+ } else {
+ state.result = type.construct(state.result, state.tag)
+ if (state.anchor !== null) {
+ storeAnchor(state, state.anchor, state.result)
+ }
+ }
+ }
+
+ if (state.listener !== null) {
+ state.listener('close', state)
+ }
+
+ state.depth -= 1
+ return state.tag !== null || state.anchor !== null || hasContent
+}
+
+function readDocument (state) {
+ const documentStart = state.position
+ let hasDirectives = false
+ let ch
+
+ state.version = null
+ state.checkLineBreaks = state.legacy
+ state.tagMap = Object.create(null)
+ state.anchorMap = Object.create(null)
+
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
+ skipSeparationSpace(state, true, -1)
+
+ ch = state.input.charCodeAt(state.position)
+
+ if (state.lineIndent > 0 || ch !== 0x25/* % */) {
+ break
+ }
+
+ hasDirectives = true
+ ch = state.input.charCodeAt(++state.position)
+ let _position = state.position
+
+ while (ch !== 0 && !isWsOrEol(ch)) {
+ ch = state.input.charCodeAt(++state.position)
+ }
+
+ const directiveName = state.input.slice(_position, state.position)
+ const directiveArgs = []
+
+ if (directiveName.length < 1) {
+ throwError(state, 'directive name must not be less than one character in length')
+ }
+
+ while (ch !== 0) {
+ while (isWhiteSpace(ch)) {
+ ch = state.input.charCodeAt(++state.position)
+ }
+
+ if (ch === 0x23/* # */) {
+ do { ch = state.input.charCodeAt(++state.position) }
+ while (ch !== 0 && !isEol(ch))
+ break
+ }
+
+ if (isEol(ch)) break
+
+ _position = state.position
+
+ while (ch !== 0 && !isWsOrEol(ch)) {
+ ch = state.input.charCodeAt(++state.position)
+ }
+
+ directiveArgs.push(state.input.slice(_position, state.position))
+ }
+
+ if (ch !== 0) readLineBreak(state)
+
+ if (_hasOwnProperty.call(directiveHandlers, directiveName)) {
+ directiveHandlers[directiveName](state, directiveName, directiveArgs)
+ } else {
+ throwWarning(state, 'unknown document directive "' + directiveName + '"')
+ }
+ }
+
+ skipSeparationSpace(state, true, -1)
+
+ if (state.lineIndent === 0 &&
+ state.input.charCodeAt(state.position) === 0x2D/* - */ &&
+ state.input.charCodeAt(state.position + 1) === 0x2D/* - */ &&
+ state.input.charCodeAt(state.position + 2) === 0x2D/* - */) {
+ state.position += 3
+ skipSeparationSpace(state, true, -1)
+ } else if (hasDirectives) {
+ throwError(state, 'directives end mark is expected')
+ }
+
+ composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true)
+ skipSeparationSpace(state, true, -1)
+
+ if (state.checkLineBreaks &&
+ PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {
+ throwWarning(state, 'non-ASCII line breaks are interpreted as content')
+ }
+
+ state.documents.push(state.result)
+
+ if (state.position === state.lineStart && testDocumentSeparator(state)) {
+ if (state.input.charCodeAt(state.position) === 0x2E/* . */) {
+ state.position += 3
+ skipSeparationSpace(state, true, -1)
+ }
+ return
+ }
+
+ if (state.position < (state.length - 1)) {
+ throwError(state, 'end of the stream or a document separator is expected')
+ }
+}
+
+function loadDocuments (input, options) {
+ input = String(input)
+ options = options || {}
+
+ if (input.length !== 0) {
+ // Add tailing `\n` if not exists
+ if (input.charCodeAt(input.length - 1) !== 0x0A/* LF */ &&
+ input.charCodeAt(input.length - 1) !== 0x0D/* CR */) {
+ input += '\n'
+ }
+
+ // Strip BOM
+ if (input.charCodeAt(0) === 0xFEFF) {
+ input = input.slice(1)
+ }
+ }
+
+ const state = new State(input, options)
+
+ const nullpos = input.indexOf('\0')
+
+ if (nullpos !== -1) {
+ state.position = nullpos
+ throwError(state, 'null byte is not allowed in input')
+ }
+
+ // Use 0 as string terminator. That significantly simplifies bounds check.
+ state.input += '\0'
+
+ while (state.input.charCodeAt(state.position) === 0x20/* Space */) {
+ state.lineIndent += 1
+ state.position += 1
+ }
+
+ while (state.position < (state.length - 1)) {
+ readDocument(state)
+ }
+
+ return state.documents
+}
+
+function loadAll (input, iterator, options) {
+ if (iterator !== null && typeof iterator === 'object' && typeof options === 'undefined') {
+ options = iterator
+ iterator = null
+ }
+
+ const documents = loadDocuments(input, options)
+
+ if (typeof iterator !== 'function') {
+ return documents
+ }
+
+ for (let index = 0, length = documents.length; index < length; index += 1) {
+ iterator(documents[index])
+ }
+}
+
+function load (input, options) {
+ const documents = loadDocuments(input, options)
+
+ if (documents.length === 0) {
+ return undefined
+ } else if (documents.length === 1) {
+ return documents[0]
+ }
+ throw new YAMLException('expected a single document in the stream, but found more')
+}
+
+module.exports.loadAll = loadAll
+module.exports.load = load
diff --git a/node_modules/js-yaml/lib/schema.js b/node_modules/js-yaml/lib/schema.js
new file mode 100644
index 0000000000000000000000000000000000000000..52e8f41e656e50340613ddbe8de3a9354c1f4581
--- /dev/null
+++ b/node_modules/js-yaml/lib/schema.js
@@ -0,0 +1,109 @@
+'use strict'
+
+const YAMLException = require('./exception')
+const Type = require('./type')
+
+function compileList (schema, name) {
+ const result = []
+
+ schema[name].forEach(function (currentType) {
+ let newIndex = result.length
+
+ result.forEach(function (previousType, previousIndex) {
+ if (previousType.tag === currentType.tag &&
+ previousType.kind === currentType.kind &&
+ previousType.multi === currentType.multi) {
+ newIndex = previousIndex
+ }
+ })
+
+ result[newIndex] = currentType
+ })
+
+ return result
+}
+
+function compileMap (/* lists... */) {
+ const result = {
+ scalar: {},
+ sequence: {},
+ mapping: {},
+ fallback: {},
+ multi: {
+ scalar: [],
+ sequence: [],
+ mapping: [],
+ fallback: []
+ }
+ }
+ function collectType (type) {
+ if (type.multi) {
+ result.multi[type.kind].push(type)
+ result.multi['fallback'].push(type)
+ } else {
+ result[type.kind][type.tag] = result['fallback'][type.tag] = type
+ }
+ }
+
+ for (let index = 0, length = arguments.length; index < length; index += 1) {
+ arguments[index].forEach(collectType)
+ }
+ return result
+}
+
+function Schema (definition) {
+ return this.extend(definition)
+}
+
+Schema.prototype.extend = function extend (definition) {
+ let implicit = []
+ let explicit = []
+
+ if (definition instanceof Type) {
+ // Schema.extend(type)
+ explicit.push(definition)
+ } else if (Array.isArray(definition)) {
+ // Schema.extend([ type1, type2, ... ])
+ explicit = explicit.concat(definition)
+ } else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
+ // Schema.extend({ explicit: [ type1, type2, ... ], implicit: [ type1, type2, ... ] })
+ if (definition.implicit) implicit = implicit.concat(definition.implicit)
+ if (definition.explicit) explicit = explicit.concat(definition.explicit)
+ } else {
+ throw new YAMLException('Schema.extend argument should be a Type, [ Type ], ' +
+ 'or a schema definition ({ implicit: [...], explicit: [...] })')
+ }
+
+ implicit.forEach(function (type) {
+ if (!(type instanceof Type)) {
+ throw new YAMLException('Specified list of YAML types (or a single Type object) contains a non-Type object.')
+ }
+
+ if (type.loadKind && type.loadKind !== 'scalar') {
+ throw new YAMLException('There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.')
+ }
+
+ if (type.multi) {
+ throw new YAMLException('There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.')
+ }
+ })
+
+ explicit.forEach(function (type) {
+ if (!(type instanceof Type)) {
+ throw new YAMLException('Specified list of YAML types (or a single Type object) contains a non-Type object.')
+ }
+ })
+
+ const result = Object.create(Schema.prototype)
+
+ result.implicit = (this.implicit || []).concat(implicit)
+ result.explicit = (this.explicit || []).concat(explicit)
+
+ result.compiledImplicit = compileList(result, 'implicit')
+ result.compiledExplicit = compileList(result, 'explicit')
+ result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit)
+
+ return result
+}
+
+module.exports = Schema
diff --git a/node_modules/js-yaml/lib/schema/core.js b/node_modules/js-yaml/lib/schema/core.js
new file mode 100644
index 0000000000000000000000000000000000000000..2660239dff9719d1e0eea77d85304bb495814e76
--- /dev/null
+++ b/node_modules/js-yaml/lib/schema/core.js
@@ -0,0 +1,9 @@
+// Standard YAML's Core schema.
+// http://www.yaml.org/spec/1.2/spec.html#id2804923
+//
+// NOTE: JS-YAML does not support schema-specific tag resolution restrictions.
+// So, Core schema has no distinctions from JSON schema is JS-YAML.
+
+'use strict'
+
+module.exports = require('./json')
diff --git a/node_modules/js-yaml/lib/schema/default.js b/node_modules/js-yaml/lib/schema/default.js
new file mode 100644
index 0000000000000000000000000000000000000000..fb232d6d8fa4e96d8db5fbad63cad59366d012f9
--- /dev/null
+++ b/node_modules/js-yaml/lib/schema/default.js
@@ -0,0 +1,20 @@
+// JS-YAML's default schema for `safeLoad` function.
+// It is not described in the YAML specification.
+//
+// This schema is based on standard YAML's Core schema and includes most of
+// extra types described at YAML tag repository. (http://yaml.org/type/)
+
+'use strict'
+
+module.exports = require('./core').extend({
+ implicit: [
+ require('../type/timestamp'),
+ require('../type/merge')
+ ],
+ explicit: [
+ require('../type/binary'),
+ require('../type/omap'),
+ require('../type/pairs'),
+ require('../type/set')
+ ]
+})
diff --git a/node_modules/js-yaml/lib/schema/failsafe.js b/node_modules/js-yaml/lib/schema/failsafe.js
new file mode 100644
index 0000000000000000000000000000000000000000..ee63fe035fc2977fb9dd8c9c88c27397e4b7fa04
--- /dev/null
+++ b/node_modules/js-yaml/lib/schema/failsafe.js
@@ -0,0 +1,14 @@
+// Standard YAML's Failsafe schema.
+// http://www.yaml.org/spec/1.2/spec.html#id2802346
+
+'use strict'
+
+const Schema = require('../schema')
+
+module.exports = new Schema({
+ explicit: [
+ require('../type/str'),
+ require('../type/seq'),
+ require('../type/map')
+ ]
+})
diff --git a/node_modules/js-yaml/lib/schema/json.js b/node_modules/js-yaml/lib/schema/json.js
new file mode 100644
index 0000000000000000000000000000000000000000..ac75fa2bd1edc91c02ad62c9d975b2ee8f4fae77
--- /dev/null
+++ b/node_modules/js-yaml/lib/schema/json.js
@@ -0,0 +1,17 @@
+// Standard YAML's JSON schema.
+// http://www.yaml.org/spec/1.2/spec.html#id2803231
+//
+// NOTE: JS-YAML does not support schema-specific tag resolution restrictions.
+// So, this schema is not such strict as defined in the YAML specification.
+// It allows numbers in binary notaion, use `Null` and `NULL` as `null`, etc.
+
+'use strict'
+
+module.exports = require('./failsafe').extend({
+ implicit: [
+ require('../type/null'),
+ require('../type/bool'),
+ require('../type/int'),
+ require('../type/float')
+ ]
+})
diff --git a/node_modules/js-yaml/lib/snippet.js b/node_modules/js-yaml/lib/snippet.js
new file mode 100644
index 0000000000000000000000000000000000000000..71004a4df1b9e1b995b82d240c539d16e8b1d110
--- /dev/null
+++ b/node_modules/js-yaml/lib/snippet.js
@@ -0,0 +1,96 @@
+'use strict'
+
+const common = require('./common')
+
+// get snippet for a single line, respecting maxLength
+function getLine (buffer, lineStart, lineEnd, position, maxLineLength) {
+ let head = ''
+ let tail = ''
+ const maxHalfLength = Math.floor(maxLineLength / 2) - 1
+
+ if (position - lineStart > maxHalfLength) {
+ head = ' ... '
+ lineStart = position - maxHalfLength + head.length
+ }
+
+ if (lineEnd - position > maxHalfLength) {
+ tail = ' ...'
+ lineEnd = position + maxHalfLength - tail.length
+ }
+
+ return {
+ str: head + buffer.slice(lineStart, lineEnd).replace(/\t/g, '→') + tail,
+ pos: position - lineStart + head.length // relative position
+ }
+}
+
+function padStart (string, max) {
+ return common.repeat(' ', max - string.length) + string
+}
+
+function makeSnippet (mark, options) {
+ options = Object.create(options || null)
+
+ if (!mark.buffer) return null
+
+ if (!options.maxLength) options.maxLength = 79
+ if (typeof options.indent !== 'number') options.indent = 1
+ if (typeof options.linesBefore !== 'number') options.linesBefore = 3
+ if (typeof options.linesAfter !== 'number') options.linesAfter = 2
+
+ const re = /\r?\n|\r|\0/g
+ const lineStarts = [0]
+ const lineEnds = []
+ let match
+ let foundLineNo = -1
+
+ while ((match = re.exec(mark.buffer))) {
+ lineEnds.push(match.index)
+ lineStarts.push(match.index + match[0].length)
+
+ if (mark.position <= match.index && foundLineNo < 0) {
+ foundLineNo = lineStarts.length - 2
+ }
+ }
+
+ if (foundLineNo < 0) foundLineNo = lineStarts.length - 1
+
+ let result = ''
+ const lineNoLength = Math.min(mark.line + options.linesAfter, lineEnds.length).toString().length
+ const maxLineLength = options.maxLength - (options.indent + lineNoLength + 3)
+
+ for (let i = 1; i <= options.linesBefore; i++) {
+ if (foundLineNo - i < 0) break
+ const line = getLine(
+ mark.buffer,
+ lineStarts[foundLineNo - i],
+ lineEnds[foundLineNo - i],
+ mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]),
+ maxLineLength
+ )
+ result = common.repeat(' ', options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) +
+ ' | ' + line.str + '\n' + result
+ }
+
+ const line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength)
+ result += common.repeat(' ', options.indent) + padStart((mark.line + 1).toString(), lineNoLength) +
+ ' | ' + line.str + '\n'
+ result += common.repeat('-', options.indent + lineNoLength + 3 + line.pos) + '^' + '\n'
+
+ for (let i = 1; i <= options.linesAfter; i++) {
+ if (foundLineNo + i >= lineEnds.length) break
+ const line = getLine(
+ mark.buffer,
+ lineStarts[foundLineNo + i],
+ lineEnds[foundLineNo + i],
+ mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]),
+ maxLineLength
+ )
+ result += common.repeat(' ', options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) +
+ ' | ' + line.str + '\n'
+ }
+
+ return result.replace(/\n$/, '')
+}
+
+module.exports = makeSnippet
diff --git a/node_modules/js-yaml/lib/type.js b/node_modules/js-yaml/lib/type.js
new file mode 100644
index 0000000000000000000000000000000000000000..8ec3dbedc04cf0b994c2df00e82b94805e0519f7
--- /dev/null
+++ b/node_modules/js-yaml/lib/type.js
@@ -0,0 +1,66 @@
+'use strict'
+
+const YAMLException = require('./exception')
+
+const TYPE_CONSTRUCTOR_OPTIONS = [
+ 'kind',
+ 'multi',
+ 'resolve',
+ 'construct',
+ 'instanceOf',
+ 'predicate',
+ 'represent',
+ 'representName',
+ 'defaultStyle',
+ 'styleAliases'
+]
+
+const YAML_NODE_KINDS = [
+ 'scalar',
+ 'sequence',
+ 'mapping'
+]
+
+function compileStyleAliases (map) {
+ const result = {}
+
+ if (map !== null) {
+ Object.keys(map).forEach(function (style) {
+ map[style].forEach(function (alias) {
+ result[String(alias)] = style
+ })
+ })
+ }
+
+ return result
+}
+
+function Type (tag, options) {
+ options = options || {}
+
+ Object.keys(options).forEach(function (name) {
+ if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
+ throw new YAMLException('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.')
+ }
+ })
+
+ // TODO: Add tag format check.
+ this.options = options // keep original options in case user wants to extend this type later
+ this.tag = tag
+ this.kind = options['kind'] || null
+ this.resolve = options['resolve'] || function () { return true }
+ this.construct = options['construct'] || function (data) { return data }
+ this.instanceOf = options['instanceOf'] || null
+ this.predicate = options['predicate'] || null
+ this.represent = options['represent'] || null
+ this.representName = options['representName'] || null
+ this.defaultStyle = options['defaultStyle'] || null
+ this.multi = options['multi'] || false
+ this.styleAliases = compileStyleAliases(options['styleAliases'] || null)
+
+ if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
+ throw new YAMLException('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.')
+ }
+}
+
+module.exports = Type
diff --git a/node_modules/js-yaml/lib/type/binary.js b/node_modules/js-yaml/lib/type/binary.js
new file mode 100644
index 0000000000000000000000000000000000000000..dbe230048026a05493deca7dbabccb89726ab05e
--- /dev/null
+++ b/node_modules/js-yaml/lib/type/binary.js
@@ -0,0 +1,122 @@
+'use strict'
+
+const Type = require('../type')
+
+// [ 64, 65, 66 ] -> [ padding, CR, LF ]
+const BASE64_MAP = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r'
+
+function resolveYamlBinary (data) {
+ if (data === null) return false
+
+ let bitlen = 0
+ const max = data.length
+ const map = BASE64_MAP
+
+ // Convert one by one.
+ for (let idx = 0; idx < max; idx++) {
+ const code = map.indexOf(data.charAt(idx))
+
+ // Skip CR/LF
+ if (code > 64) continue
+
+ // Fail on illegal characters
+ if (code < 0) return false
+
+ bitlen += 6
+ }
+
+ // If there are any bits left, source was corrupted
+ return (bitlen % 8) === 0
+}
+
+function constructYamlBinary (data) {
+ const input = data.replace(/[\r\n=]/g, '') // remove CR/LF & padding to simplify scan
+ const max = input.length
+ const map = BASE64_MAP
+ let bits = 0
+ const result = []
+
+ // Collect by 6*4 bits (3 bytes)
+
+ for (let idx = 0; idx < max; idx++) {
+ if ((idx % 4 === 0) && idx) {
+ result.push((bits >> 16) & 0xFF)
+ result.push((bits >> 8) & 0xFF)
+ result.push(bits & 0xFF)
+ }
+
+ bits = (bits << 6) | map.indexOf(input.charAt(idx))
+ }
+
+ // Dump tail
+
+ const tailbits = (max % 4) * 6
+
+ if (tailbits === 0) {
+ result.push((bits >> 16) & 0xFF)
+ result.push((bits >> 8) & 0xFF)
+ result.push(bits & 0xFF)
+ } else if (tailbits === 18) {
+ result.push((bits >> 10) & 0xFF)
+ result.push((bits >> 2) & 0xFF)
+ } else if (tailbits === 12) {
+ result.push((bits >> 4) & 0xFF)
+ }
+
+ return new Uint8Array(result)
+}
+
+function representYamlBinary (object /*, style */) {
+ let result = ''
+ let bits = 0
+ const max = object.length
+ const map = BASE64_MAP
+
+ // Convert every three bytes to 4 ASCII characters.
+
+ for (let idx = 0; idx < max; idx++) {
+ if ((idx % 3 === 0) && idx) {
+ result += map[(bits >> 18) & 0x3F]
+ result += map[(bits >> 12) & 0x3F]
+ result += map[(bits >> 6) & 0x3F]
+ result += map[bits & 0x3F]
+ }
+
+ bits = (bits << 8) + object[idx]
+ }
+
+ // Dump tail
+
+ const tail = max % 3
+
+ if (tail === 0) {
+ result += map[(bits >> 18) & 0x3F]
+ result += map[(bits >> 12) & 0x3F]
+ result += map[(bits >> 6) & 0x3F]
+ result += map[bits & 0x3F]
+ } else if (tail === 2) {
+ result += map[(bits >> 10) & 0x3F]
+ result += map[(bits >> 4) & 0x3F]
+ result += map[(bits << 2) & 0x3F]
+ result += map[64]
+ } else if (tail === 1) {
+ result += map[(bits >> 2) & 0x3F]
+ result += map[(bits << 4) & 0x3F]
+ result += map[64]
+ result += map[64]
+ }
+
+ return result
+}
+
+function isBinary (obj) {
+ return Object.prototype.toString.call(obj) === '[object Uint8Array]'
+}
+
+module.exports = new Type('tag:yaml.org,2002:binary', {
+ kind: 'scalar',
+ resolve: resolveYamlBinary,
+ construct: constructYamlBinary,
+ predicate: isBinary,
+ represent: representYamlBinary
+})
diff --git a/node_modules/js-yaml/lib/type/bool.js b/node_modules/js-yaml/lib/type/bool.js
new file mode 100644
index 0000000000000000000000000000000000000000..ba3d44f8a44aafd9757af83b99d841ff18e8c04b
--- /dev/null
+++ b/node_modules/js-yaml/lib/type/bool.js
@@ -0,0 +1,35 @@
+'use strict'
+
+const Type = require('../type')
+
+function resolveYamlBoolean (data) {
+ if (data === null) return false
+
+ const max = data.length
+
+ return (max === 4 && (data === 'true' || data === 'True' || data === 'TRUE')) ||
+ (max === 5 && (data === 'false' || data === 'False' || data === 'FALSE'))
+}
+
+function constructYamlBoolean (data) {
+ return data === 'true' ||
+ data === 'True' ||
+ data === 'TRUE'
+}
+
+function isBoolean (object) {
+ return Object.prototype.toString.call(object) === '[object Boolean]'
+}
+
+module.exports = new Type('tag:yaml.org,2002:bool', {
+ kind: 'scalar',
+ resolve: resolveYamlBoolean,
+ construct: constructYamlBoolean,
+ predicate: isBoolean,
+ represent: {
+ lowercase: function (object) { return object ? 'true' : 'false' },
+ uppercase: function (object) { return object ? 'TRUE' : 'FALSE' },
+ camelcase: function (object) { return object ? 'True' : 'False' }
+ },
+ defaultStyle: 'lowercase'
+})
diff --git a/node_modules/js-yaml/lib/type/float.js b/node_modules/js-yaml/lib/type/float.js
new file mode 100644
index 0000000000000000000000000000000000000000..0a279b560fc23e01dd70364fd6bdb4b4bbe36f1d
--- /dev/null
+++ b/node_modules/js-yaml/lib/type/float.js
@@ -0,0 +1,99 @@
+'use strict'
+
+const common = require('../common')
+const Type = require('../type')
+
+const YAML_FLOAT_PATTERN = new RegExp(
+ // 2.5e4, 2.5 and integers
+ '^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?' +
+ // .2e4, .2
+ // special case, seems not from spec
+ '|\\.[0-9]+(?:[eE][-+]?[0-9]+)?' +
+ // .inf
+ '|[-+]?\\.(?:inf|Inf|INF)' +
+ // .nan
+ '|\\.(?:nan|NaN|NAN))$')
+
+const YAML_FLOAT_SPECIAL_PATTERN = new RegExp(
+ '^(?:' +
+ // .inf
+ '[-+]?\\.(?:inf|Inf|INF)' +
+ // .nan
+ '|\\.(?:nan|NaN|NAN))$')
+
+function resolveYamlFloat (data) {
+ if (data === null) return false
+
+ if (!YAML_FLOAT_PATTERN.test(data)) {
+ return false
+ }
+
+ if (Number.isFinite(parseFloat(data, 10))) {
+ return true
+ }
+
+ return YAML_FLOAT_SPECIAL_PATTERN.test(data)
+}
+
+function constructYamlFloat (data) {
+ let value = data.toLowerCase()
+ const sign = value[0] === '-' ? -1 : 1
+
+ if ('+-'.indexOf(value[0]) >= 0) {
+ value = value.slice(1)
+ }
+
+ if (value === '.inf') {
+ return (sign === 1) ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY
+ } else if (value === '.nan') {
+ return NaN
+ }
+ return sign * parseFloat(value, 10)
+}
+
+const SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/
+
+function representYamlFloat (object, style) {
+ if (isNaN(object)) {
+ switch (style) {
+ case 'lowercase': return '.nan'
+ case 'uppercase': return '.NAN'
+ case 'camelcase': return '.NaN'
+ }
+ } else if (Number.POSITIVE_INFINITY === object) {
+ switch (style) {
+ case 'lowercase': return '.inf'
+ case 'uppercase': return '.INF'
+ case 'camelcase': return '.Inf'
+ }
+ } else if (Number.NEGATIVE_INFINITY === object) {
+ switch (style) {
+ case 'lowercase': return '-.inf'
+ case 'uppercase': return '-.INF'
+ case 'camelcase': return '-.Inf'
+ }
+ } else if (common.isNegativeZero(object)) {
+ return '-0.0'
+ }
+
+ const res = object.toString(10)
+
+ // JS stringifier can build scientific format without dots: 5e-100,
+ // while YAML requres dot: 5.e-100. Fix it with simple hack
+
+ return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace('e', '.e') : res
+}
+
+function isFloat (object) {
+ return (Object.prototype.toString.call(object) === '[object Number]') &&
+ (object % 1 !== 0 || common.isNegativeZero(object))
+}
+
+module.exports = new Type('tag:yaml.org,2002:float', {
+ kind: 'scalar',
+ resolve: resolveYamlFloat,
+ construct: constructYamlFloat,
+ predicate: isFloat,
+ represent: representYamlFloat,
+ defaultStyle: 'lowercase'
+})
diff --git a/node_modules/js-yaml/lib/type/int.js b/node_modules/js-yaml/lib/type/int.js
new file mode 100644
index 0000000000000000000000000000000000000000..6da77185d1717215bb1b63a42a179b17b1dac4e1
--- /dev/null
+++ b/node_modules/js-yaml/lib/type/int.js
@@ -0,0 +1,142 @@
+'use strict'
+
+const common = require('../common')
+const Type = require('../type')
+
+function isHexCode (c) {
+ return ((c >= 0x30/* 0 */) && (c <= 0x39/* 9 */)) ||
+ ((c >= 0x41/* A */) && (c <= 0x46/* F */)) ||
+ ((c >= 0x61/* a */) && (c <= 0x66/* f */))
+}
+
+function isOctCode (c) {
+ return ((c >= 0x30/* 0 */) && (c <= 0x37/* 7 */))
+}
+
+function isDecCode (c) {
+ return ((c >= 0x30/* 0 */) && (c <= 0x39/* 9 */))
+}
+
+function resolveYamlInteger (data) {
+ if (data === null) return false
+
+ const max = data.length
+ let index = 0
+ let hasDigits = false
+
+ if (!max) return false
+
+ let ch = data[index]
+
+ // sign
+ if (ch === '-' || ch === '+') {
+ ch = data[++index]
+ }
+
+ if (ch === '0') {
+ // 0
+ if (index + 1 === max) return true
+ ch = data[++index]
+
+ // base 2, base 8, base 16
+
+ if (ch === 'b') {
+ // base 2
+ index++
+
+ for (; index < max; index++) {
+ ch = data[index]
+ if (ch !== '0' && ch !== '1') return false
+ hasDigits = true
+ }
+ return hasDigits && Number.isFinite(parseYamlInteger(data))
+ }
+
+ if (ch === 'x') {
+ // base 16
+ index++
+
+ for (; index < max; index++) {
+ if (!isHexCode(data.charCodeAt(index))) return false
+ hasDigits = true
+ }
+ return hasDigits && Number.isFinite(parseYamlInteger(data))
+ }
+
+ if (ch === 'o') {
+ // base 8
+ index++
+
+ for (; index < max; index++) {
+ if (!isOctCode(data.charCodeAt(index))) return false
+ hasDigits = true
+ }
+ return hasDigits && Number.isFinite(parseYamlInteger(data))
+ }
+ }
+
+ // base 10 (except 0)
+
+ for (; index < max; index++) {
+ if (!isDecCode(data.charCodeAt(index))) {
+ return false
+ }
+ hasDigits = true
+ }
+
+ if (!hasDigits) return false
+
+ return Number.isFinite(parseYamlInteger(data))
+}
+
+function parseYamlInteger (data) {
+ let value = data
+ let sign = 1
+
+ let ch = value[0]
+
+ if (ch === '-' || ch === '+') {
+ if (ch === '-') sign = -1
+ value = value.slice(1)
+ ch = value[0]
+ }
+
+ if (value === '0') return 0
+
+ if (ch === '0') {
+ if (value[1] === 'b') return sign * parseInt(value.slice(2), 2)
+ if (value[1] === 'x') return sign * parseInt(value.slice(2), 16)
+ if (value[1] === 'o') return sign * parseInt(value.slice(2), 8)
+ }
+
+ return sign * parseInt(value, 10)
+}
+
+function constructYamlInteger (data) {
+ return parseYamlInteger(data)
+}
+
+function isInteger (object) {
+ return (Object.prototype.toString.call(object)) === '[object Number]' &&
+ (object % 1 === 0 && !common.isNegativeZero(object))
+}
+
+module.exports = new Type('tag:yaml.org,2002:int', {
+ kind: 'scalar',
+ resolve: resolveYamlInteger,
+ construct: constructYamlInteger,
+ predicate: isInteger,
+ represent: {
+ binary: function (obj) { return obj >= 0 ? '0b' + obj.toString(2) : '-0b' + obj.toString(2).slice(1) },
+ octal: function (obj) { return obj >= 0 ? '0o' + obj.toString(8) : '-0o' + obj.toString(8).slice(1) },
+ decimal: function (obj) { return obj.toString(10) },
+ hexadecimal: function (obj) { return obj >= 0 ? '0x' + obj.toString(16).toUpperCase() : '-0x' + obj.toString(16).toUpperCase().slice(1) }
+ },
+ defaultStyle: 'decimal',
+ styleAliases: {
+ binary: [2, 'bin'],
+ octal: [8, 'oct'],
+ decimal: [10, 'dec'],
+ hexadecimal: [16, 'hex']
+ }
+})
diff --git a/node_modules/js-yaml/lib/type/map.js b/node_modules/js-yaml/lib/type/map.js
new file mode 100644
index 0000000000000000000000000000000000000000..aa2787415cf645be8fd1f852e9fd2a2178e0e491
--- /dev/null
+++ b/node_modules/js-yaml/lib/type/map.js
@@ -0,0 +1,8 @@
+'use strict'
+
+const Type = require('../type')
+
+module.exports = new Type('tag:yaml.org,2002:map', {
+ kind: 'mapping',
+ construct: function (data) { return data !== null ? data : {} }
+})
diff --git a/node_modules/js-yaml/lib/type/merge.js b/node_modules/js-yaml/lib/type/merge.js
new file mode 100644
index 0000000000000000000000000000000000000000..5781ff53936e7312953b8b0376b4965d74264343
--- /dev/null
+++ b/node_modules/js-yaml/lib/type/merge.js
@@ -0,0 +1,12 @@
+'use strict'
+
+const Type = require('../type')
+
+function resolveYamlMerge (data) {
+ return data === '<<' || data === null
+}
+
+module.exports = new Type('tag:yaml.org,2002:merge', {
+ kind: 'scalar',
+ resolve: resolveYamlMerge
+})
diff --git a/node_modules/js-yaml/lib/type/null.js b/node_modules/js-yaml/lib/type/null.js
new file mode 100644
index 0000000000000000000000000000000000000000..0a9d7e56223782671e85dce5923aa13c1dcd77bd
--- /dev/null
+++ b/node_modules/js-yaml/lib/type/null.js
@@ -0,0 +1,35 @@
+'use strict'
+
+const Type = require('../type')
+
+function resolveYamlNull (data) {
+ if (data === null) return true
+
+ const max = data.length
+
+ return (max === 1 && data === '~') ||
+ (max === 4 && (data === 'null' || data === 'Null' || data === 'NULL'))
+}
+
+function constructYamlNull () {
+ return null
+}
+
+function isNull (object) {
+ return object === null
+}
+
+module.exports = new Type('tag:yaml.org,2002:null', {
+ kind: 'scalar',
+ resolve: resolveYamlNull,
+ construct: constructYamlNull,
+ predicate: isNull,
+ represent: {
+ canonical: function () { return '~' },
+ lowercase: function () { return 'null' },
+ uppercase: function () { return 'NULL' },
+ camelcase: function () { return 'Null' },
+ empty: function () { return '' }
+ },
+ defaultStyle: 'lowercase'
+})
diff --git a/node_modules/js-yaml/lib/type/omap.js b/node_modules/js-yaml/lib/type/omap.js
new file mode 100644
index 0000000000000000000000000000000000000000..b27786e7a88cfad9f674435d828b23996d28278c
--- /dev/null
+++ b/node_modules/js-yaml/lib/type/omap.js
@@ -0,0 +1,45 @@
+'use strict'
+
+const Type = require('../type')
+
+const _hasOwnProperty = Object.prototype.hasOwnProperty
+const _toString = Object.prototype.toString
+
+function resolveYamlOmap (data) {
+ if (data === null) return true
+
+ const objectKeys = []
+ const object = data
+
+ for (let index = 0, length = object.length; index < length; index += 1) {
+ const pair = object[index]
+ let pairHasKey = false
+
+ if (_toString.call(pair) !== '[object Object]') return false
+
+ let pairKey
+ for (pairKey in pair) {
+ if (_hasOwnProperty.call(pair, pairKey)) {
+ if (!pairHasKey) pairHasKey = true
+ else return false
+ }
+ }
+
+ if (!pairHasKey) return false
+
+ if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey)
+ else return false
+ }
+
+ return true
+}
+
+function constructYamlOmap (data) {
+ return data !== null ? data : []
+}
+
+module.exports = new Type('tag:yaml.org,2002:omap', {
+ kind: 'sequence',
+ resolve: resolveYamlOmap,
+ construct: constructYamlOmap
+})
diff --git a/node_modules/js-yaml/lib/type/pairs.js b/node_modules/js-yaml/lib/type/pairs.js
new file mode 100644
index 0000000000000000000000000000000000000000..4b902220102b6aa69cb8a3c7ad714f9d2a7286ef
--- /dev/null
+++ b/node_modules/js-yaml/lib/type/pairs.js
@@ -0,0 +1,50 @@
+'use strict'
+
+const Type = require('../type')
+
+const _toString = Object.prototype.toString
+
+function resolveYamlPairs (data) {
+ if (data === null) return true
+
+ const object = data
+
+ const result = new Array(object.length)
+
+ for (let index = 0, length = object.length; index < length; index += 1) {
+ const pair = object[index]
+
+ if (_toString.call(pair) !== '[object Object]') return false
+
+ const keys = Object.keys(pair)
+
+ if (keys.length !== 1) return false
+
+ result[index] = [keys[0], pair[keys[0]]]
+ }
+
+ return true
+}
+
+function constructYamlPairs (data) {
+ if (data === null) return []
+
+ const object = data
+ const result = new Array(object.length)
+
+ for (let index = 0, length = object.length; index < length; index += 1) {
+ const pair = object[index]
+
+ const keys = Object.keys(pair)
+
+ result[index] = [keys[0], pair[keys[0]]]
+ }
+
+ return result
+}
+
+module.exports = new Type('tag:yaml.org,2002:pairs', {
+ kind: 'sequence',
+ resolve: resolveYamlPairs,
+ construct: constructYamlPairs
+})
diff --git a/node_modules/js-yaml/lib/type/seq.js b/node_modules/js-yaml/lib/type/seq.js
new file mode 100644
index 0000000000000000000000000000000000000000..e85ab662adc31532c4c83d3ff2d7bffb6f8e83d1
--- /dev/null
+++ b/node_modules/js-yaml/lib/type/seq.js
@@ -0,0 +1,8 @@
+'use strict'
+
+const Type = require('../type')
+
+module.exports = new Type('tag:yaml.org,2002:seq', {
+ kind: 'sequence',
+ construct: function (data) { return data !== null ? data : [] }
+})
diff --git a/node_modules/js-yaml/lib/type/set.js b/node_modules/js-yaml/lib/type/set.js
new file mode 100644
index 0000000000000000000000000000000000000000..8e8a1190e4da2aeffa9dcaa3107c718e54924c77
--- /dev/null
+++ b/node_modules/js-yaml/lib/type/set.js
@@ -0,0 +1,29 @@
+'use strict'
+
+const Type = require('../type')
+
+const _hasOwnProperty = Object.prototype.hasOwnProperty
+
+function resolveYamlSet (data) {
+ if (data === null) return true
+
+ const object = data
+
+ for (const key in object) {
+ if (_hasOwnProperty.call(object, key)) {
+ if (object[key] !== null) return false
+ }
+ }
+
+ return true
+}
+
+function constructYamlSet (data) {
+ return data !== null ? data : {}
+}
+
+module.exports = new Type('tag:yaml.org,2002:set', {
+ kind: 'mapping',
+ resolve: resolveYamlSet,
+ construct: constructYamlSet
+})
diff --git a/node_modules/js-yaml/lib/type/str.js b/node_modules/js-yaml/lib/type/str.js
new file mode 100644
index 0000000000000000000000000000000000000000..072ef27f19056b78430e51192e8e72e0bcaf0441
--- /dev/null
+++ b/node_modules/js-yaml/lib/type/str.js
@@ -0,0 +1,8 @@
+'use strict'
+
+const Type = require('../type')
+
+module.exports = new Type('tag:yaml.org,2002:str', {
+ kind: 'scalar',
+ construct: function (data) { return data !== null ? data : '' }
+})
diff --git a/node_modules/js-yaml/lib/type/timestamp.js b/node_modules/js-yaml/lib/type/timestamp.js
new file mode 100644
index 0000000000000000000000000000000000000000..05f323b60b5c10ba95dc9af8557b3402b572b2a7
--- /dev/null
+++ b/node_modules/js-yaml/lib/type/timestamp.js
@@ -0,0 +1,88 @@
+'use strict'
+
+const Type = require('../type')
+
+const YAML_DATE_REGEXP = new RegExp(
+ '^([0-9][0-9][0-9][0-9])' + // [1] year
+ '-([0-9][0-9])' + // [2] month
+ '-([0-9][0-9])$') // [3] day
+
+const YAML_TIMESTAMP_REGEXP = new RegExp(
+ '^([0-9][0-9][0-9][0-9])' + // [1] year
+ '-([0-9][0-9]?)' + // [2] month
+ '-([0-9][0-9]?)' + // [3] day
+ '(?:[Tt]|[ \\t]+)' + // ...
+ '([0-9][0-9]?)' + // [4] hour
+ ':([0-9][0-9])' + // [5] minute
+ ':([0-9][0-9])' + // [6] second
+ '(?:\\.([0-9]*))?' + // [7] fraction
+ '(?:[ \\t]*(Z|([-+])([0-9][0-9]?)' + // [8] tz [9] tz_sign [10] tzHour
+ '(?::([0-9][0-9]))?))?$') // [11] tzMinute
+
+function resolveYamlTimestamp (data) {
+ if (data === null) return false
+ if (YAML_DATE_REGEXP.exec(data) !== null) return true
+ if (YAML_TIMESTAMP_REGEXP.exec(data) !== null) return true
+ return false
+}
+
+function constructYamlTimestamp (data) {
+ let fraction = 0
+ let delta = null
+
+ let match = YAML_DATE_REGEXP.exec(data)
+ if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data)
+
+ if (match === null) throw new Error('Date resolve error')
+
+ // match: [1] year [2] month [3] day
+
+ const year = +(match[1])
+ const month = +(match[2]) - 1 // JS month starts with 0
+ const day = +(match[3])
+
+ if (!match[4]) { // no hour
+ return new Date(Date.UTC(year, month, day))
+ }
+
+ // match: [4] hour [5] minute [6] second [7] fraction
+
+ const hour = +(match[4])
+ const minute = +(match[5])
+ const second = +(match[6])
+
+ if (match[7]) {
+ fraction = match[7].slice(0, 3)
+ while (fraction.length < 3) { // milli-seconds
+ fraction += '0'
+ }
+ fraction = +fraction
+ }
+
+ // match: [8] tz [9] tz_sign [10] tzHour [11] tzMinute
+
+ if (match[9]) {
+ const tzHour = +(match[10])
+ const tzMinute = +(match[11] || 0)
+ delta = (tzHour * 60 + tzMinute) * 60000 // delta in mili-seconds
+ if (match[9] === '-') delta = -delta
+ }
+
+ const date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction))
+
+ if (delta) date.setTime(date.getTime() - delta)
+
+ return date
+}
+
+function representYamlTimestamp (object /*, style */) {
+ return object.toISOString()
+}
+
+module.exports = new Type('tag:yaml.org,2002:timestamp', {
+ kind: 'scalar',
+ resolve: resolveYamlTimestamp,
+ construct: constructYamlTimestamp,
+ instanceOf: Date,
+ represent: representYamlTimestamp
+})
diff --git a/node_modules/js-yaml/package.json b/node_modules/js-yaml/package.json
new file mode 100644
index 0000000000000000000000000000000000000000..ceeeca33b9c0ff54e1bb401ab73521057fe4384e
--- /dev/null
+++ b/node_modules/js-yaml/package.json
@@ -0,0 +1,77 @@
+{
+ "name": "js-yaml",
+ "version": "4.2.0",
+ "description": "YAML 1.2 parser and serializer",
+ "keywords": [
+ "yaml",
+ "parser",
+ "serializer",
+ "pyyaml"
+ ],
+ "author": "Vladimir Zapparov ",
+ "contributors": [
+ "Aleksey V Zapparov (http://www.ixti.net/)",
+ "Vitaly Puzrin (https://github.com/puzrin)",
+ "Martin Grenfell (http://got-ravings.blogspot.com)"
+ ],
+ "license": "MIT",
+ "repository": "nodeca/js-yaml",
+ "funding": [
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/puzrin"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/nodeca"
+ }
+ ],
+ "files": [
+ "index.js",
+ "lib/",
+ "bin/",
+ "dist/"
+ ],
+ "bin": {
+ "js-yaml": "bin/js-yaml.js"
+ },
+ "module": "./dist/js-yaml.mjs",
+ "exports": {
+ ".": {
+ "import": "./dist/js-yaml.mjs",
+ "require": "./index.js"
+ },
+ "./package.json": "./package.json"
+ },
+ "scripts": {
+ "lint": "eslint .",
+ "lint-fix": "eslint . --fix",
+ "test": "npm run lint && npm run test:core && npm run test:build",
+ "test:core": "node --test test/core/*.test.*",
+ "test:build": "npm run build && node --test test/build/*.test.*",
+ "coverage": "npm run build && c8 --include 'lib/**' -r text -r html -r lcov node --test test/core/*.test.*",
+ "build": "node support/build-dist.mjs",
+ "build:demo": "npm run lint && node support/build_demo.mjs",
+ "gh-demo": "npm run build:demo && gh-pages -d demo -f",
+ "prepack": "npm test && npm run build && npm run build:demo",
+ "postpublish": "npm run gh-demo"
+ },
+ "unpkg": "dist/js-yaml.min.js",
+ "jsdelivr": "dist/js-yaml.min.js",
+ "dependencies": {
+ "argparse": "^2.0.1"
+ },
+ "devDependencies": {
+ "c8": "^11.0.0",
+ "codemirror": "^5.65.21",
+ "eslint": "^9.39.4",
+ "fast-check": "^4.8.0",
+ "gh-pages": "^6.3.0",
+ "neostandard": "^0.13.0",
+ "tinybench": "^6.0.2",
+ "vite": "^8.0.14",
+ "vite-plugin-node-polyfills": "^0.28.0",
+ "vite-plugin-singlefile": "^2.3.3",
+ "workerpool": "^10.0.2"
+ }
+}
diff --git a/node_modules/jsdom/LICENSE.txt b/node_modules/jsdom/LICENSE.txt
new file mode 100644
index 0000000000000000000000000000000000000000..0dbd4290419fcfd490e0dd574d22ba2660f7fc5d
--- /dev/null
+++ b/node_modules/jsdom/LICENSE.txt
@@ -0,0 +1,22 @@
+Copyright (c) 2010 Elijah Insua
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/jsdom/README.md b/node_modules/jsdom/README.md
new file mode 100644
index 0000000000000000000000000000000000000000..7d4fe8c5833acf97446727e4f059178dd31f15f1
--- /dev/null
+++ b/node_modules/jsdom/README.md
@@ -0,0 +1,555 @@
+
+
+ jsdom
+
+
+jsdom is a pure-JavaScript implementation of many web standards, notably the WHATWG [DOM](https://dom.spec.whatwg.org/) and [HTML](https://html.spec.whatwg.org/multipage/) Standards, for use with Node.js. In general, the goal of the project is to emulate enough of a subset of a web browser to be useful for testing and scraping real-world web applications.
+
+The latest versions of jsdom require newer Node.js versions; see the `package.json` `"engines"` field for details.
+
+## Basic usage
+
+```js
+const jsdom = require("jsdom");
+const { JSDOM } = jsdom;
+```
+
+To use jsdom, you will primarily use the `JSDOM` constructor, which is a named export of the jsdom main module. Pass the constructor a string. You will get back a `JSDOM` object, which has a number of useful properties, notably `window`:
+
+```js
+const dom = new JSDOM(`Hello world
`);
+console.log(dom.window.document.querySelector("p").textContent); // "Hello world"
+```
+
+(Note that jsdom will parse the HTML you pass it just like a browser does, including implied ``, ``, and `` tags.)
+
+The resulting object is an instance of the `JSDOM` class, which contains a number of useful properties and methods besides `window`. In general, it can be used to act on the jsdom from the "outside," doing things that are not possible with the normal DOM APIs. For simple cases, where you don't need any of this functionality, we recommend a coding pattern like
+
+```js
+const { window } = new JSDOM(`...`);
+// or even
+const { document } = (new JSDOM(`...`)).window;
+```
+
+Full documentation on everything you can do with the `JSDOM` class is below, in the section "`JSDOM` Object API".
+
+## Customizing jsdom
+
+The `JSDOM` constructor accepts a second parameter which can be used to customize your jsdom in the following ways.
+
+### Simple options
+
+```js
+const dom = new JSDOM(``, {
+ url: "https://example.org/",
+ referrer: "https://example.com/",
+ contentType: "text/html",
+ includeNodeLocations: true,
+ storageQuota: 10000000
+});
+```
+
+- `url` sets the value returned by `window.location`, `document.URL`, and `document.documentURI`, and affects things like resolution of relative URLs within the document and the same-origin restrictions and referrer used while fetching subresources. It defaults to `"about:blank"`.
+- `referrer` just affects the value read from `document.referrer`. It defaults to no referrer (which reflects as the empty string).
+- `contentType` affects the value read from `document.contentType`, as well as how the document is parsed: as HTML or as XML. Values that are not a [HTML MIME type](https://mimesniff.spec.whatwg.org/#html-mime-type) or an [XML MIME type](https://mimesniff.spec.whatwg.org/#xml-mime-type) will throw. It defaults to `"text/html"`. If a `charset` parameter is present, it can affect [binary data processing](#encoding-sniffing).
+- `includeNodeLocations` preserves the location info produced by the HTML parser, allowing you to retrieve it with the `nodeLocation()` method (described below). It also ensures that line numbers reported in exception stack traces for code running inside `
+`);
+
+// The script will not be executed, by default:
+console.log(dom.window.document.getElementById("content").children.length); // 0
+```
+
+To enable executing scripts inside the page, you can use the `runScripts: "dangerously"` option:
+
+```js
+const dom = new JSDOM(`
+
+
+`, { runScripts: "dangerously" });
+
+// The script will be executed and modify the DOM:
+console.log(dom.window.document.getElementById("content").children.length); // 1
+```
+
+Again we emphasize to only use this when feeding jsdom code you know is safe. If you use it on arbitrary user-supplied code, or code from the Internet, you are effectively running untrusted Node.js code, and your machine could be compromised.
+
+If you want to execute _external_ scripts, included via `
+`, { runScripts: "outside-only" });
+
+// run a script outside of JSDOM:
+dom.window.eval('document.getElementById("content").append(document.createElement("p"));');
+
+console.log(dom.window.document.getElementById("content").children.length); // 1
+console.log(dom.window.document.getElementsByTagName("hr").length); // 0
+console.log(dom.window.document.getElementsByTagName("p").length); // 1
+```
+
+This is turned off by default for performance reasons, but is safe to enable.
+
+Note that in the default configuration, without setting `runScripts`, the values of `window.Array`, `window.eval`, etc. will be the same as those provided by the outer Node.js environment. That is, `window.eval === eval` will hold, so `window.eval` will not run scripts in a useful way.
+
+We strongly advise against trying to "execute scripts" by mashing together the jsdom and Node global environments (e.g. by doing `global.window = dom.window`), and then executing scripts or test code inside the Node global environment. Instead, you should treat jsdom like you would a browser, and run all scripts and tests that need access to a DOM inside the jsdom environment, using `window.eval` or `runScripts: "dangerously"`. This might require, for example, creating a browserify bundle to execute as a ``, {
+ url: "https://example.com/",
+ runScripts: "dangerously",
+ resources: {
+ userAgent: "Mellblomenator/9000",
+ dispatcher: new ProxyAgent("http://127.0.0.1:9001"),
+ interceptors: [
+ requestInterceptor((request, context) => {
+ // Override the contents of this script to do something unusual.
+ if (request.url === "https://example.com/some-specific-script.js") {
+ return new Response("window.someGlobal = 5;", {
+ headers: { "Content-Type": "application/javascript" }
+ });
+ }
+ // Return undefined to let the request proceed normally
+ })
+ ]
+ }
+});
+```
+
+The context object passed to the interceptor includes `element` (the DOM element that initiated the request, or `null` for requests that are not from DOM elements). For example:
+
+```js
+requestInterceptor((request, { element }) => {
+ if (element) {
+ console.log(`Element ${element.localName} is requesting ${request.url}`);
+ }
+ // Return undefined to let the request proceed normally
+})
+```
+
+To be clear on the flow: when something in your jsdom fetches resources, first the request is set up by jsdom, then it is passed through any `interceptors` in the order provided, then it reaches any provided `dispatcher` (defaulting to [`undici`'s global dispatcher](https://undici.nodejs.org/#/?id=undicigetglobaldispatcher)). If you use jsdom's `requestInterceptor()`, returning promise fulfilled with a `Response` will prevent any further interceptors from running, or the base dispatcher from being reached.
+
+> [!WARNING]
+> All resource loading customization is ignored when scripts inside the jsdom use synchronous `XMLHttpRequest`. This is a technical limitation as we cannot transfer dispatchers or interceptors across a process boundary.
+
+### Virtual consoles
+
+Like web browsers, jsdom has the concept of a "console". This records both information directly sent from the page, via scripts executing inside the document using the `window.console` API, as well as information from the jsdom implementation itself. We call the user-controllable console a "virtual console", to distinguish it from the Node.js `console` API and from the inside-the-page `window.console` API.
+
+By default, the `JSDOM` constructor will return an instance with a virtual console that forwards all its output to the Node.js console. This includes both jsdom output (such as not-implemented warnings or CSS parsing errors) and in-page `window.console` calls.
+
+To create your own virtual console and pass it to jsdom, you can override this default by doing
+
+```js
+const virtualConsole = new jsdom.VirtualConsole();
+const dom = new JSDOM(``, { virtualConsole });
+```
+
+Code like this will create a virtual console with no behavior. You can give it behavior by adding event listeners for all the possible console methods:
+
+```js
+virtualConsole.on("error", () => { ... });
+virtualConsole.on("warn", () => { ... });
+virtualConsole.on("info", () => { ... });
+virtualConsole.on("dir", () => { ... });
+// ... etc. See https://console.spec.whatwg.org/#logging
+```
+
+(Note that it is probably best to set up these event listeners _before_ calling `new JSDOM()`, since errors or console-invoking script might occur during parsing.)
+
+If you simply want to redirect the virtual console output to another console, like the default Node.js one, you can do
+
+```js
+virtualConsole.forwardTo(console);
+```
+
+There is also a special event, `"jsdomError"`, which will fire with error objects to report errors from jsdom itself. This is similar to how error messages often show up in web browser consoles, even if they are not initiated by `console.error`.
+
+As mentioned above, the default behavior for jsdom is to send these to the Node.js console. This done via `console.error(jsdomError.message)`, or in the case of `"unhandled-exception"`-type jsdom errors that occur from scripts running in the jsdom, via `console.error(jsdomError.cause.stack)`. Using `forwardTo()` will give the same behavior. If you want a non-default behavior, you can customize it in the following ways:
+
+```js
+// Do not send any jsdom errors to the Node.js console:
+virtualConsole.forwardTo(console, { jsdomErrors: "none" });
+
+// Send only certain jsdom errors to the Node.js console, ignoring others:
+virtualConsole.forwardTo(console, { jsdomErrors: ["unhandled-exception", "not-implemented"]});
+
+// Customize the handling of all jsdom errors:
+virtualConsole.forwardTo(console, { jsdomErrors: "none" });
+virtualConsole.on("jsdomError", err => {
+ switch (err.type) {
+ case "unhandled-exception": {
+ // ... process ...
+ break;
+ }
+ case "css-parsing": {
+ // ... process in some other way ...
+ break;
+ }
+ // ... etc. ...
+ }
+});
+```
+
+The details for each type of jsdom error, listed by their `type` property, are:
+
+- `"css-parsing"`: an error parsing CSS stylesheets
+ - `cause`: the exception object from our CSS parser library, [`@acemir/cssom`](https://github.com/acemir/CSSOM)
+ - `sheetText`: the full text of the stylesheet that we attempted to parse
+- `"not-implemented"`: an error emitted when certain stub methods from [unimplemented parts of the web platform](#unimplemented-parts-of-the-web-platform) are called
+- `"resource-loading"`: an error [loading resources](#loading-subresources), e.g. due to a network error or a bad response code from the server
+ - `cause` property: the exception object from the internal Node.js network calls jsdom made when retrieving the resource, or from the developer's custom resource loader
+ - `url` property: the URL of the resource that was attempted to be fetched
+- `"unhandled-exception"`: a [script execution](#executing-scripts) error that was not handled by a `Window` `"error"` event listener
+ - `cause` property: contains the original exception object
+
+### Cookie jars
+
+Like web browsers, jsdom has the concept of a cookie jar, storing HTTP cookies. Cookies that have a URL on the same domain as the document, and are not marked HTTP-only, are accessible via the `document.cookie` API. Additionally, all cookies in the cookie jar will impact the fetching of subresources.
+
+By default, the `JSDOM` constructor will return an instance with an empty cookie jar. To create your own cookie jar and pass it to jsdom, you can override this default by doing
+
+```js
+const cookieJar = new jsdom.CookieJar(store, options);
+const dom = new JSDOM(``, { cookieJar });
+```
+
+This is mostly useful if you want to share the same cookie jar among multiple jsdoms, or prime the cookie jar with certain values ahead of time.
+
+Cookie jars are provided by the [tough-cookie](https://www.npmjs.com/package/tough-cookie) package. The `jsdom.CookieJar` constructor is a subclass of the tough-cookie cookie jar which by default sets the `looseMode: true` option, since that [matches better how browsers behave](https://github.com/whatwg/html/issues/804). If you want to use tough-cookie's utilities and classes yourself, you can use the `jsdom.toughCookie` module export to get access to the tough-cookie module instance packaged with jsdom.
+
+### Intervening before parsing
+
+jsdom allows you to intervene in the creation of a jsdom very early: after the `Window` and `Document` objects are created, but before any HTML is parsed to populate the document with nodes:
+
+```js
+const dom = new JSDOM(`Hello
`, {
+ beforeParse(window) {
+ window.document.childNodes.length === 0;
+ window.someCoolAPI = () => { /* ... */ };
+ }
+});
+```
+
+This is especially useful if you are wanting to modify the environment in some way, for example adding shims for web platform APIs jsdom does not support.
+
+## `JSDOM` object API
+
+Once you have constructed a `JSDOM` object, it will have the following useful capabilities:
+
+### Properties
+
+The property `window` retrieves the `Window` object that was created for you.
+
+The properties `virtualConsole` and `cookieJar` reflect the options you pass in, or the defaults created for you if nothing was passed in for those options.
+
+### Serializing the document with `serialize()`
+
+The `serialize()` method will return the [HTML serialization](https://html.spec.whatwg.org/#html-fragment-serialisation-algorithm) of the document, including the doctype:
+
+```js
+const dom = new JSDOM(`hello`);
+
+dom.serialize() === "hello";
+
+// Contrast with:
+dom.window.document.documentElement.outerHTML === "hello";
+```
+
+### Getting the source location of a node with `nodeLocation(node)`
+
+The `nodeLocation()` method will find where a DOM node is within the source document, returning the [parse5 location info](https://www.npmjs.com/package/parse5#options-locationinfo) for the node:
+
+```js
+const dom = new JSDOM(
+ `Hello
+
+
`,
+ { includeNodeLocations: true }
+);
+
+const document = dom.window.document;
+const bodyEl = document.body; // implicitly created
+const pEl = document.querySelector("p");
+const textNode = pEl.firstChild;
+const imgEl = document.querySelector("img");
+
+console.log(dom.nodeLocation(bodyEl)); // null; it's not in the source
+console.log(dom.nodeLocation(pEl)); // { startOffset: 0, endOffset: 39, startTag: ..., endTag: ... }
+console.log(dom.nodeLocation(textNode)); // { startOffset: 3, endOffset: 13 }
+console.log(dom.nodeLocation(imgEl)); // { startOffset: 13, endOffset: 32 }
+```
+
+Note that this feature only works if you have set the `includeNodeLocations` option; node locations are off by default for performance reasons.
+
+### Interfacing with the Node.js `vm` module using `getInternalVMContext()`
+
+The built-in [`vm`](https://nodejs.org/api/vm.html) module of Node.js is what underpins jsdom's script-running magic. Some advanced use cases, like pre-compiling a script and then running it multiple times, benefit from using the `vm` module directly with a jsdom-created `Window`.
+
+To get access to the [contextified global object](https://nodejs.org/api/vm.html#vm_what_does_it_mean_to_contextify_an_object), suitable for use with the `vm` APIs, you can use the `getInternalVMContext()` method:
+
+```js
+const { Script } = require("vm");
+
+const dom = new JSDOM(``, { runScripts: "outside-only" });
+const script = new Script(`
+ if (!this.ran) {
+ this.ran = 0;
+ }
+
+ ++this.ran;
+`);
+
+const vmContext = dom.getInternalVMContext();
+
+script.runInContext(vmContext);
+script.runInContext(vmContext);
+script.runInContext(vmContext);
+
+console.assert(dom.window.ran === 3);
+```
+
+This is somewhat-advanced functionality, and we advise sticking to normal DOM APIs (such as `window.eval()` or `document.createElement("script")`) unless you have very specific needs.
+
+Note that this method will throw an exception if the `JSDOM` instance was created without `runScripts` set.
+
+### Reconfiguring the jsdom with `reconfigure(settings)`
+
+The `top` property on `window` is marked `[Unforgeable]` in the spec, meaning it is a non-configurable own property and thus cannot be overridden or shadowed by normal code running inside the jsdom, even using `Object.defineProperty`.
+
+Similarly, at present jsdom does not handle navigation (such as setting `window.location.href = "https://example.com/"`); doing so will cause the virtual console to emit a `"jsdomError"` explaining that this feature is not implemented, and nothing will change: there will be no new `Window` or `Document` object, and the existing `window`'s `location` object will still have all the same property values.
+
+However, if you're acting from outside the window, e.g. in some test framework that creates jsdoms, you can override one or both of these using the special `reconfigure()` method:
+
+```js
+const dom = new JSDOM();
+
+dom.window.top === dom.window;
+dom.window.location.href === "about:blank";
+
+dom.reconfigure({ windowTop: myFakeTopForTesting, url: "https://example.com/" });
+
+dom.window.top === myFakeTopForTesting;
+dom.window.location.href === "https://example.com/";
+```
+
+Note that changing the jsdom's URL will impact all APIs that return the current document URL, such as `window.location`, `document.URL`, and `document.documentURI`, as well as the resolution of relative URLs within the document, and the same-origin checks and referrer used while fetching subresources. It will not, however, perform navigation to the contents of that URL; the contents of the DOM will remain unchanged, and no new instances of `Window`, `Document`, etc. will be created.
+
+## Convenience APIs
+
+### `fromURL()`
+
+In addition to the `JSDOM` constructor itself, jsdom provides a promise-returning factory method for constructing a jsdom from a URL:
+
+```js
+JSDOM.fromURL("https://example.com/", options).then(dom => {
+ console.log(dom.serialize());
+});
+```
+
+The returned promise will fulfill with a `JSDOM` instance if the URL is valid and the request is successful. Any redirects will be followed to their ultimate destination.
+
+The options provided to `fromURL()` are similar to those provided to the `JSDOM` constructor, with the following additional restrictions and consequences:
+
+- The `url` and `contentType` options cannot be provided.
+- The `referrer` option is used as the HTTP `Referer` request header of the initial request.
+- The `resources` option also affects the initial request; this is useful if you want to, for example, configure a proxy (see above).
+- The resulting jsdom's URL, content type, and referrer are determined from the response.
+- Any cookies set via HTTP `Set-Cookie` response headers are stored in the jsdom's cookie jar. Similarly, any cookies already in a supplied cookie jar are sent as HTTP `Cookie` request headers.
+
+### `fromFile()`
+
+Similar to `fromURL()`, jsdom also provides a `fromFile()` factory method for constructing a jsdom from a filename:
+
+```js
+JSDOM.fromFile("stuff.html", options).then(dom => {
+ console.log(dom.serialize());
+});
+```
+
+The returned promise will fulfill with a `JSDOM` instance if the given file can be opened. As usual in Node.js APIs, the filename is given relative to the current working directory.
+
+The options provided to `fromFile()` are similar to those provided to the `JSDOM` constructor, with the following additional defaults:
+
+- The `url` option will default to a file URL corresponding to the given filename, instead of to `"about:blank"`.
+- The `contentType` option will default to `"application/xhtml+xml"` if the given filename ends in `.xht`, `.xhtml`, or `.xml`; otherwise it will continue to default to `"text/html"`.
+
+### `fragment()`
+
+For the very simplest of cases, you might not need a whole `JSDOM` instance with all its associated power. You might not even need a `Window` or `Document`! Instead, you just need to parse some HTML, and get a DOM object you can manipulate. For that, we have `fragment()`, which creates a `DocumentFragment` from a given string:
+
+```js
+const frag = JSDOM.fragment(`Hello
Hi! `);
+
+frag.childNodes.length === 2;
+frag.querySelector("strong").textContent === "Hi!";
+// etc.
+```
+
+Here `frag` is a [`DocumentFragment`](https://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment) instance, whose contents are created by parsing the provided string. The parsing is done using a `` element, so you can include any element there (including ones with weird parsing rules like ``). It's also important to note that the resulting `DocumentFragment` will not have [an associated browsing context](https://html.spec.whatwg.org/multipage/#concept-document-bc): that is, elements' `ownerDocument` will have a null `defaultView` property, resources will not load, etc.
+
+All invocations of the `fragment()` factory result in `DocumentFragment`s that share the same template owner `Document`. This allows many calls to `fragment()` with no extra overhead. But it also means that calls to `fragment()` cannot be customized with any options.
+
+Note that serialization is not as easy with `DocumentFragment`s as it is with full `JSDOM` objects. If you need to serialize your DOM, you should probably use the `JSDOM` constructor more directly. But for the special case of a fragment containing a single element, it's pretty easy to do through normal means:
+
+```js
+const frag = JSDOM.fragment(`Hello
`);
+console.log(frag.firstChild.outerHTML); // logs "Hello
"
+```
+
+## Other noteworthy features
+
+### Canvas support
+
+jsdom includes support for using the [`canvas`](https://www.npmjs.com/package/canvas) package to extend any `` elements with the canvas API. To make this work, you need to include `canvas` as a dependency in your project, as a peer of `jsdom`. If jsdom can find version 3.x of the `canvas` package, it will use it, but if it's not present, then `` elements will behave like ``s.
+
+### Encoding sniffing
+
+In addition to supplying a string, the `JSDOM` constructor can also be supplied binary data, in the form of a standard JavaScript binary data type like `ArrayBuffer`, `Uint8Array`, `DataView`, etc. When this is done, jsdom will [sniff the encoding](https://html.spec.whatwg.org/multipage/syntax.html#encoding-sniffing-algorithm) from the supplied bytes, scanning for `
` tags just like a browser does.
+
+If the supplied `contentType` option contains a `charset` parameter, that encoding will override the sniffed encoding—unless a UTF-8 or UTF-16 BOM is present, in which case those take precedence. (Again, this is just like a browser.)
+
+This encoding sniffing also applies to `JSDOM.fromFile()` and `JSDOM.fromURL()`. In the latter case, any `Content-Type` headers sent with the response will take priority, in the same fashion as the constructor's `contentType` option.
+
+Note that in many cases supplying bytes in this fashion can be better than supplying a string. For example, if you attempt to use Node.js's `buffer.toString("utf-8")` API, Node.js will not strip any leading BOMs. If you then give this string to jsdom, it will interpret it verbatim, leaving the BOM intact. But jsdom's binary data decoding code will strip leading BOMs, just like a browser; in such cases, supplying `buffer` directly will give the desired result.
+
+### Closing down a jsdom
+
+Timers in the jsdom (set by `window.setTimeout()` or `window.setInterval()`) will, by definition, execute code in the future in the context of the window. Since there is no way to execute code in the future without keeping the process alive, outstanding jsdom timers will keep your Node.js process alive. Similarly, since there is no way to execute code in the context of an object without keeping that object alive, outstanding jsdom timers will prevent garbage collection of the window on which they are scheduled.
+
+If you want to be sure to shut down a jsdom window, use `window.close()`, which will terminate all running timers (and also remove any event listeners on the window and document).
+
+### Debugging the DOM using Chrome DevTools
+
+In Node.js you can debug programs using Chrome DevTools. See the [official documentation](https://nodejs.org/en/docs/inspector/) for how to get started.
+
+By default jsdom elements are formatted as plain old JS objects in the console. To make it easier to debug, you can use [jsdom-devtools-formatter](https://github.com/jsdom/jsdom-devtools-formatter), which lets you inspect them like real DOM elements.
+
+## Caveats
+
+### Asynchronous script loading
+
+People often have trouble with asynchronous script loading when using jsdom. Many pages load scripts asynchronously, but there is no way to tell when they're done doing so, and thus when it's a good time to run your code and inspect the resulting DOM structure. This is a fundamental limitation; we cannot predict what scripts on the web page will do, and so cannot tell you when they are done loading more scripts.
+
+This can be worked around in a few ways. The best way, if you control the page in question, is to use whatever mechanisms are given by the script loader to detect when loading is done. For example, if you're using a module loader like RequireJS, the code could look like:
+
+```js
+// On the Node.js side:
+const window = (new JSDOM(...)).window;
+window.onModulesLoaded = () => {
+ console.log("ready to roll!");
+};
+```
+
+```html
+
+
+```
+
+If you do not control the page, you could try workarounds such as polling for the presence of a specific element.
+
+For more details, see the discussion in [#640](https://github.com/jsdom/jsdom/issues/640), especially [@matthewkastor](https://github.com/matthewkastor)'s [insightful comment](https://github.com/jsdom/jsdom/issues/640#issuecomment-22216965).
+
+### Unimplemented parts of the web platform
+
+Although we enjoy adding new features to jsdom and keeping it up to date with the latest web specs, it has many missing APIs. Please feel free to file an issue for anything missing, but we're a small and busy team, so a pull request might work even better.
+
+Some features of jsdom are provided by our dependencies. Notable documentation in that regard includes the list of [supported CSS selectors](https://github.com/dperini/nwsapi/wiki/CSS-supported-selectors) for our CSS selector engine, [`nwsapi`](https://github.com/dperini/nwsapi).
+
+Beyond just features that we haven't gotten to yet, there are two major features that are currently outside the scope of jsdom. These are:
+
+- **Navigation**: the ability to change the global object, and all other objects, when clicking a link or assigning `location.href` or similar.
+- **Layout**: the ability to calculate where elements will be visually laid out as a result of CSS, which impacts methods like `getBoundingClientRects()` or properties like `offsetTop`.
+
+Currently jsdom has dummy behaviors for some aspects of these features, such as sending a "not implemented" `"jsdomError"` to the virtual console for navigation, or returning zeros for many layout-related properties. Often you can work around these limitations in your code, e.g. by creating new `JSDOM` instances for each page you "navigate" to during a crawl, or using `Object.defineProperty()` to change what various layout-related getters and methods return.
+
+Note that other tools in the same space, such as PhantomJS, do support these features. On the wiki, we have a more complete writeup about [jsdom vs. PhantomJS](https://github.com/jsdom/jsdom/wiki/jsdom-vs.-PhantomJS).
+
+## Supporting jsdom
+
+jsdom is a community-driven project maintained by a team of [volunteers](https://github.com/orgs/jsdom/people). You could support jsdom by:
+
+- [Getting professional support for jsdom](https://tidelift.com/subscription/pkg/npm-jsdom?utm_source=npm-jsdom&utm_medium=referral&utm_campaign=readme) as part of a Tidelift subscription. Tidelift helps making open source sustainable for us while giving teams assurances for maintenance, licensing, and security.
+- [Contributing](https://github.com/jsdom/jsdom/blob/main/Contributing.md) directly to the project.
+
+## Getting help
+
+If you need help with jsdom, please feel free to use any of the following venues:
+
+- The [mailing list](https://groups.google.com/group/jsdom) (best for "how do I" questions)
+- The [issue tracker](https://github.com/jsdom/jsdom/issues) (best for bug reports)
+- The Matrix room: [#jsdom:matrix.org](https://matrix.to/#/#jsdom:matrix.org)
diff --git a/node_modules/jsdom/lib/api.js b/node_modules/jsdom/lib/api.js
new file mode 100644
index 0000000000000000000000000000000000000000..3c41d626b1a5b4f48b0b00c5f40b617e72239f5e
--- /dev/null
+++ b/node_modules/jsdom/lib/api.js
@@ -0,0 +1,373 @@
+"use strict";
+const path = require("path");
+const { pathToFileURL } = require("url");
+const fs = require("fs").promises;
+const vm = require("vm");
+const toughCookie = require("tough-cookie");
+const sniffHTMLEncoding = require("html-encoding-sniffer");
+const whatwgURL = require("whatwg-url");
+const { legacyHookDecode } = require("@exodus/bytes/encoding.js");
+const { URL } = require("whatwg-url");
+const { MIMEType } = require("whatwg-mimetype");
+const { getGlobalDispatcher } = require("undici");
+const idlUtils = require("./generated/idl/utils.js");
+const VirtualConsole = require("./jsdom/virtual-console.js");
+const { createWindow } = require("./jsdom/browser/Window.js");
+const { parseIntoDocument } = require("./jsdom/browser/parser");
+const { fragmentSerialization } = require("./jsdom/living/domparsing/serialization.js");
+const createDecompressInterceptor = require("./jsdom/browser/resources/decompress-interceptor.js");
+const {
+ JSDOMDispatcher, DEFAULT_USER_AGENT, fetchCollected
+} = require("./jsdom/browser/resources/jsdom-dispatcher.js");
+const requestInterceptor = require("./jsdom/browser/resources/request-interceptor.js");
+
+class CookieJar extends toughCookie.CookieJar {
+ constructor(store, options) {
+ // jsdom cookie jars must be loose by default
+ super(store, { looseMode: true, ...options });
+ }
+}
+
+const window = Symbol("window");
+let sharedFragmentDocument = null;
+
+class JSDOM {
+ constructor(input = "", options = {}) {
+ const mimeType = new MIMEType(options.contentType === undefined ? "text/html" : options.contentType);
+ const { html, encoding } = normalizeHTML(input, mimeType);
+
+ options = transformOptions(options, encoding, mimeType);
+
+ this[window] = createWindow(options.windowOptions);
+
+ const documentImpl = idlUtils.implForWrapper(this[window]._document);
+
+ options.beforeParse(this[window]._globalProxy);
+
+ parseIntoDocument(html, documentImpl);
+
+ documentImpl.close();
+ }
+
+ get window() {
+ // It's important to grab the global proxy, instead of just the result of `createWindow(...)`, since otherwise
+ // things like `window.eval` don't exist.
+ return this[window]._globalProxy;
+ }
+
+ get virtualConsole() {
+ return this[window]._virtualConsole;
+ }
+
+ get cookieJar() {
+ // TODO NEWAPI move _cookieJar to window probably
+ return idlUtils.implForWrapper(this[window]._document)._cookieJar;
+ }
+
+ serialize() {
+ return fragmentSerialization(idlUtils.implForWrapper(this[window]._document), { requireWellFormed: false });
+ }
+
+ nodeLocation(node) {
+ if (!idlUtils.implForWrapper(this[window]._document)._parseOptions.sourceCodeLocationInfo) {
+ throw new Error("Location information was not saved for this jsdom. Use includeNodeLocations during creation.");
+ }
+
+ return idlUtils.implForWrapper(node).sourceCodeLocation;
+ }
+
+ getInternalVMContext() {
+ if (!vm.isContext(this[window])) {
+ throw new TypeError("This jsdom was not configured to allow script running. " +
+ "Use the runScripts option during creation.");
+ }
+
+ return this[window];
+ }
+
+ reconfigure(settings) {
+ if ("windowTop" in settings) {
+ this[window]._top = settings.windowTop;
+ }
+
+ if ("url" in settings) {
+ const document = idlUtils.implForWrapper(this[window]._document);
+
+ const url = whatwgURL.parseURL(settings.url);
+ if (url === null) {
+ throw new TypeError(`Could not parse "${settings.url}" as a URL`);
+ }
+
+ document._URL = url;
+ document._origin = whatwgURL.serializeURLOrigin(document._URL);
+ this[window]._sessionHistory.currentEntry.url = url;
+ document._clearBaseURLCache();
+ }
+ }
+
+ static fragment(string = "") {
+ if (!sharedFragmentDocument) {
+ sharedFragmentDocument = (new JSDOM()).window.document;
+ }
+
+ const template = sharedFragmentDocument.createElement("template");
+ template.innerHTML = string;
+ return template.content;
+ }
+
+ static async fromURL(url, options = {}) {
+ options = normalizeFromURLOptions(options);
+
+ // Build the dispatcher for the initial request
+ // For the initial fetch, we default to "usable" instead of no resource loading, since fromURL() implicitly requests
+ // fetching the initial resource. This does not impact further resource fetching, which uses options.resources.
+ const resourcesForInitialFetch = options.resources !== undefined ? options.resources : "usable";
+ const { effectiveDispatcher } = extractResourcesOptions(resourcesForInitialFetch, options.cookieJar);
+
+ const headers = { Accept: "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8" };
+ if (options.referrer) {
+ headers.Referer = options.referrer;
+ }
+
+ const response = await fetchCollected(effectiveDispatcher, {
+ url,
+ headers
+ });
+
+ if (!response.ok) {
+ throw new Error(`Resource was not loaded. Status: ${response.status}`);
+ }
+
+ options = Object.assign(options, {
+ url: response.url,
+ contentType: response.headers["content-type"] || undefined,
+ referrer: options.referrer,
+ resources: options.resources
+ });
+
+ return new JSDOM(response.body, options);
+ }
+
+ static async fromFile(filename, options = {}) {
+ options = normalizeFromFileOptions(filename, options);
+ const nodeBuffer = await fs.readFile(filename);
+
+ return new JSDOM(nodeBuffer, options);
+ }
+}
+
+function normalizeFromURLOptions(options) {
+ // Checks on options that are invalid for `fromURL`
+ if (options.url !== undefined) {
+ throw new TypeError("Cannot supply a url option when using fromURL");
+ }
+ if (options.contentType !== undefined) {
+ throw new TypeError("Cannot supply a contentType option when using fromURL");
+ }
+
+ // Normalization of options which must be done before the rest of the fromURL code can use them, because they are
+ // given to request()
+ const normalized = { ...options };
+
+ if (options.referrer !== undefined) {
+ normalized.referrer = (new URL(options.referrer)).href;
+ }
+
+ if (options.cookieJar === undefined) {
+ normalized.cookieJar = new CookieJar();
+ }
+
+ return normalized;
+
+ // All other options don't need to be processed yet, and can be taken care of in the normal course of things when
+ // `fromURL` calls `new JSDOM(html, options)`.
+}
+
+function extractResourcesOptions(resources, cookieJar) {
+ // loadSubresources controls whether PerDocumentResourceLoader fetches scripts, stylesheets, etc.
+ // XHR always works regardless of this flag.
+ let userAgent, baseDispatcher, userInterceptors, loadSubresources;
+
+ if (resources === undefined) {
+ // resources: undefined means no automatic subresource fetching, but XHR still works
+ userAgent = DEFAULT_USER_AGENT;
+ baseDispatcher = getGlobalDispatcher();
+ userInterceptors = [];
+ loadSubresources = false;
+ } else if (resources === "usable") {
+ // resources: "usable" means use all defaults
+ userAgent = DEFAULT_USER_AGENT;
+ baseDispatcher = getGlobalDispatcher();
+ userInterceptors = [];
+ loadSubresources = true;
+ } else if (typeof resources === "object" && resources !== null) {
+ // resources: { userAgent?, dispatcher?, interceptors? }
+ userAgent = resources.userAgent !== undefined ? resources.userAgent : DEFAULT_USER_AGENT;
+ baseDispatcher = resources.dispatcher !== undefined ? resources.dispatcher : getGlobalDispatcher();
+ userInterceptors = resources.interceptors !== undefined ? resources.interceptors : [];
+ loadSubresources = true;
+ } else {
+ throw new TypeError(`resources must be undefined, "usable", or an object`);
+ }
+
+ // User interceptors come first (outermost), then decompress interceptor
+ const allUserInterceptors = [
+ ...userInterceptors,
+ createDecompressInterceptor()
+ ];
+
+ return {
+ userAgent,
+ effectiveDispatcher: new JSDOMDispatcher({
+ baseDispatcher,
+ cookieJar,
+ userAgent,
+ userInterceptors: allUserInterceptors
+ }),
+ loadSubresources
+ };
+}
+
+function normalizeFromFileOptions(filename, options) {
+ const normalized = { ...options };
+
+ if (normalized.contentType === undefined) {
+ const extname = path.extname(filename);
+ if (extname === ".xhtml" || extname === ".xht" || extname === ".xml") {
+ normalized.contentType = "application/xhtml+xml";
+ }
+ }
+
+ if (normalized.url === undefined) {
+ normalized.url = pathToFileURL(path.resolve(filename)).href;
+ }
+
+ return normalized;
+}
+
+function transformOptions(options, encoding, mimeType) {
+ const transformed = {
+ windowOptions: {
+ // Defaults
+ url: "about:blank",
+ referrer: "",
+ contentType: "text/html",
+ parsingMode: "html",
+ parseOptions: {
+ sourceCodeLocationInfo: false,
+ scriptingEnabled: false
+ },
+ runScripts: undefined,
+ encoding,
+ pretendToBeVisual: false,
+ storageQuota: 5000000,
+
+ // Defaults filled in later
+ dispatcher: undefined,
+ loadSubresources: undefined,
+ userAgent: undefined,
+ virtualConsole: undefined,
+ cookieJar: undefined
+ },
+
+ // Defaults
+ beforeParse() { }
+ };
+
+ // options.contentType was parsed into mimeType by the caller.
+ if (!mimeType.isHTML() && !mimeType.isXML()) {
+ throw new RangeError(`The given content type of "${options.contentType}" was not a HTML or XML content type`);
+ }
+
+ transformed.windowOptions.contentType = mimeType.essence;
+ transformed.windowOptions.parsingMode = mimeType.isHTML() ? "html" : "xml";
+
+ if (options.url !== undefined) {
+ transformed.windowOptions.url = (new URL(options.url)).href;
+ }
+
+ if (options.referrer !== undefined) {
+ transformed.windowOptions.referrer = (new URL(options.referrer)).href;
+ }
+
+ if (options.includeNodeLocations) {
+ if (transformed.windowOptions.parsingMode === "xml") {
+ throw new TypeError("Cannot set includeNodeLocations to true with an XML content type");
+ }
+
+ transformed.windowOptions.parseOptions = { sourceCodeLocationInfo: true };
+ }
+
+ transformed.windowOptions.cookieJar = options.cookieJar === undefined ?
+ new CookieJar() :
+ options.cookieJar;
+
+ transformed.windowOptions.virtualConsole = options.virtualConsole === undefined ?
+ (new VirtualConsole()).forwardTo(console) :
+ options.virtualConsole;
+
+ if (!(transformed.windowOptions.virtualConsole instanceof VirtualConsole)) {
+ throw new TypeError("virtualConsole must be an instance of VirtualConsole");
+ }
+
+ const { userAgent, effectiveDispatcher, loadSubresources } =
+ extractResourcesOptions(options.resources, transformed.windowOptions.cookieJar);
+ transformed.windowOptions.userAgent = userAgent;
+ transformed.windowOptions.dispatcher = effectiveDispatcher;
+ transformed.windowOptions.loadSubresources = loadSubresources;
+
+ if (options.runScripts !== undefined) {
+ transformed.windowOptions.runScripts = String(options.runScripts);
+ if (transformed.windowOptions.runScripts === "dangerously") {
+ transformed.windowOptions.parseOptions.scriptingEnabled = true;
+ } else if (transformed.windowOptions.runScripts !== "outside-only") {
+ throw new RangeError(`runScripts must be undefined, "dangerously", or "outside-only"`);
+ }
+ }
+
+ if (options.beforeParse !== undefined) {
+ transformed.beforeParse = options.beforeParse;
+ }
+
+ if (options.pretendToBeVisual !== undefined) {
+ transformed.windowOptions.pretendToBeVisual = Boolean(options.pretendToBeVisual);
+ }
+
+ if (options.storageQuota !== undefined) {
+ transformed.windowOptions.storageQuota = Number(options.storageQuota);
+ }
+
+ return transformed;
+}
+
+function normalizeHTML(html, mimeType) {
+ let encoding = "UTF-8";
+
+ if (html instanceof Uint8Array) {
+ // leave as-is
+ } else if (ArrayBuffer.isView(html)) {
+ html = new Uint8Array(html.buffer, html.byteOffset, html.byteLength);
+ } else if (html instanceof ArrayBuffer) {
+ html = new Uint8Array(html);
+ }
+
+ if (html instanceof Uint8Array) {
+ encoding = sniffHTMLEncoding(html, {
+ xml: mimeType.isXML(),
+ transportLayerEncodingLabel: mimeType.parameters.get("charset")
+ });
+ html = legacyHookDecode(html, encoding);
+ } else {
+ html = String(html);
+ }
+
+ return { html, encoding };
+}
+
+exports.JSDOM = JSDOM;
+
+exports.VirtualConsole = VirtualConsole;
+exports.CookieJar = CookieJar;
+exports.requestInterceptor = requestInterceptor;
+
+exports.toughCookie = toughCookie;
diff --git a/node_modules/jsdom/lib/generated/css-property-definitions.js b/node_modules/jsdom/lib/generated/css-property-definitions.js
new file mode 100644
index 0000000000000000000000000000000000000000..223ebe86f5a605c033c3e68728052c7be0580c83
--- /dev/null
+++ b/node_modules/jsdom/lib/generated/css-property-definitions.js
@@ -0,0 +1,16021 @@
+"use strict";
+
+module.exports = new Map([
+ [
+ "-webkit-align-content",
+ {
+ "name": "-webkit-align-content",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-align-content",
+ "legacyAliasOf": "align-content",
+ "styleDeclaration": [
+ "-webkit-align-content",
+ "WebkitAlignContent",
+ "webkitAlignContent"
+ ],
+ "syntax": "normal |
| | ? "
+ }
+ ],
+ [
+ "-webkit-align-items",
+ {
+ "name": "-webkit-align-items",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-align-items",
+ "legacyAliasOf": "align-items",
+ "styleDeclaration": [
+ "-webkit-align-items",
+ "WebkitAlignItems",
+ "webkitAlignItems"
+ ],
+ "syntax": "normal | stretch | | ? "
+ }
+ ],
+ [
+ "-webkit-align-self",
+ {
+ "name": "-webkit-align-self",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-align-self",
+ "legacyAliasOf": "align-self",
+ "styleDeclaration": [
+ "-webkit-align-self",
+ "WebkitAlignSelf",
+ "webkitAlignSelf"
+ ],
+ "syntax": "auto | ? [ normal | ]| stretch | "
+ }
+ ],
+ [
+ "-webkit-animation",
+ {
+ "name": "-webkit-animation",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-animation",
+ "legacyAliasOf": "animation",
+ "styleDeclaration": [
+ "-webkit-animation",
+ "WebkitAnimation",
+ "webkitAnimation"
+ ],
+ "longhands": [
+ "animation-name",
+ "animation-duration",
+ "animation-timing-function",
+ "animation-delay",
+ "animation-iteration-count",
+ "animation-direction",
+ "animation-fill-mode",
+ "animation-play-state",
+ "animation-timeline"
+ ],
+ "resetLonghands": [
+ "animation-range",
+ "animation-trigger"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "-webkit-animation-delay",
+ {
+ "name": "-webkit-animation-delay",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-animation-delay",
+ "legacyAliasOf": "animation-delay",
+ "styleDeclaration": [
+ "-webkit-animation-delay",
+ "WebkitAnimationDelay",
+ "webkitAnimationDelay"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "-webkit-animation-direction",
+ {
+ "name": "-webkit-animation-direction",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-animation-direction",
+ "legacyAliasOf": "animation-direction",
+ "styleDeclaration": [
+ "-webkit-animation-direction",
+ "WebkitAnimationDirection",
+ "webkitAnimationDirection"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "-webkit-animation-duration",
+ {
+ "name": "-webkit-animation-duration",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-animation-duration",
+ "legacyAliasOf": "animation-duration",
+ "styleDeclaration": [
+ "-webkit-animation-duration",
+ "WebkitAnimationDuration",
+ "webkitAnimationDuration"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "-webkit-animation-fill-mode",
+ {
+ "name": "-webkit-animation-fill-mode",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-animation-fill-mode",
+ "legacyAliasOf": "animation-fill-mode",
+ "styleDeclaration": [
+ "-webkit-animation-fill-mode",
+ "WebkitAnimationFillMode",
+ "webkitAnimationFillMode"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "-webkit-animation-iteration-count",
+ {
+ "name": "-webkit-animation-iteration-count",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-animation-iteration-count",
+ "legacyAliasOf": "animation-iteration-count",
+ "styleDeclaration": [
+ "-webkit-animation-iteration-count",
+ "WebkitAnimationIterationCount",
+ "webkitAnimationIterationCount"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "-webkit-animation-name",
+ {
+ "name": "-webkit-animation-name",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-animation-name",
+ "legacyAliasOf": "animation-name",
+ "styleDeclaration": [
+ "-webkit-animation-name",
+ "WebkitAnimationName",
+ "webkitAnimationName"
+ ],
+ "syntax": "[ none | ]#"
+ }
+ ],
+ [
+ "-webkit-animation-play-state",
+ {
+ "name": "-webkit-animation-play-state",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-animation-play-state",
+ "legacyAliasOf": "animation-play-state",
+ "styleDeclaration": [
+ "-webkit-animation-play-state",
+ "WebkitAnimationPlayState",
+ "webkitAnimationPlayState"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "-webkit-animation-timing-function",
+ {
+ "name": "-webkit-animation-timing-function",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-animation-timing-function",
+ "legacyAliasOf": "animation-timing-function",
+ "styleDeclaration": [
+ "-webkit-animation-timing-function",
+ "WebkitAnimationTimingFunction",
+ "webkitAnimationTimingFunction"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "-webkit-appearance",
+ {
+ "name": "-webkit-appearance",
+ "href": "https://drafts.csswg.org/css-ui-4/#propdef--webkit-appearance",
+ "legacyAliasOf": "appearance",
+ "styleDeclaration": [
+ "-webkit-appearance",
+ "WebkitAppearance",
+ "webkitAppearance"
+ ],
+ "syntax": "none | auto | base | base-select | | | base"
+ }
+ ],
+ [
+ "-webkit-backface-visibility",
+ {
+ "name": "-webkit-backface-visibility",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-backface-visibility",
+ "legacyAliasOf": "backface-visibility",
+ "styleDeclaration": [
+ "-webkit-backface-visibility",
+ "WebkitBackfaceVisibility",
+ "webkitBackfaceVisibility"
+ ],
+ "syntax": "visible | hidden"
+ }
+ ],
+ [
+ "-webkit-background-clip",
+ {
+ "name": "-webkit-background-clip",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-background-clip",
+ "legacyAliasOf": "background-clip",
+ "styleDeclaration": [
+ "-webkit-background-clip",
+ "WebkitBackgroundClip",
+ "webkitBackgroundClip"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "-webkit-background-origin",
+ {
+ "name": "-webkit-background-origin",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-background-origin",
+ "legacyAliasOf": "background-origin",
+ "styleDeclaration": [
+ "-webkit-background-origin",
+ "WebkitBackgroundOrigin",
+ "webkitBackgroundOrigin"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "-webkit-background-size",
+ {
+ "name": "-webkit-background-size",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-background-size",
+ "legacyAliasOf": "background-size",
+ "styleDeclaration": [
+ "-webkit-background-size",
+ "WebkitBackgroundSize",
+ "webkitBackgroundSize"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "-webkit-border-bottom-left-radius",
+ {
+ "name": "-webkit-border-bottom-left-radius",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-border-bottom-left-radius",
+ "legacyAliasOf": "border-bottom-left-radius",
+ "styleDeclaration": [
+ "-webkit-border-bottom-left-radius",
+ "WebkitBorderBottomLeftRadius",
+ "webkitBorderBottomLeftRadius"
+ ],
+ "syntax": ""
+ }
+ ],
+ [
+ "-webkit-border-bottom-right-radius",
+ {
+ "name": "-webkit-border-bottom-right-radius",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-border-bottom-right-radius",
+ "legacyAliasOf": "border-bottom-right-radius",
+ "styleDeclaration": [
+ "-webkit-border-bottom-right-radius",
+ "WebkitBorderBottomRightRadius",
+ "webkitBorderBottomRightRadius"
+ ],
+ "syntax": ""
+ }
+ ],
+ [
+ "-webkit-border-radius",
+ {
+ "name": "-webkit-border-radius",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-border-radius",
+ "legacyAliasOf": "border-radius",
+ "styleDeclaration": [
+ "-webkit-border-radius",
+ "WebkitBorderRadius",
+ "webkitBorderRadius"
+ ],
+ "longhands": [
+ "border-top-left-radius",
+ "border-top-right-radius",
+ "border-bottom-right-radius",
+ "border-bottom-left-radius"
+ ],
+ "syntax": "{1,4} [ / {1,4} ]?"
+ }
+ ],
+ [
+ "-webkit-border-top-left-radius",
+ {
+ "name": "-webkit-border-top-left-radius",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-border-top-left-radius",
+ "legacyAliasOf": "border-top-left-radius",
+ "styleDeclaration": [
+ "-webkit-border-top-left-radius",
+ "WebkitBorderTopLeftRadius",
+ "webkitBorderTopLeftRadius"
+ ],
+ "syntax": ""
+ }
+ ],
+ [
+ "-webkit-border-top-right-radius",
+ {
+ "name": "-webkit-border-top-right-radius",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-border-top-right-radius",
+ "legacyAliasOf": "border-top-right-radius",
+ "styleDeclaration": [
+ "-webkit-border-top-right-radius",
+ "WebkitBorderTopRightRadius",
+ "webkitBorderTopRightRadius"
+ ],
+ "syntax": ""
+ }
+ ],
+ [
+ "-webkit-box-align",
+ {
+ "name": "-webkit-box-align",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-box-align",
+ "styleDeclaration": [
+ "-webkit-box-align",
+ "WebkitBoxAlign",
+ "webkitBoxAlign"
+ ]
+ }
+ ],
+ [
+ "-webkit-box-flex",
+ {
+ "name": "-webkit-box-flex",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-box-flex",
+ "styleDeclaration": [
+ "-webkit-box-flex",
+ "WebkitBoxFlex",
+ "webkitBoxFlex"
+ ]
+ }
+ ],
+ [
+ "-webkit-box-ordinal-group",
+ {
+ "name": "-webkit-box-ordinal-group",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-box-ordinal-group",
+ "styleDeclaration": [
+ "-webkit-box-ordinal-group",
+ "WebkitBoxOrdinalGroup",
+ "webkitBoxOrdinalGroup"
+ ]
+ }
+ ],
+ [
+ "-webkit-box-orient",
+ {
+ "name": "-webkit-box-orient",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-box-orient",
+ "styleDeclaration": [
+ "-webkit-box-orient",
+ "WebkitBoxOrient",
+ "webkitBoxOrient"
+ ]
+ }
+ ],
+ [
+ "-webkit-box-pack",
+ {
+ "name": "-webkit-box-pack",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-box-pack",
+ "styleDeclaration": [
+ "-webkit-box-pack",
+ "WebkitBoxPack",
+ "webkitBoxPack"
+ ]
+ }
+ ],
+ [
+ "-webkit-box-shadow",
+ {
+ "name": "-webkit-box-shadow",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-box-shadow",
+ "legacyAliasOf": "box-shadow",
+ "styleDeclaration": [
+ "-webkit-box-shadow",
+ "WebkitBoxShadow",
+ "webkitBoxShadow"
+ ],
+ "longhands": [
+ "box-shadow-color",
+ "box-shadow-offset",
+ "box-shadow-blur",
+ "box-shadow-spread",
+ "box-shadow-position"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "-webkit-box-sizing",
+ {
+ "name": "-webkit-box-sizing",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-box-sizing",
+ "legacyAliasOf": "box-sizing",
+ "styleDeclaration": [
+ "-webkit-box-sizing",
+ "WebkitBoxSizing",
+ "webkitBoxSizing"
+ ],
+ "syntax": "content-box | border-box"
+ }
+ ],
+ [
+ "-webkit-filter",
+ {
+ "name": "-webkit-filter",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-filter",
+ "legacyAliasOf": "filter",
+ "styleDeclaration": [
+ "-webkit-filter",
+ "WebkitFilter",
+ "webkitFilter"
+ ],
+ "syntax": "none | "
+ }
+ ],
+ [
+ "-webkit-flex",
+ {
+ "name": "-webkit-flex",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-flex-propdef",
+ "legacyAliasOf": "flex",
+ "styleDeclaration": [
+ "-webkit-flex",
+ "WebkitFlex",
+ "webkitFlex"
+ ],
+ "longhands": [
+ "flex-grow",
+ "flex-shrink",
+ "flex-basis"
+ ],
+ "syntax": "none | [ <'flex-grow'> <'flex-shrink'>? || <'flex-basis'> ]"
+ }
+ ],
+ [
+ "-webkit-flex-basis",
+ {
+ "name": "-webkit-flex-basis",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-flex-basis",
+ "legacyAliasOf": "flex-basis",
+ "styleDeclaration": [
+ "-webkit-flex-basis",
+ "WebkitFlexBasis",
+ "webkitFlexBasis"
+ ],
+ "syntax": "content | <'width'>"
+ }
+ ],
+ [
+ "-webkit-flex-direction",
+ {
+ "name": "-webkit-flex-direction",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-flex-direction",
+ "legacyAliasOf": "flex-direction",
+ "styleDeclaration": [
+ "-webkit-flex-direction",
+ "WebkitFlexDirection",
+ "webkitFlexDirection"
+ ],
+ "syntax": "row | row-reverse | column | column-reverse"
+ }
+ ],
+ [
+ "-webkit-flex-flow",
+ {
+ "name": "-webkit-flex-flow",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-flex-flow",
+ "legacyAliasOf": "flex-flow",
+ "styleDeclaration": [
+ "-webkit-flex-flow",
+ "WebkitFlexFlow",
+ "webkitFlexFlow"
+ ],
+ "longhands": [
+ "flex-direction",
+ "flex-wrap"
+ ],
+ "syntax": "<'flex-direction'> || <'flex-wrap'>"
+ }
+ ],
+ [
+ "-webkit-flex-grow",
+ {
+ "name": "-webkit-flex-grow",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-flex-grow",
+ "legacyAliasOf": "flex-grow",
+ "styleDeclaration": [
+ "-webkit-flex-grow",
+ "WebkitFlexGrow",
+ "webkitFlexGrow"
+ ],
+ "syntax": ""
+ }
+ ],
+ [
+ "-webkit-flex-shrink",
+ {
+ "name": "-webkit-flex-shrink",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-flex-shrink",
+ "legacyAliasOf": "flex-shrink",
+ "styleDeclaration": [
+ "-webkit-flex-shrink",
+ "WebkitFlexShrink",
+ "webkitFlexShrink"
+ ],
+ "syntax": ""
+ }
+ ],
+ [
+ "-webkit-flex-wrap",
+ {
+ "name": "-webkit-flex-wrap",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-flex-wrap",
+ "legacyAliasOf": "flex-wrap",
+ "styleDeclaration": [
+ "-webkit-flex-wrap",
+ "WebkitFlexWrap",
+ "webkitFlexWrap"
+ ],
+ "syntax": "nowrap | wrap | wrap-reverse"
+ }
+ ],
+ [
+ "-webkit-justify-content",
+ {
+ "name": "-webkit-justify-content",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-justify-content",
+ "legacyAliasOf": "justify-content",
+ "styleDeclaration": [
+ "-webkit-justify-content",
+ "WebkitJustifyContent",
+ "webkitJustifyContent"
+ ],
+ "syntax": "normal | | ? [ | left | right ]"
+ }
+ ],
+ [
+ "-webkit-line-clamp",
+ {
+ "name": "-webkit-line-clamp",
+ "href": "https://drafts.csswg.org/css-overflow-4/#propdef--webkit-line-clamp",
+ "initial": "none",
+ "appliesTo": "see individual properties",
+ "inherited": "see individual properties",
+ "percentages": "N/A",
+ "computedValue": "see individual properties",
+ "animationType": "see individual properties",
+ "canonicalOrder": "per grammar",
+ "styleDeclaration": [
+ "-webkit-line-clamp",
+ "WebkitLineClamp",
+ "webkitLineClamp"
+ ],
+ "longhands": [
+ "max-lines",
+ "block-ellipsis",
+ "continue"
+ ],
+ "syntax": "none | "
+ }
+ ],
+ [
+ "-webkit-mask",
+ {
+ "name": "-webkit-mask",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-mask",
+ "legacyAliasOf": "mask",
+ "styleDeclaration": [
+ "-webkit-mask",
+ "WebkitMask",
+ "webkitMask"
+ ],
+ "longhands": [
+ "mask-image",
+ "mask-position",
+ "mask-size",
+ "mask-repeat",
+ "mask-origin",
+ "mask-clip",
+ "mask-composite",
+ "mask-mode"
+ ],
+ "resetLonghands": [
+ "mask-border"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "-webkit-mask-box-image",
+ {
+ "name": "-webkit-mask-box-image",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-mask-box-image",
+ "legacyAliasOf": "mask-border",
+ "styleDeclaration": [
+ "-webkit-mask-box-image",
+ "WebkitMaskBoxImage",
+ "webkitMaskBoxImage"
+ ],
+ "longhands": [
+ "mask-border-source",
+ "mask-border-slice",
+ "mask-border-width",
+ "mask-border-outset",
+ "mask-border-repeat",
+ "mask-border-mode"
+ ],
+ "syntax": "<'mask-border-source'> || <'mask-border-slice'> [ / <'mask-border-width'>? [ / <'mask-border-outset'> ]? ]? || <'mask-border-repeat'> || <'mask-border-mode'>"
+ }
+ ],
+ [
+ "-webkit-mask-box-image-outset",
+ {
+ "name": "-webkit-mask-box-image-outset",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-mask-box-image-outset",
+ "legacyAliasOf": "mask-border-outset",
+ "styleDeclaration": [
+ "-webkit-mask-box-image-outset",
+ "WebkitMaskBoxImageOutset",
+ "webkitMaskBoxImageOutset"
+ ],
+ "syntax": "[ | ]{1,4}"
+ }
+ ],
+ [
+ "-webkit-mask-box-image-repeat",
+ {
+ "name": "-webkit-mask-box-image-repeat",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-mask-box-image-repeat",
+ "legacyAliasOf": "mask-border-repeat",
+ "styleDeclaration": [
+ "-webkit-mask-box-image-repeat",
+ "WebkitMaskBoxImageRepeat",
+ "webkitMaskBoxImageRepeat"
+ ],
+ "syntax": "[ stretch | repeat | round | space ]{1,2}"
+ }
+ ],
+ [
+ "-webkit-mask-box-image-slice",
+ {
+ "name": "-webkit-mask-box-image-slice",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-mask-box-image-slice",
+ "legacyAliasOf": "mask-border-slice",
+ "styleDeclaration": [
+ "-webkit-mask-box-image-slice",
+ "WebkitMaskBoxImageSlice",
+ "webkitMaskBoxImageSlice"
+ ],
+ "syntax": "[ | ]{1,4} fill?"
+ }
+ ],
+ [
+ "-webkit-mask-box-image-source",
+ {
+ "name": "-webkit-mask-box-image-source",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-mask-box-image-source",
+ "legacyAliasOf": "mask-border-source",
+ "styleDeclaration": [
+ "-webkit-mask-box-image-source",
+ "WebkitMaskBoxImageSource",
+ "webkitMaskBoxImageSource"
+ ],
+ "syntax": "none | "
+ }
+ ],
+ [
+ "-webkit-mask-box-image-width",
+ {
+ "name": "-webkit-mask-box-image-width",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-mask-box-image-width",
+ "legacyAliasOf": "mask-border-width",
+ "styleDeclaration": [
+ "-webkit-mask-box-image-width",
+ "WebkitMaskBoxImageWidth",
+ "webkitMaskBoxImageWidth"
+ ],
+ "syntax": "[ | | auto ]{1,4}"
+ }
+ ],
+ [
+ "-webkit-mask-clip",
+ {
+ "name": "-webkit-mask-clip",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-mask-clip",
+ "legacyAliasOf": "mask-clip",
+ "styleDeclaration": [
+ "-webkit-mask-clip",
+ "WebkitMaskClip",
+ "webkitMaskClip"
+ ],
+ "syntax": "[ | no-clip ]#"
+ }
+ ],
+ [
+ "-webkit-mask-composite",
+ {
+ "name": "-webkit-mask-composite",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-mask-composite",
+ "legacyAliasOf": "mask-composite",
+ "styleDeclaration": [
+ "-webkit-mask-composite",
+ "WebkitMaskComposite",
+ "webkitMaskComposite"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "-webkit-mask-image",
+ {
+ "name": "-webkit-mask-image",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-mask-image",
+ "legacyAliasOf": "mask-image",
+ "styleDeclaration": [
+ "-webkit-mask-image",
+ "WebkitMaskImage",
+ "webkitMaskImage"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "-webkit-mask-origin",
+ {
+ "name": "-webkit-mask-origin",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-mask-origin",
+ "legacyAliasOf": "mask-origin",
+ "styleDeclaration": [
+ "-webkit-mask-origin",
+ "WebkitMaskOrigin",
+ "webkitMaskOrigin"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "-webkit-mask-position",
+ {
+ "name": "-webkit-mask-position",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-mask-position",
+ "legacyAliasOf": "mask-position",
+ "styleDeclaration": [
+ "-webkit-mask-position",
+ "WebkitMaskPosition",
+ "webkitMaskPosition"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "-webkit-mask-repeat",
+ {
+ "name": "-webkit-mask-repeat",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-mask-repeat",
+ "legacyAliasOf": "mask-repeat",
+ "styleDeclaration": [
+ "-webkit-mask-repeat",
+ "WebkitMaskRepeat",
+ "webkitMaskRepeat"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "-webkit-mask-size",
+ {
+ "name": "-webkit-mask-size",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-mask-size",
+ "legacyAliasOf": "mask-size",
+ "styleDeclaration": [
+ "-webkit-mask-size",
+ "WebkitMaskSize",
+ "webkitMaskSize"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "-webkit-order",
+ {
+ "name": "-webkit-order",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-order",
+ "legacyAliasOf": "order",
+ "styleDeclaration": [
+ "-webkit-order",
+ "WebkitOrder",
+ "webkitOrder"
+ ],
+ "syntax": ""
+ }
+ ],
+ [
+ "-webkit-perspective",
+ {
+ "name": "-webkit-perspective",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-perspective",
+ "legacyAliasOf": "perspective",
+ "styleDeclaration": [
+ "-webkit-perspective",
+ "WebkitPerspective",
+ "webkitPerspective"
+ ],
+ "syntax": "none | "
+ }
+ ],
+ [
+ "-webkit-perspective-origin",
+ {
+ "name": "-webkit-perspective-origin",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-perspective-origin",
+ "legacyAliasOf": "perspective-origin",
+ "styleDeclaration": [
+ "-webkit-perspective-origin",
+ "WebkitPerspectiveOrigin",
+ "webkitPerspectiveOrigin"
+ ],
+ "syntax": ""
+ }
+ ],
+ [
+ "-webkit-text-fill-color",
+ {
+ "name": "-webkit-text-fill-color",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-text-fill-color",
+ "initial": "currentcolor",
+ "appliesTo": "all elements",
+ "inherited": "yes",
+ "percentages": "N/A",
+ "computedValue": "an RGBA color",
+ "canonicalOrder": "per grammar",
+ "animationType": "by computed value type",
+ "media": "visual",
+ "styleDeclaration": [
+ "-webkit-text-fill-color",
+ "WebkitTextFillColor",
+ "webkitTextFillColor"
+ ],
+ "syntax": ""
+ }
+ ],
+ [
+ "-webkit-text-size-adjust",
+ {
+ "name": "-webkit-text-size-adjust",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-text-size-adjust",
+ "legacyAliasOf": "text-size-adjust",
+ "styleDeclaration": [
+ "-webkit-text-size-adjust",
+ "WebkitTextSizeAdjust",
+ "webkitTextSizeAdjust"
+ ],
+ "syntax": "auto | none | "
+ }
+ ],
+ [
+ "-webkit-text-stroke",
+ {
+ "name": "-webkit-text-stroke",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-text-stroke",
+ "initial": "See individual properties",
+ "appliesTo": "See individual properties",
+ "inherited": "yes",
+ "percentages": "N/A",
+ "computedValue": "See individual properties",
+ "canonicalOrder": "per grammar",
+ "animationType": "See individual properties",
+ "media": "visual",
+ "styleDeclaration": [
+ "-webkit-text-stroke",
+ "WebkitTextStroke",
+ "webkitTextStroke"
+ ],
+ "longhands": [
+ "-webkit-text-stroke-width",
+ "-webkit-text-stroke-color"
+ ],
+ "syntax": " || "
+ }
+ ],
+ [
+ "-webkit-text-stroke-color",
+ {
+ "name": "-webkit-text-stroke-color",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-text-stroke-color",
+ "initial": "currentcolor",
+ "appliesTo": "all elements",
+ "inherited": "yes",
+ "percentages": "N/A",
+ "computedValue": "an RGBA color",
+ "canonicalOrder": "per grammar",
+ "animationType": "by computed value type",
+ "media": "visual",
+ "styleDeclaration": [
+ "-webkit-text-stroke-color",
+ "WebkitTextStrokeColor",
+ "webkitTextStrokeColor"
+ ],
+ "syntax": ""
+ }
+ ],
+ [
+ "-webkit-text-stroke-width",
+ {
+ "name": "-webkit-text-stroke-width",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-text-stroke-width",
+ "initial": "0",
+ "appliesTo": "all elements",
+ "inherited": "yes",
+ "percentages": "N/A",
+ "computedValue": "absolute length",
+ "canonicalOrder": "per grammar",
+ "animationType": "discrete",
+ "media": "visual",
+ "styleDeclaration": [
+ "-webkit-text-stroke-width",
+ "WebkitTextStrokeWidth",
+ "webkitTextStrokeWidth"
+ ],
+ "syntax": ""
+ }
+ ],
+ [
+ "-webkit-transform",
+ {
+ "name": "-webkit-transform",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-transform",
+ "legacyAliasOf": "transform",
+ "styleDeclaration": [
+ "-webkit-transform",
+ "WebkitTransform",
+ "webkitTransform"
+ ],
+ "syntax": "none | "
+ }
+ ],
+ [
+ "-webkit-transform-origin",
+ {
+ "name": "-webkit-transform-origin",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-transform-origin",
+ "legacyAliasOf": "transform-origin",
+ "styleDeclaration": [
+ "-webkit-transform-origin",
+ "WebkitTransformOrigin",
+ "webkitTransformOrigin"
+ ],
+ "syntax": "[ left | center | right | top | bottom | ] | [ left | center | right | ] [ top | center | bottom | ] ? | [ [ center | left | right ] && [ center | top | bottom ] ] ?"
+ }
+ ],
+ [
+ "-webkit-transform-style",
+ {
+ "name": "-webkit-transform-style",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-transform-style",
+ "legacyAliasOf": "transform-style",
+ "styleDeclaration": [
+ "-webkit-transform-style",
+ "WebkitTransformStyle",
+ "webkitTransformStyle"
+ ],
+ "syntax": "flat | preserve-3d"
+ }
+ ],
+ [
+ "-webkit-transition",
+ {
+ "name": "-webkit-transition",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-transition",
+ "legacyAliasOf": "transition",
+ "styleDeclaration": [
+ "-webkit-transition",
+ "WebkitTransition",
+ "webkitTransition"
+ ],
+ "longhands": [
+ "transition-property",
+ "transition-duration",
+ "transition-timing-function",
+ "transition-delay",
+ "transition-behavior"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "-webkit-transition-delay",
+ {
+ "name": "-webkit-transition-delay",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-transition-delay",
+ "legacyAliasOf": "transition-delay",
+ "styleDeclaration": [
+ "-webkit-transition-delay",
+ "WebkitTransitionDelay",
+ "webkitTransitionDelay"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "-webkit-transition-duration",
+ {
+ "name": "-webkit-transition-duration",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-transition-duration",
+ "legacyAliasOf": "transition-duration",
+ "styleDeclaration": [
+ "-webkit-transition-duration",
+ "WebkitTransitionDuration",
+ "webkitTransitionDuration"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "-webkit-transition-property",
+ {
+ "name": "-webkit-transition-property",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-transition-property",
+ "legacyAliasOf": "transition-property",
+ "styleDeclaration": [
+ "-webkit-transition-property",
+ "WebkitTransitionProperty",
+ "webkitTransitionProperty"
+ ],
+ "syntax": "none | #"
+ }
+ ],
+ [
+ "-webkit-transition-timing-function",
+ {
+ "name": "-webkit-transition-timing-function",
+ "href": "https://compat.spec.whatwg.org/#propdef--webkit-transition-timing-function",
+ "legacyAliasOf": "transition-timing-function",
+ "styleDeclaration": [
+ "-webkit-transition-timing-function",
+ "WebkitTransitionTimingFunction",
+ "webkitTransitionTimingFunction"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "-webkit-user-select",
+ {
+ "name": "-webkit-user-select",
+ "href": "https://drafts.csswg.org/css-ui-4/#propdef--webkit-user-select",
+ "styleDeclaration": [
+ "-webkit-user-select",
+ "WebkitUserSelect",
+ "webkitUserSelect"
+ ],
+ "syntax": "auto | text | none | contain | all"
+ }
+ ],
+ [
+ "accent-color",
+ {
+ "name": "accent-color",
+ "href": "https://drafts.csswg.org/css-ui-4/#propdef-accent-color",
+ "initial": "auto",
+ "appliesTo": "all elements",
+ "inherited": "yes",
+ "percentages": "N/A",
+ "computedValue": "the keyword auto or a computed color",
+ "canonicalOrder": "per grammar",
+ "animationType": "by computed value type",
+ "styleDeclaration": [
+ "accent-color",
+ "accentColor"
+ ],
+ "syntax": "auto | "
+ }
+ ],
+ [
+ "align-content",
+ {
+ "name": "align-content",
+ "href": "https://drafts.csswg.org/css-align-3/#propdef-align-content",
+ "initial": "normal",
+ "appliesTo": "block containers, multicol containers, flex containers, and grid containers",
+ "inherited": "no",
+ "percentages": "n/a",
+ "computedValue": "specified keyword(s)",
+ "canonicalOrder": "per grammar",
+ "animationType": "discrete",
+ "styleDeclaration": [
+ "align-content",
+ "alignContent"
+ ],
+ "syntax": "normal | | | ? "
+ }
+ ],
+ [
+ "align-items",
+ {
+ "name": "align-items",
+ "href": "https://drafts.csswg.org/css-align-3/#propdef-align-items",
+ "initial": "normal",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "n/a",
+ "computedValue": "specified keyword(s)",
+ "canonicalOrder": "per grammar",
+ "animationType": "discrete",
+ "styleDeclaration": [
+ "align-items",
+ "alignItems"
+ ],
+ "syntax": "normal | stretch | | ? "
+ }
+ ],
+ [
+ "align-self",
+ {
+ "name": "align-self",
+ "href": "https://drafts.csswg.org/css-align-3/#propdef-align-self",
+ "initial": "auto",
+ "appliesTo": "flex items, grid items, and absolutely-positioned boxes",
+ "inherited": "no",
+ "percentages": "n/a",
+ "computedValue": "specified keyword(s)",
+ "canonicalOrder": "per grammar",
+ "animationType": "discrete",
+ "styleDeclaration": [
+ "align-self",
+ "alignSelf"
+ ],
+ "syntax": "auto | ? [ normal | ]| stretch | | anchor-center"
+ }
+ ],
+ [
+ "alignment-baseline",
+ {
+ "name": "alignment-baseline",
+ "href": "https://drafts.csswg.org/css-inline-3/#propdef-alignment-baseline",
+ "initial": "baseline",
+ "appliesTo": "inline-level boxes, flex items, grid items, table cells, and SVG text content elements",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "specified keyword",
+ "canonicalOrder": "per grammar",
+ "animationType": "discrete",
+ "styleDeclaration": [
+ "alignment-baseline",
+ "alignmentBaseline"
+ ],
+ "syntax": "baseline | "
+ }
+ ],
+ [
+ "all",
+ {
+ "name": "all",
+ "href": "https://drafts.csswg.org/css-cascade-5/#propdef-all",
+ "initial": "see individual properties",
+ "appliesTo": "see individual properties",
+ "inherited": "see individual properties",
+ "percentages": "see individual properties",
+ "computedValue": "see individual properties",
+ "animationType": "see individual properties",
+ "canonicalOrder": "per grammar",
+ "styleDeclaration": [
+ "all"
+ ],
+ "syntax": "initial | inherit | unset | revert | revert-layer | revert-rule"
+ }
+ ],
+ [
+ "anchor-name",
+ {
+ "name": "anchor-name",
+ "href": "https://drafts.csswg.org/css-anchor-position-1/#propdef-anchor-name",
+ "initial": "none",
+ "appliesTo": "all elements that generate a principal box",
+ "inherited": "no",
+ "percentages": "n/a",
+ "computedValue": "as specified",
+ "canonicalOrder": "per grammar",
+ "animationType": "discrete",
+ "styleDeclaration": [
+ "anchor-name",
+ "anchorName"
+ ],
+ "syntax": "none | #"
+ }
+ ],
+ [
+ "anchor-scope",
+ {
+ "name": "anchor-scope",
+ "href": "https://drafts.csswg.org/css-anchor-position-1/#propdef-anchor-scope",
+ "initial": "none",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "n/a",
+ "computedValue": "as specified",
+ "canonicalOrder": "per grammar",
+ "animationType": "discrete",
+ "styleDeclaration": [
+ "anchor-scope",
+ "anchorScope"
+ ],
+ "syntax": "none | all | #"
+ }
+ ],
+ [
+ "animation",
+ {
+ "name": "animation",
+ "href": "https://drafts.csswg.org/css-animations-1/#propdef-animation",
+ "initial": "see individual properties",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "see individual properties",
+ "canonicalOrder": "per grammar",
+ "animationType": "not animatable",
+ "styleDeclaration": [
+ "animation"
+ ],
+ "longhands": [
+ "animation-name",
+ "animation-duration",
+ "animation-timing-function",
+ "animation-delay",
+ "animation-iteration-count",
+ "animation-direction",
+ "animation-fill-mode",
+ "animation-play-state",
+ "animation-timeline"
+ ],
+ "resetLonghands": [
+ "animation-range",
+ "animation-trigger"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "animation-composition",
+ {
+ "name": "animation-composition",
+ "href": "https://drafts.csswg.org/css-animations-2/#propdef-animation-composition",
+ "initial": "replace",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "list, each item a keyword as specified",
+ "canonicalOrder": "per grammar",
+ "animationType": "not animatable",
+ "styleDeclaration": [
+ "animation-composition",
+ "animationComposition"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "animation-delay",
+ {
+ "name": "animation-delay",
+ "href": "https://drafts.csswg.org/css-animations-1/#propdef-animation-delay",
+ "initial": "0s",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "list, each item a duration",
+ "canonicalOrder": "per grammar",
+ "animationType": "not animatable",
+ "styleDeclaration": [
+ "animation-delay",
+ "animationDelay"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "animation-direction",
+ {
+ "name": "animation-direction",
+ "href": "https://drafts.csswg.org/css-animations-1/#propdef-animation-direction",
+ "initial": "normal",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "list, each item a keyword as specified",
+ "canonicalOrder": "per grammar",
+ "animationType": "not animatable",
+ "styleDeclaration": [
+ "animation-direction",
+ "animationDirection"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "animation-duration",
+ {
+ "name": "animation-duration",
+ "href": "https://drafts.csswg.org/css-animations-2/#propdef-animation-duration",
+ "initial": "auto",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "list, each item either a time or the keyword auto",
+ "canonicalOrder": "per grammar",
+ "animationType": "not animatable",
+ "styleDeclaration": [
+ "animation-duration",
+ "animationDuration"
+ ],
+ "syntax": "[ auto | ]#"
+ }
+ ],
+ [
+ "animation-fill-mode",
+ {
+ "name": "animation-fill-mode",
+ "href": "https://drafts.csswg.org/css-animations-1/#propdef-animation-fill-mode",
+ "initial": "none",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "list, each item a keyword as specified",
+ "canonicalOrder": "per grammar",
+ "animationType": "not animatable",
+ "styleDeclaration": [
+ "animation-fill-mode",
+ "animationFillMode"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "animation-iteration-count",
+ {
+ "name": "animation-iteration-count",
+ "href": "https://drafts.csswg.org/css-animations-1/#propdef-animation-iteration-count",
+ "initial": "1",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "list, each item either a number or the keyword infinite",
+ "canonicalOrder": "per grammar",
+ "animationType": "not animatable",
+ "styleDeclaration": [
+ "animation-iteration-count",
+ "animationIterationCount"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "animation-name",
+ {
+ "name": "animation-name",
+ "href": "https://drafts.csswg.org/css-animations-1/#propdef-animation-name",
+ "initial": "none",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "list, each item either a case-sensitive css identifier or the keyword none",
+ "canonicalOrder": "per grammar",
+ "animationType": "not animatable",
+ "styleDeclaration": [
+ "animation-name",
+ "animationName"
+ ],
+ "syntax": "[ none | ]#"
+ }
+ ],
+ [
+ "animation-play-state",
+ {
+ "name": "animation-play-state",
+ "href": "https://drafts.csswg.org/css-animations-1/#propdef-animation-play-state",
+ "initial": "running",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "list, each item a keyword as specified",
+ "canonicalOrder": "per grammar",
+ "animationType": "not animatable",
+ "styleDeclaration": [
+ "animation-play-state",
+ "animationPlayState"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "animation-range",
+ {
+ "name": "animation-range",
+ "href": "https://drafts.csswg.org/scroll-animations-1/#propdef-animation-range",
+ "initial": "see individual properties",
+ "appliesTo": "see individual properties",
+ "inherited": "see individual properties",
+ "percentages": "see individual properties",
+ "computedValue": "see individual properties",
+ "animationType": "see individual properties",
+ "canonicalOrder": "per grammar",
+ "styleDeclaration": [
+ "animation-range",
+ "animationRange"
+ ],
+ "longhands": [
+ "animation-range-start",
+ "animation-range-end"
+ ],
+ "syntax": "[ <'animation-range-start'> <'animation-range-end'>? ]#"
+ }
+ ],
+ [
+ "animation-range-center",
+ {
+ "name": "animation-range-center",
+ "href": "https://drafts.csswg.org/pointer-animations-1/#propdef-animation-range-center",
+ "initial": "normal",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "relative to the corresponding dimension of the specified timeline range center subject, else relative to the start of the animation attachment range",
+ "computedValue": "list, each item either the keyword normal or a timeline range center subject and a length-percentage value",
+ "canonicalOrder": "per grammar",
+ "animationType": "not animatable",
+ "styleDeclaration": [
+ "animation-range-center",
+ "animationRangeCenter"
+ ],
+ "syntax": "[ normal | [ | ? ] ]#"
+ }
+ ],
+ [
+ "animation-range-end",
+ {
+ "name": "animation-range-end",
+ "href": "https://drafts.csswg.org/scroll-animations-1/#propdef-animation-range-end",
+ "initial": "normal",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "relative to the specified named timeline range if one was specified, else to the entire timeline",
+ "computedValue": "list, each item either the keyword normal or a timeline range and progress percentage",
+ "canonicalOrder": "per grammar",
+ "animationType": "not animatable",
+ "styleDeclaration": [
+ "animation-range-end",
+ "animationRangeEnd"
+ ],
+ "syntax": "[ normal | | ? ]#"
+ }
+ ],
+ [
+ "animation-range-start",
+ {
+ "name": "animation-range-start",
+ "href": "https://drafts.csswg.org/scroll-animations-1/#propdef-animation-range-start",
+ "initial": "normal",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "relative to the specified named timeline range if one was specified, else to the entire timeline",
+ "computedValue": "list, each item either the keyword normal or a timeline range and progress percentage",
+ "canonicalOrder": "per grammar",
+ "animationType": "not animatable",
+ "styleDeclaration": [
+ "animation-range-start",
+ "animationRangeStart"
+ ],
+ "syntax": "[ normal | | ? ]#"
+ }
+ ],
+ [
+ "animation-timeline",
+ {
+ "name": "animation-timeline",
+ "href": "https://drafts.csswg.org/css-animations-2/#propdef-animation-timeline",
+ "initial": "auto",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "list, each item either the keyword none, the keyword auto, a case-sensitive css identifier, a computed scroll() function, or a computed view() function",
+ "canonicalOrder": "per grammar",
+ "animationType": "not animatable",
+ "styleDeclaration": [
+ "animation-timeline",
+ "animationTimeline"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "animation-timing-function",
+ {
+ "name": "animation-timing-function",
+ "href": "https://drafts.csswg.org/css-animations-1/#propdef-animation-timing-function",
+ "initial": "ease",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "list, each item a computed ",
+ "canonicalOrder": "per grammar",
+ "animationType": "not animatable",
+ "styleDeclaration": [
+ "animation-timing-function",
+ "animationTimingFunction"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "animation-trigger",
+ {
+ "name": "animation-trigger",
+ "href": "https://drafts.csswg.org/animation-triggers-1/#propdef-animation-trigger",
+ "initial": "none",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "as specified",
+ "canonicalOrder": "per grammar",
+ "animationType": "not animatable",
+ "styleDeclaration": [
+ "animation-trigger",
+ "animationTrigger"
+ ],
+ "syntax": "[ none | [ + ]+ ]#"
+ }
+ ],
+ [
+ "appearance",
+ {
+ "name": "appearance",
+ "href": "https://drafts.csswg.org/css-ui-4/#propdef-appearance",
+ "initial": "none",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "n/a",
+ "computedValue": "specified keyword",
+ "canonicalOrder": "per grammar",
+ "animationType": "discrete",
+ "styleDeclaration": [
+ "appearance"
+ ],
+ "syntax": "none | auto | base | base-select | | | base"
+ }
+ ],
+ [
+ "aspect-ratio",
+ {
+ "name": "aspect-ratio",
+ "href": "https://drafts.csswg.org/css-sizing-4/#propdef-aspect-ratio",
+ "initial": "auto",
+ "appliesTo": "all elements except inline boxes and internal ruby or table boxes",
+ "inherited": "no",
+ "percentages": "n/a",
+ "computedValue": "specified keyword or a pair of numbers",
+ "canonicalOrder": "per grammar",
+ "animationType": "by computed value",
+ "styleDeclaration": [
+ "aspect-ratio",
+ "aspectRatio"
+ ],
+ "syntax": "auto || "
+ }
+ ],
+ [
+ "backdrop-filter",
+ {
+ "name": "backdrop-filter",
+ "href": "https://drafts.csswg.org/filter-effects-2/#propdef-backdrop-filter",
+ "initial": "none",
+ "appliesTo": "All elements. In SVG, it applies to container elements without the defs element and all graphics elements",
+ "inherited": "no",
+ "percentages": "n/a",
+ "computedValue": "as specified",
+ "canonicalOrder": "per grammar",
+ "animationType": "see prose in Filter Effects 1 § 14. Animation of Filters.",
+ "media": "visual",
+ "styleDeclaration": [
+ "backdrop-filter",
+ "backdropFilter"
+ ],
+ "syntax": "none | "
+ }
+ ],
+ [
+ "backface-visibility",
+ {
+ "name": "backface-visibility",
+ "href": "https://drafts.csswg.org/css-transforms-2/#propdef-backface-visibility",
+ "initial": "visible",
+ "appliesTo": "transformable elements",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "specified keyword",
+ "canonicalOrder": "per grammar",
+ "animationType": "discrete",
+ "styleDeclaration": [
+ "backface-visibility",
+ "backfaceVisibility"
+ ],
+ "syntax": "visible | hidden"
+ }
+ ],
+ [
+ "background",
+ {
+ "name": "background",
+ "href": "https://drafts.csswg.org/css-backgrounds-4/#propdef-background",
+ "initial": "see individual properties",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "see individual properties",
+ "computedValue": "see individual properties",
+ "animationType": "see individual properties",
+ "canonicalOrder": "per grammar",
+ "styleDeclaration": [
+ "background"
+ ],
+ "longhands": [
+ "background-image",
+ "background-position",
+ "background-size",
+ "background-repeat",
+ "background-attachment",
+ "background-origin",
+ "background-clip",
+ "background-color"
+ ],
+ "resetLonghands": [
+ "background-blend-mode"
+ ],
+ "syntax": "#? , "
+ }
+ ],
+ [
+ "background-attachment",
+ {
+ "name": "background-attachment",
+ "href": "https://drafts.csswg.org/css-backgrounds-4/#propdef-background-attachment",
+ "initial": "scroll",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "list, each item the keyword as specified",
+ "canonicalOrder": "per grammar",
+ "animationType": "discrete",
+ "styleDeclaration": [
+ "background-attachment",
+ "backgroundAttachment"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "background-blend-mode",
+ {
+ "name": "background-blend-mode",
+ "href": "https://drafts.csswg.org/compositing-2/#propdef-background-blend-mode",
+ "initial": "normal",
+ "appliesTo": "All HTML elements",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "as specified",
+ "canonicalOrder": "per grammar",
+ "animationType": "discrete",
+ "media": "visual",
+ "styleDeclaration": [
+ "background-blend-mode",
+ "backgroundBlendMode"
+ ],
+ "syntax": "<'mix-blend-mode'>#"
+ }
+ ],
+ [
+ "background-clip",
+ {
+ "name": "background-clip",
+ "href": "https://drafts.csswg.org/css-backgrounds-4/#propdef-background-clip",
+ "initial": "border-box",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "n/a",
+ "computedValue": "as specified",
+ "canonicalOrder": "per grammar",
+ "animationType": "repeatable list",
+ "styleDeclaration": [
+ "background-clip",
+ "backgroundClip"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "background-color",
+ {
+ "name": "background-color",
+ "href": "https://drafts.csswg.org/css-backgrounds-4/#propdef-background-color",
+ "initial": "transparent",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "computed color",
+ "canonicalOrder": "per grammar",
+ "animationType": "by computed value",
+ "styleDeclaration": [
+ "background-color",
+ "backgroundColor"
+ ],
+ "syntax": ""
+ }
+ ],
+ [
+ "background-image",
+ {
+ "name": "background-image",
+ "href": "https://drafts.csswg.org/css-backgrounds-4/#propdef-background-image",
+ "initial": "none",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "list, each item either an or the keyword none",
+ "canonicalOrder": "per grammar",
+ "animationType": "discrete",
+ "styleDeclaration": [
+ "background-image",
+ "backgroundImage"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "background-origin",
+ {
+ "name": "background-origin",
+ "href": "https://drafts.csswg.org/css-backgrounds-4/#propdef-background-origin",
+ "initial": "padding-box",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "list, each item a keyword as specified",
+ "canonicalOrder": "per grammar",
+ "animationType": "repeatable list",
+ "styleDeclaration": [
+ "background-origin",
+ "backgroundOrigin"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "background-position",
+ {
+ "name": "background-position",
+ "href": "https://drafts.csswg.org/css-backgrounds-4/#propdef-background-position",
+ "initial": "0% 0%",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "refer to size of background positioning area minus size of background image; see text",
+ "computedValue": "a list, each item a pair of offsets (horizontal and vertical) from the top left origin, each offset given as a computed value",
+ "canonicalOrder": "per grammar",
+ "animationType": "repeatable list",
+ "styleDeclaration": [
+ "background-position",
+ "backgroundPosition"
+ ],
+ "longhands": [
+ "background-position-x",
+ "background-position-y"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "background-position-block",
+ {
+ "name": "background-position-block",
+ "href": "https://drafts.csswg.org/css-backgrounds-4/#propdef-background-position-block",
+ "initial": "0%",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "refer to size of background positioning area minus size of background image",
+ "computedValue": "A list, each item consisting of: an offset given as a computed value, plus an origin keyword",
+ "canonicalOrder": "per grammar",
+ "animationType": "repeatable list",
+ "logicalPropertyGroup": "background-position",
+ "styleDeclaration": [
+ "background-position-block",
+ "backgroundPositionBlock"
+ ],
+ "syntax": "[ center | [ [ start | end ]? ? ]! ]#"
+ }
+ ],
+ [
+ "background-position-inline",
+ {
+ "name": "background-position-inline",
+ "href": "https://drafts.csswg.org/css-backgrounds-4/#propdef-background-position-inline",
+ "initial": "0%",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "refer to inline-size of background positioning area minus inline-size of background image",
+ "computedValue": "A list, each item consisting of: an offset given as a computed value, plus an origin keyword",
+ "canonicalOrder": "per grammar",
+ "animationType": "repeatable list",
+ "logicalPropertyGroup": "background-position",
+ "styleDeclaration": [
+ "background-position-inline",
+ "backgroundPositionInline"
+ ],
+ "syntax": "[ center | [ [ start | end ]? ? ]! ]#"
+ }
+ ],
+ [
+ "background-position-x",
+ {
+ "name": "background-position-x",
+ "href": "https://drafts.csswg.org/css-backgrounds-4/#propdef-background-position-x",
+ "initial": "0%",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "refer to width of background positioning area minus width of background image",
+ "computedValue": "A list, each item consisting of: an offset given as a computed value, plus an origin keyword",
+ "canonicalOrder": "per grammar",
+ "animationType": "repeatable list",
+ "logicalPropertyGroup": "background-position",
+ "styleDeclaration": [
+ "background-position-x",
+ "backgroundPositionX"
+ ],
+ "syntax": "[ center | [ [ left | right | x-start | x-end ]? ? ]! ]#"
+ }
+ ],
+ [
+ "background-position-y",
+ {
+ "name": "background-position-y",
+ "href": "https://drafts.csswg.org/css-backgrounds-4/#propdef-background-position-y",
+ "initial": "0%",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "refer to height of background positioning area minus height of background image",
+ "computedValue": "A list, each item consisting of: an offset given as a computed value, plus an origin keyword",
+ "canonicalOrder": "per grammar",
+ "animationType": "repeatable list",
+ "logicalPropertyGroup": "background-position",
+ "styleDeclaration": [
+ "background-position-y",
+ "backgroundPositionY"
+ ],
+ "syntax": "[ center | [ [ top | bottom | y-start | y-end ]? ? ]! ]#"
+ }
+ ],
+ [
+ "background-repeat",
+ {
+ "name": "background-repeat",
+ "href": "https://drafts.csswg.org/css-backgrounds-4/#propdef-background-repeat",
+ "initial": "repeat",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "list, each item a pair of keywords, one per dimension",
+ "canonicalOrder": "per grammar",
+ "animationType": "discrete",
+ "styleDeclaration": [
+ "background-repeat",
+ "backgroundRepeat"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "background-repeat-block",
+ {
+ "name": "background-repeat-block",
+ "href": "https://drafts.csswg.org/css-backgrounds-4/#propdef-background-repeat-block",
+ "initial": "repeat",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "as specified",
+ "canonicalOrder": "per grammar",
+ "animationType": "discrete",
+ "logicalPropertyGroup": "background-repeat",
+ "styleDeclaration": [
+ "background-repeat-block",
+ "backgroundRepeatBlock"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "background-repeat-inline",
+ {
+ "name": "background-repeat-inline",
+ "href": "https://drafts.csswg.org/css-backgrounds-4/#propdef-background-repeat-inline",
+ "initial": "repeat",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "as specified",
+ "canonicalOrder": "per grammar",
+ "animationType": "discrete",
+ "logicalPropertyGroup": "background-repeat",
+ "styleDeclaration": [
+ "background-repeat-inline",
+ "backgroundRepeatInline"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "background-repeat-x",
+ {
+ "name": "background-repeat-x",
+ "href": "https://drafts.csswg.org/css-backgrounds-4/#propdef-background-repeat-x",
+ "initial": "repeat",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "as specified",
+ "canonicalOrder": "per grammar",
+ "animationType": "discrete",
+ "logicalPropertyGroup": "background-repeat",
+ "styleDeclaration": [
+ "background-repeat-x",
+ "backgroundRepeatX"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "background-repeat-y",
+ {
+ "name": "background-repeat-y",
+ "href": "https://drafts.csswg.org/css-backgrounds-4/#propdef-background-repeat-y",
+ "initial": "repeat",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "as specified",
+ "canonicalOrder": "per grammar",
+ "animationType": "discrete",
+ "logicalPropertyGroup": "background-repeat",
+ "styleDeclaration": [
+ "background-repeat-y",
+ "backgroundRepeatY"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "background-size",
+ {
+ "name": "background-size",
+ "href": "https://drafts.csswg.org/css-backgrounds-4/#propdef-background-size",
+ "initial": "auto",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "see text",
+ "computedValue": "list, each item a pair of sizes (one per axis) each represented as either a keyword or a computed value",
+ "canonicalOrder": "per grammar",
+ "animationType": "repeatable list",
+ "styleDeclaration": [
+ "background-size",
+ "backgroundSize"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "background-tbd",
+ {
+ "name": "background-tbd",
+ "href": "https://drafts.csswg.org/css-backgrounds-4/#propdef-background-tbd",
+ "initial": "see individual properties",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "see individual properties",
+ "computedValue": "see individual properties",
+ "canonicalOrder": "per grammar",
+ "animationType": "see individual properties",
+ "styleDeclaration": [
+ "background-tbd",
+ "backgroundTbd"
+ ],
+ "syntax": "#"
+ }
+ ],
+ [
+ "baseline-shift",
+ {
+ "name": "baseline-shift",
+ "href": "https://drafts.csswg.org/css-inline-3/#propdef-baseline-shift",
+ "initial": "0",
+ "appliesTo": "inline-level boxes and SVG text content elements",
+ "inherited": "no",
+ "percentages": "refer to the used value of line-height",
+ "computedValue": "the specified keyword or a computed value",
+ "canonicalOrder": "per grammar",
+ "animationType": "by computed value type",
+ "styleDeclaration": [
+ "baseline-shift",
+ "baselineShift"
+ ],
+ "syntax": " | sub | super | top | center | bottom"
+ }
+ ],
+ [
+ "baseline-source",
+ {
+ "name": "baseline-source",
+ "href": "https://drafts.csswg.org/css-inline-3/#propdef-baseline-source",
+ "initial": "auto",
+ "appliesTo": "inline-level boxes",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "specified keyword",
+ "canonicalOrder": "per grammar",
+ "animationType": "discrete",
+ "styleDeclaration": [
+ "baseline-source",
+ "baselineSource"
+ ],
+ "syntax": "auto | first | last"
+ }
+ ],
+ [
+ "block-ellipsis",
+ {
+ "name": "block-ellipsis",
+ "href": "https://drafts.csswg.org/css-overflow-4/#propdef-block-ellipsis",
+ "initial": "no-ellipsis",
+ "appliesTo": "block containers",
+ "inherited": "yes",
+ "percentages": "N/A",
+ "computedValue": "specified value",
+ "canonicalOrder": "per grammar",
+ "animationType": "discrete",
+ "styleDeclaration": [
+ "block-ellipsis",
+ "blockEllipsis"
+ ],
+ "syntax": "no-ellipsis | auto | "
+ }
+ ],
+ [
+ "block-size",
+ {
+ "name": "block-size",
+ "href": "https://drafts.csswg.org/css-logical-1/#propdef-block-size",
+ "initial": "auto",
+ "appliesTo": "Same as height and width",
+ "inherited": "no",
+ "percentages": "As for the corresponding physical property",
+ "computedValue": "Same as height, width",
+ "canonicalOrder": "per grammar",
+ "animationType": "by computed value type",
+ "logicalPropertyGroup": "size",
+ "styleDeclaration": [
+ "block-size",
+ "blockSize"
+ ],
+ "syntax": "<'width'>"
+ }
+ ],
+ [
+ "block-step",
+ {
+ "name": "block-step",
+ "href": "https://drafts.csswg.org/css-rhythm-1/#propdef-block-step",
+ "initial": "see individual properties",
+ "appliesTo": "block-level boxes",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "see individual properties",
+ "animationType": "see individual properties",
+ "canonicalOrder": "per grammar",
+ "styleDeclaration": [
+ "block-step",
+ "blockStep"
+ ],
+ "longhands": [
+ "block-step-size",
+ "block-step-insert",
+ "block-step-align",
+ "block-step-round"
+ ],
+ "syntax": "<'block-step-size'> || <'block-step-insert'> || <'block-step-align'> || <'block-step-round'>"
+ }
+ ],
+ [
+ "block-step-align",
+ {
+ "name": "block-step-align",
+ "href": "https://drafts.csswg.org/css-rhythm-1/#propdef-block-step-align",
+ "initial": "auto",
+ "appliesTo": "block-level boxes",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "specified keyword",
+ "canonicalOrder": "per grammar",
+ "animationType": "discrete",
+ "styleDeclaration": [
+ "block-step-align",
+ "blockStepAlign"
+ ],
+ "syntax": "auto | center | start | end"
+ }
+ ],
+ [
+ "block-step-insert",
+ {
+ "name": "block-step-insert",
+ "href": "https://drafts.csswg.org/css-rhythm-1/#propdef-block-step-insert",
+ "initial": "margin-box",
+ "appliesTo": "block-level boxes",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "specified keyword",
+ "canonicalOrder": "per grammar",
+ "animationType": "discrete",
+ "styleDeclaration": [
+ "block-step-insert",
+ "blockStepInsert"
+ ],
+ "syntax": "margin-box | padding-box | content-box"
+ }
+ ],
+ [
+ "block-step-round",
+ {
+ "name": "block-step-round",
+ "href": "https://drafts.csswg.org/css-rhythm-1/#propdef-block-step-round",
+ "initial": "up",
+ "appliesTo": "block-level boxes",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "specified keyword",
+ "canonicalOrder": "per grammar",
+ "animationType": "discrete",
+ "styleDeclaration": [
+ "block-step-round",
+ "blockStepRound"
+ ],
+ "syntax": "up | down | nearest"
+ }
+ ],
+ [
+ "block-step-size",
+ {
+ "name": "block-step-size",
+ "href": "https://drafts.csswg.org/css-rhythm-1/#propdef-block-step-size",
+ "initial": "none",
+ "appliesTo": "block-level boxes",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "specified keyword or absolute length",
+ "canonicalOrder": "per grammar",
+ "animationType": "by computed value type",
+ "styleDeclaration": [
+ "block-step-size",
+ "blockStepSize"
+ ],
+ "syntax": "none | "
+ }
+ ],
+ [
+ "bookmark-label",
+ {
+ "name": "bookmark-label",
+ "href": "https://drafts.csswg.org/css-content-3/#propdef-bookmark-label",
+ "initial": "content(text)",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "specified value",
+ "canonicalOrder": "per grammar",
+ "animationType": "discrete",
+ "styleDeclaration": [
+ "bookmark-label",
+ "bookmarkLabel"
+ ],
+ "syntax": ""
+ }
+ ],
+ [
+ "bookmark-level",
+ {
+ "name": "bookmark-level",
+ "href": "https://drafts.csswg.org/css-content-3/#propdef-bookmark-level",
+ "initial": "none",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "the keyword none or the specified integer",
+ "canonicalOrder": "per grammar",
+ "animationType": "by computed value type",
+ "styleDeclaration": [
+ "bookmark-level",
+ "bookmarkLevel"
+ ],
+ "syntax": "none | "
+ }
+ ],
+ [
+ "bookmark-state",
+ {
+ "name": "bookmark-state",
+ "href": "https://drafts.csswg.org/css-content-3/#propdef-bookmark-state",
+ "initial": "open",
+ "appliesTo": "block-level elements",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "specified keyword",
+ "canonicalOrder": "per grammar",
+ "animationType": "discrete",
+ "styleDeclaration": [
+ "bookmark-state",
+ "bookmarkState"
+ ],
+ "syntax": "open | closed"
+ }
+ ],
+ [
+ "border",
+ {
+ "name": "border",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border",
+ "initial": "see individual properties",
+ "appliesTo": "see individual properties",
+ "inherited": "see individual properties",
+ "percentages": "see individual properties",
+ "computedValue": "see individual properties",
+ "animationType": "see individual properties",
+ "canonicalOrder": "per grammar",
+ "styleDeclaration": [
+ "border"
+ ],
+ "longhands": [
+ "border-width",
+ "border-style",
+ "border-color"
+ ],
+ "resetLonghands": [
+ "border-image"
+ ],
+ "syntax": " || || "
+ }
+ ],
+ [
+ "border-block",
+ {
+ "name": "border-block",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-block",
+ "initial": "see individual properties",
+ "appliesTo": "see individual properties",
+ "inherited": "see individual properties",
+ "percentages": "see individual properties",
+ "computedValue": "see individual properties",
+ "animationType": "see individual properties",
+ "canonicalOrder": "per grammar",
+ "styleDeclaration": [
+ "border-block",
+ "borderBlock"
+ ],
+ "longhands": [
+ "border-block-start",
+ "border-block-end"
+ ],
+ "syntax": "<'border-block-start'>"
+ }
+ ],
+ [
+ "border-block-clip",
+ {
+ "name": "border-block-clip",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-block-clip",
+ "initial": "see individual properties",
+ "appliesTo": "see individual properties",
+ "inherited": "see individual properties",
+ "percentages": "see individual properties",
+ "computedValue": "see individual properties",
+ "animationType": "see individual properties",
+ "canonicalOrder": "per grammar",
+ "styleDeclaration": [
+ "border-block-clip",
+ "borderBlockClip"
+ ],
+ "longhands": [
+ "border-block-start-clip",
+ "border-block-end-clip"
+ ],
+ "syntax": "<'border-top-clip'>"
+ }
+ ],
+ [
+ "border-block-color",
+ {
+ "name": "border-block-color",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-block-color",
+ "initial": "see individual properties",
+ "appliesTo": "see individual properties",
+ "inherited": "see individual properties",
+ "percentages": "see individual properties",
+ "computedValue": "see individual properties",
+ "animationType": "see individual properties",
+ "canonicalOrder": "per grammar",
+ "styleDeclaration": [
+ "border-block-color",
+ "borderBlockColor"
+ ],
+ "longhands": [
+ "border-block-start-color",
+ "border-block-end-color"
+ ],
+ "syntax": "<'border-top-color'>{1,2}"
+ }
+ ],
+ [
+ "border-block-end",
+ {
+ "name": "border-block-end",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-block-end",
+ "initial": "See individual properties",
+ "appliesTo": "all elements except ruby base containers and ruby annotation containers",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "see individual properties",
+ "animationType": "see individual properties",
+ "canonicalOrder": "per grammar",
+ "styleDeclaration": [
+ "border-block-end",
+ "borderBlockEnd"
+ ],
+ "longhands": [
+ "border-block-end-width",
+ "border-block-end-style",
+ "border-block-end-color"
+ ],
+ "syntax": " || || "
+ }
+ ],
+ [
+ "border-block-end-clip",
+ {
+ "name": "border-block-end-clip",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-block-end-clip",
+ "initial": "none",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "refer to length of border-edge side",
+ "computedValue": "none, or a list consisting of absolute lengths, or percentages as specified",
+ "canonicalOrder": "per grammar",
+ "animationType": "by computed value",
+ "logicalPropertyGroup": "border-clip",
+ "styleDeclaration": [
+ "border-block-end-clip",
+ "borderBlockEndClip"
+ ],
+ "syntax": "none | [ | ]+"
+ }
+ ],
+ [
+ "border-block-end-color",
+ {
+ "name": "border-block-end-color",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-block-end-color",
+ "initial": "currentcolor",
+ "appliesTo": "all elements except ruby base containers and ruby annotation containers",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "the computed color and/or a one-dimensional image function",
+ "canonicalOrder": "per grammar",
+ "animationType": "see prose",
+ "logicalPropertyGroup": "border-color",
+ "styleDeclaration": [
+ "border-block-end-color",
+ "borderBlockEndColor"
+ ],
+ "syntax": " | "
+ }
+ ],
+ [
+ "border-block-end-radius",
+ {
+ "name": "border-block-end-radius",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-block-end-radius",
+ "initial": "0",
+ "appliesTo": "all elements (but see prose)",
+ "inherited": "no",
+ "percentages": "Refer to corresponding dimension of the border box.",
+ "computedValue": "see individual properties",
+ "animationType": "see individual properties",
+ "canonicalOrder": "per grammar",
+ "styleDeclaration": [
+ "border-block-end-radius",
+ "borderBlockEndRadius"
+ ],
+ "longhands": [
+ "border-end-start-radius",
+ "border-end-end-radius"
+ ],
+ "syntax": "{1,2} [ / {1,2} ]?"
+ }
+ ],
+ [
+ "border-block-end-style",
+ {
+ "name": "border-block-end-style",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-block-end-style",
+ "initial": "none",
+ "appliesTo": "all elements except ruby base containers and ruby annotation containers",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "specified keyword",
+ "canonicalOrder": "per grammar",
+ "animationType": "discrete",
+ "logicalPropertyGroup": "border-style",
+ "styleDeclaration": [
+ "border-block-end-style",
+ "borderBlockEndStyle"
+ ],
+ "syntax": ""
+ }
+ ],
+ [
+ "border-block-end-width",
+ {
+ "name": "border-block-end-width",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-block-end-width",
+ "initial": "medium",
+ "appliesTo": "all elements except ruby base containers and ruby annotation containers",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "absolute length, snapped as a border width",
+ "canonicalOrder": "per grammar",
+ "animationType": "by computed value",
+ "logicalPropertyGroup": "border-width",
+ "styleDeclaration": [
+ "border-block-end-width",
+ "borderBlockEndWidth"
+ ],
+ "syntax": ""
+ }
+ ],
+ [
+ "border-block-start",
+ {
+ "name": "border-block-start",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-block-start",
+ "initial": "See individual properties",
+ "appliesTo": "all elements except ruby base containers and ruby annotation containers",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "see individual properties",
+ "animationType": "see individual properties",
+ "canonicalOrder": "per grammar",
+ "styleDeclaration": [
+ "border-block-start",
+ "borderBlockStart"
+ ],
+ "longhands": [
+ "border-block-start-width",
+ "border-block-start-style",
+ "border-block-start-color"
+ ],
+ "syntax": " || || "
+ }
+ ],
+ [
+ "border-block-start-clip",
+ {
+ "name": "border-block-start-clip",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-block-start-clip",
+ "initial": "none",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "refer to length of border-edge side",
+ "computedValue": "none, or a list consisting of absolute lengths, or percentages as specified",
+ "canonicalOrder": "per grammar",
+ "animationType": "by computed value",
+ "logicalPropertyGroup": "border-clip",
+ "styleDeclaration": [
+ "border-block-start-clip",
+ "borderBlockStartClip"
+ ],
+ "syntax": "none | [ | ]+"
+ }
+ ],
+ [
+ "border-block-start-color",
+ {
+ "name": "border-block-start-color",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-block-start-color",
+ "initial": "currentcolor",
+ "appliesTo": "all elements except ruby base containers and ruby annotation containers",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "the computed color and/or a one-dimensional image function",
+ "canonicalOrder": "per grammar",
+ "animationType": "see prose",
+ "logicalPropertyGroup": "border-color",
+ "styleDeclaration": [
+ "border-block-start-color",
+ "borderBlockStartColor"
+ ],
+ "syntax": " | "
+ }
+ ],
+ [
+ "border-block-start-radius",
+ {
+ "name": "border-block-start-radius",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-block-start-radius",
+ "initial": "0",
+ "appliesTo": "all elements (but see prose)",
+ "inherited": "no",
+ "percentages": "Refer to corresponding dimension of the border box.",
+ "computedValue": "see individual properties",
+ "animationType": "see individual properties",
+ "canonicalOrder": "per grammar",
+ "styleDeclaration": [
+ "border-block-start-radius",
+ "borderBlockStartRadius"
+ ],
+ "longhands": [
+ "border-start-start-radius",
+ "border-start-end-radius"
+ ],
+ "syntax": "{1,2} [ / {1,2} ]?"
+ }
+ ],
+ [
+ "border-block-start-style",
+ {
+ "name": "border-block-start-style",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-block-start-style",
+ "initial": "none",
+ "appliesTo": "all elements except ruby base containers and ruby annotation containers",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "specified keyword",
+ "canonicalOrder": "per grammar",
+ "animationType": "discrete",
+ "logicalPropertyGroup": "border-style",
+ "styleDeclaration": [
+ "border-block-start-style",
+ "borderBlockStartStyle"
+ ],
+ "syntax": ""
+ }
+ ],
+ [
+ "border-block-start-width",
+ {
+ "name": "border-block-start-width",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-block-start-width",
+ "initial": "medium",
+ "appliesTo": "all elements except ruby base containers and ruby annotation containers",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "absolute length, snapped as a border width",
+ "canonicalOrder": "per grammar",
+ "animationType": "by computed value",
+ "logicalPropertyGroup": "border-width",
+ "styleDeclaration": [
+ "border-block-start-width",
+ "borderBlockStartWidth"
+ ],
+ "syntax": ""
+ }
+ ],
+ [
+ "border-block-style",
+ {
+ "name": "border-block-style",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-block-style",
+ "initial": "see individual properties",
+ "appliesTo": "see individual properties",
+ "inherited": "see individual properties",
+ "percentages": "see individual properties",
+ "computedValue": "see individual properties",
+ "animationType": "see individual properties",
+ "canonicalOrder": "per grammar",
+ "styleDeclaration": [
+ "border-block-style",
+ "borderBlockStyle"
+ ],
+ "longhands": [
+ "border-block-start-style",
+ "border-block-end-style"
+ ],
+ "syntax": "<'border-top-style'>{1,2}"
+ }
+ ],
+ [
+ "border-block-width",
+ {
+ "name": "border-block-width",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-block-width",
+ "initial": "see individual properties",
+ "appliesTo": "see individual properties",
+ "inherited": "see individual properties",
+ "percentages": "see individual properties",
+ "computedValue": "see individual properties",
+ "animationType": "see individual properties",
+ "canonicalOrder": "per grammar",
+ "styleDeclaration": [
+ "border-block-width",
+ "borderBlockWidth"
+ ],
+ "longhands": [
+ "border-block-start-width",
+ "border-block-end-width"
+ ],
+ "syntax": "<'border-top-width'>{1,2}"
+ }
+ ],
+ [
+ "border-bottom",
+ {
+ "name": "border-bottom",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-bottom",
+ "initial": "See individual properties",
+ "appliesTo": "all elements except ruby base containers and ruby annotation containers",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "see individual properties",
+ "animationType": "see individual properties",
+ "canonicalOrder": "per grammar",
+ "styleDeclaration": [
+ "border-bottom",
+ "borderBottom"
+ ],
+ "longhands": [
+ "border-bottom-width",
+ "border-bottom-style",
+ "border-bottom-color"
+ ],
+ "syntax": " || || "
+ }
+ ],
+ [
+ "border-bottom-clip",
+ {
+ "name": "border-bottom-clip",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-bottom-clip",
+ "initial": "none",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "refer to length of border-edge side",
+ "computedValue": "none, or a list consisting of absolute lengths, or percentages as specified",
+ "canonicalOrder": "per grammar",
+ "animationType": "by computed value",
+ "logicalPropertyGroup": "border-clip",
+ "styleDeclaration": [
+ "border-bottom-clip",
+ "borderBottomClip"
+ ],
+ "syntax": "none | [ | ]+"
+ }
+ ],
+ [
+ "border-bottom-color",
+ {
+ "name": "border-bottom-color",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-bottom-color",
+ "initial": "currentcolor",
+ "appliesTo": "all elements except ruby base containers and ruby annotation containers",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "the computed color and/or a one-dimensional image function",
+ "canonicalOrder": "per grammar",
+ "animationType": "see prose",
+ "logicalPropertyGroup": "border-color",
+ "styleDeclaration": [
+ "border-bottom-color",
+ "borderBottomColor"
+ ],
+ "syntax": " | "
+ }
+ ],
+ [
+ "border-bottom-left-radius",
+ {
+ "name": "border-bottom-left-radius",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-bottom-left-radius",
+ "initial": "0",
+ "appliesTo": "all elements (but see prose)",
+ "inherited": "no",
+ "percentages": "Refer to corresponding dimension of the border box.",
+ "computedValue": "pair of computed values",
+ "canonicalOrder": "per grammar",
+ "animationType": "by computed value",
+ "logicalPropertyGroup": "border-radius",
+ "styleDeclaration": [
+ "border-bottom-left-radius",
+ "borderBottomLeftRadius"
+ ],
+ "syntax": ""
+ }
+ ],
+ [
+ "border-bottom-radius",
+ {
+ "name": "border-bottom-radius",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-bottom-radius",
+ "initial": "0",
+ "appliesTo": "all elements (but see prose)",
+ "inherited": "no",
+ "percentages": "Refer to corresponding dimension of the border box.",
+ "computedValue": "see individual properties",
+ "animationType": "see individual properties",
+ "canonicalOrder": "per grammar",
+ "styleDeclaration": [
+ "border-bottom-radius",
+ "borderBottomRadius"
+ ],
+ "longhands": [
+ "border-bottom-left-radius",
+ "border-bottom-right-radius"
+ ],
+ "syntax": "{1,2} [ / {1,2} ]?"
+ }
+ ],
+ [
+ "border-bottom-right-radius",
+ {
+ "name": "border-bottom-right-radius",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-bottom-right-radius",
+ "initial": "0",
+ "appliesTo": "all elements (but see prose)",
+ "inherited": "no",
+ "percentages": "Refer to corresponding dimension of the border box.",
+ "computedValue": "pair of computed values",
+ "canonicalOrder": "per grammar",
+ "animationType": "by computed value",
+ "logicalPropertyGroup": "border-radius",
+ "styleDeclaration": [
+ "border-bottom-right-radius",
+ "borderBottomRightRadius"
+ ],
+ "syntax": ""
+ }
+ ],
+ [
+ "border-bottom-style",
+ {
+ "name": "border-bottom-style",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-bottom-style",
+ "initial": "none",
+ "appliesTo": "all elements except ruby base containers and ruby annotation containers",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "specified keyword",
+ "canonicalOrder": "per grammar",
+ "animationType": "discrete",
+ "logicalPropertyGroup": "border-style",
+ "styleDeclaration": [
+ "border-bottom-style",
+ "borderBottomStyle"
+ ],
+ "syntax": ""
+ }
+ ],
+ [
+ "border-bottom-width",
+ {
+ "name": "border-bottom-width",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-bottom-width",
+ "initial": "medium",
+ "appliesTo": "all elements except ruby base containers and ruby annotation containers",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "absolute length, snapped as a border width",
+ "canonicalOrder": "per grammar",
+ "animationType": "by computed value",
+ "logicalPropertyGroup": "border-width",
+ "styleDeclaration": [
+ "border-bottom-width",
+ "borderBottomWidth"
+ ],
+ "syntax": ""
+ }
+ ],
+ [
+ "border-boundary",
+ {
+ "name": "border-boundary",
+ "href": "https://drafts.csswg.org/css-round-display-1/#propdef-border-boundary",
+ "initial": "none",
+ "appliesTo": "all elements",
+ "inherited": "yes",
+ "percentages": "n/a",
+ "computedValue": "specified keyword",
+ "canonicalOrder": "per grammar",
+ "animationType": "discrete",
+ "styleDeclaration": [
+ "border-boundary",
+ "borderBoundary"
+ ],
+ "syntax": "none | parent | display"
+ }
+ ],
+ [
+ "border-clip",
+ {
+ "name": "border-clip",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-clip",
+ "initial": "see individual properties",
+ "appliesTo": "see individual properties",
+ "inherited": "see individual properties",
+ "percentages": "see individual properties",
+ "computedValue": "see individual properties",
+ "animationType": "see individual properties",
+ "canonicalOrder": "per grammar",
+ "styleDeclaration": [
+ "border-clip",
+ "borderClip"
+ ],
+ "longhands": [
+ "border-top-clip",
+ "border-right-clip",
+ "border-bottom-clip",
+ "border-left-clip"
+ ],
+ "syntax": "<'border-top-clip'>"
+ }
+ ],
+ [
+ "border-collapse",
+ {
+ "name": "border-collapse",
+ "href": "https://drafts.csswg.org/css-tables-3/#propdef-border-collapse",
+ "initial": "separate",
+ "appliesTo": "table grid boxes",
+ "inherited": "yes",
+ "percentages": "n/a",
+ "computedValue": "specified keyword",
+ "canonicalOrder": "per grammar",
+ "animationType": "discrete",
+ "styleDeclaration": [
+ "border-collapse",
+ "borderCollapse"
+ ],
+ "syntax": "separate | collapse"
+ }
+ ],
+ [
+ "border-color",
+ {
+ "name": "border-color",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-color",
+ "initial": "see individual properties",
+ "appliesTo": "see individual properties",
+ "inherited": "see individual properties",
+ "percentages": "see individual properties",
+ "computedValue": "see individual properties",
+ "animationType": "see individual properties",
+ "canonicalOrder": "per grammar",
+ "styleDeclaration": [
+ "border-color",
+ "borderColor"
+ ],
+ "longhands": [
+ "border-top-color",
+ "border-right-color",
+ "border-bottom-color",
+ "border-left-color"
+ ],
+ "syntax": "[ | ]{1,4}"
+ }
+ ],
+ [
+ "border-end-end-radius",
+ {
+ "name": "border-end-end-radius",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-end-end-radius",
+ "initial": "0",
+ "appliesTo": "all elements (but see prose)",
+ "inherited": "no",
+ "percentages": "Refer to corresponding dimension of the border box.",
+ "computedValue": "pair of computed values",
+ "canonicalOrder": "per grammar",
+ "animationType": "by computed value",
+ "logicalPropertyGroup": "border-radius",
+ "styleDeclaration": [
+ "border-end-end-radius",
+ "borderEndEndRadius"
+ ],
+ "syntax": ""
+ }
+ ],
+ [
+ "border-end-start-radius",
+ {
+ "name": "border-end-start-radius",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-end-start-radius",
+ "initial": "0",
+ "appliesTo": "all elements (but see prose)",
+ "inherited": "no",
+ "percentages": "Refer to corresponding dimension of the border box.",
+ "computedValue": "pair of computed values",
+ "canonicalOrder": "per grammar",
+ "animationType": "by computed value",
+ "logicalPropertyGroup": "border-radius",
+ "styleDeclaration": [
+ "border-end-start-radius",
+ "borderEndStartRadius"
+ ],
+ "syntax": ""
+ }
+ ],
+ [
+ "border-image",
+ {
+ "name": "border-image",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-image",
+ "initial": "See individual properties",
+ "appliesTo": "See individual properties",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "See individual properties",
+ "canonicalOrder": "per grammar",
+ "animationType": "See individual properties",
+ "styleDeclaration": [
+ "border-image",
+ "borderImage"
+ ],
+ "longhands": [
+ "border-image-source",
+ "border-image-slice",
+ "border-image-width",
+ "border-image-outset",
+ "border-image-repeat"
+ ],
+ "syntax": "<'border-image-source'> || <'border-image-slice'> [ / <'border-image-width'> | / <'border-image-width'>? / <'border-image-outset'> ]? || <'border-image-repeat'>"
+ }
+ ],
+ [
+ "border-image-outset",
+ {
+ "name": "border-image-outset",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-image-outset",
+ "initial": "0",
+ "appliesTo": "All elements, except internal table elements when border-collapse is collapse",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "four values, each a number or absolute length",
+ "canonicalOrder": "per grammar",
+ "animationType": "by computed value",
+ "styleDeclaration": [
+ "border-image-outset",
+ "borderImageOutset"
+ ],
+ "syntax": "[ | ]{1,4}"
+ }
+ ],
+ [
+ "border-image-repeat",
+ {
+ "name": "border-image-repeat",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-image-repeat",
+ "initial": "stretch",
+ "appliesTo": "All elements, except internal table elements when border-collapse is collapse",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "two keywords, one per axis",
+ "canonicalOrder": "per grammar",
+ "animationType": "discrete",
+ "styleDeclaration": [
+ "border-image-repeat",
+ "borderImageRepeat"
+ ],
+ "syntax": "[ stretch | repeat | round | space ]{1,2}"
+ }
+ ],
+ [
+ "border-image-slice",
+ {
+ "name": "border-image-slice",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-image-slice",
+ "initial": "100%",
+ "appliesTo": "All elements, except internal table elements when border-collapse is collapse",
+ "inherited": "no",
+ "percentages": "refer to size of the border image",
+ "computedValue": "four values, each either a number or percentage; plus a fill keyword if specified",
+ "canonicalOrder": "per grammar",
+ "animationType": "by computed value",
+ "styleDeclaration": [
+ "border-image-slice",
+ "borderImageSlice"
+ ],
+ "syntax": "[ | ]{1,4} && fill?"
+ }
+ ],
+ [
+ "border-image-source",
+ {
+ "name": "border-image-source",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-image-source",
+ "initial": "none",
+ "appliesTo": "All elements, except internal table elements when border-collapse is collapse",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "the keyword none or the computed ",
+ "canonicalOrder": "per grammar",
+ "animationType": "discrete",
+ "styleDeclaration": [
+ "border-image-source",
+ "borderImageSource"
+ ],
+ "syntax": "none | "
+ }
+ ],
+ [
+ "border-image-width",
+ {
+ "name": "border-image-width",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-image-width",
+ "initial": "1",
+ "appliesTo": "All elements, except internal table elements when border-collapse is collapse",
+ "inherited": "no",
+ "percentages": "Relative to width/height of the border image area",
+ "computedValue": "four values, each either a number, the keyword auto, or a computed value",
+ "canonicalOrder": "per grammar",
+ "animationType": "by computed value",
+ "styleDeclaration": [
+ "border-image-width",
+ "borderImageWidth"
+ ],
+ "syntax": "[ | | auto ]{1,4}"
+ }
+ ],
+ [
+ "border-inline",
+ {
+ "name": "border-inline",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-inline",
+ "initial": "see individual properties",
+ "appliesTo": "see individual properties",
+ "inherited": "see individual properties",
+ "percentages": "see individual properties",
+ "computedValue": "see individual properties",
+ "animationType": "see individual properties",
+ "canonicalOrder": "per grammar",
+ "styleDeclaration": [
+ "border-inline",
+ "borderInline"
+ ],
+ "longhands": [
+ "border-inline-start",
+ "border-inline-end"
+ ],
+ "syntax": "<'border-block-start'>"
+ }
+ ],
+ [
+ "border-inline-clip",
+ {
+ "name": "border-inline-clip",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-inline-clip",
+ "initial": "see individual properties",
+ "appliesTo": "see individual properties",
+ "inherited": "see individual properties",
+ "percentages": "see individual properties",
+ "computedValue": "see individual properties",
+ "animationType": "see individual properties",
+ "canonicalOrder": "per grammar",
+ "styleDeclaration": [
+ "border-inline-clip",
+ "borderInlineClip"
+ ],
+ "longhands": [
+ "border-inline-start-clip",
+ "border-inline-end-clip"
+ ],
+ "syntax": "<'border-top-clip'>"
+ }
+ ],
+ [
+ "border-inline-color",
+ {
+ "name": "border-inline-color",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-inline-color",
+ "initial": "see individual properties",
+ "appliesTo": "see individual properties",
+ "inherited": "see individual properties",
+ "percentages": "see individual properties",
+ "computedValue": "see individual properties",
+ "animationType": "see individual properties",
+ "canonicalOrder": "per grammar",
+ "styleDeclaration": [
+ "border-inline-color",
+ "borderInlineColor"
+ ],
+ "longhands": [
+ "border-inline-start-color",
+ "border-inline-end-color"
+ ],
+ "syntax": "<'border-top-color'>{1,2}"
+ }
+ ],
+ [
+ "border-inline-end",
+ {
+ "name": "border-inline-end",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-inline-end",
+ "initial": "See individual properties",
+ "appliesTo": "all elements except ruby base containers and ruby annotation containers",
+ "inherited": "no",
+ "percentages": "N/A",
+ "computedValue": "see individual properties",
+ "animationType": "see individual properties",
+ "canonicalOrder": "per grammar",
+ "styleDeclaration": [
+ "border-inline-end",
+ "borderInlineEnd"
+ ],
+ "longhands": [
+ "border-inline-end-width",
+ "border-inline-end-style",
+ "border-inline-end-color"
+ ],
+ "syntax": " || || "
+ }
+ ],
+ [
+ "border-inline-end-clip",
+ {
+ "name": "border-inline-end-clip",
+ "href": "https://drafts.csswg.org/css-borders-4/#propdef-border-inline-end-clip",
+ "initial": "none",
+ "appliesTo": "all elements",
+ "inherited": "no",
+ "percentages": "refer to length of border-edge side",
+ "computedValue": "none, or a list consisting of absolute lengths, or percentages as specified",
+ "canonicalOrder": "per grammar",
+ "animationType": "by computed value",
+ "logicalPropertyGroup": "border-clip",
+ "styleDeclaration": [
+ "border-inline-end-clip",
+ "borderInlineEndClip"
+ ],
+ "syntax": "none | [