Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

parser.js 55KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609
  1. "use strict";
  2. exports.__esModule = true;
  3. exports.default = void 0;
  4. var _declaration = _interopRequireDefault(require("./declaration"));
  5. var _tokenize = _interopRequireDefault(require("./tokenize"));
  6. var _comment = _interopRequireDefault(require("./comment"));
  7. var _atRule = _interopRequireDefault(require("./at-rule"));
  8. var _root = _interopRequireDefault(require("./root"));
  9. var _rule = _interopRequireDefault(require("./rule"));
  10. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  11. var Parser = /*#__PURE__*/function () {
  12. function Parser(input) {
  13. this.input = input;
  14. this.root = new _root.default();
  15. this.current = this.root;
  16. this.spaces = '';
  17. this.semicolon = false;
  18. this.createTokenizer();
  19. this.root.source = {
  20. input: input,
  21. start: {
  22. line: 1,
  23. column: 1
  24. }
  25. };
  26. }
  27. var _proto = Parser.prototype;
  28. _proto.createTokenizer = function createTokenizer() {
  29. this.tokenizer = (0, _tokenize.default)(this.input);
  30. };
  31. _proto.parse = function parse() {
  32. var token;
  33. while (!this.tokenizer.endOfFile()) {
  34. token = this.tokenizer.nextToken();
  35. switch (token[0]) {
  36. case 'space':
  37. this.spaces += token[1];
  38. break;
  39. case ';':
  40. this.freeSemicolon(token);
  41. break;
  42. case '}':
  43. this.end(token);
  44. break;
  45. case 'comment':
  46. this.comment(token);
  47. break;
  48. case 'at-word':
  49. this.atrule(token);
  50. break;
  51. case '{':
  52. this.emptyRule(token);
  53. break;
  54. default:
  55. this.other(token);
  56. break;
  57. }
  58. }
  59. this.endFile();
  60. };
  61. _proto.comment = function comment(token) {
  62. var node = new _comment.default();
  63. this.init(node, token[2], token[3]);
  64. node.source.end = {
  65. line: token[4],
  66. column: token[5]
  67. };
  68. var text = token[1].slice(2, -2);
  69. if (/^\s*$/.test(text)) {
  70. node.text = '';
  71. node.raws.left = text;
  72. node.raws.right = '';
  73. } else {
  74. var match = text.match(/^(\s*)([^]*[^\s])(\s*)$/);
  75. node.text = match[2];
  76. node.raws.left = match[1];
  77. node.raws.right = match[3];
  78. }
  79. };
  80. _proto.emptyRule = function emptyRule(token) {
  81. var node = new _rule.default();
  82. this.init(node, token[2], token[3]);
  83. node.selector = '';
  84. node.raws.between = '';
  85. this.current = node;
  86. };
  87. _proto.other = function other(start) {
  88. var end = false;
  89. var type = null;
  90. var colon = false;
  91. var bracket = null;
  92. var brackets = [];
  93. var tokens = [];
  94. var token = start;
  95. while (token) {
  96. type = token[0];
  97. tokens.push(token);
  98. if (type === '(' || type === '[') {
  99. if (!bracket) bracket = token;
  100. brackets.push(type === '(' ? ')' : ']');
  101. } else if (brackets.length === 0) {
  102. if (type === ';') {
  103. if (colon) {
  104. this.decl(tokens);
  105. return;
  106. } else {
  107. break;
  108. }
  109. } else if (type === '{') {
  110. this.rule(tokens);
  111. return;
  112. } else if (type === '}') {
  113. this.tokenizer.back(tokens.pop());
  114. end = true;
  115. break;
  116. } else if (type === ':') {
  117. colon = true;
  118. }
  119. } else if (type === brackets[brackets.length - 1]) {
  120. brackets.pop();
  121. if (brackets.length === 0) bracket = null;
  122. }
  123. token = this.tokenizer.nextToken();
  124. }
  125. if (this.tokenizer.endOfFile()) end = true;
  126. if (brackets.length > 0) this.unclosedBracket(bracket);
  127. if (end && colon) {
  128. while (tokens.length) {
  129. token = tokens[tokens.length - 1][0];
  130. if (token !== 'space' && token !== 'comment') break;
  131. this.tokenizer.back(tokens.pop());
  132. }
  133. this.decl(tokens);
  134. } else {
  135. this.unknownWord(tokens);
  136. }
  137. };
  138. _proto.rule = function rule(tokens) {
  139. tokens.pop();
  140. var node = new _rule.default();
  141. this.init(node, tokens[0][2], tokens[0][3]);
  142. node.raws.between = this.spacesAndCommentsFromEnd(tokens);
  143. this.raw(node, 'selector', tokens);
  144. this.current = node;
  145. };
  146. _proto.decl = function decl(tokens) {
  147. var node = new _declaration.default();
  148. this.init(node);
  149. var last = tokens[tokens.length - 1];
  150. if (last[0] === ';') {
  151. this.semicolon = true;
  152. tokens.pop();
  153. }
  154. if (last[4]) {
  155. node.source.end = {
  156. line: last[4],
  157. column: last[5]
  158. };
  159. } else {
  160. node.source.end = {
  161. line: last[2],
  162. column: last[3]
  163. };
  164. }
  165. while (tokens[0][0] !== 'word') {
  166. if (tokens.length === 1) this.unknownWord(tokens);
  167. node.raws.before += tokens.shift()[1];
  168. }
  169. node.source.start = {
  170. line: tokens[0][2],
  171. column: tokens[0][3]
  172. };
  173. node.prop = '';
  174. while (tokens.length) {
  175. var type = tokens[0][0];
  176. if (type === ':' || type === 'space' || type === 'comment') {
  177. break;
  178. }
  179. node.prop += tokens.shift()[1];
  180. }
  181. node.raws.between = '';
  182. var token;
  183. while (tokens.length) {
  184. token = tokens.shift();
  185. if (token[0] === ':') {
  186. node.raws.between += token[1];
  187. break;
  188. } else {
  189. if (token[0] === 'word' && /\w/.test(token[1])) {
  190. this.unknownWord([token]);
  191. }
  192. node.raws.between += token[1];
  193. }
  194. }
  195. if (node.prop[0] === '_' || node.prop[0] === '*') {
  196. node.raws.before += node.prop[0];
  197. node.prop = node.prop.slice(1);
  198. }
  199. node.raws.between += this.spacesAndCommentsFromStart(tokens);
  200. this.precheckMissedSemicolon(tokens);
  201. for (var i = tokens.length - 1; i > 0; i--) {
  202. token = tokens[i];
  203. if (token[1].toLowerCase() === '!important') {
  204. node.important = true;
  205. var string = this.stringFrom(tokens, i);
  206. string = this.spacesFromEnd(tokens) + string;
  207. if (string !== ' !important') node.raws.important = string;
  208. break;
  209. } else if (token[1].toLowerCase() === 'important') {
  210. var cache = tokens.slice(0);
  211. var str = '';
  212. for (var j = i; j > 0; j--) {
  213. var _type = cache[j][0];
  214. if (str.trim().indexOf('!') === 0 && _type !== 'space') {
  215. break;
  216. }
  217. str = cache.pop()[1] + str;
  218. }
  219. if (str.trim().indexOf('!') === 0) {
  220. node.important = true;
  221. node.raws.important = str;
  222. tokens = cache;
  223. }
  224. }
  225. if (token[0] !== 'space' && token[0] !== 'comment') {
  226. break;
  227. }
  228. }
  229. this.raw(node, 'value', tokens);
  230. if (node.value.indexOf(':') !== -1) this.checkMissedSemicolon(tokens);
  231. };
  232. _proto.atrule = function atrule(token) {
  233. var node = new _atRule.default();
  234. node.name = token[1].slice(1);
  235. if (node.name === '') {
  236. this.unnamedAtrule(node, token);
  237. }
  238. this.init(node, token[2], token[3]);
  239. var prev;
  240. var shift;
  241. var last = false;
  242. var open = false;
  243. var params = [];
  244. while (!this.tokenizer.endOfFile()) {
  245. token = this.tokenizer.nextToken();
  246. if (token[0] === ';') {
  247. node.source.end = {
  248. line: token[2],
  249. column: token[3]
  250. };
  251. this.semicolon = true;
  252. break;
  253. } else if (token[0] === '{') {
  254. open = true;
  255. break;
  256. } else if (token[0] === '}') {
  257. if (params.length > 0) {
  258. shift = params.length - 1;
  259. prev = params[shift];
  260. while (prev && prev[0] === 'space') {
  261. prev = params[--shift];
  262. }
  263. if (prev) {
  264. node.source.end = {
  265. line: prev[4],
  266. column: prev[5]
  267. };
  268. }
  269. }
  270. this.end(token);
  271. break;
  272. } else {
  273. params.push(token);
  274. }
  275. if (this.tokenizer.endOfFile()) {
  276. last = true;
  277. break;
  278. }
  279. }
  280. node.raws.between = this.spacesAndCommentsFromEnd(params);
  281. if (params.length) {
  282. node.raws.afterName = this.spacesAndCommentsFromStart(params);
  283. this.raw(node, 'params', params);
  284. if (last) {
  285. token = params[params.length - 1];
  286. node.source.end = {
  287. line: token[4],
  288. column: token[5]
  289. };
  290. this.spaces = node.raws.between;
  291. node.raws.between = '';
  292. }
  293. } else {
  294. node.raws.afterName = '';
  295. node.params = '';
  296. }
  297. if (open) {
  298. node.nodes = [];
  299. this.current = node;
  300. }
  301. };
  302. _proto.end = function end(token) {
  303. if (this.current.nodes && this.current.nodes.length) {
  304. this.current.raws.semicolon = this.semicolon;
  305. }
  306. this.semicolon = false;
  307. this.current.raws.after = (this.current.raws.after || '') + this.spaces;
  308. this.spaces = '';
  309. if (this.current.parent) {
  310. this.current.source.end = {
  311. line: token[2],
  312. column: token[3]
  313. };
  314. this.current = this.current.parent;
  315. } else {
  316. this.unexpectedClose(token);
  317. }
  318. };
  319. _proto.endFile = function endFile() {
  320. if (this.current.parent) this.unclosedBlock();
  321. if (this.current.nodes && this.current.nodes.length) {
  322. this.current.raws.semicolon = this.semicolon;
  323. }
  324. this.current.raws.after = (this.current.raws.after || '') + this.spaces;
  325. };
  326. _proto.freeSemicolon = function freeSemicolon(token) {
  327. this.spaces += token[1];
  328. if (this.current.nodes) {
  329. var prev = this.current.nodes[this.current.nodes.length - 1];
  330. if (prev && prev.type === 'rule' && !prev.raws.ownSemicolon) {
  331. prev.raws.ownSemicolon = this.spaces;
  332. this.spaces = '';
  333. }
  334. }
  335. } // Helpers
  336. ;
  337. _proto.init = function init(node, line, column) {
  338. this.current.push(node);
  339. node.source = {
  340. start: {
  341. line: line,
  342. column: column
  343. },
  344. input: this.input
  345. };
  346. node.raws.before = this.spaces;
  347. this.spaces = '';
  348. if (node.type !== 'comment') this.semicolon = false;
  349. };
  350. _proto.raw = function raw(node, prop, tokens) {
  351. var token, type;
  352. var length = tokens.length;
  353. var value = '';
  354. var clean = true;
  355. var next, prev;
  356. var pattern = /^([.|#])?([\w])+/i;
  357. for (var i = 0; i < length; i += 1) {
  358. token = tokens[i];
  359. type = token[0];
  360. if (type === 'comment' && node.type === 'rule') {
  361. prev = tokens[i - 1];
  362. next = tokens[i + 1];
  363. if (prev[0] !== 'space' && next[0] !== 'space' && pattern.test(prev[1]) && pattern.test(next[1])) {
  364. value += token[1];
  365. } else {
  366. clean = false;
  367. }
  368. continue;
  369. }
  370. if (type === 'comment' || type === 'space' && i === length - 1) {
  371. clean = false;
  372. } else {
  373. value += token[1];
  374. }
  375. }
  376. if (!clean) {
  377. var raw = tokens.reduce(function (all, i) {
  378. return all + i[1];
  379. }, '');
  380. node.raws[prop] = {
  381. value: value,
  382. raw: raw
  383. };
  384. }
  385. node[prop] = value;
  386. };
  387. _proto.spacesAndCommentsFromEnd = function spacesAndCommentsFromEnd(tokens) {
  388. var lastTokenType;
  389. var spaces = '';
  390. while (tokens.length) {
  391. lastTokenType = tokens[tokens.length - 1][0];
  392. if (lastTokenType !== 'space' && lastTokenType !== 'comment') break;
  393. spaces = tokens.pop()[1] + spaces;
  394. }
  395. return spaces;
  396. };
  397. _proto.spacesAndCommentsFromStart = function spacesAndCommentsFromStart(tokens) {
  398. var next;
  399. var spaces = '';
  400. while (tokens.length) {
  401. next = tokens[0][0];
  402. if (next !== 'space' && next !== 'comment') break;
  403. spaces += tokens.shift()[1];
  404. }
  405. return spaces;
  406. };
  407. _proto.spacesFromEnd = function spacesFromEnd(tokens) {
  408. var lastTokenType;
  409. var spaces = '';
  410. while (tokens.length) {
  411. lastTokenType = tokens[tokens.length - 1][0];
  412. if (lastTokenType !== 'space') break;
  413. spaces = tokens.pop()[1] + spaces;
  414. }
  415. return spaces;
  416. };
  417. _proto.stringFrom = function stringFrom(tokens, from) {
  418. var result = '';
  419. for (var i = from; i < tokens.length; i++) {
  420. result += tokens[i][1];
  421. }
  422. tokens.splice(from, tokens.length - from);
  423. return result;
  424. };
  425. _proto.colon = function colon(tokens) {
  426. var brackets = 0;
  427. var token, type, prev;
  428. for (var i = 0; i < tokens.length; i++) {
  429. token = tokens[i];
  430. type = token[0];
  431. if (type === '(') {
  432. brackets += 1;
  433. }
  434. if (type === ')') {
  435. brackets -= 1;
  436. }
  437. if (brackets === 0 && type === ':') {
  438. if (!prev) {
  439. this.doubleColon(token);
  440. } else if (prev[0] === 'word' && prev[1] === 'progid') {
  441. continue;
  442. } else {
  443. return i;
  444. }
  445. }
  446. prev = token;
  447. }
  448. return false;
  449. } // Errors
  450. ;
  451. _proto.unclosedBracket = function unclosedBracket(bracket) {
  452. throw this.input.error('Unclosed bracket', bracket[2], bracket[3]);
  453. };
  454. _proto.unknownWord = function unknownWord(tokens) {
  455. throw this.input.error('Unknown word', tokens[0][2], tokens[0][3]);
  456. };
  457. _proto.unexpectedClose = function unexpectedClose(token) {
  458. throw this.input.error('Unexpected }', token[2], token[3]);
  459. };
  460. _proto.unclosedBlock = function unclosedBlock() {
  461. var pos = this.current.source.start;
  462. throw this.input.error('Unclosed block', pos.line, pos.column);
  463. };
  464. _proto.doubleColon = function doubleColon(token) {
  465. throw this.input.error('Double colon', token[2], token[3]);
  466. };
  467. _proto.unnamedAtrule = function unnamedAtrule(node, token) {
  468. throw this.input.error('At-rule without name', token[2], token[3]);
  469. };
  470. _proto.precheckMissedSemicolon = function precheckMissedSemicolon()
  471. /* tokens */
  472. {// Hook for Safe Parser
  473. };
  474. _proto.checkMissedSemicolon = function checkMissedSemicolon(tokens) {
  475. var colon = this.colon(tokens);
  476. if (colon === false) return;
  477. var founded = 0;
  478. var token;
  479. for (var j = colon - 1; j >= 0; j--) {
  480. token = tokens[j];
  481. if (token[0] !== 'space') {
  482. founded += 1;
  483. if (founded === 2) break;
  484. }
  485. }
  486. throw this.input.error('Missed semicolon', token[2], token[3]);
  487. };
  488. return Parser;
  489. }();
  490. exports.default = Parser;
  491. module.exports = exports.default;
  492. //# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInBhcnNlci5lczYiXSwibmFtZXMiOlsiUGFyc2VyIiwiaW5wdXQiLCJyb290IiwiUm9vdCIsImN1cnJlbnQiLCJzcGFjZXMiLCJzZW1pY29sb24iLCJjcmVhdGVUb2tlbml6ZXIiLCJzb3VyY2UiLCJzdGFydCIsImxpbmUiLCJjb2x1bW4iLCJ0b2tlbml6ZXIiLCJwYXJzZSIsInRva2VuIiwiZW5kT2ZGaWxlIiwibmV4dFRva2VuIiwiZnJlZVNlbWljb2xvbiIsImVuZCIsImNvbW1lbnQiLCJhdHJ1bGUiLCJlbXB0eVJ1bGUiLCJvdGhlciIsImVuZEZpbGUiLCJub2RlIiwiQ29tbWVudCIsImluaXQiLCJ0ZXh0Iiwic2xpY2UiLCJ0ZXN0IiwicmF3cyIsImxlZnQiLCJyaWdodCIsIm1hdGNoIiwiUnVsZSIsInNlbGVjdG9yIiwiYmV0d2VlbiIsInR5cGUiLCJjb2xvbiIsImJyYWNrZXQiLCJicmFja2V0cyIsInRva2VucyIsInB1c2giLCJsZW5ndGgiLCJkZWNsIiwicnVsZSIsImJhY2siLCJwb3AiLCJ1bmNsb3NlZEJyYWNrZXQiLCJ1bmtub3duV29yZCIsInNwYWNlc0FuZENvbW1lbnRzRnJvbUVuZCIsInJhdyIsIkRlY2xhcmF0aW9uIiwibGFzdCIsImJlZm9yZSIsInNoaWZ0IiwicHJvcCIsInNwYWNlc0FuZENvbW1lbnRzRnJvbVN0YXJ0IiwicHJlY2hlY2tNaXNzZWRTZW1pY29sb24iLCJpIiwidG9Mb3dlckNhc2UiLCJpb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XG4gICAgd2hpbGUgKCF0aGlzLnRva2VuaXplci5lbmRPZkZpbGUoKSkge1xuICAgICAgdG9rZW4gPSB0aGlzLnRva2VuaXplci5uZXh0VG9rZW4oKVxuXG4gICAgICBzd2l0Y2ggKHRva2VuWzBdKSB7XG4gICAgICAgIGNhc2UgJ3NwYWNlJzpcbiAgICAgICAgICB0aGlzLnNwYWNlcyArPSB0b2tlblsxXVxuICAgICAgICAgIGJyZWFrXG5cbiAgICAgICAgY2FzZSAnOyc6XG4gICAgICAgICAgdGhpcy5mcmVlU2VtaWNvbG9uKHRva2VuKVxuICAgICAgICAgIGJyZWFrXG5cbiAgICAgICAgY2FzZSAnfSc6XG4gICAgICAgICAgdGhpcy5lbmQodG9rZW4pXG4gICAgICAgICAgYnJlYWtcblxuICAgICAgICBjYXNlICdjb21tZW50JzpcbiAgICAgICAgICB0aGlzLmNvbW1lbnQodG9rZW4pXG4gICAgICAgICAgYnJlYWtcblxuICAgICAgICBjYXNlICdhdC13b3JkJzpcbiAgICAgICAgICB0aGlzLmF0cnVsZSh0b2tlbilcbiAgICAgICAgICBicmVha1xuXG4gICAgICAgIGNhc2UgJ3snOlxuICAgICAgICAgIHRoaXMuZW1wdHlSdWxlKHRva2VuKVxuICAgICAgICAgIGJyZWFrXG5cbiAgICAgICAgZGVmYXVsdDpcbiAgICAgICAgICB0aGlzLm90aGVyKHRva2VuKVxuICAgICAgICAgIGJyZWFrXG4gICAgICB9XG4gICAgfVxuICAgIHRoaXMuZW5kRmlsZSgpXG4gIH1cblxuICBjb21tZW50ICh0b2tlbikge1xuICAgIGxldCBub2RlID0gbmV3IENvbW1lbnQoKVxuICAgIHRoaXMuaW5pdChub2RlLCB0b2tlblsyXSwgdG9rZW5bM10pXG4gICAgbm9kZS5zb3VyY2UuZW5kID0geyBsaW5lOiB0b2tlbls0XSwgY29sdW1uOiB0b2tlbls1XSB9XG5cbiAgICBsZXQgdGV4dCA9IHRva2VuWzFdLnNsaWNlKDIsIC0yKVxuICAg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ygnID8gJyknIDogJ10nKVxuICAgICAgfSBlbHNlIGlmIChicmFja2V0cy5sZW5ndGggPT09IDApIHtcbiAgICAgICAgaWYgKHR5cGUgPT09ICc7Jykge1xuICAgICAgICAgIGlmIChjb2xvbikge1xuICAgICAgICAgICAgdGhpcy5kZWNsKHRva2VucylcbiAgICAgICAgICAgIHJldHVyblxuICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBicmVha1xuICAgICAgICAgIH1cbiAgICAgICAgfSBlbHNlIGlmICh0eXBlID09PSAneycpIHtcbiAgICAgICAgICB0aGlzLnJ1bGUodG9rZW5zKVxuICAgICAgICAgIHJldHVyblxuICAgICAgICB9IGVsc2UgaWYgKHR5cGUgPT09ICd9Jykge1xuICAgICAgICAgIHRoaXMudG9rZW5pemVyLmJhY2sodG9rZW5zLnBvcCgpKVxuICAgICAgICAgIGVuZCA9IHRydWVcbiAgICAgICAgICBicmVha1xuICAgICAgICB9IGVsc2UgaWYgKHR5cGUgPT09ICc6Jykge1xuICAgICAgICAgIGNvbG9uID0gdHJ1ZVxuICAgICAgICB9XG4gICAgICB9IGVsc2UgaWYgKHR5cGUgPT09IGJyYWNrZXRzW2JyYWNrZXRzLmxlbmd0aCAtIDFdKSB7XG4gICAgICAgIGJyYWNrZXRzLnBvcCgpXG4gICAgICAgIGlmIChicmFja2V0cy5sZW5ndGggPT09IDApIGJyYWNrZXQgPSBudWxsXG4gICAgICB9XG5cbiAgICAgIHRva2VuID0gdGhpcy50b2tlbml6ZXIubmV4dFRva2VuKClcbiAgICB9XG5cbiAgICBpZiAodGhpcy50b2tlbml6ZXIuZW5kT2ZGaWxlKCkpIGVuZCA9IHRydWVcbiAgICBpZiAoYnJhY2tldHMubGVuZ3RoID4gMCkgdGhpcy51bmNsb3NlZEJyYWNrZXQoYnJhY2tldClcblxuICAgIGlmIChlbmQgJiYgY29sb24pIHtcbiAgICAgIHdoaWxlICh0b2tlbnMubGVuZ3RoKSB7XG4gICAgICAgIHRva2VuID0g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RUb2tlbigpXG5cbiAgICAgIGlmICh0b2tlblswXSA9PT0gJzsnKSB7XG4gICAgICAgIG5vZGUuc291cmNlLmVuZCA9IHsgbGluZTogdG9rZW5bMl0sIGNvbHVtbjogdG9rZW5bM10gfVxuICAgICAgICB0aGlzLnNlbWljb2xvbiA9IHRydWVcbiAgICAgICAgYnJlYWtcbiAgICAgIH0gZWxzZSBpZiAodG9rZW5bMF0gPT09ICd7Jykge1xuICAgICAgICBvcGVuID0gdHJ1ZVxuICAgICAgICBicmVha1xuICAgICAgfSBlbHNlIGlmICh0b2tlblswXSA9PT0gJ30nKSB7XG4gICAgICAgIGlmIChwYXJhbXMubGVuZ3RoID4gMCkge1xuICAgICAgICAgIHNoaWZ0ID0gcGFyYW1zLmxlbmd0aCAtIDFcbiAgICAgICAgICBwcmV2ID0gcGFyYW1zW3NoaWZ0XVxuICAgICAgICAgIHdoaWxlIChwcmV2ICYmIHByZXZbMF0gPT09ICdzcGFjZScpIHtcbiAgICAgICAgICAgIHByZXYgPSBwYXJhbXNbLS1zaGlmdF1cbiAgICAgICAgICB9XG4gICAgICAgICAgaWYgKHByZXYpIHtcbiAgICAgICAgICAgIG5vZGUuc291cmNlLmVuZCA9IHsgbGluZTogcHJldls0XSwgY29sdW1uOiBwcmV2WzVdIH1cbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgICAgdGhpcy5lbmQodG9rZW4pXG4gICAgICAgIGJyZWFrXG4gICAgICB9IGVsc2Uge1xuICAgICAgICBwYXJhbXMucHVzaCh0b2tlbilcbiAgICAgIH1cblxuICAgICAgaWYgKHRoaXMudG9rZW5pemVyLmVuZE9mRmlsZSgpKSB7XG4gICAgICAgIGxhc3QgPSB0cnVlXG4gICAgICAgIGJyZWFrXG4gICAgICB9XG4gICAgfVxuXG4gICAgbm9kZS5yYXdzLmJldHdlZW4gPSB0aGlzLnNwYWNlc0FuZENvbW1lbnRzRnJvbUVuZChwYXJhbXMpXG4gICAgaWYgKHBhcmFtcy5sZW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