1894 lines
218 KiB
JavaScript
1894 lines
218 KiB
JavaScript
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
|
|
var Dumper, Inline, Utils;
|
|
|
|
Utils = require('./Utils');
|
|
|
|
Inline = require('./Inline');
|
|
|
|
Dumper = (function() {
|
|
function Dumper() {}
|
|
|
|
Dumper.indentation = 4;
|
|
|
|
Dumper.prototype.dump = function(input, inline, indent, exceptionOnInvalidType, objectEncoder) {
|
|
var i, key, len, output, prefix, value, willBeInlined;
|
|
if (inline == null) {
|
|
inline = 0;
|
|
}
|
|
if (indent == null) {
|
|
indent = 0;
|
|
}
|
|
if (exceptionOnInvalidType == null) {
|
|
exceptionOnInvalidType = false;
|
|
}
|
|
if (objectEncoder == null) {
|
|
objectEncoder = null;
|
|
}
|
|
output = '';
|
|
prefix = (indent ? Utils.strRepeat(' ', indent) : '');
|
|
if (inline <= 0 || typeof input !== 'object' || input instanceof Date || Utils.isEmpty(input)) {
|
|
output += prefix + Inline.dump(input, exceptionOnInvalidType, objectEncoder);
|
|
} else {
|
|
if (input instanceof Array) {
|
|
for (i = 0, len = input.length; i < len; i++) {
|
|
value = input[i];
|
|
willBeInlined = inline - 1 <= 0 || typeof value !== 'object' || Utils.isEmpty(value);
|
|
output += prefix + '-' + (willBeInlined ? ' ' : "\n") + this.dump(value, inline - 1, (willBeInlined ? 0 : indent + this.indentation), exceptionOnInvalidType, objectEncoder) + (willBeInlined ? "\n" : '');
|
|
}
|
|
} else {
|
|
for (key in input) {
|
|
value = input[key];
|
|
willBeInlined = inline - 1 <= 0 || typeof value !== 'object' || Utils.isEmpty(value);
|
|
output += prefix + Inline.dump(key, exceptionOnInvalidType, objectEncoder) + ':' + (willBeInlined ? ' ' : "\n") + this.dump(value, inline - 1, (willBeInlined ? 0 : indent + this.indentation), exceptionOnInvalidType, objectEncoder) + (willBeInlined ? "\n" : '');
|
|
}
|
|
}
|
|
}
|
|
return output;
|
|
};
|
|
|
|
return Dumper;
|
|
|
|
})();
|
|
|
|
module.exports = Dumper;
|
|
|
|
|
|
},{"./Inline":6,"./Utils":10}],2:[function(require,module,exports){
|
|
var Escaper, Pattern;
|
|
|
|
Pattern = require('./Pattern');
|
|
|
|
Escaper = (function() {
|
|
var ch;
|
|
|
|
function Escaper() {}
|
|
|
|
Escaper.LIST_ESCAPEES = ['\\', '\\\\', '\\"', '"', "\x00", "\x01", "\x02", "\x03", "\x04", "\x05", "\x06", "\x07", "\x08", "\x09", "\x0a", "\x0b", "\x0c", "\x0d", "\x0e", "\x0f", "\x10", "\x11", "\x12", "\x13", "\x14", "\x15", "\x16", "\x17", "\x18", "\x19", "\x1a", "\x1b", "\x1c", "\x1d", "\x1e", "\x1f", (ch = String.fromCharCode)(0x0085), ch(0x00A0), ch(0x2028), ch(0x2029)];
|
|
|
|
Escaper.LIST_ESCAPED = ['\\\\', '\\"', '\\"', '\\"', "\\0", "\\x01", "\\x02", "\\x03", "\\x04", "\\x05", "\\x06", "\\a", "\\b", "\\t", "\\n", "\\v", "\\f", "\\r", "\\x0e", "\\x0f", "\\x10", "\\x11", "\\x12", "\\x13", "\\x14", "\\x15", "\\x16", "\\x17", "\\x18", "\\x19", "\\x1a", "\\e", "\\x1c", "\\x1d", "\\x1e", "\\x1f", "\\N", "\\_", "\\L", "\\P"];
|
|
|
|
Escaper.MAPPING_ESCAPEES_TO_ESCAPED = (function() {
|
|
var i, j, mapping, ref;
|
|
mapping = {};
|
|
for (i = j = 0, ref = Escaper.LIST_ESCAPEES.length; 0 <= ref ? j < ref : j > ref; i = 0 <= ref ? ++j : --j) {
|
|
mapping[Escaper.LIST_ESCAPEES[i]] = Escaper.LIST_ESCAPED[i];
|
|
}
|
|
return mapping;
|
|
})();
|
|
|
|
Escaper.PATTERN_CHARACTERS_TO_ESCAPE = new Pattern('[\\x00-\\x1f]|\xc2\x85|\xc2\xa0|\xe2\x80\xa8|\xe2\x80\xa9');
|
|
|
|
Escaper.PATTERN_MAPPING_ESCAPEES = new Pattern(Escaper.LIST_ESCAPEES.join('|').split('\\').join('\\\\'));
|
|
|
|
Escaper.PATTERN_SINGLE_QUOTING = new Pattern('[\\s\'":{}[\\],&*#?]|^[-?|<>=!%@`]');
|
|
|
|
Escaper.requiresDoubleQuoting = function(value) {
|
|
return this.PATTERN_CHARACTERS_TO_ESCAPE.test(value);
|
|
};
|
|
|
|
Escaper.escapeWithDoubleQuotes = function(value) {
|
|
var result;
|
|
result = this.PATTERN_MAPPING_ESCAPEES.replace(value, (function(_this) {
|
|
return function(str) {
|
|
return _this.MAPPING_ESCAPEES_TO_ESCAPED[str];
|
|
};
|
|
})(this));
|
|
return '"' + result + '"';
|
|
};
|
|
|
|
Escaper.requiresSingleQuoting = function(value) {
|
|
return this.PATTERN_SINGLE_QUOTING.test(value);
|
|
};
|
|
|
|
Escaper.escapeWithSingleQuotes = function(value) {
|
|
return "'" + value.replace(/'/g, "''") + "'";
|
|
};
|
|
|
|
return Escaper;
|
|
|
|
})();
|
|
|
|
module.exports = Escaper;
|
|
|
|
|
|
},{"./Pattern":8}],3:[function(require,module,exports){
|
|
var DumpException,
|
|
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
|
|
hasProp = {}.hasOwnProperty;
|
|
|
|
DumpException = (function(superClass) {
|
|
extend(DumpException, superClass);
|
|
|
|
function DumpException(message, parsedLine, snippet) {
|
|
this.message = message;
|
|
this.parsedLine = parsedLine;
|
|
this.snippet = snippet;
|
|
}
|
|
|
|
DumpException.prototype.toString = function() {
|
|
if ((this.parsedLine != null) && (this.snippet != null)) {
|
|
return '<DumpException> ' + this.message + ' (line ' + this.parsedLine + ': \'' + this.snippet + '\')';
|
|
} else {
|
|
return '<DumpException> ' + this.message;
|
|
}
|
|
};
|
|
|
|
return DumpException;
|
|
|
|
})(Error);
|
|
|
|
module.exports = DumpException;
|
|
|
|
|
|
},{}],4:[function(require,module,exports){
|
|
var ParseException,
|
|
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
|
|
hasProp = {}.hasOwnProperty;
|
|
|
|
ParseException = (function(superClass) {
|
|
extend(ParseException, superClass);
|
|
|
|
function ParseException(message, parsedLine, snippet) {
|
|
this.message = message;
|
|
this.parsedLine = parsedLine;
|
|
this.snippet = snippet;
|
|
}
|
|
|
|
ParseException.prototype.toString = function() {
|
|
if ((this.parsedLine != null) && (this.snippet != null)) {
|
|
return '<ParseException> ' + this.message + ' (line ' + this.parsedLine + ': \'' + this.snippet + '\')';
|
|
} else {
|
|
return '<ParseException> ' + this.message;
|
|
}
|
|
};
|
|
|
|
return ParseException;
|
|
|
|
})(Error);
|
|
|
|
module.exports = ParseException;
|
|
|
|
|
|
},{}],5:[function(require,module,exports){
|
|
var ParseMore,
|
|
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
|
|
hasProp = {}.hasOwnProperty;
|
|
|
|
ParseMore = (function(superClass) {
|
|
extend(ParseMore, superClass);
|
|
|
|
function ParseMore(message, parsedLine, snippet) {
|
|
this.message = message;
|
|
this.parsedLine = parsedLine;
|
|
this.snippet = snippet;
|
|
}
|
|
|
|
ParseMore.prototype.toString = function() {
|
|
if ((this.parsedLine != null) && (this.snippet != null)) {
|
|
return '<ParseMore> ' + this.message + ' (line ' + this.parsedLine + ': \'' + this.snippet + '\')';
|
|
} else {
|
|
return '<ParseMore> ' + this.message;
|
|
}
|
|
};
|
|
|
|
return ParseMore;
|
|
|
|
})(Error);
|
|
|
|
module.exports = ParseMore;
|
|
|
|
|
|
},{}],6:[function(require,module,exports){
|
|
var DumpException, Escaper, Inline, ParseException, ParseMore, Pattern, Unescaper, Utils,
|
|
indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
|
|
|
|
Pattern = require('./Pattern');
|
|
|
|
Unescaper = require('./Unescaper');
|
|
|
|
Escaper = require('./Escaper');
|
|
|
|
Utils = require('./Utils');
|
|
|
|
ParseException = require('./Exception/ParseException');
|
|
|
|
ParseMore = require('./Exception/ParseMore');
|
|
|
|
DumpException = require('./Exception/DumpException');
|
|
|
|
Inline = (function() {
|
|
function Inline() {}
|
|
|
|
Inline.REGEX_QUOTED_STRING = '(?:"(?:[^"\\\\]*(?:\\\\.[^"\\\\]*)*)"|\'(?:[^\']*(?:\'\'[^\']*)*)\')';
|
|
|
|
Inline.PATTERN_TRAILING_COMMENTS = new Pattern('^\\s*#.*$');
|
|
|
|
Inline.PATTERN_QUOTED_SCALAR = new Pattern('^' + Inline.REGEX_QUOTED_STRING);
|
|
|
|
Inline.PATTERN_THOUSAND_NUMERIC_SCALAR = new Pattern('^(-|\\+)?[0-9,]+(\\.[0-9]+)?$');
|
|
|
|
Inline.PATTERN_SCALAR_BY_DELIMITERS = {};
|
|
|
|
Inline.settings = {};
|
|
|
|
Inline.configure = function(exceptionOnInvalidType, objectDecoder) {
|
|
if (exceptionOnInvalidType == null) {
|
|
exceptionOnInvalidType = null;
|
|
}
|
|
if (objectDecoder == null) {
|
|
objectDecoder = null;
|
|
}
|
|
this.settings.exceptionOnInvalidType = exceptionOnInvalidType;
|
|
this.settings.objectDecoder = objectDecoder;
|
|
};
|
|
|
|
Inline.parse = function(value, exceptionOnInvalidType, objectDecoder) {
|
|
var context, result;
|
|
if (exceptionOnInvalidType == null) {
|
|
exceptionOnInvalidType = false;
|
|
}
|
|
if (objectDecoder == null) {
|
|
objectDecoder = null;
|
|
}
|
|
this.settings.exceptionOnInvalidType = exceptionOnInvalidType;
|
|
this.settings.objectDecoder = objectDecoder;
|
|
if (value == null) {
|
|
return '';
|
|
}
|
|
value = Utils.trim(value);
|
|
if (0 === value.length) {
|
|
return '';
|
|
}
|
|
context = {
|
|
exceptionOnInvalidType: exceptionOnInvalidType,
|
|
objectDecoder: objectDecoder,
|
|
i: 0
|
|
};
|
|
switch (value.charAt(0)) {
|
|
case '[':
|
|
result = this.parseSequence(value, context);
|
|
++context.i;
|
|
break;
|
|
case '{':
|
|
result = this.parseMapping(value, context);
|
|
++context.i;
|
|
break;
|
|
default:
|
|
result = this.parseScalar(value, null, ['"', "'"], context);
|
|
}
|
|
if (this.PATTERN_TRAILING_COMMENTS.replace(value.slice(context.i), '') !== '') {
|
|
throw new ParseException('Unexpected characters near "' + value.slice(context.i) + '".');
|
|
}
|
|
return result;
|
|
};
|
|
|
|
Inline.dump = function(value, exceptionOnInvalidType, objectEncoder) {
|
|
var ref, result, type;
|
|
if (exceptionOnInvalidType == null) {
|
|
exceptionOnInvalidType = false;
|
|
}
|
|
if (objectEncoder == null) {
|
|
objectEncoder = null;
|
|
}
|
|
if (value == null) {
|
|
return 'null';
|
|
}
|
|
type = typeof value;
|
|
if (type === 'object') {
|
|
if (value instanceof Date) {
|
|
return value.toISOString();
|
|
} else if (objectEncoder != null) {
|
|
result = objectEncoder(value);
|
|
if (typeof result === 'string' || (result != null)) {
|
|
return result;
|
|
}
|
|
}
|
|
return this.dumpObject(value);
|
|
}
|
|
if (type === 'boolean') {
|
|
return (value ? 'true' : 'false');
|
|
}
|
|
if (Utils.isDigits(value)) {
|
|
return (type === 'string' ? "'" + value + "'" : String(parseInt(value)));
|
|
}
|
|
if (Utils.isNumeric(value)) {
|
|
return (type === 'string' ? "'" + value + "'" : String(parseFloat(value)));
|
|
}
|
|
if (type === 'number') {
|
|
return (value === Infinity ? '.Inf' : (value === -Infinity ? '-.Inf' : (isNaN(value) ? '.NaN' : value)));
|
|
}
|
|
if (Escaper.requiresDoubleQuoting(value)) {
|
|
return Escaper.escapeWithDoubleQuotes(value);
|
|
}
|
|
if (Escaper.requiresSingleQuoting(value)) {
|
|
return Escaper.escapeWithSingleQuotes(value);
|
|
}
|
|
if ('' === value) {
|
|
return '""';
|
|
}
|
|
if (Utils.PATTERN_DATE.test(value)) {
|
|
return "'" + value + "'";
|
|
}
|
|
if ((ref = value.toLowerCase()) === 'null' || ref === '~' || ref === 'true' || ref === 'false') {
|
|
return "'" + value + "'";
|
|
}
|
|
return value;
|
|
};
|
|
|
|
Inline.dumpObject = function(value, exceptionOnInvalidType, objectSupport) {
|
|
var j, key, len1, output, val;
|
|
if (objectSupport == null) {
|
|
objectSupport = null;
|
|
}
|
|
if (value instanceof Array) {
|
|
output = [];
|
|
for (j = 0, len1 = value.length; j < len1; j++) {
|
|
val = value[j];
|
|
output.push(this.dump(val));
|
|
}
|
|
return '[' + output.join(', ') + ']';
|
|
} else {
|
|
output = [];
|
|
for (key in value) {
|
|
val = value[key];
|
|
output.push(this.dump(key) + ': ' + this.dump(val));
|
|
}
|
|
return '{' + output.join(', ') + '}';
|
|
}
|
|
};
|
|
|
|
Inline.parseScalar = function(scalar, delimiters, stringDelimiters, context, evaluate) {
|
|
var i, joinedDelimiters, match, output, pattern, ref, ref1, strpos, tmp;
|
|
if (delimiters == null) {
|
|
delimiters = null;
|
|
}
|
|
if (stringDelimiters == null) {
|
|
stringDelimiters = ['"', "'"];
|
|
}
|
|
if (context == null) {
|
|
context = null;
|
|
}
|
|
if (evaluate == null) {
|
|
evaluate = true;
|
|
}
|
|
if (context == null) {
|
|
context = {
|
|
exceptionOnInvalidType: this.settings.exceptionOnInvalidType,
|
|
objectDecoder: this.settings.objectDecoder,
|
|
i: 0
|
|
};
|
|
}
|
|
i = context.i;
|
|
if (ref = scalar.charAt(i), indexOf.call(stringDelimiters, ref) >= 0) {
|
|
output = this.parseQuotedScalar(scalar, context);
|
|
i = context.i;
|
|
if (delimiters != null) {
|
|
tmp = Utils.ltrim(scalar.slice(i), ' ');
|
|
if (!(ref1 = tmp.charAt(0), indexOf.call(delimiters, ref1) >= 0)) {
|
|
throw new ParseException('Unexpected characters (' + scalar.slice(i) + ').');
|
|
}
|
|
}
|
|
} else {
|
|
if (!delimiters) {
|
|
output = scalar.slice(i);
|
|
i += output.length;
|
|
strpos = output.indexOf(' #');
|
|
if (strpos !== -1) {
|
|
output = Utils.rtrim(output.slice(0, strpos));
|
|
}
|
|
} else {
|
|
joinedDelimiters = delimiters.join('|');
|
|
pattern = this.PATTERN_SCALAR_BY_DELIMITERS[joinedDelimiters];
|
|
if (pattern == null) {
|
|
pattern = new Pattern('^(.+?)(' + joinedDelimiters + ')');
|
|
this.PATTERN_SCALAR_BY_DELIMITERS[joinedDelimiters] = pattern;
|
|
}
|
|
if (match = pattern.exec(scalar.slice(i))) {
|
|
output = match[1];
|
|
i += output.length;
|
|
} else {
|
|
throw new ParseException('Malformed inline YAML string (' + scalar + ').');
|
|
}
|
|
}
|
|
if (evaluate) {
|
|
output = this.evaluateScalar(output, context);
|
|
}
|
|
}
|
|
context.i = i;
|
|
return output;
|
|
};
|
|
|
|
Inline.parseQuotedScalar = function(scalar, context) {
|
|
var i, match, output;
|
|
i = context.i;
|
|
if (!(match = this.PATTERN_QUOTED_SCALAR.exec(scalar.slice(i)))) {
|
|
throw new ParseMore('Malformed inline YAML string (' + scalar.slice(i) + ').');
|
|
}
|
|
output = match[0].substr(1, match[0].length - 2);
|
|
if ('"' === scalar.charAt(i)) {
|
|
output = Unescaper.unescapeDoubleQuotedString(output);
|
|
} else {
|
|
output = Unescaper.unescapeSingleQuotedString(output);
|
|
}
|
|
i += match[0].length;
|
|
context.i = i;
|
|
return output;
|
|
};
|
|
|
|
Inline.parseSequence = function(sequence, context) {
|
|
var e, error, i, isQuoted, len, output, ref, value;
|
|
output = [];
|
|
len = sequence.length;
|
|
i = context.i;
|
|
i += 1;
|
|
while (i < len) {
|
|
context.i = i;
|
|
switch (sequence.charAt(i)) {
|
|
case '[':
|
|
output.push(this.parseSequence(sequence, context));
|
|
i = context.i;
|
|
break;
|
|
case '{':
|
|
output.push(this.parseMapping(sequence, context));
|
|
i = context.i;
|
|
break;
|
|
case ']':
|
|
return output;
|
|
case ',':
|
|
case ' ':
|
|
case "\n":
|
|
break;
|
|
default:
|
|
isQuoted = ((ref = sequence.charAt(i)) === '"' || ref === "'");
|
|
value = this.parseScalar(sequence, [',', ']'], ['"', "'"], context);
|
|
i = context.i;
|
|
if (!isQuoted && typeof value === 'string' && (value.indexOf(': ') !== -1 || value.indexOf(":\n") !== -1)) {
|
|
try {
|
|
value = this.parseMapping('{' + value + '}');
|
|
} catch (error) {
|
|
e = error;
|
|
}
|
|
}
|
|
output.push(value);
|
|
--i;
|
|
}
|
|
++i;
|
|
}
|
|
throw new ParseMore('Malformed inline YAML string ' + sequence);
|
|
};
|
|
|
|
Inline.parseMapping = function(mapping, context) {
|
|
var done, i, key, len, output, shouldContinueWhileLoop, value;
|
|
output = {};
|
|
len = mapping.length;
|
|
i = context.i;
|
|
i += 1;
|
|
shouldContinueWhileLoop = false;
|
|
while (i < len) {
|
|
context.i = i;
|
|
switch (mapping.charAt(i)) {
|
|
case ' ':
|
|
case ',':
|
|
case "\n":
|
|
++i;
|
|
context.i = i;
|
|
shouldContinueWhileLoop = true;
|
|
break;
|
|
case '}':
|
|
return output;
|
|
}
|
|
if (shouldContinueWhileLoop) {
|
|
shouldContinueWhileLoop = false;
|
|
continue;
|
|
}
|
|
key = this.parseScalar(mapping, [':', ' ', "\n"], ['"', "'"], context, false);
|
|
i = context.i;
|
|
done = false;
|
|
while (i < len) {
|
|
context.i = i;
|
|
switch (mapping.charAt(i)) {
|
|
case '[':
|
|
value = this.parseSequence(mapping, context);
|
|
i = context.i;
|
|
if (output[key] === void 0) {
|
|
output[key] = value;
|
|
}
|
|
done = true;
|
|
break;
|
|
case '{':
|
|
value = this.parseMapping(mapping, context);
|
|
i = context.i;
|
|
if (output[key] === void 0) {
|
|
output[key] = value;
|
|
}
|
|
done = true;
|
|
break;
|
|
case ':':
|
|
case ' ':
|
|
case "\n":
|
|
break;
|
|
default:
|
|
value = this.parseScalar(mapping, [',', '}'], ['"', "'"], context);
|
|
i = context.i;
|
|
if (output[key] === void 0) {
|
|
output[key] = value;
|
|
}
|
|
done = true;
|
|
--i;
|
|
}
|
|
++i;
|
|
if (done) {
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
throw new ParseMore('Malformed inline YAML string ' + mapping);
|
|
};
|
|
|
|
Inline.evaluateScalar = function(scalar, context) {
|
|
var cast, date, exceptionOnInvalidType, firstChar, firstSpace, firstWord, objectDecoder, raw, scalarLower, subValue, trimmedScalar;
|
|
scalar = Utils.trim(scalar);
|
|
scalarLower = scalar.toLowerCase();
|
|
switch (scalarLower) {
|
|
case 'null':
|
|
case '':
|
|
case '~':
|
|
return null;
|
|
case 'true':
|
|
return true;
|
|
case 'false':
|
|
return false;
|
|
case '.inf':
|
|
return Infinity;
|
|
case '.nan':
|
|
return NaN;
|
|
case '-.inf':
|
|
return Infinity;
|
|
default:
|
|
firstChar = scalarLower.charAt(0);
|
|
switch (firstChar) {
|
|
case '!':
|
|
firstSpace = scalar.indexOf(' ');
|
|
if (firstSpace === -1) {
|
|
firstWord = scalarLower;
|
|
} else {
|
|
firstWord = scalarLower.slice(0, firstSpace);
|
|
}
|
|
switch (firstWord) {
|
|
case '!':
|
|
if (firstSpace !== -1) {
|
|
return parseInt(this.parseScalar(scalar.slice(2)));
|
|
}
|
|
return null;
|
|
case '!str':
|
|
return Utils.ltrim(scalar.slice(4));
|
|
case '!!str':
|
|
return Utils.ltrim(scalar.slice(5));
|
|
case '!!int':
|
|
return parseInt(this.parseScalar(scalar.slice(5)));
|
|
case '!!bool':
|
|
return Utils.parseBoolean(this.parseScalar(scalar.slice(6)), false);
|
|
case '!!float':
|
|
return parseFloat(this.parseScalar(scalar.slice(7)));
|
|
case '!!timestamp':
|
|
return Utils.stringToDate(Utils.ltrim(scalar.slice(11)));
|
|
default:
|
|
if (context == null) {
|
|
context = {
|
|
exceptionOnInvalidType: this.settings.exceptionOnInvalidType,
|
|
objectDecoder: this.settings.objectDecoder,
|
|
i: 0
|
|
};
|
|
}
|
|
objectDecoder = context.objectDecoder, exceptionOnInvalidType = context.exceptionOnInvalidType;
|
|
if (objectDecoder) {
|
|
trimmedScalar = Utils.rtrim(scalar);
|
|
firstSpace = trimmedScalar.indexOf(' ');
|
|
if (firstSpace === -1) {
|
|
return objectDecoder(trimmedScalar, null);
|
|
} else {
|
|
subValue = Utils.ltrim(trimmedScalar.slice(firstSpace + 1));
|
|
if (!(subValue.length > 0)) {
|
|
subValue = null;
|
|
}
|
|
return objectDecoder(trimmedScalar.slice(0, firstSpace), subValue);
|
|
}
|
|
}
|
|
if (exceptionOnInvalidType) {
|
|
throw new ParseException('Custom object support when parsing a YAML file has been disabled.');
|
|
}
|
|
return null;
|
|
}
|
|
break;
|
|
case '0':
|
|
if ('0x' === scalar.slice(0, 2)) {
|
|
return Utils.hexDec(scalar);
|
|
} else if (Utils.isDigits(scalar)) {
|
|
return Utils.octDec(scalar);
|
|
} else if (Utils.isNumeric(scalar)) {
|
|
return parseFloat(scalar);
|
|
} else {
|
|
return scalar;
|
|
}
|
|
break;
|
|
case '+':
|
|
if (Utils.isDigits(scalar)) {
|
|
raw = scalar;
|
|
cast = parseInt(raw);
|
|
if (raw === String(cast)) {
|
|
return cast;
|
|
} else {
|
|
return raw;
|
|
}
|
|
} else if (Utils.isNumeric(scalar)) {
|
|
return parseFloat(scalar);
|
|
} else if (this.PATTERN_THOUSAND_NUMERIC_SCALAR.test(scalar)) {
|
|
return parseFloat(scalar.replace(',', ''));
|
|
}
|
|
return scalar;
|
|
case '-':
|
|
if (Utils.isDigits(scalar.slice(1))) {
|
|
if ('0' === scalar.charAt(1)) {
|
|
return -Utils.octDec(scalar.slice(1));
|
|
} else {
|
|
raw = scalar.slice(1);
|
|
cast = parseInt(raw);
|
|
if (raw === String(cast)) {
|
|
return -cast;
|
|
} else {
|
|
return -raw;
|
|
}
|
|
}
|
|
} else if (Utils.isNumeric(scalar)) {
|
|
return parseFloat(scalar);
|
|
} else if (this.PATTERN_THOUSAND_NUMERIC_SCALAR.test(scalar)) {
|
|
return parseFloat(scalar.replace(',', ''));
|
|
}
|
|
return scalar;
|
|
default:
|
|
if (date = Utils.stringToDate(scalar)) {
|
|
return date;
|
|
} else if (Utils.isNumeric(scalar)) {
|
|
return parseFloat(scalar);
|
|
} else if (this.PATTERN_THOUSAND_NUMERIC_SCALAR.test(scalar)) {
|
|
return parseFloat(scalar.replace(',', ''));
|
|
}
|
|
return scalar;
|
|
}
|
|
}
|
|
};
|
|
|
|
return Inline;
|
|
|
|
})();
|
|
|
|
module.exports = Inline;
|
|
|
|
|
|
},{"./Escaper":2,"./Exception/DumpException":3,"./Exception/ParseException":4,"./Exception/ParseMore":5,"./Pattern":8,"./Unescaper":9,"./Utils":10}],7:[function(require,module,exports){
|
|
var Inline, ParseException, ParseMore, Parser, Pattern, Utils;
|
|
|
|
Inline = require('./Inline');
|
|
|
|
Pattern = require('./Pattern');
|
|
|
|
Utils = require('./Utils');
|
|
|
|
ParseException = require('./Exception/ParseException');
|
|
|
|
ParseMore = require('./Exception/ParseMore');
|
|
|
|
Parser = (function() {
|
|
Parser.prototype.PATTERN_FOLDED_SCALAR_ALL = new Pattern('^(?:(?<type>![^\\|>]*)\\s+)?(?<separator>\\||>)(?<modifiers>\\+|\\-|\\d+|\\+\\d+|\\-\\d+|\\d+\\+|\\d+\\-)?(?<comments> +#.*)?$');
|
|
|
|
Parser.prototype.PATTERN_FOLDED_SCALAR_END = new Pattern('(?<separator>\\||>)(?<modifiers>\\+|\\-|\\d+|\\+\\d+|\\-\\d+|\\d+\\+|\\d+\\-)?(?<comments> +#.*)?$');
|
|
|
|
Parser.prototype.PATTERN_SEQUENCE_ITEM = new Pattern('^\\-((?<leadspaces>\\s+)(?<value>.+?))?\\s*$');
|
|
|
|
Parser.prototype.PATTERN_ANCHOR_VALUE = new Pattern('^&(?<ref>[^ ]+) *(?<value>.*)');
|
|
|
|
Parser.prototype.PATTERN_COMPACT_NOTATION = new Pattern('^(?<key>' + Inline.REGEX_QUOTED_STRING + '|[^ \'"\\{\\[].*?) *\\:(\\s+(?<value>.+?))?\\s*$');
|
|
|
|
Parser.prototype.PATTERN_MAPPING_ITEM = new Pattern('^(?<key>' + Inline.REGEX_QUOTED_STRING + '|[^ \'"\\[\\{].*?) *\\:(\\s+(?<value>.+?))?\\s*$');
|
|
|
|
Parser.prototype.PATTERN_DECIMAL = new Pattern('\\d+');
|
|
|
|
Parser.prototype.PATTERN_INDENT_SPACES = new Pattern('^ +');
|
|
|
|
Parser.prototype.PATTERN_TRAILING_LINES = new Pattern('(\n*)$');
|
|
|
|
Parser.prototype.PATTERN_YAML_HEADER = new Pattern('^\\%YAML[: ][\\d\\.]+.*\n', 'm');
|
|
|
|
Parser.prototype.PATTERN_LEADING_COMMENTS = new Pattern('^(\\#.*?\n)+', 'm');
|
|
|
|
Parser.prototype.PATTERN_DOCUMENT_MARKER_START = new Pattern('^\\-\\-\\-.*?\n', 'm');
|
|
|
|
Parser.prototype.PATTERN_DOCUMENT_MARKER_END = new Pattern('^\\.\\.\\.\\s*$', 'm');
|
|
|
|
Parser.prototype.PATTERN_FOLDED_SCALAR_BY_INDENTATION = {};
|
|
|
|
Parser.prototype.CONTEXT_NONE = 0;
|
|
|
|
Parser.prototype.CONTEXT_SEQUENCE = 1;
|
|
|
|
Parser.prototype.CONTEXT_MAPPING = 2;
|
|
|
|
function Parser(offset) {
|
|
this.offset = offset != null ? offset : 0;
|
|
this.lines = [];
|
|
this.currentLineNb = -1;
|
|
this.currentLine = '';
|
|
this.refs = {};
|
|
}
|
|
|
|
Parser.prototype.parse = function(value, exceptionOnInvalidType, objectDecoder) {
|
|
var alias, allowOverwrite, block, c, context, data, e, error, error1, error2, first, i, indent, isRef, j, k, key, l, lastKey, len, len1, len2, len3, lineCount, m, matches, mergeNode, n, name, parsed, parsedItem, parser, ref, ref1, ref2, refName, refValue, val, values;
|
|
if (exceptionOnInvalidType == null) {
|
|
exceptionOnInvalidType = false;
|
|
}
|
|
if (objectDecoder == null) {
|
|
objectDecoder = null;
|
|
}
|
|
this.currentLineNb = -1;
|
|
this.currentLine = '';
|
|
this.lines = this.cleanup(value).split("\n");
|
|
data = null;
|
|
context = this.CONTEXT_NONE;
|
|
allowOverwrite = false;
|
|
while (this.moveToNextLine()) {
|
|
if (this.isCurrentLineEmpty()) {
|
|
continue;
|
|
}
|
|
if ("\t" === this.currentLine[0]) {
|
|
throw new ParseException('A YAML file cannot contain tabs as indentation.', this.getRealCurrentLineNb() + 1, this.currentLine);
|
|
}
|
|
isRef = mergeNode = false;
|
|
if (values = this.PATTERN_SEQUENCE_ITEM.exec(this.currentLine)) {
|
|
if (this.CONTEXT_MAPPING === context) {
|
|
throw new ParseException('You cannot define a sequence item when in a mapping');
|
|
}
|
|
context = this.CONTEXT_SEQUENCE;
|
|
if (data == null) {
|
|
data = [];
|
|
}
|
|
if ((values.value != null) && (matches = this.PATTERN_ANCHOR_VALUE.exec(values.value))) {
|
|
isRef = matches.ref;
|
|
values.value = matches.value;
|
|
}
|
|
if (!(values.value != null) || '' === Utils.trim(values.value, ' ') || Utils.ltrim(values.value, ' ').indexOf('#') === 0) {
|
|
if (this.currentLineNb < this.lines.length - 1 && !this.isNextLineUnIndentedCollection()) {
|
|
c = this.getRealCurrentLineNb() + 1;
|
|
parser = new Parser(c);
|
|
parser.refs = this.refs;
|
|
data.push(parser.parse(this.getNextEmbedBlock(null, true), exceptionOnInvalidType, objectDecoder));
|
|
} else {
|
|
data.push(null);
|
|
}
|
|
} else {
|
|
if (((ref = values.leadspaces) != null ? ref.length : void 0) && (matches = this.PATTERN_COMPACT_NOTATION.exec(values.value))) {
|
|
c = this.getRealCurrentLineNb();
|
|
parser = new Parser(c);
|
|
parser.refs = this.refs;
|
|
block = values.value;
|
|
indent = this.getCurrentLineIndentation();
|
|
if (this.isNextLineIndented(false)) {
|
|
block += "\n" + this.getNextEmbedBlock(indent + values.leadspaces.length + 1, true);
|
|
}
|
|
data.push(parser.parse(block, exceptionOnInvalidType, objectDecoder));
|
|
} else {
|
|
data.push(this.parseValue(values.value, exceptionOnInvalidType, objectDecoder));
|
|
}
|
|
}
|
|
} else if ((values = this.PATTERN_MAPPING_ITEM.exec(this.currentLine)) && values.key.indexOf(' #') === -1) {
|
|
if (this.CONTEXT_SEQUENCE === context) {
|
|
throw new ParseException('You cannot define a mapping item when in a sequence');
|
|
}
|
|
context = this.CONTEXT_MAPPING;
|
|
if (data == null) {
|
|
data = {};
|
|
}
|
|
Inline.configure(exceptionOnInvalidType, objectDecoder);
|
|
try {
|
|
key = Inline.parseScalar(values.key);
|
|
} catch (error) {
|
|
e = error;
|
|
e.parsedLine = this.getRealCurrentLineNb() + 1;
|
|
e.snippet = this.currentLine;
|
|
throw e;
|
|
}
|
|
if ('<<' === key) {
|
|
mergeNode = true;
|
|
allowOverwrite = true;
|
|
if (((ref1 = values.value) != null ? ref1.indexOf('*') : void 0) === 0) {
|
|
refName = values.value.slice(1);
|
|
if (this.refs[refName] == null) {
|
|
throw new ParseException('Reference "' + refName + '" does not exist.', this.getRealCurrentLineNb() + 1, this.currentLine);
|
|
}
|
|
refValue = this.refs[refName];
|
|
if (typeof refValue !== 'object') {
|
|
throw new ParseException('YAML merge keys used with a scalar value instead of an object.', this.getRealCurrentLineNb() + 1, this.currentLine);
|
|
}
|
|
if (refValue instanceof Array) {
|
|
for (i = j = 0, len = refValue.length; j < len; i = ++j) {
|
|
value = refValue[i];
|
|
if (data[name = String(i)] == null) {
|
|
data[name] = value;
|
|
}
|
|
}
|
|
} else {
|
|
for (key in refValue) {
|
|
value = refValue[key];
|
|
if (data[key] == null) {
|
|
data[key] = value;
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
if ((values.value != null) && values.value !== '') {
|
|
value = values.value;
|
|
} else {
|
|
value = this.getNextEmbedBlock();
|
|
}
|
|
c = this.getRealCurrentLineNb() + 1;
|
|
parser = new Parser(c);
|
|
parser.refs = this.refs;
|
|
parsed = parser.parse(value, exceptionOnInvalidType);
|
|
if (typeof parsed !== 'object') {
|
|
throw new ParseException('YAML merge keys used with a scalar value instead of an object.', this.getRealCurrentLineNb() + 1, this.currentLine);
|
|
}
|
|
if (parsed instanceof Array) {
|
|
for (l = 0, len1 = parsed.length; l < len1; l++) {
|
|
parsedItem = parsed[l];
|
|
if (typeof parsedItem !== 'object') {
|
|
throw new ParseException('Merge items must be objects.', this.getRealCurrentLineNb() + 1, parsedItem);
|
|
}
|
|
if (parsedItem instanceof Array) {
|
|
for (i = m = 0, len2 = parsedItem.length; m < len2; i = ++m) {
|
|
value = parsedItem[i];
|
|
k = String(i);
|
|
if (!data.hasOwnProperty(k)) {
|
|
data[k] = value;
|
|
}
|
|
}
|
|
} else {
|
|
for (key in parsedItem) {
|
|
value = parsedItem[key];
|
|
if (!data.hasOwnProperty(key)) {
|
|
data[key] = value;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
for (key in parsed) {
|
|
value = parsed[key];
|
|
if (!data.hasOwnProperty(key)) {
|
|
data[key] = value;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} else if ((values.value != null) && (matches = this.PATTERN_ANCHOR_VALUE.exec(values.value))) {
|
|
isRef = matches.ref;
|
|
values.value = matches.value;
|
|
}
|
|
if (mergeNode) {
|
|
|
|
} else if (!(values.value != null) || '' === Utils.trim(values.value, ' ') || Utils.ltrim(values.value, ' ').indexOf('#') === 0) {
|
|
if (!(this.isNextLineIndented()) && !(this.isNextLineUnIndentedCollection())) {
|
|
if (allowOverwrite || data[key] === void 0) {
|
|
data[key] = null;
|
|
}
|
|
} else {
|
|
c = this.getRealCurrentLineNb() + 1;
|
|
parser = new Parser(c);
|
|
parser.refs = this.refs;
|
|
val = parser.parse(this.getNextEmbedBlock(), exceptionOnInvalidType, objectDecoder);
|
|
if (allowOverwrite || data[key] === void 0) {
|
|
data[key] = val;
|
|
}
|
|
}
|
|
} else {
|
|
val = this.parseValue(values.value, exceptionOnInvalidType, objectDecoder);
|
|
if (allowOverwrite || data[key] === void 0) {
|
|
data[key] = val;
|
|
}
|
|
}
|
|
} else {
|
|
lineCount = this.lines.length;
|
|
if (1 === lineCount || (2 === lineCount && Utils.isEmpty(this.lines[1]))) {
|
|
try {
|
|
value = Inline.parse(this.lines[0], exceptionOnInvalidType, objectDecoder);
|
|
} catch (error1) {
|
|
e = error1;
|
|
e.parsedLine = this.getRealCurrentLineNb() + 1;
|
|
e.snippet = this.currentLine;
|
|
throw e;
|
|
}
|
|
if (typeof value === 'object') {
|
|
if (value instanceof Array) {
|
|
first = value[0];
|
|
} else {
|
|
for (key in value) {
|
|
first = value[key];
|
|
break;
|
|
}
|
|
}
|
|
if (typeof first === 'string' && first.indexOf('*') === 0) {
|
|
data = [];
|
|
for (n = 0, len3 = value.length; n < len3; n++) {
|
|
alias = value[n];
|
|
data.push(this.refs[alias.slice(1)]);
|
|
}
|
|
value = data;
|
|
}
|
|
}
|
|
return value;
|
|
} else if ((ref2 = Utils.ltrim(value).charAt(0)) === '[' || ref2 === '{') {
|
|
try {
|
|
return Inline.parse(value, exceptionOnInvalidType, objectDecoder);
|
|
} catch (error2) {
|
|
e = error2;
|
|
e.parsedLine = this.getRealCurrentLineNb() + 1;
|
|
e.snippet = this.currentLine;
|
|
throw e;
|
|
}
|
|
}
|
|
throw new ParseException('Unable to parse.', this.getRealCurrentLineNb() + 1, this.currentLine);
|
|
}
|
|
if (isRef) {
|
|
if (data instanceof Array) {
|
|
this.refs[isRef] = data[data.length - 1];
|
|
} else {
|
|
lastKey = null;
|
|
for (key in data) {
|
|
lastKey = key;
|
|
}
|
|
this.refs[isRef] = data[lastKey];
|
|
}
|
|
}
|
|
}
|
|
if (Utils.isEmpty(data)) {
|
|
return null;
|
|
} else {
|
|
return data;
|
|
}
|
|
};
|
|
|
|
Parser.prototype.getRealCurrentLineNb = function() {
|
|
return this.currentLineNb + this.offset;
|
|
};
|
|
|
|
Parser.prototype.getCurrentLineIndentation = function() {
|
|
return this.currentLine.length - Utils.ltrim(this.currentLine, ' ').length;
|
|
};
|
|
|
|
Parser.prototype.getNextEmbedBlock = function(indentation, includeUnindentedCollection) {
|
|
var data, indent, isItUnindentedCollection, newIndent, removeComments, removeCommentsPattern, unindentedEmbedBlock;
|
|
if (indentation == null) {
|
|
indentation = null;
|
|
}
|
|
if (includeUnindentedCollection == null) {
|
|
includeUnindentedCollection = false;
|
|
}
|
|
this.moveToNextLine();
|
|
if (indentation == null) {
|
|
newIndent = this.getCurrentLineIndentation();
|
|
unindentedEmbedBlock = this.isStringUnIndentedCollectionItem(this.currentLine);
|
|
if (!(this.isCurrentLineEmpty()) && 0 === newIndent && !unindentedEmbedBlock) {
|
|
throw new ParseException('Indentation problem.', this.getRealCurrentLineNb() + 1, this.currentLine);
|
|
}
|
|
} else {
|
|
newIndent = indentation;
|
|
}
|
|
data = [this.currentLine.slice(newIndent)];
|
|
if (!includeUnindentedCollection) {
|
|
isItUnindentedCollection = this.isStringUnIndentedCollectionItem(this.currentLine);
|
|
}
|
|
removeCommentsPattern = this.PATTERN_FOLDED_SCALAR_END;
|
|
removeComments = !removeCommentsPattern.test(this.currentLine);
|
|
while (this.moveToNextLine()) {
|
|
indent = this.getCurrentLineIndentation();
|
|
if (indent === newIndent) {
|
|
removeComments = !removeCommentsPattern.test(this.currentLine);
|
|
}
|
|
if (removeComments && this.isCurrentLineComment()) {
|
|
continue;
|
|
}
|
|
if (this.isCurrentLineBlank()) {
|
|
data.push(this.currentLine.slice(newIndent));
|
|
continue;
|
|
}
|
|
if (isItUnindentedCollection && !this.isStringUnIndentedCollectionItem(this.currentLine) && indent === newIndent) {
|
|
this.moveToPreviousLine();
|
|
break;
|
|
}
|
|
if (indent >= newIndent) {
|
|
data.push(this.currentLine.slice(newIndent));
|
|
} else if (Utils.ltrim(this.currentLine).charAt(0) === '#') {
|
|
|
|
} else if (0 === indent) {
|
|
this.moveToPreviousLine();
|
|
break;
|
|
} else {
|
|
throw new ParseException('Indentation problem.', this.getRealCurrentLineNb() + 1, this.currentLine);
|
|
}
|
|
}
|
|
return data.join("\n");
|
|
};
|
|
|
|
Parser.prototype.moveToNextLine = function() {
|
|
if (this.currentLineNb >= this.lines.length - 1) {
|
|
return false;
|
|
}
|
|
this.currentLine = this.lines[++this.currentLineNb];
|
|
return true;
|
|
};
|
|
|
|
Parser.prototype.moveToPreviousLine = function() {
|
|
this.currentLine = this.lines[--this.currentLineNb];
|
|
};
|
|
|
|
Parser.prototype.parseValue = function(value, exceptionOnInvalidType, objectDecoder) {
|
|
var e, error, foldedIndent, matches, modifiers, pos, ref, ref1, val;
|
|
if (0 === value.indexOf('*')) {
|
|
pos = value.indexOf('#');
|
|
if (pos !== -1) {
|
|
value = value.substr(1, pos - 2);
|
|
} else {
|
|
value = value.slice(1);
|
|
}
|
|
if (this.refs[value] === void 0) {
|
|
throw new ParseException('Reference "' + value + '" does not exist.', this.currentLine);
|
|
}
|
|
return this.refs[value];
|
|
}
|
|
if (matches = this.PATTERN_FOLDED_SCALAR_ALL.exec(value)) {
|
|
modifiers = (ref = matches.modifiers) != null ? ref : '';
|
|
foldedIndent = Math.abs(parseInt(modifiers));
|
|
if (isNaN(foldedIndent)) {
|
|
foldedIndent = 0;
|
|
}
|
|
val = this.parseFoldedScalar(matches.separator, this.PATTERN_DECIMAL.replace(modifiers, ''), foldedIndent);
|
|
if (matches.type != null) {
|
|
Inline.configure(exceptionOnInvalidType, objectDecoder);
|
|
return Inline.parseScalar(matches.type + ' ' + val);
|
|
} else {
|
|
return val;
|
|
}
|
|
}
|
|
if ((ref1 = value.charAt(0)) === '[' || ref1 === '{' || ref1 === '"' || ref1 === "'") {
|
|
while (true) {
|
|
try {
|
|
return Inline.parse(value, exceptionOnInvalidType, objectDecoder);
|
|
} catch (error) {
|
|
e = error;
|
|
if (e instanceof ParseMore && this.moveToNextLine()) {
|
|
value += "\n" + Utils.trim(this.currentLine, ' ');
|
|
} else {
|
|
e.parsedLine = this.getRealCurrentLineNb() + 1;
|
|
e.snippet = this.currentLine;
|
|
throw e;
|
|
}
|
|
}
|
|
}
|
|
} else {
|
|
if (this.isNextLineIndented()) {
|
|
value += "\n" + this.getNextEmbedBlock();
|
|
}
|
|
return Inline.parse(value, exceptionOnInvalidType, objectDecoder);
|
|
}
|
|
};
|
|
|
|
Parser.prototype.parseFoldedScalar = function(separator, indicator, indentation) {
|
|
var isCurrentLineBlank, j, len, line, matches, newText, notEOF, pattern, ref, text;
|
|
if (indicator == null) {
|
|
indicator = '';
|
|
}
|
|
if (indentation == null) {
|
|
indentation = 0;
|
|
}
|
|
notEOF = this.moveToNextLine();
|
|
if (!notEOF) {
|
|
return '';
|
|
}
|
|
isCurrentLineBlank = this.isCurrentLineBlank();
|
|
text = '';
|
|
while (notEOF && isCurrentLineBlank) {
|
|
if (notEOF = this.moveToNextLine()) {
|
|
text += "\n";
|
|
isCurrentLineBlank = this.isCurrentLineBlank();
|
|
}
|
|
}
|
|
if (0 === indentation) {
|
|
if (matches = this.PATTERN_INDENT_SPACES.exec(this.currentLine)) {
|
|
indentation = matches[0].length;
|
|
}
|
|
}
|
|
if (indentation > 0) {
|
|
pattern = this.PATTERN_FOLDED_SCALAR_BY_INDENTATION[indentation];
|
|
if (pattern == null) {
|
|
pattern = new Pattern('^ {' + indentation + '}(.*)$');
|
|
Parser.prototype.PATTERN_FOLDED_SCALAR_BY_INDENTATION[indentation] = pattern;
|
|
}
|
|
while (notEOF && (isCurrentLineBlank || (matches = pattern.exec(this.currentLine)))) {
|
|
if (isCurrentLineBlank) {
|
|
text += this.currentLine.slice(indentation);
|
|
} else {
|
|
text += matches[1];
|
|
}
|
|
if (notEOF = this.moveToNextLine()) {
|
|
text += "\n";
|
|
isCurrentLineBlank = this.isCurrentLineBlank();
|
|
}
|
|
}
|
|
} else if (notEOF) {
|
|
text += "\n";
|
|
}
|
|
if (notEOF) {
|
|
this.moveToPreviousLine();
|
|
}
|
|
if ('>' === separator) {
|
|
newText = '';
|
|
ref = text.split("\n");
|
|
for (j = 0, len = ref.length; j < len; j++) {
|
|
line = ref[j];
|
|
if (line.length === 0 || line.charAt(0) === ' ') {
|
|
newText = Utils.rtrim(newText, ' ') + line + "\n";
|
|
} else {
|
|
newText += line + ' ';
|
|
}
|
|
}
|
|
text = newText;
|
|
}
|
|
if ('+' !== indicator) {
|
|
text = Utils.rtrim(text);
|
|
}
|
|
if ('' === indicator) {
|
|
text = this.PATTERN_TRAILING_LINES.replace(text, "\n");
|
|
} else if ('-' === indicator) {
|
|
text = this.PATTERN_TRAILING_LINES.replace(text, '');
|
|
}
|
|
return text;
|
|
};
|
|
|
|
Parser.prototype.isNextLineIndented = function(ignoreComments) {
|
|
var EOF, currentIndentation, ret;
|
|
if (ignoreComments == null) {
|
|
ignoreComments = true;
|
|
}
|
|
currentIndentation = this.getCurrentLineIndentation();
|
|
EOF = !this.moveToNextLine();
|
|
if (ignoreComments) {
|
|
while (!EOF && this.isCurrentLineEmpty()) {
|
|
EOF = !this.moveToNextLine();
|
|
}
|
|
} else {
|
|
while (!EOF && this.isCurrentLineBlank()) {
|
|
EOF = !this.moveToNextLine();
|
|
}
|
|
}
|
|
if (EOF) {
|
|
return false;
|
|
}
|
|
ret = false;
|
|
if (this.getCurrentLineIndentation() > currentIndentation) {
|
|
ret = true;
|
|
}
|
|
this.moveToPreviousLine();
|
|
return ret;
|
|
};
|
|
|
|
Parser.prototype.isCurrentLineEmpty = function() {
|
|
var trimmedLine;
|
|
trimmedLine = Utils.trim(this.currentLine, ' ');
|
|
return trimmedLine.length === 0 || trimmedLine.charAt(0) === '#';
|
|
};
|
|
|
|
Parser.prototype.isCurrentLineBlank = function() {
|
|
return '' === Utils.trim(this.currentLine, ' ');
|
|
};
|
|
|
|
Parser.prototype.isCurrentLineComment = function() {
|
|
var ltrimmedLine;
|
|
ltrimmedLine = Utils.ltrim(this.currentLine, ' ');
|
|
return ltrimmedLine.charAt(0) === '#';
|
|
};
|
|
|
|
Parser.prototype.cleanup = function(value) {
|
|
var count, i, indent, j, l, len, len1, line, lines, ref, ref1, ref2, smallestIndent, trimmedValue;
|
|
if (value.indexOf("\r") !== -1) {
|
|
value = value.split("\r\n").join("\n").split("\r").join("\n");
|
|
}
|
|
count = 0;
|
|
ref = this.PATTERN_YAML_HEADER.replaceAll(value, ''), value = ref[0], count = ref[1];
|
|
this.offset += count;
|
|
ref1 = this.PATTERN_LEADING_COMMENTS.replaceAll(value, '', 1), trimmedValue = ref1[0], count = ref1[1];
|
|
if (count === 1) {
|
|
this.offset += Utils.subStrCount(value, "\n") - Utils.subStrCount(trimmedValue, "\n");
|
|
value = trimmedValue;
|
|
}
|
|
ref2 = this.PATTERN_DOCUMENT_MARKER_START.replaceAll(value, '', 1), trimmedValue = ref2[0], count = ref2[1];
|
|
if (count === 1) {
|
|
this.offset += Utils.subStrCount(value, "\n") - Utils.subStrCount(trimmedValue, "\n");
|
|
value = trimmedValue;
|
|
value = this.PATTERN_DOCUMENT_MARKER_END.replace(value, '');
|
|
}
|
|
lines = value.split("\n");
|
|
smallestIndent = -1;
|
|
for (j = 0, len = lines.length; j < len; j++) {
|
|
line = lines[j];
|
|
if (Utils.trim(line, ' ').length === 0) {
|
|
continue;
|
|
}
|
|
indent = line.length - Utils.ltrim(line).length;
|
|
if (smallestIndent === -1 || indent < smallestIndent) {
|
|
smallestIndent = indent;
|
|
}
|
|
}
|
|
if (smallestIndent > 0) {
|
|
for (i = l = 0, len1 = lines.length; l < len1; i = ++l) {
|
|
line = lines[i];
|
|
lines[i] = line.slice(smallestIndent);
|
|
}
|
|
value = lines.join("\n");
|
|
}
|
|
return value;
|
|
};
|
|
|
|
Parser.prototype.isNextLineUnIndentedCollection = function(currentIndentation) {
|
|
var notEOF, ret;
|
|
if (currentIndentation == null) {
|
|
currentIndentation = null;
|
|
}
|
|
if (currentIndentation == null) {
|
|
currentIndentation = this.getCurrentLineIndentation();
|
|
}
|
|
notEOF = this.moveToNextLine();
|
|
while (notEOF && this.isCurrentLineEmpty()) {
|
|
notEOF = this.moveToNextLine();
|
|
}
|
|
if (false === notEOF) {
|
|
return false;
|
|
}
|
|
ret = false;
|
|
if (this.getCurrentLineIndentation() === currentIndentation && this.isStringUnIndentedCollectionItem(this.currentLine)) {
|
|
ret = true;
|
|
}
|
|
this.moveToPreviousLine();
|
|
return ret;
|
|
};
|
|
|
|
Parser.prototype.isStringUnIndentedCollectionItem = function() {
|
|
return this.currentLine === '-' || this.currentLine.slice(0, 2) === '- ';
|
|
};
|
|
|
|
return Parser;
|
|
|
|
})();
|
|
|
|
module.exports = Parser;
|
|
|
|
|
|
},{"./Exception/ParseException":4,"./Exception/ParseMore":5,"./Inline":6,"./Pattern":8,"./Utils":10}],8:[function(require,module,exports){
|
|
var Pattern;
|
|
|
|
Pattern = (function() {
|
|
Pattern.prototype.regex = null;
|
|
|
|
Pattern.prototype.rawRegex = null;
|
|
|
|
Pattern.prototype.cleanedRegex = null;
|
|
|
|
Pattern.prototype.mapping = null;
|
|
|
|
function Pattern(rawRegex, modifiers) {
|
|
var _char, capturingBracketNumber, cleanedRegex, i, len, mapping, name, part, subChar;
|
|
if (modifiers == null) {
|
|
modifiers = '';
|
|
}
|
|
cleanedRegex = '';
|
|
len = rawRegex.length;
|
|
mapping = null;
|
|
capturingBracketNumber = 0;
|
|
i = 0;
|
|
while (i < len) {
|
|
_char = rawRegex.charAt(i);
|
|
if (_char === '\\') {
|
|
cleanedRegex += rawRegex.slice(i, +(i + 1) + 1 || 9e9);
|
|
i++;
|
|
} else if (_char === '(') {
|
|
if (i < len - 2) {
|
|
part = rawRegex.slice(i, +(i + 2) + 1 || 9e9);
|
|
if (part === '(?:') {
|
|
i += 2;
|
|
cleanedRegex += part;
|
|
} else if (part === '(?<') {
|
|
capturingBracketNumber++;
|
|
i += 2;
|
|
name = '';
|
|
while (i + 1 < len) {
|
|
subChar = rawRegex.charAt(i + 1);
|
|
if (subChar === '>') {
|
|
cleanedRegex += '(';
|
|
i++;
|
|
if (name.length > 0) {
|
|
if (mapping == null) {
|
|
mapping = {};
|
|
}
|
|
mapping[name] = capturingBracketNumber;
|
|
}
|
|
break;
|
|
} else {
|
|
name += subChar;
|
|
}
|
|
i++;
|
|
}
|
|
} else {
|
|
cleanedRegex += _char;
|
|
capturingBracketNumber++;
|
|
}
|
|
} else {
|
|
cleanedRegex += _char;
|
|
}
|
|
} else {
|
|
cleanedRegex += _char;
|
|
}
|
|
i++;
|
|
}
|
|
this.rawRegex = rawRegex;
|
|
this.cleanedRegex = cleanedRegex;
|
|
this.regex = new RegExp(this.cleanedRegex, 'g' + modifiers.replace('g', ''));
|
|
this.mapping = mapping;
|
|
}
|
|
|
|
Pattern.prototype.exec = function(str) {
|
|
var index, matches, name, ref;
|
|
this.regex.lastIndex = 0;
|
|
matches = this.regex.exec(str);
|
|
if (matches == null) {
|
|
return null;
|
|
}
|
|
if (this.mapping != null) {
|
|
ref = this.mapping;
|
|
for (name in ref) {
|
|
index = ref[name];
|
|
matches[name] = matches[index];
|
|
}
|
|
}
|
|
return matches;
|
|
};
|
|
|
|
Pattern.prototype.test = function(str) {
|
|
this.regex.lastIndex = 0;
|
|
return this.regex.test(str);
|
|
};
|
|
|
|
Pattern.prototype.replace = function(str, replacement) {
|
|
this.regex.lastIndex = 0;
|
|
return str.replace(this.regex, replacement);
|
|
};
|
|
|
|
Pattern.prototype.replaceAll = function(str, replacement, limit) {
|
|
var count;
|
|
if (limit == null) {
|
|
limit = 0;
|
|
}
|
|
this.regex.lastIndex = 0;
|
|
count = 0;
|
|
while (this.regex.test(str) && (limit === 0 || count < limit)) {
|
|
this.regex.lastIndex = 0;
|
|
str = str.replace(this.regex, replacement);
|
|
count++;
|
|
}
|
|
return [str, count];
|
|
};
|
|
|
|
return Pattern;
|
|
|
|
})();
|
|
|
|
module.exports = Pattern;
|
|
|
|
|
|
},{}],9:[function(require,module,exports){
|
|
var Pattern, Unescaper, Utils;
|
|
|
|
Utils = require('./Utils');
|
|
|
|
Pattern = require('./Pattern');
|
|
|
|
Unescaper = (function() {
|
|
function Unescaper() {}
|
|
|
|
Unescaper.PATTERN_ESCAPED_CHARACTER = new Pattern('\\\\([0abt\tnvfre "\\/\\\\N_LP]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})');
|
|
|
|
Unescaper.unescapeSingleQuotedString = function(value) {
|
|
return value.replace(/\'\'/g, '\'');
|
|
};
|
|
|
|
Unescaper.unescapeDoubleQuotedString = function(value) {
|
|
if (this._unescapeCallback == null) {
|
|
this._unescapeCallback = (function(_this) {
|
|
return function(str) {
|
|
return _this.unescapeCharacter(str);
|
|
};
|
|
})(this);
|
|
}
|
|
return this.PATTERN_ESCAPED_CHARACTER.replace(value, this._unescapeCallback);
|
|
};
|
|
|
|
Unescaper.unescapeCharacter = function(value) {
|
|
var ch;
|
|
ch = String.fromCharCode;
|
|
switch (value.charAt(1)) {
|
|
case '0':
|
|
return ch(0);
|
|
case 'a':
|
|
return ch(7);
|
|
case 'b':
|
|
return ch(8);
|
|
case 't':
|
|
return "\t";
|
|
case "\t":
|
|
return "\t";
|
|
case 'n':
|
|
return "\n";
|
|
case 'v':
|
|
return ch(11);
|
|
case 'f':
|
|
return ch(12);
|
|
case 'r':
|
|
return ch(13);
|
|
case 'e':
|
|
return ch(27);
|
|
case ' ':
|
|
return ' ';
|
|
case '"':
|
|
return '"';
|
|
case '/':
|
|
return '/';
|
|
case '\\':
|
|
return '\\';
|
|
case 'N':
|
|
return ch(0x0085);
|
|
case '_':
|
|
return ch(0x00A0);
|
|
case 'L':
|
|
return ch(0x2028);
|
|
case 'P':
|
|
return ch(0x2029);
|
|
case 'x':
|
|
return Utils.utf8chr(Utils.hexDec(value.substr(2, 2)));
|
|
case 'u':
|
|
return Utils.utf8chr(Utils.hexDec(value.substr(2, 4)));
|
|
case 'U':
|
|
return Utils.utf8chr(Utils.hexDec(value.substr(2, 8)));
|
|
default:
|
|
return '';
|
|
}
|
|
};
|
|
|
|
return Unescaper;
|
|
|
|
})();
|
|
|
|
module.exports = Unescaper;
|
|
|
|
|
|
},{"./Pattern":8,"./Utils":10}],10:[function(require,module,exports){
|
|
var Pattern, Utils,
|
|
hasProp = {}.hasOwnProperty;
|
|
|
|
Pattern = require('./Pattern');
|
|
|
|
Utils = (function() {
|
|
function Utils() {}
|
|
|
|
Utils.REGEX_LEFT_TRIM_BY_CHAR = {};
|
|
|
|
Utils.REGEX_RIGHT_TRIM_BY_CHAR = {};
|
|
|
|
Utils.REGEX_SPACES = /\s+/g;
|
|
|
|
Utils.REGEX_DIGITS = /^\d+$/;
|
|
|
|
Utils.REGEX_OCTAL = /[^0-7]/gi;
|
|
|
|
Utils.REGEX_HEXADECIMAL = /[^a-f0-9]/gi;
|
|
|
|
Utils.PATTERN_DATE = new Pattern('^' + '(?<year>[0-9][0-9][0-9][0-9])' + '-(?<month>[0-9][0-9]?)' + '-(?<day>[0-9][0-9]?)' + '(?:(?:[Tt]|[ \t]+)' + '(?<hour>[0-9][0-9]?)' + ':(?<minute>[0-9][0-9])' + ':(?<second>[0-9][0-9])' + '(?:\.(?<fraction>[0-9]*))?' + '(?:[ \t]*(?<tz>Z|(?<tz_sign>[-+])(?<tz_hour>[0-9][0-9]?)' + '(?::(?<tz_minute>[0-9][0-9]))?))?)?' + '$', 'i');
|
|
|
|
Utils.LOCAL_TIMEZONE_OFFSET = new Date().getTimezoneOffset() * 60 * 1000;
|
|
|
|
Utils.trim = function(str, _char) {
|
|
var regexLeft, regexRight;
|
|
if (_char == null) {
|
|
_char = '\\s';
|
|
}
|
|
regexLeft = this.REGEX_LEFT_TRIM_BY_CHAR[_char];
|
|
if (regexLeft == null) {
|
|
this.REGEX_LEFT_TRIM_BY_CHAR[_char] = regexLeft = new RegExp('^' + _char + '' + _char + '*');
|
|
}
|
|
regexLeft.lastIndex = 0;
|
|
regexRight = this.REGEX_RIGHT_TRIM_BY_CHAR[_char];
|
|
if (regexRight == null) {
|
|
this.REGEX_RIGHT_TRIM_BY_CHAR[_char] = regexRight = new RegExp(_char + '' + _char + '*$');
|
|
}
|
|
regexRight.lastIndex = 0;
|
|
return str.replace(regexLeft, '').replace(regexRight, '');
|
|
};
|
|
|
|
Utils.ltrim = function(str, _char) {
|
|
var regexLeft;
|
|
if (_char == null) {
|
|
_char = '\\s';
|
|
}
|
|
regexLeft = this.REGEX_LEFT_TRIM_BY_CHAR[_char];
|
|
if (regexLeft == null) {
|
|
this.REGEX_LEFT_TRIM_BY_CHAR[_char] = regexLeft = new RegExp('^' + _char + '' + _char + '*');
|
|
}
|
|
regexLeft.lastIndex = 0;
|
|
return str.replace(regexLeft, '');
|
|
};
|
|
|
|
Utils.rtrim = function(str, _char) {
|
|
var regexRight;
|
|
if (_char == null) {
|
|
_char = '\\s';
|
|
}
|
|
regexRight = this.REGEX_RIGHT_TRIM_BY_CHAR[_char];
|
|
if (regexRight == null) {
|
|
this.REGEX_RIGHT_TRIM_BY_CHAR[_char] = regexRight = new RegExp(_char + '' + _char + '*$');
|
|
}
|
|
regexRight.lastIndex = 0;
|
|
return str.replace(regexRight, '');
|
|
};
|
|
|
|
Utils.isEmpty = function(value) {
|
|
return !value || value === '' || value === '0' || (value instanceof Array && value.length === 0) || this.isEmptyObject(value);
|
|
};
|
|
|
|
Utils.isEmptyObject = function(value) {
|
|
var k;
|
|
return value instanceof Object && ((function() {
|
|
var results;
|
|
results = [];
|
|
for (k in value) {
|
|
if (!hasProp.call(value, k)) continue;
|
|
results.push(k);
|
|
}
|
|
return results;
|
|
})()).length === 0;
|
|
};
|
|
|
|
Utils.subStrCount = function(string, subString, start, length) {
|
|
var c, i, j, len, ref, sublen;
|
|
c = 0;
|
|
string = '' + string;
|
|
subString = '' + subString;
|
|
if (start != null) {
|
|
string = string.slice(start);
|
|
}
|
|
if (length != null) {
|
|
string = string.slice(0, length);
|
|
}
|
|
len = string.length;
|
|
sublen = subString.length;
|
|
for (i = j = 0, ref = len; 0 <= ref ? j < ref : j > ref; i = 0 <= ref ? ++j : --j) {
|
|
if (subString === string.slice(i, sublen)) {
|
|
c++;
|
|
i += sublen - 1;
|
|
}
|
|
}
|
|
return c;
|
|
};
|
|
|
|
Utils.isDigits = function(input) {
|
|
this.REGEX_DIGITS.lastIndex = 0;
|
|
return this.REGEX_DIGITS.test(input);
|
|
};
|
|
|
|
Utils.octDec = function(input) {
|
|
this.REGEX_OCTAL.lastIndex = 0;
|
|
return parseInt((input + '').replace(this.REGEX_OCTAL, ''), 8);
|
|
};
|
|
|
|
Utils.hexDec = function(input) {
|
|
this.REGEX_HEXADECIMAL.lastIndex = 0;
|
|
input = this.trim(input);
|
|
if ((input + '').slice(0, 2) === '0x') {
|
|
input = (input + '').slice(2);
|
|
}
|
|
return parseInt((input + '').replace(this.REGEX_HEXADECIMAL, ''), 16);
|
|
};
|
|
|
|
Utils.utf8chr = function(c) {
|
|
var ch;
|
|
ch = String.fromCharCode;
|
|
if (0x80 > (c %= 0x200000)) {
|
|
return ch(c);
|
|
}
|
|
if (0x800 > c) {
|
|
return ch(0xC0 | c >> 6) + ch(0x80 | c & 0x3F);
|
|
}
|
|
if (0x10000 > c) {
|
|
return ch(0xE0 | c >> 12) + ch(0x80 | c >> 6 & 0x3F) + ch(0x80 | c & 0x3F);
|
|
}
|
|
return ch(0xF0 | c >> 18) + ch(0x80 | c >> 12 & 0x3F) + ch(0x80 | c >> 6 & 0x3F) + ch(0x80 | c & 0x3F);
|
|
};
|
|
|
|
Utils.parseBoolean = function(input, strict) {
|
|
var lowerInput;
|
|
if (strict == null) {
|
|
strict = true;
|
|
}
|
|
if (typeof input === 'string') {
|
|
lowerInput = input.toLowerCase();
|
|
if (!strict) {
|
|
if (lowerInput === 'no') {
|
|
return false;
|
|
}
|
|
}
|
|
if (lowerInput === '0') {
|
|
return false;
|
|
}
|
|
if (lowerInput === 'false') {
|
|
return false;
|
|
}
|
|
if (lowerInput === '') {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
return !!input;
|
|
};
|
|
|
|
Utils.isNumeric = function(input) {
|
|
this.REGEX_SPACES.lastIndex = 0;
|
|
return typeof input === 'number' || typeof input === 'string' && !isNaN(input) && input.replace(this.REGEX_SPACES, '') !== '';
|
|
};
|
|
|
|
Utils.stringToDate = function(str) {
|
|
var date, day, fraction, hour, info, minute, month, second, tz_hour, tz_minute, tz_offset, year;
|
|
if (!(str != null ? str.length : void 0)) {
|
|
return null;
|
|
}
|
|
info = this.PATTERN_DATE.exec(str);
|
|
if (!info) {
|
|
return null;
|
|
}
|
|
year = parseInt(info.year, 10);
|
|
month = parseInt(info.month, 10) - 1;
|
|
day = parseInt(info.day, 10);
|
|
if (info.hour == null) {
|
|
date = new Date(Date.UTC(year, month, day));
|
|
return date;
|
|
}
|
|
hour = parseInt(info.hour, 10);
|
|
minute = parseInt(info.minute, 10);
|
|
second = parseInt(info.second, 10);
|
|
if (info.fraction != null) {
|
|
fraction = info.fraction.slice(0, 3);
|
|
while (fraction.length < 3) {
|
|
fraction += '0';
|
|
}
|
|
fraction = parseInt(fraction, 10);
|
|
} else {
|
|
fraction = 0;
|
|
}
|
|
if (info.tz != null) {
|
|
tz_hour = parseInt(info.tz_hour, 10);
|
|
if (info.tz_minute != null) {
|
|
tz_minute = parseInt(info.tz_minute, 10);
|
|
} else {
|
|
tz_minute = 0;
|
|
}
|
|
tz_offset = (tz_hour * 60 + tz_minute) * 60000;
|
|
if ('-' === info.tz_sign) {
|
|
tz_offset *= -1;
|
|
}
|
|
}
|
|
date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
|
|
if (tz_offset) {
|
|
date.setTime(date.getTime() - tz_offset);
|
|
}
|
|
return date;
|
|
};
|
|
|
|
Utils.strRepeat = function(str, number) {
|
|
var i, res;
|
|
res = '';
|
|
i = 0;
|
|
while (i < number) {
|
|
res += str;
|
|
i++;
|
|
}
|
|
return res;
|
|
};
|
|
|
|
Utils.getStringFromFile = function(path, callback) {
|
|
var data, fs, j, len1, name, ref, req, xhr;
|
|
if (callback == null) {
|
|
callback = null;
|
|
}
|
|
xhr = null;
|
|
if (typeof window !== "undefined" && window !== null) {
|
|
if (window.XMLHttpRequest) {
|
|
xhr = new XMLHttpRequest();
|
|
} else if (window.ActiveXObject) {
|
|
ref = ["Msxml2.XMLHTTP.6.0", "Msxml2.XMLHTTP.3.0", "Msxml2.XMLHTTP", "Microsoft.XMLHTTP"];
|
|
for (j = 0, len1 = ref.length; j < len1; j++) {
|
|
name = ref[j];
|
|
try {
|
|
xhr = new ActiveXObject(name);
|
|
} catch (undefined) {}
|
|
}
|
|
}
|
|
}
|
|
if (xhr != null) {
|
|
if (callback != null) {
|
|
xhr.onreadystatechange = function() {
|
|
if (xhr.readyState === 4) {
|
|
if (xhr.status === 200 || xhr.status === 0) {
|
|
return callback(xhr.responseText);
|
|
} else {
|
|
return callback(null);
|
|
}
|
|
}
|
|
};
|
|
xhr.open('GET', path, true);
|
|
return xhr.send(null);
|
|
} else {
|
|
xhr.open('GET', path, false);
|
|
xhr.send(null);
|
|
if (xhr.status === 200 || xhr.status === 0) {
|
|
return xhr.responseText;
|
|
}
|
|
return null;
|
|
}
|
|
} else {
|
|
req = require;
|
|
fs = req('fs');
|
|
if (callback != null) {
|
|
return fs.readFile(path, function(err, data) {
|
|
if (err) {
|
|
return callback(null);
|
|
} else {
|
|
return callback(String(data));
|
|
}
|
|
});
|
|
} else {
|
|
data = fs.readFileSync(path);
|
|
if (data != null) {
|
|
return String(data);
|
|
}
|
|
return null;
|
|
}
|
|
}
|
|
};
|
|
|
|
return Utils;
|
|
|
|
})();
|
|
|
|
module.exports = Utils;
|
|
|
|
|
|
},{"./Pattern":8}],11:[function(require,module,exports){
|
|
var Dumper, Parser, Utils, Yaml;
|
|
|
|
Parser = require('./Parser');
|
|
|
|
Dumper = require('./Dumper');
|
|
|
|
Utils = require('./Utils');
|
|
|
|
Yaml = (function() {
|
|
function Yaml() {}
|
|
|
|
Yaml.parse = function(input, exceptionOnInvalidType, objectDecoder) {
|
|
if (exceptionOnInvalidType == null) {
|
|
exceptionOnInvalidType = false;
|
|
}
|
|
if (objectDecoder == null) {
|
|
objectDecoder = null;
|
|
}
|
|
return new Parser().parse(input, exceptionOnInvalidType, objectDecoder);
|
|
};
|
|
|
|
Yaml.parseFile = function(path, callback, exceptionOnInvalidType, objectDecoder) {
|
|
var input;
|
|
if (callback == null) {
|
|
callback = null;
|
|
}
|
|
if (exceptionOnInvalidType == null) {
|
|
exceptionOnInvalidType = false;
|
|
}
|
|
if (objectDecoder == null) {
|
|
objectDecoder = null;
|
|
}
|
|
if (callback != null) {
|
|
return Utils.getStringFromFile(path, (function(_this) {
|
|
return function(input) {
|
|
var result;
|
|
result = null;
|
|
if (input != null) {
|
|
result = _this.parse(input, exceptionOnInvalidType, objectDecoder);
|
|
}
|
|
callback(result);
|
|
};
|
|
})(this));
|
|
} else {
|
|
input = Utils.getStringFromFile(path);
|
|
if (input != null) {
|
|
return this.parse(input, exceptionOnInvalidType, objectDecoder);
|
|
}
|
|
return null;
|
|
}
|
|
};
|
|
|
|
Yaml.dump = function(input, inline, indent, exceptionOnInvalidType, objectEncoder) {
|
|
var yaml;
|
|
if (inline == null) {
|
|
inline = 2;
|
|
}
|
|
if (indent == null) {
|
|
indent = 4;
|
|
}
|
|
if (exceptionOnInvalidType == null) {
|
|
exceptionOnInvalidType = false;
|
|
}
|
|
if (objectEncoder == null) {
|
|
objectEncoder = null;
|
|
}
|
|
yaml = new Dumper();
|
|
yaml.indentation = indent;
|
|
return yaml.dump(input, inline, 0, exceptionOnInvalidType, objectEncoder);
|
|
};
|
|
|
|
Yaml.stringify = function(input, inline, indent, exceptionOnInvalidType, objectEncoder) {
|
|
return this.dump(input, inline, indent, exceptionOnInvalidType, objectEncoder);
|
|
};
|
|
|
|
Yaml.load = function(path, callback, exceptionOnInvalidType, objectDecoder) {
|
|
return this.parseFile(path, callback, exceptionOnInvalidType, objectDecoder);
|
|
};
|
|
|
|
return Yaml;
|
|
|
|
})();
|
|
|
|
if (typeof window !== "undefined" && window !== null) {
|
|
window.YAML = Yaml;
|
|
}
|
|
|
|
if (typeof window === "undefined" || window === null) {
|
|
this.YAML = Yaml;
|
|
}
|
|
|
|
module.exports = Yaml;
|
|
|
|
|
|
},{"./Dumper":1,"./Parser":7,"./Utils":10}]},{},[11])
|
|
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Vzci9sb2NhbC9saWIvbm9kZV9tb2R1bGVzL2Jyb3dzZXJpZnkvbm9kZV9tb2R1bGVzL2Jyb3dzZXItcGFjay9fcHJlbHVkZS5qcyIsInNyYy9EdW1wZXIuY29mZmVlIiwic3JjL0VzY2FwZXIuY29mZmVlIiwic3JjL0V4Y2VwdGlvbi9EdW1wRXhjZXB0aW9uLmNvZmZlZSIsInNyYy9FeGNlcHRpb24vUGFyc2VFeGNlcHRpb24uY29mZmVlIiwic3JjL0V4Y2VwdGlvbi9QYXJzZU1vcmUuY29mZmVlIiwic3JjL0lubGluZS5jb2ZmZWUiLCJzcmMvUGFyc2VyLmNvZmZlZSIsInNyYy9QYXR0ZXJuLmNvZmZlZSIsInNyYy9VbmVzY2FwZXIuY29mZmVlIiwic3JjL1V0aWxzLmNvZmZlZSIsInNyYy9ZYW1sLmNvZmZlZSJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQ0NBLElBQUE7O0FBQUEsS0FBQSxHQUFVLE9BQUEsQ0FBUSxTQUFSOztBQUNWLE1BQUEsR0FBVSxPQUFBLENBQVEsVUFBUjs7QUFJSjs7O0VBR0YsTUFBQyxDQUFBLFdBQUQsR0FBZ0I7O21CQWFoQixJQUFBLEdBQU0sU0FBQyxLQUFELEVBQVEs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FV0aWxzLmlzRW1wdHkoaW5wdXQpXG4gICAgICAgICAgICBvdXRwdXQgKz0gcHJlZml4ICsgSW5saW5lLmR1bXAoaW5wdXQsIGV4Y2VwdGlvbk9uSW52YWxpZFR5cGUsIG9iamVjdEVuY29kZXIpXG4gICAgICAgIFxuICAgICAgICBlbHNlXG4gICAgICAgICAgICBpZiBpbnB1dCBpbnN0YW5jZW9mIEFycmF5XG4gICAgICAgICAgICAgICAgZm9yIHZhbHVlIGluIGlucHV0XG4gICAgICAgICAgICAgICAgICAgIHdpbGxCZUlubGluZWQgPSAoaW5saW5lIC0gMSA8PSAwIG9yIHR5cGVvZih2YWx1ZSkgaXNudCAnb2JqZWN0JyBvciBVdGlscy5pc0VtcHR5KHZhbHVlKSlcblxuICAgICAgICAgICAgICAgICAgICBvdXRwdXQgKz1cbiAgICAgICAgICAgICAgICAgICAgICAgIHByZWZpeCArXG4gICAgICAgICAgICAgICAgICAgICAgICAnLScgK1xuICAgICAgICAgICAgICAgICAgICAgICAgKGlmIHdpbGxCZUlubGluZWQgdGhlbiAnICcgZWxzZSBcIlxcblwiKSArXG4gICAgICAgICAgICAgICAgICAgICAgICBAZHVtcCh2YWx1ZSwgaW5saW5lIC0gMSwgKGlmIHdpbGxCZUlubGluZWQgdGhlbiAwIGVsc2UgaW5kZW50ICsgQGluZGVudGF0aW9uKSwgZXhjZXB0aW9uT25JbnZhbGlkVHlwZSwgb2JqZWN0RW5jb2RlcikgK1xuICAgICAgICAgICAgICAgICAgICAgICAgKGlmIHdpbGxCZUlubGluZWQgdGhlbiBcIlxcblwiIGVsc2UgJycpXG5cbiAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICBmb3Iga2V5LCB2YWx1ZSBvZiBpbnB1dFxuICAgICAgICAgICAgICAgICAgICB3aWxsQmVJbmxpbmVkID0gKGlubGluZSAtIDEgPD0gMCBvciB0eXBlb2YodmFsdWUpIGlzbnQgJ29iamVjdCcgb3IgVXRpbHMuaXNFbXB0eSh2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gICAgICAgICAgICAgICAgICAgICBcIlxceDAwXCIsICBcIlxceDAxXCIsICBcIlxceDAyXCIsICBcIlxceDAzXCIsICBcIlxceDA0XCIsICBcIlxceDA1XCIsICBcIlxceDA2XCIsICBcIlxceDA3XCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJcXHgwOFwiLCAgXCJcXHgwOVwiLCAgXCJcXHgwYVwiLCAgXCJcXHgwYlwiLCAgXCJcXHgwY1wiLCAgXCJcXHgwZFwiLCAgXCJcXHgwZVwiLCAgXCJcXHgwZlwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiXFx4MTBcIiwgIFwiXFx4MTFcIiwgIFwiXFx4MTJcIiwgIFwiXFx4MTNcIiwgIFwiXFx4MTRcIiwgIFwiXFx4MTVcIiwgIFwiXFx4MTZcIiwgIFwiXFx4MTdcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcIlxceDE4XCIsICBcIlxceDE5XCIsICBcIlxceDFhXCIsICBcIlxceDFiXCIsICBcIlxceDFjXCIsICBcIlxceDFkXCIsICBcIlxceDFlXCIsICBcIlxceDFmXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGNoID0gU3RyaW5nLmZyb21DaGFyQ29kZSkoMHgwMDg1KSwgY2goMHgwMEEwKSwgY2goMHgyMDI4KSwgY2goMHgyMDI5KV1cbiAgICBATElTVF9FU0NBUEVEOiAgICAgICAgICAgICAgICAgIFsnXFxcXFxcXFwnLCAnXFxcXFwiJywgJ1xcXFxcIicsICdcXFxcXCInLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiXFxcXDBcIiwgICBcIlxcXFx4MDFcIiwgXCJcXFxceDAyXCIsIFwiXFxcXHgwM1wiLCBcIlxcXFx4MDRcIiwgXCJcXFxceDA1XCIsIFwiXFxcXHgwNlwiLCBcIlxcXFxhXCIsXG4gICAgICAgICAgICAg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YmplY3REZWNvZGVyID0gb2JqZWN0RGVjb2RlclxuXG4gICAgICAgIGlmIG5vdCB2YWx1ZT9cbiAgICAgICAgICAgIHJldHVybiAnJ1xuXG4gICAgICAgIHZhbHVlID0gVXRpbHMudHJpbSB2YWx1ZVxuXG4gICAgICAgIGlmIDAgaXMgdmFsdWUubGVuZ3RoXG4gICAgICAgICAgICByZXR1cm4gJydcblxuICAgICAgICAjIEtlZXAgYSBjb250ZXh0IG9iamVjdCB0byBwYXNzIHRocm91Z2ggc3RhdGljIG1ldGhvZHNcbiAgICAgICAgY29udGV4dCA9IHtleGNlcHRpb25PbkludmFsaWRUeXBlLCBvYmplY3REZWNvZGVyLCBpOiAwfVxuXG4gICAgICAgIHN3aXRjaCB2YWx1ZS5jaGFyQXQoMClcbiAgICAgICAgICAgIHdoZW4gJ1snXG4gICAgICAgICAgICAgICAgcmVzdWx0ID0gQHBhcnNlU2VxdWVuY2UgdmFsdWUsIGNvbnRleHRcbiAgICAgICAgICAgICAgICArK2NvbnRleHQuaVxuICAgICAgICAgICAgd2hlbiAneydcbiAgICAgICAgICAgICAgICByZXN1bHQgPSBAcGFyc2VNYXBwaW5nIHZhbHVlLCBjb250ZXh0XG4gICAgICAgICAgICAgICAgKytjb250ZXh0LmlcbiAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICByZXN1bHQgPSBAcGFyc2VTY2FsYXIgdmFsdWUsIG51bGwsIFsnXCInLCBcIidcIl0sIGNvbnRleHRcblxuICAgICAgICAjIFNvbWUgY29tbWVudHMgYXJlIGFsbG93ZWQgYXQgdGhlIGVuZFxuICAgICAgICBpZiBAUEFUVEVSTl9UUkFJTElOR19DT01NRU5UUy5yZXBsYWNlKHZhbHVlW2NvbnRleHQuaS4uXSwgJycpIGlzbnQgJydcbiAgICAgICAgICAgIHRocm93IG5ldyBQYXJzZUV4Y2VwdGlvbiAnVW5leHBlY3RlZCBjaGFyYWN0ZXJzIG5lYXIgXCInK3ZhbHVlW2NvbnRleH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hcltpLi5dXG4gICAgICAgICAgICAgICAgaSArPSBvdXRwdXQubGVuZ3RoXG5cbiAgICAgICAgICAgICAgICAjIFJlbW92ZSBjb21tZW50c1xuICAgICAgICAgICAgICAgIHN0cnBvcyA9IG91dHB1dC5pbmRleE9mICcgIydcbiAgICAgICAgICAgICAgICBpZiBzdHJwb3MgaXNudCAtMVxuICAgICAgICAgICAgICAgICAgICBvdXRwdXQgPSBVdGlscy5ydHJpbSBvdXRwdXRbMC4uLnN0cnBvc11cblxuICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgIGpvaW5lZERlbGltaXRlcnMgPSBkZWxpbWl0ZXJzLmpvaW4oJ3wnKVxuICAgICAgICAgICAgICAgIHBhdHRlcm4gPSBAUEFUVEVSTl9TQ0FMQVJfQllfREVMSU1JVEVSU1tqb2luZWREZWxpbWl0ZXJzXVxuICAgICAgICAgICAgICAgIHVubGVzcyBwYXR0ZXJuP1xuICAgICAgICAgICAgICAgICAgICBwYXR0ZXJuID0gbmV3IFBhdHRlcm4gJ14oLis/KSgnK2pvaW5lZERlbGltaXRlcnMrJyknXG4gICAgICAgICAgICAgICAgICAgIEBQQVRURVJOX1NDQUxBUl9CWV9ERUxJTUlURVJTW2pvaW5lZERlbGltaXRlcnNdID0gcGF0dGVyblxuICAgICAgICAgICAgICAgIGlmIG1hdGNoID0gcGF0dGVybi5leGVjIHNjYWxhcltpLi5dXG4gICAgICAgICAgICAgICAgICAgIG91dHB1dCA9IG1hdGNoWzFdXG4gICAgICAgICAgICAgICAgICAgIGkgKz0gb3V0cHV0Lmxlbmd0aFxuICAgICAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICAgICAgdGhyb3cgbmV3IFBhcnNlRXhjZXB0aW9uICdNYWxmb3JtZWQgaW5saW5lIFlBTUwgc3RyaW5nICgnK3NjYWxhcisnKS4nXG5cblxuICAgICAgICAgICAgaWYgZXZhbHVhdGVcbiAgICAgICAgICAgICAgICBvdXRwdXQgPSBAZXZh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AgICAgICAgICAgIHtpfSA9IGNvbnRleHRcbiAgICAgICAgICAgICAgICB3aGVuICddJ1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gb3V0cHV0XG4gICAgICAgICAgICAgICAgd2hlbiAnLCcsICcgJywgXCJcXG5cIlxuICAgICAgICAgICAgICAgICAgICAjIERvIG5vdGhpbmdcbiAgICAgICAgICAgICAgICBlbHNlXG4gICAgICAgICAgICAgICAgICAgIGlzUXVvdGVkID0gKHNlcXVlbmNlLmNoYXJBdChpKSBpbiBbJ1wiJywgXCInXCJdKVxuICAgICAgICAgICAgICAgICAgICB2YWx1ZSA9IEBwYXJzZVNjYWxhciBzZXF1ZW5jZSwgWycsJywgJ10nXSwgWydcIicsIFwiJ1wiXSwgY29udGV4dFxuICAgICAgICAgICAgICAgICAgICB7aX0gPSBjb250ZXh0XG5cbiAgICAgICAgICAgICAgICAgICAgaWYgbm90KGlzUXVvdGVkKSBhbmQgdHlwZW9mKHZhbHVlKSBpcyAnc3RyaW5nJyBhbmQgKHZhbHVlLmluZGV4T2YoJzogJykgaXNudCAtMSBvciB2YWx1ZS5pbmRleE9mKFwiOlxcblwiKSBpc250IC0xKVxuICAgICAgICAgICAgICAgICAgICAgICAgIyBFbWJlZGRlZCBtYXBwaW5nP1xuICAgICAgICAgICAgICAgICAgICAgICAgdHJ5XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWUgPSBAcGFyc2VNYXBwaW5nICd7Jyt2YWx1ZSsnfSdcbiAgICAgICAgICAgICAgICAgICAgICAgIGNhdGNoIGVcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAjIE5vLCBpdCdzIG5vdFxuXG5cbiAgICAgICAgICAgICAgICAgICAgb3V0cHV0LnB1c2ggdmFsdWVcblxuICAgICAgICAgICAgICAgICAgICAtLWlcblxuICAgICAgICAgICAgKytpXG5cbiAgICAgICAgdGhyb3cgbmV3IFBhcnNlTW9yZSAnTWFsZm9ybWVkIGlubGluZSBZQU1MIHN0cmluZyAnK3NlcXVlbmNlXG5cblxuICAgICMgUGFyc2VzIGEgbWFwcGluZyB0byBhIFlBTUwgc3RyaW5nLlxuICAgICNcbiAgICAjIEBwYXJhbSBbU3RyaW5nXSAgIG1hcHBpbmdcbiAgICAjIEBwYXJhbSBbT2JqZWN0XSAgIGNvbnRleHRcbiAgICAjXG4gICAgIyBAcmV0dXJuIFtTdHJpbmddICBBIFlBTUwgc3RyaW5nXG4gICAgI1xuICAgICMgQHRocm93IFtQYXJzZU1vcmVdIFdoZW4gbWFsZm9ybWVkIGlubGluZSBZQU1MIHN0cmluZyBpcyBwYXJzZWRcbiAgICAjXG4gICAgQHBhcnNlTWFwcGluZzogKG1hcHBpbmcsIGNvbnRleHQpIC0+XG4gICAgICAgIG91dHB1dCA9IHt9XG4gICAgICAgIGxlbiA9IG1hcHBpbmcubGVuZ3RoXG4gICAgICAgIHtpfSA9IGNvbnRleHRcbiAgICAgICAgaSArPSAxXG5cbiAgICAgICAgIyB7Zm9vOiBiYXIsIGJhcjpmb28sIC4uLn1cbiAgICAgICAgc2hvdWxkQ29udGludWVXaGlsZUxvb3AgPSBmYWxzZVxuICAgICAgICB3aGlsZSBpIDwgbGVuXG4gICAgICAgICAgICBjb250ZXh0LmkgPSBpXG4gICAgICAgICAgICBzd2l0Y2ggbWFwcGluZy5jaGFyQXQoaSlcbiAgICAgICAgICAgICAgICB3aGVuICcgJywgJywnLCBcIlxcblwiXG4gICAgICAgICAgICAgICAgICAgICsraVxuICAgICAgICAgICAgICAgICAgICBjb250ZXh0LmkgPSBpXG4gICAgICAgICAgICAgICAgICAgIHNob3VsZENvbnRpbnVlV2hpbGVMb29wID0gdHJ1ZVxuICAgICAgICAgICAgICAgIHdoZW4gJ30nXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBvdXRwdXRcblxuICAgICAgICAgICAgaWYgc2hvdWxkQ29udGludWVXaGlsZUxvb3BcbiAgICAgICAgICAgICAgICBzaG91bGRDb250aW51ZVdoaWxlTG9vcCA9IGZhbHNlXG4gICAgICAgICAgICAgICAgY29udGludWVcblxuICAgICAgICAgICAgIyBLZXlcbiAgICAgICAgICAgIGtleSA9IEBwYXJzZVNjYWxhciBtYXBwaW5nLCBbJzonLCAnICcsIFwiXFxuXCJdLCBbJ1wiJywgXCInXCJdLCBjb250ZXh0LCBmYWxzZVxuICAgICAgICAgICAge2l9ID0gY29udGV4dFxuXG4gICAgICAgICAgICAjIFZhbHVlXG4gICAgICAgICAgICBkb25lID0gZmFsc2VcblxuICAgICAgICAgICAgd2hpbGUgaSA8IGxlblxuICAgICAgICAgICAgICAgIGNvbnRleHQuaSA9IGlcbiAgICAgICAgICAgICAgICBzd2l0Y2ggbWFwcGluZy5jaGFyQXQoaSlcbiAgICAgICAgICAgICAgICAgICAgd2hlbiAnWydcbiAgICAgICAgICAgICAgICAgICAgICAgICMgTmVzdGVkIHNlcXVlbmNlXG4gICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZSA9IEBwYXJzZVNlcXVlbmNlIG1hcHBpbmcsIGNvbnRleHRcbiAgICAgICAgICAgICAgICAgICAgICAgIHtpfSA9IGNvbnRleHRcbiAgICAgICAgICAgICAgICAgICAgICAgICMgU3BlYzogS2V5cyBNVVNUIGJlIHVuaXF1ZTsgZmlyc3Qgb25lIHdpbnMuXG4gICAgICAgICAgICAgICAgICAgICAgICAjIFBhcnNlciBjYW5ub3QgYWJvcnQgdGhpcyBtYXBwaW5nIGVhcmxpZXIsIHNpbmNlIGxpbmVzXG4gICAgICAgICAgICAgICAgICAgICAgICAjIGFyZSBwcm9jZXNzZWQgc2VxdWVudGlhbGx5LlxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgb3V0cHV0W2tleV0gPT0gdW5kZWZpbmVkXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgb3V0cHV0W2tleV0gPSB2YWx1ZVxuICAgICAgICAgICAgICAgICAgICAgICAgZG9uZSA9IHRydWVcbiAgICAgICAgICAgICAgICAgICAgd2hlbiAneydcbiAgICAgICAgICAgICAgICAgICAgICAgICMgTmVzdGVkIG1hcHBpbmdcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlID0gQHBhcnNlTWFwcGluZyBtYXBwaW5nLCBjb250ZXh0XG4gICAgICAgICAgICAgICAgICAgICAgICB7aX0gPSBjb250ZXh0XG4gICAgICAgICAgICAgICAgICAgICAgICAjIFNwZWM6IEtleXMgTVVTVCBiZSB1bmlxdWU7IGZpcnN0IG9uZSB3aW5zLlxuICAgICAgICAgICAgICAgICAgICAgICAgIyBQYXJzZXIgY2Fubm90IGFib3J0IHRoaXMgbWFwcGluZyBlYXJsaWVyLCBzaW5jZSBsaW5lc1xuICAgICAgICAgICAgICAgICAgICAgICAgIyBhcmUgcHJvY2Vzc2VkIHNlcXVlbnRpYWxseS5cbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIG91dHB1dFtrZXldID09IHVuZGVmaW5lZFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG91dHB1dFtrZXldID0gdmFsdWVcbiAgICAgICAgICAgICAgICAgICAgICAgIGRvbmUgPSB0cnVlXG4gICAgICAgICAgICAgICAgICAgIHdoZW4gJzonLCAnICcsIFwiXFxuXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICMgRG8gbm90aGluZ1xuICAgICAgICAgICAgICAgICAgICBlbHNlXG4gICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZSA9IEBwYXJzZVNjYWxhciBtYXBwaW5nLCBbJywnLCAnfSddLCBbJ1wiJywgXCInXCJdLCBjb250ZXh0XG4gICAgICAgICAgICAgICAgICAgICAgICB7aX0gPSBjb250ZXh0XG4gICAgICAgICAgICAgICAgICAgICAgICAjIFNwZWM6IEtleXMgTVVTVCBiZSB1bmlxdWU7IGZpcnN0IG9uZSB3aW5zLlxuICAgICAgICAgICAgICAgICAgICAgICAgIyBQYXJzZXIgY2Fubm90IGFib3J0IHRoaXMgbWFwcGluZyBlYXJsaWVyLCBzaW5jZSBsaW5lc1xuICAgICAgICAgICAgICAgICAgICAgICAgIyBhcmUgcHJvY2Vzc2VkIHNlcXVlbnRpYWxseS5cbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIG91dHB1dFtrZXldID09IHVuZGVmaW5lZFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG91dHB1dFtrZXldID0gdmFsdWVcbiAgICAgICAgICAgICAgICAgICAgICAgIGRvbmUgPSB0cnVlXG4gICAgICAgICAgICAgICAgICAgICAgICAtLWlcblxuICAgICAgICAgICAgICAgICsraVxuXG4gICAgICAgICAgICAgICAgaWYgZG9uZVxuICAgICAgICAgICAgICAgICAgICBicmVha1xuXG4gICAgICAgIHRocm93IG5ldyBQYXJzZU1vcmUgJ01hbGZvcm1lZCBpbmxpbmUgWUFNTCBzdHJpbmcgJyttYXBwaW5nXG5cblxuICAgICMgRXZhbHVhdGVzIHNjYWxhcnMgYW5kIHJlcGxhY2VzIG1hZ2ljIHZhbHVlcy5cbiAgICAjXG4gICAgIyBAcGFyYW0gW1N0cmluZ10gICBzY2FsYXJcbiAgICAjXG4gICAgIyBAcmV0dXJuIFtTdHJpbmddICBBIFlBTUwgc3RyaW5nXG4gICAgI1xuICAgIEBldmFsdWF0ZVNjYWxhcjogKHNjYWxhciwgY29udGV4dCkgLT5cbiAgICAgICAgc2NhbGFyID0gVXRpbHMudHJpbShzY2FsYXIpXG4gICAgICAgIHNjYWxhckxvd2VyID0gc2NhbGFyLnRvTG93ZXJDYXNlKClcblxuICAgICAgICBzd2l0Y2ggc2NhbGFyTG93ZXJcbiAgICAgICAgICAgIHdoZW4gJ251bGwnLCAnJywgJ34nXG4gICAgICAgICAgICAgICAgcmV0dXJuIG51bGxcbiAgICAgICAgICAgIHdoZW4gJ3RydWUnXG4gICAgICAgICAgICAgICAgcmV0dXJuIHRydWVcbiAgICAgICAgICAgIHdoZW4gJ2ZhbHNlJ1xuICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZVxuICAgICAgICAgICAgd2hlbiAnLmluZidcbiAgICAgICAgICAgICAgICByZXR1cm4gSW5maW5pdHlcbiAgICAgICAgICAgIHdoZW4gJy5uYW4nXG4gICAgICAgICAgICAgICAgcmV0dXJuIE5hTlxuICAgICAgICAgICAgd2hlbiAnLS5pbmYnXG4gICAgICAgICAgICAgICAgcmV0dXJuIEluZmluaXR5XG4gICAgICAgICAgICBlbHNlXG4gICAgICAgICAgICAgICAgZmlyc3RDaGFyID0gc2NhbGFyTG93ZXIuY2hhckF0KDApXG4gICAgICAgICAgICAgICAgc3dpdGNoIGZpcnN0Q2hhclxuICAgICAgICAgICAgICAgICAgICB3aGVuICchJ1xuICAgICAgICAgICAgICAgICAgICAgICAgZmlyc3RTcGFjZSA9IHNjYWxhci5pbmRleE9mKCcgJylcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIGZpcnN0U3BhY2UgaXMgLTFcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmaXJzdFdvcmQgPSBzY2FsYXJMb3dlclxuICAgICAgICAgICAgICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZpcnN0V29yZCA9IHNjYWxhckxvd2VyWzAuLi5maXJzdFNwYWNlXVxuICAgICAgICAgICAgICAgICAgICAgICAgc3dpdGNoIGZpcnN0V29yZFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHdoZW4gJyEnXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIGZpcnN0U3BhY2UgaXNudCAtMVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHBhcnNlSW50IEBwYXJzZVNjYWxhcihzY2FsYXJbMi4uXSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIG51bGxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB3aGVuICchc3RyJ1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gVXRpbHMubHRyaW0gc2NhbGFyWzQuLl1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB3aGVuICchIXN0cidcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFV0aWxzLmx0cmltIHNjYWxhcls1Li5dXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgd2hlbiAnISFpbnQnXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBwYXJzZUludChAcGFyc2VTY2FsYXIoc2NhbGFyWzUuLl0pKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHdoZW4gJyEhYm9vbCdcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFV0aWxzLnBhcnNlQm9vbGVhbihAcGFyc2VTY2FsYXIoc2NhbGFyWzYuLl0pLCBmYWxzZSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB3aGVuICchIWZsb2F0J1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gcGFyc2VGbG9hdChAcGFyc2VTY2FsYXIoc2NhbGFyWzcuLl0pKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHdoZW4gJyEhdGltZXN0YW1wJ1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gVXRpbHMuc3RyaW5nVG9EYXRlKFV0aWxzLmx0cmltKHNjYWxhclsxMS4uXSkpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB1bmxlc3MgY29udGV4dD9cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnRleHQgPSBleGNlcHRpb25PbkludmFsaWRUeXBlOiBAc2V0dGluZ3MuZXhjZXB0aW9uT25JbnZhbGlkVHlwZSwgb2JqZWN0RGVjb2RlcjogQHNldHRpbmdzLm9iamVjdERlY29kZXIsIGk6IDBcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge29iamVjdERlY29kZXIsIGV4Y2VwdGlvbk9uSW52YWxpZFR5cGV9ID0gY29udGV4dFxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIG9iamVjdERlY29kZXJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICMgSWYgb2JqZWN0RGVjb2RlciBmdW5jdGlvbiBpcyBnaXZlbiwgd2UgY2FuIGRvIGN1c3RvbSBkZWNvZGluZyBvZiBjdXN0b20gdHlwZXNcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRyaW1tZWRTY2FsYXIgPSBVdGlscy5ydHJpbSBzY2FsYXJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZpcnN0U3BhY2UgPSB0cmltbWVkU2NhbGFyLmluZGV4T2YoJyAnKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgZmlyc3RTcGFjZSBpcyAtMVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBvYmplY3REZWNvZGVyIHRyaW1tZWRTY2FsYXIsIG51bGxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdWJWYWx1ZSA9IFV0aWxzLmx0cmltIHRyaW1tZWRTY2FsYXJbZmlyc3RTcGFjZSsxLi5dXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdW5sZXNzIHN1YlZhbHVlLmxlbmd0aCA+IDBcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3ViVmFsdWUgPSBudWxsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIG9iamVjdERlY29kZXIgdHJpbW1lZFNjYWxhclswLi4uZmlyc3RTcGFjZV0sIHN1YlZhbHVlXG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgZXhjZXB0aW9uT25JbnZhbGlkVHlwZVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhyb3cgbmV3IFBhcnNlRXhjZXB0aW9uICdDdXN0b20gb2JqZWN0IHN1cHBvcnQgd2hlbiBwYXJzaW5nIGEgWUFNTCBmaWxlIGhhcyBiZWVuIGRpc2FibGVkLidcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gbnVsbFxuICAgICAgICAgICAgICAgICAgICB3aGVuICcwJ1xuICAgICAgICAgICAgICAgICAgICAgICAgaWYgJzB4JyBpcyBzY2FsYXJbMC4uLjJdXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFV0aWxzLmhleERlYyBzY2FsYXJcbiAgICAgICAgICAgICAgICAgICAgICAgIGVsc2UgaWYgVXRpbHMuaXNEaWdpdHMgc2NhbGFyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFV0aWxzLm9jdERlYyBzY2FsYXJcbiAgICAgICAgICAgICAgICAgICAgICAgIGVsc2UgaWYgVXRpbHMuaXNOdW1lcmljIHNjYWxhclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBwYXJzZUZsb2F0IHNjYWxhclxuICAgICAgICAgICAgICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBzY2FsYXJcbiAgICAgICAgICAgICAgICAgICAgd2hlbiAnKydcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIFV0aWxzLmlzRGlnaXRzIHNjYWxhclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJhdyA9IHNjYWxhclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhc3QgPSBwYXJzZUludChyYXcpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgcmF3IGlzIFN0cmluZyhjYXN0KVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gY2FzdFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHJhd1xuICAgICAgICAgICAgICAgICAgICAgICAgZWxzZSBpZiBVdGlscy5pc051bWVyaWMgc2NhbGFyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHBhcnNlRmxvYXQgc2NhbGFyXG4gICAgICAgICAgICAgICAgICAgICAgICBlbHNlIGlmIEBQQVRURVJOX1RIT1VTQU5EX05VTUVSSUNfU0NBTEFSLnRlc3Qgc2NhbGFyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHBhcnNlRmxvYXQoc2NhbGFyLnJlcGxhY2UoJywnLCAnJykpXG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gc2NhbGFyXG4gICAgICAgICAgICAgICAgICAgIHdoZW4gJy0nXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiBVdGlscy5pc0RpZ2l0cyhzY2FsYXJbMS4uXSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAnMCcgaXMgc2NhbGFyLmNoYXJBdCgxKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gLVV0aWxzLm9jdERlYyhzY2FsYXJbMS4uXSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbHNlXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJhdyA9IHNjYWxhclsxLi5dXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhc3QgPSBwYXJzZUludChyYXcpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIHJhdyBpcyBTdHJpbmcoY2FzdClcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAtY2FzdFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbHNlXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gLXJhd1xuICAgICAgICAgICAgICAgICAgICAgICAgZWxzZSBpZiBVdGlscy5pc051bWVyaWMgc2NhbGFyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHBhcnNlRmxvYXQgc2NhbGFyXG4gICAgICAgICAgICAgICAgICAgICAgICBlbHNlIGlmIEBQQVRURVJOX1RIT1VTQU5EX05VTUVSSUNfU0NBTEFSLnRlc3Qgc2NhbGFyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHBhcnNlRmxvYXQoc2NhbGFyLnJlcGxhY2UoJywnLCAnJykpXG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gc2NhbGFyXG4gICAgICAgICAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIGRhdGUgPSBVdGlscy5zdHJpbmdUb0RhdGUoc2NhbGFyKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBkYXRlXG4gICAgICAgICAgICAgICAgICAgICAgICBlbHNlIGlmIFV0aWxzLmlzTnVtZXJpYyhzY2FsYXIpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHBhcnNlRmxvYXQgc2NhbGFyXG4gICAgICAgICAgICAgICAgICAgICAgICBlbHNlIGlmIEBQQVRURVJOX1RIT1VTQU5EX05VTUVSSUNfU0NBTEFSLnRlc3Qgc2NhbGFyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHBhcnNlRmxvYXQoc2NhbGFyLnJlcGxhY2UoJywnLCAnJykpXG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gc2NhbGFyXG5cbm1vZHVsZS5leHBvcnRzID0gSW5saW5lXG4iLCJcbklubGluZSAgICAgICAgICA9IHJlcXVpcmUgJy4vSW5saW5lJ1xuUGF0dGVybiAgICAgICAgID0gcmVxdWlyZSAnLi9QYXR0ZXJuJ1xuVXRpbHMgICAgICAgICAgID0gcmVx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NFX0lURU0uZXhlYyBAY3VycmVudExpbmVcbiAgICAgICAgICAgICAgICBpZiBAQ09OVEVYVF9NQVBQSU5HIGlzIGNvbnRleHRcbiAgICAgICAgICAgICAgICAgICAgdGhyb3cgbmV3IFBhcnNlRXhjZXB0aW9uICdZb3UgY2Fubm90IGRlZmluZSBhIHNlcXVlbmNlIGl0ZW0gd2hlbiBpbiBhIG1hcHBpbmcnXG4gICAgICAgICAgICAgICAgY29udGV4dCA9IEBDT05URVhUX1NFUVVFTkNFXG4gICAgICAgICAgICAgICAgZGF0YSA/PSBbXVxuXG4gICAgICAgICAgICAgICAgaWYgdmFsdWVzLnZhbHVlPyBhbmQgbWF0Y2hlcyA9IEBQQVRURVJOX0FOQ0hPUl9WQUxVRS5leGVjIHZhbHVlcy52YWx1ZVxuICAgICAgICAgICAgICAgICAgICBpc1JlZiA9IG1hdGNoZXMucmVmXG4gICAgICAgICAgICAgICAgICAgIHZhbHVlcy52YWx1ZSA9IG1hdGNoZXMudmFsdWVcblxuICAgICAgICAgICAgICAgICMgQXJyYXlcbiAgICAgICAgICAgICAgICBpZiBub3QodmFsdWVzLnZhbHVlPykgb3IgJycgaXMgVXRpbHMudHJpbSh2YWx1ZXMudmFsdWUsICcgJykgb3IgVXRpbHMubHRyaW0odmFsdWVzLnZhbHVlLCAnICcpLmluZGV4T2YoJyMnKSBpcyAwXG4gICAgICAgICAgICAgICAgICAgIGlmIEBjdXJyZW50TGluZU5iIDwgQGxpbmVzLmxlbmd0aCAtIDEgYW5kIG5vdCBAaXNOZXh0TGluZVVuSW5kZW50ZWRDb2xsZWN0aW9uKClcbiAgICAgICAgICAgICAgICAgICAgICAgIGMgPSBAZ2V0UmVhbEN1cnJlbnRMaW5lTmIoKSArIDFcbiAgICAgICAgICAgICAgICAgICAgICAgIHBhcnNlciA9IG5ldyBQYXJzZXIgY1xuICAgICAgICAgICAgICAgICAgICAgICAgcGFyc2VyLnJlZnMgPSBAcmVmc1xuICAgICAgICAgICAgICAgICAgICAgICAgZGF0YS5wdXNoIHBhcnNlci5wYXJzZShAZ2V0TmV4dEVtYmVkQmxvY2sobnVsbCwgdHJ1ZSksIGV4Y2VwdGlvbk9uSW52YWxpZFR5cGUsIG9iamVjdERlY29kZXIpXG4gICAgICAgICAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICAgICAgICAgIGRhdGEucHVzaCBudWxsXG5cbiAgICAgICAgICAgICAgICBlbHNlXG4gICAgICAgICAgICAgICAgICAgIGlmIHZhbHVlcy5sZWFkc3BhY2VzPy5sZW5ndGggYW5kIG1hdGNoZXMgPSBAUEFUVEVSTl9DT01QQUNUX05PVEFUSU9OLmV4ZWMgdmFsdWVzLnZhbHVlXG5cbiAgICAgICAgICAgICAgICAgICAgICAgICMgVGhpcyBpcyBhIGNvbXBhY3Qgbm90YXRpb24gZWxlbWVudCwgYWRkIHRvIG5leHQgYmxvY2sgYW5kIHBhcnNlXG4gICAgICAgICAgICAgICAgICAgICAgICBjID0gQGdldFJlYWxDdXJyZW50TGluZU5iKClcbiAgICAgICAgICAgICAgICAgICAgICAgIHBhcnNlciA9IG5ldyBQYXJzZXIgY1xuICAgICAgICAgICAgICAgICAgICAgICAgcGFyc2VyLnJlZnMgPSBAcmVmc1xuXG4gICAgICAgICAgICAgICAgICAgICAgICBibG9jayA9IHZhbHVlcy52YWx1ZVxuICAgICAgICAgICAgICAgICAgICAgICAgaW5kZW50ID0gQGdldEN1cnJlbnRMaW5lSW5kZW50YXRpb24oKVxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgQGlzTmV4dExpbmVJbmRlbnRlZChmYWxzZSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBibG9jayArPSBcIlxcblwiK0BnZXROZXh0RW1iZWRCbG9jayhpbmRlbnQgKyB2YWx1ZXMubGVhZHNwYWNlcy5sZW5ndGggKyAxLCB0cnVlKVxuXG4gICAgICAgICAgICAgICAgICAgICAgICBkYXRhLnB1c2ggcGFyc2VyLnBhcnNlIGJsb2NrLCBleGNlcHRpb25PbkludmFsaWRUeXBlLCBvYmplY3REZWNvZGVyXG5cbiAgICAgICAgICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgICAgICAgICAgZGF0YS5wdXNoIEBwYXJzZVZhbHVlIHZhbHVlcy52YWx1ZSwgZXhjZXB0aW9uT25JbnZhbGlkVHlwZSwgb2JqZWN0RGVjb2RlclxuXG4gICAgICAgICAgICBlbHNlIGlmICh2YWx1ZXMgPSBAUEFUVEVSTl9NQVBQSU5HX0lURU0uZXhlYyBAY3VycmVudExpbmUpIGFuZCB2YWx1ZXMua2V5LmluZGV4T2YoJyAjJykgaXMgLTFcbiAgICAgICAgICAgICAgICBpZiBAQ09OVEVYVF9TRVFVRU5DRSBpcyBjb250ZXh0XG4gICAgICAgICAgICAgICAgICAgIHRocm93IG5ldyBQYXJzZUV4Y2VwdGlvbiAnWW91IGNhbm5vdCBkZWZpbmUgYSBtYXBwaW5nIGl0ZW0gd2hlbiBpbiBhIHNlcXVlbmNlJ1xuICAgICAgICAgICAgICAgIGNvbnRleHQgPSBAQ09OVEVYVF9NQVBQSU5HXG4gICAgICAgICAgICAgICAgZGF0YSA/PSB7fVxuXG4gICAgICAgICAgICAgICAgIyBGb3JjZSBjb3JyZWN0IHNldHRpbmdzXG4gICAgICAgICAgICAgICAgSW5saW5lLmNvbmZpZ3VyZSBleGNlcHRpb25PbkludmFsaWRUeXBlLCBvYmplY3REZWNvZGVyXG4gICAgICAgICAgICAgICAgdHJ5XG4gICAgICAgICAgICAgICAgICAgIGtleSA9IElubGluZS5wYXJzZVNjYWxhciB2YWx1ZXMua2V5XG4gICAgICAgICAgICAgICAgY2F0Y2ggZVxuICAgICAgICAgICAgICAgICAgICBlLnBhcnNlZExpbmUgPSBAZ2V0UmVhbEN1cnJlbnRMaW5lTmIoKSArIDFcbiAgICAgICAgICAgICAgICAgICAgZS5zbmlwcGV0ID0gQGN1cnJlbnRMaW5lXG5cbiAgICAgICAgICAgICAgICAgICAgdGhyb3cgZVxuXG4gICAgICAgICAgICAgICAgaWYgJzw8JyBpcyBrZXlcbiAgICAgICAgICAgICAgICAgICAgbWVyZ2VOb2RlID0gdHJ1ZVxuICAgICAgICAgICAgICAgICAgICBhbGxvd092ZXJ3cml0ZSA9IHRydWVcbiAgICAgICAgICAgICAgICAgICAgaWYgdmFsdWVzLnZhbHVlPy5pbmRleE9mKCcqJykgaXMgMFxuICAgICAgICAgICAgICAgICAgICAgICAgcmVmTmFtZSA9IHZhbHVlcy52YWx1ZVsxLi5dXG4gICAgICAgICAgICAgICAgICAgICAgICB1bmxlc3MgQHJlZnNbcmVmTmFtZV0/XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhyb3cgbmV3IFBhcnNlRXhjZXB0aW9uICdSZWZlcmVuY2UgXCInK3JlZk5hbWUrJ1wiIGRvZXMgbm90IGV4aXN0LicsIEBnZXRSZWFsQ3VycmVudExpbmVOYigpICsgMSwgQGN1cnJlbnRMaW5lXG5cbiAgICAgICAgICAgICAgICAgICAgICAgIHJlZlZhbHVlID0gQHJlZnNbcmVmTmFtZV1cblxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgdHlwZW9mIHJlZlZhbHVlIGlzbnQgJ29iamVjdCdcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aHJvdyBuZXcgUGFyc2VFeGNlcHRpb24gJ1lBTUwgbWVyZ2Uga2V5cyB1c2VkIHdpdGggYSBzY2FsYXIgdmFsdWUgaW5zdGVhZCBvZiBhbiBvYmplY3QuJywgQGdldFJlYWxDdXJyZW50TGluZU5iKCkgKyAxLCBAY3VycmVudExpbmVcblxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgcmVmVmFsdWUgaW5zdGFuY2VvZiBBcnJheVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICMgTWVyZ2UgYXJyYXkgd2l0aCBvYmplY3RcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb3IgdmFsdWUsIGkgaW4gcmVmVmFsdWVcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGF0YVtTdHJpbmcoaSldID89IHZhbHVlXG4gICAgICAgICAgICAgICAgICAgICAgICBlbHNlXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgIyBNZXJnZSBvYmplY3RzXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZm9yIGtleSwgdmFsdWUgb2YgcmVmVmFsdWVcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGF0YVtrZXldID89IHZhbHVlXG5cbiAgICAgICAgICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgdmFsdWVzLnZhbHVlPyBhbmQgdmFsdWVzLnZhbHVlIGlzbnQgJydcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZSA9IHZhbHVlcy52YWx1ZVxuICAgICAgICAgICAgICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlID0gQGdldE5leHRFbWJlZEJsb2NrKClcblxuICAgICAgICAgICAgICAgICAgICAgICAgYyA9IEBnZXRSZWFsQ3VycmVudExpbmVOYigpICsgMVxuICAgICAgICAgICAgICAgICAgICAgICAgcGFyc2VyID0gbmV3IFBhcnNlciBjXG4gICAgICAgICAgICAgICAgICAgICAgICBwYXJzZXIucmVmcyA9IEByZWZzXG4gICAgICAgICAgICAgICAgICAgICAgICBwYXJzZWQgPSBwYXJzZXIucGFyc2UgdmFsdWUsIGV4Y2VwdGlvbk9uSW52YWxpZFR5cGVcblxuICAgICAgICAgICAgICAgICAgICAgICAgdW5sZXNzIHR5cGVvZiBwYXJzZWQgaXMgJ29iamVjdCdcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aHJvdyBuZXcgUGFyc2VFeGNlcHRpb24gJ1lBTUwgbWVyZ2Uga2V5cyB1c2VkIHdpdGggYSBzY2FsYXIgdmFsdWUgaW5zdGVhZCBvZiBhbiBvYmplY3QuJywgQGdldFJlYWxDdXJyZW50TGluZU5iKCkgKyAxLCBAY3VycmVudExpbmVcblxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgcGFyc2VkIGluc3RhbmNlb2YgQXJyYXlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAjIElmIHRoZSB2YWx1ZSBhc3NvY2lhdGVkIHdpdGggdGhlIG1lcmdlIGtleSBpcyBhIHNlcXVlbmNlLCB0aGVuIHRoaXMgc2VxdWVuY2UgaXMgZXhwZWN0ZWQgdG8gY29udGFpbiBtYXBwaW5nIG5vZGVzXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgIyBhbmQgZWFjaCBvZiB0aGVzZSBub2RlcyBpcyBtZXJnZWQgaW4gdHVybiBhY2NvcmRpbmcgdG8gaXRzIG9yZGVyIGluIHRoZSBzZXF1ZW5jZS4gS2V5cyBpbiBtYXBwaW5nIG5vZGVzIGVhcmxpZXJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAjIGluIHRoZSBzZXF1ZW5jZSBvdmVycmlkZSBrZXlzIHNwZWNpZmllZCBpbiBsYXRlciBtYXBwaW5nIG5vZGVzLlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZvciBwYXJzZWRJdGVtIGluIHBhcnNlZFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB1bmxlc3MgdHlwZW9mIHBhcnNlZEl0ZW0gaXMgJ29iamVjdCdcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRocm93IG5ldyBQYXJzZUV4Y2VwdGlvbiAnTWVyZ2UgaXRlbXMgbXVzdCBiZSBvYmplY3RzLicsIEBnZXRSZWFsQ3VycmVudExpbmVOYigpICsgMSwgcGFyc2VkSXRlbVxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIHBhcnNlZEl0ZW0gaW5zdGFuY2VvZiBBcnJheVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIyBNZXJnZSBhcnJheSB3aXRoIG9iamVjdFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZm9yIHZhbHVlLCBpIGluIHBhcnNlZEl0ZW1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBrID0gU3RyaW5nKGkpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdW5sZXNzIGRhdGEuaGFzT3duUHJvcGVydHkoaylcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGF0YVtrXSA9IHZhbHVlXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICMgTWVyZ2Ugb2JqZWN0c1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZm9yIGtleSwgdmFsdWUgb2YgcGFyc2VkSXRlbVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHVubGVzcyBkYXRhLmhhc093blByb3BlcnR5KGtleSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGF0YVtrZXldID0gdmFsdWVcblxuICAgICAgICAgICAgICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICMgSWYgdGhlIHZhbHVlIGFzc29jaWF0ZWQgd2l0aCB0aGUga2V5IGlzIGEgc2luZ2xlIG1hcHBpbmcgbm9kZSwgZWFjaCBvZiBpdHMga2V5L3ZhbHVlIHBhaXJzIGlzIGluc2VydGVkIGludG8gdGhlXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgIyBjdXJyZW50IG1hcHBpbmcsIHVubGVzcyB0aGUga2V5IGFscmVhZHkgZXhpc3RzIGluIGl0LlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZvciBrZXksIHZhbHVlIG9mIHBhcnNlZFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB1bmxlc3MgZGF0YS5oYXNPd25Qcm9wZXJ0eShrZXkpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkYXRhW2tleV0gPSB2YWx1ZVxuXG4gICAgICAgICAgICAgICAgZWxzZSBpZiB2YWx1ZXMudmFsdWU/IGFuZCBtYXRjaGVzID0gQFBBVFRFUk5fQU5DSE9SX1ZBTFVFLmV4ZWMgdmFsdWVzLnZhbHVlXG4gICAgICAgICAgICAgICAgICAgIGlzUmVmID0gbWF0Y2hlcy5yZWZcbiAgICAgICAgICAgICAgICAgICAgdmFsdWVzLnZhbHVlID0gbWF0Y2hlcy52YWx1ZVxuXG5cbiAgICAgICAgICAgICAgICBpZiBtZXJnZU5vZGVcbiAgICAgICAgICAgICAgICAgICAgIyBNZXJnZSBrZXlzXG4gICAgICAgICAgICAgICAgZWxzZSBpZiBub3QodmFsdWVzLnZhbHVlPykgb3IgJycgaXMgVXRpbHMudHJpbSh2YWx1ZXMudmFsdWUsICcgJykgb3IgVXRpbHMubHRyaW0odmFsdWVzLnZhbHVlLCAnICcpLmluZGV4T2YoJyMnKSBpcyAwXG4gICAgICAgICAgICAgICAgICAgICMgSGFzaFxuICAgICAgICAgICAgICAgICAgICAjIGlmIG5leHQgbGluZSBpcyBsZXNzIGluZGVudGVkIG9yIGVxdWFsLCB0aGVuIGl0IG1lYW5zIHRoYXQgdGhlIGN1cnJlbnQgdmFsdWUgaXMgbnVsbFxuICAgICAgICAgICAgICAgICAgICBpZiBub3QoQGlzTmV4dExpbmVJbmRlbnRlZCgpKSBhbmQgbm90KEBpc05leHRMaW5lVW5JbmRlbnRlZENvbGxlY3Rpb24oKSlcbiAgICAgICAgICAgICAgICAgICAgICAgICMgU3BlYzogS2V5cyBNVVNUIGJlIHVuaXF1ZTsgZmlyc3Qgb25lIHdpbnMuXG4gICAgICAgICAgICAgICAgICAgICAgICAjIEJ1dCBvdmVyd3JpdGluZyBpcyBhbGxvd2VkIHdoZW4gYSBtZXJnZSBub2RlIGlzIHVzZWQgaW4gY3VycmVudCBibG9jay5cbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIGFsbG93T3ZlcndyaXRlIG9yIGRhdGFba2V5XSBpcyB1bmRlZmluZWRcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBkYXRhW2tleV0gPSBudWxsXG5cbiAgICAgICAgICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgICAgICAgICAgYyA9IEBnZXRSZWFsQ3VycmVudExpbmVOYigpICsgMVxuICAgICAgICAgICAgICAgICAgICAgICAgcGFyc2VyID0gbmV3IFBhcnNlciBjXG4gICAgICAgICAgICAgICAgICAgICAgICBwYXJzZXIucmVmcyA9IEByZWZzXG4gICAgICAgICAgICAgICAgICAgICAgICB2YWwgPSBwYXJzZXIucGFyc2UgQGdldE5leHRFbWJlZEJsb2NrKCksIGV4Y2VwdGlvbk9uSW52YWxpZFR5cGUsIG9iamVjdERlY29kZXJcblxuICAgICAgICAgICAgICAgICAgICAgICAgIyBTcGVjOiBLZXlzIE1VU1QgYmUgdW5pcXVlOyBmaXJzdCBvbmUgd2lucy5cbiAgICAgICAgICAgICAgICAgICAgICAgICMgQnV0IG92ZXJ3cml0aW5nIGlzIGFsbG93ZWQgd2hlbiBhIG1lcmdlIG5vZGUgaXMgdXNlZCBpbiBjdXJyZW50IGJsb2NrLlxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgYWxsb3dPdmVyd3JpdGUgb3IgZGF0YVtrZXldIGlzIHVuZGVmaW5lZFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRhdGFba2V5XSA9IHZhbFxuXG4gICAgICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgICAgICB2YWwgPSBAcGFyc2VWYWx1ZSB2YWx1ZXMudmFsdWUsIGV4Y2VwdGlvbk9uSW52YWxpZFR5cGUsIG9iamVjdERlY29kZXJcblxuICAgICAgICAgICAgICAgICAgICAjIFNwZWM6IEtleXMgTVVTVCBiZSB1bmlxdWU7IGZpcnN0IG9uZSB3aW5zLlxuICAgICAgICAgICAgICAgICAgICAjIEJ1dCBvdmVyd3JpdGluZyBpcyBhbGxvd2VkIHdoZW4gYSBtZXJnZSBub2RlIGlzIHVzZWQgaW4gY3VycmVudCBibG9jay5cbiAgICAgICAgICAgICAgICAgICAgaWYgYWxsb3dPdmVyd3JpdGUgb3IgZGF0YVtrZXldIGlzIHVuZGVmaW5lZFxuICAgICAgICAgICAgICAgICAgICAgICAgZGF0YVtrZXldID0gdmFsXG5cbiAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICAjIDEtbGluZXIgb3B0aW9uYWxseSBmb2xsb3dlZCBieSBuZXdsaW5lXG4gICAgICAgICAgICAgICAgbGluZUNvdW50ID0gQGxpbmVzLmxlbmd0aFxuICAgICAgICAgICAgICAgIGlmIDEgaXMgbGluZUNvdW50IG9yICgyIGlzIGxpbmVDb3VudCBhbmQgVXRpbHMuaXNFbXB0eShAbGluZXNbMV0pKVxuICAgICAgICAgICAgICAgICAgICB0cnlcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlID0gSW5saW5lLnBhcnNlIEBsaW5lc1swXSwgZXhjZXB0aW9uT25JbnZhbGlkVHlwZSwgb2JqZWN0RGVjb2RlclxuICAgICAgICAgICAgICAgICAgICBjYXRjaCBlXG4gICAgICAgICAgICAgICAgICAgICAgICBlLnBhcnNlZExpbmUgPSBAZ2V0UmVhbEN1cnJlbnRMaW5lTmIoKSArIDFcbiAgICAgICAgICAgICAgICAgICAgICAgIGUuc25pcHBldCA9IEBjdXJyZW50TGluZVxuXG4gICAgICAgICAgICAgICAgICAgICAgICB0aHJvdyBlXG5cbiAgICAgICAgICAgICAgICAgICAgaWYgdHlwZW9mIHZhbHVlIGlzICdvYmplY3QnXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiB2YWx1ZSBpbnN0YW5jZW9mIEFycmF5XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZmlyc3QgPSB2YWx1ZVswXVxuICAgICAgICAgICAgICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZvciBrZXkgb2YgdmFsdWVcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZmlyc3QgPSB2YWx1ZVtrZXldXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrXG5cbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIHR5cGVvZiBmaXJzdCBpcyAnc3RyaW5nJyBhbmQgZmlyc3QuaW5kZXhPZignKicpIGlzIDBcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBkYXRhID0gW11cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb3IgYWxpYXMgaW4gdmFsdWVcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGF0YS5wdXNoIEByZWZzW2FsaWFzWzEuLl1dXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWUgPSBkYXRhXG5cbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHZhbHVlXG5cbiAgICAgICAgICAgICAgICBlbHNlIGlmIFV0aWxzLmx0cmltKHZhbHVlKS5jaGFyQXQoMCkgaW4gWydbJywgJ3snXVxuICAgICAgICAgICAgICAgICAgICB0cnlcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBJbmxpbmUucGFyc2UgdmFsdWUsIGV4Y2VwdGlvbk9uSW52YWxpZFR5cGUsIG9iamVjdERlY29kZXJcbiAgICAgICAgICAgICAgICAgICAgY2F0Y2ggZVxuICAgICAgICAgICAgICAgICAgICAgICAgZS5wYXJzZWRMaW5lID0gQGdldFJlYWxDdXJyZW50TGluZU5iKCkgKyAxXG4gICAgICAgICAgICAgICAgICAgICAgICBlLnNuaXBwZXQgPSBAY3VycmVudExpbmVcblxuICAgICAgICAgICAgICAgICAgICAgICAgdGhyb3cgZVxuXG4gICAgICAgICAgICAgICAgdGhyb3cgbmV3IFBhcnNlRXhjZXB0aW9uICdVbmFibGUgdG8gcGFyc2UuJywgQGdldFJlYWxDdXJyZW50TGluZU5iKCkgKyAxLCBAY3VycmVudExpbmVcblxuICAgICAgICAgICAgaWYgaXNSZWZcbiAgICAgICAgICAgICAgICBpZiBkYXRhIGluc3RhbmNlb2YgQXJyYXlcbiAgICAgICAgICAgICAgICAgICAgQHJlZnNbaXNSZWZdID0gZGF0YVtkYXRhLmxlbmd0aC0xXVxuICAgICAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICAgICAgbGFzdEtleSA9IG51bGxcbiAgICAgICAgICAgICAgICAgICAgZm9yIGtleSBvZiBkYXRhXG4gICAgICAgICAgICAgICAgICAgICAgICBsYXN0S2V5ID0ga2V5XG4gICAgICAgICAgICAgICAgICAgIEByZWZzW2lzUmVmXSA9IGRhdGFbbGFzdEtleV1cblxuXG4gICAgICAgIGlmIFV0aWxzLmlzRW1wdHkoZGF0YSlcbiAgICAgICAgICAgIHJldHVybiBudWxsXG4gICAgICAgIGVsc2VcbiAgICAgICAgICAgIHJldHVybiBkYXRhXG5cblxuXG4gICAgIyBSZXR1cm5zIHRoZSBjdXJyZW50IGxpbmUgbnVtYmVyICh0YWtlcyB0aGUgb2Zmc2V0IGludG8gYWNjb3VudCkuXG4gICAgI1xuICAgICMgQHJldHVybiBbSW50ZWdlcl0gICAgIFRoZSBjdXJyZW50IGxpbmUgbnVtYmVyXG4gICAgI1xuICAgIGdldFJlYWxDdXJyZW50TGluZU5iOiAtPlxuICAgICAgICByZXR1cm4gQGN1cnJlbnRMaW5lTmIgKyBAb2Zmc2V0XG5cblxuICAgICMgUmV0dXJucyB0aGUgY3VycmVudCBsaW5lIGluZGVudGF0aW9uLlxuICAgICNcbiAgICAjIEByZXR1cm4gW0ludGVnZXJdICAgICBUaGUgY3VycmVudCBsaW5lIGluZGVudGF0aW9uXG4gICAgI1xuICAgIGdldEN1cnJlbnRMaW5lSW5kZW50YXRpb246IC0+XG4gICAgICAgIHJldHVybiBAY3VycmVudExpbmUubGVuZ3Ro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udGludWVcblxuICAgICAgICAgICAgaWYgQGlzQ3VycmVudExpbmVCbGFuaygpXG4gICAgICAgICAgICAgICAgZGF0YS5wdXNoIEBjdXJyZW50TGluZVtuZXdJbmRlbnQuLl1cbiAgICAgICAgICAgICAgICBjb250aW51ZVxuXG4gICAgICAgICAgICBpZiBpc0l0VW5pbmRlbnRlZENvbGxlY3Rpb24gYW5kIG5vdCBAaXNTdHJpbmdVbkluZGVudGVkQ29sbGVjdGlvbkl0ZW0oQGN1cnJlbnRMaW5lKSBhbmQgaW5kZW50IGlzIG5ld0luZGVudFxuICAgICAgICAgICAgICAgIEBtb3ZlVG9QcmV2aW91c0xpbmUoKVxuICAgICAgICAgICAgICAgIGJyZWFrXG5cbiAgICAgICAgICAgIGlmIGluZGVudCA+PSBuZXdJbmRlbnRcbiAgICAgICAgICAgICAgICBkYXRhLnB1c2ggQGN1cnJlbnRMaW5lW25ld0luZGVudC4uXVxuICAgICAgICAgICAgZWxzZSBpZiBVdGlscy5sdHJpbShAY3VycmVudExpbmUpLmNoYXJBdCgwKSBpcyAnIydcbiAgICAgICAgICAgICAgICAjIERvbid0IGFkZCBsaW5lIHdpdGggY29tbWVudHNcbiAgICAgICAgICAgIGVsc2UgaWYgMCBpcyBpbmRlbnRcbiAgICAgICAgICAgICAgICBAbW92ZVRvUHJldmlvdXNMaW5lKClcbiAgICAgICAgICAgICAgICBicmVha1xuICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgIHRocm93IG5ldyBQYXJzZUV4Y2VwdGlvbiAnSW5kZW50YXRpb24gcHJvYmxlbS4nLCBAZ2V0UmVhbEN1cnJlbnRMaW5lTmIoKSArIDEsIEBjdXJyZW50TGluZVxuXG5cbiAgICAgICAgcmV0dXJuIGRhdGEuam9pbiBcIlxcblwiXG5cblxuICAgICMgTW92ZXMgdGhlIHBhcnNlciB0byB0aGUgbmV4dCBsaW5lLlxuICAgICNcbiAgICAjIEByZXR1cm4gW0Jvb2xlYW5dXG4gICAgI1xu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lvbk9uSW52YWxpZFR5cGUsIG9iamVjdERlY29kZXJcbiAgICAgICAgICAgICAgICByZXR1cm4gSW5saW5lLnBhcnNlU2NhbGFyIG1hdGNoZXMudHlwZSsnICcrdmFsXG4gICAgICAgICAgICBlbHNlXG4gICAgICAgICAgICAgICAgcmV0dXJuIHZhbFxuXG4gICAgICAgICMgVmFsdWUgY2FuIGJlIG11bHRpbGluZSBjb21wYWN0IHNlcXVlbmNlIG9yIG1hcHBpbmcgb3Igc3RyaW5nXG4gICAgICAgIGlmIHZhbHVlLmNoYXJBdCgwKSBpbiBbJ1snLCAneycsICdcIicsIFwiJ1wiXVxuICAgICAgICAgICAgd2hpbGUgdHJ1ZVxuICAgICAgICAgICAgICAgIHRyeVxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gSW5saW5lLnBhcnNlIHZhbHVlLCBleGNlcHRpb25PbkludmFsaWRUeXBlLCBvYmplY3REZWNvZGVyXG4gICAgICAgICAgICAgICAgY2F0Y2ggZVxuICAgICAgICAgICAgICAgICAgICBpZiBlIGluc3RhbmNlb2YgUGFyc2VNb3JlIGFuZCBAbW92ZVRvTmV4dExpbmUoKVxuICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWUgKz0gXCJcXG5cIiArIFV0aWxzLnRyaW0oQGN1cnJlbnRMaW5lLCAnICcpXG4gICAgICAgICAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICAgICAgICAgIGUucGFyc2VkTGluZSA9IEBnZXRSZWFsQ3VycmVudExpbmVOYigpICsgMVxuICAgICAgICAgICAgICAgICAgICAgICAgZS5zbmlwcGV0ID0gQGN1cnJlbnRMaW5lXG4gICAgICAgICAgICAgICAgICAgICAgICB0aHJvdyBlXG4gICAgICAgIGVsc2VcbiAgICAgICAgICAgIGlmIEBpc05leHRMaW5lSW5kZW50ZWQoKVxuICAgICAgICAgICAgICAgIHZhbHVlICs9IFwiXFxuXCIgKyBAZ2V0TmV4dEVtYmVkQmxvY2soKVxuICAgICAgICA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s9IEBjdXJyZW50TGluZVtpbmRlbnRhdGlvbi4uXVxuICAgICAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICAgICAgdGV4dCArPSBtYXRjaGVzWzFdXG5cbiAgICAgICAgICAgICAgICAjIG5ld2xpbmUgb25seSBpZiBub3QgRU9GXG4gICAgICAgICAgICAgICAgaWYgbm90RU9GID0gQG1vdmVUb05leHRMaW5lKClcbiAgICAgICAgICAgICAgICAgICAgdGV4dCArPSBcIlxcblwiXG4gICAgICAgICAgICAgICAgICAgIGlzQ3VycmVudExpbmVCbGFuayA9IEBpc0N1cnJlbnRMaW5lQmxhbmsoKVxuXG4gICAgICAgIGVsc2UgaWYgbm90RU9GXG4gICAgICAgICAgICB0ZXh0ICs9IFwiXFxuXCJcblxuXG4gICAgICAgIGlmIG5vdEVPRlxuICAgICAgICAgICAgQG1vdmVUb1ByZXZpb3VzTGluZSgpXG5cblxuICAgICAgICAjIFJlbW92ZSBsaW5lIGJyZWFrcyBvZiBlYWNoIGxpbmVzIGV4Y2VwdCB0aGUgZW1wdHkgYW5kIG1vcmUgaW5kZW50ZWQgb25lc1xuICAgICAgICBpZiAnPicgaXMgc2VwYXJhdG9yXG4gICAgICAgICAgICBuZXdUZXh0ID0gJydcbiAgICAgICAgICAgIGZvciBsaW5lIGluIHRleHQuc3BsaXQgXCJcXG5cIlxuICAgICAgICAgICAgICAgIGlmIGxpbmUubGVuZ3RoIGlzIDAgb3IgbGluZS5jaGFyQXQoMCkgaXMgJyAnXG4gICAgICAgICAgICAgICAgICAgIG5ld1RleHQgPSBVdGlscy5ydHJpbShuZXdUZXh0LCAnICcpICsgbGluZSArIFwiXFxuXCJcbiAgICAgICAgICAgICAgICBlbHNlXG4gICAgICAgICAgICAgICAgICAgIG5ld1RleHQgKz0gbGluZSArICcgJ1xuICAgICAgICAgICAgdGV4dCA9IG5ld1RleHRcblxuICAgICAgICBpZiAnKycgaXNudCBpbmRpY2F0b3JcbiAgICAgICAgICAgICMgUmVt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G5vdChFT0YpIGFuZCBAaXNDdXJyZW50TGluZUJsYW5rKClcbiAgICAgICAgICAgICAgICBFT0YgPSBub3QgQG1vdmVUb05leHRMaW5lKClcblxuICAgICAgICBpZiBFT0ZcbiAgICAgICAgICAgIHJldHVybiBmYWxzZVxuXG4gICAgICAgIHJldCA9IGZhbHNlXG4gICAgICAgIGlmIEBnZXRDdXJyZW50TGluZUluZGVudGF0aW9uKCkgPiBjdXJyZW50SW5kZW50YXRpb25cbiAgICAgICAgICAgIHJldCA9IHRydWVcblxuICAgICAgICBAbW92ZVRvUHJldmlvdXNMaW5lKClcblxuICAgICAgICByZXR1cm4gcmV0XG5cblxuICAgICMgUmV0dXJucyB0cnVlIGlmIHRoZSBjdXJyZW50IGxpbmUgaXMgYmxhbmsgb3IgaWYgaXQgaXMgYSBjb21tZW50IGxpbmUuXG4gICAgI1xuICAgICMgQHJldHVybiBbQm9vbGVhbl0gICAgIFJldHVybnMgdHJ1ZSBpZiB0aGUgY3VycmVudCBsaW5lIGlzIGVtcHR5IG9yIGlmIGl0IGlzIGEgY29tbWVudCBsaW5lLCBmYWxzZSBvdGhlcndpc2VcbiAgICAjXG4gICAgaXNDdXJyZW50TGluZUVtcHR5OiAtPlxuICAgICAgICB0cmltbWVkTGluZSA9IFV0aWxzLnRyaW0oQGN1cnJlbnRMaW5lLCAnICcpXG4gICAgICAgIHJldHVybiB0cmltbWVkTGluZS5sZW5ndGggaXMgMCBvciB0cmltbWVkTGluZS5jaGFyQXQoMCkgaXMgJyMnXG5cblxuICAgICMgUmV0dXJucyB0cnVlIGlmIHRoZSBjdXJyZW50IGxpbmUgaXMgYmxhbmsuXG4gICAgI1xuICAgICMgQHJldHVybiBbQm9vbGVhbl0gICAgIFJldHVybnMgdHJ1ZSBpZiB0aGUgY3VycmVudCBsaW5lIGlzIGJsYW5rLCBmYWxzZSBvdGhlcndpc2VcbiAgICAjXG4gICAgaXNDdXJyZW50TGluZUJsYW5rOiAtPlxuICAgICAgICByZXR1cm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dCcmFja2V0TnVtYmVyID0gMFxuICAgICAgICBpID0gMFxuICAgICAgICB3aGlsZSBpIDwgbGVuXG4gICAgICAgICAgICBfY2hhciA9IHJhd1JlZ2V4LmNoYXJBdChpKVxuICAgICAgICAgICAgaWYgX2NoYXIgaXMgJ1xcXFwnXG4gICAgICAgICAgICAgICAgIyBJZ25vcmUgbmV4dCBjaGFyYWN0ZXJcbiAgICAgICAgICAgICAgICBjbGVhbmVkUmVnZXggKz0gcmF3UmVnZXhbaS4uaSsxXVxuICAgICAgICAgICAgICAgIGkrK1xuICAgICAgICAgICAgZWxzZSBpZiBfY2hhciBpcyAnKCdcbiAgICAgICAgICAgICAgICAjIEluY3JlYXNlIGJyYWNrZXQgbnVtYmVyLCBvbmx5IGlmIGl0IGlzIGNhcHR1cmluZ1xuICAgICAgICAgICAgICAgIGlmIGkgPCBsZW4gLSAyXG4gICAgICAgICAgICAgICAgICAgIHBhcnQgPSByYXdSZWdleFtpLi5pKzJdXG4gICAgICAgICAgICAgICAgICAgIGlmIHBhcnQgaXMgJyg/OidcbiAgICAgICAgICAgICAgICAgICAgICAgICMgTm9uLWNhcHR1cmluZyBicmFja2V0XG4gICAgICAgICAgICAgICAgICAgICAgICBpICs9IDJcbiAgICAgICAgICAgICAgICAgICAgICAgIGNsZWFuZWRSZWdleCArPSBwYXJ0XG4gICAgICAgICAgICAgICAgICAgIGVsc2UgaWYgcGFydCBpcyAnKD88J1xuICAgICAgICAgICAgICAgICAgICAgICAgIyBDYXB0dXJpbmcgYnJhY2tldCB3aXRoIHBvc3NpYmx5IGEgbmFtZVxuICAgICAgICAgICAgICAgICAgICAgICAgY2FwdHVyaW5nQnJhY2tldE51bWJlcisrXG4gICAgICAgICAgICAgICAgICAgICAgICBpICs9IDJcbiAgICAgICAgICAgICAgICAgICAgICAgIG5hbWUgPSAnJ1xuICAgICAgICAgICAgICAgICAgICAgICAgd2hpbGUgaSArIDEgPCBsZW5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdWJDaGFyID0gcmF3UmVnZXguY2hhckF0KGkgKyAxKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIHN1YkNoYXIgaXMgJz4nXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNsZWFuZWRSZWdleCArPSAnKCdcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaSsrXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIG5hbWUubGVuZ3RoID4gMFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIyBBc3NvY2lhdGUgYSBuYW1lIHdpdGggYSBjYXB0dXJpbmcgYnJhY2tldCBudW1iZXJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1hcHBpbmcgPz0ge31cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1hcHBpbmdbbmFtZV0gPSBjYXB0dXJpbmdCcmFja2V0TnVtYmVyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBuYW1lICs9IHN1YkNoYXJcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGkrK1xuICAgICAgICAgICAgICAgICAgICBlbHNlXG4gICAgICAgICAgICAgICAgICAgICAgICBjbGVhbmVkUmVnZXggKz0gX2NoYXJcbiAgICAgICAgICAgICAgICAgICAgICAgIGNhcHR1cmluZ0JyYWNrZXROdW1iZXIrK1xuICAgICAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICAgICAgY2xlYW5lZFJlZ2V4ICs9IF9jaGFyXG4gICAgICAgICAgICBlbHNlXG4gICAgICAgICAgICAgICAgY2xlYW5lZFJlZ2V4ICs9IF9jaGFyXG5cbiAgICAgICAgICAgIGkrK1xuXG4gICAgICAgIEByYXdSZWdleCA9IHJhd1JlZ2V4XG4gICAgICAgI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lxuICAgICAgICAgICAgcmV0dXJuIEB1bmVzY2FwZUNoYXJhY3RlcihzdHIpXG5cbiAgICAgICAgIyBFdmFsdWF0ZSB0aGUgc3RyaW5nXG4gICAgICAgIHJldHVybiBAUEFUVEVSTl9FU0NBUEVEX0NIQVJBQ1RFUi5yZXBsYWNlIHZhbHVlLCBAX3VuZXNjYXBlQ2FsbGJhY2tcblxuXG4gICAgIyBVbmVzY2FwZXMgYSBjaGFyYWN0ZXIgdGhhdCB3YXMgZm91bmQgaW4gYSBkb3VibGUtcXVvdGVkIHN0cmluZ1xuICAgICNcbiAgICAjIEBwYXJhbSBbU3RyaW5nXSAgICAgICB2YWx1ZSBBbiBlc2NhcGVkIGNoYXJhY3RlclxuICAgICNcbiAgICAjIEByZXR1cm4gW1N0cmluZ10gICAgICBUaGUgdW5lc2NhcGVkIGNoYXJhY3RlclxuICAgICNcbiAgICBAdW5lc2NhcGVDaGFyYWN0ZXI6ICh2YWx1ZSkgLT5cbiAgICAgICAgY2ggPSBTdHJpbmcuZnJvbUNoYXJDb2RlXG4gICAgICAgIHN3aXRjaCB2YWx1ZS5jaGFyQXQoMSlcbiAgICAgICAgICAgIHdoZW4gJzAnXG4gICAgICAgICAgICAgICAgcmV0dXJuIGNoKDApXG4gICAgICAgICAgICB3aGVuICdhJ1xuICAgICAgICAgICAgICAgIHJldHVybiBjaCg3KVxuICAgICAgICAgICAgd2hlbiAnYidcbiAgICAgICAgICAgICAgICByZXR1cm4gY2goOClcbiAgICAgICAgICAgIHdoZW4gJ3QnXG4gICAgICAgICAgICAgICAgcmV0dXJuIFwiXFx0XCJcbiAgICAgICAgICAgIHdoZW4gXCJcXHRcIlxuICAgICAgICAgICAgICAgIHJldHVybiBcIlxcdFwiXG4gICAgICAgICAgICB3aGVuICduJ1xuICAgICAgICAgICAgICAgIHJldHVybiBcIlxcblwiXG4gICAgICAgICAgICB3aGVuICd2J1xuICAgICAgICAgICAgICAgIHJldHVybiBjaCgxMSlcbiAgICAgICAgICAgIHdoZW4gJ2YnXG4gICAgICAgICAgICAgICAgcmV0dXJuIGNoKDEyKVxuICAgICAgICAgICAgd2hlbiAncidcbiAgICAgICAgICAgICAgICByZXR1cm4gY2goMTMpXG4gICAgICAgICAgICB3aGVuICdlJ1xuICAgICAgICAgICAgICAgIHJldHVybiBjaCgyNylcbiAgICAgICAgICAgIHdoZW4gJyAnXG4gICAgICAgICAgICAgICAgcmV0dXJuICcgJ1xuICAgICAgICAgICAgd2hlbiAnXCInXG4gICAgICAgICAgICAgICAgcmV0dXJuICdcIidcbiAgICAgICAgICAgIHdoZW4gJy8nXG4gICAgICAgICAgICAgICAgcmV0dXJuICcvJ1xuICAgICAgICAgICAgd2hlbiAnXFxcXCdcbiAgICAgICAgICAgICAgICByZXR1cm4gJ1xcXFwnXG4gICAgICAgICAgICB3aGVuICdOJ1xuICAgICAgICAgICAgICAgICMgVSswMDg1IE5FWFQgTElORVxuICAgICAgICAgICAgICAgIHJldHVybiBjaCgweDAwODUpXG4gICAgICAgICAgICB3aGVuICdfJ1xuICAgICAgICAgICAgICAgICMgVSswMEEwIE5PLUJSRUFLIFNQQUNFXG4gICAgICAgICAgICAgICAgcmV0dXJuIGNoKDB4MDBBMClcbiAgICAgICAgICAgIHdoZW4gJ0wnXG4gICAgICAgICAgICAgICAgIyBVKzIwMjggTElORSBTRVBBUkFUT1JcbiAgICAgICAgICAgICAgICByZXR1cm4gY2goMHgyMDI4KVxuICAgICAgICAgICAgd2hlbiAnUCdcbiAgICAgICAgICAgICAgICAjIFUrMjAyOSBQQVJBR1JBUEggU0VQQVJBVE9SXG4gICAgICAgICAgICAgICAgcmV0dXJuIGNoKDB4MjAyOSlcbiAgICAgICAgICAgIHdoZW4gJ3gnXG4gICAgICAgICAgICAgICAgcmV0dXJuIFV0aWxzLnV0ZjhjaHIoVXRpbHMuaGV4RGVjKHZhbHVlLnN1YnN0cigyLCAyKSkpXG4gICAgICAgICAgICB3aGVuICd1J1xuICAgICAgICAgICAgICAgIHJldHVybiBVdGlscy51dGY4Y2hyKFV0aWxzLmhleERlYyh2YWx1ZS5zdWJzdHIoMiwgNCkpKVxuICAgICAgICAgICAgd2hlbiAnVSdcbiAgICAgICAgICAgICAgICByZXR1cm4gVXRpbHMudXRmOGNocihVdGlscy5oZXhEZWModmFsdWUuc3Vic3RyKDIsIDgpKSlcbiAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICByZXR1cm4gJydcblxubW9kdWxlLmV4cG9ydHMgPSBVbmVzY2FwZXJcbiIsIlxuUGF0dGVybiA9IHJlcXVpcmUgJy4vUGF0dGVybidcblxuIyBBIGJ1bmNoIG9mIHV0aWxpdHkgbWV0aG9kc1xuI1xuY2xhc3MgVXRpbHNcblxuICAgIEBSRUdFWF9MRUZUX1RSSU1fQllfQ0hBUjogICB7fVxuICAgIEBSRUdFWF9SSUdIVF9UUklNX0JZX0NIQVI6ICB7fVxuICAgIEBSRUdFWF9TUEFDRVM6ICAgICAgICAgICAgICAvXFxzKy9nXG4gICAgQFJFR0VYX0RJR0lUUzogICAgICAgICAgICAgIC9eXFxkKyQvXG4gICAgQFJFR0VYX09DVEFMOiAgICAgICAgICAgICAgIC9bXjAtN10vZ2lcbiAgICBAUkVHRVhfSEVYQURFQ0lNQUw6ICAgICAgICAgL1teYS1mMC05XS9naVxuXG4gICAgIyBQcmVjb21waWxlZCBkYXRlIHBhdHRlcm5cbiAgICBAUEFUVEVSTl9EQVRFOiAgICAgICAgICAgICAgbmV3IFBhdHRlcm4gJ14nK1xuICAgICAgICAgICAgJyg/PHllYXI+WzAtOV1bMC05XVswLTldWzAtOV0pJytcbiAgICAgICAgICAgICctKD88bW9udGg+WzAtOV1bMC05XT8pJytcbiAgICAgICAgICAgICctKD88ZGF5PlswLTldWzAtOV0/KScrXG4gICAgICAgICAgICAnKD86KD86W1R0XXxbIFxcdF0rKScrXG4gICAgICAgICAgICAnKD88aG91cj5bMC05XVswLTldPyknK1xuICAgICAgICAgICAgJzooPzxtaW51dGU+Wz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VzdCgpXG4gICAgICAgICAgICBlbHNlIGlmIHdpbmRvdy5BY3RpdmVYT2JqZWN0XG4gICAgICAgICAgICAgICAgZm9yIG5hbWUgaW4gW1wiTXN4bWwyLlhNTEhUVFAuNi4wXCIsIFwiTXN4bWwyLlhNTEhUVFAuMy4wXCIsIFwiTXN4bWwyLlhNTEhUVFBcIiwgXCJNaWNyb3NvZnQuWE1MSFRUUFwiXVxuICAgICAgICAgICAgICAgICAgICB0cnlcbiAgICAgICAgICAgICAgICAgICAgICAgIHhociA9IG5ldyBBY3RpdmVYT2JqZWN0KG5hbWUpXG5cbiAgICAgICAgaWYgeGhyP1xuICAgICAgICAgICAgIyBCcm93c2VyXG4gICAgICAgICAgICBpZiBjYWxsYmFjaz9cbiAgICAgICAgICAgICAgICAjIEFzeW5jXG4gICAgICAgICAgICAgICAgeGhyLm9ucmVhZHlzdGF0ZWNoYW5nZSA9IC0+XG4gICAgICAgICAgICAgICAgICAgIGlmIHhoci5yZWFkeVN0YXRlIGlzIDRcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIHhoci5zdGF0dXMgaXMgMjAwIG9yIHhoci5zdGF0dXMgaXMgMFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhbGxiYWNrKHhoci5yZXNwb25zZVRleHQpXG4gICAgICAgICAgICAgICAgICAgICAgICBlbHNlXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY2FsbGJhY2sobnVsbClcbiAgICAgICAgICAgICAgICB4aHIub3BlbiAnR0VUJywgcGF0aCwgdHJ1ZVxuICAgICAgICAgICAgICAgIHhoci5zZW5kIG51bGxcblxuICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgICMgU3luY1xuICAgICAgICAgICAgICAgIHhoci5vcGVuICdHRVQnLCBwYXRoLCBmYWxzZVxuICAgICAgICAgICAgICAgIHhoci5zZW5kIG51bGxcblxuICAgICAgICAgICAgICAgIGlmIHhoci5zdGF0dXMgaXMgMjAwIG9yIHhoci5zdGF0dXMgPT0gMFxuICAgICAgICAgICAgICAgICAgICByZXR1cm4geGhyLnJlc3BvbnNlVGV4dFxuXG4gICAgICAgICAgICAgICAgcmV0dXJuIG51bGxcbiAgICAgICAgZWxzZVxuICAgICAgICAgICAgIyBOb2RlLmpzLWxpa2VcbiAgICAgICAgICAgIHJlcSA9IHJlcXVpcmVcbiAgICAgICAgICAgIGZzID0gcmVxKCdmcycpICMgUHJldmVudCBicm93c2VyaWZ5IGZyb20gdHJ5aW5nIHRvIGxvYWQgJ2ZzJyBtb2R1bGVcbiAgICAgICAgICAgIGlmIGNhbGxiYWNrP1xuICAgICAgICAgICAgICAgICMgQXN5bmNcbiAgICAgICAgICAgICAgICBmcy5yZWFkRmlsZSBwYXRoLCAoZXJyLCBkYXRhKSAtPlxuICAgICAgICAgICAgICAgICAgICBpZiBlcnJcbiAgICAgICAgICAgICAgICAgICAgICAgIGNhbGxiYWNrIG51bGxcbiAgICAgICAgICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgICAgICAgICAgY2FsbGJhY2sgU3RyaW5nKGRhdGEpXG5cbiAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICAjIFN5bmNcbiAgICAgICAgICAgICAgICBkYXRhID0gZnMucmVhZEZpbGVTeW5jIHBhdGhcbiAgICAgICAgICAgICAgICBpZiBkYXRhP1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gU3RyaW5nKGRhdGEpXG4gICAgICAgICAgICAgICAgcmV0dXJuIG51bGxcblxuXG5cbm1vZHVsZS5leHBvcnRzID0gVXRpbHNcbiIsIlxuUGFyc2VyID0gcmVxdWlyZSAnLi9QYXJzZXInXG5EdW1wZXIgPSByZXF1aXJlICcuL0R1bXBlcidcblV0aWxzICA9IHJlcXVpcmUgJy4vVXRpbHMnXG5cbiMgWWFtbCBvZmZlcnMgY29udmVuaWVuY2UgbWV0aG9kcyB0byBsb2FkIGFuZCBkdW1wIFlBTUwuXG4jXG5jbGFzcyBZYW1sXG5cb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