intl-messageformat
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -259,6 +259,8 @@ (function() { | ||
var intl$messageformat$parser$$default = (function() { | ||
"use strict"; | ||
/* | ||
* Generated by PEG.js 0.8.0. | ||
* Generated by PEG.js 0.9.0. | ||
* | ||
* http://pegjs.majda.cz/ | ||
* http://pegjs.org/ | ||
*/ | ||
@@ -272,17 +274,19 @@ | ||
function SyntaxError(message, expected, found, offset, line, column) { | ||
function peg$SyntaxError(message, expected, found, location) { | ||
this.message = message; | ||
this.expected = expected; | ||
this.found = found; | ||
this.offset = offset; | ||
this.line = line; | ||
this.column = column; | ||
this.location = location; | ||
this.name = "SyntaxError"; | ||
this.name = "SyntaxError"; | ||
if (typeof Error.captureStackTrace === "function") { | ||
Error.captureStackTrace(this, peg$SyntaxError); | ||
} | ||
} | ||
peg$subclass(SyntaxError, Error); | ||
peg$subclass(peg$SyntaxError, Error); | ||
function parse(input) { | ||
function peg$parse(input) { | ||
var options = arguments.length > 1 ? arguments[1] : {}, | ||
parser = this, | ||
@@ -294,11 +298,10 @@ peg$FAILED = {}, | ||
peg$c0 = [], | ||
peg$c1 = function(elements) { | ||
peg$c0 = function(elements) { | ||
return { | ||
type : 'messageFormatPattern', | ||
elements: elements | ||
elements: elements, | ||
location: location() | ||
}; | ||
}, | ||
peg$c2 = peg$FAILED, | ||
peg$c3 = function(text) { | ||
peg$c1 = function(text) { | ||
var string = '', | ||
@@ -317,39 +320,41 @@ i, j, outerLen, inner, innerLen; | ||
}, | ||
peg$c4 = function(messageText) { | ||
peg$c2 = function(messageText) { | ||
return { | ||
type : 'messageTextElement', | ||
value: messageText | ||
value: messageText, | ||
location: location() | ||
}; | ||
}, | ||
peg$c5 = /^[^ \t\n\r,.+={}#]/, | ||
peg$c6 = { type: "class", value: "[^ \\t\\n\\r,.+={}#]", description: "[^ \\t\\n\\r,.+={}#]" }, | ||
peg$c7 = "{", | ||
peg$c8 = { type: "literal", value: "{", description: "\"{\"" }, | ||
peg$c9 = null, | ||
peg$c10 = ",", | ||
peg$c11 = { type: "literal", value: ",", description: "\",\"" }, | ||
peg$c12 = "}", | ||
peg$c13 = { type: "literal", value: "}", description: "\"}\"" }, | ||
peg$c14 = function(id, format) { | ||
peg$c3 = /^[^ \t\n\r,.+={}#]/, | ||
peg$c4 = { type: "class", value: "[^ \\t\\n\\r,.+={}#]", description: "[^ \\t\\n\\r,.+={}#]" }, | ||
peg$c5 = "{", | ||
peg$c6 = { type: "literal", value: "{", description: "\"{\"" }, | ||
peg$c7 = ",", | ||
peg$c8 = { type: "literal", value: ",", description: "\",\"" }, | ||
peg$c9 = "}", | ||
peg$c10 = { type: "literal", value: "}", description: "\"}\"" }, | ||
peg$c11 = function(id, format) { | ||
return { | ||
type : 'argumentElement', | ||
id : id, | ||
format: format && format[2] | ||
format: format && format[2], | ||
location: location() | ||
}; | ||
}, | ||
peg$c15 = "number", | ||
peg$c16 = { type: "literal", value: "number", description: "\"number\"" }, | ||
peg$c17 = "date", | ||
peg$c18 = { type: "literal", value: "date", description: "\"date\"" }, | ||
peg$c19 = "time", | ||
peg$c20 = { type: "literal", value: "time", description: "\"time\"" }, | ||
peg$c21 = function(type, style) { | ||
peg$c12 = "number", | ||
peg$c13 = { type: "literal", value: "number", description: "\"number\"" }, | ||
peg$c14 = "date", | ||
peg$c15 = { type: "literal", value: "date", description: "\"date\"" }, | ||
peg$c16 = "time", | ||
peg$c17 = { type: "literal", value: "time", description: "\"time\"" }, | ||
peg$c18 = function(type, style) { | ||
return { | ||
type : type + 'Format', | ||
style: style && style[2] | ||
style: style && style[2], | ||
location: location() | ||
}; | ||
}, | ||
peg$c22 = "plural", | ||
peg$c23 = { type: "literal", value: "plural", description: "\"plural\"" }, | ||
peg$c24 = function(pluralStyle) { | ||
peg$c19 = "plural", | ||
peg$c20 = { type: "literal", value: "plural", description: "\"plural\"" }, | ||
peg$c21 = function(pluralStyle) { | ||
return { | ||
@@ -359,8 +364,9 @@ type : pluralStyle.type, | ||
offset : pluralStyle.offset || 0, | ||
options: pluralStyle.options | ||
options: pluralStyle.options, | ||
location: location() | ||
}; | ||
}, | ||
peg$c25 = "selectordinal", | ||
peg$c26 = { type: "literal", value: "selectordinal", description: "\"selectordinal\"" }, | ||
peg$c27 = function(pluralStyle) { | ||
peg$c22 = "selectordinal", | ||
peg$c23 = { type: "literal", value: "selectordinal", description: "\"selectordinal\"" }, | ||
peg$c24 = function(pluralStyle) { | ||
return { | ||
@@ -370,74 +376,77 @@ type : pluralStyle.type, | ||
offset : pluralStyle.offset || 0, | ||
options: pluralStyle.options | ||
options: pluralStyle.options, | ||
location: location() | ||
} | ||
}, | ||
peg$c28 = "select", | ||
peg$c29 = { type: "literal", value: "select", description: "\"select\"" }, | ||
peg$c30 = function(options) { | ||
peg$c25 = "select", | ||
peg$c26 = { type: "literal", value: "select", description: "\"select\"" }, | ||
peg$c27 = function(options) { | ||
return { | ||
type : 'selectFormat', | ||
options: options | ||
options: options, | ||
location: location() | ||
}; | ||
}, | ||
peg$c31 = "=", | ||
peg$c32 = { type: "literal", value: "=", description: "\"=\"" }, | ||
peg$c33 = function(selector, pattern) { | ||
peg$c28 = "=", | ||
peg$c29 = { type: "literal", value: "=", description: "\"=\"" }, | ||
peg$c30 = function(selector, pattern) { | ||
return { | ||
type : 'optionalFormatPattern', | ||
selector: selector, | ||
value : pattern | ||
value : pattern, | ||
location: location() | ||
}; | ||
}, | ||
peg$c34 = "offset:", | ||
peg$c35 = { type: "literal", value: "offset:", description: "\"offset:\"" }, | ||
peg$c36 = function(number) { | ||
peg$c31 = "offset:", | ||
peg$c32 = { type: "literal", value: "offset:", description: "\"offset:\"" }, | ||
peg$c33 = function(number) { | ||
return number; | ||
}, | ||
peg$c37 = function(offset, options) { | ||
peg$c34 = function(offset, options) { | ||
return { | ||
type : 'pluralFormat', | ||
offset : offset, | ||
options: options | ||
options: options, | ||
location: location() | ||
}; | ||
}, | ||
peg$c38 = { type: "other", description: "whitespace" }, | ||
peg$c39 = /^[ \t\n\r]/, | ||
peg$c40 = { type: "class", value: "[ \\t\\n\\r]", description: "[ \\t\\n\\r]" }, | ||
peg$c41 = { type: "other", description: "optionalWhitespace" }, | ||
peg$c42 = /^[0-9]/, | ||
peg$c43 = { type: "class", value: "[0-9]", description: "[0-9]" }, | ||
peg$c44 = /^[0-9a-f]/i, | ||
peg$c45 = { type: "class", value: "[0-9a-f]i", description: "[0-9a-f]i" }, | ||
peg$c46 = "0", | ||
peg$c47 = { type: "literal", value: "0", description: "\"0\"" }, | ||
peg$c48 = /^[1-9]/, | ||
peg$c49 = { type: "class", value: "[1-9]", description: "[1-9]" }, | ||
peg$c50 = function(digits) { | ||
peg$c35 = { type: "other", description: "whitespace" }, | ||
peg$c36 = /^[ \t\n\r]/, | ||
peg$c37 = { type: "class", value: "[ \\t\\n\\r]", description: "[ \\t\\n\\r]" }, | ||
peg$c38 = { type: "other", description: "optionalWhitespace" }, | ||
peg$c39 = /^[0-9]/, | ||
peg$c40 = { type: "class", value: "[0-9]", description: "[0-9]" }, | ||
peg$c41 = /^[0-9a-f]/i, | ||
peg$c42 = { type: "class", value: "[0-9a-f]i", description: "[0-9a-f]i" }, | ||
peg$c43 = "0", | ||
peg$c44 = { type: "literal", value: "0", description: "\"0\"" }, | ||
peg$c45 = /^[1-9]/, | ||
peg$c46 = { type: "class", value: "[1-9]", description: "[1-9]" }, | ||
peg$c47 = function(digits) { | ||
return parseInt(digits, 10); | ||
}, | ||
peg$c51 = /^[^{}\\\0-\x1F \t\n\r]/, | ||
peg$c52 = { type: "class", value: "[^{}\\\\\\0-\\x1F \\t\\n\\r]", description: "[^{}\\\\\\0-\\x1F \\t\\n\\r]" }, | ||
peg$c53 = "\\\\", | ||
peg$c54 = { type: "literal", value: "\\\\", description: "\"\\\\\\\\\"" }, | ||
peg$c55 = function() { return '\\'; }, | ||
peg$c56 = "\\#", | ||
peg$c57 = { type: "literal", value: "\\#", description: "\"\\\\#\"" }, | ||
peg$c58 = function() { return '\\#'; }, | ||
peg$c59 = "\\{", | ||
peg$c60 = { type: "literal", value: "\\{", description: "\"\\\\{\"" }, | ||
peg$c61 = function() { return '\u007B'; }, | ||
peg$c62 = "\\}", | ||
peg$c63 = { type: "literal", value: "\\}", description: "\"\\\\}\"" }, | ||
peg$c64 = function() { return '\u007D'; }, | ||
peg$c65 = "\\u", | ||
peg$c66 = { type: "literal", value: "\\u", description: "\"\\\\u\"" }, | ||
peg$c67 = function(digits) { | ||
peg$c48 = /^[^{}\\\0-\x1F \t\n\r]/, | ||
peg$c49 = { type: "class", value: "[^{}\\\\\\0-\\x1F\\x7f \\t\\n\\r]", description: "[^{}\\\\\\0-\\x1F\\x7f \\t\\n\\r]" }, | ||
peg$c50 = "\\\\", | ||
peg$c51 = { type: "literal", value: "\\\\", description: "\"\\\\\\\\\"" }, | ||
peg$c52 = function() { return '\\'; }, | ||
peg$c53 = "\\#", | ||
peg$c54 = { type: "literal", value: "\\#", description: "\"\\\\#\"" }, | ||
peg$c55 = function() { return '\\#'; }, | ||
peg$c56 = "\\{", | ||
peg$c57 = { type: "literal", value: "\\{", description: "\"\\\\{\"" }, | ||
peg$c58 = function() { return '\u007B'; }, | ||
peg$c59 = "\\}", | ||
peg$c60 = { type: "literal", value: "\\}", description: "\"\\\\}\"" }, | ||
peg$c61 = function() { return '\u007D'; }, | ||
peg$c62 = "\\u", | ||
peg$c63 = { type: "literal", value: "\\u", description: "\"\\\\u\"" }, | ||
peg$c64 = function(digits) { | ||
return String.fromCharCode(parseInt(digits, 16)); | ||
}, | ||
peg$c68 = function(chars) { return chars.join(''); }, | ||
peg$c65 = function(chars) { return chars.join(''); }, | ||
peg$currPos = 0, | ||
peg$reportedPos = 0, | ||
peg$cachedPos = 0, | ||
peg$cachedPosDetails = { line: 1, column: 1, seenCR: false }, | ||
peg$savedPos = 0, | ||
peg$posDetailsCache = [{ line: 1, column: 1, seenCR: false }], | ||
peg$maxFailPos = 0, | ||
@@ -458,17 +467,9 @@ peg$maxFailExpected = [], | ||
function text() { | ||
return input.substring(peg$reportedPos, peg$currPos); | ||
return input.substring(peg$savedPos, peg$currPos); | ||
} | ||
function offset() { | ||
return peg$reportedPos; | ||
function location() { | ||
return peg$computeLocation(peg$savedPos, peg$currPos); | ||
} | ||
function line() { | ||
return peg$computePosDetails(peg$reportedPos).line; | ||
} | ||
function column() { | ||
return peg$computePosDetails(peg$reportedPos).column; | ||
} | ||
function expected(description) { | ||
@@ -478,3 +479,4 @@ throw peg$buildException( | ||
[{ type: "other", description: description }], | ||
peg$reportedPos | ||
input.substring(peg$savedPos, peg$currPos), | ||
peg$computeLocation(peg$savedPos, peg$currPos) | ||
); | ||
@@ -484,10 +486,30 @@ } | ||
function error(message) { | ||
throw peg$buildException(message, null, peg$reportedPos); | ||
throw peg$buildException( | ||
message, | ||
null, | ||
input.substring(peg$savedPos, peg$currPos), | ||
peg$computeLocation(peg$savedPos, peg$currPos) | ||
); | ||
} | ||
function peg$computePosDetails(pos) { | ||
function advance(details, startPos, endPos) { | ||
var p, ch; | ||
var details = peg$posDetailsCache[pos], | ||
p, ch; | ||
for (p = startPos; p < endPos; p++) { | ||
if (details) { | ||
return details; | ||
} else { | ||
p = pos - 1; | ||
while (!peg$posDetailsCache[p]) { | ||
p--; | ||
} | ||
details = peg$posDetailsCache[p]; | ||
details = { | ||
line: details.line, | ||
column: details.column, | ||
seenCR: details.seenCR | ||
}; | ||
while (p < pos) { | ||
ch = input.charAt(p); | ||
@@ -506,15 +528,27 @@ if (ch === "\n") { | ||
} | ||
p++; | ||
} | ||
peg$posDetailsCache[pos] = details; | ||
return details; | ||
} | ||
} | ||
if (peg$cachedPos !== pos) { | ||
if (peg$cachedPos > pos) { | ||
peg$cachedPos = 0; | ||
peg$cachedPosDetails = { line: 1, column: 1, seenCR: false }; | ||
function peg$computeLocation(startPos, endPos) { | ||
var startPosDetails = peg$computePosDetails(startPos), | ||
endPosDetails = peg$computePosDetails(endPos); | ||
return { | ||
start: { | ||
offset: startPos, | ||
line: startPosDetails.line, | ||
column: startPosDetails.column | ||
}, | ||
end: { | ||
offset: endPos, | ||
line: endPosDetails.line, | ||
column: endPosDetails.column | ||
} | ||
advance(peg$cachedPosDetails, peg$cachedPos, pos); | ||
peg$cachedPos = pos; | ||
} | ||
return peg$cachedPosDetails; | ||
}; | ||
} | ||
@@ -533,3 +567,3 @@ | ||
function peg$buildException(message, expected, pos) { | ||
function peg$buildException(message, expected, found, location) { | ||
function cleanupExpected(expected) { | ||
@@ -571,4 +605,4 @@ var i = 1; | ||
.replace(/[\x10-\x1F\x80-\xFF]/g, function(ch) { return '\\x' + hex(ch); }) | ||
.replace(/[\u0180-\u0FFF]/g, function(ch) { return '\\u0' + hex(ch); }) | ||
.replace(/[\u1080-\uFFFF]/g, function(ch) { return '\\u' + hex(ch); }); | ||
.replace(/[\u0100-\u0FFF]/g, function(ch) { return '\\u0' + hex(ch); }) | ||
.replace(/[\u1000-\uFFFF]/g, function(ch) { return '\\u' + hex(ch); }); | ||
} | ||
@@ -594,5 +628,2 @@ | ||
var posDetails = peg$computePosDetails(pos), | ||
found = pos < input.length ? input.charAt(pos) : null; | ||
if (expected !== null) { | ||
@@ -602,9 +633,7 @@ cleanupExpected(expected); | ||
return new SyntaxError( | ||
return new peg$SyntaxError( | ||
message !== null ? message : buildMessage(expected, found), | ||
expected, | ||
found, | ||
pos, | ||
posDetails.line, | ||
posDetails.column | ||
location | ||
); | ||
@@ -632,4 +661,4 @@ } | ||
if (s1 !== peg$FAILED) { | ||
peg$reportedPos = s0; | ||
s1 = peg$c1(s1); | ||
peg$savedPos = s0; | ||
s1 = peg$c0(s1); | ||
} | ||
@@ -668,11 +697,11 @@ s0 = s1; | ||
peg$currPos = s2; | ||
s2 = peg$c2; | ||
s2 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s2; | ||
s2 = peg$c2; | ||
s2 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s2; | ||
s2 = peg$c2; | ||
s2 = peg$FAILED; | ||
} | ||
@@ -693,19 +722,19 @@ if (s2 !== peg$FAILED) { | ||
peg$currPos = s2; | ||
s2 = peg$c2; | ||
s2 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s2; | ||
s2 = peg$c2; | ||
s2 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s2; | ||
s2 = peg$c2; | ||
s2 = peg$FAILED; | ||
} | ||
} | ||
} else { | ||
s1 = peg$c2; | ||
s1 = peg$FAILED; | ||
} | ||
if (s1 !== peg$FAILED) { | ||
peg$reportedPos = s0; | ||
s1 = peg$c3(s1); | ||
peg$savedPos = s0; | ||
s1 = peg$c1(s1); | ||
} | ||
@@ -717,5 +746,6 @@ s0 = s1; | ||
if (s1 !== peg$FAILED) { | ||
s1 = input.substring(s0, peg$currPos); | ||
s0 = input.substring(s0, peg$currPos); | ||
} else { | ||
s0 = s1; | ||
} | ||
s0 = s1; | ||
} | ||
@@ -732,4 +762,4 @@ | ||
if (s1 !== peg$FAILED) { | ||
peg$reportedPos = s0; | ||
s1 = peg$c4(s1); | ||
peg$savedPos = s0; | ||
s1 = peg$c2(s1); | ||
} | ||
@@ -748,3 +778,3 @@ s0 = s1; | ||
s1 = []; | ||
if (peg$c5.test(input.charAt(peg$currPos))) { | ||
if (peg$c3.test(input.charAt(peg$currPos))) { | ||
s2 = input.charAt(peg$currPos); | ||
@@ -754,3 +784,3 @@ peg$currPos++; | ||
s2 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c6); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c4); } | ||
} | ||
@@ -760,3 +790,3 @@ if (s2 !== peg$FAILED) { | ||
s1.push(s2); | ||
if (peg$c5.test(input.charAt(peg$currPos))) { | ||
if (peg$c3.test(input.charAt(peg$currPos))) { | ||
s2 = input.charAt(peg$currPos); | ||
@@ -766,12 +796,13 @@ peg$currPos++; | ||
s2 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c6); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c4); } | ||
} | ||
} | ||
} else { | ||
s1 = peg$c2; | ||
s1 = peg$FAILED; | ||
} | ||
if (s1 !== peg$FAILED) { | ||
s1 = input.substring(s0, peg$currPos); | ||
s0 = input.substring(s0, peg$currPos); | ||
} else { | ||
s0 = s1; | ||
} | ||
s0 = s1; | ||
} | ||
@@ -787,7 +818,7 @@ | ||
if (input.charCodeAt(peg$currPos) === 123) { | ||
s1 = peg$c7; | ||
s1 = peg$c5; | ||
peg$currPos++; | ||
} else { | ||
s1 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c8); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c6); } | ||
} | ||
@@ -803,7 +834,7 @@ if (s1 !== peg$FAILED) { | ||
if (input.charCodeAt(peg$currPos) === 44) { | ||
s6 = peg$c10; | ||
s6 = peg$c7; | ||
peg$currPos++; | ||
} else { | ||
s6 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c11); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c8); } | ||
} | ||
@@ -819,14 +850,14 @@ if (s6 !== peg$FAILED) { | ||
peg$currPos = s5; | ||
s5 = peg$c2; | ||
s5 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s5; | ||
s5 = peg$c2; | ||
s5 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s5; | ||
s5 = peg$c2; | ||
s5 = peg$FAILED; | ||
} | ||
if (s5 === peg$FAILED) { | ||
s5 = peg$c9; | ||
s5 = null; | ||
} | ||
@@ -837,39 +868,39 @@ if (s5 !== peg$FAILED) { | ||
if (input.charCodeAt(peg$currPos) === 125) { | ||
s7 = peg$c12; | ||
s7 = peg$c9; | ||
peg$currPos++; | ||
} else { | ||
s7 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c13); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c10); } | ||
} | ||
if (s7 !== peg$FAILED) { | ||
peg$reportedPos = s0; | ||
s1 = peg$c14(s3, s5); | ||
peg$savedPos = s0; | ||
s1 = peg$c11(s3, s5); | ||
s0 = s1; | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
@@ -901,24 +932,24 @@ | ||
s0 = peg$currPos; | ||
if (input.substr(peg$currPos, 6) === peg$c15) { | ||
s1 = peg$c15; | ||
if (input.substr(peg$currPos, 6) === peg$c12) { | ||
s1 = peg$c12; | ||
peg$currPos += 6; | ||
} else { | ||
s1 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c16); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c13); } | ||
} | ||
if (s1 === peg$FAILED) { | ||
if (input.substr(peg$currPos, 4) === peg$c17) { | ||
s1 = peg$c17; | ||
if (input.substr(peg$currPos, 4) === peg$c14) { | ||
s1 = peg$c14; | ||
peg$currPos += 4; | ||
} else { | ||
s1 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c18); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c15); } | ||
} | ||
if (s1 === peg$FAILED) { | ||
if (input.substr(peg$currPos, 4) === peg$c19) { | ||
s1 = peg$c19; | ||
if (input.substr(peg$currPos, 4) === peg$c16) { | ||
s1 = peg$c16; | ||
peg$currPos += 4; | ||
} else { | ||
s1 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c20); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c17); } | ||
} | ||
@@ -932,7 +963,7 @@ } | ||
if (input.charCodeAt(peg$currPos) === 44) { | ||
s4 = peg$c10; | ||
s4 = peg$c7; | ||
peg$currPos++; | ||
} else { | ||
s4 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c11); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c8); } | ||
} | ||
@@ -948,30 +979,30 @@ if (s4 !== peg$FAILED) { | ||
peg$currPos = s3; | ||
s3 = peg$c2; | ||
s3 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s3; | ||
s3 = peg$c2; | ||
s3 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s3; | ||
s3 = peg$c2; | ||
s3 = peg$FAILED; | ||
} | ||
if (s3 === peg$FAILED) { | ||
s3 = peg$c9; | ||
s3 = null; | ||
} | ||
if (s3 !== peg$FAILED) { | ||
peg$reportedPos = s0; | ||
s1 = peg$c21(s1, s3); | ||
peg$savedPos = s0; | ||
s1 = peg$c18(s1, s3); | ||
s0 = s1; | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
@@ -986,8 +1017,8 @@ | ||
s0 = peg$currPos; | ||
if (input.substr(peg$currPos, 6) === peg$c22) { | ||
s1 = peg$c22; | ||
if (input.substr(peg$currPos, 6) === peg$c19) { | ||
s1 = peg$c19; | ||
peg$currPos += 6; | ||
} else { | ||
s1 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c23); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c20); } | ||
} | ||
@@ -998,7 +1029,7 @@ if (s1 !== peg$FAILED) { | ||
if (input.charCodeAt(peg$currPos) === 44) { | ||
s3 = peg$c10; | ||
s3 = peg$c7; | ||
peg$currPos++; | ||
} else { | ||
s3 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c11); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c8); } | ||
} | ||
@@ -1010,24 +1041,24 @@ if (s3 !== peg$FAILED) { | ||
if (s5 !== peg$FAILED) { | ||
peg$reportedPos = s0; | ||
s1 = peg$c24(s5); | ||
peg$savedPos = s0; | ||
s1 = peg$c21(s5); | ||
s0 = s1; | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
@@ -1042,8 +1073,8 @@ | ||
s0 = peg$currPos; | ||
if (input.substr(peg$currPos, 13) === peg$c25) { | ||
s1 = peg$c25; | ||
if (input.substr(peg$currPos, 13) === peg$c22) { | ||
s1 = peg$c22; | ||
peg$currPos += 13; | ||
} else { | ||
s1 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c26); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c23); } | ||
} | ||
@@ -1054,7 +1085,7 @@ if (s1 !== peg$FAILED) { | ||
if (input.charCodeAt(peg$currPos) === 44) { | ||
s3 = peg$c10; | ||
s3 = peg$c7; | ||
peg$currPos++; | ||
} else { | ||
s3 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c11); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c8); } | ||
} | ||
@@ -1066,24 +1097,24 @@ if (s3 !== peg$FAILED) { | ||
if (s5 !== peg$FAILED) { | ||
peg$reportedPos = s0; | ||
s1 = peg$c27(s5); | ||
peg$savedPos = s0; | ||
s1 = peg$c24(s5); | ||
s0 = s1; | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
@@ -1098,8 +1129,8 @@ | ||
s0 = peg$currPos; | ||
if (input.substr(peg$currPos, 6) === peg$c28) { | ||
s1 = peg$c28; | ||
if (input.substr(peg$currPos, 6) === peg$c25) { | ||
s1 = peg$c25; | ||
peg$currPos += 6; | ||
} else { | ||
s1 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c29); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c26); } | ||
} | ||
@@ -1110,7 +1141,7 @@ if (s1 !== peg$FAILED) { | ||
if (input.charCodeAt(peg$currPos) === 44) { | ||
s3 = peg$c10; | ||
s3 = peg$c7; | ||
peg$currPos++; | ||
} else { | ||
s3 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c11); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c8); } | ||
} | ||
@@ -1128,27 +1159,27 @@ if (s3 !== peg$FAILED) { | ||
} else { | ||
s5 = peg$c2; | ||
s5 = peg$FAILED; | ||
} | ||
if (s5 !== peg$FAILED) { | ||
peg$reportedPos = s0; | ||
s1 = peg$c30(s5); | ||
peg$savedPos = s0; | ||
s1 = peg$c27(s5); | ||
s0 = s1; | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
@@ -1165,7 +1196,7 @@ | ||
if (input.charCodeAt(peg$currPos) === 61) { | ||
s2 = peg$c31; | ||
s2 = peg$c28; | ||
peg$currPos++; | ||
} else { | ||
s2 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c32); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c29); } | ||
} | ||
@@ -1179,12 +1210,13 @@ if (s2 !== peg$FAILED) { | ||
peg$currPos = s1; | ||
s1 = peg$c2; | ||
s1 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s1; | ||
s1 = peg$c2; | ||
s1 = peg$FAILED; | ||
} | ||
if (s1 !== peg$FAILED) { | ||
s1 = input.substring(s0, peg$currPos); | ||
s0 = input.substring(s0, peg$currPos); | ||
} else { | ||
s0 = s1; | ||
} | ||
s0 = s1; | ||
if (s0 === peg$FAILED) { | ||
@@ -1208,7 +1240,7 @@ s0 = peg$parsechars(); | ||
if (input.charCodeAt(peg$currPos) === 123) { | ||
s4 = peg$c7; | ||
s4 = peg$c5; | ||
peg$currPos++; | ||
} else { | ||
s4 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c8); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c6); } | ||
} | ||
@@ -1223,43 +1255,43 @@ if (s4 !== peg$FAILED) { | ||
if (input.charCodeAt(peg$currPos) === 125) { | ||
s8 = peg$c12; | ||
s8 = peg$c9; | ||
peg$currPos++; | ||
} else { | ||
s8 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c13); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c10); } | ||
} | ||
if (s8 !== peg$FAILED) { | ||
peg$reportedPos = s0; | ||
s1 = peg$c33(s2, s6); | ||
peg$savedPos = s0; | ||
s1 = peg$c30(s2, s6); | ||
s0 = s1; | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
@@ -1274,8 +1306,8 @@ | ||
s0 = peg$currPos; | ||
if (input.substr(peg$currPos, 7) === peg$c34) { | ||
s1 = peg$c34; | ||
if (input.substr(peg$currPos, 7) === peg$c31) { | ||
s1 = peg$c31; | ||
peg$currPos += 7; | ||
} else { | ||
s1 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c35); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c32); } | ||
} | ||
@@ -1287,16 +1319,16 @@ if (s1 !== peg$FAILED) { | ||
if (s3 !== peg$FAILED) { | ||
peg$reportedPos = s0; | ||
s1 = peg$c36(s3); | ||
peg$savedPos = s0; | ||
s1 = peg$c33(s3); | ||
s0 = s1; | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
@@ -1313,3 +1345,3 @@ | ||
if (s1 === peg$FAILED) { | ||
s1 = peg$c9; | ||
s1 = null; | ||
} | ||
@@ -1327,19 +1359,19 @@ if (s1 !== peg$FAILED) { | ||
} else { | ||
s3 = peg$c2; | ||
s3 = peg$FAILED; | ||
} | ||
if (s3 !== peg$FAILED) { | ||
peg$reportedPos = s0; | ||
s1 = peg$c37(s1, s3); | ||
peg$savedPos = s0; | ||
s1 = peg$c34(s1, s3); | ||
s0 = s1; | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
@@ -1355,3 +1387,3 @@ | ||
s0 = []; | ||
if (peg$c39.test(input.charAt(peg$currPos))) { | ||
if (peg$c36.test(input.charAt(peg$currPos))) { | ||
s1 = input.charAt(peg$currPos); | ||
@@ -1361,3 +1393,3 @@ peg$currPos++; | ||
s1 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c40); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c37); } | ||
} | ||
@@ -1367,3 +1399,3 @@ if (s1 !== peg$FAILED) { | ||
s0.push(s1); | ||
if (peg$c39.test(input.charAt(peg$currPos))) { | ||
if (peg$c36.test(input.charAt(peg$currPos))) { | ||
s1 = input.charAt(peg$currPos); | ||
@@ -1373,7 +1405,7 @@ peg$currPos++; | ||
s1 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c40); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c37); } | ||
} | ||
} | ||
} else { | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
@@ -1383,3 +1415,3 @@ peg$silentFails--; | ||
s1 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c38); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c35); } | ||
} | ||
@@ -1402,9 +1434,10 @@ | ||
if (s1 !== peg$FAILED) { | ||
s1 = input.substring(s0, peg$currPos); | ||
s0 = input.substring(s0, peg$currPos); | ||
} else { | ||
s0 = s1; | ||
} | ||
s0 = s1; | ||
peg$silentFails--; | ||
if (s0 === peg$FAILED) { | ||
s1 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c41); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c38); } | ||
} | ||
@@ -1418,3 +1451,3 @@ | ||
if (peg$c42.test(input.charAt(peg$currPos))) { | ||
if (peg$c39.test(input.charAt(peg$currPos))) { | ||
s0 = input.charAt(peg$currPos); | ||
@@ -1424,3 +1457,3 @@ peg$currPos++; | ||
s0 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c43); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c40); } | ||
} | ||
@@ -1434,3 +1467,3 @@ | ||
if (peg$c44.test(input.charAt(peg$currPos))) { | ||
if (peg$c41.test(input.charAt(peg$currPos))) { | ||
s0 = input.charAt(peg$currPos); | ||
@@ -1440,3 +1473,3 @@ peg$currPos++; | ||
s0 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c45); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c42); } | ||
} | ||
@@ -1452,7 +1485,7 @@ | ||
if (input.charCodeAt(peg$currPos) === 48) { | ||
s1 = peg$c46; | ||
s1 = peg$c43; | ||
peg$currPos++; | ||
} else { | ||
s1 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c47); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c44); } | ||
} | ||
@@ -1462,3 +1495,3 @@ if (s1 === peg$FAILED) { | ||
s2 = peg$currPos; | ||
if (peg$c48.test(input.charAt(peg$currPos))) { | ||
if (peg$c45.test(input.charAt(peg$currPos))) { | ||
s3 = input.charAt(peg$currPos); | ||
@@ -1468,3 +1501,3 @@ peg$currPos++; | ||
s3 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c49); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c46); } | ||
} | ||
@@ -1483,16 +1516,17 @@ if (s3 !== peg$FAILED) { | ||
peg$currPos = s2; | ||
s2 = peg$c2; | ||
s2 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s2; | ||
s2 = peg$c2; | ||
s2 = peg$FAILED; | ||
} | ||
if (s2 !== peg$FAILED) { | ||
s2 = input.substring(s1, peg$currPos); | ||
s1 = input.substring(s1, peg$currPos); | ||
} else { | ||
s1 = s2; | ||
} | ||
s1 = s2; | ||
} | ||
if (s1 !== peg$FAILED) { | ||
peg$reportedPos = s0; | ||
s1 = peg$c50(s1); | ||
peg$savedPos = s0; | ||
s1 = peg$c47(s1); | ||
} | ||
@@ -1507,3 +1541,3 @@ s0 = s1; | ||
if (peg$c51.test(input.charAt(peg$currPos))) { | ||
if (peg$c48.test(input.charAt(peg$currPos))) { | ||
s0 = input.charAt(peg$currPos); | ||
@@ -1513,16 +1547,16 @@ peg$currPos++; | ||
s0 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c52); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c49); } | ||
} | ||
if (s0 === peg$FAILED) { | ||
s0 = peg$currPos; | ||
if (input.substr(peg$currPos, 2) === peg$c53) { | ||
s1 = peg$c53; | ||
if (input.substr(peg$currPos, 2) === peg$c50) { | ||
s1 = peg$c50; | ||
peg$currPos += 2; | ||
} else { | ||
s1 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c54); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c51); } | ||
} | ||
if (s1 !== peg$FAILED) { | ||
peg$reportedPos = s0; | ||
s1 = peg$c55(); | ||
peg$savedPos = s0; | ||
s1 = peg$c52(); | ||
} | ||
@@ -1532,12 +1566,12 @@ s0 = s1; | ||
s0 = peg$currPos; | ||
if (input.substr(peg$currPos, 2) === peg$c56) { | ||
s1 = peg$c56; | ||
if (input.substr(peg$currPos, 2) === peg$c53) { | ||
s1 = peg$c53; | ||
peg$currPos += 2; | ||
} else { | ||
s1 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c57); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c54); } | ||
} | ||
if (s1 !== peg$FAILED) { | ||
peg$reportedPos = s0; | ||
s1 = peg$c58(); | ||
peg$savedPos = s0; | ||
s1 = peg$c55(); | ||
} | ||
@@ -1547,12 +1581,12 @@ s0 = s1; | ||
s0 = peg$currPos; | ||
if (input.substr(peg$currPos, 2) === peg$c59) { | ||
s1 = peg$c59; | ||
if (input.substr(peg$currPos, 2) === peg$c56) { | ||
s1 = peg$c56; | ||
peg$currPos += 2; | ||
} else { | ||
s1 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c60); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c57); } | ||
} | ||
if (s1 !== peg$FAILED) { | ||
peg$reportedPos = s0; | ||
s1 = peg$c61(); | ||
peg$savedPos = s0; | ||
s1 = peg$c58(); | ||
} | ||
@@ -1562,12 +1596,12 @@ s0 = s1; | ||
s0 = peg$currPos; | ||
if (input.substr(peg$currPos, 2) === peg$c62) { | ||
s1 = peg$c62; | ||
if (input.substr(peg$currPos, 2) === peg$c59) { | ||
s1 = peg$c59; | ||
peg$currPos += 2; | ||
} else { | ||
s1 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c63); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c60); } | ||
} | ||
if (s1 !== peg$FAILED) { | ||
peg$reportedPos = s0; | ||
s1 = peg$c64(); | ||
peg$savedPos = s0; | ||
s1 = peg$c61(); | ||
} | ||
@@ -1577,8 +1611,8 @@ s0 = s1; | ||
s0 = peg$currPos; | ||
if (input.substr(peg$currPos, 2) === peg$c65) { | ||
s1 = peg$c65; | ||
if (input.substr(peg$currPos, 2) === peg$c62) { | ||
s1 = peg$c62; | ||
peg$currPos += 2; | ||
} else { | ||
s1 = peg$FAILED; | ||
if (peg$silentFails === 0) { peg$fail(peg$c66); } | ||
if (peg$silentFails === 0) { peg$fail(peg$c63); } | ||
} | ||
@@ -1600,31 +1634,32 @@ if (s1 !== peg$FAILED) { | ||
peg$currPos = s3; | ||
s3 = peg$c2; | ||
s3 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s3; | ||
s3 = peg$c2; | ||
s3 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s3; | ||
s3 = peg$c2; | ||
s3 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s3; | ||
s3 = peg$c2; | ||
s3 = peg$FAILED; | ||
} | ||
if (s3 !== peg$FAILED) { | ||
s3 = input.substring(s2, peg$currPos); | ||
s2 = input.substring(s2, peg$currPos); | ||
} else { | ||
s2 = s3; | ||
} | ||
s2 = s3; | ||
if (s2 !== peg$FAILED) { | ||
peg$reportedPos = s0; | ||
s1 = peg$c67(s2); | ||
peg$savedPos = s0; | ||
s1 = peg$c64(s2); | ||
s0 = s1; | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
} else { | ||
peg$currPos = s0; | ||
s0 = peg$c2; | ||
s0 = peg$FAILED; | ||
} | ||
@@ -1652,7 +1687,7 @@ } | ||
} else { | ||
s1 = peg$c2; | ||
s1 = peg$FAILED; | ||
} | ||
if (s1 !== peg$FAILED) { | ||
peg$reportedPos = s0; | ||
s1 = peg$c68(s1); | ||
peg$savedPos = s0; | ||
s1 = peg$c65(s1); | ||
} | ||
@@ -1673,3 +1708,10 @@ s0 = s1; | ||
throw peg$buildException(null, peg$maxFailExpected, peg$maxFailPos); | ||
throw peg$buildException( | ||
null, | ||
peg$maxFailExpected, | ||
peg$maxFailPos < input.length ? input.charAt(peg$maxFailPos) : null, | ||
peg$maxFailPos < input.length | ||
? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1) | ||
: peg$computeLocation(peg$maxFailPos, peg$maxFailPos) | ||
); | ||
} | ||
@@ -1679,4 +1721,4 @@ } | ||
return { | ||
SyntaxError: SyntaxError, | ||
parse: parse | ||
SyntaxError: peg$SyntaxError, | ||
parse: peg$parse | ||
}; | ||
@@ -1683,0 +1725,0 @@ })(); |
@@ -1,2 +0,2 @@ | ||
(function(){"use strict";function a(a){var b,c,d,e,f=Array.prototype.slice.call(arguments,1);for(b=0,c=f.length;c>b;b+=1)if(d=f[b])for(e in d)h.call(d,e)&&(a[e]=d[e]);return a}function b(a,b,c){this.locales=a,this.formats=b,this.pluralFn=c}function c(a){this.id=a}function d(a,b,c,d,e){this.id=a,this.useOrdinal=b,this.offset=c,this.options=d,this.pluralFn=e}function e(a,b,c,d){this.id=a,this.offset=b,this.numberFormat=c,this.string=d}function f(a,b){this.id=a,this.options=b}function g(a,b,c){var d="string"==typeof a?g.__parse(a):a;if(!d||"messageFormatPattern"!==d.type)throw new TypeError("A message must be provided as a String or AST.");c=this._mergeFormats(g.formats,c),j(this,"_locale",{value:this._resolveLocale(b)});var e=this._findPluralRuleFunction(this._locale),f=this._compilePattern(d,b,c,e),h=this;this.format=function(b){try{return h._format(f,b)}catch(c){throw c.variableId?new Error("The intl string context variable '"+c.variableId+"' was not provided to the string '"+a+"'"):c}}}var h=Object.prototype.hasOwnProperty,i=function(){try{return!!Object.defineProperty({},"a",{})}catch(a){return!1}}(),j=(!i&&!Object.prototype.__defineGetter__,i?Object.defineProperty:function(a,b,c){"get"in c&&a.__defineGetter__?a.__defineGetter__(b,c.get):(!h.call(a,b)||"value"in c)&&(a[b]=c.value)}),k=Object.create||function(a,b){function c(){}var d,e;c.prototype=a,d=new c;for(e in b)h.call(b,e)&&j(d,e,b[e]);return d},l=b;b.prototype.compile=function(a){return this.pluralStack=[],this.currentPlural=null,this.pluralNumberFormat=null,this.compileMessage(a)},b.prototype.compileMessage=function(a){if(!a||"messageFormatPattern"!==a.type)throw new Error('Message AST is not of type: "messageFormatPattern"');var b,c,d,e=a.elements,f=[];for(b=0,c=e.length;c>b;b+=1)switch(d=e[b],d.type){case"messageTextElement":f.push(this.compileMessageText(d));break;case"argumentElement":f.push(this.compileArgument(d));break;default:throw new Error("Message element does not have a valid type")}return f},b.prototype.compileMessageText=function(a){return this.currentPlural&&/(^|[^\\])#/g.test(a.value)?(this.pluralNumberFormat||(this.pluralNumberFormat=new Intl.NumberFormat(this.locales)),new e(this.currentPlural.id,this.currentPlural.format.offset,this.pluralNumberFormat,a.value)):a.value.replace(/\\#/g,"#")},b.prototype.compileArgument=function(a){var b=a.format;if(!b)return new c(a.id);var e,g=this.formats,h=this.locales,i=this.pluralFn;switch(b.type){case"numberFormat":return e=g.number[b.style],{id:a.id,format:new Intl.NumberFormat(h,e).format};case"dateFormat":return e=g.date[b.style],{id:a.id,format:new Intl.DateTimeFormat(h,e).format};case"timeFormat":return e=g.time[b.style],{id:a.id,format:new Intl.DateTimeFormat(h,e).format};case"pluralFormat":return e=this.compileOptions(a),new d(a.id,b.ordinal,b.offset,e,i);case"selectFormat":return e=this.compileOptions(a),new f(a.id,e);default:throw new Error("Message element does not have a valid format type")}},b.prototype.compileOptions=function(a){var b=a.format,c=b.options,d={};this.pluralStack.push(this.currentPlural),this.currentPlural="pluralFormat"===b.type?a:null;var e,f,g;for(e=0,f=c.length;f>e;e+=1)g=c[e],d[g.selector]=this.compileMessage(g.value);return this.currentPlural=this.pluralStack.pop(),d},c.prototype.format=function(a){return a||"number"==typeof a?"string"==typeof a?a:String(a):""},d.prototype.getOption=function(a){var b=this.options,c=b["="+a]||b[this.pluralFn(a-this.offset,this.useOrdinal)];return c||b.other},e.prototype.format=function(a){var b=this.numberFormat.format(a-this.offset);return this.string.replace(/(^|[^\\])#/g,"$1"+b).replace(/\\#/g,"#")},f.prototype.getOption=function(a){var b=this.options;return b[a]||b.other};var m=function(){function a(a,b){function c(){this.constructor=a}c.prototype=b.prototype,a.prototype=new c}function b(a,b,c,d,e,f){this.message=a,this.expected=b,this.found=c,this.offset=d,this.line=e,this.column=f,this.name="SyntaxError"}function c(a){function c(b){function c(b,c,d){var e,f;for(e=c;d>e;e++)f=a.charAt(e),"\n"===f?(b.seenCR||b.line++,b.column=1,b.seenCR=!1):"\r"===f||"\u2028"===f||"\u2029"===f?(b.line++,b.column=1,b.seenCR=!0):(b.column++,b.seenCR=!1)}return Xa!==b&&(Xa>b&&(Xa=0,Ya={line:1,column:1,seenCR:!1}),c(Ya,Xa,b),Xa=b),Ya}function d(a){Za>Va||(Va>Za&&(Za=Va,$a=[]),$a.push(a))}function e(d,e,f){function g(a){var b=1;for(a.sort(function(a,b){return a.description<b.description?-1:a.description>b.description?1:0});b<a.length;)a[b-1]===a[b]?a.splice(b,1):b++}function h(a,b){function c(a){function b(a){return a.charCodeAt(0).toString(16).toUpperCase()}return a.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,function(a){return"\\x0"+b(a)}).replace(/[\x10-\x1F\x80-\xFF]/g,function(a){return"\\x"+b(a)}).replace(/[\u0180-\u0FFF]/g,function(a){return"\\u0"+b(a)}).replace(/[\u1080-\uFFFF]/g,function(a){return"\\u"+b(a)})}var d,e,f,g=new Array(a.length);for(f=0;f<a.length;f++)g[f]=a[f].description;return d=a.length>1?g.slice(0,-1).join(", ")+" or "+g[a.length-1]:g[0],e=b?'"'+c(b)+'"':"end of input","Expected "+d+" but "+e+" found."}var i=c(f),j=f<a.length?a.charAt(f):null;return null!==e&&g(e),new b(null!==d?d:h(e,j),e,j,f,i.line,i.column)}function f(){var a;return a=g()}function g(){var a,b,c;for(a=Va,b=[],c=h();c!==E;)b.push(c),c=h();return b!==E&&(Wa=a,b=H(b)),a=b}function h(){var a;return a=j(),a===E&&(a=l()),a}function i(){var b,c,d,e,f,g;if(b=Va,c=[],d=Va,e=w(),e!==E?(f=B(),f!==E?(g=w(),g!==E?(e=[e,f,g],d=e):(Va=d,d=I)):(Va=d,d=I)):(Va=d,d=I),d!==E)for(;d!==E;)c.push(d),d=Va,e=w(),e!==E?(f=B(),f!==E?(g=w(),g!==E?(e=[e,f,g],d=e):(Va=d,d=I)):(Va=d,d=I)):(Va=d,d=I);else c=I;return c!==E&&(Wa=b,c=J(c)),b=c,b===E&&(b=Va,c=v(),c!==E&&(c=a.substring(b,Va)),b=c),b}function j(){var a,b;return a=Va,b=i(),b!==E&&(Wa=a,b=K(b)),a=b}function k(){var b,c,e;if(b=z(),b===E){if(b=Va,c=[],L.test(a.charAt(Va))?(e=a.charAt(Va),Va++):(e=E,0===_a&&d(M)),e!==E)for(;e!==E;)c.push(e),L.test(a.charAt(Va))?(e=a.charAt(Va),Va++):(e=E,0===_a&&d(M));else c=I;c!==E&&(c=a.substring(b,Va)),b=c}return b}function l(){var b,c,e,f,g,h,i,j,l;return b=Va,123===a.charCodeAt(Va)?(c=N,Va++):(c=E,0===_a&&d(O)),c!==E?(e=w(),e!==E?(f=k(),f!==E?(g=w(),g!==E?(h=Va,44===a.charCodeAt(Va)?(i=Q,Va++):(i=E,0===_a&&d(R)),i!==E?(j=w(),j!==E?(l=m(),l!==E?(i=[i,j,l],h=i):(Va=h,h=I)):(Va=h,h=I)):(Va=h,h=I),h===E&&(h=P),h!==E?(i=w(),i!==E?(125===a.charCodeAt(Va)?(j=S,Va++):(j=E,0===_a&&d(T)),j!==E?(Wa=b,c=U(f,h),b=c):(Va=b,b=I)):(Va=b,b=I)):(Va=b,b=I)):(Va=b,b=I)):(Va=b,b=I)):(Va=b,b=I)):(Va=b,b=I),b}function m(){var a;return a=n(),a===E&&(a=o(),a===E&&(a=p(),a===E&&(a=q()))),a}function n(){var b,c,e,f,g,h,i;return b=Va,a.substr(Va,6)===V?(c=V,Va+=6):(c=E,0===_a&&d(W)),c===E&&(a.substr(Va,4)===X?(c=X,Va+=4):(c=E,0===_a&&d(Y)),c===E&&(a.substr(Va,4)===Z?(c=Z,Va+=4):(c=E,0===_a&&d($)))),c!==E?(e=w(),e!==E?(f=Va,44===a.charCodeAt(Va)?(g=Q,Va++):(g=E,0===_a&&d(R)),g!==E?(h=w(),h!==E?(i=B(),i!==E?(g=[g,h,i],f=g):(Va=f,f=I)):(Va=f,f=I)):(Va=f,f=I),f===E&&(f=P),f!==E?(Wa=b,c=_(c,f),b=c):(Va=b,b=I)):(Va=b,b=I)):(Va=b,b=I),b}function o(){var b,c,e,f,g,h;return b=Va,a.substr(Va,6)===aa?(c=aa,Va+=6):(c=E,0===_a&&d(ba)),c!==E?(e=w(),e!==E?(44===a.charCodeAt(Va)?(f=Q,Va++):(f=E,0===_a&&d(R)),f!==E?(g=w(),g!==E?(h=u(),h!==E?(Wa=b,c=ca(h),b=c):(Va=b,b=I)):(Va=b,b=I)):(Va=b,b=I)):(Va=b,b=I)):(Va=b,b=I),b}function p(){var b,c,e,f,g,h;return b=Va,a.substr(Va,13)===da?(c=da,Va+=13):(c=E,0===_a&&d(ea)),c!==E?(e=w(),e!==E?(44===a.charCodeAt(Va)?(f=Q,Va++):(f=E,0===_a&&d(R)),f!==E?(g=w(),g!==E?(h=u(),h!==E?(Wa=b,c=fa(h),b=c):(Va=b,b=I)):(Va=b,b=I)):(Va=b,b=I)):(Va=b,b=I)):(Va=b,b=I),b}function q(){var b,c,e,f,g,h,i;if(b=Va,a.substr(Va,6)===ga?(c=ga,Va+=6):(c=E,0===_a&&d(ha)),c!==E)if(e=w(),e!==E)if(44===a.charCodeAt(Va)?(f=Q,Va++):(f=E,0===_a&&d(R)),f!==E)if(g=w(),g!==E){if(h=[],i=s(),i!==E)for(;i!==E;)h.push(i),i=s();else h=I;h!==E?(Wa=b,c=ia(h),b=c):(Va=b,b=I)}else Va=b,b=I;else Va=b,b=I;else Va=b,b=I;else Va=b,b=I;return b}function r(){var b,c,e,f;return b=Va,c=Va,61===a.charCodeAt(Va)?(e=ja,Va++):(e=E,0===_a&&d(ka)),e!==E?(f=z(),f!==E?(e=[e,f],c=e):(Va=c,c=I)):(Va=c,c=I),c!==E&&(c=a.substring(b,Va)),b=c,b===E&&(b=B()),b}function s(){var b,c,e,f,h,i,j,k,l;return b=Va,c=w(),c!==E?(e=r(),e!==E?(f=w(),f!==E?(123===a.charCodeAt(Va)?(h=N,Va++):(h=E,0===_a&&d(O)),h!==E?(i=w(),i!==E?(j=g(),j!==E?(k=w(),k!==E?(125===a.charCodeAt(Va)?(l=S,Va++):(l=E,0===_a&&d(T)),l!==E?(Wa=b,c=la(e,j),b=c):(Va=b,b=I)):(Va=b,b=I)):(Va=b,b=I)):(Va=b,b=I)):(Va=b,b=I)):(Va=b,b=I)):(Va=b,b=I)):(Va=b,b=I),b}function t(){var b,c,e,f;return b=Va,a.substr(Va,7)===ma?(c=ma,Va+=7):(c=E,0===_a&&d(na)),c!==E?(e=w(),e!==E?(f=z(),f!==E?(Wa=b,c=oa(f),b=c):(Va=b,b=I)):(Va=b,b=I)):(Va=b,b=I),b}function u(){var a,b,c,d,e;if(a=Va,b=t(),b===E&&(b=P),b!==E)if(c=w(),c!==E){if(d=[],e=s(),e!==E)for(;e!==E;)d.push(e),e=s();else d=I;d!==E?(Wa=a,b=pa(b,d),a=b):(Va=a,a=I)}else Va=a,a=I;else Va=a,a=I;return a}function v(){var b,c;if(_a++,b=[],ra.test(a.charAt(Va))?(c=a.charAt(Va),Va++):(c=E,0===_a&&d(sa)),c!==E)for(;c!==E;)b.push(c),ra.test(a.charAt(Va))?(c=a.charAt(Va),Va++):(c=E,0===_a&&d(sa));else b=I;return _a--,b===E&&(c=E,0===_a&&d(qa)),b}function w(){var b,c,e;for(_a++,b=Va,c=[],e=v();e!==E;)c.push(e),e=v();return c!==E&&(c=a.substring(b,Va)),b=c,_a--,b===E&&(c=E,0===_a&&d(ta)),b}function x(){var b;return ua.test(a.charAt(Va))?(b=a.charAt(Va),Va++):(b=E,0===_a&&d(va)),b}function y(){var b;return wa.test(a.charAt(Va))?(b=a.charAt(Va),Va++):(b=E,0===_a&&d(xa)),b}function z(){var b,c,e,f,g,h;if(b=Va,48===a.charCodeAt(Va)?(c=ya,Va++):(c=E,0===_a&&d(za)),c===E){if(c=Va,e=Va,Aa.test(a.charAt(Va))?(f=a.charAt(Va),Va++):(f=E,0===_a&&d(Ba)),f!==E){for(g=[],h=x();h!==E;)g.push(h),h=x();g!==E?(f=[f,g],e=f):(Va=e,e=I)}else Va=e,e=I;e!==E&&(e=a.substring(c,Va)),c=e}return c!==E&&(Wa=b,c=Ca(c)),b=c}function A(){var b,c,e,f,g,h,i,j;return Da.test(a.charAt(Va))?(b=a.charAt(Va),Va++):(b=E,0===_a&&d(Ea)),b===E&&(b=Va,a.substr(Va,2)===Fa?(c=Fa,Va+=2):(c=E,0===_a&&d(Ga)),c!==E&&(Wa=b,c=Ha()),b=c,b===E&&(b=Va,a.substr(Va,2)===Ia?(c=Ia,Va+=2):(c=E,0===_a&&d(Ja)),c!==E&&(Wa=b,c=Ka()),b=c,b===E&&(b=Va,a.substr(Va,2)===La?(c=La,Va+=2):(c=E,0===_a&&d(Ma)),c!==E&&(Wa=b,c=Na()),b=c,b===E&&(b=Va,a.substr(Va,2)===Oa?(c=Oa,Va+=2):(c=E,0===_a&&d(Pa)),c!==E&&(Wa=b,c=Qa()),b=c,b===E&&(b=Va,a.substr(Va,2)===Ra?(c=Ra,Va+=2):(c=E,0===_a&&d(Sa)),c!==E?(e=Va,f=Va,g=y(),g!==E?(h=y(),h!==E?(i=y(),i!==E?(j=y(),j!==E?(g=[g,h,i,j],f=g):(Va=f,f=I)):(Va=f,f=I)):(Va=f,f=I)):(Va=f,f=I),f!==E&&(f=a.substring(e,Va)),e=f,e!==E?(Wa=b,c=Ta(e),b=c):(Va=b,b=I)):(Va=b,b=I)))))),b}function B(){var a,b,c;if(a=Va,b=[],c=A(),c!==E)for(;c!==E;)b.push(c),c=A();else b=I;return b!==E&&(Wa=a,b=Ua(b)),a=b}var C,D=arguments.length>1?arguments[1]:{},E={},F={start:f},G=f,H=function(a){return{type:"messageFormatPattern",elements:a}},I=E,J=function(a){var b,c,d,e,f,g="";for(b=0,d=a.length;d>b;b+=1)for(e=a[b],c=0,f=e.length;f>c;c+=1)g+=e[c];return g},K=function(a){return{type:"messageTextElement",value:a}},L=/^[^ \t\n\r,.+={}#]/,M={type:"class",value:"[^ \\t\\n\\r,.+={}#]",description:"[^ \\t\\n\\r,.+={}#]"},N="{",O={type:"literal",value:"{",description:'"{"'},P=null,Q=",",R={type:"literal",value:",",description:'","'},S="}",T={type:"literal",value:"}",description:'"}"'},U=function(a,b){return{type:"argumentElement",id:a,format:b&&b[2]}},V="number",W={type:"literal",value:"number",description:'"number"'},X="date",Y={type:"literal",value:"date",description:'"date"'},Z="time",$={type:"literal",value:"time",description:'"time"'},_=function(a,b){return{type:a+"Format",style:b&&b[2]}},aa="plural",ba={type:"literal",value:"plural",description:'"plural"'},ca=function(a){return{type:a.type,ordinal:!1,offset:a.offset||0,options:a.options}},da="selectordinal",ea={type:"literal",value:"selectordinal",description:'"selectordinal"'},fa=function(a){return{type:a.type,ordinal:!0,offset:a.offset||0,options:a.options}},ga="select",ha={type:"literal",value:"select",description:'"select"'},ia=function(a){return{type:"selectFormat",options:a}},ja="=",ka={type:"literal",value:"=",description:'"="'},la=function(a,b){return{type:"optionalFormatPattern",selector:a,value:b}},ma="offset:",na={type:"literal",value:"offset:",description:'"offset:"'},oa=function(a){return a},pa=function(a,b){return{type:"pluralFormat",offset:a,options:b}},qa={type:"other",description:"whitespace"},ra=/^[ \t\n\r]/,sa={type:"class",value:"[ \\t\\n\\r]",description:"[ \\t\\n\\r]"},ta={type:"other",description:"optionalWhitespace"},ua=/^[0-9]/,va={type:"class",value:"[0-9]",description:"[0-9]"},wa=/^[0-9a-f]/i,xa={type:"class",value:"[0-9a-f]i",description:"[0-9a-f]i"},ya="0",za={type:"literal",value:"0",description:'"0"'},Aa=/^[1-9]/,Ba={type:"class",value:"[1-9]",description:"[1-9]"},Ca=function(a){return parseInt(a,10)},Da=/^[^{}\\\0-\x1F \t\n\r]/,Ea={type:"class",value:"[^{}\\\\\\0-\\x1F \\t\\n\\r]",description:"[^{}\\\\\\0-\\x1F \\t\\n\\r]"},Fa="\\\\",Ga={type:"literal",value:"\\\\",description:'"\\\\\\\\"'},Ha=function(){return"\\"},Ia="\\#",Ja={type:"literal",value:"\\#",description:'"\\\\#"'},Ka=function(){return"\\#"},La="\\{",Ma={type:"literal",value:"\\{",description:'"\\\\{"'},Na=function(){return"{"},Oa="\\}",Pa={type:"literal",value:"\\}",description:'"\\\\}"'},Qa=function(){return"}"},Ra="\\u",Sa={type:"literal",value:"\\u",description:'"\\\\u"'},Ta=function(a){return String.fromCharCode(parseInt(a,16))},Ua=function(a){return a.join("")},Va=0,Wa=0,Xa=0,Ya={line:1,column:1,seenCR:!1},Za=0,$a=[],_a=0;if("startRule"in D){if(!(D.startRule in F))throw new Error("Can't start parsing from rule \""+D.startRule+'".');G=F[D.startRule]}if(C=G(),C!==E&&Va===a.length)return C;throw C!==E&&Va<a.length&&d({type:"end",description:"end of input"}),e(null,$a,Za)}return a(b,Error),{SyntaxError:b,parse:c}}(),n=g;j(g,"formats",{enumerable:!0,value:{number:{currency:{style:"currency"},percent:{style:"percent"}},date:{"short":{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},"long":{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{"short":{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},"long":{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}}}),j(g,"__localeData__",{value:k(null)}),j(g,"__addLocaleData",{value:function(a){if(!a||!a.locale)throw new Error("Locale data provided to IntlMessageFormat is missing a `locale` property");g.__localeData__[a.locale.toLowerCase()]=a}}),j(g,"__parse",{value:m.parse}),j(g,"defaultLocale",{enumerable:!0,writable:!0,value:void 0}),g.prototype.resolvedOptions=function(){return{locale:this._locale}},g.prototype._compilePattern=function(a,b,c,d){var e=new l(b,c,d);return e.compile(a)},g.prototype._findPluralRuleFunction=function(a){for(var b=g.__localeData__,c=b[a.toLowerCase()];c;){if(c.pluralRuleFunction)return c.pluralRuleFunction;c=c.parentLocale&&b[c.parentLocale.toLowerCase()]}throw new Error("Locale data added to IntlMessageFormat is missing a `pluralRuleFunction` for :"+a)},g.prototype._format=function(a,b){var c,d,e,f,g,i,j="";for(c=0,d=a.length;d>c;c+=1)if(e=a[c],"string"!=typeof e){if(f=e.id,!b||!h.call(b,f))throw i=new Error("A value must be provided for: "+f),i.variableId=f,i;g=b[f],j+=e.options?this._format(e.getOption(g),b):e.format(g)}else j+=e;return j},g.prototype._mergeFormats=function(b,c){var d,e,f={};for(d in b)h.call(b,d)&&(f[d]=e=k(b[d]),c&&h.call(c,d)&&a(e,c[d]));return f},g.prototype._resolveLocale=function(a){"string"==typeof a&&(a=[a]),a=(a||[]).concat(g.defaultLocale);var b,c,d,e,f=g.__localeData__;for(b=0,c=a.length;c>b;b+=1)for(d=a[b].toLowerCase().split("-");d.length;){if(e=f[d.join("-")])return e.locale;d.pop()}var h=a.pop();throw new Error("No locale data has been added to IntlMessageFormat for: "+a.join(", ")+", or the default locale: "+h)};var o={locale:"en",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=!c[1],e=Number(c[0])==a,f=e&&c[0].slice(-1),g=e&&c[0].slice(-2);return b?1==f&&11!=g?"one":2==f&&12!=g?"two":3==f&&13!=g?"few":"other":1==a&&d?"one":"other"}};n.__addLocaleData(o),n.defaultLocale="en";var p=n;this.IntlMessageFormat=p}).call(this); | ||
(function(){"use strict";function a(a){var b,c,d,e,f=Array.prototype.slice.call(arguments,1);for(b=0,c=f.length;c>b;b+=1)if(d=f[b])for(e in d)h.call(d,e)&&(a[e]=d[e]);return a}function b(a,b,c){this.locales=a,this.formats=b,this.pluralFn=c}function c(a){this.id=a}function d(a,b,c,d,e){this.id=a,this.useOrdinal=b,this.offset=c,this.options=d,this.pluralFn=e}function e(a,b,c,d){this.id=a,this.offset=b,this.numberFormat=c,this.string=d}function f(a,b){this.id=a,this.options=b}function g(a,b,c){var d="string"==typeof a?g.__parse(a):a;if(!d||"messageFormatPattern"!==d.type)throw new TypeError("A message must be provided as a String or AST.");c=this._mergeFormats(g.formats,c),j(this,"_locale",{value:this._resolveLocale(b)});var e=this._findPluralRuleFunction(this._locale),f=this._compilePattern(d,b,c,e),h=this;this.format=function(b){try{return h._format(f,b)}catch(c){throw c.variableId?new Error("The intl string context variable '"+c.variableId+"' was not provided to the string '"+a+"'"):c}}}var h=Object.prototype.hasOwnProperty,i=function(){try{return!!Object.defineProperty({},"a",{})}catch(a){return!1}}(),j=(!i&&!Object.prototype.__defineGetter__,i?Object.defineProperty:function(a,b,c){"get"in c&&a.__defineGetter__?a.__defineGetter__(b,c.get):(!h.call(a,b)||"value"in c)&&(a[b]=c.value)}),k=Object.create||function(a,b){function c(){}var d,e;c.prototype=a,d=new c;for(e in b)h.call(b,e)&&j(d,e,b[e]);return d},l=b;b.prototype.compile=function(a){return this.pluralStack=[],this.currentPlural=null,this.pluralNumberFormat=null,this.compileMessage(a)},b.prototype.compileMessage=function(a){if(!a||"messageFormatPattern"!==a.type)throw new Error('Message AST is not of type: "messageFormatPattern"');var b,c,d,e=a.elements,f=[];for(b=0,c=e.length;c>b;b+=1)switch(d=e[b],d.type){case"messageTextElement":f.push(this.compileMessageText(d));break;case"argumentElement":f.push(this.compileArgument(d));break;default:throw new Error("Message element does not have a valid type")}return f},b.prototype.compileMessageText=function(a){return this.currentPlural&&/(^|[^\\])#/g.test(a.value)?(this.pluralNumberFormat||(this.pluralNumberFormat=new Intl.NumberFormat(this.locales)),new e(this.currentPlural.id,this.currentPlural.format.offset,this.pluralNumberFormat,a.value)):a.value.replace(/\\#/g,"#")},b.prototype.compileArgument=function(a){var b=a.format;if(!b)return new c(a.id);var e,g=this.formats,h=this.locales,i=this.pluralFn;switch(b.type){case"numberFormat":return e=g.number[b.style],{id:a.id,format:new Intl.NumberFormat(h,e).format};case"dateFormat":return e=g.date[b.style],{id:a.id,format:new Intl.DateTimeFormat(h,e).format};case"timeFormat":return e=g.time[b.style],{id:a.id,format:new Intl.DateTimeFormat(h,e).format};case"pluralFormat":return e=this.compileOptions(a),new d(a.id,b.ordinal,b.offset,e,i);case"selectFormat":return e=this.compileOptions(a),new f(a.id,e);default:throw new Error("Message element does not have a valid format type")}},b.prototype.compileOptions=function(a){var b=a.format,c=b.options,d={};this.pluralStack.push(this.currentPlural),this.currentPlural="pluralFormat"===b.type?a:null;var e,f,g;for(e=0,f=c.length;f>e;e+=1)g=c[e],d[g.selector]=this.compileMessage(g.value);return this.currentPlural=this.pluralStack.pop(),d},c.prototype.format=function(a){return a||"number"==typeof a?"string"==typeof a?a:String(a):""},d.prototype.getOption=function(a){var b=this.options,c=b["="+a]||b[this.pluralFn(a-this.offset,this.useOrdinal)];return c||b.other},e.prototype.format=function(a){var b=this.numberFormat.format(a-this.offset);return this.string.replace(/(^|[^\\])#/g,"$1"+b).replace(/\\#/g,"#")},f.prototype.getOption=function(a){var b=this.options;return b[a]||b.other};var m=function(){function a(a,b){function c(){this.constructor=a}c.prototype=b.prototype,a.prototype=new c}function b(a,c,d,e){this.message=a,this.expected=c,this.found=d,this.location=e,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,b)}function c(a){function c(){return e(Wa,Va)}function d(b){var c,d,e=Xa[b];if(e)return e;for(c=b-1;!Xa[c];)c--;for(e=Xa[c],e={line:e.line,column:e.column,seenCR:e.seenCR};b>c;)d=a.charAt(c),"\n"===d?(e.seenCR||e.line++,e.column=1,e.seenCR=!1):"\r"===d||"\u2028"===d||"\u2029"===d?(e.line++,e.column=1,e.seenCR=!0):(e.column++,e.seenCR=!1),c++;return Xa[b]=e,e}function e(a,b){var c=d(a),e=d(b);return{start:{offset:a,line:c.line,column:c.column},end:{offset:b,line:e.line,column:e.column}}}function f(a){Ya>Va||(Va>Ya&&(Ya=Va,Za=[]),Za.push(a))}function g(a,c,d,e){function f(a){var b=1;for(a.sort(function(a,b){return a.description<b.description?-1:a.description>b.description?1:0});b<a.length;)a[b-1]===a[b]?a.splice(b,1):b++}function g(a,b){function c(a){function b(a){return a.charCodeAt(0).toString(16).toUpperCase()}return a.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,function(a){return"\\x0"+b(a)}).replace(/[\x10-\x1F\x80-\xFF]/g,function(a){return"\\x"+b(a)}).replace(/[\u0100-\u0FFF]/g,function(a){return"\\u0"+b(a)}).replace(/[\u1000-\uFFFF]/g,function(a){return"\\u"+b(a)})}var d,e,f,g=new Array(a.length);for(f=0;f<a.length;f++)g[f]=a[f].description;return d=a.length>1?g.slice(0,-1).join(", ")+" or "+g[a.length-1]:g[0],e=b?'"'+c(b)+'"':"end of input","Expected "+d+" but "+e+" found."}return null!==c&&f(c),new b(null!==a?a:g(c,d),c,d,e)}function h(){var a;return a=i()}function i(){var a,b,c;for(a=Va,b=[],c=j();c!==G;)b.push(c),c=j();return b!==G&&(Wa=a,b=J(b)),a=b}function j(){var a;return a=l(),a===G&&(a=n()),a}function k(){var b,c,d,e,f,g;if(b=Va,c=[],d=Va,e=y(),e!==G?(f=D(),f!==G?(g=y(),g!==G?(e=[e,f,g],d=e):(Va=d,d=G)):(Va=d,d=G)):(Va=d,d=G),d!==G)for(;d!==G;)c.push(d),d=Va,e=y(),e!==G?(f=D(),f!==G?(g=y(),g!==G?(e=[e,f,g],d=e):(Va=d,d=G)):(Va=d,d=G)):(Va=d,d=G);else c=G;return c!==G&&(Wa=b,c=K(c)),b=c,b===G&&(b=Va,c=x(),b=c!==G?a.substring(b,Va):c),b}function l(){var a,b;return a=Va,b=k(),b!==G&&(Wa=a,b=L(b)),a=b}function m(){var b,c,d;if(b=B(),b===G){if(b=Va,c=[],M.test(a.charAt(Va))?(d=a.charAt(Va),Va++):(d=G,0===$a&&f(N)),d!==G)for(;d!==G;)c.push(d),M.test(a.charAt(Va))?(d=a.charAt(Va),Va++):(d=G,0===$a&&f(N));else c=G;b=c!==G?a.substring(b,Va):c}return b}function n(){var b,c,d,e,g,h,i,j,k;return b=Va,123===a.charCodeAt(Va)?(c=O,Va++):(c=G,0===$a&&f(P)),c!==G?(d=y(),d!==G?(e=m(),e!==G?(g=y(),g!==G?(h=Va,44===a.charCodeAt(Va)?(i=Q,Va++):(i=G,0===$a&&f(R)),i!==G?(j=y(),j!==G?(k=o(),k!==G?(i=[i,j,k],h=i):(Va=h,h=G)):(Va=h,h=G)):(Va=h,h=G),h===G&&(h=null),h!==G?(i=y(),i!==G?(125===a.charCodeAt(Va)?(j=S,Va++):(j=G,0===$a&&f(T)),j!==G?(Wa=b,c=U(e,h),b=c):(Va=b,b=G)):(Va=b,b=G)):(Va=b,b=G)):(Va=b,b=G)):(Va=b,b=G)):(Va=b,b=G)):(Va=b,b=G),b}function o(){var a;return a=p(),a===G&&(a=q(),a===G&&(a=r(),a===G&&(a=s()))),a}function p(){var b,c,d,e,g,h,i;return b=Va,a.substr(Va,6)===V?(c=V,Va+=6):(c=G,0===$a&&f(W)),c===G&&(a.substr(Va,4)===X?(c=X,Va+=4):(c=G,0===$a&&f(Y)),c===G&&(a.substr(Va,4)===Z?(c=Z,Va+=4):(c=G,0===$a&&f($)))),c!==G?(d=y(),d!==G?(e=Va,44===a.charCodeAt(Va)?(g=Q,Va++):(g=G,0===$a&&f(R)),g!==G?(h=y(),h!==G?(i=D(),i!==G?(g=[g,h,i],e=g):(Va=e,e=G)):(Va=e,e=G)):(Va=e,e=G),e===G&&(e=null),e!==G?(Wa=b,c=_(c,e),b=c):(Va=b,b=G)):(Va=b,b=G)):(Va=b,b=G),b}function q(){var b,c,d,e,g,h;return b=Va,a.substr(Va,6)===aa?(c=aa,Va+=6):(c=G,0===$a&&f(ba)),c!==G?(d=y(),d!==G?(44===a.charCodeAt(Va)?(e=Q,Va++):(e=G,0===$a&&f(R)),e!==G?(g=y(),g!==G?(h=w(),h!==G?(Wa=b,c=ca(h),b=c):(Va=b,b=G)):(Va=b,b=G)):(Va=b,b=G)):(Va=b,b=G)):(Va=b,b=G),b}function r(){var b,c,d,e,g,h;return b=Va,a.substr(Va,13)===da?(c=da,Va+=13):(c=G,0===$a&&f(ea)),c!==G?(d=y(),d!==G?(44===a.charCodeAt(Va)?(e=Q,Va++):(e=G,0===$a&&f(R)),e!==G?(g=y(),g!==G?(h=w(),h!==G?(Wa=b,c=fa(h),b=c):(Va=b,b=G)):(Va=b,b=G)):(Va=b,b=G)):(Va=b,b=G)):(Va=b,b=G),b}function s(){var b,c,d,e,g,h,i;if(b=Va,a.substr(Va,6)===ga?(c=ga,Va+=6):(c=G,0===$a&&f(ha)),c!==G)if(d=y(),d!==G)if(44===a.charCodeAt(Va)?(e=Q,Va++):(e=G,0===$a&&f(R)),e!==G)if(g=y(),g!==G){if(h=[],i=u(),i!==G)for(;i!==G;)h.push(i),i=u();else h=G;h!==G?(Wa=b,c=ia(h),b=c):(Va=b,b=G)}else Va=b,b=G;else Va=b,b=G;else Va=b,b=G;else Va=b,b=G;return b}function t(){var b,c,d,e;return b=Va,c=Va,61===a.charCodeAt(Va)?(d=ja,Va++):(d=G,0===$a&&f(ka)),d!==G?(e=B(),e!==G?(d=[d,e],c=d):(Va=c,c=G)):(Va=c,c=G),b=c!==G?a.substring(b,Va):c,b===G&&(b=D()),b}function u(){var b,c,d,e,g,h,j,k,l;return b=Va,c=y(),c!==G?(d=t(),d!==G?(e=y(),e!==G?(123===a.charCodeAt(Va)?(g=O,Va++):(g=G,0===$a&&f(P)),g!==G?(h=y(),h!==G?(j=i(),j!==G?(k=y(),k!==G?(125===a.charCodeAt(Va)?(l=S,Va++):(l=G,0===$a&&f(T)),l!==G?(Wa=b,c=la(d,j),b=c):(Va=b,b=G)):(Va=b,b=G)):(Va=b,b=G)):(Va=b,b=G)):(Va=b,b=G)):(Va=b,b=G)):(Va=b,b=G)):(Va=b,b=G),b}function v(){var b,c,d,e;return b=Va,a.substr(Va,7)===ma?(c=ma,Va+=7):(c=G,0===$a&&f(na)),c!==G?(d=y(),d!==G?(e=B(),e!==G?(Wa=b,c=oa(e),b=c):(Va=b,b=G)):(Va=b,b=G)):(Va=b,b=G),b}function w(){var a,b,c,d,e;if(a=Va,b=v(),b===G&&(b=null),b!==G)if(c=y(),c!==G){if(d=[],e=u(),e!==G)for(;e!==G;)d.push(e),e=u();else d=G;d!==G?(Wa=a,b=pa(b,d),a=b):(Va=a,a=G)}else Va=a,a=G;else Va=a,a=G;return a}function x(){var b,c;if($a++,b=[],ra.test(a.charAt(Va))?(c=a.charAt(Va),Va++):(c=G,0===$a&&f(sa)),c!==G)for(;c!==G;)b.push(c),ra.test(a.charAt(Va))?(c=a.charAt(Va),Va++):(c=G,0===$a&&f(sa));else b=G;return $a--,b===G&&(c=G,0===$a&&f(qa)),b}function y(){var b,c,d;for($a++,b=Va,c=[],d=x();d!==G;)c.push(d),d=x();return b=c!==G?a.substring(b,Va):c,$a--,b===G&&(c=G,0===$a&&f(ta)),b}function z(){var b;return ua.test(a.charAt(Va))?(b=a.charAt(Va),Va++):(b=G,0===$a&&f(va)),b}function A(){var b;return wa.test(a.charAt(Va))?(b=a.charAt(Va),Va++):(b=G,0===$a&&f(xa)),b}function B(){var b,c,d,e,g,h;if(b=Va,48===a.charCodeAt(Va)?(c=ya,Va++):(c=G,0===$a&&f(za)),c===G){if(c=Va,d=Va,Aa.test(a.charAt(Va))?(e=a.charAt(Va),Va++):(e=G,0===$a&&f(Ba)),e!==G){for(g=[],h=z();h!==G;)g.push(h),h=z();g!==G?(e=[e,g],d=e):(Va=d,d=G)}else Va=d,d=G;c=d!==G?a.substring(c,Va):d}return c!==G&&(Wa=b,c=Ca(c)),b=c}function C(){var b,c,d,e,g,h,i,j;return Da.test(a.charAt(Va))?(b=a.charAt(Va),Va++):(b=G,0===$a&&f(Ea)),b===G&&(b=Va,a.substr(Va,2)===Fa?(c=Fa,Va+=2):(c=G,0===$a&&f(Ga)),c!==G&&(Wa=b,c=Ha()),b=c,b===G&&(b=Va,a.substr(Va,2)===Ia?(c=Ia,Va+=2):(c=G,0===$a&&f(Ja)),c!==G&&(Wa=b,c=Ka()),b=c,b===G&&(b=Va,a.substr(Va,2)===La?(c=La,Va+=2):(c=G,0===$a&&f(Ma)),c!==G&&(Wa=b,c=Na()),b=c,b===G&&(b=Va,a.substr(Va,2)===Oa?(c=Oa,Va+=2):(c=G,0===$a&&f(Pa)),c!==G&&(Wa=b,c=Qa()),b=c,b===G&&(b=Va,a.substr(Va,2)===Ra?(c=Ra,Va+=2):(c=G,0===$a&&f(Sa)),c!==G?(d=Va,e=Va,g=A(),g!==G?(h=A(),h!==G?(i=A(),i!==G?(j=A(),j!==G?(g=[g,h,i,j],e=g):(Va=e,e=G)):(Va=e,e=G)):(Va=e,e=G)):(Va=e,e=G),d=e!==G?a.substring(d,Va):e,d!==G?(Wa=b,c=Ta(d),b=c):(Va=b,b=G)):(Va=b,b=G)))))),b}function D(){var a,b,c;if(a=Va,b=[],c=C(),c!==G)for(;c!==G;)b.push(c),c=C();else b=G;return b!==G&&(Wa=a,b=Ua(b)),a=b}var E,F=arguments.length>1?arguments[1]:{},G={},H={start:h},I=h,J=function(a){return{type:"messageFormatPattern",elements:a,location:c()}},K=function(a){var b,c,d,e,f,g="";for(b=0,d=a.length;d>b;b+=1)for(e=a[b],c=0,f=e.length;f>c;c+=1)g+=e[c];return g},L=function(a){return{type:"messageTextElement",value:a,location:c()}},M=/^[^ \t\n\r,.+={}#]/,N={type:"class",value:"[^ \\t\\n\\r,.+={}#]",description:"[^ \\t\\n\\r,.+={}#]"},O="{",P={type:"literal",value:"{",description:'"{"'},Q=",",R={type:"literal",value:",",description:'","'},S="}",T={type:"literal",value:"}",description:'"}"'},U=function(a,b){return{type:"argumentElement",id:a,format:b&&b[2],location:c()}},V="number",W={type:"literal",value:"number",description:'"number"'},X="date",Y={type:"literal",value:"date",description:'"date"'},Z="time",$={type:"literal",value:"time",description:'"time"'},_=function(a,b){return{type:a+"Format",style:b&&b[2],location:c()}},aa="plural",ba={type:"literal",value:"plural",description:'"plural"'},ca=function(a){return{type:a.type,ordinal:!1,offset:a.offset||0,options:a.options,location:c()}},da="selectordinal",ea={type:"literal",value:"selectordinal",description:'"selectordinal"'},fa=function(a){return{type:a.type,ordinal:!0,offset:a.offset||0,options:a.options,location:c()}},ga="select",ha={type:"literal",value:"select",description:'"select"'},ia=function(a){return{type:"selectFormat",options:a,location:c()}},ja="=",ka={type:"literal",value:"=",description:'"="'},la=function(a,b){return{type:"optionalFormatPattern",selector:a,value:b,location:c()}},ma="offset:",na={type:"literal",value:"offset:",description:'"offset:"'},oa=function(a){return a},pa=function(a,b){return{type:"pluralFormat",offset:a,options:b,location:c()}},qa={type:"other",description:"whitespace"},ra=/^[ \t\n\r]/,sa={type:"class",value:"[ \\t\\n\\r]",description:"[ \\t\\n\\r]"},ta={type:"other",description:"optionalWhitespace"},ua=/^[0-9]/,va={type:"class",value:"[0-9]",description:"[0-9]"},wa=/^[0-9a-f]/i,xa={type:"class",value:"[0-9a-f]i",description:"[0-9a-f]i"},ya="0",za={type:"literal",value:"0",description:'"0"'},Aa=/^[1-9]/,Ba={type:"class",value:"[1-9]",description:"[1-9]"},Ca=function(a){return parseInt(a,10)},Da=/^[^{}\\\0-\x1F \t\n\r]/,Ea={type:"class",value:"[^{}\\\\\\0-\\x1F\\x7f \\t\\n\\r]",description:"[^{}\\\\\\0-\\x1F\\x7f \\t\\n\\r]"},Fa="\\\\",Ga={type:"literal",value:"\\\\",description:'"\\\\\\\\"'},Ha=function(){return"\\"},Ia="\\#",Ja={type:"literal",value:"\\#",description:'"\\\\#"'},Ka=function(){return"\\#"},La="\\{",Ma={type:"literal",value:"\\{",description:'"\\\\{"'},Na=function(){return"{"},Oa="\\}",Pa={type:"literal",value:"\\}",description:'"\\\\}"'},Qa=function(){return"}"},Ra="\\u",Sa={type:"literal",value:"\\u",description:'"\\\\u"'},Ta=function(a){return String.fromCharCode(parseInt(a,16))},Ua=function(a){return a.join("")},Va=0,Wa=0,Xa=[{line:1,column:1,seenCR:!1}],Ya=0,Za=[],$a=0;if("startRule"in F){if(!(F.startRule in H))throw new Error("Can't start parsing from rule \""+F.startRule+'".');I=H[F.startRule]}if(E=I(),E!==G&&Va===a.length)return E;throw E!==G&&Va<a.length&&f({type:"end",description:"end of input"}),g(null,Za,Ya<a.length?a.charAt(Ya):null,Ya<a.length?e(Ya,Ya+1):e(Ya,Ya))}return a(b,Error),{SyntaxError:b,parse:c}}(),n=g;j(g,"formats",{enumerable:!0,value:{number:{currency:{style:"currency"},percent:{style:"percent"}},date:{"short":{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},"long":{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{"short":{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},"long":{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}}}),j(g,"__localeData__",{value:k(null)}),j(g,"__addLocaleData",{value:function(a){if(!a||!a.locale)throw new Error("Locale data provided to IntlMessageFormat is missing a `locale` property");g.__localeData__[a.locale.toLowerCase()]=a}}),j(g,"__parse",{value:m.parse}),j(g,"defaultLocale",{enumerable:!0,writable:!0,value:void 0}),g.prototype.resolvedOptions=function(){return{locale:this._locale}},g.prototype._compilePattern=function(a,b,c,d){var e=new l(b,c,d);return e.compile(a)},g.prototype._findPluralRuleFunction=function(a){for(var b=g.__localeData__,c=b[a.toLowerCase()];c;){if(c.pluralRuleFunction)return c.pluralRuleFunction;c=c.parentLocale&&b[c.parentLocale.toLowerCase()]}throw new Error("Locale data added to IntlMessageFormat is missing a `pluralRuleFunction` for :"+a)},g.prototype._format=function(a,b){var c,d,e,f,g,i,j="";for(c=0,d=a.length;d>c;c+=1)if(e=a[c],"string"!=typeof e){if(f=e.id,!b||!h.call(b,f))throw i=new Error("A value must be provided for: "+f),i.variableId=f,i;g=b[f],j+=e.options?this._format(e.getOption(g),b):e.format(g)}else j+=e;return j},g.prototype._mergeFormats=function(b,c){var d,e,f={};for(d in b)h.call(b,d)&&(f[d]=e=k(b[d]),c&&h.call(c,d)&&a(e,c[d]));return f},g.prototype._resolveLocale=function(a){"string"==typeof a&&(a=[a]),a=(a||[]).concat(g.defaultLocale);var b,c,d,e,f=g.__localeData__;for(b=0,c=a.length;c>b;b+=1)for(d=a[b].toLowerCase().split("-");d.length;){if(e=f[d.join("-")])return e.locale;d.pop()}var h=a.pop();throw new Error("No locale data has been added to IntlMessageFormat for: "+a.join(", ")+", or the default locale: "+h)};var o={locale:"en",pluralRuleFunction:function(a,b){var c=String(a).split("."),d=!c[1],e=Number(c[0])==a,f=e&&c[0].slice(-1),g=e&&c[0].slice(-2);return b?1==f&&11!=g?"one":2==f&&12!=g?"two":3==f&&13!=g?"few":"other":1==a&&d?"one":"other"}};n.__addLocaleData(o),n.defaultLocale="en";var p=n;this.IntlMessageFormat=p}).call(this); | ||
//# sourceMappingURL=intl-messageformat.min.js.map |
{ | ||
"name": "intl-messageformat", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "Formats ICU Message strings with number, date, plural, and select placeholders to create localized messages.", | ||
@@ -36,3 +36,3 @@ "keywords": [ | ||
"dependencies": { | ||
"intl-messageformat-parser": "1.2.0" | ||
"intl-messageformat-parser": "1.4.0" | ||
}, | ||
@@ -39,0 +39,0 @@ "devDependencies": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2006275
6441
+ Addedintl-messageformat-parser@1.4.0(transitive)
- Removedintl-messageformat-parser@1.2.0(transitive)