yaml.debug.js 218 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894
  1. (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){
  2. var Dumper, Inline, Utils;
  3. Utils = require('./Utils');
  4. Inline = require('./Inline');
  5. Dumper = (function() {
  6. function Dumper() {}
  7. Dumper.indentation = 4;
  8. Dumper.prototype.dump = function(input, inline, indent, exceptionOnInvalidType, objectEncoder) {
  9. var i, key, len, output, prefix, value, willBeInlined;
  10. if (inline == null) {
  11. inline = 0;
  12. }
  13. if (indent == null) {
  14. indent = 0;
  15. }
  16. if (exceptionOnInvalidType == null) {
  17. exceptionOnInvalidType = false;
  18. }
  19. if (objectEncoder == null) {
  20. objectEncoder = null;
  21. }
  22. output = '';
  23. prefix = (indent ? Utils.strRepeat(' ', indent) : '');
  24. if (inline <= 0 || typeof input !== 'object' || input instanceof Date || Utils.isEmpty(input)) {
  25. output += prefix + Inline.dump(input, exceptionOnInvalidType, objectEncoder);
  26. } else {
  27. if (input instanceof Array) {
  28. for (i = 0, len = input.length; i < len; i++) {
  29. value = input[i];
  30. willBeInlined = inline - 1 <= 0 || typeof value !== 'object' || Utils.isEmpty(value);
  31. output += prefix + '-' + (willBeInlined ? ' ' : "\n") + this.dump(value, inline - 1, (willBeInlined ? 0 : indent + this.indentation), exceptionOnInvalidType, objectEncoder) + (willBeInlined ? "\n" : '');
  32. }
  33. } else {
  34. for (key in input) {
  35. value = input[key];
  36. willBeInlined = inline - 1 <= 0 || typeof value !== 'object' || Utils.isEmpty(value);
  37. output += prefix + Inline.dump(key, exceptionOnInvalidType, objectEncoder) + ':' + (willBeInlined ? ' ' : "\n") + this.dump(value, inline - 1, (willBeInlined ? 0 : indent + this.indentation), exceptionOnInvalidType, objectEncoder) + (willBeInlined ? "\n" : '');
  38. }
  39. }
  40. }
  41. return output;
  42. };
  43. return Dumper;
  44. })();
  45. module.exports = Dumper;
  46. },{"./Inline":6,"./Utils":10}],2:[function(require,module,exports){
  47. var Escaper, Pattern;
  48. Pattern = require('./Pattern');
  49. Escaper = (function() {
  50. var ch;
  51. function Escaper() {}
  52. 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)];
  53. 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"];
  54. Escaper.MAPPING_ESCAPEES_TO_ESCAPED = (function() {
  55. var i, j, mapping, ref;
  56. mapping = {};
  57. for (i = j = 0, ref = Escaper.LIST_ESCAPEES.length; 0 <= ref ? j < ref : j > ref; i = 0 <= ref ? ++j : --j) {
  58. mapping[Escaper.LIST_ESCAPEES[i]] = Escaper.LIST_ESCAPED[i];
  59. }
  60. return mapping;
  61. })();
  62. Escaper.PATTERN_CHARACTERS_TO_ESCAPE = new Pattern('[\\x00-\\x1f]|\xc2\x85|\xc2\xa0|\xe2\x80\xa8|\xe2\x80\xa9');
  63. Escaper.PATTERN_MAPPING_ESCAPEES = new Pattern(Escaper.LIST_ESCAPEES.join('|').split('\\').join('\\\\'));
  64. Escaper.PATTERN_SINGLE_QUOTING = new Pattern('[\\s\'":{}[\\],&*#?]|^[-?|<>=!%@`]');
  65. Escaper.requiresDoubleQuoting = function(value) {
  66. return this.PATTERN_CHARACTERS_TO_ESCAPE.test(value);
  67. };
  68. Escaper.escapeWithDoubleQuotes = function(value) {
  69. var result;
  70. result = this.PATTERN_MAPPING_ESCAPEES.replace(value, (function(_this) {
  71. return function(str) {
  72. return _this.MAPPING_ESCAPEES_TO_ESCAPED[str];
  73. };
  74. })(this));
  75. return '"' + result + '"';
  76. };
  77. Escaper.requiresSingleQuoting = function(value) {
  78. return this.PATTERN_SINGLE_QUOTING.test(value);
  79. };
  80. Escaper.escapeWithSingleQuotes = function(value) {
  81. return "'" + value.replace(/'/g, "''") + "'";
  82. };
  83. return Escaper;
  84. })();
  85. module.exports = Escaper;
  86. },{"./Pattern":8}],3:[function(require,module,exports){
  87. var DumpException,
  88. 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; },
  89. hasProp = {}.hasOwnProperty;
  90. DumpException = (function(superClass) {
  91. extend(DumpException, superClass);
  92. function DumpException(message, parsedLine, snippet) {
  93. this.message = message;
  94. this.parsedLine = parsedLine;
  95. this.snippet = snippet;
  96. }
  97. DumpException.prototype.toString = function() {
  98. if ((this.parsedLine != null) && (this.snippet != null)) {
  99. return '<DumpException> ' + this.message + ' (line ' + this.parsedLine + ': \'' + this.snippet + '\')';
  100. } else {
  101. return '<DumpException> ' + this.message;
  102. }
  103. };
  104. return DumpException;
  105. })(Error);
  106. module.exports = DumpException;
  107. },{}],4:[function(require,module,exports){
  108. var ParseException,
  109. 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; },
  110. hasProp = {}.hasOwnProperty;
  111. ParseException = (function(superClass) {
  112. extend(ParseException, superClass);
  113. function ParseException(message, parsedLine, snippet) {
  114. this.message = message;
  115. this.parsedLine = parsedLine;
  116. this.snippet = snippet;
  117. }
  118. ParseException.prototype.toString = function() {
  119. if ((this.parsedLine != null) && (this.snippet != null)) {
  120. return '<ParseException> ' + this.message + ' (line ' + this.parsedLine + ': \'' + this.snippet + '\')';
  121. } else {
  122. return '<ParseException> ' + this.message;
  123. }
  124. };
  125. return ParseException;
  126. })(Error);
  127. module.exports = ParseException;
  128. },{}],5:[function(require,module,exports){
  129. var ParseMore,
  130. 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; },
  131. hasProp = {}.hasOwnProperty;
  132. ParseMore = (function(superClass) {
  133. extend(ParseMore, superClass);
  134. function ParseMore(message, parsedLine, snippet) {
  135. this.message = message;
  136. this.parsedLine = parsedLine;
  137. this.snippet = snippet;
  138. }
  139. ParseMore.prototype.toString = function() {
  140. if ((this.parsedLine != null) && (this.snippet != null)) {
  141. return '<ParseMore> ' + this.message + ' (line ' + this.parsedLine + ': \'' + this.snippet + '\')';
  142. } else {
  143. return '<ParseMore> ' + this.message;
  144. }
  145. };
  146. return ParseMore;
  147. })(Error);
  148. module.exports = ParseMore;
  149. },{}],6:[function(require,module,exports){
  150. var DumpException, Escaper, Inline, ParseException, ParseMore, Pattern, Unescaper, Utils,
  151. 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; };
  152. Pattern = require('./Pattern');
  153. Unescaper = require('./Unescaper');
  154. Escaper = require('./Escaper');
  155. Utils = require('./Utils');
  156. ParseException = require('./Exception/ParseException');
  157. ParseMore = require('./Exception/ParseMore');
  158. DumpException = require('./Exception/DumpException');
  159. Inline = (function() {
  160. function Inline() {}
  161. Inline.REGEX_QUOTED_STRING = '(?:"(?:[^"\\\\]*(?:\\\\.[^"\\\\]*)*)"|\'(?:[^\']*(?:\'\'[^\']*)*)\')';
  162. Inline.PATTERN_TRAILING_COMMENTS = new Pattern('^\\s*#.*$');
  163. Inline.PATTERN_QUOTED_SCALAR = new Pattern('^' + Inline.REGEX_QUOTED_STRING);
  164. Inline.PATTERN_THOUSAND_NUMERIC_SCALAR = new Pattern('^(-|\\+)?[0-9,]+(\\.[0-9]+)?$');
  165. Inline.PATTERN_SCALAR_BY_DELIMITERS = {};
  166. Inline.settings = {};
  167. Inline.configure = function(exceptionOnInvalidType, objectDecoder) {
  168. if (exceptionOnInvalidType == null) {
  169. exceptionOnInvalidType = null;
  170. }
  171. if (objectDecoder == null) {
  172. objectDecoder = null;
  173. }
  174. this.settings.exceptionOnInvalidType = exceptionOnInvalidType;
  175. this.settings.objectDecoder = objectDecoder;
  176. };
  177. Inline.parse = function(value, exceptionOnInvalidType, objectDecoder) {
  178. var context, result;
  179. if (exceptionOnInvalidType == null) {
  180. exceptionOnInvalidType = false;
  181. }
  182. if (objectDecoder == null) {
  183. objectDecoder = null;
  184. }
  185. this.settings.exceptionOnInvalidType = exceptionOnInvalidType;
  186. this.settings.objectDecoder = objectDecoder;
  187. if (value == null) {
  188. return '';
  189. }
  190. value = Utils.trim(value);
  191. if (0 === value.length) {
  192. return '';
  193. }
  194. context = {
  195. exceptionOnInvalidType: exceptionOnInvalidType,
  196. objectDecoder: objectDecoder,
  197. i: 0
  198. };
  199. switch (value.charAt(0)) {
  200. case '[':
  201. result = this.parseSequence(value, context);
  202. ++context.i;
  203. break;
  204. case '{':
  205. result = this.parseMapping(value, context);
  206. ++context.i;
  207. break;
  208. default:
  209. result = this.parseScalar(value, null, ['"', "'"], context);
  210. }
  211. if (this.PATTERN_TRAILING_COMMENTS.replace(value.slice(context.i), '') !== '') {
  212. throw new ParseException('Unexpected characters near "' + value.slice(context.i) + '".');
  213. }
  214. return result;
  215. };
  216. Inline.dump = function(value, exceptionOnInvalidType, objectEncoder) {
  217. var ref, result, type;
  218. if (exceptionOnInvalidType == null) {
  219. exceptionOnInvalidType = false;
  220. }
  221. if (objectEncoder == null) {
  222. objectEncoder = null;
  223. }
  224. if (value == null) {
  225. return 'null';
  226. }
  227. type = typeof value;
  228. if (type === 'object') {
  229. if (value instanceof Date) {
  230. return value.toISOString();
  231. } else if (objectEncoder != null) {
  232. result = objectEncoder(value);
  233. if (typeof result === 'string' || (result != null)) {
  234. return result;
  235. }
  236. }
  237. return this.dumpObject(value);
  238. }
  239. if (type === 'boolean') {
  240. return (value ? 'true' : 'false');
  241. }
  242. if (Utils.isDigits(value)) {
  243. return (type === 'string' ? "'" + value + "'" : String(parseInt(value)));
  244. }
  245. if (Utils.isNumeric(value)) {
  246. return (type === 'string' ? "'" + value + "'" : String(parseFloat(value)));
  247. }
  248. if (type === 'number') {
  249. return (value === Infinity ? '.Inf' : (value === -Infinity ? '-.Inf' : (isNaN(value) ? '.NaN' : value)));
  250. }
  251. if (Escaper.requiresDoubleQuoting(value)) {
  252. return Escaper.escapeWithDoubleQuotes(value);
  253. }
  254. if (Escaper.requiresSingleQuoting(value)) {
  255. return Escaper.escapeWithSingleQuotes(value);
  256. }
  257. if ('' === value) {
  258. return '""';
  259. }
  260. if (Utils.PATTERN_DATE.test(value)) {
  261. return "'" + value + "'";
  262. }
  263. if ((ref = value.toLowerCase()) === 'null' || ref === '~' || ref === 'true' || ref === 'false') {
  264. return "'" + value + "'";
  265. }
  266. return value;
  267. };
  268. Inline.dumpObject = function(value, exceptionOnInvalidType, objectSupport) {
  269. var j, key, len1, output, val;
  270. if (objectSupport == null) {
  271. objectSupport = null;
  272. }
  273. if (value instanceof Array) {
  274. output = [];
  275. for (j = 0, len1 = value.length; j < len1; j++) {
  276. val = value[j];
  277. output.push(this.dump(val));
  278. }
  279. return '[' + output.join(', ') + ']';
  280. } else {
  281. output = [];
  282. for (key in value) {
  283. val = value[key];
  284. output.push(this.dump(key) + ': ' + this.dump(val));
  285. }
  286. return '{' + output.join(', ') + '}';
  287. }
  288. };
  289. Inline.parseScalar = function(scalar, delimiters, stringDelimiters, context, evaluate) {
  290. var i, joinedDelimiters, match, output, pattern, ref, ref1, strpos, tmp;
  291. if (delimiters == null) {
  292. delimiters = null;
  293. }
  294. if (stringDelimiters == null) {
  295. stringDelimiters = ['"', "'"];
  296. }
  297. if (context == null) {
  298. context = null;
  299. }
  300. if (evaluate == null) {
  301. evaluate = true;
  302. }
  303. if (context == null) {
  304. context = {
  305. exceptionOnInvalidType: this.settings.exceptionOnInvalidType,
  306. objectDecoder: this.settings.objectDecoder,
  307. i: 0
  308. };
  309. }
  310. i = context.i;
  311. if (ref = scalar.charAt(i), indexOf.call(stringDelimiters, ref) >= 0) {
  312. output = this.parseQuotedScalar(scalar, context);
  313. i = context.i;
  314. if (delimiters != null) {
  315. tmp = Utils.ltrim(scalar.slice(i), ' ');
  316. if (!(ref1 = tmp.charAt(0), indexOf.call(delimiters, ref1) >= 0)) {
  317. throw new ParseException('Unexpected characters (' + scalar.slice(i) + ').');
  318. }
  319. }
  320. } else {
  321. if (!delimiters) {
  322. output = scalar.slice(i);
  323. i += output.length;
  324. strpos = output.indexOf(' #');
  325. if (strpos !== -1) {
  326. output = Utils.rtrim(output.slice(0, strpos));
  327. }
  328. } else {
  329. joinedDelimiters = delimiters.join('|');
  330. pattern = this.PATTERN_SCALAR_BY_DELIMITERS[joinedDelimiters];
  331. if (pattern == null) {
  332. pattern = new Pattern('^(.+?)(' + joinedDelimiters + ')');
  333. this.PATTERN_SCALAR_BY_DELIMITERS[joinedDelimiters] = pattern;
  334. }
  335. if (match = pattern.exec(scalar.slice(i))) {
  336. output = match[1];
  337. i += output.length;
  338. } else {
  339. throw new ParseException('Malformed inline YAML string (' + scalar + ').');
  340. }
  341. }
  342. if (evaluate) {
  343. output = this.evaluateScalar(output, context);
  344. }
  345. }
  346. context.i = i;
  347. return output;
  348. };
  349. Inline.parseQuotedScalar = function(scalar, context) {
  350. var i, match, output;
  351. i = context.i;
  352. if (!(match = this.PATTERN_QUOTED_SCALAR.exec(scalar.slice(i)))) {
  353. throw new ParseMore('Malformed inline YAML string (' + scalar.slice(i) + ').');
  354. }
  355. output = match[0].substr(1, match[0].length - 2);
  356. if ('"' === scalar.charAt(i)) {
  357. output = Unescaper.unescapeDoubleQuotedString(output);
  358. } else {
  359. output = Unescaper.unescapeSingleQuotedString(output);
  360. }
  361. i += match[0].length;
  362. context.i = i;
  363. return output;
  364. };
  365. Inline.parseSequence = function(sequence, context) {
  366. var e, error, i, isQuoted, len, output, ref, value;
  367. output = [];
  368. len = sequence.length;
  369. i = context.i;
  370. i += 1;
  371. while (i < len) {
  372. context.i = i;
  373. switch (sequence.charAt(i)) {
  374. case '[':
  375. output.push(this.parseSequence(sequence, context));
  376. i = context.i;
  377. break;
  378. case '{':
  379. output.push(this.parseMapping(sequence, context));
  380. i = context.i;
  381. break;
  382. case ']':
  383. return output;
  384. case ',':
  385. case ' ':
  386. case "\n":
  387. break;
  388. default:
  389. isQuoted = ((ref = sequence.charAt(i)) === '"' || ref === "'");
  390. value = this.parseScalar(sequence, [',', ']'], ['"', "'"], context);
  391. i = context.i;
  392. if (!isQuoted && typeof value === 'string' && (value.indexOf(': ') !== -1 || value.indexOf(":\n") !== -1)) {
  393. try {
  394. value = this.parseMapping('{' + value + '}');
  395. } catch (error) {
  396. e = error;
  397. }
  398. }
  399. output.push(value);
  400. --i;
  401. }
  402. ++i;
  403. }
  404. throw new ParseMore('Malformed inline YAML string ' + sequence);
  405. };
  406. Inline.parseMapping = function(mapping, context) {
  407. var done, i, key, len, output, shouldContinueWhileLoop, value;
  408. output = {};
  409. len = mapping.length;
  410. i = context.i;
  411. i += 1;
  412. shouldContinueWhileLoop = false;
  413. while (i < len) {
  414. context.i = i;
  415. switch (mapping.charAt(i)) {
  416. case ' ':
  417. case ',':
  418. case "\n":
  419. ++i;
  420. context.i = i;
  421. shouldContinueWhileLoop = true;
  422. break;
  423. case '}':
  424. return output;
  425. }
  426. if (shouldContinueWhileLoop) {
  427. shouldContinueWhileLoop = false;
  428. continue;
  429. }
  430. key = this.parseScalar(mapping, [':', ' ', "\n"], ['"', "'"], context, false);
  431. i = context.i;
  432. done = false;
  433. while (i < len) {
  434. context.i = i;
  435. switch (mapping.charAt(i)) {
  436. case '[':
  437. value = this.parseSequence(mapping, context);
  438. i = context.i;
  439. if (output[key] === void 0) {
  440. output[key] = value;
  441. }
  442. done = true;
  443. break;
  444. case '{':
  445. value = this.parseMapping(mapping, context);
  446. i = context.i;
  447. if (output[key] === void 0) {
  448. output[key] = value;
  449. }
  450. done = true;
  451. break;
  452. case ':':
  453. case ' ':
  454. case "\n":
  455. break;
  456. default:
  457. value = this.parseScalar(mapping, [',', '}'], ['"', "'"], context);
  458. i = context.i;
  459. if (output[key] === void 0) {
  460. output[key] = value;
  461. }
  462. done = true;
  463. --i;
  464. }
  465. ++i;
  466. if (done) {
  467. break;
  468. }
  469. }
  470. }
  471. throw new ParseMore('Malformed inline YAML string ' + mapping);
  472. };
  473. Inline.evaluateScalar = function(scalar, context) {
  474. var cast, date, exceptionOnInvalidType, firstChar, firstSpace, firstWord, objectDecoder, raw, scalarLower, subValue, trimmedScalar;
  475. scalar = Utils.trim(scalar);
  476. scalarLower = scalar.toLowerCase();
  477. switch (scalarLower) {
  478. case 'null':
  479. case '':
  480. case '~':
  481. return null;
  482. case 'true':
  483. return true;
  484. case 'false':
  485. return false;
  486. case '.inf':
  487. return Infinity;
  488. case '.nan':
  489. return NaN;
  490. case '-.inf':
  491. return Infinity;
  492. default:
  493. firstChar = scalarLower.charAt(0);
  494. switch (firstChar) {
  495. case '!':
  496. firstSpace = scalar.indexOf(' ');
  497. if (firstSpace === -1) {
  498. firstWord = scalarLower;
  499. } else {
  500. firstWord = scalarLower.slice(0, firstSpace);
  501. }
  502. switch (firstWord) {
  503. case '!':
  504. if (firstSpace !== -1) {
  505. return parseInt(this.parseScalar(scalar.slice(2)));
  506. }
  507. return null;
  508. case '!str':
  509. return Utils.ltrim(scalar.slice(4));
  510. case '!!str':
  511. return Utils.ltrim(scalar.slice(5));
  512. case '!!int':
  513. return parseInt(this.parseScalar(scalar.slice(5)));
  514. case '!!bool':
  515. return Utils.parseBoolean(this.parseScalar(scalar.slice(6)), false);
  516. case '!!float':
  517. return parseFloat(this.parseScalar(scalar.slice(7)));
  518. case '!!timestamp':
  519. return Utils.stringToDate(Utils.ltrim(scalar.slice(11)));
  520. default:
  521. if (context == null) {
  522. context = {
  523. exceptionOnInvalidType: this.settings.exceptionOnInvalidType,
  524. objectDecoder: this.settings.objectDecoder,
  525. i: 0
  526. };
  527. }
  528. objectDecoder = context.objectDecoder, exceptionOnInvalidType = context.exceptionOnInvalidType;
  529. if (objectDecoder) {
  530. trimmedScalar = Utils.rtrim(scalar);
  531. firstSpace = trimmedScalar.indexOf(' ');
  532. if (firstSpace === -1) {
  533. return objectDecoder(trimmedScalar, null);
  534. } else {
  535. subValue = Utils.ltrim(trimmedScalar.slice(firstSpace + 1));
  536. if (!(subValue.length > 0)) {
  537. subValue = null;
  538. }
  539. return objectDecoder(trimmedScalar.slice(0, firstSpace), subValue);
  540. }
  541. }
  542. if (exceptionOnInvalidType) {
  543. throw new ParseException('Custom object support when parsing a YAML file has been disabled.');
  544. }
  545. return null;
  546. }
  547. break;
  548. case '0':
  549. if ('0x' === scalar.slice(0, 2)) {
  550. return Utils.hexDec(scalar);
  551. } else if (Utils.isDigits(scalar)) {
  552. return Utils.octDec(scalar);
  553. } else if (Utils.isNumeric(scalar)) {
  554. return parseFloat(scalar);
  555. } else {
  556. return scalar;
  557. }
  558. break;
  559. case '+':
  560. if (Utils.isDigits(scalar)) {
  561. raw = scalar;
  562. cast = parseInt(raw);
  563. if (raw === String(cast)) {
  564. return cast;
  565. } else {
  566. return raw;
  567. }
  568. } else if (Utils.isNumeric(scalar)) {
  569. return parseFloat(scalar);
  570. } else if (this.PATTERN_THOUSAND_NUMERIC_SCALAR.test(scalar)) {
  571. return parseFloat(scalar.replace(',', ''));
  572. }
  573. return scalar;
  574. case '-':
  575. if (Utils.isDigits(scalar.slice(1))) {
  576. if ('0' === scalar.charAt(1)) {
  577. return -Utils.octDec(scalar.slice(1));
  578. } else {
  579. raw = scalar.slice(1);
  580. cast = parseInt(raw);
  581. if (raw === String(cast)) {
  582. return -cast;
  583. } else {
  584. return -raw;
  585. }
  586. }
  587. } else if (Utils.isNumeric(scalar)) {
  588. return parseFloat(scalar);
  589. } else if (this.PATTERN_THOUSAND_NUMERIC_SCALAR.test(scalar)) {
  590. return parseFloat(scalar.replace(',', ''));
  591. }
  592. return scalar;
  593. default:
  594. if (date = Utils.stringToDate(scalar)) {
  595. return date;
  596. } else if (Utils.isNumeric(scalar)) {
  597. return parseFloat(scalar);
  598. } else if (this.PATTERN_THOUSAND_NUMERIC_SCALAR.test(scalar)) {
  599. return parseFloat(scalar.replace(',', ''));
  600. }
  601. return scalar;
  602. }
  603. }
  604. };
  605. return Inline;
  606. })();
  607. module.exports = Inline;
  608. },{"./Escaper":2,"./Exception/DumpException":3,"./Exception/ParseException":4,"./Exception/ParseMore":5,"./Pattern":8,"./Unescaper":9,"./Utils":10}],7:[function(require,module,exports){
  609. var Inline, ParseException, ParseMore, Parser, Pattern, Utils;
  610. Inline = require('./Inline');
  611. Pattern = require('./Pattern');
  612. Utils = require('./Utils');
  613. ParseException = require('./Exception/ParseException');
  614. ParseMore = require('./Exception/ParseMore');
  615. Parser = (function() {
  616. Parser.prototype.PATTERN_FOLDED_SCALAR_ALL = new Pattern('^(?:(?<type>![^\\|>]*)\\s+)?(?<separator>\\||>)(?<modifiers>\\+|\\-|\\d+|\\+\\d+|\\-\\d+|\\d+\\+|\\d+\\-)?(?<comments> +#.*)?$');
  617. Parser.prototype.PATTERN_FOLDED_SCALAR_END = new Pattern('(?<separator>\\||>)(?<modifiers>\\+|\\-|\\d+|\\+\\d+|\\-\\d+|\\d+\\+|\\d+\\-)?(?<comments> +#.*)?$');
  618. Parser.prototype.PATTERN_SEQUENCE_ITEM = new Pattern('^\\-((?<leadspaces>\\s+)(?<value>.+?))?\\s*$');
  619. Parser.prototype.PATTERN_ANCHOR_VALUE = new Pattern('^&(?<ref>[^ ]+) *(?<value>.*)');
  620. Parser.prototype.PATTERN_COMPACT_NOTATION = new Pattern('^(?<key>' + Inline.REGEX_QUOTED_STRING + '|[^ \'"\\{\\[].*?) *\\:(\\s+(?<value>.+?))?\\s*$');
  621. Parser.prototype.PATTERN_MAPPING_ITEM = new Pattern('^(?<key>' + Inline.REGEX_QUOTED_STRING + '|[^ \'"\\[\\{].*?) *\\:(\\s+(?<value>.+?))?\\s*$');
  622. Parser.prototype.PATTERN_DECIMAL = new Pattern('\\d+');
  623. Parser.prototype.PATTERN_INDENT_SPACES = new Pattern('^ +');
  624. Parser.prototype.PATTERN_TRAILING_LINES = new Pattern('(\n*)$');
  625. Parser.prototype.PATTERN_YAML_HEADER = new Pattern('^\\%YAML[: ][\\d\\.]+.*\n', 'm');
  626. Parser.prototype.PATTERN_LEADING_COMMENTS = new Pattern('^(\\#.*?\n)+', 'm');
  627. Parser.prototype.PATTERN_DOCUMENT_MARKER_START = new Pattern('^\\-\\-\\-.*?\n', 'm');
  628. Parser.prototype.PATTERN_DOCUMENT_MARKER_END = new Pattern('^\\.\\.\\.\\s*$', 'm');
  629. Parser.prototype.PATTERN_FOLDED_SCALAR_BY_INDENTATION = {};
  630. Parser.prototype.CONTEXT_NONE = 0;
  631. Parser.prototype.CONTEXT_SEQUENCE = 1;
  632. Parser.prototype.CONTEXT_MAPPING = 2;
  633. function Parser(offset) {
  634. this.offset = offset != null ? offset : 0;
  635. this.lines = [];
  636. this.currentLineNb = -1;
  637. this.currentLine = '';
  638. this.refs = {};
  639. }
  640. Parser.prototype.parse = function(value, exceptionOnInvalidType, objectDecoder) {
  641. 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;
  642. if (exceptionOnInvalidType == null) {
  643. exceptionOnInvalidType = false;
  644. }
  645. if (objectDecoder == null) {
  646. objectDecoder = null;
  647. }
  648. this.currentLineNb = -1;
  649. this.currentLine = '';
  650. this.lines = this.cleanup(value).split("\n");
  651. data = null;
  652. context = this.CONTEXT_NONE;
  653. allowOverwrite = false;
  654. while (this.moveToNextLine()) {
  655. if (this.isCurrentLineEmpty()) {
  656. continue;
  657. }
  658. if ("\t" === this.currentLine[0]) {
  659. throw new ParseException('A YAML file cannot contain tabs as indentation.', this.getRealCurrentLineNb() + 1, this.currentLine);
  660. }
  661. isRef = mergeNode = false;
  662. if (values = this.PATTERN_SEQUENCE_ITEM.exec(this.currentLine)) {
  663. if (this.CONTEXT_MAPPING === context) {
  664. throw new ParseException('You cannot define a sequence item when in a mapping');
  665. }
  666. context = this.CONTEXT_SEQUENCE;
  667. if (data == null) {
  668. data = [];
  669. }
  670. if ((values.value != null) && (matches = this.PATTERN_ANCHOR_VALUE.exec(values.value))) {
  671. isRef = matches.ref;
  672. values.value = matches.value;
  673. }
  674. if (!(values.value != null) || '' === Utils.trim(values.value, ' ') || Utils.ltrim(values.value, ' ').indexOf('#') === 0) {
  675. if (this.currentLineNb < this.lines.length - 1 && !this.isNextLineUnIndentedCollection()) {
  676. c = this.getRealCurrentLineNb() + 1;
  677. parser = new Parser(c);
  678. parser.refs = this.refs;
  679. data.push(parser.parse(this.getNextEmbedBlock(null, true), exceptionOnInvalidType, objectDecoder));
  680. } else {
  681. data.push(null);
  682. }
  683. } else {
  684. if (((ref = values.leadspaces) != null ? ref.length : void 0) && (matches = this.PATTERN_COMPACT_NOTATION.exec(values.value))) {
  685. c = this.getRealCurrentLineNb();
  686. parser = new Parser(c);
  687. parser.refs = this.refs;
  688. block = values.value;
  689. indent = this.getCurrentLineIndentation();
  690. if (this.isNextLineIndented(false)) {
  691. block += "\n" + this.getNextEmbedBlock(indent + values.leadspaces.length + 1, true);
  692. }
  693. data.push(parser.parse(block, exceptionOnInvalidType, objectDecoder));
  694. } else {
  695. data.push(this.parseValue(values.value, exceptionOnInvalidType, objectDecoder));
  696. }
  697. }
  698. } else if ((values = this.PATTERN_MAPPING_ITEM.exec(this.currentLine)) && values.key.indexOf(' #') === -1) {
  699. if (this.CONTEXT_SEQUENCE === context) {
  700. throw new ParseException('You cannot define a mapping item when in a sequence');
  701. }
  702. context = this.CONTEXT_MAPPING;
  703. if (data == null) {
  704. data = {};
  705. }
  706. Inline.configure(exceptionOnInvalidType, objectDecoder);
  707. try {
  708. key = Inline.parseScalar(values.key);
  709. } catch (error) {
  710. e = error;
  711. e.parsedLine = this.getRealCurrentLineNb() + 1;
  712. e.snippet = this.currentLine;
  713. throw e;
  714. }
  715. if ('<<' === key) {
  716. mergeNode = true;
  717. allowOverwrite = true;
  718. if (((ref1 = values.value) != null ? ref1.indexOf('*') : void 0) === 0) {
  719. refName = values.value.slice(1);
  720. if (this.refs[refName] == null) {
  721. throw new ParseException('Reference "' + refName + '" does not exist.', this.getRealCurrentLineNb() + 1, this.currentLine);
  722. }
  723. refValue = this.refs[refName];
  724. if (typeof refValue !== 'object') {
  725. throw new ParseException('YAML merge keys used with a scalar value instead of an object.', this.getRealCurrentLineNb() + 1, this.currentLine);
  726. }
  727. if (refValue instanceof Array) {
  728. for (i = j = 0, len = refValue.length; j < len; i = ++j) {
  729. value = refValue[i];
  730. if (data[name = String(i)] == null) {
  731. data[name] = value;
  732. }
  733. }
  734. } else {
  735. for (key in refValue) {
  736. value = refValue[key];
  737. if (data[key] == null) {
  738. data[key] = value;
  739. }
  740. }
  741. }
  742. } else {
  743. if ((values.value != null) && values.value !== '') {
  744. value = values.value;
  745. } else {
  746. value = this.getNextEmbedBlock();
  747. }
  748. c = this.getRealCurrentLineNb() + 1;
  749. parser = new Parser(c);
  750. parser.refs = this.refs;
  751. parsed = parser.parse(value, exceptionOnInvalidType);
  752. if (typeof parsed !== 'object') {
  753. throw new ParseException('YAML merge keys used with a scalar value instead of an object.', this.getRealCurrentLineNb() + 1, this.currentLine);
  754. }
  755. if (parsed instanceof Array) {
  756. for (l = 0, len1 = parsed.length; l < len1; l++) {
  757. parsedItem = parsed[l];
  758. if (typeof parsedItem !== 'object') {
  759. throw new ParseException('Merge items must be objects.', this.getRealCurrentLineNb() + 1, parsedItem);
  760. }
  761. if (parsedItem instanceof Array) {
  762. for (i = m = 0, len2 = parsedItem.length; m < len2; i = ++m) {
  763. value = parsedItem[i];
  764. k = String(i);
  765. if (!data.hasOwnProperty(k)) {
  766. data[k] = value;
  767. }
  768. }
  769. } else {
  770. for (key in parsedItem) {
  771. value = parsedItem[key];
  772. if (!data.hasOwnProperty(key)) {
  773. data[key] = value;
  774. }
  775. }
  776. }
  777. }
  778. } else {
  779. for (key in parsed) {
  780. value = parsed[key];
  781. if (!data.hasOwnProperty(key)) {
  782. data[key] = value;
  783. }
  784. }
  785. }
  786. }
  787. } else if ((values.value != null) && (matches = this.PATTERN_ANCHOR_VALUE.exec(values.value))) {
  788. isRef = matches.ref;
  789. values.value = matches.value;
  790. }
  791. if (mergeNode) {
  792. } else if (!(values.value != null) || '' === Utils.trim(values.value, ' ') || Utils.ltrim(values.value, ' ').indexOf('#') === 0) {
  793. if (!(this.isNextLineIndented()) && !(this.isNextLineUnIndentedCollection())) {
  794. if (allowOverwrite || data[key] === void 0) {
  795. data[key] = null;
  796. }
  797. } else {
  798. c = this.getRealCurrentLineNb() + 1;
  799. parser = new Parser(c);
  800. parser.refs = this.refs;
  801. val = parser.parse(this.getNextEmbedBlock(), exceptionOnInvalidType, objectDecoder);
  802. if (allowOverwrite || data[key] === void 0) {
  803. data[key] = val;
  804. }
  805. }
  806. } else {
  807. val = this.parseValue(values.value, exceptionOnInvalidType, objectDecoder);
  808. if (allowOverwrite || data[key] === void 0) {
  809. data[key] = val;
  810. }
  811. }
  812. } else {
  813. lineCount = this.lines.length;
  814. if (1 === lineCount || (2 === lineCount && Utils.isEmpty(this.lines[1]))) {
  815. try {
  816. value = Inline.parse(this.lines[0], exceptionOnInvalidType, objectDecoder);
  817. } catch (error1) {
  818. e = error1;
  819. e.parsedLine = this.getRealCurrentLineNb() + 1;
  820. e.snippet = this.currentLine;
  821. throw e;
  822. }
  823. if (typeof value === 'object') {
  824. if (value instanceof Array) {
  825. first = value[0];
  826. } else {
  827. for (key in value) {
  828. first = value[key];
  829. break;
  830. }
  831. }
  832. if (typeof first === 'string' && first.indexOf('*') === 0) {
  833. data = [];
  834. for (n = 0, len3 = value.length; n < len3; n++) {
  835. alias = value[n];
  836. data.push(this.refs[alias.slice(1)]);
  837. }
  838. value = data;
  839. }
  840. }
  841. return value;
  842. } else if ((ref2 = Utils.ltrim(value).charAt(0)) === '[' || ref2 === '{') {
  843. try {
  844. return Inline.parse(value, exceptionOnInvalidType, objectDecoder);
  845. } catch (error2) {
  846. e = error2;
  847. e.parsedLine = this.getRealCurrentLineNb() + 1;
  848. e.snippet = this.currentLine;
  849. throw e;
  850. }
  851. }
  852. throw new ParseException('Unable to parse.', this.getRealCurrentLineNb() + 1, this.currentLine);
  853. }
  854. if (isRef) {
  855. if (data instanceof Array) {
  856. this.refs[isRef] = data[data.length - 1];
  857. } else {
  858. lastKey = null;
  859. for (key in data) {
  860. lastKey = key;
  861. }
  862. this.refs[isRef] = data[lastKey];
  863. }
  864. }
  865. }
  866. if (Utils.isEmpty(data)) {
  867. return null;
  868. } else {
  869. return data;
  870. }
  871. };
  872. Parser.prototype.getRealCurrentLineNb = function() {
  873. return this.currentLineNb + this.offset;
  874. };
  875. Parser.prototype.getCurrentLineIndentation = function() {
  876. return this.currentLine.length - Utils.ltrim(this.currentLine, ' ').length;
  877. };
  878. Parser.prototype.getNextEmbedBlock = function(indentation, includeUnindentedCollection) {
  879. var data, indent, isItUnindentedCollection, newIndent, removeComments, removeCommentsPattern, unindentedEmbedBlock;
  880. if (indentation == null) {
  881. indentation = null;
  882. }
  883. if (includeUnindentedCollection == null) {
  884. includeUnindentedCollection = false;
  885. }
  886. this.moveToNextLine();
  887. if (indentation == null) {
  888. newIndent = this.getCurrentLineIndentation();
  889. unindentedEmbedBlock = this.isStringUnIndentedCollectionItem(this.currentLine);
  890. if (!(this.isCurrentLineEmpty()) && 0 === newIndent && !unindentedEmbedBlock) {
  891. throw new ParseException('Indentation problem.', this.getRealCurrentLineNb() + 1, this.currentLine);
  892. }
  893. } else {
  894. newIndent = indentation;
  895. }
  896. data = [this.currentLine.slice(newIndent)];
  897. if (!includeUnindentedCollection) {
  898. isItUnindentedCollection = this.isStringUnIndentedCollectionItem(this.currentLine);
  899. }
  900. removeCommentsPattern = this.PATTERN_FOLDED_SCALAR_END;
  901. removeComments = !removeCommentsPattern.test(this.currentLine);
  902. while (this.moveToNextLine()) {
  903. indent = this.getCurrentLineIndentation();
  904. if (indent === newIndent) {
  905. removeComments = !removeCommentsPattern.test(this.currentLine);
  906. }
  907. if (removeComments && this.isCurrentLineComment()) {
  908. continue;
  909. }
  910. if (this.isCurrentLineBlank()) {
  911. data.push(this.currentLine.slice(newIndent));
  912. continue;
  913. }
  914. if (isItUnindentedCollection && !this.isStringUnIndentedCollectionItem(this.currentLine) && indent === newIndent) {
  915. this.moveToPreviousLine();
  916. break;
  917. }
  918. if (indent >= newIndent) {
  919. data.push(this.currentLine.slice(newIndent));
  920. } else if (Utils.ltrim(this.currentLine).charAt(0) === '#') {
  921. } else if (0 === indent) {
  922. this.moveToPreviousLine();
  923. break;
  924. } else {
  925. throw new ParseException('Indentation problem.', this.getRealCurrentLineNb() + 1, this.currentLine);
  926. }
  927. }
  928. return data.join("\n");
  929. };
  930. Parser.prototype.moveToNextLine = function() {
  931. if (this.currentLineNb >= this.lines.length - 1) {
  932. return false;
  933. }
  934. this.currentLine = this.lines[++this.currentLineNb];
  935. return true;
  936. };
  937. Parser.prototype.moveToPreviousLine = function() {
  938. this.currentLine = this.lines[--this.currentLineNb];
  939. };
  940. Parser.prototype.parseValue = function(value, exceptionOnInvalidType, objectDecoder) {
  941. var e, error, foldedIndent, matches, modifiers, pos, ref, ref1, val;
  942. if (0 === value.indexOf('*')) {
  943. pos = value.indexOf('#');
  944. if (pos !== -1) {
  945. value = value.substr(1, pos - 2);
  946. } else {
  947. value = value.slice(1);
  948. }
  949. if (this.refs[value] === void 0) {
  950. throw new ParseException('Reference "' + value + '" does not exist.', this.currentLine);
  951. }
  952. return this.refs[value];
  953. }
  954. if (matches = this.PATTERN_FOLDED_SCALAR_ALL.exec(value)) {
  955. modifiers = (ref = matches.modifiers) != null ? ref : '';
  956. foldedIndent = Math.abs(parseInt(modifiers));
  957. if (isNaN(foldedIndent)) {
  958. foldedIndent = 0;
  959. }
  960. val = this.parseFoldedScalar(matches.separator, this.PATTERN_DECIMAL.replace(modifiers, ''), foldedIndent);
  961. if (matches.type != null) {
  962. Inline.configure(exceptionOnInvalidType, objectDecoder);
  963. return Inline.parseScalar(matches.type + ' ' + val);
  964. } else {
  965. return val;
  966. }
  967. }
  968. if ((ref1 = value.charAt(0)) === '[' || ref1 === '{' || ref1 === '"' || ref1 === "'") {
  969. while (true) {
  970. try {
  971. return Inline.parse(value, exceptionOnInvalidType, objectDecoder);
  972. } catch (error) {
  973. e = error;
  974. if (e instanceof ParseMore && this.moveToNextLine()) {
  975. value += "\n" + Utils.trim(this.currentLine, ' ');
  976. } else {
  977. e.parsedLine = this.getRealCurrentLineNb() + 1;
  978. e.snippet = this.currentLine;
  979. throw e;
  980. }
  981. }
  982. }
  983. } else {
  984. if (this.isNextLineIndented()) {
  985. value += "\n" + this.getNextEmbedBlock();
  986. }
  987. return Inline.parse(value, exceptionOnInvalidType, objectDecoder);
  988. }
  989. };
  990. Parser.prototype.parseFoldedScalar = function(separator, indicator, indentation) {
  991. var isCurrentLineBlank, j, len, line, matches, newText, notEOF, pattern, ref, text;
  992. if (indicator == null) {
  993. indicator = '';
  994. }
  995. if (indentation == null) {
  996. indentation = 0;
  997. }
  998. notEOF = this.moveToNextLine();
  999. if (!notEOF) {
  1000. return '';
  1001. }
  1002. isCurrentLineBlank = this.isCurrentLineBlank();
  1003. text = '';
  1004. while (notEOF && isCurrentLineBlank) {
  1005. if (notEOF = this.moveToNextLine()) {
  1006. text += "\n";
  1007. isCurrentLineBlank = this.isCurrentLineBlank();
  1008. }
  1009. }
  1010. if (0 === indentation) {
  1011. if (matches = this.PATTERN_INDENT_SPACES.exec(this.currentLine)) {
  1012. indentation = matches[0].length;
  1013. }
  1014. }
  1015. if (indentation > 0) {
  1016. pattern = this.PATTERN_FOLDED_SCALAR_BY_INDENTATION[indentation];
  1017. if (pattern == null) {
  1018. pattern = new Pattern('^ {' + indentation + '}(.*)$');
  1019. Parser.prototype.PATTERN_FOLDED_SCALAR_BY_INDENTATION[indentation] = pattern;
  1020. }
  1021. while (notEOF && (isCurrentLineBlank || (matches = pattern.exec(this.currentLine)))) {
  1022. if (isCurrentLineBlank) {
  1023. text += this.currentLine.slice(indentation);
  1024. } else {
  1025. text += matches[1];
  1026. }
  1027. if (notEOF = this.moveToNextLine()) {
  1028. text += "\n";
  1029. isCurrentLineBlank = this.isCurrentLineBlank();
  1030. }
  1031. }
  1032. } else if (notEOF) {
  1033. text += "\n";
  1034. }
  1035. if (notEOF) {
  1036. this.moveToPreviousLine();
  1037. }
  1038. if ('>' === separator) {
  1039. newText = '';
  1040. ref = text.split("\n");
  1041. for (j = 0, len = ref.length; j < len; j++) {
  1042. line = ref[j];
  1043. if (line.length === 0 || line.charAt(0) === ' ') {
  1044. newText = Utils.rtrim(newText, ' ') + line + "\n";
  1045. } else {
  1046. newText += line + ' ';
  1047. }
  1048. }
  1049. text = newText;
  1050. }
  1051. if ('+' !== indicator) {
  1052. text = Utils.rtrim(text);
  1053. }
  1054. if ('' === indicator) {
  1055. text = this.PATTERN_TRAILING_LINES.replace(text, "\n");
  1056. } else if ('-' === indicator) {
  1057. text = this.PATTERN_TRAILING_LINES.replace(text, '');
  1058. }
  1059. return text;
  1060. };
  1061. Parser.prototype.isNextLineIndented = function(ignoreComments) {
  1062. var EOF, currentIndentation, ret;
  1063. if (ignoreComments == null) {
  1064. ignoreComments = true;
  1065. }
  1066. currentIndentation = this.getCurrentLineIndentation();
  1067. EOF = !this.moveToNextLine();
  1068. if (ignoreComments) {
  1069. while (!EOF && this.isCurrentLineEmpty()) {
  1070. EOF = !this.moveToNextLine();
  1071. }
  1072. } else {
  1073. while (!EOF && this.isCurrentLineBlank()) {
  1074. EOF = !this.moveToNextLine();
  1075. }
  1076. }
  1077. if (EOF) {
  1078. return false;
  1079. }
  1080. ret = false;
  1081. if (this.getCurrentLineIndentation() > currentIndentation) {
  1082. ret = true;
  1083. }
  1084. this.moveToPreviousLine();
  1085. return ret;
  1086. };
  1087. Parser.prototype.isCurrentLineEmpty = function() {
  1088. var trimmedLine;
  1089. trimmedLine = Utils.trim(this.currentLine, ' ');
  1090. return trimmedLine.length === 0 || trimmedLine.charAt(0) === '#';
  1091. };
  1092. Parser.prototype.isCurrentLineBlank = function() {
  1093. return '' === Utils.trim(this.currentLine, ' ');
  1094. };
  1095. Parser.prototype.isCurrentLineComment = function() {
  1096. var ltrimmedLine;
  1097. ltrimmedLine = Utils.ltrim(this.currentLine, ' ');
  1098. return ltrimmedLine.charAt(0) === '#';
  1099. };
  1100. Parser.prototype.cleanup = function(value) {
  1101. var count, i, indent, j, l, len, len1, line, lines, ref, ref1, ref2, smallestIndent, trimmedValue;
  1102. if (value.indexOf("\r") !== -1) {
  1103. value = value.split("\r\n").join("\n").split("\r").join("\n");
  1104. }
  1105. count = 0;
  1106. ref = this.PATTERN_YAML_HEADER.replaceAll(value, ''), value = ref[0], count = ref[1];
  1107. this.offset += count;
  1108. ref1 = this.PATTERN_LEADING_COMMENTS.replaceAll(value, '', 1), trimmedValue = ref1[0], count = ref1[1];
  1109. if (count === 1) {
  1110. this.offset += Utils.subStrCount(value, "\n") - Utils.subStrCount(trimmedValue, "\n");
  1111. value = trimmedValue;
  1112. }
  1113. ref2 = this.PATTERN_DOCUMENT_MARKER_START.replaceAll(value, '', 1), trimmedValue = ref2[0], count = ref2[1];
  1114. if (count === 1) {
  1115. this.offset += Utils.subStrCount(value, "\n") - Utils.subStrCount(trimmedValue, "\n");
  1116. value = trimmedValue;
  1117. value = this.PATTERN_DOCUMENT_MARKER_END.replace(value, '');
  1118. }
  1119. lines = value.split("\n");
  1120. smallestIndent = -1;
  1121. for (j = 0, len = lines.length; j < len; j++) {
  1122. line = lines[j];
  1123. if (Utils.trim(line, ' ').length === 0) {
  1124. continue;
  1125. }
  1126. indent = line.length - Utils.ltrim(line).length;
  1127. if (smallestIndent === -1 || indent < smallestIndent) {
  1128. smallestIndent = indent;
  1129. }
  1130. }
  1131. if (smallestIndent > 0) {
  1132. for (i = l = 0, len1 = lines.length; l < len1; i = ++l) {
  1133. line = lines[i];
  1134. lines[i] = line.slice(smallestIndent);
  1135. }
  1136. value = lines.join("\n");
  1137. }
  1138. return value;
  1139. };
  1140. Parser.prototype.isNextLineUnIndentedCollection = function(currentIndentation) {
  1141. var notEOF, ret;
  1142. if (currentIndentation == null) {
  1143. currentIndentation = null;
  1144. }
  1145. if (currentIndentation == null) {
  1146. currentIndentation = this.getCurrentLineIndentation();
  1147. }
  1148. notEOF = this.moveToNextLine();
  1149. while (notEOF && this.isCurrentLineEmpty()) {
  1150. notEOF = this.moveToNextLine();
  1151. }
  1152. if (false === notEOF) {
  1153. return false;
  1154. }
  1155. ret = false;
  1156. if (this.getCurrentLineIndentation() === currentIndentation && this.isStringUnIndentedCollectionItem(this.currentLine)) {
  1157. ret = true;
  1158. }
  1159. this.moveToPreviousLine();
  1160. return ret;
  1161. };
  1162. Parser.prototype.isStringUnIndentedCollectionItem = function() {
  1163. return this.currentLine === '-' || this.currentLine.slice(0, 2) === '- ';
  1164. };
  1165. return Parser;
  1166. })();
  1167. module.exports = Parser;
  1168. },{"./Exception/ParseException":4,"./Exception/ParseMore":5,"./Inline":6,"./Pattern":8,"./Utils":10}],8:[function(require,module,exports){
  1169. var Pattern;
  1170. Pattern = (function() {
  1171. Pattern.prototype.regex = null;
  1172. Pattern.prototype.rawRegex = null;
  1173. Pattern.prototype.cleanedRegex = null;
  1174. Pattern.prototype.mapping = null;
  1175. function Pattern(rawRegex, modifiers) {
  1176. var _char, capturingBracketNumber, cleanedRegex, i, len, mapping, name, part, subChar;
  1177. if (modifiers == null) {
  1178. modifiers = '';
  1179. }
  1180. cleanedRegex = '';
  1181. len = rawRegex.length;
  1182. mapping = null;
  1183. capturingBracketNumber = 0;
  1184. i = 0;
  1185. while (i < len) {
  1186. _char = rawRegex.charAt(i);
  1187. if (_char === '\\') {
  1188. cleanedRegex += rawRegex.slice(i, +(i + 1) + 1 || 9e9);
  1189. i++;
  1190. } else if (_char === '(') {
  1191. if (i < len - 2) {
  1192. part = rawRegex.slice(i, +(i + 2) + 1 || 9e9);
  1193. if (part === '(?:') {
  1194. i += 2;
  1195. cleanedRegex += part;
  1196. } else if (part === '(?<') {
  1197. capturingBracketNumber++;
  1198. i += 2;
  1199. name = '';
  1200. while (i + 1 < len) {
  1201. subChar = rawRegex.charAt(i + 1);
  1202. if (subChar === '>') {
  1203. cleanedRegex += '(';
  1204. i++;
  1205. if (name.length > 0) {
  1206. if (mapping == null) {
  1207. mapping = {};
  1208. }
  1209. mapping[name] = capturingBracketNumber;
  1210. }
  1211. break;
  1212. } else {
  1213. name += subChar;
  1214. }
  1215. i++;
  1216. }
  1217. } else {
  1218. cleanedRegex += _char;
  1219. capturingBracketNumber++;
  1220. }
  1221. } else {
  1222. cleanedRegex += _char;
  1223. }
  1224. } else {
  1225. cleanedRegex += _char;
  1226. }
  1227. i++;
  1228. }
  1229. this.rawRegex = rawRegex;
  1230. this.cleanedRegex = cleanedRegex;
  1231. this.regex = new RegExp(this.cleanedRegex, 'g' + modifiers.replace('g', ''));
  1232. this.mapping = mapping;
  1233. }
  1234. Pattern.prototype.exec = function(str) {
  1235. var index, matches, name, ref;
  1236. this.regex.lastIndex = 0;
  1237. matches = this.regex.exec(str);
  1238. if (matches == null) {
  1239. return null;
  1240. }
  1241. if (this.mapping != null) {
  1242. ref = this.mapping;
  1243. for (name in ref) {
  1244. index = ref[name];
  1245. matches[name] = matches[index];
  1246. }
  1247. }
  1248. return matches;
  1249. };
  1250. Pattern.prototype.test = function(str) {
  1251. this.regex.lastIndex = 0;
  1252. return this.regex.test(str);
  1253. };
  1254. Pattern.prototype.replace = function(str, replacement) {
  1255. this.regex.lastIndex = 0;
  1256. return str.replace(this.regex, replacement);
  1257. };
  1258. Pattern.prototype.replaceAll = function(str, replacement, limit) {
  1259. var count;
  1260. if (limit == null) {
  1261. limit = 0;
  1262. }
  1263. this.regex.lastIndex = 0;
  1264. count = 0;
  1265. while (this.regex.test(str) && (limit === 0 || count < limit)) {
  1266. this.regex.lastIndex = 0;
  1267. str = str.replace(this.regex, replacement);
  1268. count++;
  1269. }
  1270. return [str, count];
  1271. };
  1272. return Pattern;
  1273. })();
  1274. module.exports = Pattern;
  1275. },{}],9:[function(require,module,exports){
  1276. var Pattern, Unescaper, Utils;
  1277. Utils = require('./Utils');
  1278. Pattern = require('./Pattern');
  1279. Unescaper = (function() {
  1280. function Unescaper() {}
  1281. 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})');
  1282. Unescaper.unescapeSingleQuotedString = function(value) {
  1283. return value.replace(/\'\'/g, '\'');
  1284. };
  1285. Unescaper.unescapeDoubleQuotedString = function(value) {
  1286. if (this._unescapeCallback == null) {
  1287. this._unescapeCallback = (function(_this) {
  1288. return function(str) {
  1289. return _this.unescapeCharacter(str);
  1290. };
  1291. })(this);
  1292. }
  1293. return this.PATTERN_ESCAPED_CHARACTER.replace(value, this._unescapeCallback);
  1294. };
  1295. Unescaper.unescapeCharacter = function(value) {
  1296. var ch;
  1297. ch = String.fromCharCode;
  1298. switch (value.charAt(1)) {
  1299. case '0':
  1300. return ch(0);
  1301. case 'a':
  1302. return ch(7);
  1303. case 'b':
  1304. return ch(8);
  1305. case 't':
  1306. return "\t";
  1307. case "\t":
  1308. return "\t";
  1309. case 'n':
  1310. return "\n";
  1311. case 'v':
  1312. return ch(11);
  1313. case 'f':
  1314. return ch(12);
  1315. case 'r':
  1316. return ch(13);
  1317. case 'e':
  1318. return ch(27);
  1319. case ' ':
  1320. return ' ';
  1321. case '"':
  1322. return '"';
  1323. case '/':
  1324. return '/';
  1325. case '\\':
  1326. return '\\';
  1327. case 'N':
  1328. return ch(0x0085);
  1329. case '_':
  1330. return ch(0x00A0);
  1331. case 'L':
  1332. return ch(0x2028);
  1333. case 'P':
  1334. return ch(0x2029);
  1335. case 'x':
  1336. return Utils.utf8chr(Utils.hexDec(value.substr(2, 2)));
  1337. case 'u':
  1338. return Utils.utf8chr(Utils.hexDec(value.substr(2, 4)));
  1339. case 'U':
  1340. return Utils.utf8chr(Utils.hexDec(value.substr(2, 8)));
  1341. default:
  1342. return '';
  1343. }
  1344. };
  1345. return Unescaper;
  1346. })();
  1347. module.exports = Unescaper;
  1348. },{"./Pattern":8,"./Utils":10}],10:[function(require,module,exports){
  1349. var Pattern, Utils,
  1350. hasProp = {}.hasOwnProperty;
  1351. Pattern = require('./Pattern');
  1352. Utils = (function() {
  1353. function Utils() {}
  1354. Utils.REGEX_LEFT_TRIM_BY_CHAR = {};
  1355. Utils.REGEX_RIGHT_TRIM_BY_CHAR = {};
  1356. Utils.REGEX_SPACES = /\s+/g;
  1357. Utils.REGEX_DIGITS = /^\d+$/;
  1358. Utils.REGEX_OCTAL = /[^0-7]/gi;
  1359. Utils.REGEX_HEXADECIMAL = /[^a-f0-9]/gi;
  1360. 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');
  1361. Utils.LOCAL_TIMEZONE_OFFSET = new Date().getTimezoneOffset() * 60 * 1000;
  1362. Utils.trim = function(str, _char) {
  1363. var regexLeft, regexRight;
  1364. if (_char == null) {
  1365. _char = '\\s';
  1366. }
  1367. regexLeft = this.REGEX_LEFT_TRIM_BY_CHAR[_char];
  1368. if (regexLeft == null) {
  1369. this.REGEX_LEFT_TRIM_BY_CHAR[_char] = regexLeft = new RegExp('^' + _char + '' + _char + '*');
  1370. }
  1371. regexLeft.lastIndex = 0;
  1372. regexRight = this.REGEX_RIGHT_TRIM_BY_CHAR[_char];
  1373. if (regexRight == null) {
  1374. this.REGEX_RIGHT_TRIM_BY_CHAR[_char] = regexRight = new RegExp(_char + '' + _char + '*$');
  1375. }
  1376. regexRight.lastIndex = 0;
  1377. return str.replace(regexLeft, '').replace(regexRight, '');
  1378. };
  1379. Utils.ltrim = function(str, _char) {
  1380. var regexLeft;
  1381. if (_char == null) {
  1382. _char = '\\s';
  1383. }
  1384. regexLeft = this.REGEX_LEFT_TRIM_BY_CHAR[_char];
  1385. if (regexLeft == null) {
  1386. this.REGEX_LEFT_TRIM_BY_CHAR[_char] = regexLeft = new RegExp('^' + _char + '' + _char + '*');
  1387. }
  1388. regexLeft.lastIndex = 0;
  1389. return str.replace(regexLeft, '');
  1390. };
  1391. Utils.rtrim = function(str, _char) {
  1392. var regexRight;
  1393. if (_char == null) {
  1394. _char = '\\s';
  1395. }
  1396. regexRight = this.REGEX_RIGHT_TRIM_BY_CHAR[_char];
  1397. if (regexRight == null) {
  1398. this.REGEX_RIGHT_TRIM_BY_CHAR[_char] = regexRight = new RegExp(_char + '' + _char + '*$');
  1399. }
  1400. regexRight.lastIndex = 0;
  1401. return str.replace(regexRight, '');
  1402. };
  1403. Utils.isEmpty = function(value) {
  1404. return !value || value === '' || value === '0' || (value instanceof Array && value.length === 0) || this.isEmptyObject(value);
  1405. };
  1406. Utils.isEmptyObject = function(value) {
  1407. var k;
  1408. return value instanceof Object && ((function() {
  1409. var results;
  1410. results = [];
  1411. for (k in value) {
  1412. if (!hasProp.call(value, k)) continue;
  1413. results.push(k);
  1414. }
  1415. return results;
  1416. })()).length === 0;
  1417. };
  1418. Utils.subStrCount = function(string, subString, start, length) {
  1419. var c, i, j, len, ref, sublen;
  1420. c = 0;
  1421. string = '' + string;
  1422. subString = '' + subString;
  1423. if (start != null) {
  1424. string = string.slice(start);
  1425. }
  1426. if (length != null) {
  1427. string = string.slice(0, length);
  1428. }
  1429. len = string.length;
  1430. sublen = subString.length;
  1431. for (i = j = 0, ref = len; 0 <= ref ? j < ref : j > ref; i = 0 <= ref ? ++j : --j) {
  1432. if (subString === string.slice(i, sublen)) {
  1433. c++;
  1434. i += sublen - 1;
  1435. }
  1436. }
  1437. return c;
  1438. };
  1439. Utils.isDigits = function(input) {
  1440. this.REGEX_DIGITS.lastIndex = 0;
  1441. return this.REGEX_DIGITS.test(input);
  1442. };
  1443. Utils.octDec = function(input) {
  1444. this.REGEX_OCTAL.lastIndex = 0;
  1445. return parseInt((input + '').replace(this.REGEX_OCTAL, ''), 8);
  1446. };
  1447. Utils.hexDec = function(input) {
  1448. this.REGEX_HEXADECIMAL.lastIndex = 0;
  1449. input = this.trim(input);
  1450. if ((input + '').slice(0, 2) === '0x') {
  1451. input = (input + '').slice(2);
  1452. }
  1453. return parseInt((input + '').replace(this.REGEX_HEXADECIMAL, ''), 16);
  1454. };
  1455. Utils.utf8chr = function(c) {
  1456. var ch;
  1457. ch = String.fromCharCode;
  1458. if (0x80 > (c %= 0x200000)) {
  1459. return ch(c);
  1460. }
  1461. if (0x800 > c) {
  1462. return ch(0xC0 | c >> 6) + ch(0x80 | c & 0x3F);
  1463. }
  1464. if (0x10000 > c) {
  1465. return ch(0xE0 | c >> 12) + ch(0x80 | c >> 6 & 0x3F) + ch(0x80 | c & 0x3F);
  1466. }
  1467. return ch(0xF0 | c >> 18) + ch(0x80 | c >> 12 & 0x3F) + ch(0x80 | c >> 6 & 0x3F) + ch(0x80 | c & 0x3F);
  1468. };
  1469. Utils.parseBoolean = function(input, strict) {
  1470. var lowerInput;
  1471. if (strict == null) {
  1472. strict = true;
  1473. }
  1474. if (typeof input === 'string') {
  1475. lowerInput = input.toLowerCase();
  1476. if (!strict) {
  1477. if (lowerInput === 'no') {
  1478. return false;
  1479. }
  1480. }
  1481. if (lowerInput === '0') {
  1482. return false;
  1483. }
  1484. if (lowerInput === 'false') {
  1485. return false;
  1486. }
  1487. if (lowerInput === '') {
  1488. return false;
  1489. }
  1490. return true;
  1491. }
  1492. return !!input;
  1493. };
  1494. Utils.isNumeric = function(input) {
  1495. this.REGEX_SPACES.lastIndex = 0;
  1496. return typeof input === 'number' || typeof input === 'string' && !isNaN(input) && input.replace(this.REGEX_SPACES, '') !== '';
  1497. };
  1498. Utils.stringToDate = function(str) {
  1499. var date, day, fraction, hour, info, minute, month, second, tz_hour, tz_minute, tz_offset, year;
  1500. if (!(str != null ? str.length : void 0)) {
  1501. return null;
  1502. }
  1503. info = this.PATTERN_DATE.exec(str);
  1504. if (!info) {
  1505. return null;
  1506. }
  1507. year = parseInt(info.year, 10);
  1508. month = parseInt(info.month, 10) - 1;
  1509. day = parseInt(info.day, 10);
  1510. if (info.hour == null) {
  1511. date = new Date(Date.UTC(year, month, day));
  1512. return date;
  1513. }
  1514. hour = parseInt(info.hour, 10);
  1515. minute = parseInt(info.minute, 10);
  1516. second = parseInt(info.second, 10);
  1517. if (info.fraction != null) {
  1518. fraction = info.fraction.slice(0, 3);
  1519. while (fraction.length < 3) {
  1520. fraction += '0';
  1521. }
  1522. fraction = parseInt(fraction, 10);
  1523. } else {
  1524. fraction = 0;
  1525. }
  1526. if (info.tz != null) {
  1527. tz_hour = parseInt(info.tz_hour, 10);
  1528. if (info.tz_minute != null) {
  1529. tz_minute = parseInt(info.tz_minute, 10);
  1530. } else {
  1531. tz_minute = 0;
  1532. }
  1533. tz_offset = (tz_hour * 60 + tz_minute) * 60000;
  1534. if ('-' === info.tz_sign) {
  1535. tz_offset *= -1;
  1536. }
  1537. }
  1538. date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
  1539. if (tz_offset) {
  1540. date.setTime(date.getTime() - tz_offset);
  1541. }
  1542. return date;
  1543. };
  1544. Utils.strRepeat = function(str, number) {
  1545. var i, res;
  1546. res = '';
  1547. i = 0;
  1548. while (i < number) {
  1549. res += str;
  1550. i++;
  1551. }
  1552. return res;
  1553. };
  1554. Utils.getStringFromFile = function(path, callback) {
  1555. var data, fs, j, len1, name, ref, req, xhr;
  1556. if (callback == null) {
  1557. callback = null;
  1558. }
  1559. xhr = null;
  1560. if (typeof window !== "undefined" && window !== null) {
  1561. if (window.XMLHttpRequest) {
  1562. xhr = new XMLHttpRequest();
  1563. } else if (window.ActiveXObject) {
  1564. ref = ["Msxml2.XMLHTTP.6.0", "Msxml2.XMLHTTP.3.0", "Msxml2.XMLHTTP", "Microsoft.XMLHTTP"];
  1565. for (j = 0, len1 = ref.length; j < len1; j++) {
  1566. name = ref[j];
  1567. try {
  1568. xhr = new ActiveXObject(name);
  1569. } catch (undefined) {}
  1570. }
  1571. }
  1572. }
  1573. if (xhr != null) {
  1574. if (callback != null) {
  1575. xhr.onreadystatechange = function() {
  1576. if (xhr.readyState === 4) {
  1577. if (xhr.status === 200 || xhr.status === 0) {
  1578. return callback(xhr.responseText);
  1579. } else {
  1580. return callback(null);
  1581. }
  1582. }
  1583. };
  1584. xhr.open('GET', path, true);
  1585. return xhr.send(null);
  1586. } else {
  1587. xhr.open('GET', path, false);
  1588. xhr.send(null);
  1589. if (xhr.status === 200 || xhr.status === 0) {
  1590. return xhr.responseText;
  1591. }
  1592. return null;
  1593. }
  1594. } else {
  1595. req = require;
  1596. fs = req('fs');
  1597. if (callback != null) {
  1598. return fs.readFile(path, function(err, data) {
  1599. if (err) {
  1600. return callback(null);
  1601. } else {
  1602. return callback(String(data));
  1603. }
  1604. });
  1605. } else {
  1606. data = fs.readFileSync(path);
  1607. if (data != null) {
  1608. return String(data);
  1609. }
  1610. return null;
  1611. }
  1612. }
  1613. };
  1614. return Utils;
  1615. })();
  1616. module.exports = Utils;
  1617. },{"./Pattern":8}],11:[function(require,module,exports){
  1618. var Dumper, Parser, Utils, Yaml;
  1619. Parser = require('./Parser');
  1620. Dumper = require('./Dumper');
  1621. Utils = require('./Utils');
  1622. Yaml = (function() {
  1623. function Yaml() {}
  1624. Yaml.parse = function(input, exceptionOnInvalidType, objectDecoder) {
  1625. if (exceptionOnInvalidType == null) {
  1626. exceptionOnInvalidType = false;
  1627. }
  1628. if (objectDecoder == null) {
  1629. objectDecoder = null;
  1630. }
  1631. return new Parser().parse(input, exceptionOnInvalidType, objectDecoder);
  1632. };
  1633. Yaml.parseFile = function(path, callback, exceptionOnInvalidType, objectDecoder) {
  1634. var input;
  1635. if (callback == null) {
  1636. callback = null;
  1637. }
  1638. if (exceptionOnInvalidType == null) {
  1639. exceptionOnInvalidType = false;
  1640. }
  1641. if (objectDecoder == null) {
  1642. objectDecoder = null;
  1643. }
  1644. if (callback != null) {
  1645. return Utils.getStringFromFile(path, (function(_this) {
  1646. return function(input) {
  1647. var result;
  1648. result = null;
  1649. if (input != null) {
  1650. result = _this.parse(input, exceptionOnInvalidType, objectDecoder);
  1651. }
  1652. callback(result);
  1653. };
  1654. })(this));
  1655. } else {
  1656. input = Utils.getStringFromFile(path);
  1657. if (input != null) {
  1658. return this.parse(input, exceptionOnInvalidType, objectDecoder);
  1659. }
  1660. return null;
  1661. }
  1662. };
  1663. Yaml.dump = function(input, inline, indent, exceptionOnInvalidType, objectEncoder) {
  1664. var yaml;
  1665. if (inline == null) {
  1666. inline = 2;
  1667. }
  1668. if (indent == null) {
  1669. indent = 4;
  1670. }
  1671. if (exceptionOnInvalidType == null) {
  1672. exceptionOnInvalidType = false;
  1673. }
  1674. if (objectEncoder == null) {
  1675. objectEncoder = null;
  1676. }
  1677. yaml = new Dumper();
  1678. yaml.indentation = indent;
  1679. return yaml.dump(input, inline, 0, exceptionOnInvalidType, objectEncoder);
  1680. };
  1681. Yaml.stringify = function(input, inline, indent, exceptionOnInvalidType, objectEncoder) {
  1682. return this.dump(input, inline, indent, exceptionOnInvalidType, objectEncoder);
  1683. };
  1684. Yaml.load = function(path, callback, exceptionOnInvalidType, objectDecoder) {
  1685. return this.parseFile(path, callback, exceptionOnInvalidType, objectDecoder);
  1686. };
  1687. return Yaml;
  1688. })();
  1689. if (typeof window !== "undefined" && window !== null) {
  1690. window.YAML = Yaml;
  1691. }
  1692. if (typeof window === "undefined" || window === null) {
  1693. this.YAML = Yaml;
  1694. }
  1695. module.exports = Yaml;
  1696. },{"./Dumper":1,"./Parser":7,"./Utils":10}]},{},[11])
  1697. //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Vzci9sb2NhbC9saWIvbm9kZV9tb2R1bGVzL2Jyb3dzZXJpZnkvbm9kZV9tb2R1bGVzL2Jyb3dzZXItcGFjay9fcHJlbHVkZS5qcyIsInNyYy9EdW1wZXIuY29mZmVlIiwic3JjL0VzY2FwZXIuY29mZmVlIiwic3JjL0V4Y2VwdGlvbi9EdW1wRXhjZXB0aW9uLmNvZmZlZSIsInNyYy9FeGNlcHRpb24vUGFyc2VFeGNlcHRpb24uY29mZmVlIiwic3JjL0V4Y2VwdGlvbi9QYXJzZU1vcmUuY29mZmVlIiwic3JjL0lubGluZS5jb2Z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hbHVlXG4gICAgI1xuICAgIGR1bXA6IChpbnB1dCwgaW5saW5lID0gMCwgaW5kZW50ID0gMCwgZXhjZXB0aW9uT25JbnZhbGlkVHlwZSA9IGZhbHNlLCBvYmplY3RFbmNvZGVyID0gbnVsbCkgLT5cbiAgICAgICAgb3V0cHV0ID0gJydcbiAgICAgICAgcHJlZml4ID0gKGlmIGluZGVudCB0aGVuIFV0aWxzLnN0clJlcGVhdCgnICcsIGluZGVudCkgZWxzZSAnJylcblxuICAgICAgICBpZiBpbmxpbmUgPD0gMCBvciB0eXBlb2YoaW5wdXQpIGlzbnQgJ29iamVjdCcgb3IgaW5wdXQgaW5zdGFuY2VvZiBEYXRlIG9yIFV0aWxzLmlzRW1wdHkoaW5wdXQpXG4gICAgICAgICAgICBvdXRwdXQgKz0gcHJlZml4ICsgSW5saW5lLmR1bXAoaW5wdXQsIGV4Y2VwdGlvbk9uSW52YWxpZFR5cGUsIG9iamVjdEVuY29kZXIpXG4gICAgICAgIFxuICAgICAgICBlbHNlXG4gICAgICAgICAgICBpZiBpbnB1dCBpbnN0YW5jZW9mIEFycmF5XG4gICAgICAgICAgICAgICAgZm9yIHZhbHVlIGluIGlucHV0XG4gICAgICAgICAgICAgICAgICAgIHdpbGxCZUlubGluZWQgPSAoaW5saW5lIC0gMSA8PSAwIG9yIHR5cGVvZih2YWx1ZSkgaXNudCAnb2JqZWN0JyBvciBVdGlscy5pc0VtcHR5KHZhbHVlKSlcblxuICAgICAgICAgICAgICAgICAgICBvdXRwdXQgKz1cbiAgICAgICAgICAgICAgICAgICAgICAgIHByZWZpeCArXG4gICAgICAgICAgICAgICAgICAgICAgICAnLScgK1xuICAgICAgICAgICAgICAgICAgICAgICAgKGlmIHdpbGxCZUlubGluZWQgdGhlbiAnICcgZWxzZSBcIlxcblwiKSArXG4gICAgICAgICAgICAgICAgICAgICAgICBAZHVtcCh2YWx1ZSwgaW5saW5lIC0gMSwgKGlmIHdpbGxCZUlubGluZWQgdGhlbiAwIGVsc2UgaW5kZW50ICsgQGluZGVudGF0aW9uKSwgZXhjZXB0aW9uT25JbnZhbGlkVHlwZSwgb2JqZWN0RW5jb2RlcikgK1xuICAgICAgICAgICAgICAgICAgICAgICAgKGlmIHdpbGxCZUlubGluZWQgdGhlbiBcIlxcblwiIGVsc2UgJycpXG5cbiAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICBmb3Iga2V5LCB2YWx1ZSBvZiBpbnB1dFxuICAgICAgICAgICAgICAgICAgICB3aWxsQmVJbmxpbmVkID0gKGlubGluZSAtIDEgPD0gMCBvciB0eXBlb2YodmFsdWUpIGlzbnQgJ29iamVjdCcgb3IgVXRpbHMuaXNFbXB0eSh2YWx1ZSkpXG5cbiAgICAgICAgICAgICAgICAgICAgb3V0cHV0ICs9XG4gICAgICAgICAgICAgICAgICAgICAgICBwcmVmaXggK1xuICAgICAgICAgICAgICAgICAgICAgICAgSW5saW5lLmR1bXAoa2V5LCBleGNlcHRpb25PbkludmFsaWRUeXBlLCBvYmplY3RFbmNvZGVyKSArICc6JyArXG4gICAgICAgICAgICAgICAgICAgICAgICAoaWYgd2lsbEJlSW5saW5lZCB0aGVuICcgJyBlbHNlIFwiXFxuXCIpICtcbiAgICAgICAgICAgICAgICAgICAgICAgIEBkdW1wKHZhbHVlLCBpbmxpbmUgLSAxLCAoaWYgd2lsbEJlSW5saW5lZCB0aGVuIDAgZWxzZSBpbmRlbnQgKyBAaW5kZW50YXRpb24pLCBleGNlcHRpb25PbkludmFsaWRUeXBlLCBvYmplY3RFbmNvZGVyKSArXG4gICAgICAgICAgICAgICAgICAgICAgICAoaWYgd2lsbEJlSW5saW5lZCB0aGVuIFwiXFxuXCIgZWxzZSAnJylcblxuICAgICAgICByZXR1cm4gb3V0cHV0XG5cblxubW9kdWxlLmV4cG9ydHMgPSBEdW1wZXJcbiIsIlxuUGF0dGVybiA9IHJlcXVpcmUgJy4vUGF0dGVybidcblxuIyBFc2NhcGVyIGVuY2Fwc3VsYXRlcyBlc2NhcGluZyBydWxlcyBmb3Igc2luZ2xlXG4jIGFuZCBkb3VibGUtcXVvdGVkIFlBTUwgc3RyaW5ncy5cbmNsYXNzIEVzY2FwZXJcblxuICAgICMgTWFwcGluZyBhcnJheXMgZm9yIGVzY2FwaW5nIGEgZG91YmxlIHF1b3RlZCBzdHJpbmcuIFRoZSBiYWNrc2xhc2ggaXNcbiAgICAjIGZpcnN0IHRvIGVuc3VyZSBwcm9wZXIgZXNjYXBpbmcuXG4gICAgQExJU1RfRVNDQVBFRVM6ICAgICAgICAgICAgICAgICBbJ1xcXFwnLCAnXFxcXFxcXFwnLCAnXFxcXFwiJywgJ1wiJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcIlxceDAwXCIsICBcIlxceDAxXCIsICBcIlxceDAyXCIsICBcIlxceDAzXCIsICBcIlxceDA0XCIsICBcIlxceDA1XCIsICBcIlxceDA2XCIsICBcIlxceDA3XCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXCJcXHgwOFwiLCAgXCJcXHgwOVwiLCAgXCJcXHgwYVwiLCAgXCJcXHgwYlwiLCAgXCJcXHgwY1wiLCAgXCJcXHgwZFwiLCAgXCJcXHgwZVwiLCAgXCJcXHgwZlwiLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFwiXFx4MTBcIiwgIFwiXFx4MTFcIiwgIFwiXFx4MTJcIiwgIFwiXFx4MTNcIiwgIFwiXFx4MTRcIiwgIFwiXFx4MTVcIiwgIFwiXFx4MTZcIiwgIFwiXFx4MTdcIixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcIlxceDE4XCIsICBcIlxceDE5XCIsICBcIlxceDFhXCIsICBcIlxceDFiXCIsICBcIlxceDFjXCIsICBcIlxceDFkXCIsICBcIlxceDFlXCIsICBcIlxceDFmXCIsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGNoID0gU3RyaW5n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4gICAgICAgICAgICAgICAgdG1wID0gVXRpbHMubHRyaW0gc2NhbGFyW2kuLl0sICcgJ1xuICAgICAgICAgICAgICAgIGlmIG5vdCh0bXAuY2hhckF0KDApIGluIGRlbGltaXRlcnMpXG4gICAgICAgICAgICAgICAgICAgIHRocm93IG5ldyBQYXJzZUV4Y2VwdGlvbiAnVW5leHBlY3RlZCBjaGFyYWN0ZXJzICgnK3NjYWxhcltpLi5dKycpLidcblxuICAgICAgICBlbHNlXG4gICAgICAgICAgICAjIFwibm9ybWFsXCIgc3RyaW5nXG4gICAgICAgICAgICBpZiBub3QgZGVsaW1pdGVyc1xuICAgICAgICAgICAgICAgIG91dHB1dCA9IHNjYWxhcltpLi5dXG4gICAgICAgICAgICAgICAgaSArPSBvdXRwdXQubGVuZ3RoXG5cbiAgICAgICAgICAgICAgICAjIFJlbW92ZSBjb21tZW50c1xuICAgICAgICAgICAgICAgIHN0cnBvcyA9IG91dHB1dC5pbmRleE9mICcgIydcbiAgICAgICAgICAgICAgICBpZiBzdHJwb3MgaXNudCAtMVxuICAgICAgICAgICAgICAgICAgICBvdXRwdXQgPSBVdGlscy5ydHJpbSBvdXRwdXRbMC4uLnN0cnBvc11cblxuICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgIGpvaW5lZERlbGltaXRlcnMgPSBkZWxpbWl0ZXJzLmpvaW4oJ3wnKVxuICAgICAgICAgICAgICAgIHBhdHRlcm4gPSBAUEFUVEVSTl9TQ0FMQVJfQllfREVMSU1JVEVSU1tqb2luZWREZWxpbWl0ZXJzXVxuICAgICAgICAgICAgICAgIHVubGVzcyBwYXR0ZXJuP1xuICAgICAgICAgICAgICAgICAgICBwYXR0ZXJuID0gbmV3IFBhdHRlcm4gJ14oLis/KSgnK2pvaW5lZERlbGltaXRlcnMrJyknXG4gICAgICAgICAgICAgICAgICAgIEBQQVRURVJOX1NDQUxBUl9CWV9ERUxJTUlURVJTW2pvaW5lZERlbGltaXRlcnNdID0gcGF0dGVyblxu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SlcbiAgICAgICAgICAgICAgICB3aGVuICdbJ1xuICAgICAgICAgICAgICAgICAgICAjIE5lc3RlZCBzZXF1ZW5jZVxuICAgICAgICAgICAgICAgICAgICBvdXRwdXQucHVzaCBAcGFyc2VTZXF1ZW5jZSBzZXF1ZW5jZSwgY29udGV4dFxuICAgICAgICAgICAgICAgICAgICB7aX0gPSBjb250ZXh0XG4gICAgICAgICAgICAgICAgd2hlbiAneydcbiAgICAgICAgICAgICAgICAgICAgIyBOZXN0ZWQgbWFwcGluZ1xuICAgICAgICAgICAgICAgICAgICBvdXRwdXQucHVzaCBAcGFyc2VNYXBwaW5nIHNlcXVlbmNlLCBjb250ZXh0XG4gICAgICAgICAgICAgICAgICAgIHtpfSA9IGNvbnRleHRcbiAgICAgICAgICAgICAgICB3aGVuICddJ1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gb3V0cHV0XG4gICAgICAgICAgICAgICAgd2hlbiAnLCcsICcgJywgXCJcXG5cIlxuICAgICAgICAgICAgICAgICAgICAjIERvIG5vdGhpbmdcbiAgICAgICAgICAgICAgICBlbHNlXG4gICAgICAgICAgICAgICAgICAgIGlzUXVvdGVkID0gKHNlcXVlbmNlLmNoYXJBdChpKSBpbiBbJ1wiJywgXCInXCJdKVxuICAgICAgICAgICAgICAgICAgICB2YWx1ZSA9IEBwYXJzZVNjYWxhciBzZXF1ZW5jZSwgWycsJywgJ10nXSwgWydcIicsIFwiJ1wiXSwgY29udGV4dFxuICAgICAgICAgICAgICAgICAgICB7aX0gPSBjb250ZXh0XG5cbiAgICAgICAgICAgICAgICAgICAgaWYgbm90KGlzUXVvdGVkKSBhbmQgdHlwZW9mKHZhbHVlKSBpcyAnc3RyaW5nJyBhbmQgKHZhbHVlLmluZGV4T2YoJzogJykgaXNudCAtMSBvciB2YWx1ZS5pbmRleE9mKFwiOlxcblwiKSBpc250IC0xKVxuICAgICAgICAgICAgICAgICAgICAgICAgIyBFbWJlZGRlZCBtYXBwaW5nP1xuICAgICAgICAgICAgICAgICAgICAgICAgdHJ5XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWUgPSBAcGFyc2VNYXBwaW5nICd7Jyt2YWx1ZSsnfSdcbiAgICAgICAgICAgICAgICAgICAgICAgIGNhdGNoIGVcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAjIE5vLCBpdCdzIG5vdFxuXG5cbiAgICAgICAgICAgICAgICAgICAgb3V0cHV0LnB1c2ggdmFsdWVcblxuICAgICAgICAgICAgICAgICAgICAtLWlcblxuICAgICAgICAgICAgKytpXG5cbiAgICAgICAgdGhyb3cgbmV3IFBhcnNlTW9yZSAnTWFsZm9ybWVkIGlubGluZSBZQU1MIHN0cmluZyAnK3NlcXVlbmNlXG5cblxuICAgICMgUGFyc2VzIGEgbWFwcGluZyB0byBhIFlBTUwgc3RyaW5nLlxuICAgICNcbiAgICAjIEBwYXJhbSBbU3RyaW5nXSAgIG1hcHBpbmdcbiAgICAjIEBwYXJhbSBbT2JqZWN0XSAgIGNvbnRleHRcbiAgICAjXG4gICAgIyBAcmV0dXJuIFtTdHJpbmddICBBIFlBTUwgc3RyaW5nXG4gICAgI1xuICAgICMgQHRocm93IFtQYXJzZU1vcmVdIFdoZW4gbWFsZm9ybWVkIGlubGluZSBZQU1MIHN0cmluZyBpcyBwYXJzZWRcbiAgICAjXG4gICAgQHBhcnNlTWFwcGluZzogKG1hcHBpbmcsIGNvbnRleHQpIC0+XG4gICAgICAgIG91dHB1dCA9IHt9XG4gICAgICAgIGxlbiA9IG1hcHBpbmcubGVuZ3RoXG4gICAgICAgIHtpfSA9IGNvbnRleHRcbiAgICAgICAgaSArPSAxXG5cbiAgICAgICAgIyB7Zm9vOiBiYXIsIGJhcjpmb28sIC4uLn1cbiAgICAgICAgc2hvdWxkQ29udGludWVXaGlsZUxvb3AgPSBmYWxzZVxuICAgICAgICB3aGlsZSBpIDwgbGVuXG4gICAgICAgICAgICBjb250ZXh0LmkgPSBpXG4gICAgICAgICAgICBzd2l0Y2ggbWFwcGluZy5jaGFyQXQoaSlcbiAgICAgICAgICAgICAgICB3aGVuICcgJywgJywnLCBcIlxcblwiXG4gICAgICAgICAgICAgICAgICAgICsraVxuICAgICAgICAgICAgICAgICAgICBjb250ZXh0LmkgPSBpXG4gICAgICAgICAgICAgICAgICAgIHNob3VsZENvbnRpbnVlV2hpbGVMb29wID0gdHJ1ZVxuICAgICAgICAgICAgICAgIHdoZW4gJ30nXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBvdXRwdXRcblxuICAgICAgICAgICAgaWYgc2hvdWxkQ29udGludWVXaGlsZUxvb3BcbiAgICAgICAgICAgICAgICBzaG91bGRDb250aW51ZVdoaWxlTG9vcCA9IGZhbHNlXG4gICAgICAgICAgICAgICAgY29udGludWVcblxuICAgICAgICAgICAgIyBLZXlcbiAgICAgICAgICAgIGtleSA9IEBwYXJzZVNjYWxhciBtYXBwaW5nLCBbJzonLCAnICcsIFwiXFxuXCJdLCBbJ1wiJywgXCInXCJdLCBjb250ZXh0LCBmYWxzZVxuICAgICAgICAgICAge2l9ID0gY29udGV4dFxuXG4gICAgICAgICAgICAjIFZhbHVlXG4gICAgICAgICAgICBkb25lID0gZmFsc2VcblxuICAgICAgICAgICAgd2hpbGUgaSA8IGxlblxuICAgICAgICAgICAgICAgIGNvbnRleHQuaSA9IGlcbiAgICAgICAgICAgICAgICBzd2l0Y2ggbWFwcGluZy5jaGFyQXQoaSlcbiAgICAgICAgICAgICAgICAgICAgd2hlbiAnWydcbiAgICAgICAgICAgICAgICAgICAgICAgICMgTmVzdGVkIHNlcXVlbmNlXG4gICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZSA9IEBwYXJzZVNlcXVlbmNlIG1hcHBpbmcsIGNvbnRleHRcbiAgICAgICAgICAgICAgICAgICAgICAgIHtpfSA9IGNvbnRleHRcbiAgICAgICAgICAgICAgICAgICAgICAgICMgU3BlYzogS2V5cyBNVVNUIGJlIHVuaXF1ZTsgZmlyc3Qgb25lIHdpbnMuXG4gICAgICAgICAgICAgICAgICAgICAgICAjIFBhcnNlciBjYW5ub3QgYWJvcnQgdGhpcyBtYXBwaW5nIGVhcmxpZXIsIHNpbmNlIGxpbmVzXG4gICAgICAgICAgICAgICAgICAgICAgICAjIGFyZSBwcm9jZXNzZWQgc2VxdWVudGlhbGx5LlxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgb3V0cHV0W2tleV0gPT0gdW5kZWZpbmVkXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgb3V0cHV0W2tleV0gPSB2YWx1ZVxuICAgICAgICAgICAgICAgICAgICAgICAgZG9uZSA9IHRydWVcbiAgICAgICAgICAgICAgICAgICAgd2hlbiAneydcbiAgICAgICAgICAgICAgICAgICAgICAgICMgTmVzdGVkIG1hcHBpbmdcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlID0gQHBhcnNlTWFwcGluZyBtYXBwaW5nLCBjb250ZXh0XG4gICAgICAgICAgICAgICAgICAgICAgICB7aX0gPSBjb250ZXh0XG4gICAgICAgICAgICAgICAgICAgICAgICAjIFNwZWM6IEtleXMgTVVTVCBiZSB1bmlxdWU7IGZpcnN0IG9uZSB3aW5zLlxuICAgICAgICAgICAgICAgICAgICAgICAgIyBQYXJzZXIgY2Fubm90IGFib3J0IHRoaXMgbWFwcGluZyBlYXJsaWVyLCBzaW5jZSBsaW5lc1xuICAgICAgICAgICAgICAgICAgICAgICAgIyBhcmUgcHJvY2Vzc2VkIHNlcXVlbnRpYWxseS5cbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIG91dHB1dFtrZXldID09IHVuZGVmaW5lZFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG91dHB1dFtrZXldID0gdmFsdWVcbiAgICAgICAgICAgICAgICAgICAgICAgIGRvbmUgPSB0cnVlXG4gICAgICAgICAgICAgICAgICAgIHdoZW4gJzonLCAnICcsIFwiXFxuXCJcbiAgICAgICAgICAgICAgICAgICAgICAgICMgRG8gbm90aGluZ1xuICAgICAgICAgICAgICAgICAgICBlbHNlXG4gICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZSA9IEBwYXJzZVNjYWxhciBtYXBwaW5nLCBbJywnLCAnfSddLCBbJ1wiJywgXCInXCJdLCBjb250ZXh0XG4gICAgICAgICAgICAgICAgICAgICAgICB7aX0gPSBjb250ZXh0XG4gICAgICAgICAgICAgICAgICAgICAgICAjIFNwZWM6IEtleXMgTVVTVCBiZSB1bmlxdWU7IGZpcnN0IG9uZSB3aW5zLlxuICAgICAgICAgICAgICAgICAgICAgICAgIyBQYXJzZXIgY2Fubm90IGFib3J0IHRoaXMgbWFwcGluZyBlYXJsaWVyLCBzaW5jZSBsaW5lc1xuICAgICAgICAgICAgICAgICAgICAgICAgIyBhcmUgcHJvY2Vzc2VkIHNlcXVlbnRpYWxseS5cbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIG91dHB1dFtrZXldID09IHVuZGVmaW5lZFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIG91dHB1dFtrZXldID0gdmFsdWVcbiAgICAgICAgICAgICAgICAgICAgICAgIGRvbmUgPSB0cnVlXG4gICAgICAgICAgICAgICAgICAgICAgICAtLWlcblxuICAgICAgICAgICAgICAgICsraVxuXG4gICAgICAgICAgICAgICAgaWYgZG9uZVxuICAgICAgICAgICAgICAgICAgICBicmVha1xuXG4gICAgICAgIHRocm93IG5ldyBQYXJzZU1vcmUgJ01hbGZvcm1lZCBpbmxpbmUgWUFNTCBzdHJpbmcgJyttYXBwaW5nXG5cblxuICAgICMgRXZhbHVhdGVzIHNjYWxhcnMgYW5kIHJlcGxhY2VzIG1hZ2ljIHZhbHVlcy5cbiAgICAjXG4gICAgIyBAcGFyYW0gW1N0cmluZ10gICBzY2FsYXJcbiAgICAjXG4gICAgIyBAcmV0dXJuIFtTdHJpbmddICBBIFlBTUwgc3RyaW5nXG4gICAgI1xuICAgIEBldmFsdWF0ZVNjYWxhcjogKHNjYWxhciwgY29udGV4dCkgLT5cbiAgICAgICAgc2NhbGFyID0gVXRpbHMudHJpbShzY2FsYXIpXG4gICAgICAgIHNjYWxhckxvd2VyID0gc2NhbGFyLnRvTG93ZXJDYXNlKClcblxuICAgICAgICBzd2l0Y2ggc2NhbGFyTG93ZXJcbiAgICAgICAgICAgIHdoZW4gJ251bGwnLCAnJywgJ34nXG4gICAgICAgICAgICAgICAgcmV0dXJuIG51bGxcbiAgICAgICAgICAgIHdoZW4gJ3RydWUnXG4gICAgICAgICAgICAgICAgcmV0dXJuIHRydWVcbiAgICAgICAgICAgIHdoZW4gJ2ZhbHNlJ1xuICAgICAgICAgICAgICAgIHJldHVybiBmYWxzZVxuICAgICAgICAgICAgd2hlbiAnLmluZidcbiAgICAgICAgICAgICAgICByZXR1cm4gSW5maW5pdHlcbiAgICAgICAgICAgIHdoZW4gJy5uYW4nXG4gICAgICAgICAgICAgICAgcmV0dXJuIE5hTlxuICAgICAgICAgICAgd2hlbiAnLS5pbmYnXG4gICAgICAgICAgICAgICAgcmV0dXJuIEluZmluaXR5XG4gICAgICAgICAgICBlbHNlXG4gICAgICAgICAgICAgICAgZmlyc3RDaGFyID0gc2NhbGFyTG93ZXIuY2hhckF0KDApXG4gICAgICAgICAgICAgICAgc3dpdGNoIGZpcnN0Q2hhclxuICAgICAgICAgICAgICAgICAgICB3aGVuICchJ1xuICAgICAgICAgICAgICAgICAgICAgICAgZmlyc3RTcGFjZSA9IHNjYWxhci5pbmRleE9mKCcgJylcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIGZpcnN0U3BhY2UgaXMgLTFcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmaXJzdFdvcmQgPSBzY2FsYXJMb3dlclxuICAgICAgICAgICAgICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZpcnN0V29yZCA9IHNjYWxhckxvd2VyWzAuLi5maXJzdFNwYWNlXVxuICAgICAgICAgICAgICAgICAgICAgICAgc3dpdGNoIGZpcnN0V29yZFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHdoZW4gJyEnXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIGZpcnN0U3BhY2UgaXNudCAtMVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHBhcnNlSW50IEBwYXJzZVNjYWxhcihzY2FsYXJbMi4uXSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIG51bGxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB3aGVuICchc3RyJ1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gVXRpbHMubHRyaW0gc2NhbGFyWzQuLl1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB3aGVuICchIXN0cidcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFV0aWxzLmx0cmltIHNjYWxhcls1Li5dXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgd2hlbiAnISFpbnQnXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBwYXJzZUludChAcGFyc2VTY2FsYXIoc2NhbGFyWzUuLl0pKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHdoZW4gJyEhYm9vbCdcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFV0aWxzLnBhcnNlQm9vbGVhbihAcGFyc2VTY2FsYXIoc2NhbGFyWzYuLl0pLCBmYWxzZSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB3aGVuICchIWZsb2F0J1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gcGFyc2VGbG9hdChAcGFyc2VTY2FsYXIoc2NhbGFyWzcuLl0pKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHdoZW4gJyEhdGltZXN0YW1wJ1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gVXRpbHMuc3RyaW5nVG9EYXRlKFV0aWxzLmx0cmltKHNjYWxhclsxMS4uXSkpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB1bmxlc3MgY29udGV4dD9cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNvbnRleHQgPSBleGNlcHRpb25PbkludmFsaWRUeXBlOiBAc2V0dGluZ3MuZXhjZXB0aW9uT25JbnZhbGlkVHlwZSwgb2JqZWN0RGVjb2RlcjogQHNldHRpbmdzLm9iamVjdERlY29kZXIsIGk6IDBcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAge29iamVjdERlY29kZXIsIGV4Y2VwdGlvbk9uSW52YWxpZFR5cGV9ID0gY29udGV4dFxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIG9iamVjdERlY29kZXJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICMgSWYgb2JqZWN0RGVjb2RlciBmdW5jdGlvbiBpcyBnaXZlbiwgd2UgY2FuIGRvIGN1c3RvbSBkZWNvZGluZyBvZiBjdXN0b20gdHlwZXNcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRyaW1tZWRTY2FsYXIgPSBVdGlscy5ydHJpbSBzY2FsYXJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZpcnN0U3BhY2UgPSB0cmltbWVkU2NhbGFyLmluZGV4T2YoJyAnKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgZmlyc3RTcGFjZSBpcyAtMVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBvYmplY3REZWNvZGVyIHRyaW1tZWRTY2FsYXIsIG51bGxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdWJWYWx1ZSA9IFV0aWxzLmx0cmltIHRyaW1tZWRTY2FsYXJbZmlyc3RTcGFjZSsxLi5dXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdW5sZXNzIHN1YlZhbHVlLmxlbmd0aCA+IDBcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3ViVmFsdWUgPSBudWxsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIG9iamVjdERlY29kZXIgdHJpbW1lZFNjYWxhclswLi4uZmlyc3RTcGFjZV0sIHN1YlZhbHVlXG5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgZXhjZXB0aW9uT25JbnZhbGlkVHlwZVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhyb3cgbmV3IFBhcnNlRXhjZXB0aW9uICdDdXN0b20gb2JqZWN0IHN1cHBvcnQgd2hlbiBwYXJzaW5nIGEgWUFNTCBmaWxlIGhhcyBiZWVuIGRpc2FibGVkLidcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gbnVsbFxuICAgICAgICAgICAgICAgICAgICB3aGVuICcwJ1xuICAgICAgICAgICAgICAgICAgICAgICAgaWYgJzB4JyBpcyBzY2FsYXJbMC4uLjJdXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFV0aWxzLmhleERlYyBzY2FsYXJcbiAgICAgICAgICAgICAgICAgICAgICAgIGVsc2UgaWYgVXRpbHMuaXNEaWdpdHMgc2NhbGFyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFV0aWxzLm9jdERlYyBzY2FsYXJcbiAgICAgICAgICAgICAgICAgICAgICAgIGVsc2UgaWYgVXRpbHMuaXNOdW1lcmljIHNjYWxhclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBwYXJzZUZsb2F0IHNjYWxhclxuICAgICAgICAgICAgICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBzY2FsYXJcbiAgICAgICAgICAgICAgICAgICAgd2hlbiAnKydcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIFV0aWxzLmlzRGlnaXRzIHNjYWxhclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJhdyA9IHNjYWxhclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhc3QgPSBwYXJzZUludChyYXcpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaWYgcmF3IGlzIFN0cmluZyhjYXN0KVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gY2FzdFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHJhd1xuICAgICAgICAgICAgICAgICAgICAgICAgZWxzZSBpZiBVdGlscy5pc051bWVyaWMgc2NhbGFyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHBhcnNlRmxvYXQgc2NhbGFyXG4gICAgICAgICAgICAgICAgICAgICAgICBlbHNlIGlmIEBQQVRURVJOX1RIT1VTQU5EX05VTUVSSUNfU0NBTEFSLnRlc3Qgc2NhbGFyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHBhcnNlRmxvYXQoc2NhbGFyLnJlcGxhY2UoJywnLCAnJykpXG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gc2NhbGFyXG4gICAgICAgICAgICAgICAgICAgIHdoZW4gJy0nXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiBVdGlscy5pc0RpZ2l0cyhzY2FsYXJbMS4uXSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZiAnMCcgaXMgc2NhbGFyLmNoYXJBdCgxKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gLVV0aWxzLm9jdERlYyhzY2FsYXJbMS4uXSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbHNlXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJhdyA9IHNjYWxhclsxLi5dXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhc3QgPSBwYXJzZUludChyYXcpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIHJhdyBpcyBTdHJpbmcoY2FzdClcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiAtY2FzdFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBlbHNlXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gLXJhd1xuICAgICAgICAgICAgICAgICAgICAgICAgZWxzZSBpZiBVdGlscy5pc051bWVyaWMgc2NhbGFyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHBhcnNlRmxvYXQgc2NhbGFyXG4gICAgICAgICAgICAgICAgICAgICAgICBlbHNlIGlmIEBQQVRURVJOX1RIT1VTQU5EX05VTUVSSUNfU0NBTEFSLnRlc3Qgc2NhbGFyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHBhcnNlRmxvYXQoc2NhbGFyLnJlcGxhY2UoJywnLCAnJykpXG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gc2NhbGFyXG4gICAgICAgICAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIGRhdGUgPSBVdGlscy5zdHJpbmdUb0RhdGUoc2NhbGFyKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBkYXRlXG4gICAgICAgICAgICAgICAgICAgICAgICBlbHNlIGlmIFV0aWxzLmlzTnVtZXJpYyhzY2FsYXIpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHBhcnNlRmxvYXQgc2NhbGFyXG4gICAgICAgICAgICAgICAgICAgICAgIC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gICBjb250aW51ZVxuXG4gICAgICAgICAgICAjIFRhYj9cbiAgICAgICAgICAgIGlmIFwiXFx0XCIgaXMgQGN1cnJlbnRMaW5lWzBdXG4gICAgICAgICAgICAgICAgdGhyb3cgbmV3IFBhcnNlRXhjZXB0aW9uICdBIFlBTUwgZmlsZSBjYW5ub3QgY29udGFpbiB0YWJzIGFzIGluZGVudGF0aW9uLicsIEBnZXRSZWFsQ3VycmVudExpbmVOYigpICsgMSwgQGN1cnJlbnRMaW5lXG5cbiAgICAgICAgICAgIGlzUmVmID0gbWVyZ2VOb2RlID0gZmFsc2VcbiAgICAgICAgICAgIGlmIHZhbHVlcyA9IEBQQVRURVJOX1NFUVVFTkNFX0lURU0uZXhlYyBAY3VycmVudExpbmVcbiAgICAgICAgICAgICAgICBpZiBAQ09OVEVYVF9NQVBQSU5HIGlzIGNvbnRleHRcbiAgICAgICAgICAgICAgICAgICAgdGhyb3cgbmV3IFBhcnNlRXhjZXB0aW9uICdZb3UgY2Fubm90IGRlZmluZSBhIHNlcXVlbmNlIGl0ZW0gd2hlbiBpbiBhIG1hcHBpbmcnXG4gICAgICAgICAgICAgICAgY29udGV4dCA9IEBDT05URVhUX1NFUVVFTkNFXG4gICAgICAgICAgICAgICAgZGF0YSA/PSBbXVxuXG4gICAgICAgICAgICAgICAgaWYgdmFsdWVzLnZhbHVlPyBhbmQgbWF0Y2hlcyA9IEBQQVRURVJOX0FOQ0hPUl9WQUxVRS5leGVjIHZhbHVlcy52YWx1ZVxuICAgICAgICAgICAgICAgICAgICBpc1JlZiA9IG1hdGNoZXMucmVmXG4gICAgICAgICAgICAgICAgICAgIHZhbHVlcy52YWx1ZSA9IG1hdGNoZXMudmFsdWVcblxuICAgICAgICAgICAgICAgICMgQXJyYXlcbiAgICAgICAgICAgICAgICBpZiBub3QodmFsdWVzLnZhbHVlPykgb3IgJycgaXMgVXRpbHMudHJpbSh2YWx1ZXMudmFsdWUsICcgJykgb3IgVXRpbHMubHRyaW0odmFsdWVzLnZhbHVlLCAnICcpLmluZGV4T2YoJyMnKSBpcyAwXG4gICAgICAgICAgICAgICAgICAgIGlmIEBjdXJyZW50TGluZU5iIDwgQGxpbmVzLmxlbmd0aCAtIDEgYW5kIG5vdCBAaXNOZXh0TGluZVVuSW5kZW50ZWRDb2xsZWN0aW9uKClcbiAgICAgICAgICAgICAgICAgICAgICAgIGMgPSBAZ2V0UmVhbEN1cnJlbnRMaW5lTmIoKSArIDFcbiAgICAgICAgICAgICAgICAgICAgICAgIHBhcnNlciA9IG5ldyBQYXJzZXIgY1xuICAgICAgICAgICAgICAgICAgICAgICAgcGFyc2VyLnJlZnMgPSBAcmVmc1xuICAgICAgICAgICAgICAgICAgICAgICAgZGF0YS5wdXNoIHBhcnNlci5wYXJzZShAZ2V0TmV4dEVtYmVkQmxvY2sobnVsbCwgdHJ1ZSksIGV4Y2VwdGlvbk9uSW52YWxpZFR5cGUsIG9iamVjdERlY29kZXIpXG4gICAgICAgICAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICAgICAgICAgIGRhdGEucHVzaCBudWxsXG5cbiAgICAgICAgICAgICAgICBlbHNlXG4gICAgICAgICAgICAgICAgICAgIGlmIHZhbHVlcy5sZWFkc3BhY2VzPy5sZW5ndGggYW5kIG1hdGNoZXMgPSBAUEFUVEVSTl9DT01QQUNUX05PVEFUSU9OLmV4ZWMgdmFsdWVzLnZhbHVlXG5cbiAgICAgICAgICAgICAgICAgICAgICAgICMgVGhpcyBpcyBhIGNvbXBhY3Qgbm90YXRpb24gZWxlbWVudCwgYWRkIHRvIG5leHQgYmxvY2sgYW5kIHBhcnNlXG4gICAgICAgICAgICAgICAgICAgICAgICBjID0gQGdldFJlYWxDdXJyZW50TGluZU5iKClcbiAgICAgICAgICAgICAgICAgICAgICAgIHBhcnNlciA9IG5ldyBQYXJzZXIgY1xuICAgICAgICAgICAgICAgICAgICAgICAgcGFyc2VyLnJlZnMgPSBAcmVmc1xuXG4gICAgICAgICAgICAgICAgICAgICAgICBibG9jayA9IHZhbHVlcy52YWx1ZVxuICAgICAgICAgICAgICAgICAgICAgICAgaW5kZW50ID0gQGdldEN1cnJlbnRMaW5lSW5kZW50YXRpb24oKVxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgQGlzTmV4dExpbmVJbmRlbnRlZChmYWxzZSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBibG9jayArPSBcIlxcblwiK0BnZXROZXh0RW1iZWRCbG9jayhpbmRlbnQgKyB2YWx1ZXMubGVhZHNwYWNlcy5sZW5ndGggKyAxLCB0cnVlKVxuXG4gICAgICAgICAgICAgICAgICAgICAgICBkYXRhLnB1c2ggcGFyc2VyLnBhcnNlIGJsb2NrLCBleGNlcHRpb25PbkludmFsaWRUeXBlLCBvYmplY3REZWNvZGVyXG5cbiAgICAgICAgICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgICAgICAgICAgZGF0YS5wdXNoIEBwYXJzZVZhbHVlIHZhbHVlcy52YWx1ZSwgZXhjZXB0aW9uT25JbnZhbGlkVHlwZSwgb2JqZWN0RGVjb2RlclxuXG4gICAgICAgICAgICBlbHNlIGlmICh2YWx1ZXMgPSBAUEFUVEVSTl9NQVBQSU5HX0lURU0uZXhlYyBAY3VycmVudExpbmUpIGFuZCB2YWx1ZXMua2V5LmluZGV4T2YoJyAjJykgaXMgLTFcbiAgICAgICAgICAgICAgICBpZiBAQ09OVEVYVF9TRVFVRU5DRSBpcyBjb250ZXh0XG4gICAgICAgICAgICAgICAgICAgIHRocm93IG5ldyBQYXJzZUV4Y2VwdGlvbiAnWW91IGNhbm5vdCBkZWZpbmUgYSBtYXBwaW5nIGl0ZW0gd2hlbiBpbiBhIHNlcXVlbmNlJ1xuICAgICAgICAgICAgICAgIGNvbnRleHQgPSBAQ09OVEVYVF9NQVBQSU5HXG4gICAgICAgICAgICAgICAgZGF0YSA/PSB7fVxuXG4gICAgICAgICAgICAgICAgIyBGb3JjZSBjb3JyZWN0IHNldHRpbmdzXG4gICAgICAgICAgICAgICAgSW5saW5lLmNvbmZpZ3VyZSBleGNlcHRpb25PbkludmFsaWRUeXBlLCBvYmplY3REZWNvZGVyXG4gICAgICAgICAgICAgICAgdHJ5XG4gICAgICAgICAgICAgICAgICAgIGtleSA9IElubGluZS5wYXJzZVNjYWxhciB2YWx1ZXMua2V5XG4gICAgICAgICAgICAgICAgY2F0Y2ggZVxuICAgICAgICAgICAgICAgICAgICBlLnBhcnNlZExpbmUgPSBAZ2V0UmVhbEN1cnJlbnRMaW5lTmIoKSArIDFcbiAgICAgICAgICAgICAgICAgICAgZS5zbmlwcGV0ID0gQGN1cnJlbnRMaW5lXG5cbiAgICAgICAgICAgICAgICAgICAgdGhyb3cgZVxuXG4gICAgICAgICAgICAgICAgaWYgJzw8JyBpcyBrZXlcbiAgICAgICAgICAgICAgICAgICAgbWVyZ2VOb2RlID0gdHJ1ZVxuICAgICAgICAgICAgICAgICAgICBhbGxvd092ZXJ3cml0ZSA9IHRydWVcbiAgICAgICAgICAgICAgICAgICAgaWYgdmFsdWVzLnZhbHVlPy5pbmRleE9mKCcqJykgaXMgMFxuICAgICAgICAgICAgICAgICAgICAgICAgcmVmTmFtZSA9IHZhbHVlcy52YWx1ZVsxLi5dXG4gICAgICAgICAgICAgICAgICAgICAgICB1bmxlc3MgQHJlZnNbcmVmTmFtZV0/XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhyb3cgbmV3IFBhcnNlRXhjZXB0aW9uICdSZWZlcmVuY2UgXCInK3JlZk5hbWUrJ1wiIGRvZXMgbm90IGV4aXN0LicsIEBnZXRSZWFsQ3VycmVudExpbmVOYigpICsgMSwgQGN1cnJlbnRMaW5lXG5cbiAgICAgICAgICAgICAgICAgICAgICAgIHJlZlZhbHVlID0gQHJlZnNbcmVmTmFtZV1cblxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgdHlwZW9mIHJlZlZhbHVlIGlzbnQgJ29iamVjdCdcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aHJvdyBuZXcgUGFyc2VFeGNlcHRpb24gJ1lBTUwgbWVyZ2Uga2V5cyB1c2VkIHdpdGggYSBzY2FsYXIgdmFsdWUgaW5zdGVhZCBvZiBhbiBvYmplY3QuJywgQGdldFJlYWxDdXJyZW50TGluZU5iKCkgKyAxLCBAY3VycmVudExpbmVcblxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgcmVmVmFsdWUgaW5zdGFuY2VvZiBBcnJheVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICMgTWVyZ2UgYXJyYXkgd2l0aCBvYmplY3RcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb3IgdmFsdWUsIGkgaW4gcmVmVmFsdWVcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGF0YVtTdHJpbmcoaSldID89IHZhbHVlXG4gICAgICAgICAgICAgICAgICAgICAgICBlbHNlXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgIyBNZXJnZSBvYmplY3RzXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZm9yIGtleSwgdmFsdWUgb2YgcmVmVmFsdWVcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGF0YVtrZXldID89IHZhbHVlXG5cbiAgICAgICAgICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgdmFsdWVzLnZhbHVlPyBhbmQgdmFsdWVzLnZhbHVlIGlzbnQgJydcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB2YWx1ZSA9IHZhbHVlcy52YWx1ZVxuICAgICAgICAgICAgICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlID0gQGdldE5leHRFbWJlZEJsb2NrKClcblxuICAgICAgICAgICAgICAgICAgICAgICAgYyA9IEBnZXRSZWFsQ3VycmVudExpbmVOYigpICsgMVxuICAgICAgICAgICAgICAgICAgICAgICAgcGFyc2VyID0gbmV3IFBhcnNlciBjXG4gICAgICAgICAgICAgICAgICAgICAgICBwYXJzZXIucmVmcyA9IEByZWZzXG4gICAgICAgICAgICAgICAgICAgICAgICBwYXJzZWQgPSBwYXJzZXIucGFyc2UgdmFsdWUsIGV4Y2VwdGlvbk9uSW52YWxpZFR5cGVcblxuICAgICAgICAgICAgICAgICAgICAgICAgdW5sZXNzIHR5cGVvZiBwYXJzZWQgaXMgJ29iamVjdCdcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aHJvdyBuZXcgUGFyc2VFeGNlcHRpb24gJ1lBTUwgbWVyZ2Uga2V5cyB1c2VkIHdpdGggYSBzY2FsYXIgdmFsdWUgaW5zdGVhZCBvZiBhbiBvYmplY3QuJywgQGdldFJlYWxDdXJyZW50TGluZU5iKCkgKyAxLCBAY3VycmVudExpbmVcblxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgcGFyc2VkIGluc3RhbmNlb2YgQXJyYXlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAjIElmIHRoZSB2YWx1ZSBhc3NvY2lhdGVkIHdpdGggdGhlIG1lcmdlIGtleSBpcyBhIHNlcXVlbmNlLCB0aGVuIHRoaXMgc2VxdWVuY2UgaXMgZXhwZWN0ZWQgdG8gY29udGFpbiBtYXBwaW5nIG5vZGVzXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgIyBhbmQgZWFjaCBvZiB0aGVzZSBub2RlcyBpcyBtZXJnZWQgaW4gdHVybiBhY2NvcmRpbmcgdG8gaXRzIG9yZGVyIGluIHRoZSBzZXF1ZW5jZS4gS2V5cyBpbiBtYXBwaW5nIG5vZGVzIGVhcmxpZXJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAjIGluIHRoZSBzZXF1ZW5jZSBvdmVycmlkZSBrZXlzIHNwZWNpZmllZCBpbiBsYXRlciBtYXBwaW5nIG5vZGVzLlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZvciBwYXJzZWRJdGVtIGluIHBhcnNlZFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB1bmxlc3MgdHlwZW9mIHBhcnNlZEl0ZW0gaXMgJ29iamVjdCdcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRocm93IG5ldyBQYXJzZUV4Y2VwdGlvbiAnTWVyZ2UgaXRlbXMgbXVzdCBiZSBvYmplY3RzLicsIEBnZXRSZWFsQ3VycmVudExpbmVOYigpICsgMSwgcGFyc2VkSXRlbVxuXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIHBhcnNlZEl0ZW0gaW5zdGFuY2VvZiBBcnJheVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIyBNZXJnZSBhcnJheSB3aXRoIG9iamVjdFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZm9yIHZhbHVlLCBpIGluIHBhcnNlZEl0ZW1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBrID0gU3RyaW5nKGkpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgdW5sZXNzIGRhdGEuaGFzT3duUHJvcGVydHkoaylcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGF0YVtrXSA9IHZhbHVlXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICMgTWVyZ2Ugb2JqZWN0c1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZm9yIGtleSwgdmFsdWUgb2YgcGFyc2VkSXRlbVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHVubGVzcyBkYXRhLmhhc093blByb3BlcnR5KGtleSlcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGF0YVtrZXldID0gdmFsdWVcblxuICAgICAgICAgICAgICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICMgSWYgdGhlIHZhbHVlIGFzc29jaWF0ZWQgd2l0aCB0aGUga2V5IGlzIGEgc2luZ2xlIG1hcHBpbmcgbm9kZSwgZWFjaCBvZiBpdHMga2V5L3ZhbHVlIHBhaXJzIGlzIGluc2VydGVkIGludG8gdGhlXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgIyBjdXJyZW50IG1hcHBpbmcsIHVubGVzcyB0aGUga2V5IGFscmVhZHkgZXhpc3RzIGluIGl0LlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZvciBrZXksIHZhbHVlIG9mIHBhcnNlZFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB1bmxlc3MgZGF0YS5oYXNPd25Qcm9wZXJ0eShrZXkpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkYXRhW2tleV0gPSB2YWx1ZVxuXG4gICAgICAgICAgICAgICAgZWxzZSBpZiB2YWx1ZXMudmFsdWU/IGFuZCBtYXRjaGVzID0gQFBBVFRFUk5fQU5DSE9SX1ZBTFVFLmV4ZWMgdmFsdWVzLnZhbHVlXG4gICAgICAgICAgICAgICAgICAgIGlzUmVmID0gbWF0Y2hlcy5yZWZcbiAgICAgICAgICAgICAgICAgICAgdmFsdWVzLnZhbHVlID0gbWF0Y2hlcy52YWx1ZVxuXG5cbiAgICAgICAgICAgICAgICBpZiBtZXJnZU5vZGVcbiAgICAgICAgICAgICAgICAgICAgIyBNZXJnZSBrZXlzXG4gICAgICAgICAgICAgICAgZWxzZSBpZiBub3QodmFsdWVzLnZhbHVlPykgb3IgJycgaXMgVXRpbHMudHJpbSh2YWx1ZXMudmFsdWUsICcgJykgb3IgVXRpbHMubHRyaW0odmFsdWVzLnZhbHVlLCAnICcpLmluZGV4T2YoJyMnKSBpcyAwXG4gICAgICAgICAgICAgICAgICAgICMgSGFzaFxuICAgICAgICAgICAgICAgICAgICAjIGlmIG5leHQgbGluZSBpcyBsZXNzIGluZGVudGVkIG9yIGVxdWFsLCB0aGVuIGl0IG1lYW5zIHRoYXQgdGhlIGN1cnJlbnQgdmFsdWUgaXMgbnVsbFxuICAgICAgICAgICAgICAgICAgICBpZiBub3QoQGlzTmV4dExpbmVJbmRlbnRlZCgpKSBhbmQgbm90KEBpc05leHRMaW5lVW5JbmRlbnRlZENvbGxlY3Rpb24oKSlcbiAgICAgICAgICAgICAgICAgICAgICAgICMgU3BlYzogS2V5cyBNVVNUIGJlIHVuaXF1ZTsgZmlyc3Qgb25lIHdpbnMuXG4gICAgICAgICAgICAgICAgICAgICAgICAjIEJ1dCBvdmVyd3JpdGluZyBpcyBhbGxvd2VkIHdoZW4gYSBtZXJnZSBub2RlIGlzIHVzZWQgaW4gY3VycmVudCBibG9jay5cbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIGFsbG93T3ZlcndyaXRlIG9yIGRhdGFba2V5XSBpcyB1bmRlZmluZWRcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBkYXRhW2tleV0gPSBudWxsXG5cbiAgICAgICAgICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgICAgICAgICAgYyA9IEBnZXRSZWFsQ3VycmVudExpbmVOYigpICsgMVxuICAgICAgICAgICAgICAgICAgICAgICAgcGFyc2VyID0gbmV3IFBhcnNlciBjXG4gICAgICAgICAgICAgICAgICAgICAgICBwYXJzZXIucmVmcyA9IEByZWZzXG4gICAgICAgICAgICAgICAgICAgICAgICB2YWwgPSBwYXJzZXIucGFyc2UgQGdldE5leHRFbWJlZEJsb2NrKCksIGV4Y2VwdGlvbk9uSW52YWxpZFR5cGUsIG9iamVjdERlY29kZXJcblxuICAgICAgICAgICAgICAgICAgICAgICAgIyBTcGVjOiBLZXlzIE1VU1QgYmUgdW5pcXVlOyBmaXJzdCBvbmUgd2lucy5cbiAgICAgICAgICAgICAgICAgICAgICAgICMgQnV0IG92ZXJ3cml0aW5nIGlzIGFsbG93ZWQgd2hlbiBhIG1lcmdlIG5vZGUgaXMgdXNlZCBpbiBjdXJyZW50IGJsb2NrLlxuICAgICAgICAgICAgICAgICAgICAgICAgaWYgYWxsb3dPdmVyd3JpdGUgb3IgZGF0YVtrZXldIGlzIHVuZGVmaW5lZFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRhdGFba2V5XSA9IHZhbFxuXG4gICAgICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgICAgICB2YWwgPSBAcGFyc2VWYWx1ZSB2YWx1ZXMudmFsdWUsIGV4Y2VwdGlvbk9uSW52YWxpZFR5cGUsIG9iamVjdERlY29kZXJcblxuICAgICAgICAgICAgICAgICAgICAjIFNwZWM6IEtleXMgTVVTVCBiZSB1bmlxdWU7IGZpcnN0IG9uZSB3aW5zLlxuICAgICAgICAgICAgICAgICAgICAjIEJ1dCBvdmVyd3JpdGluZyBpcyBhbGxvd2VkIHdoZW4gYSBtZXJnZSBub2RlIGlzIHVzZWQgaW4gY3VycmVudCBibG9jay5cbiAgICAgICAgICAgICAgICAgICAgaWYgYWxsb3dPdmVyd3JpdGUgb3IgZGF0YVtrZXldIGlzIHVuZGVmaW5lZFxuICAgICAgICAgICAgICAgICAgICAgICAgZGF0YVtrZXldID0gdmFsXG5cbiAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICAjIDEtbGluZXIgb3B0aW9uYWxseSBmb2xsb3dlZCBieSBuZXdsaW5lXG4gICAgICAgICAgICAgICAgbGluZUNvdW50ID0gQGxpbmVzLmxlbmd0aFxuICAgICAgICAgICAgICAgIGlmIDEgaXMgbGluZUNvdW50IG9yICgyIGlzIGxpbmVDb3VudCBhbmQgVXRpbHMuaXNFbXB0eShAbGluZXNbMV0pKVxuICAgICAgICAgICAgICAgICAgICB0cnlcbiAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlID0gSW5saW5lLnBhcnNlIEBsaW5lc1swXSwgZXhjZXB0aW9uT25JbnZhbGlkVHlwZSwgb2JqZWN0RGVjb2RlclxuICAgICAgICAgICAgICAgICAgICBjYXRjaCBlXG4gICAgICAgICAgICAgICAgICAgICAgICBlLnBhcnNlZExpbmUgPSBAZ2V0UmVhbEN1cnJlbnRMaW5lTmIoKSArIDFcbiAgICAgICAgICAgICAgICAgICAgICAgIGUuc25pcHBldCA9IEBjdXJyZW50TGluZVxuXG4gICAgICAgICAgICAgICAgICAgICAgICB0aHJvdyBlXG5cbiAgICAgICAgICAgICAgICAgICAgaWYgdHlwZW9mIHZhbHVlIGlzICdvYmplY3QnXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiB2YWx1ZSBpbnN0YW5jZW9mIEFycmF5XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZmlyc3QgPSB2YWx1ZVswXVxuICAgICAgICAgICAgICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZvciBrZXkgb2YgdmFsdWVcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZmlyc3QgPSB2YWx1ZVtrZXldXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrXG5cbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIHR5cGVvZiBmaXJzdCBpcyAnc3RyaW5nJyBhbmQgZmlyc3QuaW5kZXhPZignKicpIGlzIDBcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBkYXRhID0gW11cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBmb3IgYWxpYXMgaW4gdmFsdWVcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGF0YS5wdXNoIEByZWZzW2FsaWFzWzEuLl1dXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWUgPSBkYXRhXG5cbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHZhbHVlXG5cbiAgICAgICAgICAgICAgICBlbHNlIGlmIFV0aWxzLmx0cmltKHZhbHVlKS5jaGFyQXQoMCkgaW4gWydbJywgJ3snXVxuICAgICAgICAgICAgICAgICAgICB0cnlcbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiBJbmxpbmUucGFyc2UgdmFsdWUsIGV4Y2VwdGlvbk9uSW52YWxpZFR5cGUsIG9iamVjdERlY29kZXJcbiAgICAgICAgICAgICAgICAgICAgY2F0Y2ggZVxuICAgICAgICAgICAgICAgICAgICAgICAgZS5wYXJzZWRMaW5lID0gQGdldFJlYWxDdXJyZW50TGluZU5iKCkgKyAxXG4gICAgICAgICAgICAgICAgICAgICAgICBlLnNuaXBwZXQgPSBAY3VycmVudExpbmVcblxuICAgICAgICAgICAgICAgICAgICAgICAgdGhyb3cgZVxuXG4gICAgICAgICAgICAgICAgdGhyb3cgbmV3IFBhcnNlRXhjZXB0aW9uICdVbmFibGUgdG8gcGFyc2UuJywgQGdldFJlYWxDdXJyZW50TGluZU5iKCkgKyAxLCBAY3VycmVudExpbmVcblxuICAgICAgICAgICAgaWYgaXNSZWZcbiAgICAgICAgICAgICAgICBpZiBkYXRhIGluc3RhbmNlb2YgQXJyYXlcbiAgICAgICAgICAgICAgICAgICAgQHJlZnNbaXNSZWZdID0gZGF0YVtkYXRhLmxlbmd0aC0xXVxuICAgICAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICAgICAgbGFzdEtleSA9IG51bGxcbiAgICAgICAgICAgICAgICAgICAgZm9yIGtleSBvZiBkYXRhXG4gICAgICAgICAgICAgICAgICAgICAgICBsYXN0S2V5ID0ga2V5XG4gICAgICAgICAgICAgICAgICAgIEByZWZzW2lzUmVmXSA9IGRhdGFbbGFzdEtleV1cblxuXG4gICAgICAgIGlmIFV0aWxzLmlzRW1wdHkoZGF0YSlcbiAgICAgICAgICAgIHJldHVybiBudWxsXG4gICAgICAgIGVsc2VcbiAgICAgICAgICAgIHJldHVybiBkYXRhXG5cblxuXG4gICAgIyBSZXR1cm5zIHRoZSBjdXJyZW50IGxpbmUgbnVtYmVyICh0YWtlcyB0aGUgb2Zmc2V0IGludG8gYWNjb3VudCkuXG4gICAgI1xuICAgICMgQHJldHVybiBbSW50ZWdl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ZXN0IEBjdXJyZW50TGluZVxuXG4gICAgICAgIHdoaWxlIEBtb3ZlVG9OZXh0TGluZSgpXG4gICAgICAgICAgICBpbmRlbnQgPSBAZ2V0Q3VycmVudExpbmVJbmRlbnRhdGlvbigpXG5cbiAgICAgICAgICAgIGlmIGluZGVudCBpcyBuZXdJbmRlbnRcbiAgICAgICAgICAgICAgICByZW1vdmVDb21tZW50cyA9IG5vdCByZW1vdmVDb21tZW50c1BhdHRlcm4udGVzdCBAY3VycmVudExpbmVcblxuICAgICAgICAgICAgaWYgcmVtb3ZlQ29tbWVudHMgYW5kIEBpc0N1cnJlbnRMaW5lQ29tbWVudCgpXG4gICAgICAgICAgICAgICAgY29udGludWVcblxuICAgICAgICAgICAgaWYgQGlzQ3VycmVudExpbmVCbGFuaygpXG4gICAgICAgICAgICAgICAgZGF0YS5wdXNoIEBjdXJyZW50TGluZVtuZXdJbmRlbnQuLl1cbiAgICAgICAgICAgICAgICBjb250aW51ZVxuXG4gICAgICAgICAgICBpZiBpc0l0VW5pbmRlbnRlZENvbGxlY3Rpb24gYW5kIG5vdCBAaXNTdHJpbmdVbkluZGVudGVkQ29sbGVjdGlvbkl0ZW0oQGN1cnJlbnRMaW5lKSBhbmQgaW5kZW50IGlzIG5ld0luZGVudFxuICAgICAgICAgICAgICAgIEBtb3ZlVG9QcmV2aW91c0xpbmUoKVxuICAgICAgICAgICAgICAgIGJyZWFrXG5cbiAgICAgICAgICAgIGlmIGluZGVudCA+PSBuZXdJbmRlbnRcbiAgICAgICAgICAgICAgICBkYXRhLnB1c2ggQGN1cnJlbnRMaW5lW25ld0luZGVudC4uXVxuICAgICAgICAgICAgZWxzZSBpZiBVdGlscy5sdHJpbShAY3VycmVudExpbmUpLmNoYXJBdCgwKSBpcyAnIydcbiAgICAgICAgICAgICAgICAjIERvbid0IGFkZCBsaW5lIHdpdGggY29tbWVudHNcbiAgICAgICAgICAgIGVsc2UgaWYgMCBpcyBpbmRlbnRcbiAgICAgICAgICAgICAgIC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2RpZmllcnMpKVxuICAgICAgICAgICAgaWYgaXNOYU4oZm9sZGVkSW5kZW50KSB0aGVuIGZvbGRlZEluZGVudCA9IDBcbiAgICAgICAgICAgIHZhbCA9IEBwYXJzZUZvbGRlZFNjYWxhciBtYXRjaGVzLnNlcGFyYXRvciwgQFBBVFRFUk5fREVDSU1BTC5yZXBsYWNlKG1vZGlmaWVycywgJycpLCBmb2xkZWRJbmRlbnRcbiAgICAgICAgICAgIGlmIG1hdGNoZXMudHlwZT9cbiAgICAgICAgICAgICAgICAjIEZvcmNlIGNvcnJlY3Qgc2V0dGluZ3NcbiAgICAgICAgICAgICAgICBJbmxpbmUuY29uZmlndXJlIGV4Y2VwdGlvbk9uSW52YWxpZFR5cGUsIG9iamVjdERlY29kZXJcbiAgICAgICAgICAgICAgICByZXR1cm4gSW5saW5lLnBhcnNlU2NhbGFyIG1hdGNoZXMudHlwZSsnICcrdmFsXG4gICAgICAgICAgICBlbHNlXG4gICAgICAgICAgICAgICAgcmV0dXJuIHZhbFxuXG4gICAgICAgICMgVmFsdWUgY2FuIGJlIG11bHRpbGluZSBjb21wYWN0IHNlcXVlbmNlIG9yIG1hcHBpbmcgb3Igc3RyaW5nXG4gICAgICAgIGlmIHZhbHVlLmNoYXJBdCgwKSBpbiBbJ1snLCAneycsICdcIicsIFwiJ1wiXVxuICAgICAgICAgICAgd2hpbGUgdHJ1ZVxuICAgICAgICAgICAgICAgIHRyeVxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gSW5saW5lLnBhcnNlIHZhbHVlLCBleGNlcHRpb25PbkludmFsaWRUeXBlLCBvYmplY3REZWNvZGVyXG4gICAgICAgICAgICAgICAgY2F0Y2ggZVxuICAgICAgICAgICAgICAgICAgICBpZiBlIGluc3RhbmNlb2YgUGFyc2VNb3JlIGFuZCBAbW92ZVRvTmV4dExpbmUoKVxuICAgICAgICAgICAgICAgICAgICAgICAgdmFsdWUgKz0gXCJcXG5cIiArIFV0aWxzLnRyaW0oQGN1cnJlb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AgIHBhdHRlcm4gPSBuZXcgUGF0dGVybiAnXiB7JytpbmRlbnRhdGlvbisnfSguKikkJ1xuICAgICAgICAgICAgICAgIFBhcnNlcjo6UEFUVEVSTl9GT0xERURfU0NBTEFSX0JZX0lOREVOVEFUSU9OW2luZGVudGF0aW9uXSA9IHBhdHRlcm5cblxuICAgICAgICAgICAgd2hpbGUgbm90RU9GIGFuZCAoaXNDdXJyZW50TGluZUJsYW5rIG9yIG1hdGNoZXMgPSBwYXR0ZXJuLmV4ZWMgQGN1cnJlbnRMaW5lKVxuICAgICAgICAgICAgICAgIGlmIGlzQ3VycmVudExpbmVCbGFua1xuICAgICAgICAgICAgICAgICAgICB0ZXh0ICs9IEBjdXJyZW50TGluZVtpbmRlbnRhdGlvbi4uXVxuICAgICAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICAgICAgdGV4dCArPSBtYXRjaGVzWzFdXG5cbiAgICAgICAgICAgICAgICAjIG5ld2xpbmUgb25seSBpZiBub3QgRU9GXG4gICAgICAgICAgICAgICAgaWYgbm90RU9GID0gQG1vdmVUb05leHRMaW5lKClcbiAgICAgICAgICAgICAgICAgICAgdGV4dCArPSBcIlxcblwiXG4gICAgICAgICAgICAgICAgICAgIGlzQ3VycmVudExpbmVCbGFuayA9IEBpc0N1cnJlbnRMaW5lQmxhbmsoKVxuXG4gICAgICAgIGVsc2UgaWYgbm90RU9GXG4gICAgICAgICAgICB0ZXh0ICs9IFwiXFxuXCJcblxuXG4gICAgICAgIGlmIG5vdEVPRlxuICAgICAgICAgICAgQG1vdmVUb1ByZXZpb3VzTGluZSgpXG5cblxuICAgICAgICAjIFJlbW92ZSBsaW5lIGJyZWFrcyBvZiBlYWNoIGxpbmVzIGV4Y2VwdCB0aGUgZW1wdHkgYW5kIG1vcmUgaW5kZW50ZWQgb25lc1xuICAgICAgICBpZiAnPicgaXMgc2VwYXJhdG9yXG4gICAgICAgICAgICBuZXdUZXh0ID0gJydcbiAgICAgICAgICAgIGZvciBs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luZUluZGVudGVkOiAoaWdub3JlQ29tbWVudHMgPSB0cnVlKSAtPlxuICAgICAgICBjdXJyZW50SW5kZW50YXRpb24gPSBAZ2V0Q3VycmVudExpbmVJbmRlbnRhdGlvbigpXG4gICAgICAgIEVPRiA9IG5vdCBAbW92ZVRvTmV4dExpbmUoKVxuXG4gICAgICAgIGlmIGlnbm9yZUNvbW1lbnRzXG4gICAgICAgICAgICB3aGlsZSBub3QoRU9GKSBhbmQgQGlzQ3VycmVudExpbmVFbXB0eSgpXG4gICAgICAgICAgICAgICAgRU9GID0gbm90IEBtb3ZlVG9OZXh0TGluZSgpXG4gICAgICAgIGVsc2VcbiAgICAgICAgICAgIHdoaWxlIG5vdChFT0YpIGFuZCBAaXNDdXJyZW50TGluZUJsYW5rKClcbiAgICAgICAgICAgICAgICBFT0YgPSBub3QgQG1vdmVUb05leHRMaW5lKClcblxuICAgICAgICBpZiBFT0ZcbiAgICAgICAgICAgIHJldHVybiBmYWxzZVxuXG4gICAgICAgIHJldCA9IGZhbHNlXG4gICAgICAgIGlmIEBnZXRDdXJyZW50TGluZUluZGVudGF0aW9uKCkgPiBjdXJyZW50SW5kZW50YXRpb25cbiAgICAgICAgICAgIHJldCA9IHRydWVcblxuICAgICAgICBAbW92ZVRvUHJldmlvdXNMaW5lKClcblxuICAgICAgICByZXR1cm4gcmV0XG5cblxuICAgICMgUmV0dXJucyB0cnVlIGlmIHRoZSBjdXJyZW50IGxpbmUgaXMgYmxhbmsgb3IgaWYgaXQgaXMgYSBjb21tZW50IGxpbmUuXG4gICAgI1xuICAgICMgQHJldHVybiBbQm9vbGVhbl0gICAgIFJldHVybnMgdHJ1ZSBpZiB0aGUgY3VycmVudCBsaW5lIGlzIGVtcHR5IG9yIGlmIGl0IGlzIGEgY29tbWVudCBsaW5lLCBmYWxzZSBvdGhlcndpc2VcbiAgICAjXG4gICAgaXNDdXJyZW50TGluZUVtcHR5OiAtPlxuICAgICAgICB0cmltbWVkTGluZSA9IFV0aWxzLnR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0b3JcbiAgICAjXG4gICAgIyBAcGFyYW0gW1N0cmluZ10gcmF3UmVnZXggVGhlIHJhdyByZWdleCBzdHJpbmcgZGVmaW5pbmcgdGhlIHBhdHRlcm5cbiAgICAjXG4gICAgY29uc3RydWN0b3I6IChyYXdSZWdleCwgbW9kaWZpZXJzID0gJycpIC0+XG4gICAgICAgIGNsZWFuZWRSZWdleCA9ICcnXG4gICAgICAgIGxlbiA9IHJhd1JlZ2V4Lmxlbmd0aFxuICAgICAgICBtYXBwaW5nID0gbnVsbFxuXG4gICAgICAgICMgQ2xlYW51cCByYXcgcmVnZXggYW5kIGNvbXB1dGUgbWFwcGluZ1xuICAgICAgICBjYXB0dXJpbmdCcmFja2V0TnVtYmVyID0gMFxuICAgICAgICBpID0gMFxuICAgICAgICB3aGlsZSBpIDwgbGVuXG4gICAgICAgICAgICBfY2hhciA9IHJhd1JlZ2V4LmNoYXJBdChpKVxuICAgICAgICAgICAgaWYgX2NoYXIgaXMgJ1xcXFwnXG4gICAgICAgICAgICAgICAgIyBJZ25vcmUgbmV4dCBjaGFyYWN0ZXJcbiAgICAgICAgICAgICAgICBjbGVhbmVkUmVnZXggKz0gcmF3UmVnZXhbaS4uaSsxXVxuICAgICAgICAgICAgICAgIGkrK1xuICAgICAgICAgICAgZWxzZSBpZiBfY2hhciBpcyAnKCdcbiAgICAgICAgICAgICAgICAjIEluY3JlYXNlIGJyYWNrZXQgbnVtYmVyLCBvbmx5IGlmIGl0IGlzIGNhcHR1cmluZ1xuICAgICAgICAgICAgICAgIGlmIGkgPCBsZW4gLSAyXG4gICAgICAgICAgICAgICAgICAgIHBhcnQgPSByYXdSZWdleFtpLi5pKzJdXG4gICAgICAgICAgICAgICAgICAgIGlmIHBhcnQgaXMgJyg/OidcbiAgICAgICAgICAgICAgICAgICAgICAgICMgTm9uLWNhcHR1cmluZyBicmFja2V0XG4gICAgICAgICAgICAgICAgICAgICAgICBpICs9IDJcbiAgICAgICAgICAgICAgICAgICAgICAgIGNsZWFuZWRSZWdleCArPSBwYXJ0XG4gICAgICAgICAgICAgICAgICAgIGVsc2UgaWYgcGFydCBpcyAnKD88J1xuICAgICAgICAgICAgICAgICAgICAgICAgIyBDYXB0dXJpbmcgYnJhY2tldCB3aXRoIHBvc3NpYmx5IGEgbmFtZVxuICAgICAgICAgICAgICAgICAgICAgICAgY2FwdHVyaW5nQnJhY2tldE51bWJlcisrXG4gICAgICAgICAgICAgICAgICAgICAgICBpICs9IDJcbiAgICAgICAgICAgICAgICAgICAgICAgIG5hbWUgPSAnJ1xuICAgICAgICAgICAgICAgICAgICAgICAgd2hpbGUgaSArIDEgPCBsZW5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdWJDaGFyID0gcmF3UmVnZXguY2hhckF0KGkgKyAxKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIHN1YkNoYXIgaXMgJz4nXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNsZWFuZWRSZWdleCArPSAnKCdcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaSsrXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIG5hbWUubGVuZ3RoID4gMFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIyBBc3NvY2lhdGUgYSBuYW1lIHdpdGggYSBjYXB0dXJpbmcgYnJhY2tldCBudW1iZXJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1hcHBpbmcgPz0ge31cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG1hcHBpbmdbbmFtZV0gPSBjYXB0dXJpbmdCcmFja2V0TnVtYmVyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGJyZWFrXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBuYW1lICs9IHN1YkNoYXJcblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGkrK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ICdhJ1xuICAgICAgICAgICAgICAgIHJldHVybiBjaCg3KVxuICAgICAgICAgICAgd2hlbiAnYidcbiAgICAgICAgICAgICAgICByZXR1cm4gY2goOClcbiAgICAgICAgICAgIHdoZW4gJ3QnXG4gICAgICAgICAgICAgICAgcmV0dXJuIFwiXFx0XCJcbiAgICAgICAgICAgIHdoZW4gXCJcXHRcIlxuICAgICAgICAgICAgICAgIHJldHVybiBcIlxcdFwiXG4gICAgICAgICAgICB3aGVuICduJ1xuICAgICAgICAgICAgICAgIHJldHVybiBcIlxcblwiXG4gICAgICAgICAgICB3aGVuICd2J1xuICAgICAgICAgICAgICAgIHJldHVybiBjaCgxMSlcbiAgICAgICAgICAgIHdoZW4gJ2YnXG4gICAgICAgICAgICAgICAgcmV0dXJuIGNoKDEyKVxuICAgICAgICAgICAgd2hlbiAncidcbiAgICAgICAgICAgICAgICByZXR1cm4gY2goMTMpXG4gICAgICAgICAgICB3aGVuICdlJ1xuICAgICAgICAgICAgICAgIHJldHVybiBjaCgyNylcbiAgICAgICAgICAgIHdoZW4gJyAnXG4gICAgICAgICAgICAgICAgcmV0dXJuICcgJ1xuICAgICAgICAgICAgd2hlbiAnXCInXG4gICAgICAgICAgICAgICAgcmV0dXJuICdcIidcbiAgICAgICAgICAgIHdoZW4gJy8nXG4gICAgICAgICAgICAgICAgcmV0dXJuICcvJ1xuICAgICAgICAgICAgd2hlbiAnXFxcXCdcbiAgICAgICAgICAgICAgICByZXR1cm4gJ1xcXFwnXG4gICAgICAgICAgICB3aGVuICdOJ1xuICAgICAgICAgICAgICAgICMgVSswMDg1IE5FWFQgTElORVxuICAgICAgICAgICAgICAgIHJldHVybiBjaCgweDAwODUpXG4gICAgICAgICAgICB3aGVuICdfJ1xuICAgICAgICAgICAgICAgICMgVSswMEEwIE5PLUJSRUFLIFNQQUNFXG4gICAgICAgICAgICAgICAgcmV0dXJuIGNoKDB4MDBBMClcbiAgICAgICAgICAgIHdoZW4gJ0wnXG4gICAgICAgICAgICAgICAgIyBVKzIwMjggTElORSBTRVBBUkFUT1JcbiAgICAgICAgICAgICAgICByZXR1cm4gY2goMHgyMDI4KVxuICAgICAgICAgICAgd2hlbiAnUCdcbiAgICAgICAgICAgICAgICAjIFUrMjAyOSBQQVJBR1JBUEggU0VQQVJBVE9SXG4gICAgICAgICAgICAgICAgcmV0dXJuIGNoKDB4MjAyOSlcbiAgICAgICAgICAgIHdoZW4gJ3gnXG4gICAgICAgICAgICAgICAgcmV0dXJuIFV0aWxzLnV0ZjhjaHIoVXRpbHMuaGV4RGVjKHZhbHVlLnN1YnN0cigyLCAyKSkpXG4gICAgICAgICAgICB3aGVuICd1J1xuICAgICAgICAgICAgICAgIHJldHVybiBVdGlscy51dGY4Y2hyKFV0aWxzLmhleERlYyh2YWx1ZS5zdWJzdHIoMiwgNCkpKVxuICAgICAgICAgICAgd2hlbiAnVSdcbiAgICAgICAgICAgICAgICByZXR1cm4gVXRpbHMudXRmOGNocihVdGlscy5oZXhEZWModmFsdWUuc3Vic3RyKDIsIDgpKSlcbiAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICByZXR1cm4gJydcblxubW9kdWxlLmV4cG9ydHMgPSBVbmVzY2FwZXJcbiIsIlxuUGF0dGVybiA9IHJlcXVpcmUgJy4vUGF0dGVybidcblxuIyBBIGJ1bmNoIG9mIHV0aWxpdHkgbWV0aG9kc1xuI1xuY2xhc3MgVXRpbHNcblxuICAgIEBSRUdFWF9MRUZUX1RSSU1fQllfQ0hBUjogICB7fVxuICAgIEBSRUdFWF9SSUdIVF9UUklNX0JZX0NIQVI6ICB7fVxuICAgIEBSRUdFWF9TUEFDRVM6ICAgICAgICAgICAgICAvXFxzKy9nXG4gICAgQFJFR0VYX0RJR0lUUzogICAgICAgICAgICAgIC9eXFxkKyQvXG4gICAgQFJFR0VYX09DVEFMOiAgICAgICAgICAgICAgIC9bXjAtN10vZ2lcbiAgICBAUkVHRVhfSEVYQURFQ0lNQUw6ICAgICAgICAgL1teYS1mMC05XS9naVxuXG4gICAgIyBQcmVjb21waWxlZCBkYXRlIHBhdHRlcm5cbiAgICBAUEFUVEVSTl9EQVRFOiAgICAgICAgICAgICAgbmV3IFBhdHRlcm4gJ14nK1xuICAgICAgICAgICAgJyg/PHllYXI+WzAtOV1bMC05XVswLTldWzAtOV0pJytcbiAgICAgICAgICAgICctKD88bW9udGg+WzAtOV1bMC05XT8pJytcbiAgICAgICAgICAgICctKD88ZGF5PlswLTldWzAtOV0/KScrXG4gICAgICAgICAgICAnKD86KD86W1R0XXxbIFxcdF0rKScrXG4gICAgICAgICAgICAnKD88aG91cj5bMC05XVswLTldPyknK1xuICAgICAgICAgICAgJzooPzxtaW51dGU+WzAtOV1bMC05XSknK1xuICAgICAgICAgICAgJzooPzxzZWNvbmQ+WzAtOV1bMC05XSknK1xuICAgICAgICAgICAgJyg/OlxcLig/PGZyYWN0aW9uPlswLTldKikpPycrXG4gICAgICAgICAgICAnKD86WyBcXHRdKig/PHR6Plp8KD88dHpfc2lnbj5bLStdKSg/PHR6X2hvdXI+WzAtOV1bMC05XT8pJytcbiAgICAgICAgICAgICcoPzo6KD88dHpfbWludXRlPlswLTldWzAtOV0pKT8pKT8pPycrXG4gICAgICAgICAgICAnJCcsICdpJ1xuXG4gICAgIyBMb2NhbCB0aW1lem9uZSBvZmZzZXQgaW4gbXNcbiAgICBATE9DQUxfVElNRVpPTkVfT0ZGU0VUOiAgICAgbmV3IERhdGUoKS5nZXRUaW1lem9uZU9mZnNldCgpICogNjAgKiAxMDAwXG5cbiAgICAjIFRyaW1zIHRoZSBnaXZlbiBzdHJpbmcgb24gYm90aCBzaWRlc1xuICAgICNcbiAgICAjIEBwYXJhbSBbU3RyaW5nXSBzdHIgVGhlIHN0cmluZyB0byB0cmltXG4gICAgIyBAcGFyYW0gW1N0cmluZ10gX2NoYXIgVGhlIGNoYXJhY3RlciB0byB1c2UgZm9yIHRyaW1taW5nIChkZWZhdWx0OiAnXFxcXHMnKVxuICAgICNcbiAgICAjI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VxuICAgICAgICAgICAgcmV0dXJuIGRhdGVcblxuICAgICAgICAjIEV4dHJhY3QgaG91ciwgbWludXRlLCBzZWNvbmRcbiAgICAgICAgaG91ciA9IHBhcnNlSW50IGluZm8uaG91ciwgMTBcbiAgICAgICAgbWludXRlID0gcGFyc2VJbnQgaW5mby5taW51dGUsIDEwXG4gICAgICAgIHNlY29uZCA9IHBhcnNlSW50IGluZm8uc2Vjb25kLCAxMFxuXG4gICAgICAgICMgRXh0cmFjdCBmcmFjdGlvbiwgaWYgZ2l2ZW5cbiAgICAgICAgaWYgaW5mby5mcmFjdGlvbj9cbiAgICAgICAgICAgIGZyYWN0aW9uID0gaW5mby5mcmFjdGlvblswLi4uM11cbiAgICAgICAgICAgIHdoaWxlIGZyYWN0aW9uLmxlbmd0aCA8IDNcbiAgICAgICAgICAgICAgICBmcmFjdGlvbiArPSAnMCdcbiAgICAgICAgICAgIGZyYWN0aW9uID0gcGFyc2VJbnQgZnJhY3Rpb24sIDEwXG4gICAgICAgIGVsc2VcbiAgICAgICAgICAgIGZyYWN0aW9uID0gMFxuXG4gICAgICAgICMgQ29tcHV0ZSB0aW1lem9uZSBvZmZzZXQgaWYgZ2l2ZW5cbiAgICAgICAgaWYgaW5mby50ej9cbiAgICAgICAgICAgIHR6X2hvdXIgPSBwYXJzZUludCBpbmZvLnR6X2hvdXIsIDEwXG4gICAgICAgICAgICBpZiBpbmZvLnR6X21pbnV0ZT9cbiAgICAgICAgICAgICAgICB0el9taW51dGUgPSBwYXJzZUludCBpbmZvLnR6X21pbnV0ZSwgMTBcbiAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICB0el9taW51dGUgPSAwXG5cbiAgICAgICAgICAgICMgQ29tcHV0ZSB0aW1lem9uZSBkZWx0YSBpbiBtc1xuICAgICAgICAgICAgdHpfb2Zmc2V0ID0gKHR6X2hvdXIgKiA2MCArIHR6X21pbnV0ZSkgKiA2MDAwMFxuICAgICAgICAgICAgaWYgJy0nIGlzIGluZm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Y2sgICAgQSBjYWxsYmFjayB0byByZWFkIGZpbGUgYXN5bmNocm9ub3VzbHkgKG9wdGlvbmFsKVxuICAgICNcbiAgICAjIEByZXR1cm4gW1N0cmluZ10gIFRoZSByZXN1bHRpbmcgZGF0YSBhcyBzdHJpbmdcbiAgICAjXG4gICAgQGdldFN0cmluZ0Zyb21GaWxlOiAocGF0aCwgY2FsbGJhY2sgPSBudWxsKSAtPlxuICAgICAgICB4aHIgPSBudWxsXG4gICAgICAgIGlmIHdpbmRvdz9cbiAgICAgICAgICAgIGlmIHdpbmRvdy5YTUxIdHRwUmVxdWVzdFxuICAgICAgICAgICAgICAgIHhociA9IG5ldyBYTUxIdHRwUmVxdWVzdCgpXG4gICAgICAgICAgICBlbHNlIGlmIHdpbmRvdy5BY3RpdmVYT2JqZWN0XG4gICAgICAgICAgICAgICAgZm9yIG5hbWUgaW4gW1wiTXN4bWwyLlhNTEhUVFAuNi4wXCIsIFwiTXN4bWwyLlhNTEhUVFAuMy4wXCIsIFwiTXN4bWwyLlhNTEhUVFBcIiwgXCJNaWNyb3NvZnQuWE1MSFRUUFwiXVxuICAgICAgICAgICAgICAgICAgICB0cnlcbiAgICAgICAgICAgICAgICAgICAgICAgIHhociA9IG5ldyBBY3RpdmVYT2JqZWN0KG5hbWUpXG5cbiAgICAgICAgaWYgeGhyP1xuICAgICAgICAgICAgIyBCcm93c2VyXG4gICAgICAgICAgICBpZiBjYWxsYmFjaz9cbiAgICAgICAgICAgICAgICAjIEFzeW5jXG4gICAgICAgICAgICAgICAgeGhyLm9ucmVhZHlzdGF0ZWNoYW5nZSA9IC0+XG4gICAgICAgICAgICAgICAgICAgIGlmIHhoci5yZWFkeVN0YXRlIGlzIDRcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIHhoci5zdGF0dXMgaXMgMjAwIG9yIHhoci5zdGF0dXMgaXMgMFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGNhbGxiYWNrKHhoci5yZXNwb25zZVRleHQpXG4gICAgICAgICAgICAgICAgICAgICAgICBlbHNlXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgY2FsbGJhY2sobnVsbClcbiAgICAgICAgICAgICAgICB4aHIub3BlbiAnR0VUJywgcGF0aCwgdHJ1ZVxuICAgICAgICAgICAgICAgIHhoci5zZW5kIG51bGxcblxuICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgICMgU3luY1xuICAgICAgICAgICAgICAgIHhoci5vcGVuICdHRVQnLCBwYXRoLCBmYWxzZVxuICAgICAgICAgICAgICAgIHhoci5zZW5kIG51bGxcblxuICAgICAgICAgICAgICAgIGlmIHhoci5zdGF0dXMgaXMgMjAwIG9yIHhoci5zdGF0dXMgPT0gMFxuICAgICAgICAgICAgICAgICAgICByZXR1cm4geGhyLnJlc3BvbnNlVGV4dFxuXG4gICAgICAgICAgICAgICAgcmV0dXJuIG51bGxcbiAgICAgICAgZWxzZVxuICAgICAgICAgICAgIyBOb2RlLmpzLWxpa2VcbiAgICAgICAgICAgIHJlcSA9IHJlcXVpcmVcbiAgICAgICAgICAgIGZzID0gcmVxKCdmcycpICMgUHJldmVudCBicm93c2VyaWZ5IGZyb20gdHJ5aW5nIHRvIGxvYWQgJ2ZzJyBtb2R1bGVcbiAgICAgICAgICAgIGlmIGNhbGxiYWNrP1xuICAgICAgICAgICAgICAgICMgQXN5bmNcbiAgICAgICAgICAgICAgICBmcy5yZWFkRmlsZSBwYXRoLCAoZXJyLCBkYXRhKSAtPlxuICAgICAgICAgICAgICAgICAgICBpZiBlcnJcbiAgICAgICAgICAgICAgICAgICAgICAgIGNhbGxiYWNrIG51bGxcbiAgICAgICAgICAgICAgICAgICAgZWxzZVxuICAgICAgICAgICAgICAgICAgICAgICAgY2FsbGJhY2sgU3RyaW5nKGRhdGEpXG5cbiAgICAgICAgICAgIGVsc2VcbiAgICAgICAgICAgICAgICAjIFN5bmNcbiAgICAgICAgICAgICAgICBkYXRhID0gZnMucmVhZEZpbGVTeW5jIHBhdGhcbiA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